/* OG-AI Epic Styling - Fire, Smoke, Robots Edition */

:root {
    --fire-orange: #ff6b00;
    --fire-red: #ff0000;
    --neon-blue: #00d9ff;
    --neon-purple: #b900ff;
    --dark-bg: #0a0a0a;
    --smoke-gray: #2a2a2a;
    --robot-metal: #4a5568;
}

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

body {
    font-family: 'Orbitron', 'Segoe UI', sans-serif;
    background:
        linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(26,26,46,0.85) 50%, rgba(0,0,0,0.9) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><rect fill="%23000" width="1920" height="1080"/><circle cx="200" cy="200" r="150" fill="%23ff6b00" opacity="0.1"/><circle cx="1600" cy="800" r="200" fill="%2300d9ff" opacity="0.1"/><circle cx="900" cy="400" r="180" fill="%23b900ff" opacity="0.1"/><polygon points="400,100 500,300 300,300" fill="%23ff0000" opacity="0.05"/><polygon points="1500,600 1650,900 1350,900" fill="%2300ff00" opacity="0.05"/></svg>');
    background-attachment: fixed;
    background-size: cover;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background - EPIC VERSION */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 107, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(185, 0, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 217, 255, 0.12) 0%, transparent 50%);
    animation: bgPulse 10s ease-in-out infinite;
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 100px,
        rgba(0, 217, 255, 0.03) 100px,
        rgba(0, 217, 255, 0.03) 200px
    );
    animation: gridMove 30s linear infinite;
    pointer-events: none;
}

.animated-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 107, 0, 0.1),
        rgba(0, 217, 255, 0.1),
        rgba(185, 0, 255, 0.1),
        transparent
    );
    animation: energyWave 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

@keyframes energyWave {
    0% { left: -100%; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* Floating Energy Orbs */
.energy-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    opacity: 0.6;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.4), transparent);
    top: 10%;
    left: 10%;
    animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.4), transparent);
    top: 60%;
    right: 15%;
    animation: orbFloat2 18s ease-in-out infinite;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(185, 0, 255, 0.4), transparent);
    bottom: 20%;
    left: 20%;
    animation: orbFloat3 22s ease-in-out infinite;
}

.orb-4 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 0, 100, 0.3), transparent);
    top: 40%;
    right: 30%;
    animation: orbFloat4 16s ease-in-out infinite;
}

.orb-5 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(0, 255, 200, 0.3), transparent);
    bottom: 40%;
    right: 10%;
    animation: orbFloat5 24s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -50px) scale(1.2); }
    66% { transform: translate(-50px, 100px) scale(0.9); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-80px, 80px) scale(1.1); }
    66% { transform: translate(60px, -60px) scale(0.95); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(120px, -80px) scale(1.15); }
}

@keyframes orbFloat4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-100px, 70px) scale(1.2); }
}

@keyframes orbFloat5 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(70px, -90px) scale(0.9); }
    75% { transform: translate(-90px, 50px) scale(1.1); }
}

/* Fire Effect */
.fire-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--fire-orange);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--fire-orange), 0 0 20px var(--fire-red);
    animation: fireRise 3s ease-in infinite;
    opacity: 0;
}

@keyframes fireRise {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-200px) scale(0.5);
    }
}

/* Smoke Effect */
.smoke-particle {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: smokeDrift 8s ease-in-out infinite;
    opacity: 0;
}

@keyframes smokeDrift {
    0% {
        opacity: 0.3;
        transform: translateY(0) translateX(0) scale(0.5);
    }
    50% {
        opacity: 0.1;
    }
    100% {
        opacity: 0;
        transform: translateY(-300px) translateX(100px) scale(1.5);
    }
}

/* EXPLOSION EFFECTS - GANGSTER SHIT */
.explosion-particle {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
}

@keyframes explosion {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
        box-shadow:
            0 0 0 0 rgba(255, 107, 0, 0.7),
            0 0 0 0 rgba(255, 0, 0, 0.5);
    }
    25% {
        transform: scale(1.5) rotate(90deg);
        opacity: 0.8;
        box-shadow:
            0 0 50px 30px rgba(255, 107, 0, 0.5),
            0 0 100px 60px rgba(255, 0, 0, 0.3);
    }
    50% {
        transform: scale(2) rotate(180deg);
        opacity: 0.5;
        box-shadow:
            0 0 100px 50px rgba(255, 107, 0, 0.3),
            0 0 150px 80px rgba(255, 255, 0, 0.2);
    }
    75% {
        transform: scale(2.5) rotate(270deg);
        opacity: 0.2;
    }
    100% {
        transform: scale(3) rotate(360deg);
        opacity: 0;
        box-shadow:
            0 0 150px 100px transparent,
            0 0 200px 120px transparent;
    }
}

.explosion-particle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle,
        rgba(255, 255, 0, 0.9) 0%,
        rgba(255, 107, 0, 0.7) 30%,
        rgba(255, 0, 0, 0.5) 60%,
        rgba(139, 0, 0, 0.3) 80%,
        transparent 100%
    );
    border-radius: 50%;
    animation: explosionCore 0.6s ease-out;
}

@keyframes explosionCore {
    0% { transform: scale(0); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

/* Lightning Bolts */
.lightning-bolt {
    position: absolute;
    width: 3px;
    height: 200px;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(0, 217, 255, 1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 10px #00d9ff, 0 0 20px #00d9ff;
}

@keyframes lightning {
    0%, 100% { opacity: 0; }
    10%, 30%, 50% { opacity: 1; }
    20%, 40%, 60% { opacity: 0; }
}

/* Header */
.epic-header {
    background: linear-gradient(135deg, rgba(255,107,0,0.1) 0%, rgba(185,0,255,0.1) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--neon-blue);
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,217,255,0.3);
}

.epic-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,217,255,0.3), transparent);
    animation: scanline 3s linear infinite;
}

@keyframes scanline {
    0% { left: -100%; }
    100% { left: 100%; }
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.robot-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    animation: robotBounce 2s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(0,217,255,0.6);
    position: relative;
}

.robot-icon::after {
    content: '🤖';
    filter: drop-shadow(0 0 10px var(--neon-blue));
}

@keyframes robotBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

h1 {
    font-size: 3em;
    background: linear-gradient(45deg, var(--fire-orange), var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255,107,0,0.5);
    font-weight: 900;
    letter-spacing: 3px;
}

@keyframes titleGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.tagline {
    font-size: 1.2em;
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 10px 0;
    animation: pulse 2s ease-in-out infinite;
}

/* Features Section - EPIC 3D VERSION */
.features-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 25px;
    background: linear-gradient(180deg, rgba(0,0,0,0.8), rgba(26,26,46,0.8));
    border-bottom: 2px solid var(--neon-purple);
    position: relative;
    overflow: hidden;
}

.features-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(0,217,255,0.1),
        transparent
    );
    animation: featuresScan 4s linear infinite;
}

@keyframes featuresScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.feature-badge {
    position: relative;
    background: linear-gradient(145deg,
        rgba(255,107,0,0.3),
        rgba(185,0,255,0.3),
        rgba(0,217,255,0.3)
    );
    border: 3px solid transparent;
    background-clip: padding-box;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.95em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow:
        0 8px 32px rgba(0,0,0,0.3),
        inset 0 1px 1px rgba(255,255,255,0.2),
        0 0 20px rgba(0,217,255,0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: perspective(1000px) rotateX(0deg) translateZ(0px);
    transform-style: preserve-3d;
}

.feature-badge::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 30px;
    padding: 3px;
    background: linear-gradient(135deg,
        var(--fire-orange),
        var(--neon-blue),
        var(--neon-purple)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderRotate 3s linear infinite;
    opacity: 0.8;
}

@keyframes borderRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.feature-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
        rgba(255,255,255,0.3) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s;
    transform: rotate(0deg);
}

.feature-badge:hover {
    transform: perspective(1000px) rotateX(10deg) translateZ(20px) scale(1.1);
    box-shadow:
        0 15px 50px rgba(0,217,255,0.6),
        inset 0 2px 2px rgba(255,255,255,0.3),
        0 0 40px rgba(255,107,0,0.5);
    border-color: var(--fire-orange);
}

.feature-badge:hover::after {
    opacity: 1;
    animation: shine 0.8s ease-in-out;
}

@keyframes shine {
    0% { transform: rotate(0deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: rotate(180deg); opacity: 0; }
}

.feature-badge:active {
    transform: perspective(1000px) rotateX(5deg) translateZ(10px) scale(1.05);
}

.feature-badge.badge-active {
    animation: badgeActivate 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 0 50px currentColor,
        0 0 100px currentColor,
        inset 0 0 20px rgba(255,255,255,0.5);
}

@keyframes badgeActivate {
    0% {
        transform: perspective(1000px) rotateX(0deg) translateZ(0px) scale(1);
    }
    50% {
        transform: perspective(1000px) rotateX(20deg) translateZ(40px) scale(1.3);
        box-shadow:
            0 0 80px currentColor,
            0 0 120px currentColor;
    }
    100% {
        transform: perspective(1000px) rotateX(0deg) translateZ(0px) scale(1);
    }
}

/* Feature Icons - ANIMATED */
.feature-icon {
    font-size: 1.8em;
    filter: drop-shadow(0 0 10px currentColor);
    position: relative;
    z-index: 1;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-5px) rotate(-5deg) scale(1.1);
    }
    50% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    75% {
        transform: translateY(-3px) rotate(5deg) scale(1.05);
    }
}

.feature-badge:hover .feature-icon {
    animation: iconSpin 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 0 20px currentColor);
}

@keyframes iconSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.3); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Individual badge colors and special effects */
.feature-badge:nth-child(1) {
    --badge-color: var(--fire-orange);
}

.feature-badge:nth-child(1) .feature-icon {
    animation-delay: 0s;
    color: var(--fire-orange);
}

.feature-badge:nth-child(2) {
    --badge-color: var(--neon-blue);
}

.feature-badge:nth-child(2) .feature-icon {
    animation-delay: 0.2s;
    color: var(--neon-blue);
}

.feature-badge:nth-child(3) {
    --badge-color: var(--neon-purple);
}

.feature-badge:nth-child(3) .feature-icon {
    animation-delay: 0.4s;
    color: var(--neon-purple);
}

.feature-badge:nth-child(4) {
    --badge-color: #0ff;
}

.feature-badge:nth-child(4) .feature-icon {
    animation-delay: 0.6s;
    color: #0ff;
}

.feature-badge:nth-child(5) {
    --badge-color: #ff0;
}

.feature-badge:nth-child(5) .feature-icon {
    animation-delay: 0.8s;
    color: #ff0;
}

.feature-badge:nth-child(6) {
    --badge-color: #f0f;
}

.feature-badge:nth-child(6) .feature-icon {
    animation-delay: 1s;
    color: #f0f;
}

.feature-badge:nth-child(7) {
    --badge-color: #0f0;
}

.feature-badge:nth-child(7) .feature-icon {
    animation-delay: 1.2s;
    color: #0f0;
}

.feature-badge:nth-child(8) {
    --badge-color: var(--fire-red);
}

.feature-badge:nth-child(8) .feature-icon {
    animation-delay: 1.4s;
    color: var(--fire-red);
}

/* Particle effect on hover */
.feature-badge:hover {
    animation: badgePulse 1s ease-in-out;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow:
            0 15px 50px rgba(0,217,255,0.6),
            inset 0 2px 2px rgba(255,255,255,0.3);
    }
    50% {
        box-shadow:
            0 15px 50px rgba(255,107,0,0.8),
            inset 0 2px 2px rgba(255,255,255,0.5),
            0 0 60px rgba(0,217,255,0.8);
    }
}

/* SVG Icon Styles - ENHANCED GLOWS */
.feature-icon-svg {
    width: 40px;
    height: 40px;
    margin-right: 8px;
    filter: drop-shadow(0 0 8px currentColor) drop-shadow(0 0 12px currentColor);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.feature-badge:hover .feature-icon-svg {
    filter:
        drop-shadow(0 0 15px currentColor)
        drop-shadow(0 0 25px currentColor)
        drop-shadow(0 0 35px currentColor);
    transform: scale(1.2) rotate(5deg);
    animation: iconPulseGlow 1.5s ease-in-out infinite;
}

/* Individual Badge Icon Glows */
.badge-voice .feature-icon-svg {
    color: #ff6b00;
    filter:
        drop-shadow(0 0 8px #ff6b00)
        drop-shadow(0 0 12px #ff6b00)
        drop-shadow(0 4px 8px rgba(255, 107, 0, 0.5));
}

.badge-speaker .feature-icon-svg {
    color: #00d9ff;
    filter:
        drop-shadow(0 0 8px #00d9ff)
        drop-shadow(0 0 12px #00d9ff)
        drop-shadow(0 4px 8px rgba(0, 217, 255, 0.5));
}

.badge-transcribe .feature-icon-svg {
    color: #b900ff;
    filter:
        drop-shadow(0 0 8px #b900ff)
        drop-shadow(0 0 12px #b900ff)
        drop-shadow(0 4px 8px rgba(185, 0, 255, 0.5));
}

.badge-web .feature-icon-svg {
    color: #00ff64;
    filter:
        drop-shadow(0 0 8px #00ff64)
        drop-shadow(0 0 12px #00ff64)
        drop-shadow(0 4px 8px rgba(0, 255, 100, 0.5));
}

.badge-code .feature-icon-svg {
    color: #00ffff;
    filter:
        drop-shadow(0 0 8px #00ffff)
        drop-shadow(0 0 12px #00ffff)
        drop-shadow(0 4px 8px rgba(0, 255, 255, 0.5));
}

.badge-personality .feature-icon-svg {
    color: #ffc800;
    filter:
        drop-shadow(0 0 8px #ffc800)
        drop-shadow(0 0 12px #ffc800)
        drop-shadow(0 4px 8px rgba(255, 200, 0, 0.5));
}

.badge-brain .feature-icon-svg {
    color: #ff00ff;
    filter:
        drop-shadow(0 0 8px #ff00ff)
        drop-shadow(0 0 12px #ff00ff)
        drop-shadow(0 4px 8px rgba(255, 0, 255, 0.5));
}

.badge-fire .feature-icon-svg {
    color: #ff3300;
    filter:
        drop-shadow(0 0 8px #ff3300)
        drop-shadow(0 0 12px #ff3300)
        drop-shadow(0 4px 8px rgba(255, 51, 0, 0.5));
}

@keyframes iconPulseGlow {
    0%, 100% {
        filter:
            drop-shadow(0 0 15px currentColor)
            drop-shadow(0 0 25px currentColor);
    }
    50% {
        filter:
            drop-shadow(0 0 25px currentColor)
            drop-shadow(0 0 40px currentColor)
            drop-shadow(0 0 55px currentColor);
    }
}

.feature-badge > span {
    position: relative;
    z-index: 2;
}

/* Animated Background Patterns for Each Badge */
.badge-voice {
    background: linear-gradient(145deg,
        rgba(255,107,0,0.3),
        rgba(255,0,100,0.3)
    );
    position: relative;
    overflow: hidden;
}

.badge-voice::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,107,0,0.1) 10px,
        rgba(255,107,0,0.1) 20px
    );
    animation: patternMove 20s linear infinite;
    pointer-events: none;
}

.badge-speaker {
    background: linear-gradient(145deg,
        rgba(0,217,255,0.3),
        rgba(0,150,255,0.3)
    );
    position: relative;
    overflow: hidden;
}

.badge-speaker::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 15px,
        rgba(0,217,255,0.2) 15px,
        rgba(0,217,255,0.2) 30px
    );
    animation: waveMove 3s linear infinite;
    pointer-events: none;
}

.badge-transcribe {
    background: linear-gradient(145deg,
        rgba(185,0,255,0.3),
        rgba(150,0,255,0.3)
    );
    position: relative;
    overflow: hidden;
}

.badge-transcribe::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        135deg,
        transparent,
        transparent 8px,
        rgba(185,0,255,0.15) 8px,
        rgba(185,0,255,0.15) 16px
    );
    animation: patternMove 15s linear infinite reverse;
    pointer-events: none;
}

.badge-web {
    background: linear-gradient(145deg,
        rgba(0,255,100,0.3),
        rgba(0,200,150,0.3)
    );
    position: relative;
    overflow: hidden;
}

.badge-web::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 12px,
            rgba(0,255,100,0.1) 12px,
            rgba(0,255,100,0.1) 13px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 12px,
            rgba(0,255,100,0.1) 12px,
            rgba(0,255,100,0.1) 13px
        );
    animation: gridRotate 30s linear infinite;
    pointer-events: none;
}

.badge-code {
    background: linear-gradient(145deg,
        rgba(0,255,255,0.3),
        rgba(0,200,255,0.3)
    );
    position: relative;
    overflow: hidden;
}

.badge-code::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 5px,
        rgba(0,255,255,0.15) 5px,
        rgba(0,255,255,0.15) 10px
    );
    animation: codeScroll 5s linear infinite;
    pointer-events: none;
}

.badge-personality {
    background: linear-gradient(145deg,
        rgba(255,200,0,0.3),
        rgba(255,150,0,0.3)
    );
    position: relative;
    overflow: hidden;
}

.badge-personality::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255,200,0,0.2) 10%,
        transparent 10%,
        transparent 20%,
        rgba(255,200,0,0.1) 20%,
        rgba(255,200,0,0.1) 30%,
        transparent 30%
    );
    background-size: 50px 50px;
    animation: dotPulse 4s linear infinite;
    pointer-events: none;
}

.badge-brain {
    background: linear-gradient(145deg,
        rgba(255,0,255,0.3),
        rgba(200,0,255,0.3)
    );
    position: relative;
    overflow: hidden;
}

.badge-brain::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: repeating-radial-gradient(
        circle,
        transparent,
        transparent 20px,
        rgba(255,0,255,0.1) 20px,
        rgba(255,0,255,0.1) 40px
    );
    animation: brainPulse 8s ease-in-out infinite;
    pointer-events: none;
}

.badge-fire {
    background: linear-gradient(145deg,
        rgba(255,100,0,0.3),
        rgba(255,0,0,0.3)
    );
    position: relative;
    overflow: hidden;
}

.badge-fire::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 10px,
        rgba(255,100,0,0.2) 10px,
        rgba(255,100,0,0.2) 20px
    );
    animation: fireRise 3s linear infinite;
    pointer-events: none;
}

/* Animation Keyframes for Badge Backgrounds */
@keyframes patternMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(360deg); }
}

@keyframes waveMove {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes gridRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes codeScroll {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes dotPulse {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.5) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

@keyframes brainPulse {
    0%, 100% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.2) translate(20px, 20px); }
}

@keyframes fireRise {
    0% { bottom: -50%; opacity: 0.5; }
    100% { bottom: 100%; opacity: 0; }
}

/* Chat Container */
.chat-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.chat-container {
    background: rgba(10,10,10,0.8);
    border: 2px solid var(--neon-blue);
    border-radius: 30px;
    overflow: hidden;
    box-shadow:
        0 0 50px rgba(0,217,255,0.3),
        inset 0 0 50px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

/* Avatar Section */
.avatar-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255,107,0,0.1), rgba(185,0,255,0.1));
    border-bottom: 2px solid var(--neon-purple);
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--neon-blue);
    background: linear-gradient(135deg, var(--robot-metal), var(--dark-bg));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    animation: avatarPulse 3s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(0,217,255,0.6);
    position: relative;
    overflow: hidden;
}

.avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: avatarShine 3s linear infinite;
}

@keyframes avatarPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(0,217,255,0.6); }
    50% { transform: scale(1.05); box-shadow: 0 0 60px rgba(185,0,255,0.8); }
}

@keyframes avatarShine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.user-avatar {
    border-color: var(--fire-orange);
}

.ai-avatar {
    border-color: var(--neon-purple);
}

.ai-status {
    flex: 1;
    text-align: center;
}

.status-indicator {
    display: inline-block;
    width: 15px;
    height: 15px;
    background: #0f0;
    border-radius: 50%;
    animation: statusBlink 2s ease-in-out infinite;
    box-shadow: 0 0 20px #0f0;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Messages */
.messages-area {
    height: 500px;
    overflow-y: auto;
    padding: 30px;
    background: rgba(0,0,0,0.3);
}

.message {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    animation: messageSlide 0.5s ease-out;
}

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

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message.user .message-avatar {
    background: linear-gradient(135deg, var(--fire-orange), var(--fire-red));
    box-shadow: 0 0 20px rgba(255,107,0,0.5);
}

.message.ai .message-avatar {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    box-shadow: 0 0 20px rgba(0,217,255,0.5);
}

.message-content {
    max-width: 70%;
    padding: 15px 20px;
    border-radius: 20px;
    position: relative;
}

.message.user .message-content {
    background: linear-gradient(135deg, rgba(255,107,0,0.3), rgba(255,0,0,0.3));
    border: 1px solid var(--fire-orange);
    border-bottom-right-radius: 5px;
}

.message.ai .message-content {
    background: linear-gradient(135deg, rgba(0,217,255,0.2), rgba(185,0,255,0.2));
    border: 1px solid var(--neon-blue);
    border-bottom-left-radius: 5px;
}

.message-text {
    margin-bottom: 5px;
    line-height: 1.6;
}

.message-time {
    font-size: 0.75em;
    opacity: 0.7;
}

/* Voice Controls */
.voice-controls {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(0,0,0,0.5);
    border-top: 1px solid var(--neon-blue);
    justify-content: center;
    flex-wrap: wrap;
}

.voice-btn {
    padding: 15px 30px;
    border: 2px solid var(--neon-blue);
    background: linear-gradient(135deg, rgba(0,217,255,0.2), rgba(185,0,255,0.2));
    color: #fff;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.voice-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,217,255,0.5);
    border-color: var(--fire-orange);
}

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

.voice-btn.recording {
    background: linear-gradient(135deg, rgba(255,0,0,0.3), rgba(255,107,0,0.3));
    border-color: var(--fire-red);
    animation: recordingPulse 1s ease-in-out infinite;
}

@keyframes recordingPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255,0,0,0.5); }
    50% { box-shadow: 0 0 40px rgba(255,107,0,0.8); }
}

.voice-btn.speaking {
    background: linear-gradient(135deg, rgba(0,255,0,0.3), rgba(0,217,255,0.3));
    border-color: #0f0;
    animation: speakingPulse 0.5s ease-in-out infinite;
}

@keyframes speakingPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Input Area */
.input-area {
    padding: 30px;
    background: rgba(0,0,0,0.5);
    border-top: 2px solid var(--neon-purple);
}

.input-wrapper {
    display: flex;
    gap: 15px;
}

#messageInput {
    flex: 1;
    padding: 15px 20px;
    background: rgba(10,10,10,0.8);
    border: 2px solid var(--neon-blue);
    border-radius: 25px;
    color: #fff;
    font-size: 1em;
    font-family: 'Orbitron', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

#messageInput:focus {
    border-color: var(--fire-orange);
    box-shadow: 0 0 20px rgba(0,217,255,0.3);
}

.send-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--fire-orange), var(--fire-red));
    border: none;
    border-radius: 25px;
    color: #fff;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 0 5px 20px rgba(255,107,0,0.4);
}

.send-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,107,0,0.6);
}

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

/* Scrollbar */
.messages-area::-webkit-scrollbar {
    width: 10px;
}

.messages-area::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
}

.messages-area::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-blue), var(--neon-purple));
    border-radius: 10px;
}

.messages-area::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--fire-orange), var(--fire-red));
}

/* Loading Animation */
.loading-dots {
    display: inline-block;
}

.loading-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--neon-blue);
    border-radius: 50%;
    margin: 0 3px;
    animation: dotBounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Responsive - Mobile Optimized */
@media (max-width: 768px) {
    h1 { font-size: 1.8em; letter-spacing: 1px; }

    .logo-container { gap: 10px; }
    .robot-icon { width: 60px; height: 60px; font-size: 30px; }

    .tagline { font-size: 1em; }

    .avatar-section {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .avatar {
        width: 100px;
        height: 100px;
        font-size: 50px;
    }

    .messages-area {
        height: 50vh;
        padding: 20px 15px;
    }

    .message-content {
        max-width: 85%;
        padding: 12px 16px;
        font-size: 0.95em;
    }

    .message-avatar {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .features-bar {
        gap: 8px;
        padding: 15px 10px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .feature-badge {
        padding: 8px 12px;
        font-size: 0.75em;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .feature-icon { font-size: 1.2em; }

    .voice-controls {
        padding: 15px 10px;
        gap: 10px;
    }

    .voice-btn {
        padding: 12px 20px;
        font-size: 0.85em;
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }

    .input-area { padding: 15px; }

    .input-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    #messageInput {
        width: 100%;
        padding: 14px 18px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    .send-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.95em;
    }

    .chat-wrapper {
        margin: 20px auto;
        padding: 0 10px;
    }

    .chat-container {
        border-radius: 20px;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    h1 { font-size: 1.5em; }

    .robot-icon { width: 50px; height: 50px; font-size: 25px; }

    .messages-area { height: 45vh; }

    .voice-btn {
        min-width: 120px;
        padding: 10px 15px;
        font-size: 0.8em;
    }

    .voice-btn span:last-child {
        display: none; /* Hide text, keep icon on very small screens */
    }

    .feature-badge span:last-child {
        display: none; /* Show only icons */
    }
}

/* Mobile landscape */
@media (max-width: 768px) and (orientation: landscape) {
    .messages-area { height: 35vh; }
    .avatar-section { padding: 15px; }
    .avatar { width: 80px; height: 80px; font-size: 40px; }
}

/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for mobile */
    .voice-btn, .send-btn, .feature-badge {
        min-height: 44px; /* iOS recommended touch target */
    }

    /* Disable hover effects on touch devices */
    .voice-btn:hover,
    .send-btn:hover,
    .feature-badge:hover {
        transform: none;
    }

    /* Active state for touch feedback */
    .voice-btn:active {
        transform: scale(0.95);
        opacity: 0.8;
    }

    .send-btn:active {
        transform: scale(0.95);
    }
}

/* Glitch Effect for Title */
@keyframes glitch {
    0% { text-shadow: 2px 2px var(--fire-red), -2px -2px var(--neon-blue); }
    25% { text-shadow: -2px -2px var(--fire-red), 2px 2px var(--neon-blue); }
    50% { text-shadow: 2px -2px var(--fire-red), -2px 2px var(--neon-blue); }
    75% { text-shadow: -2px 2px var(--fire-red), 2px -2px var(--neon-blue); }
    100% { text-shadow: 2px 2px var(--fire-red), -2px -2px var(--neon-blue); }
}

h1:hover {
    animation: glitch 0.5s infinite;
}

/* OG avatar image (header + chat) */
.og-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.og-avatar-sm { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }

/* ===== OG hood/gangster theme (overrides) ===== */
body { background-color: #070707; }
.epic-header {
    background: linear-gradient(180deg, #0c0c0c, #181818);
    border-bottom: 3px solid #ffc107;
}
h1 {
    font-family: 'Rubik Spray Paint', cursive;
    font-weight: 400;
    color: #ffc107;
    letter-spacing: 2px;
    text-shadow: 3px 3px 0 #b3001b, 6px 6px 0 rgba(0,0,0,.65);
}
.tagline { font-family: 'Permanent Marker', cursive; color: #f2f2f2; letter-spacing: 1px; }
.og-avatar { border: 3px solid #ffc107; box-shadow: 0 0 18px rgba(255,193,7,.45); }
.chat-container { background: #101010; border: 2px solid #2b2b2b; }
.message.ai .message-content {
    background: #171717;
    border: 1px solid #2e2e2e;
    border-left: 4px solid #ffc107;
}
.message.user .message-content {
    background: #22060a;
    border: 1px solid #57121a;
    border-right: 4px solid #e50914;
}
.send-btn {
    background: linear-gradient(135deg, #ffc107, #ff8f00);
    color: #111;
    font-family: 'Permanent Marker', cursive;
    letter-spacing: 1px;
}
.voice-btn {
    background: linear-gradient(135deg, #e50914, #7a0c10);
    color: #fff;
    border: 2px solid #ffc107;
}
.status-indicator { background: #39ff14; box-shadow: 0 0 8px #39ff14; }

/* Code blocks: copy button + watch-him-code typing */
.code-block {
    background: #0a0a0a;
    border: 1px solid #ffc107;
    border-radius: 10px;
    margin: 10px 0;
    overflow: hidden;
}
.code-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1c1c1c;
    color: #ffc107;
    padding: 6px 10px;
    font-family: 'Share Tech Mono', monospace;
    font-size: .8em;
    letter-spacing: 1px;
}
.copy-btn {
    background: #ffc107;
    color: #111;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
}
.copy-btn:active { transform: scale(.96); }
.code-pre {
    margin: 0;
    padding: 12px;
    overflow-x: auto;
    color: #7cfc90;
    font-family: 'Share Tech Mono', monospace;
    font-size: .85em;
    line-height: 1.45;
    white-space: pre;
}
.code-pre.typing::after {
    content: '▌';
    color: #ffc107;
    animation: ogblink .7s steps(1) infinite;
}
@keyframes ogblink { 50% { opacity: 0; } }

/* ===== OG comes alive (web animation) ===== */
.og-avatar { animation: ogIdle 4.2s ease-in-out infinite; transform-origin: 50% 90%; }
.og-avatar.talking { animation: ogTalk .36s ease-in-out infinite; }
.og-avatar.listening {
    animation: ogIdle 2.2s ease-in-out infinite;
    box-shadow: 0 0 0 3px rgba(255,193,7,.9), 0 0 22px rgba(255,193,7,.65);
}
.og-avatar.nod { animation: ogNod .55s ease-in-out 1; }
@keyframes ogIdle {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-3px) rotate(-1deg) scale(1.015); }
}
@keyframes ogTalk {
    0%, 100% { transform: translateY(0) scale(1); }
    30% { transform: translateY(-4px) scale(1.03) rotate(.6deg); }
    60% { transform: translateY(1px) scale(.995); }
}
@keyframes ogNod {
    0% { transform: rotate(0deg); }
    35% { transform: rotate(3.5deg) translateY(2px); }
    70% { transform: rotate(-1.5deg); }
    100% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
    .og-avatar, .og-avatar.talking, .og-avatar.listening, .og-avatar.nod { animation: none; }
}

/* ===== OG modern chat layout (2026-10-07) =====
   Benchmarked on the top AI chat interfaces (ChatGPT / Claude / Gemini):
   a full-height app shell, one centered reading column, bubble-less AI
   replies next to a small avatar, a rounded gold-tinted bubble for the
   visitor, and a single pill composer docked at the bottom. OG's
   gold-on-dark identity, display fonts, avatar moods and code blocks
   are untouched — this section only re-lays-out the chat area. */

/* Calm the backdrop: near-black with one soft gold glow up top */
body {
    background: radial-gradient(1200px 600px at 50% -10%, rgba(255,193,7,0.07), transparent 60%), #0a0a0a;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}
.animated-bg { opacity: 0.35; }
::selection { background: rgba(255,193,7,0.35); }

/* App shell: header, then the chat card fills the rest of the screen */
.epic-header { flex: 0 0 auto; padding: 12px 16px 10px; box-shadow: none; }
.epic-header::before { display: none; }
.logo-container { gap: 12px; margin-bottom: 2px; }
.epic-header .og-avatar { width: 46px; height: 46px; }
h1 { font-size: 1.6em; }
.tagline { font-size: 0.85em; margin: 4px 0; animation: none; text-transform: none; }

.chat-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    width: 100%;
    max-width: 880px;
    margin: 14px auto;
    padding: 0 12px;
}
.chat-container {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* Slim status bar instead of the giant avatar stage */
.avatar-section {
    padding: 10px 18px;
    background: #111111;
    border-bottom: 1px solid #262626;
}
.avatar-section .avatar {
    width: 38px;
    height: 38px;
    font-size: 19px;
    border-width: 2px;
    box-shadow: 0 0 10px rgba(255,193,7,0.25);
    animation: none;
}
.avatar-section .avatar::before { display: none; }
.ai-status { text-align: left; padding-left: 4px; }
.ai-status h2 {
    font-family: 'Segoe UI', -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.ai-status p { font-size: 0.8rem; color: #a8a8a8; }
.status-indicator { width: 9px; height: 9px; }

/* Conversation column */
.messages-area {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    padding: 24px 22px;
    background: transparent;
}
.message {
    gap: 12px;
    margin-bottom: 26px;
    align-items: flex-start;
    animation: ogFadeUp 0.3s ease-out;
}
@keyframes ogFadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}
.message-avatar {
    width: 32px;
    height: 32px;
    font-size: 16px;
    margin-top: 2px;
}
.message.ai .message-avatar {
    background: #1c1c1c;
    border: 1px solid rgba(255,193,7,0.55);
    box-shadow: none;
}
.message.user .message-avatar {
    background: #2a1215;
    border: 1px solid rgba(229,9,20,0.4);
    box-shadow: none;
}
.message-content { border-radius: 18px; }
.message.ai .message-content {
    background: transparent;
    border: none;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    padding: 2px 0;
}
.message.user .message-content {
    background: rgba(255,193,7,0.12);
    border: 1px solid rgba(255,193,7,0.32);
    border-bottom-right-radius: 6px;
    flex: 0 1 auto;
    max-width: 75%;
    padding: 10px 16px;
}
.message-text {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: #ececec;
}
.message-time { font-size: 0.7em; color: #8a8a8a; opacity: 1; margin-top: 4px; }
.code-block { border-color: #3a3a3a; max-width: 100%; }

/* Composer: one rounded pill docked at the bottom (ChatGPT-style) */
.input-area {
    background: linear-gradient(180deg, rgba(16,16,16,0), #101010 30%);
    border-top: 1px solid #262626;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.input-wrapper {
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 26px;
    padding: 6px;
    gap: 8px;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-wrapper:focus-within {
    border-color: rgba(255,193,7,0.75);
    box-shadow: 0 0 0 3px rgba(255,193,7,0.15), 0 8px 24px rgba(0,0,0,0.45);
}
#messageInput {
    background: transparent;
    border: none;
    border-radius: 20px;
    padding: 10px 14px;
    font-family: 'Segoe UI', -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    box-shadow: none;
}
#messageInput:focus { border: none; box-shadow: none; }
.input-wrapper .send-btn,
.input-wrapper .voice-btn {
    padding: 9px 16px;
    font-size: 0.85rem;
    border-radius: 999px;
    letter-spacing: 0.3px;
    text-transform: none;
    box-shadow: none;
    white-space: nowrap;
}
.input-wrapper .voice-btn { border-width: 1px; }
.input-wrapper .send-btn:hover,
.input-wrapper .voice-btn:hover { transform: none; box-shadow: 0 0 0 3px rgba(255,193,7,0.18); }

/* Starter chips: quiet pills that warm up on hover */
.starter-chip { transition: background 0.2s ease, border-color 0.2s ease; }
.starter-chip:hover { background: rgba(255,193,7,0.18) !important; border-color: #ffc107 !important; }

/* Slim gold scrollbar */
.messages-area::-webkit-scrollbar { width: 8px; }
.messages-area::-webkit-scrollbar-thumb { background: #3d3d3d; }
.messages-area::-webkit-scrollbar-thumb:hover { background: #ffc107; }

@media (prefers-reduced-motion: reduce) {
    .message { animation: none; }
}

/* Phones: full-bleed app, composer wraps to two rows inside the pill */
@media (max-width: 768px) {
    h1 { font-size: 1.3em; }
    .tagline { font-size: 0.8em; }
    .chat-wrapper { margin: 0 auto; padding: 0; }
    .chat-container { border-radius: 0; border-left: none; border-right: none; }
    .messages-area { padding: 18px 14px; }
    .message { margin-bottom: 20px; }
    .message.user .message-content { max-width: 82%; }
    .input-area { padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }
    .input-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        border-radius: 22px;
        gap: 6px;
    }
    #messageInput { flex: 1 1 100%; order: -1; padding: 8px 10px; font-size: 16px; }
    .input-wrapper .send-btn,
    .input-wrapper .voice-btn {
        flex: 1 1 auto;
        width: auto;
        min-height: 42px;
        justify-content: center;
    }
}
@media (max-width: 480px) {
    .avatar-section .user-avatar { display: none; }
    .epic-header .og-avatar { width: 38px; height: 38px; }
}


/* === Round 2: 18+ age gate + labeling === */
.age-gate {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(5, 5, 5, 0.93);
    align-items: center; justify-content: center;
    padding: 20px;
}
.age-gate:not([hidden]) { display: flex; }
.age-gate[hidden] { display: none; }
.age-gate-card {
    background: #141414; border: 2px solid #ffc107; border-radius: 16px;
    max-width: 430px; width: 100%; padding: 30px 26px; text-align: center;
    box-shadow: 0 0 44px rgba(255, 193, 7, 0.25);
}
.age-badge-big {
    display: inline-block; font-size: 2em; font-weight: 900;
    color: #0a0a0a; background: #ffc107; border-radius: 12px;
    padding: 6px 18px; letter-spacing: 1px;
}
.age-gate-card h2 { color: #ffc107; margin: 16px 0 8px; }
.age-gate-card p { color: #ddd; line-height: 1.55; }
.age-gate-btn {
    display: block; width: 100%; margin-top: 14px; padding: 13px;
    border-radius: 999px; border: 2px solid #ffc107;
    background: #ffc107; color: #0a0a0a;
    font-weight: bold; font-size: 1em; cursor: pointer;
}
.age-gate-btn.secondary { background: transparent; color: #bbb; border-color: #555; }
.age-badge {
    display: inline-block; vertical-align: middle;
    background: #ffc107; color: #0a0a0a;
    font-size: 0.45em; font-weight: 900;
    border-radius: 6px; padding: 2px 7px; margin-left: 8px;
    letter-spacing: 0.5px;
}
.age-footer { text-align: center; color: #999; font-size: 0.8em; padding: 8px 12px 12px; }

/* ================================================================
   ROUND 24 REPAIRS (2026-10-08) — appended to static/styles.css.
   Composer flex-squeeze, voice feedback, avatar life. Selectors use
   element+class+id specificity (1,1,1) so they outrank both this
   sheet's older composer rules and the page's inline restyle block.
   ================================================================ */

/* The three action buttons: fixed-size round, at EVERY width.
   flex:none + explicit width/height — they can never grow, stretch,
   or balloon again. */
.input-wrapper button#voiceNoteBtn,
.input-wrapper button#voiceBtn,
.input-wrapper button#sendBtn {
    flex: 0 0 auto;
    width: 42px; height: 42px;
    min-width: 42px; max-width: 42px;
    min-height: 42px; max-height: 42px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
}
.input-wrapper button#voiceNoteBtn svg,
.input-wrapper button#voiceBtn svg,
.input-wrapper button#sendBtn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.input-wrapper input#messageInput::placeholder { color: #9d9d9d; opacity: 1; }

/* Visible status line right over the composer. The original
   #status-text lives inside the slide-over menu, so every voice
   message (recording, mic blocked, voice on) was invisible. */
.og-status-line {
    margin: 6px 2px 0;
    min-height: 1em;
    font-size: 12.5px;
    color: #bdbdbd;
    text-align: left;
}
.input-wrapper.og-recording {
    box-shadow: 0 0 0 2px rgba(229, 9, 20, .8), 0 0 18px rgba(229, 9, 20, .45);
}

/* Speaker button on every OG reply — a real tap, so mobile browsers
   let the /tts audio actually play. */
.og-speak-btn {
    margin-top: 6px;
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 193, 7, .55);
    background: rgba(255, 193, 7, .10);
    color: #ffc107;
    font-size: 14px; line-height: 1;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.og-speak-btn:active { transform: scale(.92); }

/* Avatar, alive: breathing + simulated blinks at idle, a hard glare
   while thinking, a bounce locked to actual speech, a gold listening
   glow, a nod, and a win flare. The big avatar hides once the chat
   starts, so the reply avatars (img.og-avatar-sm) run the same states
   off body mood classes. */
@keyframes ogIdle2 {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); filter: brightness(1); }
    8% { transform: translateY(-1px) rotate(-.6deg) scale(1.004); filter: brightness(.66); }
    10% { transform: translateY(-1px) rotate(-.6deg) scale(1.004); filter: brightness(1); }
    46% { transform: translateY(-3px) rotate(1.1deg) scale(1.012); filter: brightness(1); }
    54% { transform: translateY(-3px) rotate(1.1deg) scale(1.012); filter: brightness(.68); }
    56% { transform: translateY(-3px) rotate(1.1deg) scale(1.012); filter: brightness(1); }
    78% { transform: translateY(-1px) rotate(-1deg); }
}
@keyframes ogThink2 {
    0%, 100% { transform: rotate(-2.4deg) scale(1.03); filter: brightness(1.14) contrast(1.12); }
    50% { transform: rotate(2.4deg) scale(1.05); filter: brightness(1.22) contrast(1.18); }
}
@keyframes ogTalk2 {
    0%, 100% { transform: translateY(0) scale(1); }
    30% { transform: translateY(-3.5px) scale(1.045); }
    60% { transform: translateY(.5px) scale(.995); }
    80% { transform: translateY(-2px) scale(1.03); }
}
@keyframes ogNod2 {
    0% { transform: translateY(0) rotate(0deg); }
    35% { transform: translateY(4px) rotate(2.2deg) scale(1.03); }
    70% { transform: translateY(-1px) rotate(-1deg); }
    100% { transform: translateY(0) rotate(0deg); }
}
@keyframes ogWin2 {
    0% { transform: scale(1) rotate(0deg); filter: brightness(1); }
    30% { transform: scale(1.13) rotate(-3deg); filter: brightness(1.3); }
    55% { transform: scale(1.08) rotate(2.6deg); filter: brightness(1.22); }
    100% { transform: scale(1) rotate(0deg); filter: brightness(1); }
}
img.og-avatar { animation: ogIdle2 4.8s ease-in-out infinite; will-change: transform, filter; }
img.og-avatar.thinking { animation: ogThink2 1.1s ease-in-out infinite; }
img.og-avatar.talking { animation: ogTalk2 .38s ease-in-out infinite; }
img.og-avatar.listening { animation: ogIdle2 2.4s ease-in-out infinite; box-shadow: 0 0 0 3px rgba(255, 193, 7, .85), 0 0 26px rgba(255, 193, 7, .55); }
img.og-avatar.nod { animation: ogNod2 .6s ease-in-out 1; }
img.og-avatar.win { animation: ogWin2 .9s ease-in-out 1; }
img.og-avatar-sm { animation: ogIdle2 5.6s ease-in-out infinite; }
body.og-mood-thinking img.og-avatar-sm { animation: ogThink2 1.1s ease-in-out infinite; }
body.og-mood-talking img.og-avatar-sm { animation: ogTalk2 .38s ease-in-out infinite; }
body.og-mood-listening img.og-avatar-sm { box-shadow: 0 0 0 2px rgba(255, 193, 7, .8), 0 0 14px rgba(255, 193, 7, .5); }
body.og-mood-win img.og-avatar-sm { animation: ogWin2 .9s ease-in-out 1; }
@media (prefers-reduced-motion: reduce) {
    img.og-avatar, img.og-avatar-sm,
    img.og-avatar.thinking, img.og-avatar.talking, img.og-avatar.listening,
    img.og-avatar.nod, img.og-avatar.win,
    body.og-mood-thinking img.og-avatar-sm, body.og-mood-talking img.og-avatar-sm,
    body.og-mood-win img.og-avatar-sm { animation: none !important; }
}

/* Phone composer (<=768px), built against the reproduced failure
   (input crushed to ~55-70px, voice-note button ballooned to ~135px,
   Talk stretched ~130x35): one nowrap row, the field keeps flex
   priority with a hard min-width and a real visible field treatment;
   buttons stay 42px circles. */
@media (max-width: 768px) {
    .input-wrapper { flex-wrap: nowrap; gap: 6px; align-items: center; }
    .input-wrapper input#messageInput {
        flex: 1 1 auto;
        min-width: 120px;
        background: #232323;
        border: 1px solid #4d4d4d;
        border-radius: 14px;
        padding: 10px 12px;
        font-size: 16px;
        color: #fff;
    }
    .input-wrapper input#messageInput:focus { border-color: #ffc107; outline: none; }
    .input-wrapper input#messageInput::placeholder { color: #b5b5b5; opacity: 1; }
    .input-wrapper button#plusBtn { flex: 0 0 auto; width: 38px; height: 38px; min-height: 0; }
}
