.tier-apply-page {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 24px;
    background: linear-gradient(145deg, #e9f2ff, #f5f1ff 50%, #eaf8ff);
}

.tier-list-page-actions {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 14px;
}

.tier-list-page-actions a,
.tier-list-page-actions button {
    min-width: 104px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 0 18px;
    background: #e2e8f0;
    color: #334155;
    text-decoration: none;
    font-weight: var(--sc-font-heavy);
    border: 0;
    cursor: pointer;
}

.tier-list-page-actions .primary {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
}

.tier-list-grid {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 13fr) 1px minmax(0, 7fr);
    align-items: stretch;
    gap: 18px;
}

.tier-list-grid > .tier-list-panel {
    min-width: 0;
    min-height: 0;
}

.tier-list-divider {
    width: 1px;
    min-height: 100%;
    background: linear-gradient(180deg, transparent, #94a3b8 12%, #94a3b8 88%, transparent);
}

.tier-list-panel {
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, .94);
    border-radius: 22px;
    padding: 26px;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 20px 55px rgba(37, 99, 235, .14);
}

.tier-apply-page > .tier-list-panel {
    flex: 1 1 auto;
}

.tier-list-panel-registered {
    border-color: rgba(148, 163, 184, .8);
    background: rgba(226, 232, 240, .9);
    box-shadow: 0 20px 55px rgba(30, 41, 59, .17);
}

.tier-list-panel-registered .tier-list-table-wrap {
    border-color: #94a3b8;
    background: rgba(248, 250, 252, .9);
}

.tier-list-panel-registered .tier-list-table th {
    background: #475569;
    color: #f8fafc;
}

.tier-list-panel-registered .tier-list-table td {
    border-bottom-color: #cbd5e1;
    color: #334155;
}

.tier-list-header {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.tier-list-header h1 {
    margin: 0 0 6px;
    color: #172033;
    font-size: 32px;
    font-weight: var(--sc-font-black);
}

.tier-list-header p {
    margin: 0;
    color: #64748b;
}

.tier-application-delete-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.tier-application-delete-actions button {
    min-height: 42px;
    border: 0;
    border-radius: 11px;
    padding: 0 16px;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: var(--sc-font-heavy);
    cursor: pointer;
}

.tier-application-delete-button {
    background: #dc2626;
}

.tier-application-delete-button:disabled {
    cursor: default;
    opacity: .55;
}

.tier-application-delete-cancel {
    background: #64748b;
}

.tier-list-row-delete-selected td {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

.tier-delete-confirm-backdrop {
    z-index: 1200;
    padding: 20px;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(5px);
}

.tier-delete-confirm-modal {
    width: min(460px, 100%);
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 24px;
    background: linear-gradient(145deg, #fff 0%, #fff7f7 100%);
    box-shadow: 0 30px 90px rgba(15, 23, 42, .32);
    color: #172033;
}

.tier-delete-confirm-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(145deg, #fee2e2, #fecaca);
    color: #dc2626;
    box-shadow: inset 0 0 0 1px rgba(220, 38, 38, .12);
}

.tier-delete-confirm-icon span {
    font-size: 29px;
    font-weight: var(--sc-font-black);
    line-height: 1;
}

.tier-delete-confirm-copy {
    min-width: 0;
}

.tier-delete-confirm-eyebrow {
    margin: 1px 0 5px;
    color: #dc2626;
    font-size: 12px;
    font-weight: var(--sc-font-black);
    letter-spacing: .08em;
}

.tier-delete-confirm-modal h2 {
    margin: 0 0 10px;
    color: #172033;
    font-size: 23px;
    font-weight: var(--sc-font-black);
}

.tier-delete-confirm-modal p:last-child {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
}

.tier-delete-confirm-modal p strong {
    color: #dc2626;
}

.tier-delete-confirm-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
}

.tier-delete-confirm-actions button {
    min-width: 96px;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    padding: 0 18px;
    font: inherit;
    font-weight: var(--sc-font-heavy);
    cursor: pointer;
}

.tier-delete-confirm-actions .cancel {
    background: #e2e8f0;
    color: #475569;
}

.tier-delete-confirm-actions .delete {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 10px 24px rgba(220, 38, 38, .22);
}

.tier-delete-confirm-actions button:disabled {
    cursor: wait;
    opacity: .65;
}

@media (max-width: 520px) {
    .tier-delete-confirm-modal {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 14px;
        padding: 22px;
        border-radius: 20px;
    }

    .tier-delete-confirm-icon {
        width: 48px;
        height: 48px;
        border-radius: 15px;
    }

    .tier-delete-confirm-modal h2 {
        font-size: 20px;
    }

    .tier-delete-confirm-actions button {
        flex: 1;
    }
}

.tier-registered-search-form {
    width: min(390px, 100%);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.tier-registered-search {
    min-width: 0;
    flex: 1;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid #94a3b8;
    border-radius: 11px;
    background: rgba(255, 255, 255, .88);
    color: #172033;
    padding: 0 13px;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.tier-registered-search-form button {
    height: 42px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    padding: 0 17px;
    font-size: 14px;
    font-weight: var(--sc-font-heavy);
    cursor: pointer;
}

.tier-registered-search:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.tier-list-actions {
    display: flex;
    gap: 10px;
}

.tier-list-actions a,
.tier-list-actions button {
    min-width: 104px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    padding: 0 18px;
    text-decoration: none;
    font-weight: var(--sc-font-heavy);
    cursor: pointer;
}

.tier-list-actions a {
    background: #e2e8f0;
    color: #334155;
}

.tier-list-actions button {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
}

.tier-apply-success {
    margin-bottom: 14px;
    border-radius: 10px;
    padding: 12px 14px;
    background: #dcfce7;
    color: #166534;
    font-weight: var(--sc-font-heavy);
}

.tier-list-table-wrap {
    min-height: 0;
    flex: 1 1 auto;
    overflow: auto;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
}

.tier-list-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.tier-list-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.tier-list-grid .tier-list-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.tier-list-grid .tier-list-table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    table-layout: fixed;
}

.tier-list-panel-registered .tier-list-table .tier-list-nickname-col {
    width: 18%;
}

.tier-list-panel-registered .tier-list-table .tier-list-value-col {
    width: 16%;
}

.tier-list-panel-registered .tier-list-table th,
.tier-list-panel-registered .tier-list-table td {
    border-right: 1px solid rgba(148, 163, 184, .48);
    vertical-align: middle;
}

.tier-list-panel-registered .tier-list-table th:last-child,
.tier-list-panel-registered .tier-list-table td:last-child {
    border-right: 0;
}

.tier-list-panel-registered .tier-list-table tbody tr:nth-child(even) td {
    background: rgba(241, 245, 249, .62);
}

.tier-list-grid .tier-list-table th,
.tier-list-grid .tier-list-table td {
    padding-inline: clamp(4px, .75vw, 14px);
    font-size: clamp(11px, .78vw, 14px);
    line-height: 1.35;
    overflow-wrap: anywhere;
    white-space: normal;
}

.tier-member-account-panel { width: min(1200px, 100%); }
.tier-list-panel .tier-member-account-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
.tier-list-panel .tier-member-account-table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    table-layout: fixed;
}
.tier-member-account-table th,
.tier-member-account-table td {
    overflow-wrap: anywhere;
    white-space: normal;
}
.tier-list-table td > div + div { margin-top: 7px; border-top: 1px solid rgba(148,163,184,.35); padding-top: 7px; }

.tier-list-table th,
.tier-list-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 18px;
    text-align: center;
    white-space: nowrap;
}

.tier-list-table th {
    background: #eff6ff;
    color: #334155;
    font-size: 14px;
    font-weight: var(--sc-font-black);
}

.tier-list-table td {
    color: #475569;
    font-weight: 750;
}

.tier-list-table tbody tr:last-child td {
    border-bottom: 0;
}

.tier-list-table tbody tr:hover {
    background: rgba(219, 234, 254, .42);
}

.tier-list-row {
    cursor: pointer;
    user-select: none;
}

.tier-list-row:active {
    background: rgba(191, 219, 254, .62);
}

.tier-list-table a {
    color: #2563eb;
    font-weight: var(--sc-font-heavy);
}

.tier-list-empty {
    padding: 44px 18px !important;
    color: #94a3b8 !important;
}

.tier-apply-panel {
    width: min(460px, 100%);
    border: 1px solid rgba(255, 255, 255, .94);
    border-radius: 18px;
    padding: 30px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 20px 55px rgba(37, 99, 235, .16);
}

.tier-apply-eyebrow {
    margin: 0 0 7px !important;
    color: #7c3aed !important;
    font-size: 13px;
    font-weight: var(--sc-font-heavy);
}

.tier-apply-panel h1,
.tier-apply-modal h2 {
    margin: 0 0 8px;
    color: #172033;
    font-weight: var(--sc-font-black);
}

.tier-apply-panel > p,
.tier-apply-modal > p {
    color: #64748b;
}

.tier-apply-page-actions,
.tier-apply-form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.tier-apply-form-actions.tier-approval-actions {
    grid-template-columns: repeat(3, 1fr);
}

.tier-apply-page-actions a,
.tier-apply-page-actions button,
.tier-apply-form-actions button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    text-decoration: none;
    font-weight: var(--sc-font-heavy);
    cursor: pointer;
}

.tier-apply-page-actions a,
.tier-apply-form-actions .close {
    background: #e2e8f0;
    color: #334155;
}

.tier-apply-form-actions .save {
    background: #475569;
    color: #fff;
}

.tier-apply-page-actions button,
.tier-apply-form-actions .submit {
    background: #2563eb;
    color: #fff;
}

.tier-apply-backdrop {
    z-index: 1100;
    padding: 20px;
}

.tier-apply-modal {
    width: min(760px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 18px;
    padding: 24px;
    background: #f8fafc;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .3);
}

.tier-apply-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.tier-form-field {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 7px;
}

.tier-form-memo,
.tier-apply-form-actions {
    grid-column: 1 / -1;
}

.tier-type-section {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, .72);
}

.tier-type-section h3 {
    grid-column: 1 / -1;
    margin: 0;
    border-bottom: 1px solid #dbeafe;
    padding-bottom: 10px;
    color: #234b92;
    font-size: 18px;
    font-weight: var(--sc-font-black);
}

.tier-apply-form label {
    color: #334155;
    font-size: 14px;
    font-weight: var(--sc-font-heavy);
}

.tier-apply-form input,
.tier-apply-form select,
.tier-apply-form textarea {
    width: 100%;
    height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0 12px;
    background: #fff;
    color: #172033;
    font-size: 16px;
    outline: none;
}

.tier-apply-form textarea {
    min-height: 42px;
    height: 42px;
    padding-block: 9px;
    resize: none;
}

.tier-apply-form input:focus,
.tier-apply-form select:focus,
.tier-apply-form textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.tier-apply-form input[readonly] {
    background: #f1f5f9;
    color: #64748b;
    cursor: default;
}

.tier-range-hint {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.tier-range-inputs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.tier-range-inputs span {
    color: #64748b;
    font-weight: 800;
}

.tier-apply-form-actions .submit:disabled {
    opacity: .55;
    cursor: wait;
}

.tier-apply-error {
    margin-bottom: 12px;
    border-radius: 10px;
    padding: 12px 14px;
    background: #fee2e2;
    color: #991b1b;
    font-weight: 800;
}

.tier-apply-loading {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, .35);
    backdrop-filter: blur(4px);
}

.tier-apply-loading[hidden] {
    display: none;
}

.tier-apply-loading-card {
    width: min(420px, 100%);
    border-radius: 16px;
    padding: 22px;
    background: #fff;
    color: #1e3a8a;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.tier-apply-loading-bar {
    height: 10px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #dbeafe;
}

.tier-apply-loading-bar span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    animation: tier-apply-loading 1s ease-in-out infinite alternate;
}

@keyframes tier-apply-loading {
    from { transform: translateX(-20%); }
    to { transform: translateX(160%); }
}

@media (max-width: 820px) {
    .tier-apply-page {
        padding: 12px;
    }

    .tier-list-panel {
        padding: 18px 14px;
    }

    .tier-list-page-actions a,
    .tier-list-page-actions button {
        flex: 1;
    }

    .tier-list-header {
        align-items: stretch;
        flex-direction: column;
    }

    .tier-list-actions > * {
        flex: 1;
    }

    .tier-apply-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tier-form-memo,
    .tier-apply-form-actions {
        grid-column: 1 / -1;
    }

    .tier-type-section {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 14px;
    }

    .tier-type-section h3 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .tier-apply-form {
        grid-template-columns: 1fr;
    }

    .tier-form-memo,
    .tier-apply-form-actions,
    .tier-type-section {
        grid-column: auto;
    }

    .tier-type-section {
        grid-template-columns: 1fr;
    }

    .tier-type-section h3 {
        grid-column: auto;
    }
}

@media (max-width: 1200px) {
    .tier-list-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, minmax(0, 1fr));
    }

    .tier-list-divider {
        display: none;
    }
}

@media (max-width: 820px) {
    .tier-apply-page {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .tier-list-grid {
        flex: 0 0 auto;
        grid-template-rows: clamp(480px, 65dvh, 620px) clamp(380px, 52dvh, 520px);
    }

    .tier-list-panel-registered .tier-list-header {
        min-height: 76px;
        align-items: center;
        flex-direction: row;
        gap: 8px;
        margin-bottom: 12px;
    }

    .tier-list-panel-registered .tier-list-header > div {
        min-width: 0;
        flex: 1 1 auto;
    }

    .tier-list-panel-registered .tier-list-header h1 {
        margin-bottom: 2px;
        font-size: clamp(20px, 6vw, 25px);
        white-space: nowrap;
    }

    .tier-list-panel-registered .tier-list-header > div > p:last-child {
        overflow: hidden;
        font-size: 11px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tier-list-panel-registered .tier-apply-eyebrow {
        font-size: 10px;
    }

    .tier-list-panel-registered .tier-registered-search-form {
        width: min(205px, 58%);
        flex: 0 1 205px;
        gap: 5px;
    }

    .tier-list-panel-registered .tier-registered-search,
    .tier-list-panel-registered .tier-registered-search-form button {
        height: 36px;
        font-size: 11px;
    }

    .tier-list-panel-registered .tier-registered-search {
        padding-inline: 8px;
    }

    .tier-list-panel-registered .tier-registered-search-form button {
        padding-inline: 10px;
    }

    .tier-list-panel-registered .tier-list-table-wrap {
        min-height: 190px;
    }
}
.tier-change-confirm-backdrop {
    z-index: 1100;
}

.tier-change-confirm-modal {
    width: min(520px, calc(100vw - 32px));
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 22px;
    background: #f8fafc;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
    color: #17233d;
}

.tier-change-confirm-modal h2 {
    margin: 0 0 16px;
    font-weight: var(--sc-font-black);
}

.tier-change-confirm-modal p {
    margin: 8px 0;
    color: #475569;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.tier-change-confirm-modal .tier-apply-form-actions {
    margin-top: 22px;
}
