﻿:root {
    --bg: #0B0F14;
    --card: #121821;
    --border: #1C2532;
    --primary: #11E9A1;
    --text: #FFFFFF;
    --muted: #94A3B8;
}

.panel-body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
}

.panel-layout {
    display: flex;
    min-height: 100vh;
}

/*.sidebar {
    width: 260px;
    background: #080C10;
    border-right: 1px solid var(--border);
    padding: 24px;
}*/
.sidebar {
    width: 260px;
    background: linear-gradient(125deg, #1C2532, transparent);
    border-right: 1px solid var(--border);
    padding: 24px;
}
.sidebar-logo {
    margin-bottom: 8px !important;
}

    .sidebar-logo img {
        max-width: 150px;
        height: auto;
        display: block;
    }

.sidebar nav a {
    display: block;
    padding: 13px 16px;
    margin-bottom: 8px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 12px;
}

    .sidebar nav a:hover {
        background: rgba(17,233,161,0.1);
        color: var(--primary);
    }

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .sidebar-nav .nav-item {
        display: flex;
        align-items: center;
        padding: 13px 16px;
        color: var(--muted);
        text-decoration: none;
        border-radius: 12px;
        transition: 0.2s ease;
    }

        .sidebar-nav .nav-item:hover {
            background: rgba(17,233,161,0.08);
            color: var(--primary);
        }

        .sidebar-nav .nav-item.active {
            background: rgba(17,233,161,0.14);
            color: var(--primary);
            border: 1px solid rgba(17,233,161,0.25);
        }
.logout-btn {
    margin-top: 30px;
    width: 100%;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
}

    .logout-btn:hover {
        color: var(--primary);
        border-color: var(--primary);
    }

.panel-main {
    flex: 1;
}

.topbar {
    height: 76px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 32px;
    background: #0B0F14;
}

    .topbar h4 {
        margin: 0;
        font-weight: 800;
    }

.content {
    padding: 32px;
}

.panel-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 8px;
}
/*DashboardPanel*/
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(17,233,161,0.16), transparent 35%), #121821;
}

    .dashboard-hero h2 {
        font-weight: 900;
        margin-bottom: 8px;
    }

    .dashboard-hero p {
        color: var(--muted);
        margin: 0;
    }

.total-assets {
    text-align: right;
}

    .total-assets span,
    .wallet-card span,
    .card-label {
        color: var(--muted);
        font-size: 14px;
    }

    .total-assets strong {
        display: block;
        font-size: 34px;
        color: var(--primary);
        margin-top: 8px;
    }

.wallet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.wallet-card strong {
    display: block;
    font-size: 26px;
    margin-top: 10px;
    color: var(--text);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

    .info-grid h3 {
        margin-top: 10px;
        font-weight: 800;
    }

.progress-wrapper {
    width: 100%;
    height: 10px;
    background: #0B1118;
    border-radius: 999px;
    margin-top: 16px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: var(--primary);
    border-radius: 999px;
    transition: width 0.4s ease;
}

@media (max-width: 992px) {
    .wallet-grid,
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .total-assets {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .wallet-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/*Wallets*/
.page-header-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

    .page-header-card h2 {
        font-weight: 900;
        margin-bottom: 8px;
    }

    .page-header-card p,
    .wallet-card p {
        color: var(--muted);
        margin: 0;
    }

.panel-primary-btn {
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 12px;
    height: 46px;
    padding: 0 22px;
    font-weight: 800;
}

    .panel-primary-btn:hover {
        background: #18F5AC;
        color: #000;
    }

.wallet-page-grid {
    margin-top: 24px;
}

.wallet-main {
    background: radial-gradient(circle at top right, rgba(17,233,161,0.14), transparent 35%), var(--card);
}

.wallet-invest {
    background: radial-gradient(circle at top right, rgba(17,233,161,0.11), transparent 35%), var(--card);
}

.wallet-profit {
    background: radial-gradient(circle at top right, rgba(17,233,161,0.09), transparent 35%), var(--card);
}

.wallet-referral {
    background: radial-gradient(circle at top right, rgba(17,233,161,0.07), transparent 35%), var(--card);
}

.rules-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 14px 24px;
    margin-top: 20px;
    color: var(--muted);
}

    .rules-grid div:nth-child(odd) {
        color: var(--primary);
        font-weight: 700;
    }

.transfer-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.transfer-modal {
    width: 100%;
    max-width: 480px;
}

.modal-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

    .modal-header-custom h4 {
        margin: 0;
        font-weight: 800;
    }

    .modal-header-custom button {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: none;
        background: rgba(255,255,255,0.06);
        color: var(--text);
        font-size: 22px;
        line-height: 1;
    }

.panel-input {
    height: 48px;
    background: #0B1118;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 12px;
}

    .panel-input:focus {
        background: #0B1118;
        color: var(--text);
        border-color: var(--primary);
        box-shadow: 0 0 0 0.2rem rgba(17,233,161,0.12);
    }

@media (max-width: 768px) {
    .page-header-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .rules-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   Contracts V2
   ========================================================= */

.contract-v2-page,
.contract-v2-page *,
.contract-v2-modal-backdrop,
.contract-v2-modal-backdrop * {
    box-sizing: border-box;
}

.contract-v2-page {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

    .contract-v2-page .panel-card {
        width: 100%;
        min-width: 0;
        margin: 0 !important;
    }

.contract-v2-header {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px;
    background: radial-gradient( circle at 94% 10%, rgba(17, 233, 161, 0.14), transparent 34% ), var(--card);
}

    .contract-v2-header h2 {
        margin: 5px 0 0;
        color: var(--text);
        font-size: 28px;
        font-weight: 900;
    }

    .contract-v2-header p {
        margin: 7px 0 0;
        color: var(--muted);
        line-height: 1.6;
    }

.contract-v2-eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.contract-v2-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.contract-v2-outline-btn,
.contract-v2-document-btn,
.contract-v2-secondary-btn,
.contract-v2-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: rgba(17, 233, 161, 0.07);
    border: 1px solid rgba(17, 233, 161, 0.23);
    transition: 0.2s ease;
}

.contract-v2-outline-btn,
.contract-v2-document-btn,
.contract-v2-secondary-btn {
    min-height: 42px;
    padding: 0 15px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
}

    .contract-v2-outline-btn:hover,
    .contract-v2-document-btn:hover,
    .contract-v2-secondary-btn:hover,
    .contract-v2-modal-close:hover {
        color: var(--primary);
        background: rgba(17, 233, 161, 0.14);
        border-color: var(--primary);
        transform: translateY(-1px);
    }

.contract-v2-loading {
    padding: 22px;
    color: var(--muted);
    font-size: 14px;
}

.contract-v2-content {
    width: 100%;
}

.contract-v2-state-card {
    padding: 24px;
}

.contract-v2-state-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

    .contract-v2-state-header > div:first-child {
        min-width: 0;
        flex: 1;
    }

    .contract-v2-state-header h3 {
        margin: 7px 0 0;
        color: var(--text);
        font-size: 24px;
        font-weight: 900;
    }

    .contract-v2-state-header p {
        max-width: 780px;
        margin: 8px 0 0;
        color: var(--muted);
        line-height: 1.7;
    }

.contract-v2-state-icon {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: rgba(17, 233, 161, 0.08);
    border: 1px solid rgba(17, 233, 161, 0.22);
    border-radius: 20px;
    font-size: 24px;
    font-weight: 900;
}

    .contract-v2-state-icon.pending {
        color: #f6c96f;
        background: rgba(246, 201, 111, 0.08);
        border-color: rgba(246, 201, 111, 0.24);
    }

    .contract-v2-state-icon.active {
        color: var(--primary);
    }

.contract-v2-status {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

    .contract-v2-status.inactive {
        color: var(--muted);
        background: rgba(148, 163, 184, 0.08);
        border: 1px solid rgba(148, 163, 184, 0.2);
    }

    .contract-v2-status.pending {
        color: #f6c96f;
        background: rgba(246, 201, 111, 0.08);
        border: 1px solid rgba(246, 201, 111, 0.25);
    }

    .contract-v2-status.active {
        color: var(--primary);
        background: rgba(17, 233, 161, 0.08);
        border: 1px solid rgba(17, 233, 161, 0.25);
    }

.contract-v2-agreement {
    padding: 22px;
    background: #0d131b;
    border: 1px solid var(--border);
    border-radius: 18px;
}

.contract-v2-agreement-intro {
    margin: 0 0 15px;
    color: var(--text);
    font-weight: 700;
    line-height: 1.7;
}

.contract-v2-agreement-list {
    margin: 0;
    padding-left: 23px;
    color: #dce5ed;
}

    .contract-v2-agreement-list li {
        margin-bottom: 13px;
        padding-left: 5px;
        line-height: 1.75;
    }

        .contract-v2-agreement-list li:last-child {
            margin-bottom: 0;
        }

.contract-v2-info-note,
.contract-v2-pending-note,
.contract-v2-lock-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 18px;
    padding: 15px;
    border-radius: 15px;
}

.contract-v2-info-note {
    color: #f6c96f;
    background: rgba(246, 201, 111, 0.06);
    border: 1px solid rgba(246, 201, 111, 0.18);
}

    .contract-v2-info-note > span {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #f6c96f;
        background: rgba(246, 201, 111, 0.1);
        border: 1px solid rgba(246, 201, 111, 0.25);
        border-radius: 11px;
        font-weight: 900;
    }

    .contract-v2-info-note p {
        margin: 0;
        color: #ddc995;
        line-height: 1.65;
    }

.contract-v2-document-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.contract-v2-acceptance-box {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 20px;
    padding: 17px;
    background: #0b0f14;
    border: 1px solid var(--border);
    border-radius: 15px;
}

.contract-v2-check-row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.55;
    cursor: pointer;
}

    .contract-v2-check-row input {
        width: 17px;
        height: 17px;
        flex: 0 0 17px;
        margin-top: 2px;
        accent-color: var(--primary);
    }

.contract-v2-sign-btn {
    width: 100%;
    min-height: 48px;
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #06100c;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 13px;
    font-weight: 900;
    transition: 0.2s ease;
}

    .contract-v2-sign-btn:hover:not(:disabled) {
        background: #18f5ac;
        border-color: #18f5ac;
        transform: translateY(-1px);
        box-shadow: 0 0 22px rgba(17, 233, 161, 0.18);
    }

    .contract-v2-sign-btn:disabled {
        opacity: 0.42;
        cursor: not-allowed;
    }

.contract-v2-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.contract-v2-summary-item {
    min-width: 0;
    padding: 17px;
    background: #0d131b;
    border: 1px solid var(--border);
    border-radius: 16px;
}

    .contract-v2-summary-item span,
    .contract-v2-active-detail span {
        display: block;
        color: var(--muted);
        font-size: 11px;
    }

    .contract-v2-summary-item strong,
    .contract-v2-active-detail strong {
        display: block;
        margin-top: 7px;
        color: var(--primary);
        font-size: 16px;
        font-weight: 900;
        overflow-wrap: anywhere;
    }

.contract-v2-pending-note {
    background: rgba(246, 201, 111, 0.06);
    border: 1px solid rgba(246, 201, 111, 0.18);
}

.contract-v2-pending-note-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f6c96f;
    background: rgba(246, 201, 111, 0.1);
    border: 1px solid rgba(246, 201, 111, 0.25);
    border-radius: 12px;
    font-weight: 900;
}

.contract-v2-pending-note strong {
    color: #f6c96f;
}

.contract-v2-pending-note p {
    margin: 6px 0 0;
    color: #ddc995;
    line-height: 1.65;
}

.contract-v2-active-detail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

    .contract-v2-active-detail > div {
        min-width: 0;
        padding: 15px 17px;
        background: #0d131b;
        border: 1px solid var(--border);
        border-radius: 15px;
    }

.contract-v2-lock-note {
    background: rgba(17, 233, 161, 0.05);
    border: 1px solid rgba(17, 233, 161, 0.17);
}

.contract-v2-lock-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 233, 161, 0.09);
    border: 1px solid rgba(17, 233, 161, 0.2);
    border-radius: 12px;
}

.contract-v2-lock-note strong {
    color: var(--primary);
}

.contract-v2-lock-note p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.contract-v2-bottom-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.contract-v2-primary-link {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    color: #06100c;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 12px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    transition: 0.2s ease;
}

    .contract-v2-primary-link:hover {
        color: #06100c;
        background: #18f5ac;
        border-color: #18f5ac;
        text-decoration: none;
        transform: translateY(-1px);
    }

/* Modal */

body.contract-v2-modal-open {
    overflow: hidden;
}

.contract-v2-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(2, 5, 8, 0.84);
    backdrop-filter: blur(7px);
}

    .contract-v2-modal-backdrop.show {
        display: flex;
    }

.contract-v2-modal-shell {
    width: min(820px, 100%);
    max-height: min(850px, calc(100vh - 44px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #101720;
    border: 1px solid rgba(17, 233, 161, 0.22);
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

    .contract-v2-modal-shell.ranks {
        width: min(860px, 100%);
    }

.contract-v2-modal-header,
.contract-v2-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
}

.contract-v2-modal-header {
    border-bottom: 1px solid var(--border);
}

    .contract-v2-modal-header h3 {
        margin: 5px 0 0;
        color: var(--text);
        font-size: 20px;
        font-weight: 900;
    }

.contract-v2-modal-close {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 13px;
    font-size: 23px;
}

.contract-v2-modal-body {
    padding: 22px;
    overflow-y: auto;
}

.contract-v2-modal-footer {
    justify-content: flex-end;
    border-top: 1px solid var(--border);
}

.contract-v2-modal-primary {
    min-width: 125px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    color: #06100c;
    background: var(--primary);
    border: 0;
    border-radius: 12px;
    font-weight: 900;
}

    .contract-v2-modal-primary:hover {
        background: #18f5ac;
    }

/* Terms */

.contract-v2-terms-body {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.contract-v2-term-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    padding: 16px;
    background: #0b1118;
    border: 1px solid var(--border);
    border-radius: 16px;
}

    .contract-v2-term-item > span {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        background: rgba(17, 233, 161, 0.09);
        border: 1px solid rgba(17, 233, 161, 0.19);
        border-radius: 12px;
        font-size: 10px;
        font-weight: 900;
    }

    .contract-v2-term-item h4 {
        margin: 0 0 8px;
        color: var(--primary);
        font-size: 15px;
        font-weight: 900;
    }

    .contract-v2-term-item p {
        margin: 0;
        color: var(--muted);
        line-height: 1.7;
    }

    .contract-v2-term-item ul {
        margin: 8px 0 0;
        padding-left: 20px;
        color: #dce5ed;
    }

    .contract-v2-term-item li {
        margin-bottom: 6px;
        line-height: 1.6;
    }

        .contract-v2-term-item li:last-child {
            margin-bottom: 0;
        }

/* Rank plans */

.contract-v2-rank-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.contract-v2-rank-tab {
    min-height: 42px;
    color: var(--muted);
    background: #0b1118;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
    transition: 0.2s ease;
}

    .contract-v2-rank-tab:hover,
    .contract-v2-rank-tab.active {
        color: var(--primary);
        background: rgba(17, 233, 161, 0.08);
        border-color: rgba(17, 233, 161, 0.35);
    }

.contract-v2-rank-detail {
    padding: 20px;
    background: linear-gradient( 135deg, rgba(17, 233, 161, 0.055), #0b1118 );
    border: 1px solid rgba(17, 233, 161, 0.18);
    border-radius: 18px;
}

.contract-v2-rank-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

    .contract-v2-rank-detail-header > div > span {
        color: var(--muted);
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .contract-v2-rank-detail-header h4 {
        margin: 5px 0 0;
        color: var(--primary);
        font-size: 26px;
        font-weight: 900;
    }

.contract-v2-rank-badge {
    min-height: 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 11px;
    color: var(--primary);
    background: rgba(17, 233, 161, 0.09);
    border: 1px solid rgba(17, 233, 161, 0.25);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
}

.contract-v2-rank-description,
.contract-v2-rank-footer {
    color: var(--muted);
    line-height: 1.75;
}

.contract-v2-rank-description {
    margin: 15px 0;
}

.contract-v2-rank-footer {
    margin: 16px 0 0;
}

.contract-v2-rank-features {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
}

    .contract-v2-rank-features > div {
        min-width: 0;
        padding: 13px;
        background: #0b0f14;
        border: 1px solid var(--border);
        border-radius: 14px;
    }

    .contract-v2-rank-features span {
        display: block;
        min-height: 31px;
        color: var(--muted);
        font-size: 10px;
        line-height: 1.4;
    }

    .contract-v2-rank-features strong {
        display: block;
        margin-top: 7px;
        color: var(--primary);
        font-size: 15px;
        font-weight: 900;
    }

/* Responsive */

@media (max-width: 1050px) {
    .contract-v2-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contract-v2-rank-features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .contract-v2-page {
        gap: 14px;
    }

    .contract-v2-header {
        min-height: auto;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
    }

    .contract-v2-header-actions {
        justify-content: flex-start;
    }

    .contract-v2-state-card {
        padding: 18px;
    }

    .contract-v2-state-header {
        gap: 15px;
    }

    .contract-v2-state-icon {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        border-radius: 16px;
    }

    .contract-v2-active-detail {
        grid-template-columns: 1fr;
    }

    .contract-v2-rank-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .contract-v2-rank-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contract-v2-modal-backdrop {
        padding: 10px;
    }

    .contract-v2-modal-shell {
        max-height: calc(100vh - 20px);
        border-radius: 18px;
    }

    .contract-v2-modal-header,
    .contract-v2-modal-body,
    .contract-v2-modal-footer {
        padding: 16px;
    }
}

@media (max-width: 520px) {
    .contract-v2-header-actions,
    .contract-v2-header-actions
    .contract-v2-outline-btn {
        width: 100%;
    }

    .contract-v2-state-header {
        flex-direction: column;
    }

    .contract-v2-summary-grid {
        grid-template-columns: 1fr;
    }

    .contract-v2-document-actions,
    .contract-v2-bottom-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .contract-v2-document-btn,
    .contract-v2-secondary-btn,
    .contract-v2-primary-link {
        width: 100%;
    }

    .contract-v2-term-item {
        grid-template-columns: 1fr;
    }

    .contract-v2-rank-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contract-v2-rank-features {
        grid-template-columns: 1fr;
    }

        .contract-v2-rank-features span {
            min-height: auto;
        }
}
/*Deposit*/
.deposit-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

    .deposit-header h3 {
        color: #FFFFFF;
        margin-bottom: 6px;
    }

    .deposit-header p {
        color: #94A3B8;
        margin: 0;
        max-width: 620px;
        line-height: 1.7;
    }

.deposit-form {
    display: grid;
    gap: 18px;
    max-width: 560px;
}

.deposit-form-group {
    display: grid;
    gap: 8px;
}

    .deposit-form-group label {
        color: #FFFFFF;
        font-size: 14px;
        font-weight: 500;
    }

.deposit-message {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 14px;
}

    .deposit-message.success {
        color: #11E9A1;
        background: rgba(17, 233, 161, 0.08);
        border: 1px solid rgba(17, 233, 161, 0.25);
    }

    .deposit-message.error {
        color: #ff6b6b;
        background: rgba(255, 107, 107, 0.08);
        border: 1px solid rgba(255, 107, 107, 0.25);
    }

.panel-primary-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.deposit-wallet-box {
    background: rgba(17, 233, 161, 0.04);
    border: 1px solid rgba(17, 233, 161, 0.25);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 22px;
}

.deposit-wallet-title {
    color: #FFFFFF;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.7;
}

.deposit-wallet-content {
    display: grid;
    grid-template-columns: 130px 1fr auto;
    gap: 14px;
    align-items: center;
    background: #0B0F14;
    border: 1px solid #1C2532;
    border-radius: 16px;
    padding: 16px;
}

    .deposit-wallet-content span {
        display: block;
        color: #94A3B8;
        font-size: 12px;
        margin-bottom: 5px;
    }

    .deposit-wallet-content strong {
        color: #11E9A1;
        font-size: 14px;
        word-break: break-all;
    }

.deposit-copy-btn {
    border: none;
    background: #11E9A1;
    color: #0B0F14;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 768px) {
    .deposit-wallet-content {
        grid-template-columns: 1fr;
    }
}
/*Withdrawal*/
.withdrawal-header {
    margin-bottom: 24px;
}

    .withdrawal-header h3 {
        color: #FFFFFF;
        font-size: 28px;
        margin-bottom: 10px;
    }

    .withdrawal-header p {
        color: #94A3B8;
        line-height: 1.8;
        margin: 0;
    }

.withdraw-balance-box {
    background: rgba(17, 233, 161, 0.05);
    border: 1px solid rgba(17, 233, 161, 0.25);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    max-width: 850px;
}

    .withdraw-balance-box span {
        color: #94A3B8;
        font-size: 14px;
    }

.withdraw-balance-right strong {
    color: #11E9A1;
    font-size: 20px;
    font-weight: 800;
}

.withdrawal-form {
    display: grid;
    gap: 18px;
    max-width: 850px;
}

.withdrawal-form-group {
    display: grid;
    gap: 8px;
}

    .withdrawal-form-group label {
        color: #FFFFFF;
        font-size: 14px;
        font-weight: 600;
    }

.withdrawal-message {
    color: #94A3B8;
    font-size: 14px;
}

.withdrawal-table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.withdrawal-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

    .withdrawal-table th {
        color: #94A3B8;
        font-size: 13px;
        font-weight: 500;
        padding: 14px 12px;
        border-bottom: 1px solid #1C2532;
        white-space: nowrap;
    }

    .withdrawal-table td {
        color: #FFFFFF;
        padding: 16px 12px;
        border-bottom: 1px solid #1C2532;
        font-size: 14px;
        vertical-align: middle;
    }

.withdraw-wallet-address {
    max-width: 420px;
    word-break: break-all;
    color: #CBD5E1;
}

.withdraw-network {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: #11E9A1;
    background: rgba(17, 233, 161, 0.08);
    border: 1px solid rgba(17, 233, 161, 0.25);
    font-size: 12px;
    font-weight: 700;
}

.withdraw-amount {
    color: #11E9A1;
    font-weight: 800;
    white-space: nowrap;
}

.withdraw-cancel-btn {
    border: none;
    background: rgba(255, 107, 107, 0.12);
    color: #ff6b6b;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

    .withdraw-cancel-btn:hover {
        background: rgba(255, 107, 107, 0.22);
    }
/*Profit*/
.profits-page {
    display: grid;
    gap: 24px;
}

.profits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.profit-summary-card {
    display: grid;
    gap: 8px;
}

    .profit-summary-card span {
        color: #94A3B8;
        font-size: 14px;
    }

    .profit-summary-card strong {
        color: #FFFFFF;
        font-size: 26px;
        font-weight: 700;
    }

.profits-header {
    margin-bottom: 20px;
}

    .profits-header h3 {
        color: #FFFFFF;
        margin-bottom: 6px;
    }

    .profits-header p {
        color: #94A3B8;
        margin: 0;
    }

.profits-message {
    color: #94A3B8;
    font-size: 14px;
}

.profits-table-wrapper {
    overflow-x: auto;
}

.profits-table {
    width: 100%;
    border-collapse: collapse;
}

    .profits-table th {
        color: #94A3B8;
        font-size: 13px;
        font-weight: 500;
        padding: 14px 12px;
        border-bottom: 1px solid #1C2532;
    }

    .profits-table td {
        color: #FFFFFF;
        padding: 16px 12px;
        border-bottom: 1px solid #1C2532;
        font-size: 14px;
    }

.profit-type {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

    .profit-type.investment {
        color: #11E9A1;
        background: rgba(17, 233, 161, 0.08);
        border: 1px solid rgba(17, 233, 161, 0.25);
    }

    .profit-type.referral {
        color: #94A3B8;
        background: rgba(148, 163, 184, 0.08);
        border: 1px solid #1C2532;
    }

@media (max-width: 992px) {
    .profits-grid {
        grid-template-columns: 1fr;
    }
}
/*Referral*/
.referral-page {
    display: grid;
    gap: 24px;
}

.referral-header {
    margin-bottom: 20px;
}

    .referral-header h3,
    .referral-section-header h3 {
        color: #FFFFFF;
        margin-bottom: 6px;
    }

    .referral-header p,
    .referral-section-header p {
        color: #94A3B8;
        margin: 0;
        line-height: 1.7;
    }

.referral-message {
    color: #94A3B8;
    font-size: 14px;
}

.referral-code-box {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    background: rgba(17, 233, 161, 0.04);
    border: 1px solid #1C2532;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 18px;
}

    .referral-code-box span {
        display: block;
        color: #94A3B8;
        font-size: 13px;
        margin-bottom: 6px;
    }

    .referral-code-box strong {
        color: #11E9A1;
        font-size: 22px;
        letter-spacing: 1px;
    }

.referral-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}

.referral-summary-item,
.referral-percent-box > div {
    background: #0B0F14;
    border: 1px solid #1C2532;
    border-radius: 16px;
    padding: 16px;
}

    .referral-summary-item span,
    .referral-percent-box span {
        display: block;
        color: #94A3B8;
        font-size: 13px;
        margin-bottom: 8px;
    }

    .referral-summary-item strong,
    .referral-percent-box strong {
        color: #FFFFFF;
        font-size: 18px;
    }

.referral-percent-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.referral-section-header {
    margin-bottom: 18px;
}

.referral-table-wrapper {
    overflow-x: auto;
}

.referral-table {
    width: 100%;
    border-collapse: collapse;
}

    .referral-table th {
        color: #94A3B8;
        font-size: 13px;
        font-weight: 500;
        padding: 14px 12px;
        border-bottom: 1px solid #1C2532;
    }

    .referral-table td {
        color: #FFFFFF;
        padding: 16px 12px;
        border-bottom: 1px solid #1C2532;
        font-size: 14px;
    }

.referral-bonus-type {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: #11E9A1;
    background: rgba(17, 233, 161, 0.08);
    border: 1px solid rgba(17, 233, 161, 0.25);
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 992px) {
    .referral-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .referral-percent-box {
        grid-template-columns: 1fr;
    }

    .referral-code-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .referral-summary-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   Rank V2
   ========================================================= */

.rank-v2-page,
.rank-v2-page * {
    box-sizing: border-box;
}

.rank-v2-page {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

    .rank-v2-page .panel-card {
        width: 100%;
        min-width: 0;
        margin: 0 !important;
    }

.rank-v2-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rank-v2-header {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 22px 24px;
    background: radial-gradient( circle at 94% 10%, rgba(17, 233, 161, 0.14), transparent 34% ), var(--card);
}

    .rank-v2-header h2 {
        margin: 5px 0 0;
        color: var(--text);
        font-size: 28px;
        font-weight: 900;
    }

    .rank-v2-header p {
        max-width: 720px;
        margin: 7px 0 0;
        color: var(--muted);
        line-height: 1.65;
    }

.rank-v2-eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.rank-v2-header-link {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    color: var(--primary);
    background: rgba(17, 233, 161, 0.07);
    border: 1px solid rgba(17, 233, 161, 0.24);
    border-radius: 12px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    transition: 0.2s ease;
}

    .rank-v2-header-link:hover {
        color: var(--primary);
        background: rgba(17, 233, 161, 0.14);
        border-color: var(--primary);
        text-decoration: none;
        transform: translateY(-1px);
    }

.rank-v2-message {
    padding: 22px;
    color: var(--muted);
    font-size: 14px;
}

.rank-v2-overview-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.rank-v2-current-card,
.rank-v2-progress-card,
.rank-v2-benefits-section,
.rank-v2-levels-section {
    padding: 22px;
}

.rank-v2-card-header,
.rank-v2-section-header,
.rank-v2-selected-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.rank-v2-card-header {
    margin-bottom: 18px;
}

    .rank-v2-card-header h3,
    .rank-v2-section-header h3 {
        margin: 5px 0 0;
        color: var(--text);
        font-size: 20px;
        font-weight: 900;
    }

.rank-v2-section-header {
    margin-bottom: 18px;
}

    .rank-v2-section-header p {
        margin: 7px 0 0;
        color: var(--muted);
        line-height: 1.6;
    }

.rank-v2-status-badge,
.rank-v2-section-badge,
.rank-v2-progress-percent,
.rank-v2-selected-status {
    min-height: 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

    .rank-v2-status-badge.current,
    .rank-v2-section-badge,
    .rank-v2-progress-percent,
    .rank-v2-selected-status.current,
    .rank-v2-selected-status.unlocked {
        color: var(--primary);
        background: rgba(17, 233, 161, 0.08);
        border: 1px solid rgba(17, 233, 161, 0.25);
    }

    .rank-v2-selected-status.locked {
        color: #f6c96f;
        background: rgba(246, 201, 111, 0.08);
        border: 1px solid rgba(246, 201, 111, 0.25);
    }

.rank-v2-current-main {
    min-height: 142px;
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 18px;
    background: linear-gradient( 135deg, rgba(17, 233, 161, 0.09), #0d131b );
    border: 1px solid rgba(17, 233, 161, 0.18);
    border-radius: 18px;
}

.rank-v2-current-icon,
.rank-v2-selected-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: rgba(17, 233, 161, 0.09);
    border: 1px solid rgba(17, 233, 161, 0.24);
    font-weight: 950;
    transition: 0.2s ease;
}

.rank-v2-current-icon {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    border-radius: 23px;
    font-size: 23px;
}

.rank-v2-selected-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 18px;
    font-size: 17px;
}

.rank-v2-current-info {
    min-width: 0;
}

    .rank-v2-current-info > span,
    .rank-v2-next-rank > span,
    .rank-v2-volume-box span,
    .rank-v2-progress-footer span {
        display: block;
        color: var(--muted);
        font-size: 11px;
    }

    .rank-v2-current-info > strong {
        display: block;
        margin-top: 5px;
        color: var(--primary);
        font-size: clamp(28px, 3vw, 40px);
        font-weight: 950;
        overflow-wrap: anywhere;
    }

    .rank-v2-current-info p {
        margin: 8px 0 0;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.55;
    }

.rank-v2-volume-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 13px;
    padding: 15px 17px;
    background: #0d131b;
    border: 1px solid var(--border);
    border-radius: 15px;
}

    .rank-v2-volume-box strong {
        display: block;
        margin-top: 6px;
        color: var(--text);
        font-size: 21px;
        font-weight: 900;
    }

.rank-v2-volume-label {
    padding: 6px 10px;
    color: var(--primary) !important;
    background: rgba(17, 233, 161, 0.06);
    border: 1px solid rgba(17, 233, 161, 0.18);
    border-radius: 999px;
    text-align: center;
}

.rank-v2-next-rank {
    padding: 18px;
    background: #0d131b;
    border: 1px solid var(--border);
    border-radius: 17px;
}

    .rank-v2-next-rank strong {
        display: block;
        margin-top: 6px;
        color: var(--primary);
        font-size: 29px;
        font-weight: 950;
    }

.rank-v2-progress-track {
    width: 100%;
    height: 11px;
    margin-top: 16px;
    overflow: hidden;
    background: #080c11;
    border: 1px solid var(--border);
    border-radius: 999px;
}

.rank-v2-progress-bar {
    height: 100%;
    min-width: 0;
    background: linear-gradient( 90deg, #0ebd84, var(--primary) );
    border-radius: 999px;
    transition: width 0.45s ease;
}

.rank-v2-progress-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

    .rank-v2-progress-footer > div {
        min-width: 0;
        padding: 13px 14px;
        background: #0d131b;
        border: 1px solid var(--border);
        border-radius: 14px;
    }

    .rank-v2-progress-footer strong {
        display: block;
        margin-top: 6px;
        color: var(--text);
        font-size: 15px;
        font-weight: 900;
        overflow-wrap: anywhere;
    }

.rank-v2-progress-target {
    text-align: right;
}

.rank-v2-progress-description {
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.rank-v2-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.rank-v2-benefit-card {
    min-width: 0;
    min-height: 98px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    background: #0d131b;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: 0.2s ease;
}

    .rank-v2-benefit-card:hover {
        border-color: rgba(17, 233, 161, 0.27);
        transform: translateY(-1px);
    }

.rank-v2-benefit-number {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: rgba(17, 233, 161, 0.08);
    border: 1px solid rgba(17, 233, 161, 0.2);
    border-radius: 13px;
    font-size: 10px;
    font-weight: 900;
}

.rank-v2-benefit-card div {
    min-width: 0;
}

    .rank-v2-benefit-card div > span {
        display: block;
        color: var(--muted);
        font-size: 11px;
    }

.rank-v2-benefit-card strong {
    display: block;
    margin-top: 6px;
    color: var(--text);
    font-size: 20px;
    font-weight: 900;
}

.rank-v2-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 11px;
}

.rank-v2-level-card {
    --rank-accent: var(--primary);
    min-width: 0;
    min-height: 228px;
    display: flex;
    flex-direction: column;
    padding: 15px;
    color: var(--text);
    text-align: left;
    background: linear-gradient( 145deg, color-mix( in srgb, var(--rank-accent) 7%, #0d131b ), #0d131b 62% );
    border: 1px solid var(--border);
    border-radius: 17px;
    cursor: pointer;
    transition: 0.22s ease;
}

    .rank-v2-level-card[data-rank-name="basic"] {
        --rank-accent: #94a3b8;
    }

    .rank-v2-level-card[data-rank-name="bronze"] {
        --rank-accent: #c98a55;
    }

    .rank-v2-level-card[data-rank-name="silver"] {
        --rank-accent: #cbd5e1;
    }

    .rank-v2-level-card[data-rank-name="gold"] {
        --rank-accent: #f6c96f;
    }

    .rank-v2-level-card[data-rank-name="diamond"] {
        --rank-accent: #7dd3fc;
    }

    .rank-v2-level-card:hover {
        border-color: color-mix( in srgb, var(--rank-accent) 55%, transparent );
        transform: translateY(-3px);
    }

    .rank-v2-level-card.selected {
        border-color: var(--rank-accent);
        box-shadow: 0 0 0 1px color-mix( in srgb, var(--rank-accent) 20%, transparent ), 0 14px 34px rgba(0, 0, 0, 0.2);
    }

    .rank-v2-level-card.locked {
        opacity: 0.72;
    }

.rank-v2-level-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
}

.rank-v2-level-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--rank-accent);
    background: color-mix( in srgb, var(--rank-accent) 10%, transparent );
    border: 1px solid color-mix( in srgb, var(--rank-accent) 30%, transparent );
    border-radius: 14px;
    font-size: 12px;
    font-weight: 950;
}

.rank-v2-level-badge {
    min-height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    color: var(--rank-accent);
    background: color-mix( in srgb, var(--rank-accent) 8%, transparent );
    border: 1px solid color-mix( in srgb, var(--rank-accent) 24%, transparent );
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.rank-v2-level-name {
    margin-top: 15px;
}

    .rank-v2-level-name span,
    .rank-v2-level-volume span,
    .rank-v2-level-preview span {
        display: block;
        color: var(--muted);
        font-size: 10px;
    }

    .rank-v2-level-name strong {
        display: block;
        margin-top: 4px;
        color: var(--rank-accent);
        font-size: 22px;
        font-weight: 950;
    }

.rank-v2-level-volume {
    margin-top: 14px;
    padding: 11px;
    background: rgba(3, 7, 10, 0.34);
    border: 1px solid var(--border);
    border-radius: 12px;
}

    .rank-v2-level-volume strong {
        display: block;
        margin-top: 5px;
        color: var(--text);
        font-size: 14px;
        font-weight: 900;
    }

.rank-v2-level-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: auto;
    padding-top: 12px;
}

    .rank-v2-level-preview > div {
        min-width: 0;
    }

    .rank-v2-level-preview strong {
        display: block;
        margin-top: 4px;
        color: var(--rank-accent);
        font-size: 13px;
        font-weight: 900;
    }

.rank-v2-selected-detail {
    --rank-accent: var(--primary);
    margin-top: 16px;
    padding: 20px;
    background: linear-gradient( 135deg, rgba(17, 233, 161, 0.055), #0b1118 );
    border: 1px solid rgba(17, 233, 161, 0.18);
    border-radius: 18px;
}

.rank-v2-selected-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

    .rank-v2-selected-title > div:last-child {
        min-width: 0;
    }

    .rank-v2-selected-title span {
        display: block;
        color: var(--muted);
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.07em;
    }

    .rank-v2-selected-title h3 {
        margin: 5px 0 0;
        color: var(--primary);
        font-size: 25px;
        font-weight: 950;
    }

.rank-v2-selected-description {
    margin: 16px 0;
    color: var(--muted);
    line-height: 1.75;
}

.rank-v2-selected-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
}

    .rank-v2-selected-metrics > div {
        min-width: 0;
        padding: 13px;
        background: #0b0f14;
        border: 1px solid var(--border);
        border-radius: 14px;
    }

    .rank-v2-selected-metrics span {
        display: block;
        min-height: 30px;
        color: var(--muted);
        font-size: 10px;
        line-height: 1.4;
    }

    .rank-v2-selected-metrics strong {
        display: block;
        margin-top: 6px;
        color: var(--primary);
        font-size: 15px;
        font-weight: 900;
        overflow-wrap: anywhere;
    }

.rank-v2-selected-progress {
    margin-top: 15px;
    padding: 15px;
    background: #0b0f14;
    border: 1px solid var(--border);
    border-radius: 15px;
}

.rank-v2-selected-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .rank-v2-selected-progress-header span {
        color: var(--muted);
        font-size: 11px;
    }

    .rank-v2-selected-progress-header strong {
        color: var(--primary);
        font-size: 13px;
        font-weight: 900;
    }

.rank-v2-selected-progress p {
    margin: 11px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 1180px) {
    .rank-v2-cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rank-v2-selected-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .rank-v2-overview-grid {
        grid-template-columns: 1fr;
    }

    .rank-v2-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .rank-v2-page,
    .rank-v2-content {
        gap: 14px;
    }

    .rank-v2-header {
        min-height: auto;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
    }

    .rank-v2-header-link {
        width: 100%;
    }

    .rank-v2-current-card,
    .rank-v2-progress-card,
    .rank-v2-benefits-section,
    .rank-v2-levels-section {
        padding: 17px;
    }

    .rank-v2-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rank-v2-selected-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .rank-v2-current-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .rank-v2-volume-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .rank-v2-progress-footer,
    .rank-v2-benefits-grid,
    .rank-v2-cards-grid,
    .rank-v2-selected-metrics {
        grid-template-columns: 1fr;
    }

    .rank-v2-progress-target {
        text-align: left;
    }

    .rank-v2-selected-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .rank-v2-level-card {
        min-height: 205px;
    }
}
/*Reports*/
.reports-page {
    display: grid;
    gap: 24px;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.report-summary-card {
    display: grid;
    gap: 8px;
}

    .report-summary-card span {
        color: #94A3B8;
        font-size: 14px;
    }

    .report-summary-card strong {
        color: #FFFFFF;
        font-size: 24px;
        font-weight: 700;
    }

.reports-header {
    margin-bottom: 20px;
}

    .reports-header h3 {
        color: #FFFFFF;
        margin-bottom: 6px;
    }

    .reports-header p {
        color: #94A3B8;
        margin: 0;
        line-height: 1.7;
    }

.reports-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.report-tab {
    border: 1px solid #1C2532;
    background: #0B0F14;
    color: #94A3B8;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s ease;
}

    .report-tab:hover,
    .report-tab.active {
        color: #11E9A1;
        border-color: rgba(17, 233, 161, 0.45);
        background: rgba(17, 233, 161, 0.08);
    }

.reports-message {
    color: #94A3B8;
    font-size: 14px;
}

.reports-table-wrapper {
    overflow-x: auto;
}

.reports-table {
    width: 100%;
    border-collapse: collapse;
}

    .reports-table th {
        color: #94A3B8;
        font-size: 13px;
        font-weight: 500;
        padding: 14px 12px;
        border-bottom: 1px solid #1C2532;
    }

    .reports-table td {
        color: #FFFFFF;
        padding: 16px 12px;
        border-bottom: 1px solid #1C2532;
        font-size: 14px;
    }

.report-status {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

    .report-status.approved,
    .report-status.success {
        color: #11E9A1;
        background: rgba(17, 233, 161, 0.08);
        border: 1px solid rgba(17, 233, 161, 0.25);
    }

    .report-status.pending {
        color: #facc15;
        background: rgba(250, 204, 21, 0.08);
        border: 1px solid rgba(250, 204, 21, 0.25);
    }

    .report-status.rejected {
        color: #ff6b6b;
        background: rgba(255, 107, 107, 0.08);
        border: 1px solid rgba(255, 107, 107, 0.25);
    }

    .report-status.neutral {
        color: #94A3B8;
        background: rgba(148, 163, 184, 0.08);
        border: 1px solid #1C2532;
    }

@media (max-width: 992px) {
    .reports-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .reports-grid {
        grid-template-columns: 1fr;
    }
}
/*Tickets*/
.tickets-page {
    display: grid;
    gap: 24px;
}

.tickets-header {
    margin-bottom: 20px;
}

    .tickets-header h3 {
        color: #FFFFFF;
        margin-bottom: 6px;
    }

    .tickets-header p {
        color: #94A3B8;
        margin: 0;
        line-height: 1.7;
    }

.ticket-form,
.ticket-reply-form {
    display: grid;
    gap: 16px;
}

.ticket-form {
    max-width: 680px;
}

.ticket-form-group {
    display: grid;
    gap: 8px;
}

    .ticket-form-group label {
        color: #FFFFFF;
        font-size: 14px;
        font-weight: 500;
    }

.ticket-textarea,
.ticket-reply-input {
    min-height: 120px;
    resize: vertical;
}

.ticket-message {
    color: #94A3B8;
    font-size: 14px;
}

    .ticket-message.success {
        color: #11E9A1;
        background: rgba(17, 233, 161, 0.08);
        border: 1px solid rgba(17, 233, 161, 0.25);
        padding: 14px 16px;
        border-radius: 14px;
        margin-bottom: 18px;
    }

    .ticket-message.error {
        color: #ff6b6b;
        background: rgba(255, 107, 107, 0.08);
        border: 1px solid rgba(255, 107, 107, 0.25);
        padding: 14px 16px;
        border-radius: 14px;
        margin-bottom: 18px;
    }

.tickets-list {
    display: grid;
    gap: 18px;
}

.ticket-item {
    background: #0B0F14;
    border: 1px solid #1C2532;
    border-radius: 18px;
    padding: 18px;
}

.ticket-item-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

    .ticket-item-header h4 {
        color: #FFFFFF;
        margin: 0 0 6px 0;
        font-size: 18px;
    }

    .ticket-item-header span {
        color: #94A3B8;
        font-size: 13px;
    }

.ticket-status {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

    .ticket-status.open {
        color: #11E9A1;
        background: rgba(17, 233, 161, 0.08);
        border: 1px solid rgba(17, 233, 161, 0.25);
    }

    .ticket-status.closed {
        color: #94A3B8;
        background: rgba(148, 163, 184, 0.08);
        border: 1px solid #1C2532;
    }

.ticket-messages {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.ticket-message-item {
    border: 1px solid #1C2532;
    border-radius: 14px;
    padding: 14px;
    background: #121821;
}

.ticket-message-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

    .ticket-message-meta strong {
        color: #11E9A1;
        font-size: 13px;
    }

    .ticket-message-meta span {
        color: #94A3B8;
        font-size: 12px;
    }

.ticket-message-item p {
    color: #FFFFFF;
    margin: 0;
    line-height: 1.7;
    font-size: 14px;
}

@media (max-width: 576px) {
    .ticket-item-header,
    .ticket-message-meta {
        flex-direction: column;
    }
}
/*Profile*/
.profile-page {
    display: grid;
    gap: 24px;
}

.profile-header {
    margin-bottom: 20px;
}

    .profile-header h3 {
        color: #FFFFFF;
        margin-bottom: 6px;
    }

    .profile-header p {
        color: #94A3B8;
        margin: 0;
        line-height: 1.7;
    }

.profile-message {
    color: #94A3B8;
    font-size: 14px;
}

.profile-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.profile-info-item {
    background: #0B0F14;
    border: 1px solid #1C2532;
    border-radius: 16px;
    padding: 16px;
}

    .profile-info-item span {
        display: block;
        color: #94A3B8;
        font-size: 13px;
        margin-bottom: 8px;
    }

    .profile-info-item strong {
        color: #FFFFFF;
        font-size: 16px;
    }

.profile-status.pending {
    color: #facc15;
}

.profile-status.approved {
    color: #11E9A1;
}

.profile-status.rejected {
    color: #ff6b6b;
}

.profile-form {
    display: grid;
    gap: 18px;
    max-width: 680px;
}

.profile-form-group {
    display: grid;
    gap: 8px;
}

    .profile-form-group label {
        color: #FFFFFF;
        font-size: 14px;
        font-weight: 500;
    }

.profile-alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 14px;
}

    .profile-alert.success {
        color: #11E9A1;
        background: rgba(17, 233, 161, 0.08);
        border: 1px solid rgba(17, 233, 161, 0.25);
    }

    .profile-alert.error {
        color: #ff6b6b;
        background: rgba(255, 107, 107, 0.08);
        border: 1px solid rgba(255, 107, 107, 0.25);
    }

@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}
/*Systemsettings*/
.admin-settings-form {
    display: grid;
    gap: 18px;
}

.admin-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.admin-setting-group {
    display: grid;
    gap: 8px;
}

    .admin-setting-group label {
        color: #FFFFFF;
        font-size: 14px;
        font-weight: 500;
    }

@media (max-width: 768px) {
    .admin-settings-grid {
        grid-template-columns: 1fr;
    }
}
/*transferMAX*/
.transfer-amount-wrapper {
    position: relative;
}

.transfer-amount-input {
    padding-right: 78px !important;
}

.transfer-max-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(17, 233, 161, 0.12);
    color: #11E9A1;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .5px;
    cursor: pointer;
    transition: 0.2s ease;
}

    .transfer-max-btn:hover {
        background: rgba(17, 233, 161, 0.24);
    }
/* Fix Chrome autofill white background in admin settings */
.panel-input,
.panel-input:focus,
.admin-input,
.admin-input:focus,
select.panel-input,
select.panel-input:focus {
    background: #0B1118 !important;
    color: #FFFFFF !important;
    border-color: #1C2532 !important;
    caret-color: #FFFFFF !important;
}

    .panel-input::placeholder,
    .admin-input::placeholder {
        color: rgba(148, 163, 184, 0.55) !important;
    }

    .panel-input:-webkit-autofill,
    .panel-input:-webkit-autofill:hover,
    .panel-input:-webkit-autofill:focus,
    .panel-input:-webkit-autofill:active,
    .admin-input:-webkit-autofill,
    .admin-input:-webkit-autofill:hover,
    .admin-input:-webkit-autofill:focus,
    .admin-input:-webkit-autofill:active {
        -webkit-text-fill-color: #FFFFFF !important;
        -webkit-box-shadow: 0 0 0 1000px #0B1118 inset !important;
        box-shadow: 0 0 0 1000px #0B1118 inset !important;
        caret-color: #FFFFFF !important;
        border: 1px solid #1C2532 !important;
        transition: background-color 9999s ease-in-out 0s;
    }

        .panel-input:-webkit-autofill::first-line,
        .admin-input:-webkit-autofill::first-line {
            color: #FFFFFF !important;
            font-size: inherit !important;
            font-family: inherit !important;
        }

    /* Number input arrows should not force light styling */
    .panel-input[type="number"] {
        color-scheme: dark;
    }

    /* Select dark theme */
    select.panel-input option {
        background: #0B1118;
        color: #FFFFFF;
    }
    /*capacity_users*/
.transfer-capacity-box {
    border: 1px solid #1C2532;
    background: radial-gradient(circle at 100% 0%, rgba(17, 233, 161, 0.08), transparent 32%), #0B1118;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 18px;
}

.transfer-capacity-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

    .transfer-capacity-header span {
        display: block;
        color: #94A3B8;
        font-size: 12px;
        margin-bottom: 4px;
    }

    .transfer-capacity-header strong {
        color: #FFFFFF;
        font-size: 15px;
        font-weight: 900;
    }

    .transfer-capacity-header button {
        border: 1px solid #1C2532;
        background: #121821;
        color: #94A3B8;
        border-radius: 12px;
        height: 34px;
        padding: 0 12px;
        font-size: 12px;
        font-weight: 800;
        transition: 0.2s ease;
    }

        .transfer-capacity-header button:hover {
            color: #11E9A1;
            border-color: #11E9A1;
        }

.transfer-capacity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

    .transfer-capacity-grid div {
        border: 1px solid #1C2532;
        background: #121821;
        border-radius: 14px;
        padding: 12px;
    }

        .transfer-capacity-grid div.highlight {
            border-color: rgba(17, 233, 161, 0.22);
            background: rgba(17, 233, 161, 0.06);
        }

    .transfer-capacity-grid span {
        display: block;
        color: #94A3B8;
        font-size: 11px;
        margin-bottom: 5px;
    }

    .transfer-capacity-grid strong {
        display: block;
        color: #FFFFFF;
        font-size: 13px;
        font-weight: 900;
        direction: ltr;
    }

    .transfer-capacity-grid div.highlight strong {
        color: #11E9A1;
    }

.transfer-capacity-progress {
    width: 100%;
    height: 8px;
    background: #121821;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}

    .transfer-capacity-progress div {
        height: 100%;
        width: 0;
        background: linear-gradient(90deg, #11E9A1, #18F5AC);
        border-radius: inherit;
        transition: width 0.3s ease;
    }

.transfer-capacity-warning {
    margin: 0;
    color: #94A3B8;
    font-size: 12px;
    line-height: 1.6;
}

    .transfer-capacity-warning.danger {
        color: #F87171;
    }

@media (max-width: 576px) {
    .transfer-capacity-grid {
        grid-template-columns: 1fr;
    }

    .transfer-capacity-header {
        flex-direction: column;
    }

        .transfer-capacity-header button {
            width: 100%;
        }
}

/*dashboard-capacity*/
.dashboard-capacity-card {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 100% 0%, rgba(17, 233, 161, 0.13), transparent 34%), #121821;
}

    .dashboard-capacity-card::before {
        content: "";
        position: absolute;
        width: 180px;
        height: 180px;
        right: -70px;
        top: -70px;
        border-radius: 999px;
        background: rgba(17, 233, 161, 0.08);
        filter: blur(4px);
        pointer-events: none;
    }

    .dashboard-capacity-card > * {
        position: relative;
        z-index: 1;
    }

.dashboard-capacity-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.dashboard-capacity-eyebrow {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(17, 233, 161, 0.08);
    border: 1px solid rgba(17, 233, 161, 0.18);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 12px;
}

.dashboard-capacity-header h3 {
    margin: 0 0 8px;
    color: var(--text);
    font-weight: 950;
}

.dashboard-capacity-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.dashboard-capacity-action {
    min-width: 150px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 14px;
    background: var(--primary);
    color: #0B0F14;
    font-weight: 950;
    padding: 0 16px;
    transition: 0.2s ease;
}

    .dashboard-capacity-action:hover {
        color: #0B0F14;
        background: #18F5AC;
        box-shadow: 0 0 24px rgba(17, 233, 161, 0.22);
    }

.dashboard-capacity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

    .dashboard-capacity-grid div {
        border: 1px solid var(--border);
        background: #0B1118;
        border-radius: 16px;
        padding: 16px;
    }

        .dashboard-capacity-grid div.highlight {
            border-color: rgba(17, 233, 161, 0.24);
            background: rgba(17, 233, 161, 0.06);
        }

    .dashboard-capacity-grid span {
        display: block;
        color: var(--muted);
        font-size: 12px;
        margin-bottom: 8px;
    }

    .dashboard-capacity-grid strong {
        display: block;
        color: var(--text);
        font-size: 18px;
        font-weight: 950;
        direction: ltr;
    }

    .dashboard-capacity-grid .highlight strong {
        color: var(--primary);
    }

.dashboard-capacity-progress {
    width: 100%;
    height: 10px;
    background: #0B1118;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}

    .dashboard-capacity-progress div {
        height: 100%;
        width: 0;
        background: linear-gradient(90deg, #11E9A1, #18F5AC);
        border-radius: inherit;
        transition: width 0.35s ease;
    }

.dashboard-capacity-footer {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 13px;
}

.dashboard-capacity-card.not-configured .dashboard-capacity-eyebrow,
.dashboard-capacity-card.inactive .dashboard-capacity-eyebrow,
.dashboard-capacity-card.full .dashboard-capacity-eyebrow {
    color: #F87171;
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}

.dashboard-capacity-card.not-configured .dashboard-capacity-grid .highlight strong,
.dashboard-capacity-card.inactive .dashboard-capacity-grid .highlight strong,
.dashboard-capacity-card.full .dashboard-capacity-grid .highlight strong,
.dashboard-capacity-card.not-configured #dashboardCapacityStatus,
.dashboard-capacity-card.inactive #dashboardCapacityStatus,
.dashboard-capacity-card.full #dashboardCapacityStatus {
    color: #F87171;
}

.dashboard-capacity-card.not-configured .dashboard-capacity-progress div,
.dashboard-capacity-card.inactive .dashboard-capacity-progress div,
.dashboard-capacity-card.full .dashboard-capacity-progress div {
    background: #F87171;
}

@media (max-width: 768px) {
    .dashboard-capacity-header {
        flex-direction: column;
    }

    .dashboard-capacity-action {
        width: 100%;
    }

    .dashboard-capacity-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-capacity-footer {
        flex-direction: column;
        gap: 8px;
    }
}
/*.panel-primary-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1 !important;
    min-height: 56px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.kyc-reject-reason-box {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(239, 68, 68, 0.22);
    background: radial-gradient(circle at 100% 0%, rgba(239, 68, 68, 0.10), transparent 32%), rgba(239, 68, 68, 0.07);
}

    .kyc-reject-reason-box strong {
        display: block;
        color: #F87171;
        font-size: 13px;
        font-weight: 950;
        margin-bottom: 7px;
    }

    .kyc-reject-reason-box p {
        margin: 0;
        color: #FFFFFF;
        font-size: 14px;
        line-height: 1.7;
    }
.kyc-file-picker {
    width: 100%;
    min-height: 60px;
    border: 1px solid #1C2532;
    background: radial-gradient(circle at 100% 0%, rgba(17, 233, 161, 0.06), transparent 30%), #0B1118;
    border-radius: 16px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.kyc-file-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.kyc-file-btn {
    min-width: 140px;
    height: 44px;
    border-radius: 13px;
    border: 1px solid rgba(17, 233, 161, 0.28);
    background: rgba(17, 233, 161, 0.10);
    color: #11E9A1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    cursor: pointer;
    transition: 0.2s ease;
    margin: 0;
    user-select: none;
}

    .kyc-file-btn:hover {
        background: #11E9A1;
        color: #0B0F14;
        box-shadow: 0 0 22px rgba(17, 233, 161, 0.22);
    }

.kyc-file-name {
    flex: 1;
    min-width: 0;
    color: #94A3B8;
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: ltr;
}

    .kyc-file-name.has-file {
        color: #FFFFFF;
    }

@media (max-width: 576px) {
    .kyc-file-picker {
        flex-direction: column;
        align-items: stretch;
    }

    .kyc-file-btn {
        width: 100%;
    }

    .kyc-file-name {
        text-align: center;
    }
}
#submitKycBtn.kyc-submit-hidden {
    display: none !important;
}*/
/* Profile KYC */
#submitKycBtn.kyc-submit-hidden,
#submitKycBtn[hidden] {
    display: none !important;
}

#submitKycBtn {
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1 !important;
}

.kyc-file-picker {
    width: 100%;
    min-height: 60px;
    border: 1px solid #1C2532;
    background: radial-gradient(circle at 100% 0%, rgba(17, 233, 161, 0.06), transparent 30%), #0B1118;
    border-radius: 16px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.kyc-file-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.kyc-file-btn {
    min-width: 140px;
    height: 44px;
    border-radius: 13px;
    border: 1px solid rgba(17, 233, 161, 0.28);
    background: rgba(17, 233, 161, 0.10);
    color: #11E9A1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    cursor: pointer;
    transition: 0.2s ease;
    margin: 0;
    user-select: none;
}

    .kyc-file-btn:hover {
        background: #11E9A1;
        color: #0B0F14;
        box-shadow: 0 0 22px rgba(17, 233, 161, 0.22);
    }

.kyc-file-name {
    flex: 1;
    min-width: 0;
    color: #94A3B8;
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: ltr;
}

    .kyc-file-name.has-file {
        color: #FFFFFF;
    }

.kyc-reject-reason-box {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(239, 68, 68, 0.22);
    background: radial-gradient(circle at 100% 0%, rgba(239, 68, 68, 0.10), transparent 32%), rgba(239, 68, 68, 0.07);
}

    .kyc-reject-reason-box strong {
        display: block;
        color: #F87171;
        font-size: 13px;
        font-weight: 950;
        margin-bottom: 7px;
    }

    .kyc-reject-reason-box p {
        margin: 0;
        color: #FFFFFF;
        font-size: 14px;
        line-height: 1.7;
    }

@media (max-width: 576px) {
    .kyc-file-picker {
        flex-direction: column;
        align-items: stretch;
    }

    .kyc-file-btn {
        width: 100%;
    }

    .kyc-file-name {
        text-align: center;
    }
}
/* Compact Transfer Modal */
#transferModal {
    align-items: center !important;
    justify-content: center !important;
    padding: 18px !important;
}

    #transferModal .panel-modal,
    #transferModal .modal-content,
    #transferModal .transfer-modal-content {
        width: min(560px, calc(100vw - 28px)) !important;
        max-height: calc(100vh - 36px) !important;
        overflow: hidden !important;
        border-radius: 22px !important;
        display: flex !important;
        flex-direction: column !important;
    }

    #transferModal .modal-body,
    #transferModal .transfer-modal-body {
        overflow-y: auto !important;
        padding: 22px !important;
        flex: 1 1 auto !important;
    }

        #transferModal .modal-body::-webkit-scrollbar,
        #transferModal .transfer-modal-body::-webkit-scrollbar {
            width: 6px;
        }

        #transferModal .modal-body::-webkit-scrollbar-thumb,
        #transferModal .transfer-modal-body::-webkit-scrollbar-thumb {
            background: #1C2532;
            border-radius: 999px;
        }

    #transferModal .modal-header,
    #transferModal .transfer-modal-header {
        padding: 18px 22px !important;
        flex-shrink: 0 !important;
    }

    #transferModal .modal-footer,
    #transferModal .transfer-modal-actions {
        position: sticky !important;
        bottom: 0 !important;
        z-index: 5 !important;
        background: #121821 !important;
        border-top: 1px solid #1C2532 !important;
        padding: 14px 22px !important;
        flex-shrink: 0 !important;
    }

    /* Compact transfer form fields */
    #transferModal label {
        margin-bottom: 7px !important;
        font-size: 14px !important;
    }

    #transferModal .panel-input,
    #transferModal select,
    #transferModal input,
    #transferModal textarea {
        min-height: 48px !important;
        height: 48px !important;
        font-size: 15px !important;
        border-radius: 14px !important;
    }

    #transferModal textarea {
        min-height: 54px !important;
        height: 54px !important;
    }

    #transferModal .mb-3,
    #transferModal .form-group,
    #transferModal .transfer-form-group {
        margin-bottom: 14px !important;
    }
    /* Compact investment capacity box inside transfer modal */
    #transferModal .transfer-capacity-box {
        padding: 14px !important;
        margin-bottom: 16px !important;
        border-radius: 18px !important;
    }

    #transferModal .transfer-capacity-header {
        margin-bottom: 12px !important;
    }

        #transferModal .transfer-capacity-header strong {
            font-size: 16px !important;
        }

        #transferModal .transfer-capacity-header button {
            height: 34px !important;
            padding: 0 12px !important;
            font-size: 12px !important;
        }

    #transferModal .transfer-capacity-grid {
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

        #transferModal .transfer-capacity-grid div {
            padding: 10px !important;
            border-radius: 14px !important;
        }

        #transferModal .transfer-capacity-grid span {
            font-size: 11px !important;
            margin-bottom: 4px !important;
        }

        #transferModal .transfer-capacity-grid strong {
            font-size: 13px !important;
        }

    #transferModal .transfer-capacity-progress {
        height: 7px !important;
        margin-bottom: 8px !important;
    }

    #transferModal .transfer-capacity-warning {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }
    #transferModal #maxTransferBtn {
        height: 36px !important;
        min-width: 64px !important;
        padding: 0 14px !important;
        border-radius: 999px !important;
        font-size: 13px !important;
    }
@media (max-height: 760px) {
    #transferModal .modal-body,
    #transferModal .transfer-modal-body {
        padding: 16px 20px !important;
    }

    #transferModal .modal-header,
    #transferModal .transfer-modal-header {
        padding: 14px 20px !important;
    }

    #transferModal .modal-footer,
    #transferModal .transfer-modal-actions {
        padding: 12px 20px !important;
    }

    #transferModal .transfer-capacity-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    #transferModal .transfer-capacity-box {
        padding: 12px !important;
    }

    #transferModal .panel-input,
    #transferModal select,
    #transferModal input {
        height: 44px !important;
        min-height: 44px !important;
    }
}
/* Compact Wallet Transfer Modal */
.transfer-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.transfer-modal-shell {
    width: min(560px, calc(100vw - 28px));
    max-height: calc(100vh - 36px);
    background: radial-gradient(circle at 100% 0%, rgba(17, 233, 161, 0.08), transparent 34%), #121821;
    border: 1px solid #1C2532;
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.transfer-modal-header {
    flex-shrink: 0;
    padding: 16px 20px;
    border-bottom: 1px solid #1C2532;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

    .transfer-modal-header h4 {
        margin: 0 0 5px;
        color: #FFFFFF;
        font-size: 19px;
        font-weight: 950;
    }

    .transfer-modal-header p {
        margin: 0;
        color: #94A3B8;
        font-size: 13px;
        line-height: 1.5;
    }

.transfer-modal-close {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    border: 1px solid #1C2532;
    background: #0B1118;
    color: #94A3B8;
    font-size: 24px;
    line-height: 1;
    transition: 0.2s ease;
}

    .transfer-modal-close:hover {
        color: #11E9A1;
        border-color: #11E9A1;
    }

.transfer-modal-form {
    min-height: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.transfer-modal-body {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px;
}

    .transfer-modal-body::-webkit-scrollbar {
        width: 6px;
    }

    .transfer-modal-body::-webkit-scrollbar-thumb {
        background: #1C2532;
        border-radius: 999px;
    }

.transfer-modal-footer {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 3;
    background: #121821;
    border-top: 1px solid #1C2532;
    padding: 14px 20px;
    display: flex;
    gap: 12px;
}

.transfer-field {
    margin-bottom: 14px;
}

    .transfer-field label {
        display: block;
        color: #FFFFFF;
        font-weight: 850;
        font-size: 14px;
        margin-bottom: 7px;
    }

.transfer-modal-body .panel-input,
.transfer-modal-body select,
.transfer-modal-body input {
    height: 48px !important;
    min-height: 48px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
}

.transfer-amount-wrapper {
    position: relative;
}

.transfer-amount-input {
    padding-right: 88px !important;
}

.transfer-max-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 34px;
    min-width: 64px;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 233, 161, 0.13);
    color: #11E9A1;
    font-size: 13px;
    font-weight: 950;
    transition: 0.2s ease;
}

    .transfer-max-btn:hover {
        background: #11E9A1;
        color: #0B0F14;
    }

.transfer-cancel-btn,
.transfer-submit-btn {
    height: 46px;
    border-radius: 14px;
    padding: 0 18px;
    font-weight: 950;
    transition: 0.2s ease;
}

.transfer-cancel-btn {
    flex: 1;
    border: 1px solid #1C2532;
    background: #0B1118;
    color: #FFFFFF;
}

    .transfer-cancel-btn:hover {
        color: #11E9A1;
        border-color: #11E9A1;
    }

.transfer-submit-btn {
    flex: 2;
    border: 0;
    background: #11E9A1;
    color: #0B0F14;
}

    .transfer-submit-btn:hover {
        background: #18F5AC;
        box-shadow: 0 0 22px rgba(17, 233, 161, 0.20);
    }

    .transfer-submit-btn:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

/* Compact investment capacity inside modal */
.transfer-modal-shell .transfer-capacity-box {
    padding: 13px;
    margin-bottom: 14px;
    border-radius: 17px;
}

.transfer-modal-shell .transfer-capacity-header {
    margin-bottom: 11px;
}

    .transfer-modal-shell .transfer-capacity-header strong {
        font-size: 16px;
    }

    .transfer-modal-shell .transfer-capacity-header button {
        height: 34px;
        padding: 0 12px;
        font-size: 12px;
    }

.transfer-modal-shell .transfer-capacity-grid {
    gap: 8px;
    margin-bottom: 11px;
}

    .transfer-modal-shell .transfer-capacity-grid div {
        padding: 10px;
        border-radius: 14px;
    }

    .transfer-modal-shell .transfer-capacity-grid span {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .transfer-modal-shell .transfer-capacity-grid strong {
        font-size: 13px;
    }

.transfer-modal-shell .transfer-capacity-progress {
    height: 7px;
    margin-bottom: 8px;
}

.transfer-modal-shell .transfer-capacity-warning {
    font-size: 12px;
    line-height: 1.5;
}

@media (max-height: 760px) {
    .transfer-modal-shell {
        max-height: calc(100vh - 24px);
    }

    .transfer-modal-header {
        padding: 13px 18px;
    }

    .transfer-modal-body {
        padding: 14px 18px;
    }

    .transfer-modal-footer {
        padding: 12px 18px;
    }

    .transfer-field {
        margin-bottom: 11px;
    }

    .transfer-modal-body .panel-input,
    .transfer-modal-body select,
    .transfer-modal-body input {
        height: 44px !important;
        min-height: 44px !important;
    }

    .transfer-modal-shell .transfer-capacity-box {
        padding: 11px;
    }
}

@media (max-width: 576px) {
    .transfer-modal-backdrop {
        padding: 10px;
    }

    .transfer-modal-shell {
        width: 100%;
        max-height: calc(100vh - 20px);
        border-radius: 18px;
    }

    .transfer-modal-footer {
        flex-direction: column;
    }

    .transfer-cancel-btn,
    .transfer-submit-btn {
        width: 100%;
        flex: unset;
    }

    .transfer-modal-shell .transfer-capacity-grid {
        grid-template-columns: 1fr;
    }
}
/* User-side capacity: show only Remaining, not Total/Used */
.dashboard-capacity-remaining-box,
.transfer-capacity-remaining-box {
    border: 1px solid rgba(17, 233, 161, 0.24);
    background: radial-gradient(circle at 100% 0%, rgba(17, 233, 161, 0.12), transparent 34%), #0B1118;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 14px;
}

    .dashboard-capacity-remaining-box span,
    .transfer-capacity-remaining-box span {
        display: block;
        color: #94A3B8;
        font-size: 12px;
        font-weight: 800;
        margin-bottom: 8px;
    }

    .dashboard-capacity-remaining-box strong,
    .transfer-capacity-remaining-box strong {
        display: block;
        color: #11E9A1;
        font-size: 26px;
        font-weight: 950;
        direction: ltr;
    }

.transfer-modal-shell .transfer-capacity-remaining-box {
    padding: 13px;
    border-radius: 16px;
    margin-bottom: 10px;
}

    .transfer-modal-shell .transfer-capacity-remaining-box strong {
        font-size: 20px;
    }

@media (max-width: 576px) {
    .dashboard-capacity-remaining-box strong,
    .transfer-capacity-remaining-box strong {
        font-size: 22px;
    }
}

/* Wallet transfer final confirm modal */
.transfer-confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10020;
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.transfer-confirm-shell {
    width: min(500px, calc(100vw - 28px));
    max-height: calc(100vh - 36px);
    background: radial-gradient(circle at 100% 0%, rgba(17, 233, 161, 0.10), transparent 36%), #121821;
    border: 1px solid #1C2532;
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.transfer-confirm-header {
    flex-shrink: 0;
    padding: 18px 20px;
    border-bottom: 1px solid #1C2532;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

    .transfer-confirm-header h4 {
        margin: 0 0 5px;
        color: #FFFFFF;
        font-size: 19px;
        font-weight: 950;
    }

    .transfer-confirm-header p {
        margin: 0;
        color: #94A3B8;
        font-size: 13px;
        line-height: 1.5;
    }

.transfer-confirm-body {
    padding: 18px 20px;
    overflow-y: auto;
}

.transfer-confirm-row {
    min-height: 52px;
    border: 1px solid #1C2532;
    background: #0B1118;
    border-radius: 16px;
    padding: 11px 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .transfer-confirm-row span,
    .transfer-confirm-note span {
        color: #94A3B8;
        font-size: 12px;
        font-weight: 800;
    }

    .transfer-confirm-row strong {
        color: #FFFFFF;
        font-size: 14px;
        font-weight: 950;
        direction: ltr;
        text-align: right;
    }

    .transfer-confirm-row.highlight {
        border-color: rgba(17, 233, 161, 0.28);
        background: radial-gradient(circle at 100% 0%, rgba(17, 233, 161, 0.12), transparent 34%), #0B1118;
    }

        .transfer-confirm-row.highlight strong {
            color: #11E9A1;
            font-size: 18px;
        }

.transfer-confirm-note {
    border: 1px solid #1C2532;
    background: #0B1118;
    border-radius: 16px;
    padding: 13px 14px;
    margin-top: 10px;
}

    .transfer-confirm-note p {
        margin: 8px 0 0;
        color: #FFFFFF;
        font-size: 13px;
        line-height: 1.6;
    }

.transfer-confirm-footer {
    flex-shrink: 0;
    border-top: 1px solid #1C2532;
    background: #121821;
    padding: 14px 20px;
    display: flex;
    gap: 12px;
}

    .transfer-confirm-footer .transfer-cancel-btn {
        flex: 1;
    }

    .transfer-confirm-footer .transfer-submit-btn {
        flex: 2;
    }

/* User-side capacity: show only Remaining, not Total/Used */
.transfer-capacity-remaining-box {
    border: 1px solid rgba(17, 233, 161, 0.24);
    background: radial-gradient(circle at 100% 0%, rgba(17, 233, 161, 0.12), transparent 34%), #0B1118;
    border-radius: 16px;
    padding: 13px;
    margin-bottom: 10px;
}

    .transfer-capacity-remaining-box span {
        display: block;
        color: #94A3B8;
        font-size: 12px;
        font-weight: 800;
        margin-bottom: 8px;
    }

    .transfer-capacity-remaining-box strong {
        display: block;
        color: #11E9A1;
        font-size: 20px;
        font-weight: 950;
        direction: ltr;
    }

@media (max-width: 576px) {
    .transfer-confirm-footer {
        flex-direction: column;
    }

        .transfer-confirm-footer .transfer-cancel-btn,
        .transfer-confirm-footer .transfer-submit-btn {
            width: 100%;
            flex: unset;
        }

    .transfer-confirm-row {
        align-items: flex-start;
        flex-direction: column;
    }

        .transfer-confirm-row strong {
            text-align: left;
        }
}
/* Withdrawal history */
.withdraw-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

    .withdraw-status.pending {
        color: #FBBF24;
        background: rgba(251, 191, 36, 0.08);
        border: 1px solid rgba(251, 191, 36, 0.20);
    }

    .withdraw-status.approved {
        color: #11E9A1;
        background: rgba(17, 233, 161, 0.08);
        border: 1px solid rgba(17, 233, 161, 0.20);
    }

    .withdraw-status.rejected {
        color: #F87171;
        background: rgba(248, 113, 113, 0.08);
        border: 1px solid rgba(248, 113, 113, 0.20);
    }

    .withdraw-status.canceled {
        color: #94A3B8;
        background: rgba(148, 163, 184, 0.08);
        border: 1px solid rgba(148, 163, 184, 0.20);
    }

.withdraw-note {
    display: inline-block;
    max-width: 260px;
    color: #94A3B8;
    font-size: 13px;
    line-height: 1.5;
}

    .withdraw-note.has-note {
        color: #FFFFFF;
    }

.withdrawal-table {
    min-width: 920px;
}

/* Compact sidebar UID */
.sidebar-uid-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 16px 14px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(17, 233, 161, 0.14);
    background: rgba(17, 233, 161, 0.06);
    max-width: fit-content;
}

    .sidebar-uid-chip span {
        color: #94A3B8;
        font-size: 10px;
        font-weight: 800;
        line-height: 1;
        text-transform: uppercase;
        margin: 0;
    }

    .sidebar-uid-chip strong {
        color: #11E9A1;
        font-size: 12px;
        font-weight: 900;
        line-height: 1;
        direction: ltr;
        letter-spacing: 0.2px;
    }

.profile-uid {
    color: #11E9A1 !important;
    direction: ltr;
}
/* Internal Transfer - Receiver Lookup */
.internal-transfer-card {
    position: relative;
    overflow: hidden;
}

.internal-transfer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

    .internal-transfer-header h4 {
        margin: 0 0 6px;
        color: #FFFFFF;
        font-size: 20px;
        font-weight: 950;
    }

    .internal-transfer-header p {
        margin: 0;
        color: #94A3B8;
        font-size: 14px;
        line-height: 1.7;
    }

.internal-transfer-field label {
    display: block;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 850;
    margin-bottom: 8px;
}

.internal-transfer-search-row {
    display: grid;
    grid-template-columns: 1fr 130px;
    gap: 12px;
    align-items: center;
}

    .internal-transfer-search-row .panel-primary-btn {
        height: 52px;
        justify-content: center;
    }

.internal-transfer-help {
    display: block;
    margin-top: 8px;
    color: #94A3B8;
    font-size: 12px;
}

.internal-receiver-message {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

    .internal-receiver-message.muted {
        color: #94A3B8;
        background: rgba(148, 163, 184, 0.08);
        border: 1px solid rgba(148, 163, 184, 0.14);
    }

    .internal-receiver-message.error {
        color: #F87171;
        background: rgba(248, 113, 113, 0.08);
        border: 1px solid rgba(248, 113, 113, 0.18);
    }

.internal-receiver-preview {
    margin-top: 16px;
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(17, 233, 161, 0.22);
    background: radial-gradient(circle at 100% 0%, rgba(17, 233, 161, 0.10), transparent 34%), #0B1118;
}

.internal-receiver-preview-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
    background: rgba(17, 233, 161, 0.12);
    color: #11E9A1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    font-size: 18px;
}

.internal-receiver-preview-content {
    flex: 1;
    min-width: 0;
}

.internal-receiver-preview-title {
    color: #11E9A1;
    font-weight: 950;
    font-size: 15px;
    margin-bottom: 12px;
}

.internal-receiver-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

    .internal-receiver-grid div {
        border: 1px solid #1C2532;
        background: rgba(255, 255, 255, 0.025);
        border-radius: 14px;
        padding: 11px 12px;
        min-width: 0;
    }

    .internal-receiver-grid span {
        display: block;
        color: #94A3B8;
        font-size: 11px;
        font-weight: 800;
        margin-bottom: 6px;
    }

    .internal-receiver-grid strong {
        display: block;
        color: #FFFFFF;
        font-size: 13px;
        font-weight: 900;
        direction: ltr;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.internal-receiver-warning {
    margin: 12px 0 0;
    color: #FBBF24;
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .internal-transfer-search-row {
        grid-template-columns: 1fr;
    }

        .internal-transfer-search-row .panel-primary-btn {
            width: 100%;
        }

    .internal-receiver-grid {
        grid-template-columns: 1fr;
    }
}
/* Internal Transfer - Amount and Verification */
.internal-transfer-details {
    margin-top: 16px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #1C2532;
    background: rgba(255, 255, 255, 0.025);
}

.internal-transfer-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.internal-transfer-balance-box {
    margin-top: 14px;
    border: 1px solid rgba(17, 233, 161, 0.18);
    background: rgba(17, 233, 161, 0.06);
    border-radius: 15px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

    .internal-transfer-balance-box span {
        color: #94A3B8;
        font-size: 12px;
        font-weight: 800;
    }

    .internal-transfer-balance-box strong {
        color: #11E9A1;
        font-size: 14px;
        font-weight: 950;
        direction: ltr;
        white-space: nowrap;
    }

.internal-transfer-send-code-btn {
    margin-top: 14px;
    min-width: 220px;
    justify-content: center;
}

.internal-transfer-verification-box {
    margin-top: 16px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(251, 191, 36, 0.22);
    background: radial-gradient(circle at 100% 0%, rgba(251, 191, 36, 0.09), transparent 34%), #0B1118;
}

.internal-transfer-verification-header h5 {
    color: #FFFFFF;
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 950;
}

.internal-transfer-verification-header p {
    color: #94A3B8;
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.7;
}

.internal-transfer-verification-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

    .internal-transfer-verification-summary div {
        border: 1px solid #1C2532;
        background: rgba(255, 255, 255, 0.025);
        border-radius: 14px;
        padding: 11px 12px;
        min-width: 0;
    }

    .internal-transfer-verification-summary span {
        display: block;
        color: #94A3B8;
        font-size: 11px;
        font-weight: 800;
        margin-bottom: 6px;
    }

    .internal-transfer-verification-summary strong {
        display: block;
        color: #FFFFFF;
        font-size: 13px;
        font-weight: 900;
        direction: ltr;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.internal-transfer-code-input {
    max-width: 220px;
    letter-spacing: 6px;
    font-weight: 950;
    font-size: 18px !important;
    text-align: center;
    direction: ltr;
}

.internal-transfer-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
}

.internal-transfer-secondary-btn {
    height: 48px;
    border-radius: 14px;
    border: 1px solid #1C2532;
    background: #121821;
    color: #FFFFFF;
    padding: 0 16px;
    font-weight: 900;
    transition: 0.2s ease;
}

    .internal-transfer-secondary-btn:hover {
        color: #11E9A1;
        border-color: #11E9A1;
    }

@media (max-width: 768px) {
    .internal-transfer-details-grid,
    .internal-transfer-verification-summary {
        grid-template-columns: 1fr;
    }

    .internal-transfer-balance-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .internal-transfer-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .internal-transfer-actions button,
        .internal-transfer-send-code-btn {
            width: 100%;
        }

    .internal-transfer-code-input {
        max-width: 100%;
    }
}
.report-user-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 150px;
}

    .report-user-cell strong {
        color: #11E9A1;
        font-size: 12px;
        font-weight: 950;
        direction: ltr;
    }

    .report-user-cell span {
        color: #94A3B8;
        font-size: 12px;
        direction: ltr;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
/* Withdrawal Email Verification */
.withdrawal-verification-box {
    margin-top: 18px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(251, 191, 36, 0.24);
    background: radial-gradient(circle at 100% 0%, rgba(251, 191, 36, 0.10), transparent 34%), #0B1118;
}

.withdrawal-verification-header h4 {
    color: #FFFFFF;
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 950;
}

.withdrawal-verification-header p {
    color: #94A3B8;
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.8;
}

.withdrawal-verification-summary {
    display: grid;
    grid-template-columns: 180px 130px 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

    .withdrawal-verification-summary div {
        border: 1px solid #1C2532;
        background: rgba(255, 255, 255, 0.025);
        border-radius: 15px;
        padding: 12px 13px;
        min-width: 0;
    }

    .withdrawal-verification-summary span {
        display: block;
        color: #94A3B8;
        font-size: 11px;
        font-weight: 800;
        margin-bottom: 7px;
    }

    .withdrawal-verification-summary strong {
        display: block;
        color: #FFFFFF;
        font-size: 13px;
        font-weight: 900;
        direction: ltr;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.withdrawal-code-field label {
    display: block;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 850;
    margin-bottom: 8px;
}

.withdrawal-code-input {
    max-width: 230px;
    letter-spacing: 6px;
    font-weight: 950;
    font-size: 18px !important;
    text-align: center;
    direction: ltr;
}

.withdrawal-verification-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.withdrawal-secondary-btn {
    height: 48px;
    border-radius: 14px;
    border: 1px solid #1C2532;
    background: #121821;
    color: #FFFFFF;
    padding: 0 16px;
    font-weight: 900;
    transition: 0.2s ease;
}

    .withdrawal-secondary-btn:hover {
        color: #11E9A1;
        border-color: #11E9A1;
    }

@media (max-width: 768px) {
    .withdrawal-verification-summary {
        grid-template-columns: 1fr;
    }

    .withdrawal-code-input {
        max-width: 100%;
    }

    .withdrawal-verification-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .withdrawal-verification-actions button {
            width: 100%;
        }
}
/* Deposit History */
.deposit-history-message {
    color: #94A3B8;
    padding: 14px 0;
    font-size: 14px;
    font-weight: 700;
}

.deposit-history-wrapper {
    width: 100%;
    overflow-x: auto;
}

.deposit-history-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

    .deposit-history-table thead th {
        color: #94A3B8;
        font-size: 12px;
        font-weight: 900;
        padding: 0 12px 8px;
        white-space: nowrap;
    }

    .deposit-history-table tbody tr {
        background: #121821;
        border: 1px solid #1C2532;
    }

    .deposit-history-table tbody td {
        color: #FFFFFF;
        font-size: 13px;
        padding: 14px 12px;
        border-top: 1px solid #1C2532;
        border-bottom: 1px solid #1C2532;
        vertical-align: middle;
    }

        .deposit-history-table tbody td:first-child {
            border-left: 1px solid #1C2532;
            border-radius: 14px 0 0 14px;
        }

        .deposit-history-table tbody td:last-child {
            border-right: 1px solid #1C2532;
            border-radius: 0 14px 14px 0;
        }

.deposit-tx-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 360px;
}

    .deposit-tx-cell span {
        display: block;
        color: #94A3B8;
        direction: ltr;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .deposit-tx-cell button {
        border: 1px solid rgba(17, 233, 161, 0.18);
        background: rgba(17, 233, 161, 0.07);
        color: #11E9A1;
        border-radius: 10px;
        height: 30px;
        padding: 0 10px;
        font-size: 11px;
        font-weight: 900;
    }

        .deposit-tx-cell button:hover {
            border-color: #11E9A1;
        }

.deposit-amount {
    color: #FFFFFF;
    font-weight: 950;
    direction: ltr;
    white-space: nowrap;
}

.deposit-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
}

    .deposit-status.pending {
        color: #FBBF24;
        background: rgba(251, 191, 36, 0.10);
        border: 1px solid rgba(251, 191, 36, 0.20);
    }

    .deposit-status.approved {
        color: #11E9A1;
        background: rgba(17, 233, 161, 0.10);
        border: 1px solid rgba(17, 233, 161, 0.20);
    }

    .deposit-status.rejected {
        color: #F87171;
        background: rgba(248, 113, 113, 0.10);
        border: 1px solid rgba(248, 113, 113, 0.20);
    }

.deposit-note {
    color: #94A3B8;
    font-size: 12px;
}

    .deposit-note.has-note {
        color: #FFFFFF;
    }
/* User Reports - Deposit / Withdrawal Details */
.report-copy-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 360px;
}

    .report-copy-cell span {
        display: block;
        color: #94A3B8;
        direction: ltr;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .report-copy-cell button {
        border: 1px solid rgba(17, 233, 161, 0.18);
        background: rgba(17, 233, 161, 0.07);
        color: #11E9A1;
        border-radius: 10px;
        height: 30px;
        padding: 0 10px;
        font-size: 11px;
        font-weight: 900;
    }

        .report-copy-cell button:hover {
            border-color: #11E9A1;
        }

.report-note {
    display: inline-block;
    max-width: 280px;
    color: #94A3B8;
    font-size: 12px;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .report-note.has-note {
        color: #FFFFFF;
    }

.reports-table-wrapper {
    overflow-x: auto;
}

.reports-table td {
    vertical-align: middle;
}
.report-status.canceled {
    color: #94A3B8;
    background: rgba(148, 163, 184, 0.10);
    border: 1px solid rgba(148, 163, 184, 0.20);
}
.reports-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    color: #94A3B8;
    font-size: 13px;
    font-weight: 700;
}

.reports-pagination-btn {
    border: 1px solid rgba(17, 233, 161, 0.18);
    background: rgba(17, 233, 161, 0.08);
    color: #11E9A1;
    border-radius: 12px;
    min-width: 92px;
    height: 38px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 900;
}

    .reports-pagination-btn:hover:not(:disabled) {
        border-color: #11E9A1;
        background: rgba(17, 233, 161, 0.14);
    }

    .reports-pagination-btn:disabled {
        opacity: 0.45;
        cursor: not-allowed;
    }
.deposit-history-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    color: #94A3B8;
    font-size: 13px;
    font-weight: 700;
}

.deposit-history-page-btn {
    border: 1px solid rgba(17, 233, 161, 0.18);
    background: rgba(17, 233, 161, 0.08);
    color: #11E9A1;
    border-radius: 12px;
    min-width: 92px;
    height: 38px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 900;
}

    .deposit-history-page-btn:hover:not(:disabled) {
        border-color: #11E9A1;
        background: rgba(17, 233, 161, 0.14);
    }

    .deposit-history-page-btn:disabled {
        opacity: 0.45;
        cursor: not-allowed;
    }

.withdrawal-history-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    color: #94A3B8;
    font-size: 13px;
    font-weight: 700;
}

.withdrawal-history-page-btn {
    border: 1px solid rgba(17, 233, 161, 0.18);
    background: rgba(17, 233, 161, 0.08);
    color: #11E9A1;
    border-radius: 12px;
    min-width: 92px;
    height: 38px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 900;
}

    .withdrawal-history-page-btn:hover:not(:disabled) {
        border-color: #11E9A1;
        background: rgba(17, 233, 161, 0.14);
    }

    .withdrawal-history-page-btn:disabled {
        opacity: 0.45;
        cursor: not-allowed;
    }
.investment-waitlist-box {
    margin-top: 14px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.22);
}

.investment-waitlist-info strong {
    display: block;
    color: #FBBF24;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 6px;
}

.investment-waitlist-info p {
    margin: 0;
    color: #94A3B8;
    font-size: 13px;
    line-height: 1.7;
}

.investment-waitlist-status {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
}

    .investment-waitlist-status.pending {
        color: #FBBF24;
        background: rgba(251, 191, 36, 0.10);
        border: 1px solid rgba(251, 191, 36, 0.22);
    }

    .investment-waitlist-status.notified {
        color: #11E9A1;
        background: rgba(17, 233, 161, 0.10);
        border: 1px solid rgba(17, 233, 161, 0.22);
    }

.investment-waitlist-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.investment-waitlist-btn {
    min-width: 140px;
}
.investment-waitlist-status.capacityavailable {
    color: #60A5FA;
    background: rgba(96, 165, 250, 0.10);
    border: 1px solid rgba(96, 165, 250, 0.22);
}
.bonus-user-page {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bonus-user-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

    .bonus-user-header h3 {
        margin: 0;
        color: #FFFFFF;
        font-size: 20px;
        font-weight: 900;
    }

    .bonus-user-header p {
        margin: 7px 0 0;
        color: #94A3B8;
        font-size: 13px;
        line-height: 1.7;
    }

.bonus-apply-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.bonus-code-input-wrap {
    flex: 1;
    min-width: 260px;
}

    .bonus-code-input-wrap label {
        display: block;
        color: #FFFFFF;
        font-size: 13px;
        font-weight: 900;
        margin-bottom: 8px;
    }

.bonus-user-input {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 900;
}

.bonus-apply-btn {
    min-width: 150px;
    height: 44px;
}

.bonus-user-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    color: #94A3B8;
    background: rgba(17, 233, 161, 0.07);
    border: 1px solid rgba(17, 233, 161, 0.15);
    font-size: 13px;
    line-height: 1.7;
}

    .bonus-user-note strong {
        color: #11E9A1;
    }

.bonus-user-message {
    color: #94A3B8;
    font-size: 13px;
    padding: 14px 0;
}

.bonus-user-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.bonus-user-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

    .bonus-user-table th,
    .bonus-user-table td {
        padding: 14px 12px;
        border-bottom: 1px solid rgba(28, 37, 50, 0.85);
        color: #FFFFFF;
        font-size: 13px;
        vertical-align: middle;
    }

    .bonus-user-table th {
        color: #94A3B8;
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

.bonus-user-code-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #11E9A1;
    background: rgba(17, 233, 161, 0.10);
    border: 1px solid rgba(17, 233, 161, 0.20);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.bonus-user-capital {
    color: #11E9A1;
    font-weight: 900;
}

.bonus-user-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
    color: #FFFFFF;
    background: rgba(148, 163, 184, 0.10);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

    .bonus-user-status.active {
        color: #11E9A1;
        background: rgba(17, 233, 161, 0.10);
        border-color: rgba(17, 233, 161, 0.20);
    }

    .bonus-user-status.completed {
        color: #60A5FA;
        background: rgba(96, 165, 250, 0.10);
        border-color: rgba(96, 165, 250, 0.20);
    }

    .bonus-user-status.cancelled {
        color: #94A3B8;
        background: rgba(148, 163, 184, 0.10);
        border-color: rgba(148, 163, 184, 0.20);
    }

    .bonus-user-status.expired {
        color: #FBBF24;
        background: rgba(251, 191, 36, 0.10);
        border-color: rgba(251, 191, 36, 0.20);
    }

.bonus-user-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    color: #94A3B8;
    font-size: 13px;
    font-weight: 700;
}

.bonus-user-page-btn {
    border: 1px solid rgba(17, 233, 161, 0.18);
    background: rgba(17, 233, 161, 0.08);
    color: #11E9A1;
    border-radius: 12px;
    min-width: 92px;
    height: 38px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

    .bonus-user-page-btn:hover:not(:disabled) {
        border-color: #11E9A1;
        background: rgba(17, 233, 161, 0.14);
    }

    .bonus-user-page-btn:disabled {
        opacity: 0.45;
        cursor: not-allowed;
    }

@media (max-width: 700px) {
    .bonus-apply-form {
        align-items: stretch;
    }

    .bonus-code-input-wrap,
    .bonus-apply-btn {
        width: 100%;
        min-width: 100%;
    }
}

.dashboard-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dashboard-bonus-badge {
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 9px;
    color: #0B0F14;
    background: linear-gradient(135deg, #11E9A1, #18F5AC);
    box-shadow: 0 10px 24px rgba(17, 233, 161, 0.18);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

    .dashboard-bonus-badge.rank {
        background: linear-gradient(135deg, #FBBF24, #F59E0B);
        box-shadow: 0 10px 24px rgba(251, 191, 36, 0.18);
    }

.wallet-card.bonus-active,
.dashboard-rank-card.bonus-active {
    position: relative;
    overflow: hidden;
    border-color: rgba(17, 233, 161, 0.34);
    background: radial-gradient(circle at top right, rgba(17, 233, 161, 0.14), transparent 34%), #121821;
}

.dashboard-rank-card.bonus-active {
    border-color: rgba(251, 191, 36, 0.38);
    background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.15), transparent 35%), #121821;
}

    .invest-wallet-card.bonus-active > strong,
    .dashboard-rank-card.bonus-active > h3 {
        color: #11E9A1;
    }

    .dashboard-rank-card.bonus-active > h3 {
        color: #FBBF24;
    }

.dashboard-invest-bonus-box {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(28, 37, 50, 0.95);
}

    .dashboard-invest-bonus-box div {
        padding: 10px 12px;
        border-radius: 14px;
        background: rgba(17, 233, 161, 0.07);
        border: 1px solid rgba(17, 233, 161, 0.14);
    }

        .dashboard-invest-bonus-box div span {
            display: block;
            color: #94A3B8;
            font-size: 11px;
            font-weight: 800;
            margin-bottom: 5px;
        }

        .dashboard-invest-bonus-box div strong {
            display: block;
            color: #11E9A1;
            font-size: 15px;
            font-weight: 900;
        }

    .dashboard-invest-bonus-box small {
        grid-column: 1 / -1;
        color: #94A3B8;
        font-size: 12px;
        line-height: 1.6;
    }

.dashboard-rank-bonus-box {
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.18);
}

    .dashboard-rank-bonus-box span {
        display: block;
        color: #FFFFFF;
        font-size: 13px;
        font-weight: 900;
        margin-bottom: 5px;
    }

    .dashboard-rank-bonus-box small {
        display: block;
        color: #94A3B8;
        font-size: 12px;
        line-height: 1.6;
    }

@media (max-width: 576px) {
    .dashboard-invest-bonus-box {
        grid-template-columns: 1fr;
    }
}
.invest-wallet-card,
.dashboard-rank-card {
    min-height: unset !important;
    overflow: hidden;
}

    .invest-wallet-card.has-bonus,
    .dashboard-rank-card.has-rank-bonus {
        border-color: rgba(17, 233, 161, 0.26);
        background: linear-gradient(135deg, rgba(17, 233, 161, 0.075), transparent 48%), #121821;
    }

    .dashboard-rank-card.has-rank-bonus {
        border-color: rgba(251, 191, 36, 0.28);
        background: linear-gradient(135deg, rgba(251, 191, 36, 0.085), transparent 48%), #121821;
    }

.dashboard-wallet-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 22px;
}

    .dashboard-wallet-card-head > span:first-child,
    .dashboard-wallet-card-head .card-label {
        color: #94A3B8;
        font-size: 13px;
        font-weight: 700;
    }

.dashboard-mini-bonus-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    color: #11E9A1;
    background: rgba(17, 233, 161, 0.10);
    border: 1px solid rgba(17, 233, 161, 0.18);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

    .dashboard-mini-bonus-badge.rank {
        color: #FBBF24;
        background: rgba(251, 191, 36, 0.10);
        border-color: rgba(251, 191, 36, 0.22);
    }

.invest-wallet-card > strong,
.dashboard-rank-card > h3 {
    display: block;
    margin-top: 14px;
}

.invest-wallet-card.has-bonus > strong {
    color: #11E9A1;
}

.dashboard-rank-card.has-rank-bonus > h3 {
    color: #FBBF24;
}

.dashboard-bonus-mini-line,
.dashboard-rank-mini-line {
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 8px;
    min-height: 20px;
    color: #94A3B8;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
}

    .dashboard-bonus-mini-line span:first-child {
        color: #11E9A1;
    }

    .dashboard-rank-mini-line span:first-child {
        color: #FBBF24;
    }

    .dashboard-bonus-mini-line i,
    .dashboard-rank-mini-line i {
        width: 4px;
        height: 4px;
        border-radius: 999px;
        background: rgba(148, 163, 184, 0.7);
    }

.dashboard-invest-bonus-box,
.dashboard-invest-bonus-box div,
.dashboard-invest-bonus-box small,
.dashboard-rank-bonus-box {
    display: none !important;
}
.report-bonus-capital {
    color: #11E9A1;
    font-weight: 900;
}
.bonus-user-admin-note {
    display: block;
    margin-top: 7px;
    max-width: 220px;
    color: #94A3B8;
    font-size: 11px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.deposit-payment-snapshot,
.report-payment-snapshot {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    min-width: 150px;
}

    .deposit-payment-snapshot span,
    .report-payment-snapshot span {
        display: inline-flex;
        align-items: center;
        min-height: 24px;
        padding: 0 9px;
        border-radius: 999px;
        color: #11E9A1;
        background: rgba(17, 233, 161, 0.09);
        border: 1px solid rgba(17, 233, 161, 0.16);
        font-size: 11px;
        font-weight: 900;
    }

    .deposit-payment-snapshot small,
    .report-payment-snapshot small {
        color: #94A3B8;
        font-size: 11px;
        max-width: 180px;
        overflow-wrap: anywhere;
    }

    .deposit-payment-snapshot button,
    .report-payment-snapshot button {
        border: 1px solid rgba(17, 233, 161, 0.18);
        background: rgba(17, 233, 161, 0.08);
        color: #11E9A1;
        border-radius: 999px;
        padding: 4px 9px;
        font-size: 10px;
        font-weight: 900;
        cursor: pointer;
    }
/* ================================
   Mobile Base Layout Optimization
   SRS Phase 2 - Mobile & UI
================================ */

.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(17, 233, 161, 0.22);
    background: rgba(17, 233, 161, 0.08);
    color: var(--primary);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .mobile-menu-btn:hover {
        border-color: rgba(17, 233, 161, 0.45);
        background: rgba(17, 233, 161, 0.13);
    }

.sidebar-mobile-overlay {
    display: none;
}

.sidebar-nav {
    overflow-y: auto;
    padding-bottom: 12px;
}

    .sidebar-nav a,
    .sidebar-nav .nav-item,
    .logout-btn,
    button,
    input,
    select,
    textarea {
        touch-action: manipulation;
    }

@media (max-width: 992px) {
    .panel-layout {
        display: block;
        min-height: 100vh;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(286px, 86vw);
        height: 100dvh;
        z-index: 1002;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
        overflow-y: auto;
        padding: 18px;
        border-right: 1px solid rgba(17, 233, 161, 0.18);
        background: radial-gradient(circle at top left, rgba(17, 233, 161, 0.12), transparent 36%), #0B0F14;
        box-shadow: 28px 0 70px rgba(0, 0, 0, 0.55);
    }

    body.sidebar-open {
        overflow: hidden;
    }

        body.sidebar-open .sidebar {
            transform: translateX(0);
        }

    .sidebar-mobile-overlay {
        position: fixed;
        inset: 0;
        z-index: 1001;
        background: rgba(0, 0, 0, 0.58);
        backdrop-filter: blur(3px);
    }

    body.sidebar-open .sidebar-mobile-overlay {
        display: block;
    }

    .sidebar-logo img {
        max-width: 130px;
    }

    .sidebar nav a,
    .sidebar-nav .nav-item {
        min-height: 46px;
        padding: 12px 14px;
        margin-bottom: 4px;
        font-size: 14px;
    }

    .logout-btn {
        min-height: 46px;
        margin-top: 14px;
    }

    .panel-main {
        width: 100%;
        min-width: 0;
    }

    .topbar {
        position: sticky;
        top: 0;
        z-index: 900;
        height: 64px;
        padding: 0 16px;
        gap: 12px;
        background: rgba(11, 15, 20, 0.94);
        backdrop-filter: blur(14px);
    }

        .topbar h4 {
            font-size: 18px;
            line-height: 1.25;
            word-break: break-word;
        }

    .mobile-menu-btn {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .content {
        padding: 18px 14px 24px;
    }

    .panel-card {
        border-radius: 18px;
        padding: 14px;
    }

    .dashboard-grid {
        gap: 16px;
    }

    .dashboard-hero {
        gap: 16px;
    }

    .total-assets {
        width: 100%;
        text-align: left;
    }

        .total-assets strong {
            font-size: 27px;
        }

    .wallet-grid,
    .info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

        .wallet-card strong,
        .info-grid h3 {
            font-size: 20px;
            word-break: break-word;
        }

    .dashboard-wallet-card-head {
        align-items: flex-start;
    }

    .dashboard-bonus-mini-line,
    .dashboard-rank-mini-line {
        font-size: 10.5px;
    }

    .notification-container {
        width: calc(100vw - 24px);
        left: 12px;
        right: 12px;
        top: 12px;
        transform: none;
    }
}

@media (max-width: 576px) {
    .content {
        padding: 14px 10px 22px;
    }

    .panel-card {
        border-radius: 16px;
        padding: 12px;
    }

    .wallet-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .topbar h4 {
        font-size: 16px;
    }

    .total-assets strong {
        font-size: 24px;
    }

    .wallet-card strong {
        font-size: 21px;
    }

    .dashboard-hero h2 {
        font-size: 22px;
    }

    .dashboard-hero p {
        font-size: 13px;
    }

    input,
    select,
    textarea,
    button {
        font-size: 16px;
    }
}

/* Tables: mobile readable horizontal scroll */
.table-responsive,
.admin-table-wrapper,
.report-table-wrapper,
.wallet-overview-table-wrapper,
.bonus-user-table-wrapper,
.bonus-admin-table-wrapper,
.deposit-history-table-wrapper,
.withdrawal-history-table-wrapper {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table,
.report-table,
.bonus-user-table,
.wallet-overview-table {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .admin-table th,
    .admin-table td,
    .report-table th,
    .report-table td,
    .bonus-user-table th,
    .bonus-user-table td,
    .wallet-overview-table th,
    .wallet-overview-table td {
        padding: 11px 10px;
        font-size: 12px;
    }

    .admin-action-btn,
    .bonus-user-page-btn,
    .wallet-overview-pagination button {
        min-height: 38px;
        padding: 8px 11px;
    }
}
    
/* ================================
   Profits Page - Pagination + SRS Details
================================ */

.profit-summary-card.total {
    border-color: rgba(17, 233, 161, 0.28);
    background: radial-gradient(circle at top right, rgba(17, 233, 161, 0.12), transparent 40%), #121821;
}

    .profit-summary-card.total strong {
        color: #11E9A1;
    }

.profits-toolbar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.profits-filter-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 180px;
}

    .profits-filter-group label {
        color: #94A3B8;
        font-size: 12px;
        font-weight: 900;
    }

.profits-select {
    height: 42px;
    border-radius: 14px;
    border: 1px solid #1C2532;
    background: #0B0F14;
    color: #FFFFFF;
    padding: 0 12px;
    outline: none;
}

    .profits-select:focus {
        border-color: rgba(17, 233, 161, 0.55);
        box-shadow: 0 0 0 3px rgba(17, 233, 161, 0.08);
    }

.profits-table {
    min-width: 980px;
}

.profit-reference {
    color: #FFFFFF;
    font-weight: 800;
    font-size: 13px;
    word-break: break-word;
}

.profit-amount {
    color: #11E9A1;
    font-weight: 900;
    white-space: nowrap;
}

.profit-detail-box {
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: 8px;
    min-width: 430px;
}

    .profit-detail-box.referral {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }

    .profit-detail-box div {
        border-radius: 12px;
        border: 1px solid rgba(28, 37, 50, 0.92);
        background: rgba(11, 15, 20, 0.55);
        padding: 9px 10px;
    }

        .profit-detail-box div.wide {
            grid-column: 1 / -1;
        }

    .profit-detail-box span {
        display: block;
        color: #94A3B8;
        font-size: 10px;
        font-weight: 800;
        margin-bottom: 4px;
    }

    .profit-detail-box strong {
        display: block;
        color: #FFFFFF;
        font-size: 12px;
        font-weight: 900;
        overflow-wrap: anywhere;
    }

    .profit-detail-box.investment {
        border-left: 2px solid rgba(17, 233, 161, 0.35);
        padding-left: 8px;
    }

    .profit-detail-box.referral {
        border-left: 2px solid rgba(148, 163, 184, 0.35);
        padding-left: 8px;
    }

.profit-bonus-value {
    color: #11E9A1 !important;
}

.profits-pagination {
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    color: #94A3B8;
    font-size: 13px;
    font-weight: 800;
}

    .profits-pagination button {
        min-width: 92px;
        height: 38px;
        border-radius: 12px;
        border: 1px solid rgba(17, 233, 161, 0.18);
        background: rgba(17, 233, 161, 0.08);
        color: #11E9A1;
        font-size: 12px;
        font-weight: 900;
        cursor: pointer;
    }

        .profits-pagination button:hover:not(:disabled) {
            border-color: rgba(17, 233, 161, 0.42);
            background: rgba(17, 233, 161, 0.14);
        }

        .profits-pagination button:disabled {
            opacity: 0.45;
            cursor: not-allowed;
        }

@media (max-width: 768px) {
    .profits-filter-group,
    .profits-select {
        width: 100%;
    }

    .profits-table th,
    .profits-table td {
        padding: 12px 10px;
        font-size: 12px;
    }
}
/* ================================
   Profits Page Compact Details
================================ */

.profits-table {
    min-width: 820px;
}

.profit-detail-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

    .profit-detail-inline span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 30px;
        padding: 5px 9px;
        border-radius: 999px;
        color: #FFFFFF;
        background: rgba(11, 15, 20, 0.55);
        border: 1px solid rgba(28, 37, 50, 0.95);
        font-size: 12px;
        font-weight: 800;
    }

        .profit-detail-inline span b {
            color: #94A3B8;
            font-size: 10px;
            font-weight: 900;
        }

    .profit-detail-inline.investment {
        border-left: 2px solid rgba(17, 233, 161, 0.35);
        padding-left: 10px;
    }

    .profit-detail-inline strong {
        color: #11E9A1;
    }

.profit-referral-detail {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    min-width: 260px;
    border-left: 2px solid rgba(17, 233, 161, 0.30);
    padding-left: 10px;
}

.profit-referral-main {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

    .profit-referral-main strong {
        color: #FFFFFF;
        font-size: 13px;
        font-weight: 900;
    }

.profit-referral-uid {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #11E9A1;
    background: rgba(17, 233, 161, 0.10);
    border: 1px solid rgba(17, 233, 161, 0.18);
    font-size: 12px;
    font-weight: 900;
}

.profit-referral-detail small {
    color: #94A3B8;
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .profits-table {
        min-width: 760px;
    }

    .profit-detail-inline {
        max-width: 420px;
    }

    .profit-referral-detail {
        min-width: 220px;
    }
}
/* ================================
   Profit Rank Color Chips
================================ */

.profit-rank-chip {
    position: relative;
    overflow: hidden;
    padding-right: 12px !important;
    padding-left: 12px !important;
    border-radius: 999px !important;
    font-weight: 900;
}

    .profit-rank-chip::before {
        content: "";
        position: absolute;
        inset: 0;
        opacity: 0.18;
        pointer-events: none;
    }

    .profit-rank-chip b {
        position: relative;
        z-index: 1;
    }

    .profit-rank-chip strong {
        position: relative;
        z-index: 1;
        font-weight: 900;
        letter-spacing: 0.01em;
    }

    /* Basic */
    .profit-rank-chip.rank-basic {
        border: 1px solid rgba(148, 163, 184, 0.28) !important;
        color: #E2E8F0 !important;
        background: rgba(148, 163, 184, 0.08) !important;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
    }

        .profit-rank-chip.rank-basic::before {
            background: linear-gradient(135deg, #64748B, #94A3B8);
        }

        .profit-rank-chip.rank-basic strong {
            color: #F8FAFC !important;
        }

    /* Bronze */
    .profit-rank-chip.rank-bronze {
        border: 1px solid rgba(205, 127, 50, 0.35) !important;
        color: #F5D0A9 !important;
        background: rgba(205, 127, 50, 0.10) !important;
        box-shadow: 0 0 14px rgba(205, 127, 50, 0.10);
    }

        .profit-rank-chip.rank-bronze::before {
            background: linear-gradient(135deg, #8C5523, #CD7F32);
        }

        .profit-rank-chip.rank-bronze strong {
            color: #FFD7A8 !important;
        }

    /* Silver */
    .profit-rank-chip.rank-silver {
        border: 1px solid rgba(192, 192, 192, 0.38) !important;
        color: #E5E7EB !important;
        background: rgba(192, 192, 192, 0.09) !important;
        box-shadow: 0 0 14px rgba(192, 192, 192, 0.10);
    }

        .profit-rank-chip.rank-silver::before {
            background: linear-gradient(135deg, #A8B0B8, #E5E7EB);
        }

        .profit-rank-chip.rank-silver strong {
            color: #FFFFFF !important;
        }

    /* Gold */
    .profit-rank-chip.rank-gold {
        border: 1px solid rgba(255, 215, 0, 0.40) !important;
        color: #FFE28A !important;
        background: rgba(255, 215, 0, 0.10) !important;
        box-shadow: 0 0 16px rgba(255, 215, 0, 0.12);
    }

        .profit-rank-chip.rank-gold::before {
            background: linear-gradient(135deg, #B8860B, #FFD700);
        }

        .profit-rank-chip.rank-gold strong {
            color: #FFF3B0 !important;
            text-shadow: 0 0 8px rgba(255, 215, 0, 0.18);
        }

    /* Diamond */
    .profit-rank-chip.rank-diamond {
        border: 1px solid rgba(56, 189, 248, 0.42) !important;
        color: #BAE6FD !important;
        background: rgba(56, 189, 248, 0.10) !important;
        box-shadow: 0 0 16px rgba(56, 189, 248, 0.12);
    }

        .profit-rank-chip.rank-diamond::before {
            background: linear-gradient(135deg, #60A5FA, #22D3EE);
        }

        .profit-rank-chip.rank-diamond strong {
            color: #E0F2FE !important;
            text-shadow: 0 0 8px rgba(34, 211, 238, 0.18);
        }

    /* Default */
    .profit-rank-chip.rank-default {
        border: 1px solid rgba(17, 233, 161, 0.24) !important;
        color: #D1FAE5 !important;
        background: rgba(17, 233, 161, 0.08) !important;
    }

        .profit-rank-chip.rank-default::before {
            background: linear-gradient(135deg, #11E9A1, #18F5AC);
        }

        .profit-rank-chip.rank-default strong {
            color: #ECFDF5 !important;
        }
.profit-rank-chip {
    min-height: 34px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

    .profit-rank-chip strong {
        font-size: 14px !important;
    }
/* ================================
   Profit Details Equal Chips
================================ */

.profit-detail-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .profit-detail-inline.investment {
        border-left: 2px solid rgba(17, 233, 161, 0.45);
        padding-left: 14px;
    }

.profit-metric-chip {
    position: relative;
    overflow: hidden;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 138px;
    min-height: 44px !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(28, 37, 50, 0.95);
    background: linear-gradient(135deg, rgba(255,255,255,0.035), transparent 50%), rgba(11, 15, 20, 0.70);
    color: #FFFFFF;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.015), 0 8px 22px rgba(0, 0, 0, 0.16);
}

    .profit-metric-chip::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top left, rgba(255,255,255,0.10), transparent 36%);
        pointer-events: none;
        opacity: 0.55;
    }

    .profit-metric-chip b,
    .profit-metric-chip strong {
        position: relative;
        z-index: 1;
    }

    .profit-metric-chip b {
        color: #A7C7EA;
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 0.02em;
    }

    .profit-metric-chip strong {
        color: #FFFFFF;
        font-size: 16px;
        font-weight: 950;
        letter-spacing: 0.01em;
        white-space: nowrap;
    }

    /* Real */
    .profit-metric-chip.real {
        border-color: rgba(96, 165, 250, 0.18);
        background: linear-gradient(135deg, rgba(96, 165, 250, 0.08), transparent 52%), rgba(11, 15, 20, 0.70);
    }

        .profit-metric-chip.real strong {
            color: #FFFFFF;
        }

    /* Bonus */
    .profit-metric-chip.bonus {
        border-color: rgba(17, 233, 161, 0.24);
        background: linear-gradient(135deg, rgba(17, 233, 161, 0.10), transparent 52%), rgba(11, 15, 20, 0.70);
    }

        .profit-metric-chip.bonus strong {
            color: #11E9A1 !important;
            text-shadow: 0 0 8px rgba(17, 233, 161, 0.18);
        }

    /* Base */
    .profit-metric-chip.base {
        border-color: rgba(251, 191, 36, 0.18);
        background: linear-gradient(135deg, rgba(251, 191, 36, 0.075), transparent 52%), rgba(11, 15, 20, 0.70);
    }

        .profit-metric-chip.base strong {
            color: #FFFFFF;
        }

/* Rank chip هماهنگ با بقیه */
.profit-rank-chip {
    min-width: 138px !important;
    min-height: 44px !important;
    padding: 8px 14px !important;
}

    .profit-rank-chip b {
        color: #A7C7EA !important;
    }

    .profit-rank-chip strong {
        font-size: 16px !important;
    }

/* Responsive */
@media (max-width: 768px) {
    .profit-detail-inline {
        gap: 8px;
    }

    .profit-metric-chip,
    .profit-rank-chip {
        min-width: 128px !important;
        min-height: 42px !important;
        padding: 7px 12px !important;
    }

        .profit-metric-chip strong,
        .profit-rank-chip strong {
            font-size: 14px !important;
        }
}
/* ================================
   Referral Page - Pagination + Better UI
================================ */

.referral-hero-card {
    position: relative;
    overflow: hidden;
}

    .referral-hero-card::before {
        content: "";
        position: absolute;
        top: -90px;
        right: -80px;
        width: 240px;
        height: 240px;
        border-radius: 999px;
        background: rgba(17, 233, 161, 0.10);
        filter: blur(3px);
        pointer-events: none;
    }

    .referral-hero-card > * {
        position: relative;
        z-index: 1;
    }

.referral-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

    .referral-section-header h3 {
        margin: 0;
        color: #FFFFFF;
        font-size: 20px;
        font-weight: 900;
    }

    .referral-section-header p {
        margin: 7px 0 0;
        color: #94A3B8;
        font-size: 13px;
    }

.referral-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    color: #11E9A1;
    background: rgba(17, 233, 161, 0.09);
    border: 1px solid rgba(17, 233, 161, 0.17);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}



.referral-summary-item.bonus strong,
.referral-summary-item.wallet strong {
    color: #11E9A1;
}

.referral-modern-table {
    min-width: 820px;
}

.referral-user-cell {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
}

    .referral-user-cell strong {
        color: #FFFFFF;
        font-size: 13px;
        font-weight: 900;
    }

    .referral-user-cell span {
        color: #94A3B8;
        font-size: 12px;
        overflow-wrap: anywhere;
    }

.referral-uid-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    color: #11E9A1;
    background: rgba(17, 233, 161, 0.10);
    border: 1px solid rgba(17, 233, 161, 0.18);
    font-size: 12px;
    font-weight: 900;
}

.referral-source-card {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    min-width: 230px;
    border-left: 2px solid rgba(17, 233, 161, 0.35);
    padding-left: 10px;
}

    .referral-source-card span {
        color: #11E9A1;
        font-size: 13px;
        font-weight: 900;
    }

    .referral-source-card strong {
        color: #FFFFFF;
        font-size: 13px;
        font-weight: 900;
        overflow-wrap: anywhere;
    }

    .referral-source-card small {
        color: #94A3B8;
        font-size: 12px;
        font-weight: 700;
        overflow-wrap: anywhere;
    }

.referral-bonus-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    color: #11E9A1;
    background: rgba(17, 233, 161, 0.10);
    border: 1px solid rgba(17, 233, 161, 0.18);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.referral-bonus-amount {
    color: #11E9A1;
    font-weight: 900;
    white-space: nowrap;
}

.referral-pagination {
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    color: #94A3B8;
    font-size: 13px;
    font-weight: 800;
}

    .referral-pagination button {
        min-width: 92px;
        height: 38px;
        border-radius: 12px;
        border: 1px solid rgba(17, 233, 161, 0.18);
        background: rgba(17, 233, 161, 0.08);
        color: #11E9A1;
        font-size: 12px;
        font-weight: 900;
        cursor: pointer;
    }

        .referral-pagination button:hover:not(:disabled) {
            border-color: rgba(17, 233, 161, 0.42);
            background: rgba(17, 233, 161, 0.14);
        }

        .referral-pagination button:disabled {
            opacity: 0.45;
            cursor: not-allowed;
        }

@media (max-width: 768px) {
    .referral-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .referral-modern-table {
        min-width: 760px;
    }

    .referral-source-card {
        min-width: 210px;
    }
}
/* ================================
   Referral Rank Visual Colors
================================ */

.referral-rank-value {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 18px !important;
    font-weight: 950 !important;
    letter-spacing: 0.01em;
    width: fit-content;
}

    /* Basic → خاکستری/نقره‌ای ملایم */
    .referral-rank-value.rank-basic {
        color: #F8FAFC !important;
        background: linear-gradient(135deg, rgba(148, 163, 184, 0.20), rgba(71, 85, 105, 0.22)), rgba(15, 23, 42, 0.75);
        border: 1px solid rgba(148, 163, 184, 0.32);
        box-shadow: 0 0 16px rgba(148, 163, 184, 0.08);
    }

    /* Bronze → برنزی */
    .referral-rank-value.rank-bronze {
        color: #FFD7A8 !important;
        background: linear-gradient(135deg, rgba(205, 127, 50, 0.25), rgba(140, 85, 35, 0.26)), rgba(15, 23, 42, 0.72);
        border: 1px solid rgba(205, 127, 50, 0.42);
        box-shadow: 0 0 16px rgba(205, 127, 50, 0.12);
    }

    /* Silver → نقره‌ای روشن */
    .referral-rank-value.rank-silver {
        color: #FFFFFF !important;
        background: linear-gradient(135deg, rgba(229, 231, 235, 0.22), rgba(156, 163, 175, 0.22)), rgba(15, 23, 42, 0.72);
        border: 1px solid rgba(229, 231, 235, 0.38);
        box-shadow: 0 0 16px rgba(229, 231, 235, 0.10);
    }

    /* Gold → طلایی */
    .referral-rank-value.rank-gold {
        color: #FFF3B0 !important;
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.26), rgba(184, 134, 11, 0.25)), rgba(15, 23, 42, 0.72);
        border: 1px solid rgba(255, 215, 0, 0.44);
        box-shadow: 0 0 18px rgba(255, 215, 0, 0.14);
        text-shadow: 0 0 8px rgba(255, 215, 0, 0.18);
    }

    /* Diamond → آبی/فیروزه‌ای براق */
    .referral-rank-value.rank-diamond {
        color: #E0F2FE !important;
        background: linear-gradient(135deg, rgba(96, 165, 250, 0.24), rgba(34, 211, 238, 0.24)), rgba(15, 23, 42, 0.72);
        border: 1px solid rgba(56, 189, 248, 0.46);
        box-shadow: 0 0 18px rgba(34, 211, 238, 0.15);
        text-shadow: 0 0 8px rgba(34, 211, 238, 0.18);
    }

    .referral-rank-value.rank-default {
        color: #D1FAE5 !important;
        background: rgba(17, 233, 161, 0.10);
        border: 1px solid rgba(17, 233, 161, 0.24);
    }

.pre-password-wrap {
    position: relative;
    width: 100%;
}

    .pre-password-wrap .auth-input {
        width: 100%;
        height: 58px;
        padding-right: 68px !important;
        background: #121821;
        color: #e7f1f1;
    }

.pre-eye-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 42px;
    min-width: 46px;
    border-radius: 14px;
    border: 1px solid #1C2532;
    background: #121821;
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: 0.2s ease;
}

    .pre-eye-btn:hover {
        color: #11E9A1;
        border-color: #11E9A1;
        background: #0B1118;
        box-shadow: 0 0 18px rgba(17, 233, 161, 0.12);
    }

    .pre-eye-btn svg {
        width: 22px;
        height: 22px;
        fill: currentColor;
    }

    .pre-eye-btn .eye-closed {
        display: none;
    }

    .pre-eye-btn.is-visible .eye-open {
        display: none;
    }

    .pre-eye-btn.is-visible .eye-closed {
        display: block;
    }
/* =========================================================
   Otrade Dashboard V2 - Final Consolidated CSS
   ========================================================= */

.dashboard-v2,
.dashboard-v2 *,
.dashboard-v2-modal-backdrop,
.dashboard-v2-modal-backdrop * {
    box-sizing: border-box;
}

.dashboard-v2 {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

    .dashboard-v2 .panel-card {
        width: 100%;
        min-width: 0;
        margin: 0 !important;
        padding: 22px;
        border-radius: 18px;
    }

/* =========================================================
   Welcome
   ========================================================= */

.dashboard-v2-welcome {
    min-height: 118px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    padding: 22px 24px !important;
    background: radial-gradient( circle at 92% 15%, rgba(17, 233, 161, 0.16), transparent 34% ), var(--card);
}

    .dashboard-v2-welcome > div:first-child {
        min-width: 0;
        flex: 1;
    }

    .dashboard-v2-welcome h2 {
        margin: 6px 0 0;
        color: var(--text);
        font-size: 28px;
        font-weight: 900;
    }

    .dashboard-v2-welcome p {
        margin: 8px 0 0;
        color: var(--muted);
        line-height: 1.6;
    }

.dashboard-v2-eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.dashboard-v2-user-uid {
    min-width: 210px;
    max-width: 300px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    padding: 15px 18px;
    border-radius: 16px;
    background: rgba(17, 233, 161, 0.07);
    border: 1px solid rgba(17, 233, 161, 0.22);
}

    .dashboard-v2-user-uid span {
        color: var(--muted);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .dashboard-v2-user-uid strong {
        max-width: 100%;
        color: var(--primary);
        font-size: 17px;
        font-weight: 900;
        direction: ltr;
        overflow-wrap: anywhere;
    }

/* =========================================================
   Main grid alignment

   ردیف بالا و پایین دقیقاً از یک ستون‌بندی استفاده می‌کنند.
   ========================================================= */

.dashboard-v2-primary-grid,
.dashboard-v2-secondary-grid {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

    .dashboard-v2-primary-grid > *,
    .dashboard-v2-secondary-grid > * {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 0 !important;
    }

    .dashboard-v2-primary-grid > .panel-card,
    .dashboard-v2-secondary-grid > .panel-card {
        height: 100%;
    }

.dashboard-v2-wallet-panel,
.dashboard-v2-actions-panel,
.dashboard-v2-capacity,
.dashboard-v2-rank {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* =========================================================
   Section headers
   ========================================================= */

.dashboard-v2-section-header {
    min-height: 43px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 16px;
}

    .dashboard-v2-section-header > div {
        min-width: 0;
    }

    .dashboard-v2-section-header h3 {
        margin: 5px 0 0;
        color: var(--text);
        font-size: 20px;
        font-weight: 900;
    }

.dashboard-v2-guide-btn,
.dashboard-v2-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: rgba(17, 233, 161, 0.08);
    border: 1px solid rgb(255 230 72 / 25%);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dashboard-v2-guide-btn {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 900;
}

    .dashboard-v2-guide-btn:hover,
    .dashboard-v2-modal-close:hover {
        background: rgba(17, 233, 161, 0.16);
        border-color: var(--primary);
        transform: translateY(-1px);
    }

/* =========================================================
   Wallet overview
   ========================================================= */

.dashboard-v2-total-assets {
    width: 100%;
    min-width: 0;
    margin: 0 0 12px;
    padding: 17px 18px;
    border-radius: 16px;
    background: linear-gradient( 135deg, rgba(17, 233, 161, 0.12), rgba(17, 233, 161, 0.025) );
    border: 1px solid rgba(17, 233, 161, 0.2);
}

    .dashboard-v2-total-assets span {
        display: block;
        color: var(--muted);
        font-size: 12px;
    }

    .dashboard-v2-total-assets strong {
        display: block;
        max-width: 100%;
        margin-top: 6px;
        color: var(--primary);
        font-size: clamp(25px, 2.2vw, 34px);
        font-weight: 900;
        overflow-wrap: anywhere;
    }

.dashboard-v2-wallet-list {
    width: 100%;
    min-width: 0;
    flex: 1;
    display: grid;
    grid-template-rows: repeat(4, minmax(68px, 1fr));
    gap: 10px;
}

.dashboard-v2-wallet-row {
    width: 100%;
    min-width: 0;
    min-height: 68px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 15px;
    border-radius: 15px;
    background: #0d131b;
    border: 1px solid var(--border);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

    .dashboard-v2-wallet-row:hover {
        transform: translateY(-1px);
        background: #0f161f;
        border-color: rgba(17, 233, 161, 0.25);
    }

    .dashboard-v2-wallet-row.has-bonus {
        background: linear-gradient( 90deg, rgba(17, 233, 161, 0.07), #0d131b 60% );
        border-color: rgba(17, 233, 161, 0.42);
    }

.dashboard-v2-wallet-name {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

    .dashboard-v2-wallet-name > div {
        min-width: 0;
    }

.dashboard-v2-wallet-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: rgba(17, 233, 161, 0.09);
    border: 1px solid rgba(17, 233, 161, 0.2);
    border-radius: 13px;
    font-weight: 900;
}

.dashboard-v2-wallet-name strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.dashboard-v2-wallet-name small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.dashboard-v2-wallet-title-line {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-v2-wallet-balance {
    min-width: 90px;
    max-width: 42%;
    flex: 0 0 auto;
    color: var(--text);
    font-size: 17px;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-v2-mini-badge {
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    color: var(--primary);
    background: rgba(17, 233, 161, 0.1);
    border: 1px solid rgba(17, 233, 161, 0.24);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
}

    .dashboard-v2-mini-badge.rank {
        color: #f6c96f;
        background: rgba(246, 201, 111, 0.08);
        border-color: rgba(246, 201, 111, 0.24);
    }

.dashboard-v2-wallet-extra,
.dashboard-v2-rank-extra {
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 10px;
}

    .dashboard-v2-wallet-extra i,
    .dashboard-v2-rank-extra i {
        width: 4px;
        height: 4px;
        flex: 0 0 4px;
        border-radius: 50%;
        background: var(--primary);
    }

/* =========================================================
   Account actions
   ========================================================= */

.dashboard-v2-actions-grid {
    width: 100%;
    min-width: 0;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(82px, 1fr));
    gap: 10px;
}

.dashboard-v2-action-card {
    width: 100%;
    min-width: 0;
    min-height: 82px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    color: var(--text);
    text-decoration: none;
    background: #0d131b;
    border: 1px solid var(--border);
    border-radius: 15px;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

    .dashboard-v2-action-card:hover {
        color: var(--text);
        text-decoration: none;
        transform: translateY(-2px);
        background: #0f171f;
        border-color: rgba(17, 233, 161, 0.35);
    }

    .dashboard-v2-action-card.primary {
        background: linear-gradient( 135deg, rgba(17, 233, 161, 0.14), rgba(17, 233, 161, 0.035) );
        border-color: rgba(17, 233, 161, 0.3);
    }

.dashboard-v2-action-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: rgba(17, 233, 161, 0.09);
    border: 1px solid rgba(17, 233, 161, 0.2);
    border-radius: 13px;
    font-size: 18px;
    font-weight: 900;
}

.dashboard-v2-action-card > div {
    min-width: 0;
}

.dashboard-v2-action-card strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.dashboard-v2-action-card small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

/* =========================================================
   Bottom cards
   ========================================================= */

.dashboard-v2-capacity,
.dashboard-v2-rank {
    position: relative;
    overflow: hidden;
}

    .dashboard-v2-capacity::before,
    .dashboard-v2-rank::before {
        content: "";
        position: absolute;
        z-index: 0;
        width: 165px;
        height: 165px;
        top: -80px;
        right: -80px;
        border-radius: 50%;
        background: rgba(17, 233, 161, 0.07);
        pointer-events: none;
    }

    .dashboard-v2-capacity > *,
    .dashboard-v2-rank > * {
        position: relative;
        z-index: 1;
    }

.dashboard-v2-status {
    flex: 0 0 auto;
    padding: 6px 11px;
    color: var(--muted);
    background: #0d131b;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.dashboard-v2-capacity.active .dashboard-v2-status {
    color: var(--primary);
    background: rgba(17, 233, 161, 0.08);
    border-color: rgba(17, 233, 161, 0.25);
}

.dashboard-v2-capacity.inactive .dashboard-v2-status,
.dashboard-v2-capacity.full .dashboard-v2-status,
.dashboard-v2-capacity.not-configured .dashboard-v2-status {
    color: #f6c96f;
    background: rgba(246, 201, 111, 0.07);
    border-color: rgba(246, 201, 111, 0.2);
}

.dashboard-v2-capacity-message {
    min-height: 50px;
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.65;
}

.dashboard-v2-capacity-value {
    width: 100%;
    min-width: 0;
    margin: 0 0 14px;
    padding: 18px;
    background: #0d131b;
    border: 1px solid var(--border);
    border-radius: 16px;
}

    .dashboard-v2-capacity-value span {
        display: block;
        color: var(--muted);
        font-size: 11px;
    }

    .dashboard-v2-capacity-value strong {
        display: block;
        max-width: 100%;
        margin-top: 7px;
        color: var(--primary);
        font-size: clamp(23px, 2.4vw, 31px);
        font-weight: 900;
        overflow-wrap: anywhere;
    }

.dashboard-v2-primary-action,
.dashboard-v2-secondary-action {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 13px;
    text-decoration: none;
    font-weight: 900;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dashboard-v2-primary-action {
    color: #06100c;
    background: var(--primary);
    border: 1px solid var(--primary);
}

    .dashboard-v2-primary-action:hover {
        color: #06100c;
        text-decoration: none;
        background: #18f5ac;
        border-color: #18f5ac;
        transform: translateY(-1px);
    }

.dashboard-v2-secondary-action {
    width: 100%;
    color: var(--primary);
    background: rgba(17, 233, 161, 0.06);
    border: 1px solid rgba(17, 233, 161, 0.2);
}

    .dashboard-v2-secondary-action:hover {
        color: var(--primary);
        text-decoration: none;
        background: rgba(17, 233, 161, 0.12);
        border-color: rgba(17, 233, 161, 0.4);
        transform: translateY(-1px);
    }

.dashboard-v2-capacity .dashboard-v2-primary-action,
.dashboard-v2-rank .dashboard-v2-secondary-action {
    margin-top: auto;
}

/* =========================================================
   Rank
   ========================================================= */

.dashboard-v2-rank.has-rank-bonus {
    border-color: rgba(246, 201, 111, 0.32);
}

.dashboard-v2-rank-main {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

    .dashboard-v2-rank-main > div {
        width: 100%;
        min-width: 0;
        height: 100%;
        padding: 16px;
        background: #0d131b;
        border: 1px solid var(--border);
        border-radius: 16px;
    }

    .dashboard-v2-rank-main span {
        display: block;
        color: var(--muted);
        font-size: 11px;
    }

    .dashboard-v2-rank-main strong {
        display: block;
        max-width: 100%;
        margin-top: 7px;
        color: var(--primary);
        font-size: 20px;
        font-weight: 900;
        overflow-wrap: anywhere;
    }

.dashboard-v2-rank-extra {
    margin: 13px 0 0;
    padding: 10px 13px;
    background: rgba(246, 201, 111, 0.06);
    border: 1px solid rgba(246, 201, 111, 0.15);
    border-radius: 13px;
}

.dashboard-v2-next-rank {
    width: 100%;
    min-width: 0;
    margin: 14px 0;
    padding: 16px;
    background: #0d131b;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.dashboard-v2-next-rank-header,
.dashboard-v2-progress-footer {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .dashboard-v2-next-rank-header span,
    .dashboard-v2-progress-footer span {
        color: var(--muted);
        font-size: 11px;
    }

    .dashboard-v2-next-rank-header strong {
        color: var(--text);
        font-size: 14px;
        text-align: right;
    }

.dashboard-v2-progress {
    width: 100%;
    height: 9px;
    margin: 13px 0 9px;
    overflow: hidden;
    background: #070b10;
    border-radius: 999px;
}

    .dashboard-v2-progress > div {
        width: 0;
        height: 100%;
        background: linear-gradient( 90deg, #0eba7f, var(--primary) );
        border-radius: inherit;
        transition: width 0.4s ease;
    }

.dashboard-v2-progress-footer strong {
    color: var(--primary);
    font-size: 11px;
}

/* =========================================================
   Wallet guide modal
   ========================================================= */

body.dashboard-modal-open {
    overflow: hidden;
}

.dashboard-v2-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 5, 8, 0.82);
    backdrop-filter: blur(7px);
}

    .dashboard-v2-modal-backdrop.show {
        display: flex;
    }

.dashboard-v2-modal {
    width: min(780px, 100%);
    max-height: min(820px, calc(100vh - 48px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #101720;
    border: 1px solid rgba(17, 233, 161, 0.22);
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
}

.dashboard-v2-modal-header,
.dashboard-v2-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
}

.dashboard-v2-modal-header {
    border-bottom: 1px solid var(--border);
}

    .dashboard-v2-modal-header h3 {
        margin: 5px 0 0;
        color: var(--text);
        font-weight: 900;
    }

.dashboard-v2-modal-close {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 13px;
    font-size: 23px;
}

.dashboard-v2-modal-body {
    padding: 22px;
    overflow-y: auto;
}

.dashboard-v2-guide-intro {
    margin: 0 0 17px;
    color: var(--muted);
    line-height: 1.75;
}

.dashboard-v2-guide-item {
    margin-bottom: 13px;
    padding: 18px;
    background: #0b1118;
    border: 1px solid var(--border);
    border-radius: 17px;
}

    .dashboard-v2-guide-item:last-child {
        margin-bottom: 0;
    }

    .dashboard-v2-guide-item h4 {
        margin: 0 0 9px;
        color: var(--primary);
        font-size: 16px;
        font-weight: 900;
    }

    .dashboard-v2-guide-item p {
        margin: 0 0 10px;
        color: var(--muted);
        line-height: 1.65;
    }

    .dashboard-v2-guide-item ul,
    .dashboard-v2-guide-item ol {
        margin: 0;
        padding-left: 20px;
        color: #dce5ed;
    }

    .dashboard-v2-guide-item li {
        margin-bottom: 8px;
        line-height: 1.6;
    }

        .dashboard-v2-guide-item li:last-child {
            margin-bottom: 0;
        }

    .dashboard-v2-guide-item.flow {
        background: linear-gradient( 135deg, rgba(17, 233, 161, 0.06), #0b1118 );
        border-color: rgba(17, 233, 161, 0.18);
    }

.dashboard-v2-modal-footer {
    justify-content: flex-end;
    border-top: 1px solid var(--border);
}

    .dashboard-v2-modal-footer .dashboard-v2-primary-action {
        min-width: 120px;
    }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1200px) {
    .dashboard-v2-primary-grid,
    .dashboard-v2-secondary-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-v2-actions-grid {
        grid-template-rows: repeat(3, minmax(82px, auto));
    }
}

@media (max-width: 760px) {
    .dashboard-v2 {
        gap: 14px;
    }

        .dashboard-v2 .panel-card {
            padding: 17px;
        }

    .dashboard-v2-welcome {
        min-height: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 18px !important;
    }

    .dashboard-v2-user-uid {
        width: 100%;
        min-width: 0;
        max-width: none;
        align-items: flex-start;
    }

    .dashboard-v2-actions-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .dashboard-v2-rank-main {
        grid-template-columns: 1fr;
    }

    .dashboard-v2-wallet-list {
        grid-template-rows: none;
    }

    .dashboard-v2-wallet-row {
        min-height: auto;
        height: auto;
    }

    .dashboard-v2-action-card {
        min-height: 76px;
    }
}

@media (max-width: 520px) {
    .dashboard-v2-welcome h2 {
        font-size: 23px;
    }

    .dashboard-v2-section-header {
        align-items: center;
    }

    .dashboard-v2-wallet-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .dashboard-v2-wallet-balance {
        width: 100%;
        max-width: none;
        padding-left: 52px;
        text-align: left;
    }

    .dashboard-v2-modal-backdrop {
        padding: 10px;
    }

    .dashboard-v2-modal {
        max-height: calc(100vh - 20px);
        border-radius: 18px;
    }

    .dashboard-v2-modal-header,
    .dashboard-v2-modal-footer,
    .dashboard-v2-modal-body {
        padding: 16px;
    }
}
/* =========================================================
   Wallet Page V2 - Otrade V12
   Add this block ONCE at the end of wwwroot/css/panel.css
   ========================================================= */

.wallet-v2-page,
.wallet-v2-page *,
.wallet-v2-modal-backdrop,
.wallet-v2-modal-backdrop * {
    box-sizing: border-box;
}

.wallet-v2-page {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

    .wallet-v2-page .panel-card {
        width: 100%;
        min-width: 0;
        margin: 0 !important;
    }

/* Header */

.wallet-v2-header {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 22px 24px;
    background: radial-gradient( circle at 94% 10%, rgba(17, 233, 161, 0.14), transparent 34% ), var(--card);
}

    .wallet-v2-header > div:first-child {
        min-width: 0;
    }

    .wallet-v2-header h2,
    .wallet-v2-section-header h3 {
        margin: 0;
        color: var(--text);
        font-weight: 900;
    }

    .wallet-v2-header h2 {
        margin-top: 5px;
        font-size: 28px;
    }

    .wallet-v2-header p {
        margin: 7px 0 0;
        color: var(--muted);
        line-height: 1.6;
    }

.wallet-v2-eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.wallet-v2-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.wallet-v2-outline-btn,
.wallet-v2-rules-btn,
.wallet-v2-icon-btn,
.wallet-v2-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: rgba(17, 233, 161, 0.07);
    border: 1px solid rgba(17, 233, 161, 0.23);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;

}

.wallet-v2-outline-btn,
.wallet-v2-rules-btn {
    min-height: 42px;
    padding: 0 15px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
}

.wallet-v2-icon-btn {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 900;
}

    .wallet-v2-outline-btn:hover,
    .wallet-v2-rules-btn:hover,
    .wallet-v2-icon-btn:hover,
    .wallet-v2-modal-close:hover {
        color: var(--primary);
        background: rgba(17, 233, 161, 0.14);
        border-color: var(--primary);
        transform: translateY(-1px);
    }

/* Main two-column layout */

.wallet-v2-main-grid {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

    .wallet-v2-main-grid > .panel-card {
        width: 100%;
        min-width: 0;
        height: 100%;
        padding: 22px;
    }

.wallet-v2-overview,
.wallet-v2-transfer-panel {
    display: flex;
    flex-direction: column;
}

.wallet-v2-section-header {
    min-height: 44px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

    .wallet-v2-section-header > div {
        min-width: 0;
    }

    .wallet-v2-section-header h3 {
        margin-top: 5px;
        font-size: 20px;
    }

/* Wallet overview */

.wallet-v2-total-assets {
    width: 100%;
    min-width: 0;
    margin-bottom: 12px;
    padding: 17px 18px;
    border-radius: 16px;
    background: linear-gradient( 135deg, rgba(17, 233, 161, 0.12), rgba(17, 233, 161, 0.025) );
    border: 1px solid rgba(17, 233, 161, 0.2);
}

    .wallet-v2-total-assets span {
        display: block;
        color: var(--muted);
        font-size: 12px;
    }

    .wallet-v2-total-assets strong {
        display: block;
        max-width: 100%;
        margin-top: 6px;
        color: var(--primary);
        font-size: clamp(25px, 2.3vw, 34px);
        font-weight: 900;
        overflow-wrap: anywhere;
    }

.wallet-v2-wallet-list {
    width: 100%;
    min-width: 0;
    flex: 1;
    display: grid;
    grid-template-rows: repeat(4, minmax(70px, 1fr));
    gap: 10px;
}

.wallet-v2-wallet-row {
    width: 100%;
    min-width: 0;
    min-height: 70px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 15px;
    border-radius: 15px;
    background: #0d131b !important;
    border: 1px solid var(--border);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .wallet-v2-wallet-row:hover {
        background: #0f171f !important;
        border-color: rgba(17, 233, 161, 0.27);
        transform: translateY(-1px);
    }

.wallet-v2-wallet-info {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .wallet-v2-wallet-info > div {
        min-width: 0;
    }

.wallet-v2-wallet-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: var(--primary);
    background: rgba(17, 233, 161, 0.09);
    border: 1px solid rgba(17, 233, 161, 0.2);
    font-weight: 900;
}

.wallet-v2-wallet-info strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 850;
}

.wallet-v2-wallet-info small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.wallet-v2-wallet-balance {
    min-width: 100px;
    max-width: 45%;
    flex: 0 0 auto;
    color: var(--text);
    font-size: 16px;
    font-weight: 900;
    text-align: right;
    direction: ltr;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Transfer form */

.wallet-v2-transfer-form {
    width: 100%;
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wallet-v2-transfer-grid,
.wallet-v2-route-box {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wallet-v2-field {
    min-width: 0;
}

    .wallet-v2-field label {
        display: block;
        margin-bottom: 7px;
        color: var(--text);
        font-size: 13px;
        font-weight: 850;
    }

    .wallet-v2-field .panel-input,
    .wallet-v2-field select,
    .wallet-v2-field input {
        width: 100%;
        height: 48px !important;
        min-height: 48px !important;
        border-radius: 13px !important;
    }

.wallet-v2-route-box {
    padding: 13px;
    border-radius: 15px;
    background: #0d131b;
    border: 1px solid var(--border);
}

    .wallet-v2-route-box > div {
        min-width: 0;
    }

    .wallet-v2-route-box span {
        display: block;
        color: var(--muted);
        font-size: 10px;
        font-weight: 800;
    }

    .wallet-v2-route-box strong {
        display: block;
        margin-top: 6px;
        color: var(--primary);
        font-size: 12px;
        font-weight: 900;
        overflow-wrap: anywhere;
    }

.wallet-v2-capacity-box {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 14px;
    border-radius: 16px;
}

    .wallet-v2-capacity-box .transfer-capacity-header {
        margin-bottom: 11px;
    }

        .wallet-v2-capacity-box .transfer-capacity-header button {
            min-height: 34px;
            padding: 0 12px;
            font-size: 11px;
        }

    .wallet-v2-capacity-box .transfer-capacity-remaining-box {
        margin-bottom: 10px;
        padding: 13px;
        border-radius: 14px;
    }

        .wallet-v2-capacity-box .transfer-capacity-remaining-box strong {
            font-size: 20px;
        }

    .wallet-v2-capacity-box .transfer-capacity-warning {
        margin-bottom: 0;
        font-size: 12px;
        line-height: 1.55;
    }

.wallet-v2-submit-btn {
    width: 100%;
    min-height: 48px;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 13px;
    color: #06100c;
    background: var(--primary);
    font-weight: 900;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

    .wallet-v2-submit-btn:hover {
        color: #06100c;
        background: #18f5ac;
        box-shadow: 0 0 22px rgba(17, 233, 161, 0.18);
        transform: translateY(-1px);
    }

    .wallet-v2-submit-btn:disabled {
        opacity: 0.65;
        cursor: not-allowed;
        transform: none;
    }

/* Internal transfer */

.wallet-v2-internal-card {
    padding: 22px;
}

/* Wallet Guide and Transfer Rules modals */

body.wallet-v2-modal-open {
    overflow: hidden;
}

.wallet-v2-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(2, 5, 8, 0.82);
    backdrop-filter: blur(7px);
}

    .wallet-v2-modal-backdrop.show {
        display: flex;
    }

.wallet-v2-modal-shell {
    width: min(790px, 100%);
    max-height: min(840px, calc(100vh - 44px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    background: #101720;
    border: 1px solid rgba(17, 233, 161, 0.22);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
}

    .wallet-v2-modal-shell.rules {
        width: min(720px, 100%);
    }

.wallet-v2-modal-header,
.wallet-v2-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
}

.wallet-v2-modal-header {
    border-bottom: 1px solid var(--border);
}

    .wallet-v2-modal-header h3 {
        margin: 5px 0 0;
        color: var(--text);
        font-size: 20px;
        font-weight: 900;
    }

.wallet-v2-modal-close {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 13px;
    font-size: 23px;
}

.wallet-v2-modal-body {
    padding: 22px;
    overflow-y: auto;
}

.wallet-v2-modal-intro {
    margin: 0 0 17px;
    color: var(--muted);
    line-height: 1.75;
}

.wallet-v2-guide-item {
    margin-bottom: 13px;
    padding: 17px;
    border-radius: 16px;
    background: #0b1118;
    border: 1px solid var(--border);
}

    .wallet-v2-guide-item:last-child {
        margin-bottom: 0;
    }

    .wallet-v2-guide-item h4 {
        margin: 0 0 8px;
        color: var(--primary);
        font-size: 15px;
        font-weight: 900;
    }

    .wallet-v2-guide-item p {
        margin: 0 0 9px;
        color: var(--muted);
        line-height: 1.65;
    }

    .wallet-v2-guide-item ul,
    .wallet-v2-guide-item ol {
        margin: 0;
        padding-left: 20px;
        color: #dce5ed;
    }

    .wallet-v2-guide-item li {
        margin-bottom: 7px;
        line-height: 1.6;
    }

        .wallet-v2-guide-item li:last-child {
            margin-bottom: 0;
        }

    .wallet-v2-guide-item.flow {
        background: linear-gradient( 135deg, rgba(17, 233, 161, 0.06), #0b1118 );
        border-color: rgba(17, 233, 161, 0.18);
    }

.wallet-v2-rule-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wallet-v2-rule-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 15px;
    background: #0b1118;
    border: 1px solid var(--border);
}

    .wallet-v2-rule-item > span {
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 11px;
        color: var(--primary);
        background: rgba(17, 233, 161, 0.09);
        border: 1px solid rgba(17, 233, 161, 0.19);
        font-size: 10px;
        font-weight: 900;
    }

    .wallet-v2-rule-item p {
        margin: 0;
        color: #dce5ed;
        line-height: 1.65;
    }

.wallet-v2-route-table {
    margin-top: 16px;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid var(--border);
}

    .wallet-v2-route-table > div {
        display: grid;
        grid-template-columns: minmax(150px, 0.75fr) minmax(0, 1.25fr);
        gap: 14px;
        padding: 13px 15px;
        background: #0b1118;
        border-bottom: 1px solid var(--border);
    }

        .wallet-v2-route-table > div:last-child {
            border-bottom: 0;
        }

    .wallet-v2-route-table strong {
        color: var(--primary);
    }

    .wallet-v2-route-table span {
        color: var(--muted);
    }

.wallet-v2-modal-footer {
    justify-content: flex-end;
    border-top: 1px solid var(--border);
}

.wallet-v2-modal-primary {
    min-width: 120px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    color: #06100c;
    background: var(--primary);
    font-weight: 900;
}

    .wallet-v2-modal-primary:hover {
        background: #18f5ac;
    }

/* Responsive */

@media (max-width: 1200px) {
    .wallet-v2-main-grid {
        grid-template-columns: 1fr;
    }

        .wallet-v2-main-grid > .panel-card {
            height: auto;
        }

    .wallet-v2-wallet-list {
        grid-template-rows: none;
    }
}

@media (max-width: 760px) {
    .wallet-v2-page {
        gap: 14px;
    }

    .wallet-v2-header {
        min-height: auto;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
    }

    .wallet-v2-header-actions {
        justify-content: flex-start;
    }

    .wallet-v2-main-grid > .panel-card,
    .wallet-v2-internal-card {
        padding: 17px;
    }

    .wallet-v2-transfer-grid,
    .wallet-v2-route-box {
        grid-template-columns: 1fr;
    }

    .wallet-v2-modal-backdrop {
        padding: 10px;
    }

    .wallet-v2-modal-shell {
        max-height: calc(100vh - 20px);
        border-radius: 18px;
    }

    .wallet-v2-modal-header,
    .wallet-v2-modal-body,
    .wallet-v2-modal-footer {
        padding: 16px;
    }
}

@media (max-width: 520px) {
    .wallet-v2-header-actions,
    .wallet-v2-header-actions .wallet-v2-outline-btn {
        width: 100%;
    }

    .wallet-v2-section-header {
        align-items: center;
    }

    .wallet-v2-wallet-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
    }

    .wallet-v2-wallet-balance {
        width: 100%;
        max-width: none;
        padding-left: 52px;
        text-align: left;
    }

    .wallet-v2-route-table > div {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}
/* Wallet Guide warning icon */

.wallet-v2-warning-icon {
    position: relative;
    color: #f6c96f !important;
    background: rgba(246, 201, 111, 0.09) !important;
    border-color: rgba(246, 201, 111, 0.38) !important;
    font-size: 19px;
    font-weight: 950;
    animation: wallet-warning-pulse 2s ease-in-out infinite;
}

    .wallet-v2-warning-icon::after {
        content: "";
        position: absolute;
        inset: -5px;
        border: 1px solid rgba(246, 201, 111, 0.3);
        border-radius: 15px;
        opacity: 0;
        pointer-events: none;
        animation: wallet-warning-ring 2s ease-out infinite;
    }

    .wallet-v2-warning-icon:hover {
        color: #ffd978 !important;
        background: rgba(246, 201, 111, 0.16) !important;
        border-color: #f6c96f !important;
        animation-play-state: paused;
    }

        .wallet-v2-warning-icon:hover::after {
            animation-play-state: paused;
        }

@keyframes wallet-warning-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(246, 201, 111, 0);
    }

    50% {
        transform: scale(1.06);
        box-shadow: 0 0 15px rgba(246, 201, 111, 0.2);
    }
}

@keyframes wallet-warning-ring {
    0% {
        transform: scale(0.88);
        opacity: 0;
    }

    35% {
        opacity: 0.55;
    }

    100% {
        transform: scale(1.25);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wallet-v2-warning-icon,
    .wallet-v2-warning-icon::after {
        animation: none;
    }
}
/* =========================================================
   Global animated Rank assets
   ========================================================= */

.rank-media-shell {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #070b10;
    border: 1px solid rgba(17, 233, 161, 0.18);
    border-radius: 18px;
    box-shadow: inset 0 0 22px rgba(17, 233, 161, 0.035), 0 12px 30px rgba(0, 0, 0, 0.18);
    isolation: isolate;
}

    .rank-media-shell::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        pointer-events: none;
        border-radius: inherit;
        box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.025);
    }

.rank-media-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.22s ease, filter 0.22s ease;
}

.rank-media-shell:hover .rank-media-img {
    transform: scale(1.035);
    filter: brightness(1.07);
}

.rank-media-img[data-rank-name="basic"] {
    --rank-media-accent: #11e9a1;
}

.rank-media-img[data-rank-name="bronze"] {
    --rank-media-accent: #c98a55;
}

.rank-media-img[data-rank-name="silver"] {
    --rank-media-accent: #d8e2ee;
}

.rank-media-img[data-rank-name="gold"] {
    --rank-media-accent: #f6c96f;
}

.rank-media-img[data-rank-name="diamond"] {
    --rank-media-accent: #38a9ff;
}

.rank-media-shell:has( .rank-media-img[data-rank-name="bronze"] ) {
    border-color: rgba(201, 138, 85, 0.34);
}

.rank-media-shell:has( .rank-media-img[data-rank-name="silver"] ) {
    border-color: rgba(216, 226, 238, 0.34);
}

.rank-media-shell:has( .rank-media-img[data-rank-name="gold"] ) {
    border-color: rgba(246, 201, 111, 0.38);
}

.rank-media-shell:has( .rank-media-img[data-rank-name="diamond"] ) {
    border-color: rgba(56, 169, 255, 0.4);
}

/* Dashboard sizes */

.rank-media-dashboard-current-shell {
    width: 92px;
    height: 92px;
    border-radius: 22px;
}

.rank-media-dashboard-next-shell {
    width: 44px;
    height: 44px;
    border-radius: 13px;
}

/* Rank page sizes */

.rank-media-current-shell {
    width: 116px;
    height: 116px;
    border-radius: 26px;
}

.rank-media-next-shell {
    width: 68px;
    height: 68px;
    border-radius: 19px;
}

.rank-media-card-shell {
    width: 86px;
    height: 86px;
    border-radius: 20px;
}

.rank-media-selected-shell {
    width: 88px;
    height: 88px;
    border-radius: 22px;
}

/* Contract rank-plan size */

.rank-media-contract-shell {
    width: 104px;
    height: 104px;
    border-radius: 24px;
}

/* Dashboard layout additions */

.dashboard-v2-rank-current {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

    .dashboard-v2-rank-current > div:last-child {
        min-width: 0;
    }

.dashboard-v2-next-rank-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Rank page layout additions */

.rank-v2-next-rank {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.rank-v2-next-rank-copy {
    min-width: 0;
}

.rank-v2-current-main {
    align-items: center;
}

.rank-v2-level-top {
    align-items: flex-start;
}

.rank-v2-selected-title {
    align-items: center;
}

/* Contract layout additions */

.contract-v2-rank-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

    .contract-v2-rank-identity > div:last-child {
        min-width: 0;
    }

@media (max-width: 760px) {
    .rank-media-current-shell {
        width: 96px;
        height: 96px;
    }

    .rank-media-card-shell {
        width: 76px;
        height: 76px;
    }

    .rank-media-contract-shell {
        width: 88px;
        height: 88px;
    }
}

@media (max-width: 520px) {
    .dashboard-v2-rank-current,
    .rank-v2-next-rank,
    .contract-v2-rank-identity {
        align-items: flex-start;
        flex-direction: column;
    }

    .rank-media-dashboard-current-shell {
        width: 84px;
        height: 84px;
    }
}
/* =========================================================
   Tickets V2 - User Panel
   ========================================================= */

.tickets-v2-page,
.tickets-v2-page * {
    box-sizing: border-box;
}

.tickets-v2-page {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

    .tickets-v2-page .panel-card {
        width: 100%;
        min-width: 0;
        margin: 0 !important;
    }

.tickets-v2-header {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 22px 24px;
    background: radial-gradient( circle at 94% 10%, rgba(17, 233, 161, 0.14), transparent 34% ), var(--card);
}

    .tickets-v2-header h2 {
        margin: 5px 0 0;
        color: var(--text);
        font-size: 28px;
        font-weight: 900;
    }

    .tickets-v2-header p {
        max-width: 720px;
        margin: 7px 0 0;
        color: var(--muted);
        line-height: 1.65;
    }

.tickets-v2-eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.tickets-v2-header-badge {
    min-width: 190px;
    padding: 14px 16px;
    background: rgba(17, 233, 161, 0.07);
    border: 1px solid rgba(17, 233, 161, 0.2);
    border-radius: 15px;
}

    .tickets-v2-header-badge span,
    .tickets-v2-header-badge strong {
        display: block;
    }

    .tickets-v2-header-badge span {
        color: var(--muted);
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.07em;
    }

    .tickets-v2-header-badge strong {
        margin-top: 6px;
        color: var(--primary);
        font-size: 13px;
    }

.tickets-v2-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 18px;
    align-items: stretch;
}

.tickets-v2-create-card,
.tickets-v2-guide-card,
.tickets-v2-history-card {
    padding: 22px;
}

.tickets-v2-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

    .tickets-v2-section-header h3 {
        margin: 5px 0 0;
        color: var(--text);
        font-size: 20px;
        font-weight: 900;
    }

    .tickets-v2-section-header p {
        margin: 7px 0 0;
        color: var(--muted);
        line-height: 1.6;
    }

.tickets-v2-section-number {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: rgba(17, 233, 161, 0.08);
    border: 1px solid rgba(17, 233, 161, 0.22);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 900;
}

.tickets-v2-form,
.tickets-v2-field {
    display: flex;
    flex-direction: column;
}

.tickets-v2-form {
    gap: 15px;
}

.tickets-v2-field {
    min-width: 0;
    gap: 8px;
}

    .tickets-v2-field label {
        color: var(--text);
        font-size: 13px;
        font-weight: 850;
    }

    .tickets-v2-field .panel-input {
        width: 100%;
        border-radius: 13px;
    }

.tickets-v2-textarea,
.tickets-v2-reply-input {
    min-height: 140px;
    resize: vertical;
}

.tickets-v2-field-footer,
.tickets-v2-reply-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.tickets-v2-field-footer {
    color: var(--muted);
    font-size: 10px;
}

.tickets-v2-submit-btn,
.tickets-v2-reply-btn,
.tickets-v2-refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 900;
    transition: 0.2s ease;
}

.tickets-v2-submit-btn {
    width: 100%;
    min-height: 48px;
    color: #06100c;
    background: var(--primary);
    border: 1px solid var(--primary);
}

    .tickets-v2-submit-btn:hover:not(:disabled) {
        background: #18f5ac;
        transform: translateY(-1px);
        box-shadow: 0 0 22px rgba(17, 233, 161, 0.18);
    }

    .tickets-v2-submit-btn:disabled,
    .tickets-v2-reply-btn:disabled,
    .tickets-v2-refresh-btn:disabled {
        opacity: 0.55;
        cursor: not-allowed;
        transform: none;
    }

.tickets-v2-guide-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.tickets-v2-guide-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    background: #0d131b;
    border: 1px solid var(--border);
    border-radius: 15px;
}

    .tickets-v2-guide-item > span {
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        background: rgba(17, 233, 161, 0.08);
        border: 1px solid rgba(17, 233, 161, 0.2);
        border-radius: 11px;
        font-size: 10px;
        font-weight: 900;
    }

    .tickets-v2-guide-item strong {
        color: var(--text);
        font-size: 13px;
    }

    .tickets-v2-guide-item p {
        margin: 5px 0 0;
        color: var(--muted);
        font-size: 11px;
        line-height: 1.55;
    }

.tickets-v2-history-header {
    align-items: center;
}

.tickets-v2-refresh-btn {
    min-height: 40px;
    padding: 0 14px;
    color: var(--primary);
    background: rgba(17, 233, 161, 0.07);
    border: 1px solid rgba(17, 233, 161, 0.22);
}

    .tickets-v2-refresh-btn:hover:not(:disabled) {
        background: rgba(17, 233, 161, 0.13);
        border-color: var(--primary);
    }

.tickets-v2-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 22px;
    color: var(--muted);
    text-align: center;
    background: #0d131b;
    border: 1px dashed var(--border);
    border-radius: 16px;
}

    .tickets-v2-empty-state strong {
        color: var(--text);
        font-size: 15px;
    }

    .tickets-v2-empty-state span {
        margin-top: 6px;
        font-size: 12px;
    }

.tickets-v2-list {
    display: grid;
    gap: 15px;
}

.tickets-v2-ticket {
    min-width: 0;
    padding: 18px;
    background: #0b0f14;
    border: 1px solid var(--border);
    border-radius: 18px;
}

.tickets-v2-ticket-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.tickets-v2-ticket-title {
    min-width: 0;
}

    .tickets-v2-ticket-title > span,
    .tickets-v2-ticket-title small {
        display: block;
        color: var(--muted);
        font-size: 10px;
    }

    .tickets-v2-ticket-title > span {
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .tickets-v2-ticket-title h4 {
        margin: 5px 0;
        color: var(--text);
        font-size: 17px;
        font-weight: 900;
        overflow-wrap: anywhere;
    }

.tickets-v2-status {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

    .tickets-v2-status.open {
        color: #f6c96f;
        background: rgba(246, 201, 111, 0.08);
        border: 1px solid rgba(246, 201, 111, 0.25);
    }

    .tickets-v2-status.answered {
        color: var(--primary);
        background: rgba(17, 233, 161, 0.08);
        border: 1px solid rgba(17, 233, 161, 0.25);
    }

    .tickets-v2-status.closed {
        color: var(--muted);
        background: rgba(148, 163, 184, 0.08);
        border: 1px solid rgba(148, 163, 184, 0.2);
    }

.tickets-v2-messages {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 16px;
}

.tickets-v2-message {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 15px;
}

    .tickets-v2-message.user {
        margin-right: clamp(0px, 5vw, 74px);
        background: #101720;
        border: 1px solid var(--border);
    }

    .tickets-v2-message.support {
        margin-left: clamp(0px, 5vw, 74px);
        background: rgba(17, 233, 161, 0.045);
        border: 1px solid rgba(17, 233, 161, 0.18);
    }

.tickets-v2-message-avatar {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 900;
}

.tickets-v2-message.user
.tickets-v2-message-avatar {
    color: #dce5ed;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.tickets-v2-message.support
.tickets-v2-message-avatar {
    color: var(--primary);
    background: rgba(17, 233, 161, 0.09);
    border: 1px solid rgba(17, 233, 161, 0.22);
}

.tickets-v2-message-content {
    min-width: 0;
}

.tickets-v2-message-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .tickets-v2-message-meta strong {
        color: var(--text);
        font-size: 12px;
    }

.tickets-v2-message.support
.tickets-v2-message-meta strong {
    color: var(--primary);
}

.tickets-v2-message-meta span {
    color: var(--muted);
    font-size: 10px;
}

.tickets-v2-message-content p {
    margin: 8px 0 0;
    color: #dce5ed;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.tickets-v2-reply-form {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.tickets-v2-reply-input {
    min-height: 100px;
    border-radius: 13px;
}

.tickets-v2-reply-footer > span {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.tickets-v2-reply-btn {
    min-height: 42px;
    padding: 0 16px;
    color: #06100c;
    background: var(--primary);
    border: 1px solid var(--primary);
}

    .tickets-v2-reply-btn:hover:not(:disabled) {
        background: #18f5ac;
        transform: translateY(-1px);
    }

.tickets-v2-closed-note {
    margin-top: 16px;
    padding: 13px 15px;
    color: var(--muted);
    background: rgba(148, 163, 184, 0.055);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 13px;
    font-size: 12px;
}

@media (max-width: 1000px) {
    .tickets-v2-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .tickets-v2-page {
        gap: 14px;
    }

    .tickets-v2-header {
        min-height: auto;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
    }

    .tickets-v2-header-badge {
        min-width: 0;
    }

    .tickets-v2-create-card,
    .tickets-v2-guide-card,
    .tickets-v2-history-card {
        padding: 17px;
    }

    .tickets-v2-message.user,
    .tickets-v2-message.support {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 520px) {
    .tickets-v2-ticket-header,
    .tickets-v2-field-footer,
    .tickets-v2-reply-footer,
    .tickets-v2-message-meta,
    .tickets-v2-history-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .tickets-v2-refresh-btn,
    .tickets-v2-reply-btn {
        width: 100%;
    }

    .tickets-v2-message {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   Profile BSC Wallet Address
   ========================================================= */
/* =========================================================
       Profile - USDT BEP20 Withdrawal Address
       Embedded here so this View can be replaced as one file.
       ========================================================= */

.profile-usdt-network-box,
.profile-usdt-network-box * {
    box-sizing: border-box;
}

.profile-usdt-network-box {
    width: 100%;
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 14px;
    background: linear-gradient( 135deg, rgba(246, 201, 111, 0.08), rgba(13, 19, 27, 0.96) );
    border: 1px solid rgba(246, 201, 111, 0.24);
    border-radius: 15px;
}

.profile-usdt-network-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f6c96f;
    background: rgba(246, 201, 111, 0.1);
    border: 1px solid rgba(246, 201, 111, 0.3);
    border-radius: 14px;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.03em;
}

.profile-usdt-network-info {
    min-width: 0;
    flex: 1;
}

    .profile-usdt-network-info strong,
    .profile-usdt-network-info span {
        display: block;
    }

    .profile-usdt-network-info strong {
        color: var(--text);
        font-size: 13px;
        font-weight: 900;
    }

    .profile-usdt-network-info span {
        margin-top: 5px;
        color: var(--muted);
        font-size: 11px;
    }

.profile-usdt-network-status {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    color: #f6c96f;
    background: rgba(246, 201, 111, 0.08);
    border: 1px solid rgba(246, 201, 111, 0.24);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.profile-usdt-network-note {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
}

    .profile-usdt-network-note strong {
        color: #f6c96f;
    }

.profile-wallet-address-wrap {
    position: relative;
    width: 100%;
}

    .profile-wallet-address-wrap .panel-input {
        width: 100%;
        padding-right: 76px;
        font-family: Consolas, "Courier New", monospace;
        direction: ltr;
        text-align: left;
    }

.profile-wallet-clear-btn {
    position: absolute;
    top: 50%;
    right: 7px;
    min-width: 58px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    color: var(--muted);
    background: #121821;
    border: 1px solid var(--border);
    border-radius: 9px;
    font-size: 10px;
    font-weight: 900;
    transition: 0.2s ease;
}

    .profile-wallet-clear-btn:hover {
        color: var(--primary);
        border-color: rgba(17, 233, 161, 0.38);
    }

.profile-wallet-address-help {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.profile-wallet-valid {
    border-color: rgba(17, 233, 161, 0.52) !important;
    box-shadow: 0 0 0 3px rgba(17, 233, 161, 0.06) !important;
}

.profile-wallet-invalid {
    border-color: rgba(255, 107, 107, 0.58) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.06) !important;
}

.profile-usdt-warning {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 12px;
    padding: 13px 14px;
    color: #ddc995;
    background: rgba(246, 201, 111, 0.06);
    border: 1px solid rgba(246, 201, 111, 0.2);
    border-radius: 13px;
}

    .profile-usdt-warning > span {
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #f6c96f;
        background: rgba(246, 201, 111, 0.1);
        border: 1px solid rgba(246, 201, 111, 0.26);
        border-radius: 10px;
        font-weight: 950;
    }

    .profile-usdt-warning p {
        margin: 0;
        font-size: 11px;
        line-height: 1.65;
    }

    .profile-usdt-warning strong {
        color: #f6c96f;
    }

@media (max-width: 520px) {
    .profile-usdt-network-box {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .profile-usdt-network-status {
        margin-left: 59px;
    }

    .profile-wallet-address-help {
        flex-direction: column;
    }
}

.referral-summary-item {
    min-height: 136px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.referral-rank-summary {
    position: relative;
    overflow: hidden;
    justify-content: flex-start;
    padding: 14px !important;
    background: radial-gradient( circle at 18% 50%, rgba(17, 233, 161, 0.09), transparent 48% ), #0b0f14 !important;
}

    .referral-rank-summary::after {
        content: "";
        position: absolute;
        right: -45px;
        bottom: -55px;
        width: 125px;
        height: 125px;
        border-radius: 999px;
        background: rgba(17, 233, 161, 0.05);
        pointer-events: none;
    }

    .referral-rank-summary > * {
        position: relative;
        z-index: 1;
    }

.referral-rank-summary-label {
    margin-bottom: 9px !important;
}

.referral-rank-content {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.referral-rank-summary .rank-media-shell {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    display: inline-flex !important;
    margin: 0 !important;
    border-radius: 19px;
    background: #05080c;
    border-color: rgba(17, 233, 161, 0.22);
}

.referral-rank-summary .rank-media-img {
    width: 100%;
    height: 100%;
    display: block !important;
    margin: 0 !important;
    object-fit: cover;
}

.referral-rank-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

    .referral-rank-copy small {
        color: #94a3b8;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .referral-rank-copy .referral-rank-value {
        margin-top: 7px;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

@media (max-width: 1200px) {
    .referral-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .referral-summary-grid {
        grid-template-columns: 1fr;
    }

    .referral-rank-summary .rank-media-shell {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
    }
}
/* =========================================================
   Profile - Google Authenticator
   ========================================================= */

.profile-2fa-card,
.profile-2fa-card * {
    box-sizing: border-box;
}

.profile-2fa-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.profile-2fa-badge {
    min-height: 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

    .profile-2fa-badge.loading {
        color: #94a3b8;
        background: rgba(148, 163, 184, 0.08);
        border: 1px solid rgba(148, 163, 184, 0.2);
    }

    .profile-2fa-badge.disabled {
        color: #f6c96f;
        background: rgba(246, 201, 111, 0.08);
        border: 1px solid rgba(246, 201, 111, 0.25);
    }

    .profile-2fa-badge.pending {
        color: #7dd3fc;
        background: rgba(125, 211, 252, 0.08);
        border: 1px solid rgba(125, 211, 252, 0.24);
    }

    .profile-2fa-badge.enabled {
        color: #11e9a1;
        background: rgba(17, 233, 161, 0.08);
        border: 1px solid rgba(17, 233, 161, 0.25);
    }

    .profile-2fa-badge.error {
        color: #ff7b7b;
        background: rgba(255, 107, 107, 0.08);
        border: 1px solid rgba(255, 107, 107, 0.24);
    }

.profile-2fa-loading {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #94a3b8;
    text-align: center;
    background: #0d131b;
    border: 1px dashed #1c2532;
    border-radius: 16px;
}

.profile-2fa-state {
    display: grid;
    gap: 16px;
}

    .profile-2fa-state[hidden],
    .profile-2fa-modal[hidden] {
        display: none !important;
    }

.profile-2fa-disabled-hero,
.profile-2fa-enabled-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: linear-gradient( 135deg, rgba(17, 233, 161, 0.07), #0d131b );
    border: 1px solid rgba(17, 233, 161, 0.16);
    border-radius: 17px;
}

.profile-2fa-shield {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f6c96f;
    background: rgba(246, 201, 111, 0.08);
    border: 1px solid rgba(246, 201, 111, 0.25);
    border-radius: 20px;
    font-size: 15px;
    font-weight: 950;
}

    .profile-2fa-shield.enabled {
        color: #11e9a1;
        background: rgba(17, 233, 161, 0.08);
        border-color: rgba(17, 233, 161, 0.25);
        font-size: 26px;
    }

.profile-2fa-disabled-copy,
.profile-2fa-enabled-hero > div:last-child {
    min-width: 0;
}

    .profile-2fa-disabled-copy > span,
    .profile-2fa-enabled-hero > div:last-child > span {
        display: block;
        color: #94a3b8;
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.07em;
    }

    .profile-2fa-disabled-copy h4,
    .profile-2fa-enabled-hero h4,
    .profile-2fa-setup-grid h4,
    .profile-2fa-modal-dialog h4 {
        margin: 5px 0 0;
        color: #ffffff;
        font-size: 18px;
        font-weight: 900;
    }

    .profile-2fa-disabled-copy p,
    .profile-2fa-enabled-hero p {
        margin: 7px 0 0;
        color: #94a3b8;
        font-size: 12px;
        line-height: 1.65;
    }

.profile-2fa-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

    .profile-2fa-benefits > div {
        min-width: 0;
        padding: 14px;
        background: #0d131b;
        border: 1px solid #1c2532;
        border-radius: 14px;
    }

    .profile-2fa-benefits strong,
    .profile-2fa-benefits span {
        display: block;
    }

    .profile-2fa-benefits strong {
        color: #ffffff;
        font-size: 12px;
        font-weight: 900;
    }

    .profile-2fa-benefits span {
        margin-top: 6px;
        color: #94a3b8;
        font-size: 10px;
        line-height: 1.55;
    }

.profile-2fa-main-btn {
    width: 100%;
    max-width: 360px;
}

.profile-2fa-setup-notice,
.profile-2fa-recovery-warning,
.profile-2fa-recovery-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 14px;
    border-radius: 13px;
}

.profile-2fa-setup-notice {
    color: #ddc995;
    background: rgba(246, 201, 111, 0.06);
    border: 1px solid rgba(246, 201, 111, 0.2);
}

.profile-2fa-recovery-warning {
    color: #ffb0b0;
    background: rgba(255, 107, 107, 0.06);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.profile-2fa-recovery-alert {
    color: #ddc995;
    background: rgba(246, 201, 111, 0.06);
    border: 1px solid rgba(246, 201, 111, 0.2);
}

    .profile-2fa-setup-notice > span,
    .profile-2fa-recovery-warning > span,
    .profile-2fa-recovery-alert > span {
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        font-weight: 950;
    }

    .profile-2fa-setup-notice > span,
    .profile-2fa-recovery-alert > span {
        color: #f6c96f;
        background: rgba(246, 201, 111, 0.1);
        border: 1px solid rgba(246, 201, 111, 0.25);
    }

.profile-2fa-recovery-warning > span {
    color: #ff7b7b;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.25);
}

.profile-2fa-setup-notice p,
.profile-2fa-recovery-warning p,
.profile-2fa-recovery-alert p {
    margin: 0;
    font-size: 11px;
    line-height: 1.65;
}

.profile-2fa-setup-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
    gap: 18px;
}

.profile-2fa-qr-column,
.profile-2fa-verify-column {
    min-width: 0;
    padding: 18px;
    background: #0d131b;
    border: 1px solid #1c2532;
    border-radius: 17px;
}

.profile-2fa-step-label {
    display: inline-block;
    color: #11e9a1;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.profile-2fa-qr-box {
    width: min(100%, 300px);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px auto 0;
    padding: 13px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 18px;
}

    .profile-2fa-qr-box img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain;
    }

.profile-2fa-qr-column p {
    margin: 13px 0 0;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.65;
    text-align: center;
}

    .profile-2fa-qr-column p strong {
        color: #ffffff;
    }

.profile-2fa-account-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 15px;
}

    .profile-2fa-account-info > div {
        min-width: 0;
        padding: 12px;
        background: #0b0f14;
        border: 1px solid #1c2532;
        border-radius: 13px;
    }

    .profile-2fa-account-info span,
    .profile-2fa-account-info strong {
        display: block;
    }

    .profile-2fa-account-info span {
        color: #94a3b8;
        font-size: 10px;
    }

    .profile-2fa-account-info strong {
        margin-top: 5px;
        color: #ffffff;
        font-size: 12px;
        font-weight: 900;
        overflow-wrap: anywhere;
    }

.profile-2fa-manual-key {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 11px;
    padding: 13px;
    background: #0b0f14;
    border: 1px solid #1c2532;
    border-radius: 13px;
}

    .profile-2fa-manual-key > div {
        min-width: 0;
    }

    .profile-2fa-manual-key span,
    .profile-2fa-manual-key code {
        display: block;
    }

    .profile-2fa-manual-key span {
        color: #94a3b8;
        font-size: 10px;
    }

    .profile-2fa-manual-key code {
        margin-top: 6px;
        color: #11e9a1;
        font-family: Consolas, "Courier New", monospace;
        font-size: 12px;
        font-weight: 900;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    .profile-2fa-manual-key button {
        min-width: 60px;
        min-height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #11e9a1;
        background: rgba(17, 233, 161, 0.07);
        border: 1px solid rgba(17, 233, 161, 0.22);
        border-radius: 10px;
        font-size: 10px;
        font-weight: 900;
    }

.profile-2fa-expiry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 11px 0 15px;
    padding: 12px 13px;
    background: rgba(125, 211, 252, 0.05);
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 13px;
}

    .profile-2fa-expiry span {
        color: #94a3b8;
        font-size: 10px;
    }

    .profile-2fa-expiry strong {
        color: #7dd3fc;
        font-family: Consolas, "Courier New", monospace;
        font-size: 14px;
        font-weight: 900;
    }

.profile-2fa-code-input {
    width: 100%;
    min-height: 49px;
    direction: ltr;
    text-align: center;
    font-family: Consolas, "Courier New", monospace;
    font-size: 20px !important;
    font-weight: 900;
    letter-spacing: 0.3em;
}

.profile-2fa-action-form .profile-2fa-code-input {
    letter-spacing: 0.08em;
}

.profile-2fa-verify-column .profile-form-group small,
.profile-2fa-action-form .profile-form-group small {
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.55;
}

.profile-2fa-setup-actions,
.profile-2fa-enabled-actions,
.profile-2fa-modal-actions,
.profile-2fa-recovery-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.profile-2fa-setup-actions {
    margin-top: 15px;
}

.profile-2fa-secondary-btn,
.profile-2fa-danger-btn,
.profile-2fa-link-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 900;
    transition: 0.2s ease;
}

.profile-2fa-secondary-btn {
    color: #11e9a1;
    background: rgba(17, 233, 161, 0.07);
    border: 1px solid rgba(17, 233, 161, 0.22);
}

    .profile-2fa-secondary-btn:hover:not(:disabled) {
        color: #18f5ac;
        background: rgba(17, 233, 161, 0.13);
        border-color: #11e9a1;
        transform: translateY(-1px);
    }

.profile-2fa-danger-btn {
    color: #ff7b7b;
    background: rgba(255, 107, 107, 0.07);
    border: 1px solid rgba(255, 107, 107, 0.24);
}

    .profile-2fa-danger-btn:hover:not(:disabled) {
        background: rgba(255, 107, 107, 0.13);
        border-color: #ff7b7b;
        transform: translateY(-1px);
    }

.profile-2fa-link-btn {
    color: #94a3b8;
    background: transparent;
    border: 1px solid transparent;
}

    .profile-2fa-link-btn:hover {
        color: #ffffff;
        background: rgba(148, 163, 184, 0.06);
        border-color: rgba(148, 163, 184, 0.16);
    }

    .profile-2fa-secondary-btn:disabled,
    .profile-2fa-danger-btn:disabled,
    .profile-2fa-link-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

.profile-2fa-enabled-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

    .profile-2fa-enabled-metrics > div {
        min-width: 0;
        padding: 14px;
        background: #0d131b;
        border: 1px solid #1c2532;
        border-radius: 14px;
    }

    .profile-2fa-enabled-metrics span,
    .profile-2fa-enabled-metrics strong {
        display: block;
    }

    .profile-2fa-enabled-metrics span {
        color: #94a3b8;
        font-size: 10px;
    }

    .profile-2fa-enabled-metrics strong {
        margin-top: 6px;
        color: #ffffff;
        font-size: 13px;
        font-weight: 900;
        overflow-wrap: anywhere;
    }

        .profile-2fa-enabled-metrics strong.low {
            color: #ff7b7b;
        }

.profile-2fa-modal-open {
    overflow: hidden;
}

.profile-2fa-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.profile-2fa-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 5, 8, 0.82);
    backdrop-filter: blur(5px);
}

.profile-2fa-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    padding: 21px;
    background: #121821;
    border: 1px solid #1c2532;
    border-radius: 19px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

    .profile-2fa-modal-dialog.recovery {
        width: min(100%, 650px);
    }

.profile-2fa-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.profile-2fa-modal-close {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #0b0f14;
    border: 1px solid #1c2532;
    border-radius: 10px;
    font-size: 22px;
    line-height: 1;
}

    .profile-2fa-modal-close:hover {
        color: #ffffff;
        border-color: rgba(17, 233, 161, 0.3);
    }

.profile-2fa-modal-description {
    margin: 13px 0 0;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.65;
}

.profile-2fa-action-form {
    display: grid;
    gap: 15px;
    margin-top: 17px;
}

.profile-2fa-modal-actions {
    justify-content: flex-end;
    margin-top: 2px;
}

    .profile-2fa-modal-actions
    .panel-primary-btn.danger {
        color: #ffffff;
        background: #d94f4f;
        border-color: #d94f4f;
    }

        .profile-2fa-modal-actions
        .panel-primary-btn.danger:hover:not(:disabled) {
            background: #eb5d5d;
            border-color: #eb5d5d;
        }

.profile-2fa-recovery-alert {
    margin-top: 16px;
}

.profile-2fa-recovery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 15px;
}

.profile-2fa-recovery-code {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #0b0f14;
    border: 1px solid #1c2532;
    border-radius: 12px;
}

    .profile-2fa-recovery-code > span {
        width: 25px;
        height: 25px;
        flex: 0 0 25px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #11e9a1;
        background: rgba(17, 233, 161, 0.07);
        border: 1px solid rgba(17, 233, 161, 0.18);
        border-radius: 8px;
        font-size: 9px;
        font-weight: 900;
    }

    .profile-2fa-recovery-code code {
        color: #ffffff;
        font-family: Consolas, "Courier New", monospace;
        font-size: 12px;
        font-weight: 900;
        letter-spacing: 0.04em;
        overflow-wrap: anywhere;
    }

.profile-2fa-recovery-tools {
    margin-top: 13px;
}

.profile-2fa-saved-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0;
    color: #dce5ed;
    font-size: 11px;
    line-height: 1.55;
    cursor: pointer;
}

    .profile-2fa-saved-check input {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        margin-top: 1px;
        accent-color: #11e9a1;
    }

.profile-2fa-full-btn {
    width: 100%;
}

@media (max-width: 900px) {
    .profile-2fa-benefits,
    .profile-2fa-enabled-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-2fa-setup-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .profile-2fa-header,
    .profile-2fa-disabled-hero,
    .profile-2fa-enabled-hero,
    .profile-2fa-manual-key {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-2fa-benefits,
    .profile-2fa-enabled-metrics,
    .profile-2fa-account-info,
    .profile-2fa-recovery-grid {
        grid-template-columns: 1fr;
    }

    .profile-2fa-main-btn,
    .profile-2fa-setup-actions > *,
    .profile-2fa-enabled-actions > *,
    .profile-2fa-modal-actions > *,
    .profile-2fa-recovery-tools > * {
        width: 100%;
    }

    .profile-2fa-modal {
        padding: 10px;
    }

    .profile-2fa-modal-dialog {
        max-height: calc(100vh - 20px);
        padding: 17px;
    }

    .profile-2fa-code-input {
        font-size: 18px !important;
        letter-spacing: 0.2em;
    }
}
/* =========================================================
   Otrade Sidebar - Final Override
   Desktop: fixed and always visible
   Tablet/Mobile: hidden off-canvas
   ========================================================= */

:root {
    --otrade-sidebar-width: 260px;
}

/* =========================
   Desktop
   ========================= */

@media (min-width: 993px) {

    body.panel-body .sidebar {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: auto !important;
        width: var(--otrade-sidebar-width) !important;
        min-width: var(--otrade-sidebar-width) !important;
        max-width: var(--otrade-sidebar-width) !important;
        height: 100vh !important;
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        z-index: 2000 !important;
    }

    body.panel-body .panel-main {
        display: block !important;
        width: calc( 100% - var(--otrade-sidebar-width) ) !important;
        max-width: none !important;
        margin-left: var(--otrade-sidebar-width) !important;
        margin-right: 0 !important;
    }

    body.panel-body .mobile-menu-btn {
        display: none !important;
    }

    body.panel-body .sidebar-mobile-overlay {
        display: none !important;
    }

    /*
     * خنثی‌کردن کلاس قدیمی
     */
    body.panel-body.sidebar-collapsed .sidebar {
        display: flex !important;
        width: var(--otrade-sidebar-width) !important;
        min-width: var(--otrade-sidebar-width) !important;
        max-width: var(--otrade-sidebar-width) !important;
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    body.panel-body.sidebar-collapsed .panel-main {
        width: calc( 100% - var(--otrade-sidebar-width) ) !important;
        margin-left: var(--otrade-sidebar-width) !important;
    }
}

/* =========================
   Tablet and Mobile
   ========================= */

@media (max-width: 992px) {

    body.panel-body .panel-main {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.panel-body .sidebar {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        bottom: auto !important;
        left: 0 !important;
        right: auto !important;
        width: min(286px, 86vw) !important;
        min-width: 0 !important;
        max-width: min(286px, 86vw) !important;
        height: 100dvh !important;
        transform: translateX(-105%) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        transition: transform 0.25s ease !important;
        z-index: 4001 !important;
    }

    body.panel-body.sidebar-open .sidebar {
        transform: translateX(0) !important;
    }

    body.panel-body .mobile-menu-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body.panel-body .sidebar-mobile-overlay {
        display: none !important;
        position: fixed !important;
        inset: 0 !important;
        background: rgba(0, 0, 0, 0.58) !important;
        z-index: 4000 !important;
    }

    body.panel-body.sidebar-open
    .sidebar-mobile-overlay {
        display: block !important;
    }

    body.panel-body.sidebar-open {
        overflow: hidden !important;
    }
}
/* =========================================================
   Admin Deposits Review
   ========================================================= */

.deposit-review-page,
.deposit-review-page *,
.deposit-review-backdrop,
.deposit-review-backdrop * {
    box-sizing: border-box;
}

.deposit-review-page {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
}

.deposit-review-page-card {
    width: 100%;
    min-width: 0;
    padding: 22px !important;
}

.deposit-review-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 22px;
}

    .deposit-review-page-header > div {
        min-width: 0;
    }

.deposit-review-eyebrow,
.deposit-review-dialog-eyebrow {
    display: inline-block;
    color: #11E9A1;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

    .deposit-review-dialog-eyebrow.danger {
        color: #F87171;
    }

.deposit-review-page-header h2 {
    margin: 6px 0 0;
    color: #FFFFFF;
    font-size: 27px;
    font-weight: 950;
}

.deposit-review-page-header p {
    max-width: 760px;
    margin: 8px 0 0;
    color: #94A3B8;
    font-size: 13px;
    line-height: 1.7;
}

.deposit-review-refresh-btn {
    min-width: 104px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0 16px;
    color: #11E9A1;
    background: rgba(17, 233, 161, 0.07);
    border: 1px solid rgba(17, 233, 161, 0.22);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s ease;
}

    .deposit-review-refresh-btn:hover:not(:disabled) {
        color: #0B0F14;
        background: #11E9A1;
        border-color: #11E9A1;
    }

    .deposit-review-refresh-btn:disabled {
        opacity: 0.55;
        cursor: wait;
    }

.deposit-review-message {
    padding: 18px;
    color: #94A3B8;
    background: #0D131B;
    border: 1px solid #1C2532;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 700;
}

    .deposit-review-message.empty {
        color: #94A3B8;
    }

    .deposit-review-message.error {
        color: #F87171;
        background: rgba(248, 113, 113, 0.06);
        border-color: rgba(248, 113, 113, 0.20);
    }

.deposit-review-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.deposit-review-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: separate;
    border-spacing: 0 9px;
}

    .deposit-review-table thead th {
        padding: 0 13px 8px;
        color: #94A3B8;
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .deposit-review-table tbody tr {
        background: #0D131B;
        transition: 0.2s ease;
    }

        .deposit-review-table tbody tr:hover {
            background: #101821;
        }

    .deposit-review-table tbody td {
        padding: 13px;
        color: #FFFFFF;
        font-size: 12px;
        vertical-align: middle;
        border-top: 1px solid #1C2532;
        border-bottom: 1px solid #1C2532;
    }

        .deposit-review-table tbody td:first-child {
            border-left: 1px solid #1C2532;
            border-radius: 14px 0 0 14px;
        }

        .deposit-review-table tbody td:last-child {
            border-right: 1px solid #1C2532;
            border-radius: 0 14px 14px 0;
        }

.deposit-review-user-cell {
    min-width: 190px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .deposit-review-user-cell strong {
        color: #11E9A1;
        font-size: 12px;
        font-weight: 950;
        direction: ltr;
    }

    .deposit-review-user-cell span,
    .deposit-review-user-cell small {
        max-width: 240px;
        overflow: hidden;
        color: #94A3B8;
        font-size: 11px;
        text-overflow: ellipsis;
        white-space: nowrap;
        direction: ltr;
    }

    .deposit-review-user-cell small {
        color: #CBD5E1;
    }

.deposit-review-amount-cell {
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
}

.deposit-review-tx-cell {
    max-width: 280px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .deposit-review-tx-cell span {
        min-width: 0;
        flex: 1;
        overflow: hidden;
        color: #CBD5E1;
        text-overflow: ellipsis;
        white-space: nowrap;
        direction: ltr;
    }

    .deposit-review-tx-cell button,
    .deposit-review-copy-btn {
        min-width: 54px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 10px;
        color: #11E9A1;
        background: rgba(17, 233, 161, 0.07);
        border: 1px solid rgba(17, 233, 161, 0.18);
        border-radius: 9px;
        font-size: 10px;
        font-weight: 900;
        cursor: pointer;
        transition: 0.2s ease;
    }

        .deposit-review-tx-cell button:hover,
        .deposit-review-copy-btn:hover:not(:disabled) {
            color: #0B0F14;
            background: #11E9A1;
            border-color: #11E9A1;
        }

        .deposit-review-copy-btn:disabled {
            display: none;
        }

.deposit-review-network {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: #11E9A1;
    background: rgba(17, 233, 161, 0.07);
    border: 1px solid rgba(17, 233, 161, 0.18);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.deposit-review-date {
    color: #CBD5E1;
    font-size: 11px;
    white-space: nowrap;
}

.deposit-review-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.deposit-review-table-btn {
    min-width: 74px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s ease;
}

    .deposit-review-table-btn.approve {
        color: #11E9A1;
        background: rgba(17, 233, 161, 0.08);
        border: 1px solid rgba(17, 233, 161, 0.22);
    }

        .deposit-review-table-btn.approve:hover {
            color: #0B0F14;
            background: #11E9A1;
            border-color: #11E9A1;
        }

    .deposit-review-table-btn.reject {
        color: #F87171;
        background: rgba(248, 113, 113, 0.07);
        border: 1px solid rgba(248, 113, 113, 0.20);
    }

        .deposit-review-table-btn.reject:hover {
            color: #FFFFFF;
            background: rgba(248, 113, 113, 0.20);
            border-color: #F87171;
        }

/* =========================================================
   Deposit dialogs
   ========================================================= */

body.deposit-review-modal-open {
    overflow: hidden !important;
}

.deposit-review-backdrop[hidden] {
    display: none !important;
}

.deposit-review-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(2, 6, 10, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.deposit-review-dialog {
    width: min(620px, calc(100vw - 36px));
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #FFFFFF;
    background: radial-gradient( circle at 100% 0%, rgba(17, 233, 161, 0.09), transparent 34% ), #121821;
    border: 1px solid rgba(17, 233, 161, 0.18);
    border-radius: 20px;
    box-shadow: 0 28px 85px rgba(0, 0, 0, 0.58), inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

    .deposit-review-dialog.reject {
        border-color: rgba(248, 113, 113, 0.18);
        background: radial-gradient( circle at 100% 0%, rgba(248, 113, 113, 0.07), transparent 34% ), #121821;
    }

.deposit-review-dialog-header {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px 17px;
    border-bottom: 1px solid #1C2532;
}

    .deposit-review-dialog-header > div {
        min-width: 0;
    }

    .deposit-review-dialog-header h3 {
        margin: 5px 0 0;
        color: #FFFFFF;
        font-size: 21px;
        font-weight: 950;
    }

    .deposit-review-dialog-header p {
        max-width: 470px;
        margin: 7px 0 0;
        color: #94A3B8;
        font-size: 12px;
        line-height: 1.65;
    }

.deposit-review-close-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #94A3B8;
    background: #0B1118;
    border: 1px solid #1C2532;
    border-radius: 12px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s ease;
}

    .deposit-review-close-btn:hover {
        color: #11E9A1;
        border-color: rgba(17, 233, 161, 0.40);
        background: rgba(17, 233, 161, 0.07);
    }

.deposit-review-dialog-body {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px 22px;
}

    .deposit-review-dialog-body::-webkit-scrollbar {
        width: 6px;
    }

    .deposit-review-dialog-body::-webkit-scrollbar-thumb {
        background: #1C2532;
        border-radius: 999px;
    }

.deposit-review-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(160px, 0.65fr);
    gap: 10px;
    margin-bottom: 12px;
}

.deposit-review-summary-card {
    min-width: 0;
    padding: 14px 15px;
    background: #0D131B;
    border: 1px solid #1C2532;
    border-radius: 14px;
}

    .deposit-review-summary-card span,
    .deposit-review-info-row span {
        display: block;
        color: #94A3B8;
        font-size: 10px;
        font-weight: 850;
    }

    .deposit-review-summary-card strong {
        display: block;
        margin-top: 6px;
        overflow: hidden;
        color: #FFFFFF;
        font-size: 13px;
        font-weight: 900;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .deposit-review-summary-card.amount strong {
        color: #11E9A1;
        font-size: 16px;
        direction: ltr;
    }

.deposit-review-info-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.deposit-review-info-row {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    background: #0D131B;
    border: 1px solid #1C2532;
    border-radius: 14px;
}

    .deposit-review-info-row > div {
        min-width: 0;
        flex: 1;
    }

    .deposit-review-info-row strong {
        display: block;
        margin-top: 6px;
        overflow: hidden;
        color: #FFFFFF;
        font-size: 12px;
        font-weight: 850;
        text-overflow: ellipsis;
        white-space: nowrap;
        direction: ltr;
    }

.deposit-review-field {
    margin-top: 17px;
}

    .deposit-review-field > label {
        display: block;
        margin-bottom: 8px;
        color: #FFFFFF;
        font-size: 13px;
        font-weight: 900;
    }

.deposit-review-amount-input-wrap {
    position: relative;
}

.deposit-review-amount-input {
    width: 100%;
    height: 52px;
    padding: 0 78px 0 16px;
    color: #FFFFFF;
    background: #080E15;
    border: 1px solid rgba(17, 233, 161, 0.30);
    border-radius: 14px;
    outline: none;
    caret-color: #FFFFFF;
    font-size: 18px;
    font-weight: 950;
    direction: ltr;
    transition: 0.2s ease;
}

    .deposit-review-amount-input:focus {
        background: #080E15;
        border-color: #11E9A1;
        box-shadow: 0 0 0 3px rgba(17, 233, 161, 0.09);
    }

.deposit-review-amount-input-wrap > span {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: #11E9A1;
    font-size: 11px;
    font-weight: 950;
    pointer-events: none;
}

.deposit-review-amount-input::-webkit-outer-spin-button,
.deposit-review-amount-input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

.deposit-review-textarea {
    width: 100%;
    min-height: 126px;
    resize: vertical;
    padding: 13px 15px;
    color: #FFFFFF;
    background: #080E15;
    border: 1px solid #1C2532;
    border-radius: 14px;
    outline: none;
    caret-color: #FFFFFF;
    font-size: 13px;
    line-height: 1.7;
    transition: 0.2s ease;
}

    .deposit-review-textarea:focus {
        border-color: #F87171;
        box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.08);
    }

.deposit-review-help {
    margin: 8px 0 0;
    color: #94A3B8;
    font-size: 11px;
    line-height: 1.6;
}

    .deposit-review-help strong {
        color: #FFFFFF;
    }

.deposit-review-textarea-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

    .deposit-review-textarea-footer .deposit-review-help {
        flex: 1;
    }

    .deposit-review-textarea-footer > span {
        margin-top: 8px;
        color: #94A3B8;
        font-size: 10px;
        font-weight: 800;
        white-space: nowrap;
    }

.deposit-review-dialog-footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px 18px;
    background: rgba(8, 13, 19, 0.45);
    border-top: 1px solid #1C2532;
}

.deposit-review-secondary-btn,
.deposit-review-primary-btn,
.deposit-review-danger-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
    transition: 0.2s ease;
}

.deposit-review-secondary-btn {
    min-width: 94px;
    color: #FFFFFF;
    background: #0B1118;
    border: 1px solid #1C2532;
}

    .deposit-review-secondary-btn:hover {
        color: #11E9A1;
        border-color: rgba(17, 233, 161, 0.40);
    }

.deposit-review-primary-btn {
    min-width: 212px;
    color: #06100C;
    background: #11E9A1;
    border: 1px solid #11E9A1;
}

    .deposit-review-primary-btn:hover:not(:disabled) {
        background: #18F5AC;
        border-color: #18F5AC;
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(17, 233, 161, 0.16);
    }

.deposit-review-danger-btn {
    min-width: 138px;
    color: #FFFFFF;
    background: #DC3F4E;
    border: 1px solid #DC3F4E;
}

    .deposit-review-danger-btn:hover:not(:disabled) {
        background: #EF4A58;
        border-color: #EF4A58;
        transform: translateY(-1px);
    }

    .deposit-review-primary-btn:disabled,
    .deposit-review-danger-btn:disabled {
        opacity: 0.55;
        cursor: wait;
        transform: none;
    }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 768px) {
    .deposit-review-page-card {
        padding: 16px !important;
    }

    .deposit-review-page-header {
        flex-direction: column;
        gap: 14px;
    }

    .deposit-review-refresh-btn {
        width: 100%;
    }

    .deposit-review-backdrop {
        padding: 10px;
    }

    .deposit-review-dialog {
        width: 100%;
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 17px;
    }

    .deposit-review-dialog-header {
        padding: 17px 17px 14px;
    }

        .deposit-review-dialog-header h3 {
            font-size: 19px;
        }

    .deposit-review-dialog-body {
        padding: 15px 17px;
    }

    .deposit-review-summary-grid {
        grid-template-columns: 1fr;
    }

    .deposit-review-summary-card strong {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .deposit-review-info-row {
        align-items: flex-start;
    }

        .deposit-review-info-row strong {
            white-space: normal;
            overflow-wrap: anywhere;
        }

    .deposit-review-dialog-footer {
        padding: 13px 17px 16px;
        flex-direction: column-reverse;
    }

    .deposit-review-secondary-btn,
    .deposit-review-primary-btn,
    .deposit-review-danger-btn {
        width: 100%;
        min-width: 100%;
    }

    .deposit-review-textarea-footer {
        flex-direction: column;
        gap: 0;
    }
}
/* =========================================================
   Otrade V14 - Compact Desktop Density
   Desktop only: 993px and wider
   Tablet and Mobile remain unchanged
   ========================================================= */

:root {
    --otrade-sidebar-width: 224px;
    --otrade-desktop-content-padding: 20px;
}

@media (min-width: 993px) {

    html {
        font-size: 15px;
    }

    body.panel-body {
        font-size: 14px;
        overflow-x: hidden;
    }

        /* =====================================================
       Main desktop layout
       ===================================================== */

        body.panel-body .panel-layout {
            display: block !important;
            width: 100% !important;
            min-height: 100vh !important;
        }

        body.panel-body .sidebar {
            display: flex !important;
            flex-direction: column !important;
            position: fixed !important;
            top: 0 !important;
            bottom: 0 !important;
            left: 0 !important;
            right: auto !important;
            width: var(--otrade-sidebar-width) !important;
            min-width: var(--otrade-sidebar-width) !important;
            max-width: var(--otrade-sidebar-width) !important;
            height: 100vh !important;
            max-height: 100vh !important;
            padding: 17px 15px !important;
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: auto !important;
            transform: none !important;
            translate: none !important;
            overflow: hidden !important;
            z-index: 2000 !important;
            background: linear-gradient( 135deg, #18212d, #0b0f14 ) !important;
            border-right: 1px solid #1c2532 !important;
            box-shadow: 12px 0 32px rgba(0, 0, 0, 0.18) !important;
        }

        body.panel-body .panel-main {
            display: block !important;
            width: calc( 100% - var(--otrade-sidebar-width) ) !important;
            min-width: 0 !important;
            max-width: none !important;
            min-height: 100vh !important;
            margin-left: var(--otrade-sidebar-width) !important;
            margin-right: 0 !important;
            transform: none !important;
        }

        body.panel-body.sidebar-open .sidebar,
        body.panel-body.sidebar-collapsed .sidebar {
            display: flex !important;
            width: var(--otrade-sidebar-width) !important;
            min-width: var(--otrade-sidebar-width) !important;
            max-width: var(--otrade-sidebar-width) !important;
            padding: 17px 15px !important;
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: auto !important;
            transform: none !important;
            translate: none !important;
        }

        body.panel-body.sidebar-open .panel-main,
        body.panel-body.sidebar-collapsed .panel-main {
            width: calc( 100% - var(--otrade-sidebar-width) ) !important;
            margin-left: var(--otrade-sidebar-width) !important;
        }

        body.panel-body.sidebar-open,
        body.panel-body.sidebar-collapsed {
            overflow: auto !important;
        }

        body.panel-body .sidebar-mobile-overlay,
        body.panel-body .mobile-menu-btn {
            display: none !important;
        }

        /* =====================================================
       Sidebar compact design
       ===================================================== */

        body.panel-body .sidebar-logo {
            flex: 0 0 auto;
            margin-bottom: 5px !important;
        }

            body.panel-body .sidebar-logo img {
                width: auto !important;
                max-width: 118px !important;
                max-height: 150px !important;
                margin: 0 auto !important;
            }

        body.panel-body .sidebar-uid-chip {
            flex: 0 0 auto;
            margin: 7px 10px 10px !important;
            padding: 6px 9px !important;
            gap: 6px !important;
        }

            body.panel-body .sidebar-uid-chip span {
                font-size: 9px !important;
            }

            body.panel-body .sidebar-uid-chip strong {
                font-size: 11px !important;
            }

        body.panel-body .sidebar-nav {
            flex: 1 1 auto !important;
            min-height: 0 !important;
            gap: 3px !important;
            padding: 3px 3px 8px 0 !important;
            overflow-x: hidden !important;
            overflow-y: auto !important;
            scrollbar-width: thin;
            scrollbar-color: #475569 transparent;
        }

            body.panel-body
            .sidebar-nav::-webkit-scrollbar {
                width: 5px;
            }

            body.panel-body
            .sidebar-nav::-webkit-scrollbar-track {
                background: transparent;
            }

            body.panel-body
            .sidebar-nav::-webkit-scrollbar-thumb {
                background: #475569;
                border-radius: 999px;
            }

            body.panel-body .sidebar nav a,
            body.panel-body .sidebar-nav .nav-item {
                min-height: 38px !important;
                display: flex !important;
                align-items: center !important;
                margin-bottom: 2px !important;
                padding: 8px 11px !important;
                border-radius: 10px !important;
                font-size: 13px !important;
                line-height: 1.25 !important;
            }

        body.panel-body .logout-btn {
            flex: 0 0 auto !important;
            width: 100% !important;
            height: 40px !important;
            min-height: 40px !important;
            margin-top: 10px !important;
            border-radius: 11px !important;
            font-size: 13px !important;
        }

        /* =====================================================
       Topbar and content
       ===================================================== */

        body.panel-body .topbar {
            position: sticky !important;
            top: 0 !important;
            height: 60px !important;
            min-height: 60px !important;
            padding: 0 22px !important;
            z-index: 900 !important;
        }

            body.panel-body .topbar h4 {
                margin: 0 !important;
                font-size: 21px !important;
                line-height: 1.2 !important;
                font-weight: 900 !important;
            }

        body.panel-body .content {
            width: 100% !important;
            min-width: 0 !important;
            padding: 18px var(--otrade-desktop-content-padding) 24px !important;
        }

        /* =====================================================
       Common desktop density
       ===================================================== */

        body.panel-body .panel-primary-btn {
            height: 42px;
            min-height: 42px;
            padding: 0 16px;
            border-radius: 11px;
            font-size: 12px;
        }

        body.panel-body .panel-input {
            height: 42px;
            min-height: 42px;
            border-radius: 11px;
            font-size: 13px;
        }

        body.panel-body textarea.panel-input {
            height: auto;
            min-height: 96px;
        }

        body.panel-body .page-header-card {
            gap: 15px;
        }

        body.panel-body .dashboard-grid,
        body.panel-body .dashboard-v2,
        body.panel-body .rank-v2-page,
        body.panel-body .rank-v2-content,
        body.panel-body .wallet-v2-page,
        body.panel-body .contract-v2-page,
        body.panel-body .tickets-v2-page,
        body.panel-body .referral-page,
        body.panel-body .profits-page,
        body.panel-body .reports-page,
        body.panel-body .profile-page {
            gap: 14px !important;
        }

            body.panel-body
            .dashboard-v2 .panel-card,
            body.panel-body
            .rank-v2-page .panel-card,
            body.panel-body
            .wallet-v2-page .panel-card,
            body.panel-body
            .contract-v2-page .panel-card,
            body.panel-body
            .tickets-v2-page .panel-card,
            body.panel-body
            .referral-page .panel-card,
            body.panel-body
            .profits-page .panel-card,
            body.panel-body
            .reports-page .panel-card,
            body.panel-body
            .profile-page .panel-card {
                padding: 16px !important;
                border-radius: 17px !important;
            }

        body.panel-body
        .dashboard-v2-welcome,
        body.panel-body
        .rank-v2-header,
        body.panel-body
        .wallet-v2-header,
        body.panel-body
        .contract-v2-header,
        body.panel-body
        .tickets-v2-header {
            min-height: 88px !important;
            padding: 16px 18px !important;
        }

            body.panel-body
            .dashboard-v2-welcome h2,
            body.panel-body
            .rank-v2-header h2,
            body.panel-body
            .wallet-v2-header h2,
            body.panel-body
            .contract-v2-header h2,
            body.panel-body
            .tickets-v2-header h2,
            body.panel-body
            .page-header-card h2,
            body.panel-body
            .deposit-header h3,
            body.panel-body
            .withdrawal-header h3,
            body.panel-body
            .profits-header h3,
            body.panel-body
            .referral-header h3,
            body.panel-body
            .reports-header h3,
            body.panel-body
            .profile-header h3 {
                font-size: 22px !important;
                line-height: 1.25 !important;
            }

        body.panel-body
        .rank-v2-card-header h3,
        body.panel-body
        .rank-v2-section-header h3,
        body.panel-body
        .wallet-v2-section-header h3,
        body.panel-body
        .dashboard-v2-section-header h3,
        body.panel-body
        .contract-v2-state-header h3,
        body.panel-body
        .referral-section-header h3 {
            font-size: 17px !important;
        }

        body.panel-body
        .dashboard-v2-welcome p,
        body.panel-body
        .rank-v2-header p,
        body.panel-body
        .wallet-v2-header p,
        body.panel-body
        .contract-v2-header p,
        body.panel-body
        .tickets-v2-header p,
        body.panel-body
        .page-header-card p,
        body.panel-body
        .deposit-header p,
        body.panel-body
        .withdrawal-header p {
            font-size: 12px !important;
            line-height: 1.6 !important;
        }

        /* =====================================================
       Dashboard compact
       ===================================================== */

        body.panel-body
        .dashboard-v2-primary-grid,
        body.panel-body
        .dashboard-v2-secondary-grid {
            gap: 14px !important;
        }

        body.panel-body
        .dashboard-v2-wallet-list,
        body.panel-body
        .dashboard-v2-actions-grid {
            gap: 8px !important;
        }

        body.panel-body
        .dashboard-v2-wallet-row {
            min-height: 58px !important;
            padding: 10px 12px !important;
            border-radius: 13px !important;
        }

        body.panel-body
        .dashboard-v2-action-card {
            min-height: 68px !important;
            padding: 10px 12px !important;
            border-radius: 13px !important;
        }

        body.panel-body
        .dashboard-v2-total-assets {
            padding: 13px 15px !important;
        }

            body.panel-body
            .dashboard-v2-total-assets strong {
                font-size: clamp( 22px, 2vw, 28px ) !important;
            }

        body.panel-body
        .dashboard-v2-wallet-balance {
            font-size: 15px !important;
        }

        body.panel-body
        .dashboard-v2-action-icon,
        body.panel-body
        .dashboard-v2-wallet-icon {
            width: 36px !important;
            height: 36px !important;
            flex-basis: 36px !important;
            border-radius: 11px !important;
        }

        body.panel-body
        .rank-media-dashboard-current-shell {
            width: 74px !important;
            height: 74px !important;
            border-radius: 18px !important;
        }

        /* =====================================================
       Rank page compact
       ===================================================== */

        body.panel-body
        .rank-v2-overview-grid {
            gap: 14px !important;
        }

        body.panel-body
        .rank-v2-current-card,
        body.panel-body
        .rank-v2-progress-card,
        body.panel-body
        .rank-v2-benefits-section,
        body.panel-body
        .rank-v2-levels-section {
            padding: 16px !important;
        }

        body.panel-body
        .rank-v2-card-header,
        body.panel-body
        .rank-v2-section-header {
            margin-bottom: 13px !important;
        }

        body.panel-body
        .rank-v2-current-main {
            min-height: 112px !important;
            gap: 13px !important;
            padding: 13px !important;
            border-radius: 15px !important;
        }

        body.panel-body
        .rank-media-current-shell {
            width: 88px !important;
            height: 88px !important;
            border-radius: 20px !important;
        }

        body.panel-body
        .rank-media-next-shell {
            width: 56px !important;
            height: 56px !important;
            border-radius: 15px !important;
        }

        body.panel-body
        .rank-media-card-shell {
            width: 68px !important;
            height: 68px !important;
            border-radius: 16px !important;
        }

        body.panel-body
        .rank-media-selected-shell {
            width: 70px !important;
            height: 70px !important;
            border-radius: 17px !important;
        }

        body.panel-body
        .rank-media-contract-shell {
            width: 82px !important;
            height: 82px !important;
            border-radius: 19px !important;
        }

        body.panel-body
        .rank-v2-current-info > strong {
            font-size: clamp( 23px, 2.4vw, 31px ) !important;
        }

        body.panel-body
        .rank-v2-volume-box,
        body.panel-body
        .rank-v2-next-rank {
            padding: 13px !important;
            border-radius: 14px !important;
        }

            body.panel-body
            .rank-v2-next-rank strong {
                font-size: 23px !important;
            }

        body.panel-body
        .rank-v2-benefits-grid {
            gap: 9px !important;
        }

        body.panel-body
        .rank-v2-benefit-card {
            min-height: 80px !important;
            gap: 10px !important;
            padding: 11px !important;
            border-radius: 13px !important;
        }

        body.panel-body
        .rank-v2-benefit-number {
            width: 34px !important;
            height: 34px !important;
            flex-basis: 34px !important;
            border-radius: 10px !important;
        }

        body.panel-body
        .rank-v2-benefit-card strong {
            font-size: 17px !important;
        }

        body.panel-body
        .rank-v2-cards-grid {
            gap: 9px !important;
        }

        body.panel-body
        .rank-v2-level-card {
            min-height: 188px !important;
            padding: 11px !important;
            border-radius: 14px !important;
        }

        body.panel-body
        .rank-v2-level-name {
            margin-top: 10px !important;
        }

            body.panel-body
            .rank-v2-level-name strong {
                font-size: 18px !important;
            }

        body.panel-body
        .rank-v2-level-volume {
            margin-top: 10px !important;
            padding: 9px !important;
        }

        body.panel-body
        .rank-v2-level-preview {
            padding-top: 9px !important;
        }

        body.panel-body
        .rank-v2-selected-detail {
            margin-top: 13px !important;
            padding: 15px !important;
            border-radius: 15px !important;
        }

        body.panel-body
        .rank-v2-selected-title h3 {
            font-size: 21px !important;
        }

        body.panel-body
        .rank-v2-selected-metrics {
            gap: 7px !important;
        }

            body.panel-body
            .rank-v2-selected-metrics > div {
                padding: 10px !important;
                border-radius: 11px !important;
            }

        /* =====================================================
       Common user tables
       ===================================================== */

        body.panel-body
        .withdrawal-table th,
        body.panel-body
        .withdrawal-table td,
        body.panel-body
        .profits-table th,
        body.panel-body
        .profits-table td,
        body.panel-body
        .referral-table th,
        body.panel-body
        .referral-table td,
        body.panel-body
        .reports-table th,
        body.panel-body
        .reports-table td,
        body.panel-body
        .deposit-history-table th,
        body.panel-body
        .deposit-history-table td,
        body.panel-body
        .bonus-user-table th,
        body.panel-body
        .bonus-user-table td {
            padding: 10px 9px !important;
            font-size: 12px !important;
        }

        /* =====================================================
       Profile 2FA compact
       ===================================================== */

        body.panel-body
        .profile-2fa-setup-grid {
            grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr) !important;
            gap: 14px !important;
        }

        body.panel-body
        .profile-2fa-qr-column,
        body.panel-body
        .profile-2fa-verify-column {
            padding: 14px !important;
            border-radius: 14px !important;
        }

        body.panel-body
        .profile-2fa-qr-box {
            width: min( 100%, 230px ) !important;
            margin-top: 12px !important;
        }

        /* =====================================================
       Generic page grids
       ===================================================== */

        body.panel-body
        .wallet-grid,
        body.panel-body
        .info-grid,
        body.panel-body
        .profits-grid,
        body.panel-body
        .reports-grid,
        body.panel-body
        .referral-summary-grid {
            gap: 12px !important;
        }
}
/* =========================================================
   Otrade V14
   User Reports / Referral / Profits
   Final Mobile Responsive Fix
   ========================================================= */

/* =========================================================
   Shared layout protection
   ========================================================= */

.reports-page,
.referral-page,
.profits-page,
.reports-page *,
.referral-page *,
.profits-page * {
    box-sizing: border-box;
}

.reports-page,
.referral-page,
.profits-page {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: grid;
    overflow-x: hidden;
}

    .reports-page > .panel-card,
    .referral-page > .panel-card,
    .profits-page > .panel-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .reports-page .reports-header,
    .referral-page .referral-header,
    .referral-page .referral-section-header,
    .profits-page .profits-header {
        width: 100%;
        min-width: 0;
    }

        .reports-page .reports-header > div,
        .referral-page .referral-header > div,
        .referral-page .referral-section-header > div,
        .profits-page .profits-header > div {
            min-width: 0;
        }

    .reports-page h3,
    .referral-page h3,
    .profits-page h3,
    .reports-page p,
    .referral-page p,
    .profits-page p {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

/* =========================================================
   Internal table scrolling
   Prevent whole page horizontal overflow
   ========================================================= */

.reports-table-wrapper,
.referral-table-wrapper,
.profits-table-wrapper {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: block;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #1C2532;
    border-radius: 14px;
    scrollbar-width: thin;
    scrollbar-color: #475569 #0B0F14;
}

    .reports-table-wrapper::-webkit-scrollbar,
    .referral-table-wrapper::-webkit-scrollbar,
    .profits-table-wrapper::-webkit-scrollbar {
        height: 7px;
    }

    .reports-table-wrapper::-webkit-scrollbar-track,
    .referral-table-wrapper::-webkit-scrollbar-track,
    .profits-table-wrapper::-webkit-scrollbar-track {
        background: #0B0F14;
        border-radius: 999px;
    }

    .reports-table-wrapper::-webkit-scrollbar-thumb,
    .referral-table-wrapper::-webkit-scrollbar-thumb,
    .profits-table-wrapper::-webkit-scrollbar-thumb {
        background: #475569;
        border-radius: 999px;
    }

.reports-table,
.referral-table,
.profits-table {
    width: max-content !important;
    max-width: none !important;
    margin: 0;
    white-space: nowrap;
}

/* =========================================================
   Reports
   ========================================================= */

.reports-page {
    gap: 18px;
}

.reports-grid {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat( 4, minmax(0, 1fr) );
    gap: 14px;
}

.report-summary-card {
    min-width: 0;
    min-height: 96px;
    padding: 16px !important;
    border-radius: 16px !important;
    overflow: hidden;
}

    .report-summary-card span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .report-summary-card strong {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

.reports-tabs {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding-bottom: 3px;
}

.report-tab {
    flex: 0 0 auto;
    white-space: nowrap;
}

.reports-table {
    min-width: 880px !important;
}

    .reports-table th,
    .reports-table td {
        vertical-align: middle;
        white-space: nowrap;
    }

.report-copy-cell,
.report-payment-snapshot,
.report-user-cell {
    min-width: 0;
}

.report-copy-cell {
    width: 240px;
    max-width: 240px;
}

    .report-copy-cell span {
        min-width: 0;
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.report-payment-snapshot {
    max-width: 280px;
}

    .report-payment-snapshot span,
    .report-payment-snapshot small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.report-note {
    max-width: 200px;
}

/* =========================================================
   Referral
   ========================================================= */

.referral-page {
    gap: 18px;
}

.referral-hero-card,
.referral-list-card {
    min-width: 0;
    padding: 18px !important;
    overflow: hidden;
    border-radius: 17px !important;
}

.referral-code-box {
    width: 100%;
    min-width: 0;
}

    .referral-code-box > div {
        min-width: 0;
    }

    .referral-code-box strong {
        display: block;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

.referral-summary-grid {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat( 4, minmax(0, 1fr) );
    gap: 12px;
}

.referral-summary-item {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

    .referral-summary-item strong {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

.referral-rank-content {
    width: 100%;
    min-width: 0;
}

.referral-rank-copy {
    min-width: 0;
}

.referral-rank-value {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.referral-percent-box {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat( 2, minmax(0, 1fr) );
    gap: 12px;
}

    .referral-percent-box > div {
        min-width: 0;
    }

.referral-modern-table {
    min-width: 720px !important;
}

.referral-user-cell {
    min-width: 190px;
    max-width: 220px;
}

    .referral-user-cell strong,
    .referral-user-cell span {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.referral-source-card {
    min-width: 210px;
    max-width: 240px;
}

    .referral-source-card strong,
    .referral-source-card small {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* =========================================================
   Profits
   ========================================================= */

.profits-page {
    gap: 18px;
}

.profits-grid {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat( 3, minmax(0, 1fr) );
    gap: 14px;
}

.profit-summary-card {
    min-width: 0;
    min-height: 96px;
    padding: 16px !important;
    overflow: hidden;
    border-radius: 16px !important;
}

    .profit-summary-card span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profit-summary-card strong {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

.profits-toolbar {
    width: 100%;
    min-width: 0;
}

.profits-filter-group {
    min-width: 0;
}

.profits-select {
    max-width: 100%;
}

.profits-table {
    min-width: 760px !important;
}

    .profits-table th,
    .profits-table td {
        vertical-align: middle;
    }

.profit-detail-inline {
    min-width: 360px;
    max-width: 440px;
    flex-wrap: wrap;
}

.profit-metric-chip,
.profit-rank-chip {
    min-width: 105px !important;
    max-width: 145px;
    overflow: hidden;
}

    .profit-metric-chip strong,
    .profit-rank-chip strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.profit-referral-detail {
    min-width: 220px;
    max-width: 260px;
}

.profit-referral-main {
    min-width: 0;
}

    .profit-referral-main strong,
    .profit-referral-detail small {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 992px) {

    .reports-page,
    .referral-page,
    .profits-page {
        gap: 14px;
    }

    .reports-grid {
        grid-template-columns: repeat( 2, minmax(0, 1fr) );
        gap: 11px;
    }

    .profits-grid {
        grid-template-columns: repeat( 2, minmax(0, 1fr) );
        gap: 11px;
    }

    .profit-summary-card.total {
        grid-column: 1 / -1;
    }

    .referral-summary-grid {
        grid-template-columns: repeat( 2, minmax(0, 1fr) );
        gap: 11px;
    }

    .referral-rank-summary {
        grid-column: 1 / -1;
    }

    .referral-percent-box {
        grid-template-columns: repeat( 2, minmax(0, 1fr) );
        gap: 11px;
    }

    .reports-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
        scrollbar-color: #334155 transparent;
    }

        .reports-tabs::-webkit-scrollbar {
            height: 5px;
        }

        .reports-tabs::-webkit-scrollbar-thumb {
            background: #334155;
            border-radius: 999px;
        }

    .report-tab {
        min-width: max-content;
    }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 768px) {

    .reports-page > .panel-card,
    .referral-page > .panel-card,
    .profits-page > .panel-card {
        padding: 15px !important;
        border-radius: 16px !important;
    }

    .reports-header,
    .referral-header,
    .profits-header {
        margin-bottom: 14px !important;
    }

        .reports-header h3,
        .referral-header h3,
        .profits-header h3,
        .referral-section-header h3 {
            font-size: 19px !important;
            line-height: 1.3;
        }

        .reports-header p,
        .referral-header p,
        .profits-header p,
        .referral-section-header p {
            font-size: 12px !important;
            line-height: 1.6;
        }

    /* Reports */

    .report-summary-card {
        min-height: 82px;
        padding: 13px !important;
    }

        .report-summary-card span {
            font-size: 11px !important;
        }

        .report-summary-card strong {
            font-size: 19px !important;
        }

    .reports-tabs {
        gap: 7px;
        margin-bottom: 14px;
    }

    .report-tab {
        min-height: 35px;
        padding: 7px 11px;
        font-size: 11px;
    }

    .reports-table {
        min-width: 820px !important;
    }

        .reports-table th,
        .reports-table td {
            padding: 10px 9px !important;
            font-size: 11px !important;
        }

    .reports-pagination {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 14px;
        text-align: center;
    }

    /* Referral */

    .referral-code-box {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px;
        border-radius: 14px;
    }

        .referral-code-box strong {
            font-size: 18px !important;
        }

        .referral-code-box .panel-primary-btn {
            width: 100%;
            min-height: 42px;
        }

    .referral-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 13px;
    }

    .referral-section-count {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .referral-summary-item {
        min-height: 108px;
        padding: 13px !important;
        border-radius: 14px;
    }

        .referral-summary-item span {
            font-size: 11px !important;
        }

        .referral-summary-item strong {
            font-size: 16px !important;
        }

    .referral-rank-summary {
        min-height: 120px;
    }

        .referral-rank-summary
        .rank-media-shell {
            width: 70px !important;
            height: 70px !important;
            flex-basis: 70px !important;
            border-radius: 16px !important;
        }

    .referral-rank-value {
        font-size: 15px !important;
    }

    .referral-percent-box > div {
        padding: 13px;
        border-radius: 14px;
    }

    .referral-modern-table {
        min-width: 680px !important;
    }

    .referral-table th,
    .referral-table td {
        padding: 10px 9px !important;
        font-size: 11px !important;
    }

    .referral-source-card {
        min-width: 190px;
        max-width: 210px;
    }

    .referral-pagination {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 14px;
        text-align: center;
    }

    /* Profits */

    .profit-summary-card {
        min-height: 82px;
        padding: 13px !important;
    }

        .profit-summary-card span {
            font-size: 11px !important;
        }

        .profit-summary-card strong {
            font-size: 19px !important;
        }

    .profits-toolbar {
        display: block;
        margin-bottom: 14px;
    }

    .profits-filter-group,
    .profits-select {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .profits-select {
        height: 42px;
    }

    .profits-table {
        min-width: 700px !important;
    }

        .profits-table th,
        .profits-table td {
            padding: 10px 9px !important;
            font-size: 11px !important;
        }

    .profit-detail-inline {
        min-width: 330px;
        max-width: 380px;
        gap: 6px;
    }

    .profit-metric-chip,
    .profit-rank-chip {
        min-width: 95px !important;
        min-height: 36px !important;
        padding: 6px 9px !important;
    }

        .profit-metric-chip b,
        .profit-rank-chip b {
            font-size: 9px !important;
        }

        .profit-metric-chip strong,
        .profit-rank-chip strong {
            font-size: 12px !important;
        }

    .profit-referral-detail {
        min-width: 195px;
        max-width: 220px;
    }

    .profits-pagination {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 14px;
        text-align: center;
    }
}

/* =========================================================
   Small mobile
   ========================================================= */

@media (max-width: 520px) {

    .reports-page,
    .referral-page,
    .profits-page {
        gap: 12px;
    }

        .reports-page > .panel-card,
        .referral-page > .panel-card,
        .profits-page > .panel-card {
            padding: 13px !important;
            border-radius: 14px !important;
        }

    /* Reports */

    .reports-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .report-summary-card {
        min-height: 76px;
    }

    .reports-table {
        min-width: 760px !important;
    }

    .reports-pagination-btn {
        min-width: 82px;
        height: 36px;
    }

    /* Referral */

    .referral-summary-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .referral-rank-summary {
        grid-column: auto;
    }

    .referral-percent-box {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .referral-rank-content {
        align-items: center;
        gap: 10px;
    }

    .referral-rank-summary
    .rank-media-shell {
        width: 64px !important;
        height: 64px !important;
        flex-basis: 64px !important;
    }

    .referral-code-box strong {
        font-size: 16px !important;
        letter-spacing: 0.4px;
    }

    .referral-pagination button {
        min-width: 80px;
        height: 36px;
    }

    .referral-pagination span {
        width: 100%;
        order: -1;
    }

    /* Profits */

    .profits-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .profit-summary-card.total {
        grid-column: auto;
    }

    .profits-table {
        min-width: 660px !important;
    }

    .profit-detail-inline {
        min-width: 300px;
    }

    .profits-pagination button {
        min-width: 80px;
        height: 36px;
    }

    .profits-pagination span {
        width: 100%;
        order: -1;
    }
}