/* Scorpion Arena — Clean Withdraw UI v1 */

.withdraw-clean-panel {
    width: min(100% - 28px, 520px) !important;
    max-height: calc(
        100dvh - 110px
    ) !important;
    padding: 20px !important;
    border-radius: 26px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    background:
        linear-gradient(
            160deg,
            rgba(31, 25, 49, .98),
            rgba(13, 15, 27, .99)
        ) !important;
    border:
        1px solid
        rgba(245, 198, 91, .28) !important;
    box-shadow:
        0 30px 80px
        rgba(0, 0, 0, .55) !important;
}

.withdraw-clean-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.withdraw-clean-heading {
    min-width: 0;
}

.withdraw-clean-title {
    color: #fff;
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -.035em;
}

.withdraw-clean-subtitle {
    margin-top: 6px;
    color: rgba(237, 231, 249, .62);
    font-size: 12.5px;
    line-height: 1.55;
}

.withdraw-clean-close {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid
        rgba(255, 255, 255, .1);
    border-radius: 14px;
    background:
        rgba(255, 255, 255, .055);
    color: #fff;
    font-size: 25px;
    cursor: pointer;
}

.withdraw-clean-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 15px;
    margin-bottom: 12px;
    border: 1px solid
        rgba(255, 255, 255, .08);
    border-radius: 17px;
    background:
        rgba(255, 255, 255, .035);
}

.withdraw-clean-balance-label {
    display: block;
    color: rgba(235, 228, 249, .56);
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.withdraw-clean-balance-value {
    display: block;
    margin-top: 5px;
    color: #f6c85f;
    font-size: 18px;
    font-weight: 950;
    font-variant-numeric:
        tabular-nums;
}

.withdraw-clean-range {
    max-width: 45%;
    color: rgba(235, 228, 249, .56);
    font-size: 10px;
    line-height: 1.4;
    text-align: right;
}

.withdraw-clean-methods {
    display: grid;
    grid-template-columns:
        1fr 1fr;
    gap: 9px;
    padding: 5px;
    margin-bottom: 14px;
    border: 1px solid
        rgba(255, 255, 255, .075);
    border-radius: 16px;
    background:
        rgba(255, 255, 255, .03);
}

.withdraw-clean-method {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: rgba(244, 239, 252, .58);
    font-size: 12.5px;
    font-weight: 850;
    cursor: pointer;
    transition:
        background .18s ease,
        color .18s ease,
        transform .18s ease;
}

.withdraw-clean-method.active {
    color: #17111f;
    background:
        linear-gradient(
            135deg,
            #8d62ff,
            #5d91ff,
            #f4c75f
        );
    box-shadow:
        0 8px 24px
        rgba(110, 100, 255, .22);
}

.withdraw-clean-method:active {
    transform: scale(.98);
}

.withdraw-clean-section {
    margin-top: 13px;
}

.withdraw-clean-section[hidden] {
    display: none !important;
}

.withdraw-clean-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: rgba(238, 231, 250, .72);
    font-size: 11.5px;
    font-weight: 800;
}

.withdraw-clean-link-button {
    border: 0;
    padding: 5px 8px;
    border-radius: 9px;
    background:
        rgba(108, 143, 255, .12);
    color: #a9c9ff;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
}

.withdraw-clean-link-button:disabled {
    background:
        rgba(59, 215, 158, .1);
    color: #8de8c3;
    cursor: default;
}

.withdraw-clean-wallet {
    min-height: 50px;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid
        rgba(255, 255, 255, .085);
    border-radius: 15px;
    background:
        rgba(255, 255, 255, .035);
    color: rgba(237, 231, 249, .48);
    font-size: 11px;
    line-height: 1.45;
    word-break: break-word;
}

.withdraw-clean-wallet.connected {
    color: rgba(241, 237, 250, .87);
}

.withdraw-clean-label {
    display: block;
    margin-bottom: 8px;
    color: rgba(238, 231, 250, .72);
    font-size: 11.5px;
    font-weight: 800;
}

.withdraw-clean-input-wrap {
    display: flex;
    align-items: center;
    min-height: 64px;
    border: 1px solid
        rgba(245, 198, 91, .3);
    border-radius: 17px;
    background:
        rgba(255, 255, 255, .04);
    overflow: hidden;
    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.withdraw-clean-input-wrap:focus-within {
    border-color:
        rgba(245, 198, 91, .85);
    box-shadow:
        0 0 0 3px
        rgba(245, 198, 91, .08);
}

.withdraw-clean-input {
    flex: 1;
    min-width: 0;
    height: 62px;
    padding: 0 16px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 25px;
    font-weight: 950;
    font-variant-numeric:
        tabular-nums;
}

.withdraw-clean-input::placeholder {
    color: rgba(255, 255, 255, .28);
}

.withdraw-clean-currency {
    padding-right: 16px;
    color: #f5c65b;
    font-size: 13px;
    font-weight: 950;
}

.withdraw-clean-quick {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);
    gap: 8px;
    margin-top: 9px;
}

.withdraw-clean-quick button {
    min-height: 40px;
    border: 1px solid
        rgba(255, 255, 255, .09);
    border-radius: 12px;
    background:
        rgba(255, 255, 255, .035);
    color: rgba(240, 235, 250, .76);
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}

.withdraw-clean-quick button:active {
    border-color:
        rgba(245, 198, 91, .4);
    background:
        rgba(245, 198, 91, .1);
}

.withdraw-clean-preview {
    padding: 13px 14px;
    margin-top: 14px;
    border: 1px solid
        rgba(255, 255, 255, .075);
    border-radius: 16px;
    background:
        rgba(255, 255, 255, .028);
}

.withdraw-clean-preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 6px 0;
    color: rgba(235, 228, 248, .57);
    font-size: 11.5px;
}

.withdraw-clean-preview-row strong {
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-align: right;
}

.withdraw-clean-preview-row:first-child {
    padding-bottom: 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid
        rgba(255, 255, 255, .07);
}

.withdraw-clean-preview-row:first-child strong {
    color: #f5c65b;
    font-size: 17px;
}

.withdraw-clean-notice {
    margin-top: 11px;
    color: rgba(235, 228, 248, .49);
    font-size: 10px;
    line-height: 1.55;
    text-align: center;
}

.withdraw-clean-submit {
    width: 100%;
    min-height: 55px;
    margin-top: 15px;
    border: 0;
    border-radius: 16px;
    background:
        linear-gradient(
            135deg,
            #8f5eff,
            #5c8eff,
            #f5c65b
        );
    color: #17111f;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
    box-shadow:
        0 13px 30px
        rgba(105, 93, 255, .2);
}

.withdraw-clean-submit:disabled {
    opacity: .55;
    cursor: wait;
}

.withdraw-clean-history {
    margin-top: 15px;
    border-top: 1px solid
        rgba(255, 255, 255, .075);
}

.withdraw-clean-history summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 2px 5px;
    color: rgba(240, 235, 250, .76);
    font-size: 11.5px;
    font-weight: 850;
    cursor: pointer;
    list-style: none;
}

.withdraw-clean-history summary::-webkit-details-marker {
    display: none;
}

.withdraw-clean-history-arrow {
    transition:
        transform .18s ease;
}

.withdraw-clean-history[open]
.withdraw-clean-history-arrow {
    transform: rotate(180deg);
}

.withdraw-clean-history-tools {
    display: flex;
    justify-content: flex-end;
    margin: 8px 0;
}

.withdraw-history-list {
    display: grid;
    gap: 8px;
}

.withdraw-history-item {
    padding: 12px !important;
    border: 1px solid
        rgba(255, 255, 255, .065) !important;
    border-radius: 14px !important;
    background:
        rgba(255, 255, 255, .028) !important;
}

.withdraw-history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.withdraw-history-time {
    margin-top: 7px;
    color: rgba(235, 228, 248, .4);
    font-size: 9px;
}

.withdraw-history-empty {
    padding: 16px 8px;
    color: rgba(235, 228, 248, .45);
    font-size: 10.5px;
    text-align: center;
}

.withdraw-pro-history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
}

.withdraw-pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 7px;
    border-radius: 999px;
    background:
        rgba(255, 255, 255, .055);
    color: rgba(240, 235, 250, .72);
    font-size: 9px;
    font-weight: 850;
}

.withdraw-pro-badge.stars {
    color: #ffe58b;
    background:
        rgba(255, 215, 94, .11);
}

.withdraw-pro-badge.ton {
    color: #a8d5ff;
    background:
        rgba(68, 166, 255, .11);
}

.withdraw-pro-status {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.withdraw-pro-status.pending {
    color: #ffd978;
    background:
        rgba(255, 193, 7, .12);
}

.withdraw-pro-status.approved,
.withdraw-pro-status.processing {
    color: #a8d5ff;
    background:
        rgba(68, 166, 255, .12);
}

.withdraw-pro-status.paid {
    color: #98efc8;
    background:
        rgba(55, 214, 139, .12);
}

.withdraw-pro-status.rejected,
.withdraw-pro-status.cancelled,
.withdraw-pro-status.failed {
    color: #ffacb8;
    background:
        rgba(255, 90, 110, .12);
}

.withdraw-pro-reference {
    margin-top: 6px;
    color: rgba(235, 228, 248, .52);
    font-size: 9px;
    line-height: 1.45;
    word-break: break-word;
}

.withdraw-clean-cancel {
    margin-top: 9px;
    border: 1px solid
        rgba(255, 90, 110, .2);
    border-radius: 10px;
    padding: 7px 9px;
    background:
        rgba(255, 90, 110, .08);
    color: #ffacb8;
    font-size: 9.5px;
    font-weight: 850;
    cursor: pointer;
}

.withdraw-status-message {
    display: none;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 10.5px;
    line-height: 1.45;
    text-align: center;
}

.withdraw-status-message.show {
    display: block;
}

.withdraw-status-message.success {
    color: #9af0ca;
    background:
        rgba(55, 214, 139, .1);
    border: 1px solid
        rgba(55, 214, 139, .16);
}

.withdraw-status-message.error {
    color: #ffb0bd;
    background:
        rgba(255, 90, 110, .1);
    border: 1px solid
        rgba(255, 90, 110, .16);
}

@media (max-width: 480px) {
    .withdraw-clean-panel {
        width: calc(100% - 20px) !important;
        padding: 17px !important;
        border-radius: 23px !important;
    }

    .withdraw-clean-title {
        font-size: 22px;
    }

    .withdraw-clean-balance {
        align-items: flex-start;
    }

    .withdraw-clean-range {
        max-width: 42%;
    }
}
