.cashout-page {
    min-height: 100vh;
    padding: 28px 0 56px;
    color: #f4f7fb;
    background:
        radial-gradient(ellipse at 12% 0%, rgba(12, 185, 116, 0.09), transparent 34rem),
        #0b1118;
}

.cashout-shell {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
}

.cashout-alert {
    margin: 0 0 18px;
    padding: 13px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.cashout-alert.is-error {
    color: #ffd2d4;
    border-color: rgba(248, 113, 113, 0.34);
    background: rgba(127, 29, 29, 0.25);
}

.cashout-alert.is-success {
    color: #b7f7d8;
    border-color: rgba(34, 197, 94, 0.32);
    background: rgba(20, 83, 45, 0.26);
}

.cashout-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 30px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 22px;
    background:
        radial-gradient(circle at 85% 12%, rgba(11, 217, 123, 0.14), transparent 17rem),
        linear-gradient(135deg, #151e28, #101720 70%);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.cashout-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #3fe09b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cashout-hero h1 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.cashout-hero-copy > p {
    max-width: 610px;
    margin: 11px 0 20px;
    color: #a7b3c2;
    font-size: 13px;
    line-height: 1.65;
}

.cashout-balance {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 205px;
    padding: 11px 15px;
    border: 1px solid rgba(34, 211, 138, 0.2);
    border-radius: 14px;
    background: rgba(5, 24, 21, 0.55);
}

.cashout-balance-icon {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 12px;
    color: #46e29f;
    background: rgba(16, 185, 129, 0.16);
    font-size: 17px;
}

.cashout-balance small,
.cashout-summary-stat small {
    display: block;
    margin-bottom: 3px;
    color: #93a2b3;
    font-size: 11px;
    font-weight: 600;
}

.cashout-balance strong {
    color: #f5faf8;
    font-size: 20px;
    font-weight: 800;
}

.cashout-balance em {
    color: #53dba0;
    font-size: 12px;
    font-style: normal;
}

.cashout-summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding-left: 24px;
    border-left: 1px solid rgba(148, 163, 184, 0.13);
}

.cashout-summary-stat {
    display: flex;
    align-items: center;
    gap: 11px;
}

.cashout-stat-icon {
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    border-radius: 12px;
    font-size: 14px;
}

.cashout-stat-icon.is-pending {
    color: #ffc96a;
    background: rgba(245, 158, 11, 0.13);
}

.cashout-stat-icon.is-paid {
    color: #53dfa0;
    background: rgba(16, 185, 129, 0.13);
}

.cashout-summary-stat strong {
    color: #f8fafc;
    font-size: 17px;
    font-weight: 800;
}

.cashout-history-link,
.cashout-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #41dc99;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.cashout-history-link {
    margin-top: 5px;
}

.cashout-history-link:hover,
.cashout-view-all:hover {
    color: #8af0bf;
}

.cashout-method-section,
.cashout-activity {
    margin-top: 30px;
}

.cashout-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.cashout-section-heading > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cashout-section-heading h2 {
    margin: 0;
    color: #f4f7fb;
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -0.015em;
}

.cashout-section-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 11px;
    color: #49e1a1;
    background: rgba(16, 185, 129, 0.12);
    font-size: 14px;
}

.cashout-section-icon.is-gift {
    color: #c6a5ff;
    background: rgba(139, 92, 246, 0.15);
}

.cashout-section-icon.is-activity {
    color: #77b6ff;
    background: rgba(59, 130, 246, 0.14);
}

.cashout-method-count {
    color: #8795a7;
    font-size: 11px;
    font-weight: 600;
}

.cashout-method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 148px);
    gap: 12px;
}

.cashout-method-card {
    position: relative;
    display: flex;
    min-height: 178px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 13px 11px 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 17px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.17);
    isolation: isolate;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.cashout-method-card::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 12, 19, 0.02) 12%, rgba(7, 12, 19, 0.68) 100%);
    content: "";
}

.cashout-method-card:hover,
.cashout-method-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 15px 32px rgba(0, 0, 0, 0.28);
}

.cashout-method-card:focus-visible,
.cashout-history-link:focus-visible,
.cashout-view-all:focus-visible,
.cashout-modal-close:focus-visible,
.cashout-modal-backdrop:focus-visible {
    outline: 2px solid #55e5a5;
    outline-offset: 3px;
}

.cashout-method-badge {
    position: absolute;
    top: 11px;
    left: 10px;
    padding: 5px 7px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 99px;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(7, 12, 19, 0.32);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.cashout-method-lock {
    position: absolute;
    top: 11px;
    right: 12px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
}

.cashout-method-logo {
    display: grid;
    width: 84px;
    height: 75px;
    margin: auto 0 8px;
    place-items: center;
}

.cashout-method-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.22));
}

.cashout-method-name {
    max-width: 100%;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cashout-method-minimum {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.77);
    font-size: 10px;
    font-weight: 600;
}

.cashout-empty-inline {
    margin: 0;
    padding: 18px;
    border: 1px dashed rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    color: #92a0af;
    font-size: 13px;
}

.cashout-activity {
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 19px;
    background: #111923;
}

.cashout-activity .cashout-section-heading {
    margin-bottom: 13px;
}

.cashout-activity-list {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.cashout-activity-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 13px;
    min-height: 68px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.cashout-activity-item:last-child {
    border-bottom: 0;
}

.cashout-activity-logo {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    color: #6de5ad;
    background: #1b2931;
}

.cashout-activity-logo img {
    width: 27px;
    height: 27px;
    object-fit: contain;
}

.cashout-activity-method {
    min-width: 0;
}

.cashout-activity-method strong {
    display: block;
    overflow: hidden;
    color: #ecf1f5;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cashout-activity-method small {
    display: block;
    margin-top: 4px;
    color: #8290a0;
    font-size: 10px;
}

.cashout-activity-amount {
    color: #e7edf3;
    font-size: 12px;
    font-weight: 700;
}

.cashout-status {
    padding: 5px 9px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
}

.cashout-status.is-pending {
    color: #ffd17a;
    background: rgba(245, 158, 11, 0.12);
}

.cashout-status.is-approved {
    color: #8cc4ff;
    background: rgba(59, 130, 246, 0.13);
}

.cashout-status.is-rejected {
    color: #ff9a9e;
    background: rgba(239, 68, 68, 0.13);
}

.cashout-status.is-returned {
    color: #c3a9ff;
    background: rgba(139, 92, 246, 0.15);
}

.cashout-status.is-completed {
    color: #67e6ab;
    background: rgba(16, 185, 129, 0.13);
}

.cashout-empty-state {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8997a7;
    text-align: center;
}

.cashout-empty-state > span {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
    place-items: center;
    border-radius: 14px;
    color: #78b7ff;
    background: rgba(59, 130, 246, 0.13);
}

.cashout-empty-state strong {
    color: #dce5ed;
    font-size: 13px;
}

.cashout-empty-state p {
    margin: 5px 0 0;
    font-size: 11px;
}

.cashout-modal-overlay {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    overflow-y: auto;
    background: rgba(3, 7, 11, 0.76);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
}

.cashout-modal-backdrop {
    position: fixed;
    inset: 0;
}

.cashout-modal {
    position: relative;
    z-index: 1;
    width: min(100%, 510px);
    max-height: calc(100vh - 40px);
    padding: 24px;
    overflow-y: auto;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 21px;
    color: #f4f7fb;
    background: linear-gradient(155deg, #17212c, #101720 60%);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.cashout-modal-close {
    position: absolute;
    top: 17px;
    right: 17px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.17);
    border-radius: 11px;
    color: #b7c1cc;
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

.cashout-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 40px;
}

.cashout-modal-logo {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 15px;
}

.cashout-modal-logo img {
    max-width: 72%;
    max-height: 72%;
    object-fit: contain;
}

.cashout-modal-header small {
    color: #8293a5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cashout-modal-header h2 {
    margin: 3px 0 0;
    color: #f7fafc;
    font-size: 18px;
    font-weight: 800;
}

.cashout-modal-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0 15px;
    padding: 12px 14px;
    border: 1px solid rgba(34, 211, 138, 0.15);
    border-radius: 13px;
    color: #a0adba;
    background: rgba(6, 24, 20, 0.44);
    font-size: 11px;
    font-weight: 600;
}

.cashout-modal-balance strong {
    color: #5de3a5;
    font-size: 12px;
    font-weight: 800;
}

.cashout-get-preview {
    display: flex;
    min-height: 99px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 15px;
    background: rgba(5, 10, 16, 0.26);
}

.cashout-get-preview small {
    color: #8d9aaa;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.cashout-get-preview strong {
    max-width: 90%;
    margin-top: 3px;
    overflow-wrap: anywhere;
    color: #f7fafc;
    font-size: 24px;
    font-weight: 850;
}

.cashout-get-preview > span {
    margin-top: 2px;
    color: #56dfa2;
    font-size: 10px;
    font-weight: 700;
}

.cashout-minimum-note {
    margin: 10px 0 0;
    color: #8998a9;
    font-size: 10px;
    line-height: 1.6;
}

.cashout-minimum-note span {
    padding: 0 3px;
    color: #546272;
}

.cashout-points-field {
    display: block;
    margin-top: 17px;
    color: #dce4ec;
    font-size: 11px;
    font-weight: 700;
}

.cashout-points-field input {
    display: block;
    width: 100%;
    height: 42px;
    margin-top: 7px;
    padding: 0 12px;
    border: 1px solid rgba(148, 163, 184, 0.21);
    border-radius: 10px;
    outline: none;
    color: #f6f8fa;
    background: rgba(5, 10, 16, 0.38);
    font-size: 12px;
}

.cashout-points-field input:focus {
    border-color: #24cd87;
    box-shadow: 0 0 0 3px rgba(36, 205, 135, 0.12);
}

.cashout-unconfigured {
    margin-top: 16px;
    padding: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    color: #a4b0bd;
    font-size: 11px;
    text-align: center;
}

.cashout-address-field {
    display: block;
    margin-top: 17px;
    color: #dce4ec;
    font-size: 11px;
    font-weight: 700;
}

.cashout-address-input {
    display: flex;
    gap: 8px;
    margin-top: 7px;
}

.cashout-address-input input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(148, 163, 184, 0.21);
    border-radius: 10px;
    outline: none;
    color: #f6f8fa;
    background: rgba(5, 10, 16, 0.38);
    font-size: 12px;
}

.cashout-address-input input:focus {
    border-color: #24cd87;
    box-shadow: 0 0 0 3px rgba(36, 205, 135, 0.12);
}

.cashout-address-input input::placeholder {
    color: #687889;
}

.cashout-address-input button {
    flex: 0 0 auto;
    padding: 0 14px;
    border: 1px solid rgba(34, 211, 138, 0.24);
    border-radius: 10px;
    color: #5de3a5;
    background: rgba(16, 185, 129, 0.1);
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.cashout-clipboard-status,
.cashout-submit-note,
.cashout-gift-note {
    margin: 7px 0 0;
    color: #93a2b1;
    font-size: 10px;
    line-height: 1.5;
}

.cashout-gift-note {
    margin-top: 14px;
}

.cashout-submit-button {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 17px;
    border: 0;
    border-radius: 12px;
    color: #062013;
    background: linear-gradient(100deg, #23c77d, #57e4a0);
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
    transition: filter 140ms ease, transform 140ms ease;
}

.cashout-submit-button:not(:disabled):hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.cashout-submit-button:disabled {
    color: #98a4b1;
    background: #27313d;
    cursor: not-allowed;
}

@media (max-width: 760px) {
    .cashout-page {
        padding-top: 18px;
    }

    .cashout-hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 23px;
        border-radius: 18px;
    }

    .cashout-summary {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 15px 0 0;
        border-top: 1px solid rgba(148, 163, 184, 0.13);
        border-left: 0;
    }

    .cashout-history-link {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .cashout-shell {
        width: min(100% - 24px, 1120px);
    }

    .cashout-hero {
        padding: 19px;
    }

    .cashout-hero h1 {
        font-size: 26px;
    }

    .cashout-method-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .cashout-method-card {
        min-height: 166px;
    }

    .cashout-activity {
        padding: 15px;
    }

    .cashout-activity-item {
        grid-template-columns: 36px minmax(0, 1fr) auto;
        gap: 9px;
        padding: 10px 0;
    }

    .cashout-activity-logo {
        width: 34px;
        height: 34px;
    }

    .cashout-activity-amount {
        grid-column: 2;
        grid-row: 2;
        font-size: 10px;
    }

    .cashout-status {
        grid-column: 3;
        grid-row: 1 / span 2;
        justify-self: end;
        font-size: 9px;
    }

    .cashout-modal-overlay {
        align-items: end;
        padding: 0;
    }

    .cashout-modal {
        width: 100%;
        max-height: min(92vh, 760px);
        padding: 21px 17px calc(17px + env(safe-area-inset-bottom));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 21px 21px 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cashout-method-card,
    .cashout-submit-button {
        transition: none;
    }
}
