:root {
    --bg: #0a0a0f;
    --surface: #12121a;
    --surface-hover: #1a1a26;
    --border: #1e1e2e;
    --text: #e8e8ed;
    --text-muted: #6b6b80;
    --accent-trade: #00e5a0;
    --accent-econ: #4d8eff;
    --accent-self: #ff6b8a;
    --accent-trade-dim: rgba(0,229,160,0.08);
    --accent-econ-dim: rgba(77,142,255,0.08);
    --accent-self-dim: rgba(255,107,138,0.08);
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* NAV */
nav {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}
.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--text);
}
.logo span { color: var(--accent-trade); }
.nav-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-status::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--accent-trade);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* BACK BUTTON */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    margin: 24px 0;
    transition: color 0.2s;
}
.back-link:hover { color: var(--text); }

/* APP PAGE HERO */
.app-hero {
    padding: 60px 0 40px;
    text-align: center;
}
.app-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}
.app-hero p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

/* CARDS */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
    transition: all 0.2s;
}
.card:hover { border-color: rgba(255,255,255,0.06); }
.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 12px;
}
.card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* GRID */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin: 30px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 30px 0; }

/* STAT BOXES */
.stat-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}
.stat-box .value {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 900;
}
.stat-box .label {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 6px;
}
.stat-box.green .value { color: var(--accent-trade); }
.stat-box.blue .value { color: var(--accent-econ); }
.stat-box.red .value { color: var(--accent-self); }

/* TABLE */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.data-table th, .data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
.data-table th {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.data-table td.green { color: var(--accent-trade); }
.data-table td.red { color: var(--accent-self); }

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: 'DM Sans', sans-serif;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
}
.btn-primary { background: var(--accent-trade); color: var(--bg); }
.btn-primary:hover { opacity: 0.85; }
.btn-outline { border: 1px solid var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--text-muted); }

/* SECTION */
.section { padding: 40px 0; }
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* FOOTER */
footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 60px;
}

/* DISCLAIMER */
.disclaimer {
    margin-top: 28px;
    padding: 20px 24px;
    background: rgba(255,107,138,0.06);
    border: 1px solid rgba(255,107,138,0.15);
    border-radius: 12px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}
.disclaimer .warn-label {
    color: var(--accent-self);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.disclaimer p {
    color: #9898a8;
    font-size: 0.82rem;
    line-height: 1.7;
}
.disclaimer strong { color: var(--text); }

/* PROGRESS BAR */
.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}
.progress-bar .fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ANIMATIONS */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in {
    opacity: 0;
    animation: fadeUp 0.5s ease forwards;
}
