:root {
    --brand-teal: #012022;
    --dark-teal: #011314;
    --light-teal: #04383c;
    --gold: #ffcf05;
    --dark-gold: #cfa804;
    --emerald: #009743;
    --white: #ffffff;
    --chrome: #b8c9ca;

    --dashboard-grad: linear-gradient(135deg, rgba(1, 19, 20, 1) 0%, rgba(4, 56, 60, 0.4) 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);
}

/* --- Dashboard Architecture --- */
.fw-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Nav */
.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;
}

.brand-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.brand-wrapper img {
    width: 150px;
    height: auto;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    border-radius: 8px;
    color: var(--chrome);
    border: 1px solid transparent;
    font-family: var(--font-head);
    font-size: 0.95rem;
}

.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: 22px;
    height: 22px;
    fill: currentColor;
}

.btn-primary {
    display: block;
    text-align: center;
    background: var(--gold);
    color: var(--dark-teal);
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
    font-family: var(--font-head);
    border: none;
    cursor: pointer;
    margin-top: 30px;
    text-transform: uppercase;
}

.btn-primary:hover {
    background: var(--emerald);
    color: var(--white);
    box-shadow: var(--gold-glow);
}

/* Content Area */
.fw-content {
    flex: 1;
    margin-left: 280px;
    background: var(--dashboard-grad);
    min-height: 100vh;
}

.top-bar {
    display: flex;
    /* Kept active for utilities */
    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;
}

/* Page Hero Header - Large Widescreen Image */
.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(1, 19, 20, 1) 0%, rgba(1, 19, 20, 0) 100%);
    z-index: 2;
}

.hero-txt h1 {
    font-size: 3.5rem;
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-txt p {
    font-size: 1.2rem;
    color: var(--gold);
}

/* Structural Data Elements */
.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;
}

/* Unique Grid Tables */
.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>div {
    background: var(--brand-teal);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.95rem;
}

.fw-grid-table .header {
    background: var(--light-teal);
    color: var(--gold);
    font-family: var(--font-head);
    font-weight: bold;
}

/* SEO Content Arrays */
.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;
}

.seo-matrix p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Author and Footer */
.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 Component Hiding */
.mobile-app-dock {
    display: none;
}

.mobile-burger-toggle {
    display: none;
}

/* Desktop Fix for Auth links missing */
.auth-buttons-mobile {
    display: none;
}

/* --- RESPONSIVE MOBILE LOGIC --- */
@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;
        /* Room for dock */
        padding-top: 70px;
    }

    .mobile-burger-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        background: var(--gold);
        border-radius: 8px;
        z-index: 1000;
        cursor: pointer;
        border: none;
    }

    .mobile-burger-toggle svg {
        width: 25px;
        height: 25px;
        fill: var(--dark-teal);
    }

    .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: 12px 0;
        z-index: 999;
    }

    .dock-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: var(--chrome);
        font-size: 0.7rem;
        font-family: var(--font-head);
    }

    .dock-nav.active {
        color: var(--gold);
    }

    .dock-nav svg {
        width: 22px;
        height: 22px;
        fill: currentColor;
    }

    .fw-grid-table {
        grid-template-columns: 1fr;
    }

    .hero-card {
        height: 250px;
    }

    .hero-txt h1 {
        font-size: 2rem;
    }
}