:root {
    --brand-teal: #012a26;
    --dark-teal: #001a17;
    --light-teal: #04443d;
    --gold: #ffcf05;
    --dark-gold: #cfa804;
    --emerald: #0aa15a;
    --jewel: #2fc4a8;
    --white: #ffffff;
    --chrome: #b8c9ca;

    --dashboard-grad: linear-gradient(135deg, rgba(0, 26, 23, 1) 0%, rgba(4, 68, 61, 0.5) 100%);
    --gold-glow: 0 0 15px rgba(255, 207, 5, 0.4);

    --font-head: 'Orbitron', sans-serif;
    --font-text: 'Inter', sans-serif;
}

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

body {
    background-color: var(--dark-teal);
    color: var(--chrome);
    font-family: var(--font-text);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--white);
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: var(--gold);
    transition: all 0.3s ease;
}

a:hover { color: var(--emerald); }

.text-anchor { border-bottom: 1px dotted var(--gold); }
.text-anchor:hover { border-bottom: 1px solid var(--emerald); color: var(--emerald); }

.fw-layout { display: flex; min-height: 100vh; }

.fw-sidebar {
    width: 280px;
    background: var(--brand-teal);
    border-right: 1px solid var(--light-teal);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
}

.brand-wrapper { text-align: center; margin-bottom: 40px; }

.brand-wrapper img {
    width: 130px; height: auto;
    display: block;
    margin: 0 auto 10px;
    filter: drop-shadow(0 4px 12px rgba(255,207,5,0.25));
}

.side-nav { display: flex; flex-direction: column; gap: 10px; flex: 1; }

.side-nav a {
    display: flex; align-items: center; gap: 15px;
    padding: 12px 18px;
    border-radius: 8px;
    color: var(--chrome);
    border: 1px solid transparent;
    font-family: var(--font-head);
    font-size: 0.9rem;
}

.side-nav a:hover, .side-nav a.active {
    background: var(--light-teal);
    color: var(--gold);
    border: 1px solid rgba(255, 207, 5, 0.2);
    box-shadow: inset 0 0 10px rgba(255, 207, 5, 0.1);
}

.side-nav svg { width: 20px; height: 20px; fill: currentColor; }

.btn-primary {
    display: block; text-align: center;
    background: linear-gradient(135deg, #ffcf05 0%, #cfa804 100%);
    color: var(--dark-teal);
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-family: var(--font-head);
    border: none;
    cursor: pointer;
    margin-top: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: var(--emerald);
    color: var(--white);
    box-shadow: var(--gold-glow);
}

.fw-content { flex: 1; margin-left: 280px; background: var(--dashboard-grad); min-height: 100vh; }

.top-bar {
    display: flex; justify-content: flex-end;
    padding: 20px 40px; gap: 20px;
    border-bottom: 1px solid var(--light-teal);
}

.top-bar a {
    font-family: var(--font-head); font-size: 0.85rem;
    color: var(--chrome);
    padding: 8px 16px; border: 1px solid var(--light-teal); border-radius: 4px;
}

.top-bar a:hover { border-color: var(--gold); color: var(--gold); }

.dashboard-canvas { padding: 40px; }

.hero-card {
    border-radius: 12px; overflow: hidden; position: relative;
    height: 400px; margin-bottom: 40px;
    background-color: var(--brand-teal);
    border: 1px solid var(--light-teal);
}

.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

.hero-txt {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 60px 40px 40px 40px;
    background: linear-gradient(to top, rgba(0, 26, 23, 1) 0%, rgba(0, 26, 23, 0) 100%);
    z-index: 2;
}

.hero-txt h1 { font-size: 3.2rem; color: var(--white); text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8); }
.hero-txt p { font-size: 1.15rem; color: var(--gold); margin-top: 8px; }

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; margin-bottom: 40px;
}

.fw-panel {
    background: var(--brand-teal);
    border: 1px solid var(--light-teal);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.fw-panel h3 {
    margin-bottom: 20px; font-size: 1.1rem; color: var(--white);
    border-bottom: 1px solid var(--emerald);
    padding-bottom: 10px;
    display: inline-block;
}

.chart-box { position: relative; width: 100%; height: 300px; }

.fw-grid-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--light-teal);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

.fw-grid-table.cols-4 { grid-template-columns: repeat(4, 1fr); }

.fw-grid-table > div {
    background: var(--brand-teal);
    padding: 14px 10px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; font-size: 0.92rem;
}

.fw-grid-table .header {
    background: var(--light-teal);
    color: var(--gold);
    font-family: var(--font-head);
    font-weight: bold;
    font-size: 0.85rem;
}

.seo-matrix {
    background: var(--dark-teal);
    border: 1px solid var(--light-teal);
    border-radius: 12px;
    padding: 40px;
    margin-top: 50px;
}

.seo-matrix h2 { font-size: 2rem; color: var(--gold); margin-bottom: 25px; margin-top: 20px; }
.seo-matrix h3 { font-size: 1.35rem; color: var(--white); margin: 25px 0 15px; }
.seo-matrix p { margin-bottom: 18px; line-height: 1.75; font-size: 1.02rem; }
.seo-matrix ul, .seo-matrix ol { margin: 0 0 20px 22px; }
.seo-matrix li { margin-bottom: 8px; line-height: 1.7; }

.fw-footer { text-align: center; padding: 40px; margin-top: 60px; border-top: 1px solid var(--light-teal); }
.fw-footer-links a { margin: 0 10px; font-size: 0.85rem; color: var(--chrome); }
.fw-footer-text { margin-top: 15px; font-size: 0.75rem; color: #555; }

.author-chip {
    display: inline-flex; align-items: center; gap: 15px;
    background: rgba(255, 207, 5, 0.05);
    padding: 10px 20px; border-radius: 50px;
    border: 1px solid var(--light-teal);
    margin-top: 20px;
}
.author-chip img { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--gold); }

.mobile-app-dock { display: none; }
.mobile-header { display: none; }
.auth-buttons-mobile { display: none; }

@media (max-width: 1024px) {
    .fw-sidebar {
        transform: translateX(-100%);
        transition: transform 0.4s ease;
    }
    .fw-sidebar.active { transform: translateX(0); }

    .fw-content { margin-left: 0; }
    .top-bar { display: none; }

    .dashboard-canvas {
        padding: 20px;
        padding-bottom: 100px;
        padding-top: 80px;
    }

    /* Mobile Header with burger AND CTA */
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: fixed;
        top: 0; left: 0; right: 0;
        padding: 12px 16px;
        background: rgba(0, 26, 23, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--light-teal);
        z-index: 1000;
    }

    .mobile-header .mh-brand {
        display: flex; align-items: center; gap: 10px;
    }

    .mobile-header .mh-brand img {
        width: 42px; height: 42px;
    }

    .mobile-header .mh-brand span {
        color: var(--gold);
        font-family: var(--font-head);
        font-size: 1.05rem;
        font-weight: 700;
    }

    .mobile-header .mh-actions {
        display: flex; align-items: center; gap: 10px;
    }

    .mobile-header .mh-play {
        background: linear-gradient(135deg, #ffcf05 0%, #cfa804 100%);
        color: var(--dark-teal);
        padding: 10px 16px;
        border-radius: 6px;
        font-family: var(--font-head);
        font-weight: 700;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 8px rgba(255,207,5,0.25);
    }

    .mobile-header .mh-burger {
        display: flex; align-items: center; justify-content: center;
        width: 42px; height: 42px;
        background: var(--light-teal);
        border-radius: 6px;
        border: 1px solid rgba(255,207,5,0.2);
        cursor: pointer;
    }

    .mobile-header .mh-burger svg { width: 22px; height: 22px; fill: var(--gold); }

    /* legacy floating burger — hide, replaced by mh-burger */
    .mobile-burger-toggle { display: none !important; }

    .mobile-app-dock {
        display: flex;
        position: fixed;
        bottom: 0; left: 0;
        width: 100%;
        background: var(--dark-teal);
        border-top: 2px solid var(--emerald);
        justify-content: space-around;
        padding: 10px 0;
        z-index: 999;
    }

    .dock-nav {
        display: flex; flex-direction: column;
        align-items: center; gap: 4px;
        color: var(--chrome);
        font-size: 0.68rem;
        font-family: var(--font-head);
        text-align: center;
    }

    .dock-nav.active { color: var(--gold); }
    .dock-nav svg { width: 22px; height: 22px; fill: currentColor; }

    .fw-grid-table, .fw-grid-table.cols-4 { grid-template-columns: 1fr; }

    .hero-card { height: 220px; }
    .hero-txt h1 { font-size: 1.7rem; }
    .hero-txt p { font-size: 0.95rem; }
    .seo-matrix { padding: 24px 16px; }
    .seo-matrix h2 { font-size: 1.5rem; }
}
