:root {
    --bg-dark: #050505;
    --sidebar-bg: #0c0c0c;
    --accent-gold: #c9a24d;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --border-color: rgba(201, 162, 77, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden !important; /* Force prevent horizontal scroll */
    min-height: 100vh;
    max-width: 100vw; /* Additional containment */
}

/* Auth Overlay */
#login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Atmospheric Luxe Glow (Neon) */
#login-overlay::before,
#login-overlay::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 162, 77, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: drift 15s infinite alternate ease-in-out;
}

#login-overlay::before {
    top: -100px;
    left: -100px;
}

#login-overlay::after {
    bottom: -100px;
    right: -100px;
    animation-delay: -7s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 100px) scale(1.2);
    }
}

.login-box {
    width: 420px;
    padding: 3.5rem;
    text-align: center;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    background: #000;
}

/* Luxury Continuous Dual Border Trace (Parallel) */
.login-box span {
    position: absolute;
    display: block;
    z-index: 5;
}

/* Cycle: 6s (Prestigious Slow) | Logic: Parallel segments (Top/Bottom then Right/Left) */
.login-box span:nth-child(1) {
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-gold));
    animation: border-trace1 6s linear infinite;
    animation-delay: 0s;
}

@keyframes border-trace1 {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

.login-box span:nth-child(2) {
    top: -100%;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--accent-gold));
    animation: border-trace2 6s linear infinite;
    animation-delay: 1.5s;
}

@keyframes border-trace2 {
    0% {
        top: -100%;
    }

    50%,
    100% {
        top: 100%;
    }
}

.login-box span:nth-child(3) {
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(270deg, transparent, var(--accent-gold));
    animation: border-trace3 6s linear infinite;
    animation-delay: 3s;
    /* Parallel to Span 1 */
}

@keyframes border-trace3 {
    0% {
        right: -100%;
    }

    50%,
    100% {
        right: 100%;
    }
}

.login-box span:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(360deg, transparent, var(--accent-gold));
    animation: border-trace4 6s linear infinite;
    animation-delay: 4.5s;
    /* Parallel to Span 2 */
}

@keyframes border-trace4 {
    0% {
        bottom: -100%;
    }

    50%,
    100% {
        bottom: 100%;
    }
}

.demo-hint {
    margin-top: 2rem;
    padding: 1.25rem;
    border-radius: 4px;
    background: rgba(201, 162, 77, 0.05);
    border: 1px solid rgba(201, 162, 77, 0.1);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.demo-hint strong {
    color: var(--accent-gold);
    font-family: monospace;
}

.login-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    outline: none;
    font-family: 'Outfit', sans-serif;
}

.btn-gold {
    width: 100%;
    background: var(--accent-gold);
    color: #000;
    border: none;
    padding: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
}

/* Layout */
.dash-container {
    display: flex;
}

.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    height: 100vh;
    padding: 3rem 2rem;
    position: fixed;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-filter {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-filter.active,
.btn-filter:hover {
    background: rgba(201, 162, 77, 0.1);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.subtitle {
    display: block;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 2.5rem;
}

.text-gold {
    color: var(--accent-gold);
}

.admin-badge {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    padding: 2px 8px;
    margin-top: 0.5rem;
    display: inline-block;
}

.quick-view-site {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 0.75rem 1rem;
    background: rgba(201, 162, 77, 0.05);
    border-radius: 4px;
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.quick-view-site:hover {
    background: rgba(201, 162, 77, 0.15);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.side-nav {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-item:hover,
.nav-item.active {
    background: rgba(201, 162, 77, 0.1);
    color: var(--accent-gold);
}

.main-content {
    margin-left: 280px;
    padding: 4rem;
    flex-grow: 1;
}

/* Tabs */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.tab-header {
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}

.tab-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    margin: 0;
    min-width: 200px;
}

.tab-header p {
    color: var(--text-secondary);
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* Analytics Tab */
#analytics-tab {
    padding-bottom: 150px !important; /* Force override */
    min-height: 100vh;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: var(--glass-bg);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.stat-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
}

/* Lead Status Badges */
.status-select {
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.status-select[data-status="pending"] {
    background: rgba(201, 162, 77, 0.1);
    color: var(--accent-gold);
}

.status-select[data-status="contacted"] {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.status-select[data-status="booked"] {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-select[data-status="archived"] {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

/* CMS Live Preview */
.cms-item-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.cms-item-card:hover {
    border-color: var(--accent-gold);
}

.img-preview-mini {
    width: 100%;
    height: 80px;
    background-color: #000;
    margin-top: 1rem;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sub-header {
    margin: 3rem 0 1.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-secondary);
}

/* Settings / Security */
.settings-box {
    max-width: 600px;
    padding: 3rem;
}

.settings-box h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--accent-gold);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.luxe-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.luxe-table th {
    text-align: left;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.luxe-table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.patient-info {
    display: flex;
    flex-direction: column;
}

.p-name {
    font-weight: 600;
    color: #fff;
}

.p-phone {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.status-select {
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    font-family: inherit;
    outline: none;
}

/* CMS */
.cms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.cms-item-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    height: auto;
    overflow: hidden;
}

.cms-item-card:hover {
    border-color: var(--accent-gold);
}

.cms-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.btn-save-cms {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-save-cms:hover {
    background: var(--accent-gold);
    color: #000;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent-gold);
    color: #000;
    padding: 1rem 2rem;
    font-weight: 600;
    visibility: hidden;
    opacity: 0;
    transition: 0.5s;
    z-index: 6000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #fff;
}

.toast.show {
    visibility: visible;
    opacity: 1;
}

/* Team Management */
.team-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.team-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.team-info strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
}

.team-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.btn-delete-user {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.8rem;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-delete-user:hover {
    background: #ef4444;
    color: #fff;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-test-config {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

.btn-test-config:hover {
    border-color: #fff;
    color: #fff;
}

/* Luxury Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid var(--border-color);
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: rgba(201, 162, 77, 0.2);
    border-color: var(--accent-gold);
}

input:checked+.slider:before {
    transform: translateX(22px);
    background-color: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold);
}

.logout-link {
    background: none;
    border: none;
    color: #ef4444;
    font-family: inherit;
    cursor: pointer;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* --- Filter Badges & Analytics Styles --- */
.count-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 8px;
    font-weight: 700;
}

.btn-filter.active .count-badge {
    background: var(--accent-gold);
    color: #000;
}

.analytics-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.ana-card {
    padding: 2rem;
    border-radius: 12px;
}

.ana-card h3 {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-container {
    height: 300px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 2rem;
}

.luxe-bar-chart {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    align-items: flex-end;
    height: 100%;
}

.bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    height: 100%;
    justify-content: flex-end;
}

.bar {
    width: 100%;
    background: linear-gradient(to top, var(--accent-gold), rgba(201, 162, 77, 0.4));
    border-radius: 4px 4px 0 0;
    transition: height 1s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.bar:hover {
    filter: brightness(1.2);
}

.bar::after {
    content: attr(data-value);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #fff;
}

.bar-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Mobile Responsiveness (Luxe Edition) --- */
@media (max-width: 992px) {
    .dash-container {
        display: block; /* Stack on mobile */
    }

    .sidebar {
        transform: translateX(-100%);
        z-index: 3000;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        width: 280px;
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 5rem 1rem 12rem !important; /* Huge bottom padding to prevent cutoff */
        width: 100% !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: 20px 0 50px rgba(0,0,0,0.8);
    }

    /* Tab Header adjustments */
    .tab-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .tab-header h1 {
        font-size: 1.8rem;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Fix Login Box on Mobile */
    .login-box {
        width: 90%;
        padding: 2rem;
    }

    /* Lead Table Wrapper */
    .recent-requests {
        overflow-x: auto;
        margin: 0 -1rem; /* Full bleed on mobile */
        padding: 0 1rem;
        border-radius: 0;
        box-shadow: none;
    }

    .luxe-table {
        min-width: 600px; /* Allow horizontal scroll */
    }

    /* CMS & Settings Grid */
    .cms-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
    }

    .cms-item-card {
        padding: 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    /* Analytics Charts */
    .analytics-layout {
        grid-template-columns: 1fr !important;
    }

    /* Analytics Section Bottom Spacing handled globally now */
    
    /* Analytics Chart Overflow Fixes */
    .ana-card,
    .glass-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important; /* Allow shrinking */
        box-sizing: border-box !important;
        overflow-x: auto; /* Allow internal scrolling if needed */
    }
    
    .chart-container,
    .chart-bars,
    #weekly-chart,
    #source-chart,
    .luxe-bar-chart {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important; /* Critical for flex children */
        box-sizing: border-box !important;
    }
    
    .analytics-layout {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Mobile Toggle - Improved placement */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem; /* Move to left for easier access if sidebar is on left */
    z-index: 4000;
    background: var(--accent-gold);
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

@media (max-width: 992px) {
    .mobile-toggle {
        display: flex;
    }
}

.ana-table-container {
    max-height: 400px;
    overflow-y: auto;
}

@media (max-width: 1100px) {
    .analytics-layout {
        grid-template-columns: 1fr;
    }
}

/* Luxury UI Utilities */
.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-icon:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.badge-source {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--accent-gold);
    text-transform: uppercase;
    font-weight: 700;
}

.date-cell {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    z-index: 100;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(201, 162, 77, 0.1);
    border-top: 2px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.sidebar-footer {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
}

.view-site {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.view-site:hover {
    color: #fff;
}

/* Custom Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    padding: 2rem;
}

.modal-box {
    max-width: 450px;
    width: 100%;
    padding: 3rem;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: #000;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-box h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.modal-box p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-outline:hover {
    border-color: #fff;
    color: #fff;
}

/* --- Analytics Chart 2.0 --- */
.chart-container {
    display: flex;
    align-items: flex-end;
    height: 220px;
    padding-top: 1rem;
    margin-bottom: 0.5rem;
    position: relative;
    gap: 1rem;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-width: 30px;
    color: var(--text-secondary);
    font-size: 0.7rem;
    padding-bottom: 2px;
    border-right: 1px dashed rgba(255, 255, 255, 0.1);
    padding-right: 10px;
    text-align: right;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    flex-grow: 1;
    height: 100%;
    justify-content: space-between;
    padding-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 10px;
}

.chart-bar {
    width: 8%;
    /* Responsive width */
    background: linear-gradient(180deg, var(--accent-gold) 0%, rgba(5, 5, 5, 0) 120%);
    border-top: 2px solid var(--accent-gold);
    border-radius: 2px 2px 0 0;
    transition: height 1s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    min-height: 0px;
    animation: growBar 1s ease-out forwards;
    opacity: 0;
}

@keyframes growBar {
    from {
        height: 0;
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.chart-bar:hover {
    filter: brightness(1.3);
    box-shadow: 0 0 20px rgba(201, 162, 77, 0.2);
    cursor: crosshair;
}

.bar-tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    opacity: 0;
    transition: 0.2s;
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
    font-family: inherit;
    font-weight: 700;
}

.chart-bar:hover .bar-tooltip {
    opacity: 1;
    top: -45px;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    padding-left: 50px;
    padding-right: 10px;
}

.chart-labels span {
    width: 8%;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}