/* ═══════════════════════════════════════════════════════════════
   GRIDVAULT UNIFIED STYLE — DARK PREMIUM
   Style unifie pour TOUTES les pages du dashboard
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ═══ CSS VARIABLES ═══ */
:root {
    /* Background colors */
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-card: rgba(31, 41, 55, 0.5);
    --bg-card-hover: rgba(31, 41, 55, 0.8);
    --bg-header: rgba(17, 24, 39, 0.95);

    /* Border colors */
    --border-color: #374151;
    --border-light: rgba(55, 65, 81, 0.5);

    /* Text colors */
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    /* Accent colors */
    --accent-blue: #3b82f6;
    --accent-blue-light: #60a5fa;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --accent-green-light: #22c55e;
    --accent-red: #ef4444;
    --accent-yellow: #fbbf24;
    --accent-orange: #f59e0b;

    /* Gradients */
    --gradient-primary: linear-gradient(90deg, #3b82f6, #8b5cf6);
    --gradient-success: linear-gradient(90deg, #10b981, #22c55e);
    --gradient-danger: linear-gradient(90deg, #ef4444, #f87171);
    --gradient-bg: linear-gradient(135deg, #111827 0%, #1f2937 50%, #111827 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow-green: 0 0 30px rgba(16, 185, 129, 0.4);
    --shadow-glow-red: 0 0 20px rgba(239, 68, 68, 0.3);

    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Typography */
    --font-sans: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    /* Spacing */
    --header-height: 60px;
}

/* ═══ RESET & BASE ═══ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    font-family: var(--font-sans);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background: var(--gradient-bg);
    color: var(--text-primary);
    min-height: 100vh;
    padding-top: var(--header-height);
    overflow-x: hidden;
    max-width: 100vw;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4, h5, h6 {
    font-weight: inherit;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.font-mono, .font-numbers {
    font-family: var(--font-mono);
}

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }
.text-right { text-align: right; }

/* Text colors */
.text-white { color: #fff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: var(--text-secondary); }
.text-gray-500 { color: var(--text-muted); }
.text-green-400 { color: var(--accent-green-light); }
.text-red-400 { color: var(--accent-red); }
.text-blue-400 { color: var(--accent-blue-light); }
.text-yellow-400 { color: var(--accent-yellow); }
.text-purple-400 { color: var(--accent-purple); }

.positive { color: var(--accent-green); }
.negative { color: var(--accent-red); }

/* ═══ LAYOUT ═══ */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0.75rem 1rem;
    }
}

.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Spacing */
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

.w-full { width: 100%; }
.min-h-screen { min-height: 100vh; }

/* ═══ NAVBAR / STICKY HEADER ═══ */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
}

.sticky-header .nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.nav-brand .logo {
    font-size: 1.25rem;
}

.nav-brand .title {
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-brand .badge-paper {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    background: rgba(234, 179, 8, 0.2);
    color: var(--accent-yellow);
    border-radius: var(--radius-sm);
    margin-left: 0.5rem;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 2rem;
}

.nav-link {
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: rgba(55, 65, 81, 0.5);
    color: var(--text-primary);
}

.nav-link.active {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue-light);
}

.nav-end {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.desktop-menu {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .desktop-menu {
        display: none !important;
    }
}

/* ═══ LIVE INDICATOR ═══ */
.live-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-green-light);
    border-radius: 50%;
    animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ═══ NOTIFICATION BADGE ═══ */
.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: var(--accent-red);
    color: white;
    font-size: 11px;
    font-weight: bold;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ═══ HAMBURGER MENU ═══ */
.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
}

.hamburger:hover {
    background: rgba(55, 65, 81, 0.5);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 3px;
    background: #e2e8f0;
    position: relative;
    transition: all 0.3s;
    border-radius: 2px;
}

.hamburger span::before,
.hamburger span::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 3px;
    background: #e2e8f0;
    transition: all 0.3s;
    border-radius: 2px;
}

.hamburger span::before { top: -8px; }
.hamburger span::after { top: 8px; }

.hamburger.active span { background: transparent; }
.hamburger.active span::before { transform: rotate(45deg); top: 0; }
.hamburger.active span::after { transform: rotate(-45deg); top: 0; }

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
}

/* ═══ MOBILE MENU ═══ */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.98);
    z-index: 45;
    padding: 1rem;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    color: #d1d5db;
    text-decoration: none;
    font-size: 1rem;
    min-height: 48px;
    transition: background 0.2s ease;
}

.mobile-menu-item:hover,
.mobile-menu-item.active {
    background: rgba(55, 65, 81, 0.5);
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* ═══ CARDS ═══ */
.card, .glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.card:hover, .glass-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ═══ STAT CARDS (KPI) ═══ */
.stat-card, .kpi-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
}

.stat-card:hover, .kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-green);
    border-color: rgba(16, 185, 129, 0.3);
}

.stat-card .stat-label, .kpi-card .label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.stat-card .stat-value, .kpi-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-card .stat-change, .kpi-card .change {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    margin-top: 0.25rem;
}

.stat-card .stat-change.positive, .kpi-card .change.positive { color: var(--accent-green); }
.stat-card .stat-change.negative, .kpi-card .change.negative { color: var(--accent-red); }

/* ═══ STAT GRID ═══ */
.stats-grid, .kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

@media (max-width: 768px) {
    .stats-grid, .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .stats-grid .stat-card, .kpi-grid .kpi-card {
        padding: 0.75rem;
    }

    .stat-card .stat-value, .kpi-card .value {
        font-size: 1.25rem;
    }
}

/* ═══ TABLES ═══ */
.glass-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.glass-table thead {
    background: rgba(55, 65, 81, 0.5);
}

.glass-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.glass-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

.glass-table tbody tr {
    transition: background 0.2s ease;
}

.glass-table tbody tr:hover {
    background: rgba(55, 65, 81, 0.3);
}

.glass-table .text-right {
    text-align: right;
}

.glass-table .font-mono {
    font-family: var(--font-mono);
}

/* Table responsive */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

/* ═══ BADGES ═══ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.badge-green, .badge-buy {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
}

.badge-red, .badge-sell {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-red);
}

.badge-blue {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue-light);
}

.badge-purple, .badge-test {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-purple);
}

.badge-yellow, .badge-paper {
    background: rgba(234, 179, 8, 0.2);
    color: var(--accent-yellow);
}

.badge-gray {
    background: rgba(107, 114, 128, 0.2);
    color: var(--text-secondary);
}

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(55, 65, 81, 0.8);
}

.btn-success {
    background: var(--gradient-success);
    color: white;
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* ═══ FORM INPUTS ═══ */
input, select, textarea {
    font-family: inherit;
    font-size: 0.875rem;
}

.form-input, .form-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* ═══ CHARTS ═══ */
.chart-container {
    position: relative;
    height: 200px;
    width: 100%;
}

@media (max-width: 768px) {
    .chart-container {
        height: 150px;
    }
}

/* ═══ PROGRESS BAR ═══ */
.progress-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.progress-fill.success {
    background: var(--gradient-success);
}

.progress-fill.danger {
    background: var(--gradient-danger);
}

/* ═══ MILESTONE BAR ═══ */
.milestone-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.milestone-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    transition: width 0.5s ease;
}

/* ═══ TABS / PERIOD SELECTOR ═══ */
.tabs, .period-selector {
    display: flex;
    gap: 0.25rem;
    background: rgba(55, 65, 81, 0.3);
    padding: 0.25rem;
    border-radius: var(--radius-md);
}

.tab-btn, .period-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover, .period-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active, .period-btn.active {
    background: var(--accent-blue);
    color: white;
}

/* ═══ MODAL ═══ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    border: 1px solid var(--border-color);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close {
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

/* ═══ TOAST ═══ */
#toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
}

#toast.show {
    transform: translateX(0);
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-card {
    animation: fadeSlideUp 0.5s ease forwards;
    opacity: 0;
}

.animate-card:nth-child(1) { animation-delay: 0ms; }
.animate-card:nth-child(2) { animation-delay: 100ms; }
.animate-card:nth-child(3) { animation-delay: 200ms; }
.animate-card:nth-child(4) { animation-delay: 300ms; }
.animate-card:nth-child(5) { animation-delay: 400ms; }
.animate-card:nth-child(6) { animation-delay: 500ms; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hover-scale {
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ═══ SELECTION ═══ */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: var(--accent-blue-light);
}

/* ═══ BACKGROUND UTILITIES ═══ */
.bg-gray-700 { background-color: #374151; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }
.bg-gray-800\/50 { background-color: rgba(31, 41, 55, 0.5); }
.bg-gray-700\/50 { background-color: rgba(55, 65, 81, 0.5); }
.bg-green-900\/50 { background-color: rgba(20, 83, 45, 0.5); }
.bg-red-900\/50 { background-color: rgba(127, 29, 29, 0.5); }
.bg-blue-900\/50 { background-color: rgba(30, 58, 138, 0.5); }

/* ═══ BORDER UTILITIES ═══ */
.border { border-width: 1px; }
.border-gray-600 { border-color: #4b5563; }
.border-gray-700 { border-color: #374151; }
.border-gray-700\/50 { border-color: rgba(55, 65, 81, 0.5); }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* ═══ PNL DISPLAY ═══ */
.pnl-big {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
}

.pnl-big.positive {
    color: var(--accent-green);
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

.pnl-big.negative {
    color: var(--accent-red);
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
}

@media (max-width: 480px) {
    .pnl-big {
        font-size: 1.75rem;
    }
}

/* ═══ GLOW EFFECTS ═══ */
.glow-green {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4), 0 0 60px rgba(16, 185, 129, 0.2);
}

.glow-red {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.glow-blue {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* ═══ EXECUTIVE SUMMARY ═══ */
.executive-summary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ═══ RESPONSIVE UTILITIES ═══ */
.mobile-only { display: none; }
.desktop-only { display: block; }

@media (max-width: 768px) {
    .mobile-only { display: block; }
    .desktop-only { display: none; }

    body {
        padding-top: 56px;
    }

    .sticky-header {
        padding: 0.5rem 0.75rem;
    }

    .mobile-menu {
        top: 56px;
    }
}

/* ═══ GRID RESPONSIVE ═══ */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ═══ SECTION TITLES ═══ */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ═══ PAGE HEADER ═══ */
.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.page-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ═══ PAIR ROW (for analytics) ═══ */
.pair-row {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.pair-row:last-child {
    border-bottom: none;
}

.pair-name {
    width: 80px;
    font-weight: 600;
    font-size: 0.875rem;
}

.pair-bar-container {
    flex: 1;
    height: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 0 1rem;
}

.pair-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-mono);
    border-radius: var(--radius-sm);
    transition: width 0.3s ease;
}

.pair-bar.positive {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.6));
    color: var(--accent-green);
}

.pair-bar.negative {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.3), rgba(239, 68, 68, 0.6));
    color: var(--accent-red);
}

.pair-stats {
    width: 100px;
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ═══ PRO METRICS ═══ */
.pro-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.metric-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-align: center;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ═══ MONTHLY TABLE ═══ */
.monthly-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.monthly-table th,
.monthly-table td {
    padding: 0.5rem;
    text-align: center;
    border: 1px solid var(--border-light);
}

.monthly-table th {
    background: rgba(55, 65, 81, 0.5);
    font-weight: 600;
    color: var(--text-secondary);
}

.monthly-table td {
    font-family: var(--font-mono);
}

/* ═══ HEATMAP ═══ */
.heatmap-container {
    overflow-x: auto;
}

.heatmap-header {
    display: flex;
    margin-bottom: 8px;
    padding-left: 50px;
}

.heatmap-hour {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.heatmap-row {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.heatmap-label {
    width: 50px;
    text-align: right;
    padding-right: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.heatmap-cells {
    flex: 1;
    display: flex;
    gap: 3px;
}

.heatmap-cell {
    flex: 1;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.heatmap-cell:hover {
    transform: scale(1.1);
    z-index: 10;
}

@media (max-width: 768px) {
    .heatmap-container {
        display: none;
    }
}

/* ═══ EMPTY STATE ═══ */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-state-desc {
    font-size: 0.875rem;
}

/* ═══ FILTERS ═══ */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ═══ LANDING PAGE SPECIFIC ═══ */
.landing-hero {
    text-align: center;
    padding: 4rem 2rem;
}

.landing-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.landing-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

@media (max-width: 768px) {
    .landing-hero h1 {
        font-size: 2rem;
    }

    .landing-hero p {
        font-size: 1rem;
    }
}

/* ═══ LOGIN PAGE ═══ */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.login-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══ TELEGRAM WEBAPP ═══ */
.tg-container {
    padding: 1rem;
    max-width: 100%;
}

.tg-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1rem;
}

/* ═══ PRINT STYLES ═══ */
@media print {
    body {
        background: white;
        color: black;
        padding-top: 0;
    }

    .sticky-header,
    .mobile-menu,
    .hamburger,
    .btn,
    .filters {
        display: none !important;
    }

    .card, .glass-card, .stat-card {
        background: white;
        border: 1px solid #ddd;
        box-shadow: none;
    }
}
