/* ============================================================
   CryptoInvest - Main Stylesheet
   Modern, responsive, fintech-inspired design
   ============================================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #10b981;
    --accent-dark: #059669;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --purple: #8b5cf6;
    --bg: #0a0f2e;
    --bg-card: #111827;
    --bg-surface: #1f2937;
    --text: #f9fafb;
    --text-muted: #9ca3af;
    --text-secondary: #d1d5db;
    --border: rgba(255,255,255,0.08);
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --transition: all 0.2s ease;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================================
   Risk Banner
   ============================================================ */
.risk-banner {
    background: linear-gradient(90deg, #7c2d12, #92400e);
    color: #fef3c7;
    padding: 0.5rem 0;
    font-size: 0.78rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,200,0,0.3);
}
.risk-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.risk-icon { font-size: 1rem; }

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
    background: rgba(10, 15, 46, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text) !important;
}
.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}
.nav-menu a {
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}
.nav-menu a:hover { color: var(--text); background: var(--bg-surface); }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 2px 12px rgba(37,99,235,0.4);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-light), var(--primary)); transform: translateY(-1px); color: #fff; }
.btn-success {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    box-shadow: 0 2px 12px rgba(16,185,129,0.3);
}
.btn-success:hover { filter: brightness(1.1); transform: translateY(-1px); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.1); color: #fff; }
.btn-warning { background: var(--warning); color: #1a1a1a; }
.btn-warning:hover { filter: brightness(1.1); color: #1a1a1a; }
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--bg-surface); color: var(--text); }
.btn-secondary { background: var(--bg-surface); color: var(--text-muted); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-card); color: var(--text); }
.btn-sm { padding: 0.4rem 0.875rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ============================================================
   Cards
   ============================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

/* Stat Cards */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}
.stat-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.stat-icon.blue { background: rgba(37,99,235,0.15); }
.stat-icon.green { background: rgba(16,185,129,0.15); }
.stat-icon.yellow { background: rgba(245,158,11,0.15); }
.stat-icon.red { background: rgba(239,68,68,0.15); }
.stat-icon.purple { background: rgba(139,92,246,0.15); }
.stat-icon.cyan { background: rgba(6,182,212,0.15); }
.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 1.5rem; font-weight: 700; color: var(--text); margin: 0.15rem 0; }
.stat-change { font-size: 0.75rem; color: var(--text-muted); }

/* ============================================================
   Forms
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}
.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; }
.form-error { font-size: 0.78rem; color: var(--danger); margin-top: 0.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ============================================================
   Alerts
   ============================================================ */
.alert {
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    position: relative;
}
.alert button {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: currentColor;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
}
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.alert-danger { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: #fcd34d; }
.alert-info { background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.3); color: #67e8f9; }

/* ============================================================
   Badges
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-success { background: rgba(16,185,129,0.15); color: #34d399; }
.badge-danger { background: rgba(239,68,68,0.15); color: #f87171; }
.badge-warning { background: rgba(245,158,11,0.15); color: #fbbf24; }
.badge-info { background: rgba(6,182,212,0.15); color: #22d3ee; }
.badge-primary { background: rgba(37,99,235,0.15); color: #60a5fa; }
.badge-secondary { background: rgba(156,163,175,0.15); color: #9ca3af; }
.badge-purple { background: rgba(139,92,246,0.15); color: #a78bfa; }

/* ============================================================
   Tables
   ============================================================ */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-sm); }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
thead th {
    background: var(--bg-surface);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
tbody td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--text-secondary);
    vertical-align: middle;
}
tbody tr:hover { background: rgba(255,255,255,0.02); }
tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
    display: flex;
    gap: 0.35rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text-muted);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    transition: var(--transition);
}
.pagination a:hover, .pagination a.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
    background: linear-gradient(135deg, #0a0f2e 0%, #0d1b4b 50%, #0a1628 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37,99,235,0.15);
    border: 1px solid rgba(37,99,235,0.3);
    color: #93c5fd;
    padding: 0.35rem 0.875rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 1.25rem;
}
.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.7;
}
.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-value { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.hero-stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ============================================================
   Section Styles
   ============================================================ */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-card); padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
    display: inline-block;
    background: rgba(37,99,235,0.1);
    color: var(--primary-light);
    padding: 0.3rem 0.875rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    border: 1px solid rgba(37,99,235,0.2);
}
.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.875rem;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Steps Section */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.step-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
}
.step-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 1.25rem;
}
.step-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 0.75rem; }
.step-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* Plan Cards */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.plan-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}
.plan-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.plan-card:hover::before { opacity: 1; }
.plan-card.featured { border-color: var(--primary); }
.plan-card.featured::before { opacity: 1; }
.plan-badge {
    display: inline-block;
    background: rgba(37,99,235,0.15);
    color: var(--primary-light);
    border: 1px solid rgba(37,99,235,0.3);
    border-radius: 50px;
    padding: 0.2rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}
.plan-name { font-size: 1.25rem; font-weight: 800; color: var(--text); margin-bottom: 0.5rem; }
.plan-roi {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin: 1rem 0 0.25rem;
}
.plan-roi-label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.plan-features { list-style: none; margin: 1.5rem 0; }
.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features .check { color: var(--accent); font-weight: 700; }

/* Stats Section */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; }
.stat-item { text-align: center; padding: 2rem 1rem; }
.stat-item-value { font-size: 2.5rem; font-weight: 800; color: var(--accent); margin-bottom: 0.5rem; }
.stat-item-label { color: var(--text-muted); font-size: 0.875rem; }

/* FAQ */
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--bg-surface);
    border: none;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    gap: 1rem;
}
.faq-question:hover { background: var(--bg-card); }
.faq-question .faq-icon { font-size: 1.25rem; flex-shrink: 0; transition: var(--transition); }
.faq-question.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
    padding: 0 1.25rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer.open { max-height: 300px; padding: 1rem 1.25rem; }

/* Simulator */
.simulator-card { max-width: 700px; margin: 0 auto; }
.simulator-result {
    background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(37,99,235,0.1));
    border: 1px solid rgba(16,185,129,0.3);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    margin-top: 1.5rem;
}
.result-value { font-size: 2.5rem; font-weight: 800; color: var(--accent); }
.result-label { color: var(--text-muted); font-size: 0.875rem; margin-top: 0.5rem; }
.result-warning {
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.3);
    color: #fcd34d;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    margin-top: 1rem;
    text-align: center;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 4rem 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 1.25rem; }
.footer-desc { color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; margin-bottom: 1rem; }
.risk-notice {
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: var(--radius-sm);
    padding: 0.875rem;
    font-size: 0.78rem;
    color: #fcd34d;
    line-height: 1.6;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; transition: var(--transition); }
.footer-links a:hover { color: var(--text); padding-left: 4px; }
.footer-contact { list-style: none; }
.footer-contact li { margin-bottom: 0.75rem; color: var(--text-muted); font-size: 0.85rem; }
.footer-contact a { color: var(--text-muted); }
.footer-contact a:hover { color: var(--accent); }
.footer-auth { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }
.footer-disclaimer { font-size: 0.72rem !important; font-style: italic; }

/* ============================================================
   Page Header
   ============================================================ */
.page-header {
    background: linear-gradient(135deg, #0a0f2e, #0d1b4b);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0;
}
.page-header h1 { font-size: 2rem; font-weight: 800; color: var(--text); margin-bottom: 0.5rem; }
.page-header p { color: var(--text-muted); }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb .sep { color: var(--border); }

/* ============================================================
   Auth Pages
   ============================================================ */
.auth-layout { background: var(--bg); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-card { width: 100%; max-width: 440px; }
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo .brand-icon { width: 56px; height: 56px; font-size: 1.5rem; margin: 0 auto 0.75rem; }
.auth-logo h1 { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.auth-logo p { color: var(--text-muted); font-size: 0.875rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.875rem; color: var(--text-muted); }
.auth-footer a { color: var(--primary-light); }
.auth-divider { text-align: center; color: var(--text-muted); font-size: 0.8rem; margin: 1rem 0; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border); }
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* ============================================================
   Dashboard Layout (Client & Admin)
   ============================================================ */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: var(--transition);
    overflow-y: auto;
}
.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sidebar-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.sidebar-brand .brand-icon { width: 32px; height: 32px; font-size: 0.9rem; }
.sidebar-brand-name { font-size: 1rem; font-weight: 700; color: var(--text); }
.sidebar-nav { flex: 1; padding: 1rem 0; }
.sidebar-section { padding: 0 1rem; margin-bottom: 0.5rem; }
.sidebar-section-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 0.5rem 0.5rem;
    margin-bottom: 0.25rem;
}
.sidebar-item { display: block; margin-bottom: 0.15rem; }
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}
.sidebar-link:hover { background: var(--bg-surface); color: var(--text); }
.sidebar-link.active { background: rgba(37,99,235,0.15); color: var(--primary-light); font-weight: 600; }
.sidebar-link .icon { width: 18px; text-align: center; font-size: 1rem; }
.sidebar-link .badge-count {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    border-radius: 50px;
    padding: 0.1rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
}
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border);
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}
.sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.sidebar-user-name { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.sidebar-user-role { font-size: 0.72rem; color: var(--text-muted); }
.sidebar-logout { display: block; text-align: center; color: var(--danger); font-size: 0.8rem; margin-top: 0.75rem; padding: 0.4rem; border-radius: var(--radius-sm); transition: var(--transition); }
.sidebar-logout:hover { background: rgba(239,68,68,0.1); color: var(--danger); }

/* Main content area */
.main-content {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.topbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}
.topbar-left { display: flex; align-items: center; gap: 1rem; }
.topbar-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: 0.75rem; }
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
}
.notif-btn {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}
.notif-btn:hover { color: var(--text); }
.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.content { padding: 1.5rem; flex: 1; }
.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.content-title { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.content-subtitle { color: var(--text-muted); font-size: 0.875rem; margin-top: 0.2rem; }

/* Stats Grid */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }

/* ============================================================
   Wallet Balances
   ============================================================ */
.wallet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.wallet-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}
.wallet-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}
.wallet-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.wallet-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem; }
.wallet-amount { font-size: 1.6rem; font-weight: 800; color: var(--text); }
.wallet-currency { font-size: 0.8rem; color: var(--text-muted); margin-left: 0.25rem; }
.wallet-card.primary { border-color: rgba(37,99,235,0.3); }
.wallet-card.bonus { border-color: rgba(245,158,11,0.3); }
.wallet-card.investment { border-color: rgba(16,185,129,0.3); }

/* ============================================================
   Mobile Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .sidebar-toggle { display: flex; }
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 99;
    }
    .sidebar-overlay.show { display: block; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); flex-direction: column; padding: 1rem; gap: 0.25rem; z-index: 999; }
    .nav-menu.open { display: flex; }
    .nav-toggle { display: flex; }
    .hero { padding: 3rem 0; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .content { padding: 1rem; }
    .content-header { flex-direction: column; align-items: flex-start; }
    .topbar { padding: 0 1rem; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr; }
    .plans-grid { grid-template-columns: 1fr; }
    .wallet-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.75rem; }
    .plan-roi { font-size: 2rem; }
}

/* ============================================================
   Utilities
   ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-success { color: var(--accent); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary-light); }
.text-sm { font-size: 0.8rem; }
.text-lg { font-size: 1.1rem; }
.fw-bold { font-weight: 700; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.w-100 { width: 100%; }
.hidden { display: none; }
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 768px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Investment progress bar */
.progress-bar { background: var(--bg-surface); border-radius: 50px; height: 8px; overflow: hidden; margin-top: 0.5rem; }
.progress-fill { height: 100%; border-radius: 50px; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 0.5s ease; }

/* Empty state */
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state h3 { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.empty-state p { font-size: 0.875rem; }

/* ============================================================
   Modal
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.show { display: flex; }
.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}
.modal-close:hover { color: var(--text); }
