:root {
    /* Voodoo AI Brand Colors */
    --primary-yellow: #FFD700;
    --primary-black: #000000;
    --primary-white: #FFFFFF;
    --dark-gray: #1a1a1a;
    --medium-gray: #333333;
    --light-gray: #f5f5f5;
    --border-gray: #e0e0e0;

    /* Spacing */
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Border Radius */
    --radius-md: 8px;
    --radius-lg: 12px;
}

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

body {
    font-family: 'Segoe UI',
        Tahoma,
        Geneva,
        Verdana,
        sans-serif;
    background: var(--primary-white);
    color: var(--primary-black);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

html {
    height: 100%;
}

#footer-container {
    margin-top: auto;
}

/* Navigation */
/* Header container must be sticky since navbar is injected inside it */
#header-container {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    background: var(--primary-black);
    padding: 1rem 0;
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-brand {
    color: var(--primary-yellow);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links a {
    color: var(--primary-white);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-yellow);
}

.btn {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
}

.btn-primary {
    background: var(--primary-yellow);
    color: var(--primary-black);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--dark-gray) 100%);
    color: var(--primary-white);
    padding: 4rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-yellow);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* Grid Layouts */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--primary-white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: box-shadow 0.3s;
}

.card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-yellow);
}

.card h3 {
    margin-bottom: 1rem;
}

/* Dashboard Sidebar */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 2rem;
}

.sidebar-link {
    display: block;
    color: var(--primary-white);
    text-decoration: none;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: var(--radius-md);
}

.sidebar-link:hover,
.sidebar-link.active {
    background: var(--medium-gray);
    color: var(--primary-yellow);
}

.main-content {
    flex: 1;
    padding: 2rem;
    background: var(--light-gray);
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
}

/* Footer */
/* Footer */
footer {
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: auto;
}

/* --- NEW HERO STYLES (Refactored from inline) --- */
.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-title {
    font-family: 'Arial Black', sans-serif;
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-yellow);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: normal;
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.hero-btn {
    font-size: 1.2rem;
    padding: 15px 30px;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-image-container {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border: 4px solid var(--primary-yellow);
    border-radius: 30px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3);
}

.hero-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    border-radius: 20px;
}

/* --- MOBILE RESPONSIVENESS --- */
/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--primary-white);
    border-radius: 3px;
    transition: all 0.3s;
}

@media (max-width: 768px) {

    /* Navbar */
    .navbar .container {
        flex-direction: row;
        /* Keep logo and hamburger side-by-side */
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: flex;
        /* Show hamburger on mobile */
    }

    .nav-links {
        display: none;
        /* Hide links by default */
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        text-align: center;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
        /* Show when active */
    }

    .nav-links a {
        margin-left: 0;
        display: block;
        padding: 10px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-md);
    }

    /* Hero Section */
    .hero {
        padding: 2rem 1rem;
    }

    .hero-container {
        flex-direction: column-reverse;
        /* Image on top, text below */
        gap: 2rem;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-btn {
        width: 100%;
        text-align: center;
    }

    .hero-image-container {
        padding: 1rem;
        border-width: 2px;
    }

    /* General Layout */
    .container {
        padding: 1rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        /* Stack cards vertically */
        gap: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    /* Dashboard Layout */
    .dashboard-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .sidebar nav {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .sidebar-link {
        display: inline-block;
        margin: 0;
        font-size: 0.9rem;
    }

    .main-content {
        padding: 1rem;
    }

    /* Modals */
    .modal-content,
    [style*="max-width: 600px"],
    [style*="max-width: 500px"] {
        margin: 1rem !important;
        max-width: calc(100% - 2rem) !important;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card-value {
        font-size: 1.5rem;
    }

    /* Usage Cards */
    .usage-grid {
        grid-template-columns: 1fr;
    }

    .usage-card {
        flex-direction: column;
        text-align: center;
    }

    /* Bar Charts */
    .bar-chart {
        gap: 0.5rem;
        height: 150px;
    }

    .bar-label {
        font-size: 0.65rem;
    }

    /* Action Cards */
    .action-card {
        padding: 1.5rem 1rem;
    }

    /* Form Elements */
    textarea,
    input[type="text"],
    input[type="email"],
    input[type="password"] {
        font-size: 16px;
        /* Prevent iOS zoom */
    }

    /* Post Cards */
    .post-preview {
        padding: 1rem;
    }

    .post-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .post-actions .btn {
        width: 100%;
    }

    /* Filter Tabs */
    .filter-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .filter-tab {
        padding: 0.5rem 1rem;
        white-space: nowrap;
        font-size: 0.85rem;
    }

    /* Pricing Cards */
    .pricing-cards,
    .pricing-grid {
        grid-template-columns: 1fr !important;
    }

    /* Tables */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Footer */
    footer {
        padding: 2rem 1rem;
    }

    footer .container {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Hero adjustments */
    .hero h1 {
        font-size: 2rem;
    }

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

/* Tablet Breakpoint */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .sidebar {
        width: 200px;
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small phones */
@media (max-width: 375px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}