* {
    box-sizing: border-box;
}

:root {
    /* Extracted Design Tokens */
    /* Extracted Design Tokens */
    --brand: #7b3fe4;
    --brand-rgb: 123, 63, 228;
    --brand-dark: #5e2bb7;
    --accent: #5b9cff;
    --accent-2: #8a2be2;
    --accent-3: #ffd166;
    --bg-body: #ffffff;
    --bg-body-rgb: 255, 255, 255;
    --bg-surface: #f8f8f8;
    --text-main: #0b0b0b;
    --text-muted: #555555;
    --border: #e3e3e3;
    --card-bg: #ffffff;
    --shadow: 0 10px 26px rgba(0, 0, 0, 0.10);
    --btn-grad: linear-gradient(90deg, var(--brand), var(--accent-2));
    --hero-glow: radial-gradient(circle at 50% 50%, rgba(var(--brand-rgb), 0.15) 0%, transparent 70%);
}

[data-theme="dark"] {
    --bg-body: #050505;
    /* Deep Space Black */
    --bg-body-rgb: 5, 5, 5;
    --bg-surface: #0a0a0a;
    /* Darker Surface */
    --text-main: #ffffff;
    --text-muted: #8899a6;
    --border: #1f1f1f;
    --card-bg: rgba(20, 20, 20, 0.6);
    /* Glassy Base */
    --shadow: 0 0 20px rgba(0, 0, 0, 0.5);

    /* Futuristic Tokens */
    --neon-purple: #bb86fc;
    --neon-blue: #00f2fe;
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glow-purple: 0 0 15px rgba(187, 134, 252, 0.3);
    --glow-blue: 0 0 15px rgba(0, 242, 254, 0.3);

    --footer-bg: #050505;
    --input-bg: #111;
    --table-stripe: #0f0f0f;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.text-neon {
    color: var(--neon-purple);
    text-shadow: 0 0 10px rgba(187, 134, 252, 0.5);
}

.border-glow {
    border: 1px solid var(--neon-purple);
    box-shadow: var(--glow-purple);
}

/* Homepage Overrides */
body.homepage {
    background-color: var(--bg-body);
}

body.homepage .main-content {
    margin-left: 0 !important;
    padding: 0;
    max-width: 100%;
}

body.homepage .navbar {
    background: rgba(var(--bg-body-rgb), 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] {
    --bg-body: #0b0b0b;
    --bg-surface: #141414;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border: #2a2a2a;
    --card-bg: #1a1a1a;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    /* Dark Mode Specifics */
    --footer-bg: #050505;
    --input-bg: #2a2a2a;
    --table-stripe: #1f1f1f;
}

/* Global Dark Mode Overrides */
[data-theme="dark"] body {
    background-color: var(--bg-body);
    color: var(--text-main);
}

[data-theme="dark"] footer {
    background-color: var(--footer-bg);
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

[data-theme="dark"] .card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .dashboard-card {
    background-color: var(--card-bg);
    border-color: var(--border);
    color: var(--text-main);
}

[data-theme="dark"] .sidebar {
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border);
}

[data-theme="dark"] .table-wrapper {
    background-color: var(--card-bg);
    border-color: var(--border);
}

[data-theme="dark"] th {
    background-color: #2d2d2d;
    /* Slightly lighter than card */
    color: var(--text-main);
    border-bottom-color: var(--border);
}

[data-theme="dark"] td {
    color: var(--text-muted);
    border-bottom-color: var(--border);
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background-color: var(--input-bg);
    border-color: var(--border);
    color: var(--text-main);
}

[data-theme="dark"] .faq-item {
    background-color: var(--card-bg);
    border-color: var(--border);
}

[data-theme="dark"] .faq-answer {
    color: var(--text-muted);
    border-top-color: var(--border);
}

/* Target Animations */
.reveal {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 1;
    /* Force visible for now if animation handling is missing */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-secondary {
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    /* Target has smaller radius here */
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: transparent;
    border: 2px solid var(--brand);
    color: var(--brand);
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--brand);
    color: white;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f5f6fa;
    /* Target site grey */
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Theme Toggle Button Styles */
.theme-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 0;
}

.theme-btn:hover {
    background: var(--bg-surface);
    border-color: var(--text-muted);
}

/* Icon Logic: Default (Light Mode) -> Show Moon, Hide Sun */
.theme-icon-light {
    display: none;
}

.theme-icon-dark {
    display: block;
}

/* Icon Logic: Dark Mode -> Show Sun, Hide Moon */
[data-theme="dark"] .theme-icon-light {
    display: block;
}

[data-theme="dark"] .theme-icon-dark {
    display: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
    /* Reduced from 2rem */
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    /* Reduced from 1.5rem */
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(var(--bg-body-rgb), 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Navigation CTA - Verified Exact Match */
.cta-btn {
    display: inline-block;
    padding: 11px 28px;
    /* Adjusted padding to force ~118px width */
    background: linear-gradient(90deg, #7b3fe4 0%, #8a2be2 100%);
    color: white !important;
    border-radius: 12px;
    text-decoration: none;
    font-size: 16px;
    /* Exact computed font size */
    font-weight: 700;
    /* Exact computed font weight */
    line-height: 1.5;
    box-shadow: 0 4px 15px rgba(123, 63, 228, 0.3);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Ensure sizing matches target visually */
    min-width: 118px;
    text-align: center;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 63, 228, 0.4);
    color: white !important;
}

/* Theme Toggle */
.theme-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.theme-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Helper for nav alignment */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    /* Fix spacing between nav items */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--brand);
    /* Purple Color */
    transform: translateY(-2px);
    /* Slide Up */
}

/* Nav Link Gradient Underline */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #5b9cff, #8a2be2, #ffd166);
    /* Blue-Purple-Gold */
    transition: width 0.25s ease-in-out;
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: linear-gradient(90deg, #7b3fe4 0%, #8a2be2 100%) !important;
    /* Force Target Purple Gradient */
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(123, 63, 228, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(90deg, #6a35c9 0%, #7b29cb 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 63, 228, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--brand);
    color: var(--brand);
}

.btn-outline:hover {
    background: var(--brand);
    color: white;
}

/* Sections */
.section {
    padding: 3rem 0;
    /* Reduced from 6rem */
    position: relative;
    overflow: hidden;
}

/* Hero Section */
.hero {
    padding: 3rem 0;
    /* Reduced from 6rem */
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: var(--hero-glow);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    /* Reduced from 4rem */
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 90%;
}

/* Tilt Card (Hero Graphic) */
.tilt-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
    border: 1px solid var(--border);
}

.tilt-card:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

/* Feature Cards */
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand);
    box-shadow: var(--shadow);
}

.feature-card.active .faq-answer {
    display: block !important;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(123, 63, 228, 0.1);
    color: var(--brand);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

/* Footer */
footer {
    background: var(--bg-surface);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-col h4 {
    margin-bottom: 1.2rem;
    color: var(--text-main);
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--brand);
}

/* Utilities */
.text-gradient {
    background: var(--btn-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {

    .hero-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 2rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }
}

/* Sidebar Navigation - Updated to match target */
.sidebar {
    width: 220px;
    background: #2f3640;
    /* Target dark navy */
    color: #ffffff;
    border-right: none;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    padding-top: 20px;
}

[data-theme="dark"] .sidebar {
    background: #141414;
}

.sidebar-header {
    /* Removed old header logic if not needed, or adapt */
    padding: 0;
    border: none;
}

.sidebar-menu {
    padding: 0;
    flex: 1;
    overflow-y: auto;
}

/* Sidebar H2 (User Panel Header) */
.user-panel-header h3,
.sidebar h2 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 30px 0;
    padding: 0;
    text-transform: none;
    letter-spacing: normal;
}

.menu-label {
    /* Hidden or removed in target design, keeping minimal */
    display: none;
}

.menu-item {
    display: block;
    display: flex;
    align-items: center;
    padding: 8px 15px;
    /* Reduced from 12px 20px */
    margin: 2px 10px;
    /* Reduced from 5px 10px */
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    /* Slightly smaller font */
    font-weight: 400;
    transition: background 0.3s;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.menu-item.active {
    background: #f39c12;
    /* Brand Orange */
    color: #ffffff;
}

.menu-icon {
    margin-right: 12px;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    /* Reset branding colors for icons in sidebar since background is dark */
    color: #ffffff;
}

/* Update main content margin for new width */
.main-content {
    flex: 1;
    margin-left: 220px;
    /* Exact match to sidebar width */
    padding: 2rem;
    background: var(--bg-surface);
    /* Use variable instead of hardcoded #f5f6fa */
    /* Target background color */
    min-height: 100vh;
}

/* Section Headers with Gradient Underline */
/* Section Headers with Gradient Underline */
.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    /* Reduced from 3rem */
    color: var(--text-main);
    position: relative;
    /* Clean center alignment */
    display: block;
    left: 0;
    transform: none;
    padding-bottom: 1rem;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    /* Target blue-cyan gradient */
    border-radius: 2px;
}

/* FAQs Polish (Exact Computed Match) */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Exact computed border */
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 16px 19.2px;
    /* Exact computed padding */
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    /* Exact computed */
    color: rgb(123, 63, 228);
    /* Exact computed purple */
    font-size: 1rem;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: rgb(123, 63, 228);
    transition: transform 0.3s;
}

.faq-item.active {
    border-color: rgb(123, 63, 228);
    box-shadow: 0 5px 15px rgba(123, 63, 228, 0.1);
}

.faq-item.active .faq-answer {
    padding: 0 19.2px 16px 19.2px;
    /* Exact computed padding */
    color: rgb(11, 11, 11);
    border-top: 1px solid transparent;
}

.faq-item.active .faq-question::after {
    content: '-';
    transform: rotate(0deg);
}

/* Latest Payments Table Polish */
.table-wrapper {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 16px 11.2px;
    /* Exact computed padding */
    text-align: center;
    /* Exact computed alignment */
    border-bottom: 1px solid rgba(0, 0, 0, 0.063);
    /* Exact computed border */
}

/* Table Headers (Exact Match) */
th {
    background-color: rgb(123, 63, 228);
    /* Exact computed bg */
    color: rgb(255, 255, 255);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: none;
}

td {
    color: rgb(11, 11, 11);
    /* Exact computed color */
    font-size: 0.95rem;
}

/* Footer Simple Style */
footer {
    background: var(--bg-surface);
    color: var(--text-muted);
    padding: 1.6rem;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    width: 100%;
    font-size: 1rem;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Section Header Shared */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }
}

/* Dashboard Specific Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* Dashboard Stat Card Override */
.dashboard-container .stat-card {
    display: flex;
    align-items: center;
    text-align: left;
    min-width: 0;
    /* Reset min-width */
    padding: 1.5rem;
}

.dashboard-container .stat-card .stat-icon {
    /* Removed fixed width/height/bg for transparent bigger look */
    font-size: 3rem;
    /* Much bigger as requested */
    margin-right: 1.5rem;
    flex-shrink: 0;
    background: transparent;
    padding: 0;
}

.dashboard-container .stat-card .stat-info span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.dashboard-container .stat-card .stat-info strong {
    font-size: 1.25rem;
    color: var(--text-main);
}

/* Sidebar Styling Restore (Exact Replication) */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    /* Target metric */
    height: 100vh;
    background: #2f3640;
    /* Default Light Mode Sidebar (Dark Navy) */
    /* Target Dark Navy */
    color: #ffffff;
    padding-top: 10px;
    /* Reduced top padding */
    z-index: 1000;
    overflow-y: hidden;
    /* Hide scrollbar completely */
    display: flex;
    flex-direction: column;
}

/* Ensure no scrollbar shows even if generated */
.sidebar::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

[data-theme="dark"] .sidebar {
    background: #141414;
    /* Dark Mode Sidebar */
    border-right: 1px solid var(--border);
}

/* Fix Animation Keyframes causing syntax error before */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(var(--brand-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0);
    }
}

/* Live Stats */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Futuristic Dashboard Overrides */
[data-theme="dark"] .dashboard-container .stat-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

[data-theme="dark"] .dashboard-container .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-blue));
    opacity: 0;
    transition: opacity 0.3s;
}

[data-theme="dark"] .dashboard-container .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), var(--glow-purple);
    border-color: rgba(187, 134, 252, 0.3);
}

[data-theme="dark"] .dashboard-container .stat-card:hover::before {
    opacity: 1;
}

[data-theme="dark"] .dashboard-container .stat-info strong {
    font-family: 'Consolas', 'Monaco', monospace;
    /* Data look */
    font-size: 1.5rem;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #fff, #bbb);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="dark"] .sidebar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* Feature Cards (PTC Mission Style) */
[data-theme="dark"] .dashboard-container .feature-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .dashboard-container .feature-card:hover {
    border-color: var(--neon-blue);
    box-shadow: var(--glow-blue);
}

.stat-card {
    background: var(--card-bg);
    /* Use variable */
    padding: 1.5rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(var(--brand-rgb), 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand);
    box-shadow: 0 15px 35px rgba(var(--brand-rgb), 0.15);
}

.stat-card .count {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

/* Offerwalls Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.card-grid .card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card-grid .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.card-grid .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(var(--brand-rgb), 0.3);
}

.card-grid .card:hover::before {
    opacity: 1;
}

.card-grid h3 {
    margin-bottom: 0.75rem;
    color: var(--text-main);
    font-size: 1.4rem;
}

/* =========================================
   Responsive & Mobile Menu Styles
   ========================================= */

/* Mobile Menu Button (Hamburger) */
.mobile-menu-btn {
    display: none;
    /* Hidden on desktop */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 2000;
}

.mobile-menu-btn .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-main);
    border-radius: 2px;
}

.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-body);
    z-index: 1001;
    /* Behind button but above content */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: var(--brand);
}

/* Utilities */
.desktop-only {
    display: flex;
    align-items: center;
    gap: 1rem;
}

body.no-scroll {
    overflow: hidden;
}

/* Media Queries */
@media (max-width: 768px) {

    /* Navigation */
    .mobile-menu-btn {
        display: block;
    }

    #sidebar-toggle {
        display: block !important;
    }

    .navbar {
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        background: rgba(var(--bg-body-rgb), 0.95);
        /* More opaque */
    }

    /* Add padding to body so content isn't hidden behind fixed navbar */
    body.homepage {
        padding-top: 70px;
    }

    .nav-links {
        display: none;
        /* Hide default nav links */
    }

    .desktop-only {
        display: none;
    }

    /* Layout */
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-image {
        order: -1;
        /* Image on top on mobile? Or bottom? usually top is better for visuals but text first for SEO/Context. Let's keep text first (default) or test. 
                      Actually, keeping text first is standard. */
        margin-top: 2rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }

    /* Grid Adjustments */
    .card-grid {
        grid-template-columns: 1fr;
        /* Stack cards */
    }

    .stats-row {
        gap: 1rem;
    }

    .stat-card {
        width: 100%;
        /* Full width stats */
        min-width: unset;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    /* Table horizontal scroll */
    .table-wrapper {
        overflow-x: auto;
    }

    /* Adjust specific text sizes */
    .section h2 {
        font-size: 2rem;
    }

    /* Dashboard Sidebar Logic override if present */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }
}