* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #131316;
    color: #ffffff;
}

.top-nav {
    height: 52px;
    background: #2a2c31;
    color: #ffffff; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    gap: 20px;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand-logo {
    height: 22px;
    display: block;
}

.main-menu {
    display: flex;
    gap: 20px;
}

.menu-link {
    color: #ffffff;   /* ← was #111 */
    opacity: 0.75;
    text-decoration: none;
    font-size: 15px;
}

.menu-link.active,
.menu-link:hover {
    opacity: 1;
    font-weight: 700;
}

.connect-btn {
    border: none;
    background: #ffffff;
    color: #111;
    border-radius: 6px;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
}

.wallet-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.wallet-chip-logo {
    width: 18px;
    height: 18px;
}

.icon-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.icon-svg {
    width: 19px;
    height: 19px;
    fill: #ffffff; 
}

.top-search-bar {
    display: none;
    background: #1b1c20;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    gap: 10px;
}

.top-search-bar.visible {
    display: flex;
}

.top-search-bar input {
    flex: 1;
    background: #262830;
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    outline: none;
}

.top-search-bar button {
    border: none;
    background: #fff;
    color: #111;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
}

.dashboard-shell {
    max-width: 1500px;
    margin: 0 auto;
    padding: 26px 22px 40px;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.account-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.account-icon {
    width: 22px;
    height: 22px;
}

.account-title {
    font-size: 20px;
    font-weight: 700;
}

.account-subtitle {
    color: #9ba0aa;
    font-size: 14px;
    margin-top: 3px;
    word-break: break-all;
}

.account-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    border: none;
    background: #2a2c31;
    color: #fff;
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
}

.action-btn.primary {
    background: #e7e7e7;
    color: #111;
}

.sub-tabs {
    display: flex;
    gap: 18px;
    margin-bottom: 20px;
}

.sub-tab {
    color: #a8adb7;
    text-decoration: none;
    font-size: 17px;
}

.sub-tab.active {
    color: #fff;
    font-weight: 700;
}

.error-box {
    background: rgba(140, 38, 38, 0.35);
    color: #ffd7d7;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 140, 140, 0.25);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-bottom: 2px;
}

.stat-card {
    border-radius: 16px;
    background: #15161c;
    padding: 14px 14px 10px;
    min-height: 102px;
}

.stat-label {
    color: #a6abb5;
    font-size: 14px;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 16px;
}

.stat-meta {
    color: #b8bcc5;
    font-size: 13px;
}

.chart-panel,
.assets-panel,
.subaccounts-panel {
    background: #15161c;
    margin-top: 2px;
}

.chart-panel-head,
.assets-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.chart-tabs {
    display: flex;
    gap: 18px;
}

.chart-tab,
.assets-tab {
    color: #a6abb5;
    font-size: 14px;
}

.chart-tab.active,
.assets-tab.active {
    color: #fff;
    font-weight: 700;
    position: relative;
}

.chart-range {
    color: #c7ccd5;
    font-size: 14px;
}

.chart-layout {
    display: grid;
    grid-template-columns: 420px 1fr;
    min-height: 330px;
}

.chart-side-metrics {
    padding: 14px;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #b0b5be;
    padding: 10px 0;
    gap: 16px;
}

.metric-row strong {
    color: #ffffff;
    font-weight: 600;
}

.chart-canvas-wrap {
    position: relative;
    min-height: 330px;
    padding: 14px 14px 8px;
}

#volumeChart {
    width: 100%;
    height: 100%;
}

.table-wrap {
    overflow-x: auto;
}

.assets-table {
    width: 100%;
    border-collapse: collapse;
}

.assets-table th,
.assets-table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #fff;
}

.assets-table th {
    color: #9ba0aa;
    font-size: 13px;
    font-weight: 600;
}

.asset-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.asset-icon {
    width: 20px;
    height: 20px;
}

.withdraw-btn {
    border: none;
    background: #2a2c31;
    color: #fff;
    padding: 9px 14px;
    border-radius: 4px;
    cursor: pointer;
}

.subaccount-meta {
    padding: 12px 14px 0;
    color: #c9cdd5;
}

@media (max-width: 1100px) {
    .chart-layout {
        grid-template-columns: 1fr;
    }

    .chart-side-metrics {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }
}
.highlight-card {
    background: radial-gradient(circle at top, rgba(72, 255, 153, 0.18), transparent 38%),
                linear-gradient(135deg, #1d2c21 0%, #101813 55%, #0b110d 100%);
    border: 1px solid rgba(109, 232, 146, 0.30);
    box-shadow:
        0 0 18px rgba(109, 232, 146, 0.12),
        0 0 36px rgba(109, 232, 146, 0.08),
        inset 0 0 0 1px rgba(255,255,255,0.02);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 180px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-card::before {
    content: "";
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle, rgba(109,232,146,0.20) 0%, transparent 58%);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}


.highlight-card > * {
    position: relative;
    z-index: 2;
}

.highlight-card:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow:
        0 0 24px rgba(109, 232, 146, 0.18),
        0 0 50px rgba(109, 232, 146, 0.14);
}

.highlight-label {
    color: #c0ffd9;
    font-size: 14px;
    letter-spacing: 0.35px;
}

.highlight-label.with-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.icon-wrap {
    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    max-width: 10px !important;
    min-height: 10px !important;
    max-height: 10px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 10px !important;
    overflow: hidden;
}

.icon-wrap .label-icon {
    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    max-width: 10px !important;
    min-height: 10px !important;
    max-height: 10px !important;
    display: block !important;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(109, 232, 146, 0.45));
}

.highlight-value {
    font-size: 34px;
    font-weight: 900;
    color: #86ffb7;
    text-shadow:
        0 0 10px rgba(109, 232, 146, 0.25),
        0 0 22px rgba(109, 232, 146, 0.10);
    letter-spacing: 0.3px;
}

.highlight-meta {
    font-size: 13px;
    color: #d2f7df;
    opacity: 0.92;
}

.redeem-main-btn {
    margin-top: 10px;
    border: none;
    background: linear-gradient(135deg, #7effb0 0%, #47d67f 100%);
    color: #08100b;
    font-weight: 900;
    font-size: 13px;
    padding: 12px 24px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(109, 232, 146, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.redeem-main-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 28px rgba(109, 232, 146, 0.34);
}

.redeem-main-btn:active {
    transform: translateY(0) scale(0.98);
}

.jackpot-ring {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(126, 255, 176, 0.12);
    border-radius: 50%;
    z-index: 0;
    animation: ringPulse 2.6s ease-out infinite;
}

.jackpot-ring-2 {
    width: 240px;
    height: 240px;
    animation-delay: 1.1s;
}

.highlight-card.jackpot-pop {
    animation: jackpotPop 0.55s ease;
}

.highlight-card.jackpot-shake {
    animation: jackpotShake 0.42s ease;
}

.redeem-main-btn.btn-bounce {
    animation: btnBounce 0.55s ease;
}

@keyframes ringPulse {
    0% {
        transform: scale(0.72);
        opacity: 0.28;
    }
    100% {
        transform: scale(1.22);
        opacity: 0;
    }
}

@keyframes jackpotPop {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.04); }
    70%  { transform: scale(0.985); }
    100% { transform: scale(1); }
}

@keyframes jackpotShake {
    0%   { transform: translateX(0) scale(1); }
    15%  { transform: translateX(-7px) rotate(-1deg) scale(1.01); }
    30%  { transform: translateX(7px) rotate(1deg) scale(1.015); }
    45%  { transform: translateX(-5px) rotate(-0.8deg); }
    60%  { transform: translateX(5px) rotate(0.8deg); }
    75%  { transform: translateX(-3px); }
    100% { transform: translateX(0) scale(1); }
}

@keyframes btnBounce {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.08); }
    60%  { transform: scale(0.96); }
    100% { transform: scale(1); }
}

.snow-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snow {
    position: absolute;
    top: -12px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(220, 255, 232, 0.9);
    box-shadow: 0 0 8px rgba(109, 232, 146, 0.25);
    animation: snowFall linear infinite;
}

.snow-1 { left: 12%; animation-duration: 4.8s; animation-delay: 0s; }
.snow-2 { left: 26%; animation-duration: 6.1s; animation-delay: 1.2s; width: 4px; height: 4px; }
.snow-3 { left: 41%; animation-duration: 5.2s; animation-delay: 0.8s; width: 6px; height: 6px; }
.snow-4 { left: 58%; animation-duration: 6.8s; animation-delay: 2s; width: 4px; height: 4px; }
.snow-5 { left: 74%; animation-duration: 5.6s; animation-delay: 1.5s; width: 5px; height: 5px; }
.snow-6 { left: 88%; animation-duration: 7.1s; animation-delay: 0.4s; width: 3px; height: 3px; }

@keyframes snowFall {
    0% {
        transform: translateY(-10px) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    50% {
        transform: translateY(80px) translateX(6px);
        opacity: 0.75;
    }
    100% {
        transform: translateY(180px) translateX(-8px);
        opacity: 0;
    }
}
.wallet-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
}

.wallet-modal-overlay.active {
    display: flex;
}

.wallet-modal {
    position: relative;
    width: min(33vw, 520px);
    min-width: 340px;
    height: min(70vh, 720px);
    background: linear-gradient(180deg, #1b1d22 0%, #131316 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.45),
        0 0 30px rgba(109, 232, 146, 0.08);
    overflow: hidden;
    animation: walletModalPop 0.22s ease;
}

.wallet-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.wallet-modal-close:hover {
    background: rgba(255,255,255,0.16);
}

.wallet-modal-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: #131316;
}

@keyframes walletModalPop {
    0% {
        transform: scale(0.94);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 900px) {
    .wallet-modal {
        width: min(92vw, 520px);
        min-width: 0;
        height: min(78vh, 720px);
        border-radius: 18px;
    }
}
.claim-toast {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 99999;
    background: linear-gradient(135deg, rgba(105, 232, 146, 0.28) 0%, rgba(59, 189, 115, 0.82) 100%);
    color: #0c120e;
    border-radius: 14px;
    padding: 14px 18px;
    -webkit-backdrop-filter: blur(6px);
    box-shadow:
        0 12px 30px rgba(0,0,0,0.25),
        0 0 12px rgba(109, 232, 146, 0.12);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.35s ease;
    min-width: 260px;
    max-width: 340px;
}

.claim-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}

.toast-text {
    opacity: 0.75;
}

.toast-amount {
    font-weight: 900;
    letter-spacing: 0.2px;
}

.toast-wallet {
    font-weight: 800;
}
.seo-wallet-title {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}