/* ============================================
   CampusCash - Premium Student Expense Tracker
   ============================================ */
/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
    /* Primary Palette — money green (finance color psychology: green = growth/trust) */
    --p-h: 158;
    --p-s: 72%;
    --p-l: 52%;
    --primary: hsl(var(--p-h), var(--p-s), var(--p-l));
    --primary-glow: hsla(var(--p-h), var(--p-s), var(--p-l), 0.4);

    --accent-h: 172;
    --accent: hsl(var(--accent-h), 100%, 50%);
    --accent-glow: hsla(var(--accent-h), 100%, 50%, 0.3);

    /* Legacy Core Colors — green / mint */
    --primary-start: #16d99a;
    --primary-end: #34e3b0;
    --primary-light: #5eead4;
    --text-primary: #e8fff5;
    --text-secondary: #a9c4b6;
    --text-muted: #6f8c7d;
    --text-dim: #44584e;
    --success: #2ed573;
    --danger: #ff4757;
    --warning: #f5c451;
    
    /* Surfaces */
    --bg-deep: #050d0a;
    --bg-card: rgba(10, 24, 20, 0.5);
    --border: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.05);
    --edge-glow: rgba(255, 255, 255, 0.1);

    /* Layout & Utilities */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-glow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* ===== LAYOUT STRUCTURE ===== */
    --sidebar-width: 260px;
    --header-height: 64px;

    /* Typography Overhaul */
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Bento Spacing */
    --bento-gap: 20px;
    --bg-input: rgba(255, 255, 255, 0.04);
}

/* Elite Typography Reset */
h1, h2, h3, .card-value { font-family: var(--font-primary); }
body, p, span, input, button { font-family: var(--font-secondary); }

/* Bento Grid moved to end for override safety */

/* ---- Entrance Animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }


/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(22, 217, 154, 0.3);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(22, 217, 154, 0.5);
}

/* ---- Animated Background Orbs ---- */
.bg-orbs {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px; height: 400px;
    background: var(--primary-start);
    top: -100px; left: -100px;
    animation-delay: 0s;
    animation-duration: 25s;
}
.orb-2 {
    width: 300px; height: 300px;
    background: var(--accent);
    top: 50%; right: -80px;
    animation-delay: -5s;
    animation-duration: 20s;
}
.orb-3 {
    width: 350px; height: 350px;
    background: var(--primary-end);
    bottom: -100px; left: 40%;
    animation-delay: -10s;
    animation-duration: 30s;
}
.orb-4 {
    width: 250px; height: 250px;
    background: #f5c451;
    top: 30%; left: 30%;
    animation-delay: -15s;
    animation-duration: 22s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(60px, -40px) scale(1.1); }
    50% { transform: translate(-30px, 60px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.05); }
}

/* ---- Elite UI Additions ---- */
.fab-voice {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px var(--primary-glow);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-voice:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 40px var(--primary-glow);
}

.fab-pulse {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: var(--primary);
    z-index: -1;
    animation: fabPulse 2s infinite;
}

@keyframes fabPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

.glow-orb-mini {
    position: absolute;
    top: -20px; right: -20px;
    width: 100px; height: 100px;
    background: radial-gradient(circle, var(--primary-glow), transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

.balance-display {
    text-align: center;
    padding: 20px 0;
}

.currency-symbol {
    font-size: 24px;
    vertical-align: top;
    margin-right: 4px;
    color: var(--accent);
}

.bento-content.centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Fix for small bento items */
.bento-item h3 { line-height: 1; }


/* ---- Voice Waveform Elite UI ---- */
.waveform-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 40px;
    margin: 20px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.waveform-container.active {
    opacity: 1;
}

.wave-bar {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: waveAnim 1s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent-glow);
}

.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; }

@keyframes waveAnim {
    0%, 100% { height: 8px; transform: scaleY(1); }
    50% { height: 32px; transform: scaleY(1.2); }
}

/* AI Narrative Styling */
.smart-narrative-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    font-style: italic;
    border-left: 2px solid var(--accent);
    padding-left: 15px;
    margin-top: 10px;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-5px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Fluid Spacing Update */
.bento-item {
    padding: clamp(16px, 3vw, 24px);
}


.brand-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: var(--shadow-glow);
}

/* ---- Sync Status Indicator ---- */
.sync-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin: 15px 20px;
    width: fit-content;
    transition: all 0.3s ease;
}

.sync-indicator.online {
    color: var(--success);
    border-color: rgba(72, 187, 120, 0.2);
    background: rgba(72, 187, 120, 0.05);
}

.sync-indicator.offline {
    color: var(--danger);
    border-color: rgba(252, 129, 129, 0.2);
    background: rgba(252, 129, 129, 0.05);
}

.sync-indicator.syncing {
    color: var(--warning);
    border-color: rgba(246, 173, 85, 0.2);
    background: rgba(246, 173, 85, 0.05);
}

.sync-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    position: relative;
}

.online .sync-dot {
    box-shadow: 0 0 8px var(--success);
    animation: pulseSync 2s infinite;
}

.offline .sync-dot {
    box-shadow: 0 0 8px var(--danger);
}

.syncing .sync-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-top-color: transparent;
    background: transparent;
    animation: rotateSync 1s linear infinite;
}

@keyframes pulseSync {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes rotateSync {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.brand-text h1 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-text span {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.nav-menu {
    list-style: none;
    padding: 16px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 3px; height: 100%;
    background: linear-gradient(180deg, var(--primary-start), var(--accent));
    border-radius: 0 4px 4px 0;
    transform: scaleY(0);
    transition: transform var(--transition-bounce);
}

.nav-item:hover {
    background: rgba(22, 217, 154, 0.1);
    color: var(--text-primary);
    transform: translateX(4px);
}

.nav-item.active {
    background: rgba(22, 217, 154, 0.15);
    color: var(--accent);
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-item i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-export {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(22, 217, 154, 0.15);
    border: 1px solid rgba(22, 217, 154, 0.2);
    border-radius: var(--radius-md);
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-primary);
}

.btn-export:hover {
    background: rgba(22, 217, 154, 0.25);
    border-color: rgba(22, 217, 154, 0.4);
    transform: translateY(-1px);
}

.quick-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    background: rgba(94, 234, 212, 0.08);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-mono);
}

/* ---- Mobile Header ---- */
.mobile-header {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(12, 12, 30, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 99;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.hamburger, .mobile-mic {
    width: 40px; height: 40px;
    background: rgba(22, 217, 154, 0.15);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.hamburger:hover, .mobile-mic:hover {
    background: rgba(22, 217, 154, 0.25);
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
}

.mobile-brand i {
    color: var(--accent);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
    backdrop-filter: blur(4px);
}

/* ---- Sidebar (Desktop) ---- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: rgba(8, 8, 24, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid var(--glass-border);
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(22, 217, 154, 0.2) transparent;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}

/* ---- Main Content ---- */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding: 32px;
    position: relative;
    z-index: 1;
    /* Prevent content overflow under sidebar */
    max-width: calc(100vw - var(--sidebar-width));
    box-sizing: border-box;
    /* Smooth push when sidebar opens on mobile */
    transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Tablet: collapse sidebar, show hamburger ---- */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width);
        z-index: 200;
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 40px rgba(0, 0, 0, 0.5);
    }
    .sidebar-overlay.visible {
        display: block;
    }
    .mobile-header {
        display: flex;
    }
    .main-content {
        margin-left: 0;
        max-width: 100vw;
        padding: 84px 20px 24px;
    }
    /* Push main content right when sidebar is open */
    body.sidebar-open .main-content {
        margin-left: var(--sidebar-width);
        max-width: calc(100vw - var(--sidebar-width));
    }
}

.content-section {
    display: none;
    animation: fadeSlideIn 0.4s ease forwards;
}

.content-section.active {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.section-header h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--accent);
    font-size: 28px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ---- Month Selector ---- */
.month-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 6px 12px;
    backdrop-filter: blur(10px);
}

.month-selector span {
    min-width: 130px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.btn-icon {
    width: 32px; height: 32px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: rgba(22, 217, 154, 0.15);
    color: var(--text-primary);
}

/* ---- Summary Cards ---- */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.summary-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.summary-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-total::after { background: linear-gradient(90deg, var(--primary-start), var(--accent)); }
.card-today::after { background: linear-gradient(90deg, #f5c451, #34e3b0); }
.card-budget::after { background: linear-gradient(90deg, var(--success), var(--accent-light)); }
.card-avg::after { background: linear-gradient(90deg, var(--warning), #ff6b6b); }

.summary-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-active);
    box-shadow: var(--shadow-glow);
}

.card-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.card-total .card-icon { background: rgba(22, 217, 154, 0.15); color: var(--primary-start); }
.card-today .card-icon { background: rgba(245, 196, 81, 0.15); color: #f5c451; }
.card-budget .card-icon { background: rgba(72, 187, 120, 0.15); color: var(--success); }
.card-avg .card-icon { background: rgba(246, 173, 85, 0.15); color: var(--warning); }

.card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.card-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.card-value {
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 800;
    letter-spacing: -1px;
    font-family: var(--font-mono);
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-trend {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.budget-mini-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    margin-top: 4px;
    overflow: hidden;
}

.budget-mini-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--success), var(--accent-light));
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

/* ---- Glass Card ---- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

/* ---- Charts ---- */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.chart-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-normal);
}

.chart-card:hover {
    border-color: rgba(22, 217, 154, 0.2);
}

.chart-card.wide {
    grid-column: 1 / -1;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.chart-header h3 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-header h3 i {
    color: var(--primary-light);
    font-size: 20px;
}

.btn-text {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all var(--transition-fast);
}

.btn-text:hover {
    color: var(--accent-light);
    gap: 8px;
}

.chart-container {
    position: relative;
    height: 260px;
    width: 100%;
    min-width: 0;
}

.chart-wide {
    height: 300px;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}

/* ---- Transaction List ---- */
.recent-card, .insights-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 28px;
}

.transaction-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-item:hover {
    background: rgba(22, 217, 154, 0.05);
    border-radius: var(--radius-sm);
    padding-left: 8px;
    padding-right: 8px;
}

.txn-icon {
    width: 42px; height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.txn-details {
    flex: 1;
    min-width: 0;
}

.txn-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.txn-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.txn-amount {
    font-weight: 700;
    font-size: 16px;
    font-family: var(--font-mono);
    color: var(--danger);
    white-space: nowrap;
}

.txn-delete {
    width: 32px; height: 32px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all var(--transition-fast);
    opacity: 0;
}

.transaction-item:hover .txn-delete {
    opacity: 1;
}

.txn-delete:hover {
    background: var(--danger-bg);
    color: var(--danger);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-muted);
    gap: 12px;
}

.empty-state i {
    font-size: 48px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 14px;
}

/* ---- Insights ---- */
.insights-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.insight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(22, 217, 154, 0.08);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-light);
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.insight-item:hover {
    background: rgba(22, 217, 154, 0.12);
}

.insight-item i {
    font-size: 20px;
    color: var(--primary-light);
    flex-shrink: 0;
}

/* ---- Add Expense Section ---- */
.add-expense-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 24px;
    align-items: start;
}

.expense-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group label i {
    color: var(--primary-light);
}

.form-group input,
.filter-select {
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(22, 217, 154, 0.15);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
}

.category-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    user-select: none;
}

.category-chip:hover {
    border-color: rgba(22, 217, 154, 0.3);
    background: rgba(22, 217, 154, 0.08);
    transform: translateY(-2px);
}

.category-chip.selected {
    border-color: var(--accent);
    background: rgba(94, 234, 212, 0.1);
    color: var(--accent);
    box-shadow: var(--shadow-accent);
}

.category-chip .cat-emoji {
    font-size: 16px;
}

/* Buttons */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(22, 217, 154, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Quick Add */
.quick-add h3 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.quick-add h3 i {
    color: var(--warning);
}

.muted {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 16px;
}

.quick-presets {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preset-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-primary);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
}

.preset-btn:hover {
    background: rgba(22, 217, 154, 0.1);
    border-color: rgba(22, 217, 154, 0.3);
    transform: translateX(4px);
}

.preset-emoji {
    font-size: 18px;
}

.preset-amount {
    margin-left: auto;
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 700;
}

/* ---- Voice Command Section ---- */
.voice-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 24px;
    align-items: start;
}

.voice-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 40px 24px;
}

.voice-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.voice-ring {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-btn {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--primary-start), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-accent);
}

.voice-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(94, 234, 212, 0.4);
}

.ring {
    position: absolute;
    border: 2px solid rgba(94, 234, 212, 0.2);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.ring-1 { width: 100px; height: 100px; }
.ring-2 { width: 120px; height: 120px; }
.ring-3 { width: 140px; height: 140px; }

.voice-ring.listening .ring {
    animation: ringPulse 1.5s ease-out infinite;
}

.voice-ring.listening .ring-2 {
    animation-delay: 0.3s;
}

.voice-ring.listening .ring-3 {
    animation-delay: 0.6s;
}

@keyframes ringPulse {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
}

.voice-ring.listening .voice-btn {
    background: linear-gradient(135deg, #ff6b6b, var(--primary-end));
    animation: voicePulse 1s ease-in-out infinite alternate;
}

@keyframes voicePulse {
    from { box-shadow: 0 0 20px rgba(255, 107, 107, 0.3); }
    to { box-shadow: 0 0 40px rgba(255, 107, 107, 0.6); }
}

.voice-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
}

.voice-transcript {
    width: 100%;
    min-height: 80px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--glass-border);
}

.transcript-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    padding: 10px;
}

.transcript-placeholder i {
    font-size: 24px;
    opacity: 0.4;
}

.transcript-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.5;
}

.voice-result {
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.result-parsed h4 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.parsed-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.parsed-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(94, 234, 212, 0.1);
    border: 1px solid rgba(94, 234, 212, 0.2);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

.parsed-tag i {
    font-size: 16px;
}

.result-actions {
    display: flex;
    gap: 12px;
}

.btn-confirm {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    background: var(--success);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
}

.btn-confirm:hover {
    background: #38a169;
    transform: translateY(-1px);
}

.btn-cancel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    background: rgba(252, 129, 129, 0.15);
    border: 1px solid rgba(252, 129, 129, 0.3);
    border-radius: var(--radius-md);
    color: var(--danger);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
}

.btn-cancel:hover {
    background: rgba(252, 129, 129, 0.25);
}

/* Voice Help */
.voice-help h3 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.voice-help h3 i {
    color: var(--primary-light);
}

.voice-tips {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tip-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tip-item code {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    background: rgba(94, 234, 212, 0.08);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(94, 234, 212, 0.1);
}

.tip-item span {
    font-size: 12px;
    color: var(--text-muted);
    padding-left: 10px;
}

.voice-browser-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 12px;
    background: rgba(246, 173, 85, 0.1);
    border:1px solid rgba(246, 173, 85, 0.2);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--warning);
}

/* ---- Budget Section ---- */
.budget-overview {
    margin-bottom: 24px;
}

.budget-total-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.budget-total-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.budget-total-value {
    font-size: clamp(28px, 8vw, 36px);
    font-weight: 800;
    font-family: var(--font-mono);
    background: linear-gradient(135deg, var(--success), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.budget-total-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 5px;
    overflow: hidden;
}

.budget-total-fill {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--success), var(--accent-light));
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.budget-total-label {
    font-size: 13px;
    color: var(--text-muted);
}

.budget-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.budget-cat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition-normal);
}

.budget-cat-card:hover {
    border-color: rgba(22, 217, 154, 0.2);
    transform: translateY(-2px);
}

.budget-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.budget-cat-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.budget-cat-emoji {
    font-size: 22px;
}

.budget-cat-name {
    font-weight: 700;
    font-size: 14px;
}

.budget-cat-input {
    width: 90px;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-mono);
    text-align: right;
    outline: none;
    transition: border-color var(--transition-fast);
}

.budget-cat-input:focus {
    border-color: var(--primary-light);
}

.budget-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.budget-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.budget-cat-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

/* ---- History Section ---- */
.history-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 20px;
    backdrop-filter: blur(20px);
}

.history-search i {
    color: var(--text-muted);
    font-size: 20px;
}

.history-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-primary);
    outline: none;
}

.history-search input::placeholder {
    color: var(--text-muted);
}

.filter-group {
    display: flex;
    gap: 8px;
}

.filter-select {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-primary);
    border-radius: var(--radius-sm);
    outline: none;
    cursor: pointer;
}

.filter-select option {
    background: var(--bg-secondary);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.history-item:hover {
    border-color: rgba(22, 217, 154, 0.2);
    transform: translateX(4px);
}

.history-item .txn-delete {
    opacity: 0;
}

.history-item:hover .txn-delete {
    opacity: 1;
}

/* ---- Reports ---- */
.reports-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.report-table-wrapper {
    overflow-x: auto;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
}

.report-table th,
.report-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.report-table th {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    font-size: 11px;
}

.report-table td {
    font-weight: 500;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.status-safe {
    background: var(--success-bg);
    color: var(--success);
}

.status-warn {
    background: var(--warning-bg);
    color: var(--warning);
}

.status-over {
    background: var(--danger-bg);
    color: var(--danger);
}

/* ---- Toast Notifications ---- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(20, 20, 50, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 14px;
    font-weight: 500;
    min-width: 280px;
    max-width: 400px;
}

.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-info { border-left: 3px solid var(--accent); }
.toast-warning { border-left: 3px solid var(--warning); }

.toast i {
    font-size: 20px;
}

.toast-success i { color: var(--success); }
.toast-error i { color: var(--danger); }
.toast-info i { color: var(--accent); }
.toast-warning i { color: var(--warning); }

.toast.removing {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(80px) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(80px); }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    .add-expense-layout,
    .voice-layout {
        grid-template-columns: 1fr;
    }
    .reports-grid {
        grid-template-columns: 1fr;
    }
}

/* Consolidated to top of file */

@media (max-width: 480px) {
    .main-content {
        padding: 76px 12px 24px;
    }
    .summary-grid {
        grid-template-columns: 1fr;
    }
    .filter-group {
        flex-direction: column;
        width: 100%;
    }
    .filter-select {
        width: 100%;
    }
    .section-header h2 {
        font-size: 22px;
    }
    .category-chip {
        padding: 8px 10px;
        font-size: 11px;
    }
}

/* ===================== AUTHENTICATION OVERLAY ===================== */
.auth-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(5, 5, 16, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.auth-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.05);
}

.auth-bg-orbs { position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.auth-orb {
    position:absolute; border-radius:50%; filter:blur(100px); opacity:0.2;
    animation: orbFloat 20s ease-in-out infinite;
}
.ao-1 { width:400px;height:400px;background:var(--primary-start);top:-10%;left:-5%; }
.ao-2 { width:300px;height:300px;background:var(--accent);bottom:10%;right:-5%;animation-delay:-7s; }
.ao-3 { width:250px;height:250px;background:#f5c451;top:40%;left:50%;animation-delay:-12s; }

.auth-card {
    width: 90%;
    max-width: 420px;
    padding: clamp(28px, 5vw, 44px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: authSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(22, 217, 154, 0.2);
}

@keyframes authSlideUp {
    from { opacity: 0; transform: translateY(50px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-icon {
    font-size: 44px;
    color: var(--accent);
    background: linear-gradient(135deg, rgba(22, 217, 154, 0.15), rgba(94, 234, 212, 0.1));
    width: 90px; height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(94, 234, 212, 0.2);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 30px rgba(94, 234, 212, 0.2); }
    50% { box-shadow: 0 0 50px rgba(94, 234, 212, 0.4); }
}

.auth-card h2 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.auth-tagline {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 6px;
}

.auth-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end)) !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.3s;
}

.auth-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(22, 217, 154, 0.4) !important;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end)) !important;
}

.auth-social-proof {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    padding: 8px 0;
}
.auth-avatars { display:flex; }
.auth-av {
    width:28px; height:28px; border-radius:50%;
    background: linear-gradient(135deg, var(--primary-start), var(--accent));
    display:flex; align-items:center; justify-content:center;
    font-size:11px; font-weight:700; color:#fff;
    border: 2px solid var(--bg-card);
    margin-left:-8px;
}
.auth-av:first-child { margin-left:0; }

.auth-features {
    display: flex;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    width: 100%;
    justify-content: center;
}
.auth-feat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}
.auth-feat i { color: var(--primary-light); font-size: 14px; }

.auth-loader {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

/* ===================== SIDEBAR PROFILE ===================== */
.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin: 0 12px;
    border-radius: var(--radius-md);
    background: rgba(22, 217, 154, 0.06);
    border: 1px solid rgba(22, 217, 154, 0.1);
    transition: all 0.3s;
}
.sidebar-profile:hover {
    background: rgba(22, 217, 154, 0.1);
}
.profile-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(94, 234, 212, 0.3);
}
.profile-info { display: flex; flex-direction: column; min-width: 0; }
.profile-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-email { font-size: 10px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===================== SHIMMER BORDER ===================== */
.shimmer-border {
    position: relative;
    overflow: hidden;
}
.shimmer-border::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, transparent 30%, rgba(94, 234, 212, 0.3) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
    mix-blend-mode: screen;
}
@keyframes shimmer {
    0% { background-position: 200% 200%; }
    100% { background-position: -200% -200%; }
}

/* ===================== SETTINGS PAGE ===================== */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.settings-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all var(--transition-normal);
}

.settings-card:hover {
    border-color: rgba(22, 217, 154, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.settings-card h3 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.settings-card h3 i {
    color: var(--primary-light);
    font-size: 20px;
}

.settings-profile-lg {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
}

.profile-avatar-lg {
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(94, 234, 212, 0.3);
    box-shadow: 0 0 20px rgba(94, 234, 212, 0.15);
}

.settings-name { font-size: 18px; font-weight: 700; }
.settings-email { font-size: 13px; color: var(--text-muted); }

.settings-badge {
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(22, 217, 154, 0.1), rgba(94, 234, 212, 0.05));
    border: 1px solid rgba(22, 217, 154, 0.2);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-align: center;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.setting-row:last-child { border-bottom: none; }

.setting-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.setting-label i { color: var(--text-muted); font-size: 18px; }

.setting-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.theme-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 44px; height: 24px;
    display: inline-block;
}
.toggle-switch input { display: none; }
.toggle-slider {
    position: absolute; inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--text-muted);
    left: 3px; top: 3px;
    transition: all 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--primary-start), var(--accent));
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: #fff;
}

.settings-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(22, 217, 154, 0.12);
    border: 1px solid rgba(22, 217, 154, 0.2);
    border-radius: var(--radius-md);
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-primary);
}
.settings-btn:hover {
    background: rgba(22, 217, 154, 0.2);
    transform: translateY(-1px);
}

.settings-btn-danger {
    background: rgba(252, 129, 129, 0.08);
    border-color: rgba(252, 129, 129, 0.2);
    color: var(--danger);
}
.settings-btn-danger:hover {
    background: rgba(252, 129, 129, 0.15);
}

/* ===================== ENHANCED CARD HOVER GLOW ===================== */
.summary-card::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 120%; height: 120%;
    background: radial-gradient(circle, rgba(22, 217, 154, 0.06), transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.summary-card:hover::before { opacity: 1; }

/* ===================== SMOOTHER SECTION TRANSITION ===================== */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.99);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* ===================== RESPONSIVE SETTINGS ===================== */
/* ===================== PREMIUM TAGS ===================== */
.premium-tag {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(253, 160, 133, 0.4);
}

/* ===================== ONBOARDING TOUR ===================== */
.tour-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 20, 0.85);
    backdrop-filter: blur(12px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tour-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.1);
}

.tour-card {
    width: 90%;
    max-width: 440px;
    padding: 40px;
    text-align: center;
    animation: tourSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tourSlideUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}

.tour-icon {
    font-size: 64px;
    margin-bottom: 24px;
    color: var(--accent);
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.tour-slide {
    display: none;
}
.tour-slide.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.tour-demo {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.tour-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
}

.tour-dots {
    display: flex;
    gap: 8px;
}
.tour-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}
.tour-dot.active {
    width: 24px;
    background: var(--accent);
    border-radius: 4px;
}

.tour-next {
    width: 100%;
}

/* ===================== SKELETAL LOADING ===================== */
.skeletal {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    pointer-events: none;
}

.skeletal::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        transparent 100%
    );
    background-size: 200% 100%;
    animation: skeletal-shimmer 1.5s infinite linear;
}

@keyframes skeletal-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeletal * {
    opacity: 0 !important;
}

/* ===================== EMPTY STATE 2.0 ===================== */
.empty-state {
    padding: 60px 20px;
    background: rgba(22, 217, 154, 0.03);
    border: 1px dashed rgba(22, 217, 154, 0.2);
    border-radius: var(--radius-lg);
    margin-top: 10px;
}

.empty-state i {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: block;
}

.empty-state p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ===================== HAPTIC POP ===================== */
@keyframes haptic-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.haptic-pop {
    animation: haptic-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===================== AI CONTEXT BUTTON ===================== */
.btn-ai-context {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(22, 217, 154, 0.2) 0%, rgba(94, 234, 212, 0.2) 100%);
    border: 1px solid rgba(22, 217, 154, 0.3);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 13px;
    position: relative;
    overflow: hidden;
}

.btn-ai-context i {
    font-size: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, #16d99a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(22, 217, 154, 0.5));
}

.btn-ai-context:hover {
    background: linear-gradient(135deg, rgba(22, 217, 154, 0.3) 0%, rgba(94, 234, 212, 0.3) 100%);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(22, 217, 154, 0.2);
}

.btn-ai-context::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(transparent, rgba(22, 217, 154, 0.1), transparent 30%);
    animation: rotate 4s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===================== GROWTH HUB ===================== */
.growth-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .growth-grid {
        grid-template-columns: 1fr;
    }
}

.growth-ai-card {
    padding: 30px;
    position: relative;
    border: 1px solid rgba(22, 217, 154, 0.4);
}

.ai-burst-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent) 0%, #16d99a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(22, 217, 154, 0.5);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { transform: scale(1); box-shadow: 0 0 20px rgba(22, 217, 154, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 0 35px rgba(22, 217, 154, 0.8); }
    100% { transform: scale(1); box-shadow: 0 0 20px rgba(22, 217, 154, 0.5); }
}

.growth-controls {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.growth-controls select {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: inherit;
}

.btn-generate-growth {
    width: 100%;
    margin-top: 10px;
    background: linear-gradient(to right, var(--accent), #16d99a) !important;
    font-weight: 700 !important;
}

.growth-output-container {
    margin-top: 25px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    border: 1px dashed rgba(22, 217, 154, 0.5);
    overflow: hidden;
    animation: slideUp 0.4s ease;
}

.output-header {
    background: rgba(22, 217, 154, 0.1);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
}

.ai-content-text {
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #fff;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.growth-guide-card h3 {
    margin-bottom: 20px;
}

.guide-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.guide-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.guide-item i {
    font-size: 20px;
    color: var(--accent);
}

.guide-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.guide-item p {
    font-size: 12px;
    color: var(--text-dim);
}

/* ===================== PAYWALL MODAL ===================== */
.paywall-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 5, 16, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.paywall-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.paywall-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px var(--primary-glow);
    text-align: center;
    position: relative;
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.paywall-overlay.hidden .paywall-card {
    transform: scale(0.9);
}

.paywall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.paywall-header h2 {
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
}

.paywall-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.paywall-subtitle {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 500;
}

.paywall-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.paywall-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.paywall-features li i {
    color: var(--success);
    font-size: 18px;
}

.bytez-config-card .form-input {
    background: rgba(0, 0, 0, 0.3);
}

.mobile-bottom-nav {
    display: none;
}

/* ===================== ELITE MOBILE RESPONSIVENESS ===================== */
/* NOTE: bento-grid breakpoints are now handled near the top of this file (lines 119-140) */
/* Keeping only non-bento rules here to avoid conflicts */
@media (max-width: 1200px) {
    /* Bento grid handled by earlier responsive rules */
}

@media (max-width: 768px) {
    /* Centralized layout rules at top of file handle sidebar/header/content */

    /* Native Bottom Navigation */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(15, 15, 35, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 10px 15px 25px 15px; /* Extra bottom padding for iOS home indicator */
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: var(--text-muted);
        text-decoration: none;
        transition: all 0.3s;
        flex: 1;
    }

    .bottom-nav-item i {
        font-size: 22px;
    }

    .bottom-nav-item span {
        font-size: 10px;
        font-weight: 500;
    }

    .bottom-nav-item.active {
        color: var(--accent);
        transform: translateY(-2px);
    }
    
    .bottom-nav-item.active i {
        text-shadow: 0 0 10px var(--accent-glow);
    }

    /* Center FAB inside Nav */
    .fab-center {
        position: relative;
        top: -15px;
    }
    .fab-inner {
        width: 55px;
        height: 55px;
        background: linear-gradient(135deg, var(--primary-start), var(--accent));
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 20px rgba(94, 234, 212, 0.4);
        border: 4px solid var(--bg-deep);
        color: white;
    }
    .fab-inner i {
        font-size: 26px;
    }

    /* Padding for main content to clear bottom nav */
    .main-content {
        padding-bottom: 100px;
    }
}

/* ==========================================
   GROWTH ENGINEERING & VIRAL LOOPS
   ========================================== */

/* Locked Overlay with Premium Glow */
.locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 20, 0.7);
    backdrop-filter: blur(20px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    animation: fadeIn 0.4s ease forwards;
}

#insights-card[locked="true"] {
    animation: borderGlowPulse 4s infinite alternate;
}

@keyframes borderGlowPulse {
    0% { border-color: var(--glass-border); box-shadow: 0 0 0px transparent; }
    100% { border-color: var(--primary-glow); box-shadow: 0 0 20px var(--primary-glow); }
}

.locked-overlay.hidden { display: none; }

.locked-content i {
    font-size: 52px;
    color: var(--accent);
    margin-bottom: 12px;
    filter: drop-shadow(0 0 15px var(--accent-glow));
}

.locked-content h4 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-unlock {
    margin-top: 18px;
    background: #25D366 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* Growth Hub Premium Badge UI */
.gh-stats {
    display: flex;
    justify-content: space-around;
    gap: 12px;
    margin-bottom: 20px;
}

.gh-stat {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 14px 10px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gh-stat:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

.gh-val {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px var(--accent-glow);
}

.gh-lab {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 4px;
}

.gh-promo {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-align: center;
    padding: 0 10px;
}

.btn-share-hub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
}

.btn-share-hub:hover {
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: fabPulse 2s infinite;
}

/* Health Meter & Smart Ticker UI */
.health-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 30px;
}

.health-meter-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 20px auto 0;
}

.health-ring {
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(255,255,255,0.05);
    stroke-width: 8;
}

.ring-progress {
    fill: none;
    stroke: var(--accent);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.health-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: 900;
}

.health-label {
    position: absolute;
    bottom: -20px;
    width: 100%;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
}

.ticker-card {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(94, 234, 212, 0.1));
}

.badge-live {
    background: #ff3b3b;
    color: white;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    animation: fadeInOut 1s infinite;
}

.deal-ticker {
    height: 50px;
    margin-top: 15px;
    overflow: hidden;
    position: relative;
}

.ticker-text {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.4;
    animation: tickerSlide 12s infinite linear;
}

.ticker-link {
    display: block;
    margin-top: 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

@keyframes tickerSlide {
    0% { transform: translateY(100%); opacity: 0; }
    5% { transform: translateY(0); opacity: 1; }
    90% { transform: translateY(0); opacity: 1; }
    95% { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(-100%); opacity: 0; }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Sidebar Manual Tour Button */
.btn-tour {
    background: rgba(255, 255, 255, 0.05) !important;
    margin-top: 10px;
    border: 1px dashed var(--border) !important;
    font-size: 11px !important;
    transition: all 0.3s ease !important;
}

.btn-tour:hover {
    background: var(--primary-glow) !important;
    border-style: solid !important;
    border-color: rgba(255,255,255,0.3) !important;
    transform: translateX(5px);
}

/* Growth Console (Log Style) */
.growth-logs {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    font-family: var(--font-mono);
    font-size: 11px;
    height: 120px;
    overflow-y: auto;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.log-entry {
    margin-bottom: 6px;
    line-height: 1.4;
}

.log-entry.system { color: #888; }
.log-entry.ai { color: var(--accent); font-weight: 700; }
.log-entry.success { color: #25D366; }

.growth-logs::-webkit-scrollbar { width: 4px; }
.growth-logs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

#onboarding-college { ... }

#onboarding-college option {
    background: #1a1a3a;
    color: white;
}

/* Social Proof Pop (Trust Engine) */
.social-pop {
    position: fixed;
    bottom: 85px;
    left: 20px;
    z-index: 2000;
    max-width: 280px;
    transform: translateY(120%);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.social-pop.active {
    transform: translateY(0);
    pointer-events: auto;
}

.pop-content {
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.pop-avatar {
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.pop-text {
    font-size: 12px;
    line-height: 1.4;
    color: #ccc;
}

.pop-text strong {
    color: #fff;
    display: block;
}

@media (max-width: 768px) {
    .social-pop {
        bottom: 90px;
        left: 10px;
        right: 10px;
        max-width: none;
    }
}
/* ---- Bento Grid Engine ---- */
.bento-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(160px, auto) !important;
    gap: var(--bento-gap) !important;
    margin-bottom: 30px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.bento-item {
    background: var(--bg-card) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 24px !important;
    padding: 24px !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2) !important;
    min-width: 0 !important;
}

.bento-item::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: inherit !important;
    padding: 1px !important;
    background: linear-gradient(135deg, var(--edge-glow), transparent 40%, transparent 60%, var(--edge-glow)) !important;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
    -webkit-mask-composite: xor !important;
    mask-composite: exclude !important;
    pointer-events: none !important;
    opacity: 0.5 !important;
}

/* Bento Spanning Utilities */
.span-2-x { grid-column: span 2 !important; }
.span-2-y { grid-row: span 2 !important; }
.span-4-x { grid-column: span 4 !important; }

/* ---- Bento Responsive Breakpoints ---- */
@media (max-width: 1100px) {
    .bento-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .span-2-x { grid-column: span 2 !important; }
    .span-4-x { grid-column: span 2 !important; }
    .span-2-y { grid-row: span 1 !important; }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .span-2-x { grid-column: span 1 !important; }
    .span-4-x { grid-column: span 1 !important; }
    .span-2-y { grid-row: span 1 !important; }
    .bento-item {
        min-height: auto !important;
    }
}
/* SUPER HIGH SPECIFICITY OVERRIDE */
body #mainContent #section-dashboard .bento-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr 1fr !important;
    grid-auto-rows: minmax(160px, auto) !important;
    gap: 20px !important;
    width: 100% !important;
}

body #mainContent #section-dashboard .bento-grid .bento-item {
    display: block !important;
    width: auto !important;
    grid-column: span 1 !important;
}

body #mainContent #section-dashboard .bento-grid .bento-item.span-2-x {
    grid-column: span 2 !important;
}

body #mainContent #section-dashboard .bento-grid .bento-item.span-4-x {
    grid-column: span 4 !important;
}
