/* Modern CSS Custom Properties / Design Tokens */
:root {
    --bg-color: #050811;
    --card-bg: rgba(13, 19, 33, 0.45);
    --card-border: rgba(255, 255, 255, 0.08);
    --primary-glow: linear-gradient(135deg, #00D4FF 0%, #4A7DFF 100%);
    --accent-glow: linear-gradient(135deg, #0099FF 0%, #4A7DFF 100%);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --font-outfit: 'Inter', 'Outfit', sans-serif;
    --font-space: 'Space Grotesk', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

body {
    background-color: var(--bg-color);
    background-image: linear-gradient(135deg, #050811 0%, #0c1222 100%);
    color: var(--text-main);
    font-family: var(--font-outfit);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Glassmorphism Auth Container */
.auth-container {
    width: 100%;
    max-width: 480px;
    padding: 24px;
    position: relative;
    z-index: 10;
}

.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 180deg at 50% 50%, transparent 0deg, rgba(0, 242, 254, 0.15) 180deg, transparent 360deg);
    animation: rotateGlow 12s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes rotateGlow {
    100% {
        transform: rotate(360deg);
    }
}

/* Brand / Header Styling */
.brand-header {
    text-align: center;
    margin-bottom: 32px;
}

.brand-logo {
    font-family: var(--font-space);
    font-size: 2rem;
    font-weight: 700;
    background: var(--primary-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.brand-logo i {
    background: var(--primary-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem;
}

.brand-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
}

/* Web3 Wallet State Banner */
.wallet-banner {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--card-border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.wallet-banner.connected {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.wallet-status-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.wallet-status-label .dot {
    width: 8px;
    height: 8px;
    background-color: var(--error-color);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--error-color);
}

.wallet-banner.connected .wallet-status-label .dot {
    background-color: var(--success-color);
    box-shadow: 0 0 8px var(--success-color);
}

.wallet-address-display {
    font-family: var(--font-space);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    word-break: break-all;
}

/* Tabs Navigation (Sign In / Sign Up) */
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
}

.auth-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-outfit);
}

.auth-tab.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Forms Styling */
.form-panel {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.form-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 14px 16px 14px 44px;
    color: var(--text-main);
    font-family: var(--font-outfit);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-field:focus {
    border-color: #00f2fe;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.input-field:focus+i {
    color: #00f2fe;
}

/* Buttons and Interactive Elements */
.btn {
    width: 100%;
    background: var(--primary-glow);
    border: none;
    border-radius: 12px;
    color: #020617;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: var(--font-outfit);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 242, 254, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-wallet-connect {
    background: var(--accent-glow);
    color: var(--text-main);
}

.btn-wallet-connect:hover {
    box-shadow: 0 8px 24px rgba(114, 9, 183, 0.4);
}

/* Custom Sliding Toast Alerts */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    width: 100%;
}

.toast {
    background: rgba(13, 20, 38, 0.95);
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(120%);
    animation: slideIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: all 0.3s ease;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

.toast.hide {
    transform: translateX(120%);
    opacity: 0;
}

.toast-icon {
    font-size: 1.3rem;
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.toast-msg {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.toast-close {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: var(--text-main);
}

.toast-success {
    border-left-color: var(--success-color);
}

.toast-success .toast-icon {
    color: var(--success-color);
}

.toast-error {
    border-left-color: var(--error-color);
}

.toast-error .toast-icon {
    color: var(--error-color);
}

.toast-warning {
    border-left-color: var(--warning-color);
}

.toast-warning .toast-icon {
    color: var(--warning-color);
}

/* Loader Overlay inside the card */
.card-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 9, 19, 0.75);
    backdrop-filter: blur(8px);
    z-index: 50;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.card-loader.active {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(0, 242, 254, 0.1);
    border-radius: 50%;
    border-top-color: #00f2fe;
    animation: spin 1s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.network-warning {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 12px;
    font-size: 0.85rem;
    color: #fbcfe8;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 10px;
}

.network-warning.active {
    display: flex;
}

.network-warning i {
    color: var(--warning-color);
    font-size: 1.1rem;
}

/* Responsive Breakpoints */
@media (max-width: 480px) {
    .auth-card {
        padding: 32px 20px;
    }
}

/* Background canvas for particles */
#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Background lines contour path */
.hero-lines {
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-image: url(../../assets/images/contour.fdd43acf.svg);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: .35;
    pointer-events: none;
}

/* Background blobs */
.fx-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
    animation: float-blob 14s ease-in-out infinite;
}

.fx-blob.b1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.45), transparent 70%);
    top: -120px;
    left: -120px;
}

.fx-blob.b2 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(74, 125, 255, 0.35), transparent 70%);
    bottom: 0px;
    right: -140px;
    animation-delay: -5s;
}

@keyframes float-blob {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -30px) scale(1.08);
    }

    66% {
        transform: translate(-30px, 25px) scale(0.95);
    }
}

/* Mouse-follow light */
#cursor-glow {
    position: fixed;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.12), transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: opacity 0.4s ease;
    mix-blend-mode: screen;
}


/* =====================================================
           DESIGN TOKENS — Exactly matching index.html palette
        ===================================================== */
:root {
    --bg: #06070f;
    --surface: rgba(13, 17, 30, 0.72);
    --surface-2: rgba(255, 255, 255, 0.035);
    --border: rgba(255, 255, 255, 0.07);
    --border-glow: rgba(0, 242, 254, 0.18);

    --grad-cyan: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --grad-purple: linear-gradient(135deg, #b5179e 0%, #7209b7 100%);
    --grad-gold: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --grad-green: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --grad-red: linear-gradient(135deg, #f43f5e 0%, #ef4444 100%);
    --grad-global: linear-gradient(135deg, #00f2fe 0%, #b5179e 50%, #f6d365 100%);

    --cyan: #00f2fe;
    --purple: #b5179e;
    --gold: #f6d365;
    --green: #38ef7d;
    --text: #f1f5f9;
    --muted: #64748b;
    --dim: #94a3b8;

    --font-main: 'Inter', sans-serif;
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Space Grotesk', sans-serif;

    --radius: 16px;
    --radius-lg: 24px;
    --sidebar-w: 260px;
    --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* =====================================================
           BACKGROUND EFFECTS — Matching index.html blobs/canvas
        ===================================================== */
#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.fx-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    animation: blobFloat 12s ease-in-out infinite;
}

.b1 {
    width: 500px;
    height: 500px;
    background: rgba(0, 242, 254, 0.05);
    top: -120px;
    left: -150px;
    animation-delay: 0s;
}

.b2 {
    width: 420px;
    height: 420px;
    background: rgba(181, 23, 158, 0.06);
    bottom: -100px;
    right: -100px;
    animation-delay: -6s;
}

.b3 {
    width: 300px;
    height: 300px;
    background: rgba(79, 172, 254, 0.04);
    top: 40%;
    left: 50%;
    animation-delay: -3s;
}

@keyframes blobFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(20px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-15px, 20px) scale(0.97);
    }
}

/* =====================================================
           LAYOUT — Sidebar + Main Content
        ===================================================== */
.app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* =====================================================
           SIDEBAR
        ===================================================== */
.sidebar {
    width: var(--sidebar-w);
    min-height: 100vh;
    background: rgba(6, 7, 15, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform var(--transition);
}

.sidebar-logo {
    padding: 28px 24px 24px;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--grad-cyan);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #020617;
    font-weight: 800;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--grad-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-user {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.user-badge {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--grad-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #020617;
    flex-shrink: 0;
}

.user-info .label {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 500;
}

.user-info .addr {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--cyan);
    font-weight: 600;
}

.sidebar-nav {
    padding: 20px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--dim);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all var(--transition);
    cursor: pointer;
}

.nav-item i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.nav-item:hover {
    background: var(--surface-2);
    color: var(--text);
}

.nav-item.active {
    background: rgba(0, 242, 254, 0.08);
    color: var(--cyan);
    border: 1px solid rgba(0, 242, 254, 0.15);
}

.nav-item.active i {
    color: var(--cyan);
}

.sidebar-bottom {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
}

/* =====================================================
           MAIN CONTENT
        ===================================================== */
.main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    padding: 32px 32px 48px;
    min-height: 100vh;
}

/* ─── Top Bar ─── */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.topbar-left h1 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text);
}

.topbar-left p {
    color: var(--muted);
    font-size: 0.92rem;
    margin-top: 2px;
}

.topbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-invest {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--grad-cyan);
    color: #020617;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.25);
}

.btn-invest:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 242, 254, 0.35);
}

.btn-invest:active {
    transform: translateY(0);
}

.btn-refresh {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--dim);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.btn-refresh:hover {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-glow);
}

.btn-refresh.spinning i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── Loading Skeleton ─── */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ─── Section Title ─── */
.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--muted);
    margin-bottom: 14px;
}

/* ─── Glass Card ─── */
.glass-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    transition: border-color var(--transition), transform var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.glass-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

/* =====================================================
           STAT CARDS ROW
        ===================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    backdrop-filter: blur(20px);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
}

.stat-card.cyan::after {
    background: var(--grad-cyan);
}

.stat-card.purple::after {
    background: var(--grad-purple);
}

.stat-card.gold::after {
    background: var(--grad-gold);
}

.stat-card.green::after {
    background: var(--grad-green);
}

.stat-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 14px;
}

.stat-icon.cyan {
    background: rgba(0, 242, 254, 0.1);
    color: var(--cyan);
}

.stat-icon.purple {
    background: rgba(181, 23, 158, 0.1);
    color: var(--purple);
}

.stat-icon.gold {
    background: rgba(246, 211, 101, 0.1);
    color: var(--gold);
}

.stat-icon.green {
    background: rgba(56, 239, 125, 0.1);
    color: var(--green);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.stat-value.cyan {
    color: var(--cyan);
}

.stat-value.purple {
    color: var(--purple);
}

.stat-value.gold {
    color: var(--gold);
}

.stat-value.green {
    color: var(--green);
}

.stat-suffix {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 4px;
}

/* =====================================================
           CAP METERS
        ===================================================== */
.cap-section {
    margin-bottom: 28px;
}

.cap-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.cap-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.cap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cap-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dim);
}

.cap-value {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
}

.progress-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 99px;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.progress-fill.global {
    background: var(--grad-global);
}

.progress-fill.roi {
    background: var(--grad-cyan);
}

.progress-fill.other {
    background: var(--grad-purple);
}

.cap-room {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 2px;
}

.cap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

/* Main 5x cap shown prominently */
.cap-main {
    margin-bottom: 0;
}

/* =====================================================
           CHARTS SECTION
        ===================================================== */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.chart-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    padding: 24px;
}

.chart-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.chart-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.chart-card-sub {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 2px;
}

/* =====================================================
           TEAM STATS ROW
        ===================================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    backdrop-filter: blur(16px);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 14px;
}

.team-card:hover {
    border-color: var(--border-glow);
}

.team-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.team-data .tv {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.team-data .tl {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 4px;
}

/* =====================================================
           RANK CARD
        ===================================================== */
.rank-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.rank-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(20px);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.rank-badge.earned {
    background: rgba(246, 211, 101, 0.12);
    color: var(--gold);
    border: 1px solid rgba(246, 211, 101, 0.25);
}

.rank-badge.none {
    background: rgba(100, 116, 139, 0.12);
    color: var(--muted);
    border: 1px solid var(--border);
}

.rank-title {
    font-size: 1.3rem;
    font-weight: 800;
    font-family: var(--font-display);
}

.rank-sub {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 4px;
    margin-bottom: 16px;
}

/* =====================================================
           REFERRAL WIDGET
        ===================================================== */
.referral-widget {
    background: var(--surface);
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    backdrop-filter: blur(20px);
}

.referral-widget h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 6px;
}

.referral-widget p {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 14px;
}

.copy-row {
    display: flex;
    gap: 8px;
}

.copy-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    outline: none;
}

.btn-copy {
    background: var(--grad-cyan);
    border: none;
    border-radius: 10px;
    color: #020617;
    font-weight: 700;
    padding: 10px 18px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.85rem;
    transition: all var(--transition);
}

.btn-copy:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

/* =====================================================
           TRANSACTIONS TABLE
        ===================================================== */
.tx-section {
    margin-bottom: 28px;
}

.tx-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.tx-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tx-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.tx-table {
    width: 100%;
    border-collapse: collapse;
}

.tx-table th {
    padding: 12px 20px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}

.tx-table td {
    padding: 14px 20px;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.tx-table tr:last-child td {
    border-bottom: none;
}

.tx-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.tx-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tx-badge.ROI {
    background: rgba(0, 242, 254, 0.12);
    color: var(--cyan);
}

.tx-badge.Level {
    background: rgba(181, 23, 158, 0.12);
    color: var(--purple);
}

.tx-badge.Referral {
    background: rgba(246, 211, 101, 0.12);
    color: var(--gold);
}

.tx-badge.Reward {
    background: rgba(56, 239, 125, 0.12);
    color: var(--green);
}

.tx-badge.Capped {
    background: rgba(100, 116, 139, 0.12);
    color: var(--muted);
}

.tx-badge.Withdrawal {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.tx-amount {
    font-family: var(--font-mono);
    font-weight: 600;
}

.tx-amount.positive {
    color: var(--green);
}

.tx-amount.burned {
    color: var(--muted);
    text-decoration: line-through;
}

.tx-date {
    color: var(--muted);
    font-size: 0.82rem;
}

.tx-src {
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* =====================================================
           INVEST MODAL
        ===================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: #0d1120;
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 36px;
    width: 100%;
    max-width: 480px;
    transform: scale(0.95);
    transition: transform var(--transition);
}

.modal-overlay.show .modal-box {
    transform: scale(1);
}

.modal-box h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.modal-box p {
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 24px;
}

.modal-input-group {
    margin-bottom: 18px;
}

.modal-input-group label {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.modal-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition);
}

.modal-input:focus {
    border-color: var(--border-glow);
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.btn-modal-cancel {
    flex: 1;
    padding: 14px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--dim);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-modal-cancel:hover {
    background: var(--surface-2);
}

.btn-modal-confirm {
    flex: 2;
    padding: 14px;
    background: var(--grad-cyan);
    border: none;
    border-radius: 12px;
    color: #020617;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-modal-confirm:hover {
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}

.btn-modal-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-payment-result {
    display: none;
    background: rgba(0, 242, 254, 0.04);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 12px;
    padding: 18px;
    margin-top: 16px;
}

.modal-payment-result.show {
    display: block;
}

.pay-addr-label {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.pay-addr-value {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--cyan);
    word-break: break-all;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
}

.pay-amount-row {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.85rem;
}

.pay-amount-row .lbl {
    color: var(--muted);
}

.pay-amount-row .val {
    color: var(--cyan);
    font-weight: 700;
    font-family: var(--font-mono);
}

/* =====================================================
           TOAST NOTIFICATION
        ===================================================== */
.toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    background: #111827;
    border: 1px solid var(--border-glow);
    border-radius: 14px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 340px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success .toast-icon {
    color: var(--green);
}

.toast.error .toast-icon {
    color: #f87171;
}

.toast.info .toast-icon {
    color: var(--cyan);
}

/* =====================================================
           MOBILE RESPONSIVE
        ===================================================== */
.hamburger {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 200;
    width: 40px;
    height: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    font-size: 16px;
}

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-w: 0px;
    }

    .sidebar {
        transform: translateX(-260px);
        width: 260px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 20px 16px 48px;
        padding-top: 70px;
    }

    .hamburger {
        display: flex;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .topbar {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}