/* 
 * MoviePredict - Cinematic Premium UI
 * Design: Dark Sci-Fi + Cyberpunk + Glass Morphism
 * Upgraded: Modern, Dynamic, Futuristic
 */

/* ========================================
   GOOGLE FONTS IMPORT
======================================== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ========================================
   CSS VARIABLES - DESIGN TOKENS
======================================== */
:root {
    /* Base Colors */
    --bg-dark: #070b14;
    --bg-darker: #030508;
    --bg-card: rgba(15, 20, 35, 0.6);
    --bg-card-hover: rgba(25, 30, 50, 0.7);
    --bg-input: rgba(0, 0, 0, 0.3);

    /* Accent Colors - Cyberpunk Palette */
    --primary: #00f5d4;
    --primary-dark: #00b4a0;
    --secondary: #ffd700;
    --accent-purple: #bf5af2;
    --accent-pink: #ff6b9d;
    --danger: #ff4757;
    --success: #00f5d4;
    --warning: #ffa502;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00f5d4 0%, #00a6ff 50%, #bf5af2 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    --gradient-cyber: linear-gradient(135deg, #00f5d4 0%, #00a6ff 100%);
    --gradient-aurora: linear-gradient(135deg, #00f5d4, #00a6ff, #bf5af2, #ff6b9d);
    --gradient-dark: linear-gradient(180deg, rgba(7, 11, 20, 0) 0%, rgba(7, 11, 20, 1) 100%);

    /* Glows */
    --glow-primary: 0 0 30px rgba(0, 245, 212, 0.4), 0 0 60px rgba(0, 245, 212, 0.2);
    --glow-gold: 0 0 30px rgba(255, 215, 0, 0.3);
    --glow-soft: 0 0 40px rgba(0, 245, 212, 0.15);

    /* Text Colors */
    --text-main: #ffffff;
    --text-secondary: #b4c5d9;
    --text-muted: #6b7c93;

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Effects */
    --glass-bg: rgba(15, 20, 35, 0.5);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --backdrop-blur: blur(20px);
    --border-radius: 20px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   RESET & BASE
======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* ========================================
   ANIMATED BACKGROUNDS
======================================== */
.bg-ambient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 20% 30%, rgba(0, 245, 212, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 70%, rgba(191, 90, 242, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 50%, rgba(0, 166, 255, 0.05) 0%, transparent 50%);
    animation: ambientPulse 15s ease-in-out infinite;
}

@keyframes ambientPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -2;
}

/* Grid Pattern Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 245, 212, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 212, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: -1;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ========================================
   LAYOUT
======================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-layout {
    position: relative;
}

/* ========================================
   TYPOGRAPHY UTILITIES
======================================== */
.mono-text,
.mono-label {
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.text-stroke {
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.2);
    color: transparent;
}

/* ========================================
   NAVIGATION - Floating Glass Nav
======================================== */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(7, 11, 20, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    z-index: 1000;
    padding: 14px 32px;
    width: auto;
    max-width: 700px;
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.3), transparent, rgba(191, 90, 242, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.glass-nav.hidden {
    transform: translate(-50%, -150%);
    opacity: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo {
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
}

.logo:hover {
    color: var(--primary);
}

.logo-icon {
    color: var(--primary);
    font-size: 1.3rem;
    filter: drop-shadow(0 0 8px var(--primary));
}

.logo-text {
    font-size: 1.1rem;
}

.highlight {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    position: relative;
}

.hero-content {
    width: 100%;
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Animated Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-radius: 50px;
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 28px;
    letter-spacing: 1px;
    animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 245, 212, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 245, 212, 0.4);
    }
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

/* ========================================
   GLASS CARDS - Premium Glass Morphism
======================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: var(--glass-border);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

/* Animated Border Gradient */
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    padding: 1.5px;
    background: linear-gradient(135deg,
            rgba(0, 245, 212, 0.4),
            rgba(0, 166, 255, 0.2),
            rgba(191, 90, 242, 0.3),
            rgba(0, 245, 212, 0.1));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity var(--transition-smooth);
    animation: borderRotate 8s linear infinite;
}

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow:
        var(--glass-shadow),
        0 0 40px rgba(0, 245, 212, 0.1);
}

/* ========================================
   INPUT FORM
======================================== */
.input-card {
    text-align: left;
    position: relative;
}

/* Top Glow Line */
.input-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--gradient-primary);
    filter: blur(1px);
    opacity: 0.7;
}

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

.form-header h3 {
    color: var(--text-main);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-header h3 i {
    color: var(--primary);
}

.badge-pre-release {
    background: var(--gradient-cyber);
    color: #000;
    padding: 6px 14px;
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.3);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.full-width {
    grid-column: span 2;
}

.mono-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-wrapper {
    position: relative;
    background: var(--bg-input);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    transition: all var(--transition-smooth);
}

.input-wrapper:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow:
        0 0 0 3px rgba(0, 245, 212, 0.1),
        0 0 20px rgba(0, 245, 212, 0.1);
}

.input-wrapper i {
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.input-wrapper:focus-within i {
    color: var(--primary);
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 14px 16px 14px 0;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    outline: none;
}

.input-wrapper select {
    cursor: pointer;
}

.input-wrapper select option {
    background: var(--bg-darker);
    color: var(--text-main);
    padding: 10px;
}

/* ========================================
   GENRE CHIPS - Neon Style
======================================== */
.genre-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.genre-chip {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.genre-chip:hover {
    background: rgba(0, 245, 212, 0.08);
    border-color: rgba(0, 245, 212, 0.3);
    color: var(--primary);
    transform: translateY(-2px);
}

.genre-chip.active {
    background: rgba(0, 245, 212, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.2);
}

/* ========================================
   BUTTONS - Cyberpunk Style
======================================== */
.form-actions {
    grid-column: span 2;
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.btn-primary,
.btn-secondary {
    padding: 16px 28px;
    border-radius: 12px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    flex: 2;
    background: var(--gradient-cyber);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 245, 212, 0.3);
}

/* Shimmer Effect */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 40px rgba(0, 245, 212, 0.5),
        0 10px 30px rgba(0, 245, 212, 0.3);
}

.btn-secondary {
    flex: 1;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-loader {
    display: none;
}

.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: rgba(0, 245, 212, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* ========================================
   TRENDING SECTION
======================================== */
.trending-section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
}

.nav-arrows {
    display: flex;
    gap: 12px;
}

.arrow-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-main);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.arrow-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.2);
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ========================================
   MOVIE CARDS - Holographic Style
======================================== */
.movie-card {
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.movie-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 245, 212, 0.15);
}

.card-image {
    height: 320px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Holographic Overlay */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(7, 11, 20, 0) 0%,
            rgba(7, 11, 20, 0.3) 50%,
            rgba(7, 11, 20, 1) 100%);
}

.movie-card:hover .card-overlay {
    background: linear-gradient(180deg,
            rgba(0, 245, 212, 0.05) 0%,
            rgba(7, 11, 20, 0.4) 50%,
            rgba(7, 11, 20, 1) 100%);
}

.card-rating {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 50px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--success);
    border: 1.5px solid var(--success);
    box-shadow: 0 0 15px rgba(0, 245, 212, 0.3);
}

.card-rating.warning {
    color: var(--warning);
    border-color: var(--warning);
    box-shadow: 0 0 15px rgba(255, 165, 2, 0.3);
}

.card-info {
    padding: 24px;
}

.movie-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.movie-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.meta-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: var(--primary);
    font-size: 0.8rem;
}

.prediction-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--gradient-cyber);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 245, 212, 0.4);
    transition: width 1s ease-out;
}

.bar-fill.warning {
    background: var(--gradient-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.prediction-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.prediction-label .mono-text {
    color: var(--text-main);
    font-weight: 700;
}

/* ========================================
   RESULTS SECTION
======================================== */
.results-section {
    padding: 80px 0;
}

.hidden {
    display: none !important;
}

.result-movie-title {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 8px;
}

/* Hero Result Container */
.hero-result-container {
    margin-bottom: 40px;
    background: linear-gradient(135deg, rgba(15, 20, 35, 0.8), rgba(7, 11, 20, 0.9));
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 48px;
    align-items: center;
}

.hero-status-col {
    text-align: center;
}

.gauge-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 24px;
}

.gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.gauge-value span {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gauge-value small {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-top: 4px;
}

.status-text-wrapper {
    text-align: center;
}

.prediction-status {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.prediction-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 280px;
    margin: 0 auto;
}

/* Metrics Pills */
.hero-metrics-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.metric-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition-smooth);
}

.metric-pill:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 245, 212, 0.2);
    transform: translateY(-2px);
}

.pill-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 215, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--secondary);
}

.pill-content {
    display: flex;
    flex-direction: column;
}

.pill-label {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.pill-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
}

.model-badge-hero {
    grid-column: span 2;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 16px;
    background: rgba(0, 245, 212, 0.05);
    border: 1px solid rgba(0, 245, 212, 0.1);
    border-radius: 12px;
}

.model-badge-hero i {
    color: var(--primary);
    margin-right: 8px;
}

/* ========================================
   SIMULATION PANEL
======================================== */
.simulation-card {
    border: 1px solid rgba(0, 245, 212, 0.2);
    background: linear-gradient(145deg, rgba(15, 20, 35, 0.9), rgba(7, 11, 20, 0.95));
    box-shadow: 0 0 40px rgba(0, 245, 212, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
}

.simulation-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: scanline 4s linear infinite;
}

@keyframes scanline {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.simulation-header h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.simulation-header h4 i {
    color: var(--primary);
}

.badge-glow {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.control-group {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-smooth);
}

.control-group:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 245, 212, 0.2);
}

.control-label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-label i {
    color: var(--primary);
}

.control-value {
    color: var(--primary);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(0, 245, 212, 0.4);
}

/* Custom Range Slider */
.custom-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    margin-top: 12px;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 15px var(--primary);
    border: 2px solid #fff;
    transition: transform 0.2s ease;
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.sim-result-box {
    padding: 40px;
    border-radius: 20px;
    background: radial-gradient(circle at center, rgba(0, 245, 212, 0.1), rgba(0, 0, 0, 0.4));
    border: 1px solid rgba(0, 245, 212, 0.25);
    min-width: 220px;
    position: relative;
}

.sim-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.sim-score {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 30px rgba(0, 245, 212, 0.6);
}

.sim-delta {
    margin-top: 16px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-block;
    background: rgba(0, 0, 0, 0.3);
}

.sim-delta.positive {
    background: rgba(0, 245, 212, 0.15);
    color: var(--primary);
}

.sim-delta.negative {
    background: rgba(255, 71, 87, 0.15);
    color: var(--danger);
}

/* ========================================
   CHART CARDS
======================================== */
.chart-card {
    padding: 32px;
}

.chart-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.chart-card h3 i {
    color: var(--primary);
}

.chart-container {
    height: 320px;
    margin-top: 24px;
}

/* ========================================
   STORY SECTION
======================================== */
.story-section {
    padding: 100px 0;
    position: relative;
}

.story-intro {
    text-align: center;
    margin-bottom: 80px;
}

.story-title {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.story-lead {
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.story-chapter {
    margin-bottom: 100px;
}

.chapter-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 36px;
}

.chapter-number {
    font-family: var(--font-mono);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
}

.chapter-header h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--primary);
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.col-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.col-text strong {
    color: var(--text-main);
}

.stats-mini-grid {
    display: flex;
    gap: 48px;
    margin-top: 36px;
}

.stat-mini {
    display: flex;
    flex-direction: column;
}

.stat-mini strong {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
}

.stat-mini span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* Comparison Card */
.comparison-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.comparison-bar {
    margin-bottom: 24px;
}

.model-name {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient-cyber);
    border-radius: 10px;
}

.comparison-bar.winner .progress {
    background: var(--gradient-cyber);
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.4);
}

.comparison-bar.winner .model-name span {
    color: var(--primary);
}

/* Insights Grid */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.insight-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: all var(--transition-smooth);
}

.insight-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 245, 212, 0.1);
}

.insight-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 215, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--secondary);
    margin: 0 auto 20px;
}

.insight-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 12px;
}

.insight-value {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 12px 0;
}

.insight-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Mini Chart */
.chart-box-mini {
    padding: 24px;
}

.chart-box-mini h4 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.chart-wrapper-mini {
    height: 200px;
}

/* Story Footer */
.story-footer {
    text-align: center;
    margin-top: 80px;
}

.signature {
    margin-top: 40px;
    color: var(--text-muted);
}

/* ========================================
   TEAM SECTION
======================================== */
.team-section {
    padding: 80px 0;
}

.section-header-center {
    text-align: center;
    margin-bottom: 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.team-card {
    text-align: center;
    padding: 48px 28px;
    transition: all var(--transition-smooth);
}

.team-card:hover {
    transform: translateY(-8px);
}

.member-avatar {
    margin-bottom: 24px;
}

.member-avatar img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    padding: 4px;
    object-fit: cover;
    transition: all var(--transition-smooth);
}

.team-card:hover .member-avatar img {
    box-shadow: 0 0 30px rgba(0, 245, 212, 0.3);
}

.team-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.team-card .role {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   SCROLL ANIMATIONS
======================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    filter: blur(8px);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.25s;
}

.stagger-3 {
    transition-delay: 0.4s;
}

/* Text Reveal */
.text-reveal {
    background: linear-gradient(90deg, var(--text-main) 0%, rgba(255, 255, 255, 0) 30%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: background-position 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.text-reveal.visible {
    background-position: 0 0;
    color: var(--text-secondary);
}

/* ========================================
   FOOTER
======================================== */
footer {
    padding: 48px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

footer p {
    font-family: var(--font-mono);
}

/* ========================================
   ROW & GRID UTILITIES
======================================== */
.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.mb-4 {
    margin-bottom: 24px;
}

.mt-5 {
    margin-top: 48px !important;
}

.col-lg-6 {
    width: 100%;
}

.col-md-7 {
    width: 58%;
}

.col-md-5 {
    width: 42%;
}

.col-md-6 {
    width: 50%;
}

.col-12 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.g-4 {
    gap: 24px;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

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

.text-muted {
    color: var(--text-muted) !important;
}

.ms-2 {
    margin-left: 8px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 16px;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1024px) {

    .hero-grid,
    .hero-metrics-col {
        grid-template-columns: 1fr;
    }

    .model-badge-hero {
        grid-column: span 1;
    }

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width,
    .form-actions {
        grid-column: span 1;
    }

    .form-actions {
        flex-direction: column;
    }

    .trending-grid,
    .hero-grid,
    .hero-metrics-col,
    .row,
    .team-grid,
    .insights-grid {
        grid-template-columns: 1fr;
    }

    .glass-nav {
        width: 95%;
        padding: 12px 20px;
    }

    .nav-links {
        display: none;
    }

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

    .story-title {
        font-size: 2.2rem;
    }

    .chapter-number {
        font-size: 2.5rem;
    }

    .stats-mini-grid {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .glass-card {
        padding: 24px;
        border-radius: 16px;
    }

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

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

/* ========================================
   ACCESSIBILITY - Reduced Motion
======================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-on-scroll,
    .reveal-left,
    .reveal-right,
    .text-reveal {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* ========================================
   3D TILT EFFECT FOR MOVIE CARDS
======================================== */
.movie-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.movie-card.tilt-active {
    transform: rotateY(var(--tilt-x, 0deg)) rotateX(var(--tilt-y, 0deg)) scale(1.02);
}

.movie-card .card-image {
    transition: transform 0.3s ease;
}

.movie-card:hover .card-image {
    transform: translateZ(20px);
}

.movie-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(0, 245, 212, 0.1) 0%,
            transparent 50%,
            rgba(191, 90, 242, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: var(--border-radius);
}

.movie-card:hover::after {
    opacity: 1;
}

/* ========================================
   ANIMATED NUMBER COUNTERS
======================================== */
.counter-value {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    transition: transform 0.3s ease;
}

.counter-value.counting {
    animation: countPulse 0.1s ease;
}

@keyframes countPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.metric-pill .pill-value {
    position: relative;
    overflow: hidden;
}

/* Sparkline container inside metrics */
.metric-sparkline {
    width: 60px;
    height: 24px;
    margin-left: auto;
}

.metric-pill-enhanced {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
}

/* ========================================
   FLOATING ACTION BUTTON (FAB)
======================================== */
.fab-container {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
}

.fab-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-cyber);
    border: none;
    color: #000;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow:
        0 8px 32px rgba(0, 245, 212, 0.4),
        0 0 0 0 rgba(0, 245, 212, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fabPulse 2s ease-in-out infinite;
}

@keyframes fabPulse {

    0%,
    100% {
        box-shadow: 0 8px 32px rgba(0, 245, 212, 0.4), 0 0 0 0 rgba(0, 245, 212, 0.4);
    }

    50% {
        box-shadow: 0 8px 32px rgba(0, 245, 212, 0.4), 0 0 0 12px rgba(0, 245, 212, 0);
    }
}

.fab-button:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 40px rgba(0, 245, 212, 0.5);
}

.fab-tooltip {
    position: absolute;
    right: 72px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fab-button:hover+.fab-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(-8px);
}

/* ========================================
   PARALLAX LAYERS
======================================== */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    will-change: transform;
    pointer-events: none;
}

.parallax-layer-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 245, 212, 0.15) 0%, transparent 70%);
    top: 10%;
    left: -10%;
    filter: blur(60px);
}

.parallax-layer-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(191, 90, 242, 0.12) 0%, transparent 70%);
    top: 60%;
    right: -5%;
    filter: blur(50px);
}

.parallax-layer-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    bottom: 20%;
    left: 30%;
    filter: blur(40px);
}

/* ========================================
   SPEEDOMETER GAUGE STYLE
======================================== */
.speedometer-gauge {
    position: relative;
    width: 240px;
    height: 140px;
    margin: 0 auto;
}

.speedometer-bg {
    position: absolute;
    width: 100%;
    height: 200%;
    border-radius: 120px 120px 0 0;
    background: conic-gradient(from 180deg,
            #ff4757 0deg,
            #ffa502 60deg,
            #ffd700 90deg,
            #00f5d4 150deg,
            #00f5d4 180deg);
    opacity: 0.2;
    overflow: hidden;
}

.speedometer-needle {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 4px;
    height: 90px;
    background: linear-gradient(to top, var(--primary), transparent);
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-90deg);
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    box-shadow: 0 0 20px var(--primary);
}

.speedometer-center {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary);
}

.speedometer-labels {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ========================================
   MINI SPARKLINE CHARTS
======================================== */
.sparkline-container {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 24px;
}

.sparkline-bar {
    width: 4px;
    background: var(--gradient-cyber);
    border-radius: 2px;
    transition: height 0.3s ease;
    min-height: 2px;
}

.sparkline-bar:hover {
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

/* ========================================
   PROGRESS TIMELINE (Story Section)
======================================== */
.timeline-progress {
    position: absolute;
    left: 40px;
    top: 200px;
    bottom: 200px;
    width: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.timeline-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: height 0.3s ease;
    box-shadow: 0 0 20px var(--primary);
}

.timeline-dot {
    position: absolute;
    left: 28px;
    width: 28px;
    height: 28px;
    background: var(--bg-dark);
    border: 3px solid var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: all 0.4s ease;
    z-index: 5;
}

.timeline-dot.active {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.4);
    transform: scale(1.1);
}

.timeline-dot.completed {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

/* Story chapter with timeline */
.story-chapter-timeline {
    position: relative;
    padding-left: 80px;
    margin-bottom: 80px;
}

/* ========================================
   INSIGHT CARDS WITH SPARKLINES
======================================== */
.insight-card-enhanced {
    position: relative;
    overflow: hidden;
}

.insight-card-enhanced .insight-sparkline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    opacity: 0.3;
}

.insight-card-enhanced:hover .insight-sparkline {
    opacity: 0.6;
}

/* ========================================
   DATA VIZ CARDS - New Charts Section
======================================== */
.dataviz-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.dataviz-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    border: var(--glass-border);
    border-radius: var(--border-radius);
    padding: 28px;
    transition: all var(--transition-smooth);
}

.dataviz-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow), 0 0 30px rgba(0, 245, 212, 0.1);
}

.dataviz-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dataviz-card h4 i {
    color: var(--primary);
}

.dataviz-chart {
    height: 200px;
}

/* ========================================
   BUDGET SCATTER PLOT
======================================== */
.scatter-container {
    position: relative;
    height: 200px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.scatter-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.7;
    transition: all 0.3s ease;
    cursor: pointer;
}

.scatter-dot:hover {
    transform: scale(1.5);
    opacity: 1;
    box-shadow: 0 0 15px var(--primary);
}

.scatter-dot.fail {
    background: var(--danger);
}

.scatter-dot.success {
    background: var(--success);
}

/* ========================================
   GENRE HEATMAP
======================================== */
.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.heatmap-cell {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.heatmap-cell:hover {
    transform: scale(1.08);
    z-index: 5;
}

.heatmap-cell-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-darker);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.heatmap-cell:hover .heatmap-cell-tooltip {
    opacity: 1;
}

/* ========================================
   MONTHLY TIMELINE CHART
======================================== */
.monthly-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 160px;
    padding: 0 8px;
    gap: 8px;
}

.month-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px 6px 0 0;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.month-bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-cyber);
    border-radius: 6px 6px 0 0;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.month-bar:hover {
    transform: scaleX(1.1);
}

.month-bar:hover .month-bar-fill {
    box-shadow: 0 0 20px var(--primary);
}

.month-label {
    position: absolute;
    bottom: -24px;
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.month-value {
    position: absolute;
    top: -20px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.month-bar:hover .month-value {
    opacity: 1;
}

/* Golden months highlight */
.month-bar.golden .month-bar-fill {
    background: var(--gradient-gold);
}

.month-bar.golden::before {
    content: '⭐';
    position: absolute;
    top: -35px;
    font-size: 0.8rem;
}

/* ========================================
   LIVE STATUS INDICATORS
======================================== */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-radius: 50px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--primary);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.processing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
}

.processing-dots {
    display: flex;
    gap: 4px;
}

.processing-dots span {
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    animation: processingBounce 1.4s ease-in-out infinite;
}

.processing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.processing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes processingBounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-8px);
    }
}

/* ========================================
   COMPARISON BAR CHART (Your Movie vs Avg)
======================================== */
.comparison-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comparison-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comparison-label {
    width: 80px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
}

.comparison-bar-container {
    flex: 1;
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.comparison-bar-yours {
    position: absolute;
    top: 0;
    left: 0;
    height: 50%;
    background: var(--gradient-cyber);
    border-radius: 12px 12px 0 0;
    transition: width 1s ease-out;
}

.comparison-bar-avg {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 50%;
    background: rgba(255, 215, 0, 0.4);
    border-radius: 0 0 12px 12px;
    transition: width 1s ease-out;
}

.comparison-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    font-size: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

.legend-dot.yours {
    background: var(--gradient-cyber);
}

.legend-dot.avg {
    background: rgba(255, 215, 0, 0.6);
}

@media (max-width: 768px) {
    .fab-container {
        bottom: 20px;
        right: 20px;
    }

    .fab-button {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }

    .dataviz-grid {
        grid-template-columns: 1fr;
    }

    .timeline-progress,
    .timeline-dot {
        display: none;
    }

    .story-chapter-timeline {
        padding-left: 0;
    }

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