/* ============================================================================
   POLOLABS V270 - GLASS EMBER EDITION
   CSS con paleta naranja cálida y efectos glass premium
   ============================================================================ */

:root {
    /* Colores principales PoloLabs — Home Edition */
    --polo-neon: #FF6B2B;
    --polo-neon-dark: #E05520;
    --polo-dark: #121212;
    --polo-darker: #0A0A0A;
    --magic-accent: #FF3D00;
    --magenta: #FF2D78;
    
    /* Modo oscuro (default) */
    --bg-primary: #0A0A0A;
    --bg-secondary: #111111;
    --bg-tertiary: #1A1A1A;
    --text-main: #F2F0ED;
    --text-secondary: rgba(255,255,255,0.5);
    --accent: var(--polo-neon);
    --accent-glow: rgba(255, 107, 43, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Efectos */
    --blur: 40px;
    --blur-amount: 30px;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --radius: 14px;
}

/* Modo claro */
body.light-mode {
    --bg-primary: #FBF8F5;
    --bg-secondary: #F5EDE6;
    --bg-tertiary: #EEE4DA;
    --text-main: #1A1614;
    --text-secondary: rgba(26, 22, 20, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(0, 0, 0, 0.08);
    --accent-glow: rgba(255, 107, 43, 0.2);
}

body.light-mode {
    background: var(--bg-primary);
}

body.light-mode::before {
    background: radial-gradient(ellipse, rgba(255,107,43,0.08) 0%, transparent 65%);
}

body.light-mode::after {
    background: radial-gradient(ellipse, rgba(255,45,120,0.05) 0%, transparent 65%);
}

/* ============================================================================
   BASE STYLES CON DEGRADADO ANIMADO
   ============================================================================ */

body {
    margin: 0;
    padding: 40px 20px;
    font-family: 'Sora', sans-serif; 
    color: var(--text-main);
    min-height: 100vh;
    transition: background 0.8s var(--transition-smooth);
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    
    background: var(--bg-primary);
}

/* Animated orb glow */
body::before {
    content: '';
    position: fixed;
    top: -30%;
    left: -20%;
    width: 70%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(255,107,43,0.15) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
    animation: orbDrift1 14s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    bottom: -30%;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(255,45,120,0.10) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
    animation: orbDrift2 16s ease-in-out infinite alternate;
}

@keyframes orbDrift1 { 
    0% { transform: translate(0,0) scale(1); } 
    100% { transform: translate(5vw, 4vh) scale(1.15); } 
}
@keyframes orbDrift2 { 
    0% { transform: translate(0,0) scale(1); } 
    100% { transform: translate(-4vw, -3vh) scale(1.1); } 
}

* { 
    box-sizing: border-box; 
    outline: none; 
}

/* ============================================================================
   OCULTAR BADGE VIEJO
   ============================================================================ */

/* Ocultar el badge viejo de la esquina */
.site-header__badge,
.header-badge,
div[style*="BETA GRATUITA"],
div[style*="PROMPTS GRATIS HOY"],
#usage-counter,
.usage-badge {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* ============================================================================
   SCROLLBAR
   ============================================================================ */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { 
    background: transparent; 
}
::-webkit-scrollbar-thumb { 
    background: rgba(255, 255, 255, 0.08); 
    border-radius: 6px; 
}
::-webkit-scrollbar-thumb:hover { 
    background: rgba(255, 107, 43, 0.3); 
}

/* ============================================================================
   MAIN CONTAINER CON GLASS EFFECT MEJORADO
   ============================================================================ */

#polo-app {
    max-width: 1500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 44px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

body.light-mode #polo-app {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

/* Subtle top highlight */
#polo-app::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        transparent 50%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
}

/* ============================================================================
   TYPOGRAPHY & UTILITIES
   ============================================================================ */

.text-brand {
    background: linear-gradient(135deg, var(--accent) 0%, var(--text-main) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800; 
    letter-spacing: 2px;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

::selection {
    background: var(--accent);
    color: var(--polo-darker);
}

::-moz-selection {
    background: var(--accent);
    color: var(--polo-darker);
}

/* ============================================================================
   BUTTONS CON EFECTOS MEJORADOS
   ============================================================================ */

.btn-liquid-primary {
    flex-grow: 1; 
    background: linear-gradient(135deg, var(--accent) 0%, var(--magenta) 100%);
    color: #fff; 
    border: none; 
    font-weight: 700; 
    letter-spacing: 1px;
    border-radius: var(--radius); 
    padding: 18px 30px; 
    cursor: pointer; 
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px var(--accent-glow);
    font-family: 'Sora', sans-serif;
}

.btn-liquid-primary:hover { 
    transform: translateY(-2px) scale(1.02); 
    box-shadow: 0 8px 40px var(--accent-glow);
}

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

.btn-liquid-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: none;
    opacity: 1;
    animation: btnShimmer 3s ease-in-out infinite;
}

@keyframes btnShimmer {
    0% { left: -60%; }
    50%, 100% { left: 120%; }
}

.btn-liquid-primary:hover::before {
    animation-duration: 1.5s;
}

.btn-liquid-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    color: var(--text-main); 
    border-radius: var(--radius); 
    padding: 12px 24px; 
    cursor: pointer; 
    transition: all 0.3s var(--transition-smooth); 
    font-weight: 600; 
    font-size: 11px;
    font-family: 'Sora', sans-serif;
}

.btn-liquid-glass:hover { 
    background: rgba(255, 107, 43, 0.06);
    border-color: rgba(255, 107, 43, 0.25);
    transform: translateY(-2px);
}

body.light-mode .btn-liquid-glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0,0,0,0.08);
    color: var(--text-main);
}

body.light-mode .btn-liquid-glass:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 107, 43, 0.25);
}

.btn-liquid-reset { 
    background: rgba(255, 50, 50, 0.15); 
    border: 1px solid rgba(255, 50, 50, 0.3); 
    color: #ff5555; 
    box-shadow: 0 0 20px rgba(255, 50, 50, 0.2);
}

.btn-liquid-reset:hover { 
    background: rgba(255, 50, 50, 0.3); 
    border-color: #ff2222; 
    color: #ff2222;
    box-shadow: 0 0 40px rgba(255, 30, 30, 0.7); 
    transform: scale(1.05);
}

/* ============================================================================
   MAGIC TOGGLE
   ============================================================================ */

.magic-toggle {
    width: 80px; 
    height: 70px; 
    border-radius: 18px; 
    border: 1px solid rgba(255, 60, 0, 0.2); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    cursor: pointer; 
    transition: all 0.3s var(--transition-smooth); 
    color: rgba(255, 60, 0, 0.6); 
    background: rgba(255, 60, 0, 0.05);
    backdrop-filter: blur(10px);
}

.magic-toggle:hover {
    background: rgba(255, 60, 0, 0.12); 
    border-color: rgba(255, 60, 0, 0.3); 
    color: var(--magic-accent);
    transform: scale(1.05);
}

.magic-toggle.active { 
    border-color: var(--magic-accent); 
    color: var(--magic-accent); 
    background: rgba(255, 60, 0, 0.2);
    box-shadow: 0 0 30px rgba(255, 60, 0, 0.3);
}

.seed-btn-circle {
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border); 
    display: flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer; 
    transition: all 0.3s var(--transition-smooth); 
    color: #ff5555;
}

.seed-btn-circle:hover { 
    transform: rotate(180deg) scale(1.1); 
    background: rgba(255, 107, 43, 0.08);
}

.badge-pill {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 8px 16px; 
    border-radius: 20px;
    font-size: 10px; 
    font-weight: 700; 
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}
/* ============================================================================
   INPUTS CON GLOW MEJORADO
   ============================================================================ */

input, textarea, select {
    background: transparent !important; 
    color: var(--text-main) !important; 
    border: none !important;
    font-family: 'Sora', sans-serif; 
    font-size: 16px; 
    width: 100%; 
    resize: none; 
    font-weight: 500;
}

input::placeholder, textarea::placeholder { 
    color: var(--text-secondary) !important; 
    font-weight: 300; 
    opacity: 0.7;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 43, 0.15) !important;
}

/* ============================================================================
   LAYOUT
   ============================================================================ */

.p-grid { 
    display: grid; 
    grid-template-columns: repeat(12, 1fr); 
    gap: 20px; 
    margin-top: 35px; 
    align-items: stretch; 
}

.col-full { grid-column: 1 / -1; } 
.col-hero { grid-column: span 8; } 
.col-voice { grid-column: span 4; } 
.col-half { grid-column: span 6; }

.hero-card {
    display: flex;
    flex-direction: column;
}

.hero-card .p-area,
.hero-card textarea {
    flex: 1;
    min-height: 100px;
}

.tech-grid { 
    display: grid; 
    grid-template-columns: repeat(8, 1fr); 
    gap: 14px; 
    width: 100%; 
}

/* ============================================================================
   HEADER
   ============================================================================ */

.p-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 36px; 
    border-bottom: 1px solid var(--glass-border); 
    padding-bottom: 20px; 
}

.p-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 42px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 12px rgba(255, 107, 43, 0.4));
}

.brand-sub { 
    color: rgba(255, 107, 43, 0.75); 
    font-size: 9px; 
    letter-spacing: 3.5px; 
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    line-height: 1;
    margin-top: 2px;
}

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

.mode-switch { 
    background: var(--glass-bg); 
    backdrop-filter: blur(15px);
    padding: 4px; 
    border-radius: var(--radius); 
    display: flex; 
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border: 1px solid var(--glass-border); 
}

.mode-switch::-webkit-scrollbar { display: none; }

.mode-btn { 
    padding: 9px 20px; 
    border-radius: 10px; 
    font-size: 10px; 
    font-weight: 700; 
    border: none; 
    cursor: pointer; 
    background: transparent; 
    color: var(--text-secondary); 
    transition: all 0.3s var(--transition-smooth);
    font-family: 'Sora', sans-serif;
    letter-spacing: 0.5px;
    position: relative;
    outline: none;
    -webkit-appearance: none;
    min-width: unset;
    white-space: nowrap;
    flex-shrink: 0;
}

.mode-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.mode-btn.active { 
    background: linear-gradient(135deg, rgba(255, 107, 43, 0.15), rgba(255, 0, 102, 0.08));
    color: var(--text-main); 
    border: 1px solid rgba(255, 107, 43, 0.3);
    box-shadow: 0 0 12px rgba(255, 107, 43, 0.1);
}

.mode-btn.active-img {
    background: linear-gradient(135deg, rgba(255, 138, 80, 0.15), rgba(255, 80, 120, 0.08));
    color: var(--text-main); 
    border: 1px solid rgba(255, 138, 80, 0.3);
    box-shadow: 0 0 12px rgba(255, 138, 80, 0.1);
}

body.light-mode .mode-btn.active,
body.light-mode .mode-btn.active-img {
    background: rgba(255, 107, 43, 0.12);
    box-shadow: 0 0 8px rgba(255, 107, 43, 0.08);
}

body.light-mode .brand-logo {
    content: url('https://pololabsia.com/wp-content/uploads/2026/02/LOGO-NEGRO.svg');
}

/* ============================================================================
   CARDS CON GLASS EFFECT NOTORIO
   ============================================================================ */

.p-card {
    background: var(--glass-bg); 
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--glass-border); 
    border-radius: 16px; 
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.p-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: radial-gradient(circle at center, rgba(255, 107, 43, 0.04) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s var(--transition-smooth);
    pointer-events: none;
}

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

.p-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 107, 43, 0.15);
}

body.light-mode .p-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

body.light-mode .p-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: rgba(255, 107, 43, 0.15);
}

.tech-btn {
    background: var(--glass-bg); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); 
    border-radius: 12px;
    padding: 16px; 
    cursor: pointer; 
    height: 90px; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    transition: all 0.3s var(--transition-smooth);
    position: relative;
}

/* Empty state indicator — subtle dashed border */
.tech-btn .p-val:not(.accent-vid):not(.accent-img) {
    opacity: 0.3;
}

/* Active state — when a value is set */
.tech-btn:has(.accent-vid),
.tech-btn:has(.accent-img) {
    border-color: rgba(255, 107, 43, 0.2);
    background: rgba(255, 107, 43, 0.03);
}

/* Active dot indicator */
.tech-btn:has(.accent-vid)::after,
.tech-btn:has(.accent-img)::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px rgba(255, 107, 43, 0.5);
}

.tech-btn:hover { 
    background: rgba(255, 107, 43, 0.05); 
    transform: translateY(-3px); 
    border-color: rgba(255, 107, 43, 0.2);
}

body.light-mode .tech-btn {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body.light-mode .tech-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 107, 43, 0.3);
}

body.light-mode .tech-btn .p-label {
    color: rgba(26, 22, 20, 0.6);
}

body.light-mode .tech-btn .p-val {
    color: #1A1614;
    font-weight: 600;
}

body.light-mode .tech-btn svg {
    stroke: #1A1614;
}

.p-label { 
    font-size: 9px; 
    font-weight: 600; 
    color: var(--text-secondary); 
    letter-spacing: 1.5px; 
    text-transform: uppercase; 
    margin-bottom: 6px; 
}

.p-val { 
    font-size: 12px; 
    font-weight: 500; 
    color: var(--text-main); 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.accent-vid { 
    color: var(--accent); 
    font-weight: 600;
} 

.accent-img { 
    color: #FF8A50; 
    font-weight: 600;
}

/* ============================================================================
   SCENARIO BAR
   ============================================================================ */

.scenario-bar {
    grid-column: 1 / -1; 
    background: var(--glass-bg); 
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 14px; 
    padding: 22px 28px; 
    display: flex; 
    align-items: center; 
    gap: 20px;
    cursor: pointer; 
    transition: all 0.35s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.scenario-bar::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; 
    width: 200%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 107, 43, 0.04) 25%, rgba(255, 0, 102, 0.03) 50%, transparent 75%);
    animation: scenarioShimmer 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes scenarioShimmer {
    0%, 100% { transform: translateX(-30%); }
    50% { transform: translateX(30%); }
}

.scenario-bar:hover { 
    background: rgba(255, 107, 43, 0.04); 
    border-color: rgba(255, 107, 43, 0.25); 
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

body.light-mode .scenario-bar {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-mode .scenario-bar:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 107, 43, 0.2);
}

.p-line { 
    border-bottom: 1px solid var(--glass-border) !important; 
    padding: 12px 0; 
    transition: all 0.3s var(--transition-smooth); 
}

.p-line:focus { 
    border-bottom-color: var(--accent) !important;
    box-shadow: 0 2px 10px var(--accent-glow) !important;
}

/* ============================================================================
   VOICE PILLS
   ============================================================================ */

.voice-pills { 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap; 
    margin: 15px 0; 
}

.pill {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border); 
    color: var(--text-secondary);
    padding: 10px 18px; 
    border-radius: 30px; 
    font-size: 11px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s var(--transition-smooth);
    position: relative;
}

.pill:hover { 
    border-color: rgba(255, 107, 43, 0.3); 
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pill:active {
    transform: translateY(0) scale(0.97);
}

.pill.set { 
    background: linear-gradient(135deg, rgba(255, 107, 43, 0.15), rgba(255, 0, 102, 0.08));
    border-color: rgba(255, 107, 43, 0.35); 
    color: var(--accent);
    box-shadow: 0 0 10px rgba(255, 107, 43, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.light-mode .pill {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0,0,0,0.08);
    color: var(--text-main);
}

body.light-mode .pill.set {
    background: rgba(255, 107, 43, 0.12);
}

.action-row { 
    display: flex; 
    gap: 20px; 
    margin-top: 40px; 
    align-items: center; 
}

/* ============================================================================
   MODALS
   ============================================================================ */

.modal-overlay { 
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,0.80); 
    backdrop-filter: blur(20px); 
    z-index: 99999; 
    display: none; 
    justify-content: center; 
    align-items: center; 
}

.modal-overlay.active { 
    display: flex !important; 
}

.modal-box {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    width: 95%; 
    max-width: 800px; 
    border-radius: 20px; 
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    display: flex; 
    flex-direction: column; 
    max-height: 85vh; 
    overflow: hidden;
}

.modal-head { 
    padding: 24px; 
    text-align: center; 
    font-weight: 700; 
    border-bottom: 1px solid var(--glass-border); 
    letter-spacing: 2px; 
    color: var(--text-main); 
    font-size: 11px; 
    text-transform: uppercase;
    background: rgba(255, 107, 43, 0.04);
    font-family: 'Space Mono', monospace;
}

.modal-list { 
    padding: 15px 0; 
    overflow-y: auto; 
}

.modal-opt { 
    padding: 14px 35px; 
    border-bottom: 1px solid var(--glass-border); 
    cursor: pointer; 
    color: var(--text-main); 
    font-size: 15px; 
    font-weight: 500; 
    transition: all 0.3s var(--transition-smooth); 
    display: flex; 
    flex-direction: column;
    gap: 2px; 
}

.opt-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    letter-spacing: 0.01em;
}

.opt-desc {
    font-size: 11px;
    font-weight: 300;
    color: var(--text-secondary);
    opacity: 0.55;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.modal-opt:hover { 
    background: rgba(255, 107, 43, 0.06); 
    padding-left: 42px;
    box-shadow: inset 3px 0 0 var(--accent);
}

body.light-mode .modal-opt:hover {
    background: rgba(255, 107, 43, 0.08);
}

body.light-mode .modal-box {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 30px 80px rgba(0,0,0,0.15);
}

body.light-mode .modal-head {
    background: rgba(255, 107, 43, 0.05);
    border-bottom-color: rgba(0, 0, 0, 0.06);
    color: var(--text-main);
}

body.light-mode .modal-opt {
    color: var(--text-main);
    border-bottom-color: rgba(0, 0, 0, 0.04);
}

body.light-mode .opt-desc {
    color: var(--text-secondary);
}

body.light-mode .modal-overlay {
    background: rgba(255, 255, 255, 0.7);
}

.modal-grid {
    padding: 20px; 
    overflow-y: auto;
    display: grid; 
    grid-template-columns: repeat(2, 1fr);
    gap: 12px; 
}

.scen-banner {
    width: 100%; 
    height: 120px; 
    border-radius: 14px; 
    position: relative; 
    overflow: hidden; 
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: all 0.35s var(--transition-smooth);
    display: flex; 
    align-items: flex-end; 
    justify-content: flex-start; 
    padding: 0; 
    background: var(--bg-secondary);
}

.scen-banner:hover {
    transform: scale(1.03); 
    border-color: rgba(255, 107, 43, 0.35);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 20px rgba(255, 107, 43, 0.1);
}

.banner-bg {
    position: absolute; 
    inset: 0; 
    z-index: 0;
    background-size: cover; 
    background-position: center 25%; 
    opacity: 0.5; 
    transition: all 0.5s ease;
    filter: grayscale(60%) brightness(0.8); 
}

.banner-bg::after {
    content: ''; 
    position: absolute; 
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

.scen-banner:hover .banner-bg { 
    opacity: 1; 
    filter: grayscale(0%) brightness(1); 
    transform: scale(1.08); 
}

.banner-content {
    position: relative; 
    z-index: 2; 
    text-align: left; 
    padding: 14px 16px;
    width: 100%;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.banner-cat { 
    font-size: 7px; 
    font-weight: 900; 
    letter-spacing: 2.5px; 
    color: var(--accent); 
    text-transform: uppercase; 
    margin-bottom: 3px;
    opacity: 0.9;
}

.banner-title { 
    font-size: 13px; 
    font-weight: 800; 
    color: #fff; 
    text-transform: uppercase; 
    line-height: 1.1; 
    letter-spacing: -0.3px; 
}

.banner-desc {
    font-size: 9px;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================================
   VISION BLOCK
   ============================================================================ */

.vision-block { 
    background: var(--glass-bg); 
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); 
    padding: 18px 24px; 
    border-radius: var(--radius); 
    display: flex; 
    gap: 16px; 
    align-items: center;
}

.slider-wrap { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    margin-bottom: 25px; 
}

.range-in { 
    -webkit-appearance: none; 
    width: 100%; 
    height: 8px; 
    background: var(--glass-bg); 
    border-radius: 4px; 
}

.range-in::-webkit-slider-thumb { 
    -webkit-appearance: none; 
    width: 18px; 
    height: 18px; 
    background: var(--accent); 
    border-radius: 50%; 
    cursor: pointer; 
    box-shadow: 0 0 15px var(--accent-glow); 
    transition: all 0.3s var(--transition-smooth);
}

.range-in::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 25px var(--accent-glow);
}

/* ============================================================================
   TOAST & RESULT BOX
   ============================================================================ */

#customToast { 
    display: none; 
    position: fixed; 
    top: 50px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: linear-gradient(135deg, var(--accent), var(--magenta)); 
    color: #fff; 
    padding: 12px 36px; 
    border-radius: 50px; 
    font-weight: 600; 
    z-index: 100000; 
    box-shadow: 0 8px 30px var(--accent-glow); 
    font-size: 13px;
    font-family: 'Sora', sans-serif;
}

.res-box { 
    background: var(--glass-bg); 
    backdrop-filter: blur(20px);
    padding: 28px; 
    font-family: 'Space Mono', monospace; 
    color: var(--accent); 
    height: 450px; 
    overflow-y: auto; 
    border-radius: var(--radius); 
    border: 1px solid var(--glass-border); 
    line-height: 1.7; 
    font-size: 13px;
}

/* ============================================================================
   LOGIN OVERLAY (OCULTO)
   ============================================================================ */

#loginOverlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(30px);
    z-index: 1000000; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box { 
    background: rgba(20, 20, 20, 0.95); 
    padding: 50px; 
    border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 20px; 
    text-align: center; 
    backdrop-filter: blur(20px); 
}

.login-input { 
    background: rgba(255,255,255,0.05); 
    border: 1px solid rgba(255,255,255,0.2); 
    color: white; 
    padding: 15px; 
    width: 280px; 
    text-align: center; 
    font-size: 18px; 
    border-radius: 10px; 
    margin-bottom: 25px; 
    outline: none; 
    letter-spacing: 2px; 
    font-family: 'Sora', sans-serif; 
}

.btn-login { 
    background: var(--accent); 
    color: black; 
    border: none; 
    padding: 15px 40px; 
    font-size: 14px; 
    border-radius: 30px; 
    cursor: pointer; 
    font-weight: 900; 
    letter-spacing: 1px; 
    transition: 0.3s; 
    text-transform: uppercase; 
}

.btn-login:hover { 
    transform: scale(1.05); 
    box-shadow: 0 0 30px var(--accent-glow); 
}

/* Google Login Button */
.btn-google {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: #333;
    border: none;
    padding: 14px 32px;
    font-size: 15px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    transition: all 0.3s var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.btn-google:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(255,255,255,0.2);
}

.btn-google img {
    width: 22px;
    height: 22px;
}

/* User Profile Menu (top-left) */
.polo-user {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(10,10,10,0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 8px 16px;
    z-index: 10000;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

.polo-user:hover {
    border-color: rgba(255, 107, 43, 0.25);
}

.polo-user-pic {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    object-fit: cover;
}

.polo-user-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.polo-user-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 6px;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.polo-user-menu.open {
    display: block;
}

.polo-user-menu-item {
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-main);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.polo-user-menu-item:hover {
    background: rgba(255, 50, 50, 0.15);
    color: #ff5555;
}

.polo-user-email {
    padding: 8px 16px;
    font-size: 10px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 4px;
}

@media(max-width: 768px) {
    .polo-user {
        top: 12px;
        left: 12px;
        padding: 6px 12px;
    }
    .polo-user-name {
        display: none;
    }
    .polo-user-pic {
        width: 28px;
        height: 28px;
    }
}

/* ============================================================================
   LIQUID GLASS BADGE & TOGGLE
   ============================================================================ */





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


.theme-toggle {
    position: fixed;
    top: 20px;
    right: 160px;
    z-index: 10000;
    display: none;
}

.toggle-pill {
    width: 56px;
    height: 28px;
    background: rgba(10,10,10,0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    transition: all 0.4s var(--transition-smooth);
}

.toggle-pill:hover {
    border-color: rgba(255, 107, 43, 0.25);
}

.toggle-moon, .toggle-sun {
    font-size: 14px;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.toggle-moon { opacity: 1; }
.toggle-sun { opacity: 0.4; }

.toggle-knob {
    position: absolute;
    left: 3px;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #FF6B2B, #FF8A50);
    border-radius: 50%;
    transition: transform 0.4s var(--transition-smooth);
    box-shadow: 0 2px 8px rgba(255, 107, 43, 0.4);
}

body.light-mode .toggle-pill {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .toggle-pill svg {
    stroke: #1A1614;
}

/* SVG toggle removed - using pill toggle */

/* ============================================================================
   V271: MÓDULO TRANSICIONES
   ============================================================================ */

.trans-upload-box {
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.trans-upload-box:hover {
    border-color: rgba(255, 107, 43, 0.3);
    background: rgba(255, 107, 43, 0.03);
}

.trans-upload-box.has-image {
    border-style: solid;
    border-color: rgba(255, 107, 43, 0.2);
    padding: 0;
}

.trans-preview {
    text-align: center;
    width: 100%;
}

.trans-preview img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
}

/* ============================================================================
   V271: ASISTENTE DE DESCRIPCIÓN
   ============================================================================ */

.assistant-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 107, 43, 0.08);
    border: 1px solid rgba(255, 107, 43, 0.15);
    border-radius: 12px;
    color: #FF6B2B;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

.assistant-btn:hover {
    background: rgba(255, 107, 43, 0.15);
    border-color: rgba(255, 107, 43, 0.3);
    transform: translateY(-1px);
}

.assistant-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.assistant-result {
    margin-top: 12px;
    padding: 16px;
    background: rgba(255, 107, 43, 0.04);
    border: 1px solid rgba(255, 107, 43, 0.1);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-main);
    display: none;
}

.assistant-result.visible {
    display: block;
    animation: fadeSlideIn 0.4s var(--transition-smooth);
}

.assistant-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

#polo-app .assistant-actions .btn-use-desc,
#polo-app .assistant-actions .btn-edit-desc,
#polo-app .assistant-actions .btn-retry-desc {
    padding: 10px 18px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border: none !important;
    font-family: 'Sora', sans-serif !important;
    line-height: 1.4 !important;
    text-align: center !important;
    user-select: none;
}

#polo-app .btn-use-desc {
    background: linear-gradient(135deg, #FF6B2B, #FF8A50) !important;
    color: white !important;
}

#polo-app .btn-use-desc:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(255, 107, 43, 0.3);
}

#polo-app .btn-edit-desc,
#polo-app .btn-retry-desc {
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#polo-app .btn-edit-desc:hover,
#polo-app .btn-retry-desc:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Toggle JSON/Normal global */
.format-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 10px;
}

.format-toggle-wrap .p-label {
    margin: 0;
    font-size: 10px;
}

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

/* ============================================================================
   PROMPT COLOR CODING
   ============================================================================ */

.pr-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 10px 0 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--glass-border);
}

.pr-leg-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Sora', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.pr-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

/* Dialogue — cyan/blue */
.pr-dialogue {
    color: #4FC3F7;
}

.pr-quote {
    color: #81D4FA;
    font-style: italic;
}

/* Scenario/Aesthetic header — ember orange */
.pr-scenario {
    color: #FF6B2B;
    font-weight: 500;
}

/* Scene description — main white/cream */
.pr-scene {
    color: var(--text-main);
    opacity: 0.9;
}

/* Technical params — purple */
.pr-tech {
    color: #CE93D8;
}

.pr-param {
    color: #AB47BC;
    font-weight: 600;
}

/* Negatives — red */
.pr-negative {
    color: #EF5350;
    opacity: 0.8;
}

/* Light mode overrides */
body.light-mode .pr-dialogue { color: #0277BD; }
body.light-mode .pr-quote { color: #0288D1; }
body.light-mode .pr-scenario { color: #E05520; }
body.light-mode .pr-scene { color: #1A1614; }
body.light-mode .pr-tech { color: #7B1FA2; }
body.light-mode .pr-param { color: #6A1B9A; }
body.light-mode .pr-negative { color: #C62828; }

/* ============================================================================
   LIGHT MODE — COMPREHENSIVE GLASS OVERRIDES
   ============================================================================ */

body.light-mode .polo-user {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border-color: rgba(0, 0, 0, 0.06);
}



body.light-mode input,
body.light-mode textarea,
body.light-mode select {
    color: var(--text-main) !important;
}

body.light-mode input::placeholder,
body.light-mode textarea::placeholder {
    color: rgba(0,0,0,0.35) !important;
}

body.light-mode .p-label {
    color: var(--text-secondary);
}

body.light-mode .p-val {
    color: var(--text-main);
}

body.light-mode .accent-vid {
    color: var(--accent);
}

body.light-mode .accent-img {
    color: #E05520;
}

body.light-mode .p-line {
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .p-header {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .p-brand h1 {
    color: var(--text-main);
}

body.light-mode .text-brand {
    background: linear-gradient(135deg, var(--accent) 0%, #1A1614 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .magic-toggle {
    background: rgba(255, 60, 0, 0.06);
    border-color: rgba(255, 60, 0, 0.15);
}

body.light-mode .badge-pill {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.06);
    color: var(--text-secondary);
}

body.light-mode .vision-block {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .res-box {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    border-color: rgba(0, 0, 0, 0.06);
    color: var(--accent);
}

body.light-mode #customToast {
    color: #fff;
}

body.light-mode .btn-liquid-primary {
    color: #fff;
}

body.light-mode .range-in {
    background: rgba(0, 0, 0, 0.06);
}

body.light-mode .seed-btn-circle {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .btn-liquid-reset {
    background: rgba(255, 50, 50, 0.08);
    border-color: rgba(255, 50, 50, 0.2);
}

body.light-mode .slider-wrap label,
body.light-mode .slider-wrap span {
    color: var(--text-main);
}

body.light-mode .banner-card {
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .banner-cat {
    color: var(--accent);
}

body.light-mode .banner-title {
    color: var(--text-main);
    text-shadow: none;
}

body.light-mode .banner-desc {
    color: var(--text-secondary);
}

body.light-mode .banner-content {
    text-shadow: none;
}

body.light-mode .polo-user-menu {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(30px);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

body.light-mode .polo-user-menu-item {
    color: var(--text-main);
}

body.light-mode .polo-user-menu-item:hover {
    background: rgba(255, 50, 50, 0.08);
}

body.light-mode ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
}

body.light-mode ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 43, 0.3);
}

/* Light mode: pill buttons (--- selectors) */
body.light-mode .pill {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}

body.light-mode .pill:hover {
    border-color: rgba(255, 107, 43, 0.3);
}

body.light-mode .pill.set {
    background: rgba(255, 107, 43, 0.1);
    border-color: rgba(255, 107, 43, 0.3);
    color: #E05520;
}

/* Light mode: mode buttons (VIDEO, IMAGEN tabs) */
body.light-mode .mode-btn {
    color: var(--text-secondary);
}

body.light-mode .mode-btn.active {
    background: rgba(255, 107, 43, 0.1);
    color: var(--text-main);
    border-color: rgba(255, 107, 43, 0.25);
}

/* Light mode: scenario bar text */
body.light-mode .scenario-bar * {
    color: var(--text-main);
}

body.light-mode .scenario-bar .p-label {
    color: var(--accent);
}

/* Light mode: magic/director/storyboard toggles */
body.light-mode .magic-toggle {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--text-secondary);
}

body.light-mode .magic-toggle.active {
    background: rgba(255, 107, 43, 0.1);
    border-color: rgba(255, 107, 43, 0.3);
    color: #E05520;
}

/* Light mode: analyze/upload buttons */
body.light-mode .btn-liquid-primary {
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 107, 43, 0.2);
}

/* Light mode: vision block */
body.light-mode .vision-block * {
    color: var(--text-main);
}

/* Light mode: assistant button */
body.light-mode .btn-retry-desc {
    color: var(--accent);
    border-color: rgba(255, 107, 43, 0.2);
}

/* Light mode: format pills (NORMAL/JSON) */
body.light-mode .format-pill {
    color: var(--text-main);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Light mode: tech grid buttons */
/* Light mode: textarea and input borders */
body.light-mode .p-area {
    border-color: rgba(0, 0, 0, 0.06) !important;
}

/* Light mode: action row */
body.light-mode .action-row * {
    color: var(--text-main);
}

/* Light mode: character/transition panels */
body.light-mode summary {
    color: var(--accent) !important;
}

/* Light mode: slider labels */
body.light-mode .val-counter {
    color: var(--text-main) !important;
    background: rgba(0, 0, 0, 0.04) !important;
}

/* Light mode: modal search */
body.light-mode .modal-search {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-main);
    border-color: rgba(0, 0, 0, 0.06);
}

/* Light mode: SVG icons inherit text color */
body.light-mode svg {
    stroke: currentColor;
}

/* Light mode: p-card text and descriptions */
body.light-mode .p-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

body.light-mode .p-label {
    color: rgba(26, 22, 20, 0.5);
}

body.light-mode .p-label.text-brand {
    color: var(--accent);
}

/* Light mode: pills */
body.light-mode .pill {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1A1614;
}

body.light-mode .pill.set {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 107, 43, 0.08);
}

/* Light mode: header buttons */
body.light-mode .btn-liquid-glass {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.08);
    color: #1A1614;
}

/* Light mode: i2v drop zone */
body.light-mode .i2v-drop-zone {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.12);
}

/* Light mode: scenario bar */
body.light-mode .scenario-bar {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Light mode: text secondary visibility */
body.light-mode [style*="color:var(--text-secondary)"] {
    color: rgba(26, 22, 20, 0.55) !important;
}

/* Light mode: inputs and textareas */
body.light-mode .p-area,
body.light-mode .p-line,
body.light-mode input[type="text"],
body.light-mode textarea {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1A1614;
}

/* Light mode: primary button keeps contrast */
body.light-mode .btn-liquid-primary {
    color: #fff;
}

/* ============================================================================
   ONBOARDING OVERLAY
   ============================================================================ */

#onboardingOverlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(10, 8, 6, 0.92);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.onboard-container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.onboard-header {
    margin-bottom: 40px;
}

.onboard-header h1 {
    color: var(--text-main);
}

.onboard-subtitle {
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.onboard-step {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    text-align: left;
    backdrop-filter: blur(20px);
}

.onboard-step-num {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
}

.onboard-label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.onboard-textarea {
    width: 100%;
    min-height: 80px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    color: var(--text-main);
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    resize: none;
    outline: none;
}

.onboard-textarea:focus {
    border-color: var(--accent);
}

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

.onboard-style-card {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.onboard-style-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.onboard-style-card.selected {
    border-color: var(--accent);
    background: rgba(255, 107, 43, 0.1);
}

.onboard-style-card img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 6px;
}

.onboard-style-card .os-name {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.onboard-summary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-main);
    line-height: 2;
}

.onboard-generate {
    width: 100%;
    padding: 18px !important;
    font-size: 16px !important;
}

.onboard-nav {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.onboard-nav button {
    min-width: 140px;
}

.mode-btn {
    min-width: unset !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.onboard-skip {
    margin-top: 25px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.onboard-skip:hover {
    opacity: 1;
    color: var(--accent);
}

.onboard-btn-surprise {
    margin-top: 12px;
    width: 100%;
    padding: 12px;
    background: var(--glass-bg);
    border: 1px dashed var(--accent);
    border-radius: 10px;
    color: var(--accent);
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
}

.onboard-btn-surprise:hover {
    background: rgba(255, 107, 43, 0.1);
}

/* ============================================================================
   POLO LOADER — Probeta Animation
   ============================================================================ */

.polo-loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(10, 8, 6, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.polo-loader-overlay.active {
    display: flex;
}

.polo-loader-container {
    text-align: center;
}

.polo-probeta {
    filter: drop-shadow(0 0 20px rgba(255, 107, 43, 0.3));
}

/* Liquid fill animation */
.polo-liquid {
    transition: height 0.3s ease, y 0.3s ease;
}

/* Bubbles floating up */
.polo-bubble {
    opacity: 0;
}

.polo-loader-overlay.active .polo-b1 {
    animation: bubbleUp 2.2s ease-in infinite 0.3s;
}

.polo-loader-overlay.active .polo-b2 {
    animation: bubbleUp 2.6s ease-in infinite 0.9s;
}

.polo-loader-overlay.active .polo-b3 {
    animation: bubbleUp 1.8s ease-in infinite 1.5s;
}

@keyframes bubbleUp {
    0% { opacity: 0; transform: translateY(0); }
    10% { opacity: 0.6; }
    80% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-100px); }
}

/* Liquid surface wobble */
.polo-loader-overlay.active .polo-liquid {
    animation: liquidWobble 1.5s ease-in-out infinite alternate;
}

@keyframes liquidWobble {
    0% { rx: 0; }
    100% { rx: 2; }
}

.polo-loader-text {
    margin-top: 25px;
    font-family: 'Sora', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--accent);
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.polo-loader-time {
    margin-top: 8px;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: rgba(242, 240, 237, 0.3);
    letter-spacing: 1px;
}

/* ============================================================================
   IMG→VID MODULE
   ============================================================================ */

.i2v-drop-zone {
    border: 2px dashed var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--glass-bg);
    position: relative;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.i2v-drop-zone:hover,
.i2v-drop-zone.dragover {
    border-color: var(--accent);
    background: rgba(255, 107, 43, 0.05);
}

.i2v-placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.i2v-preview {
    position: relative;
    width: 100%;
    max-height: 200px;
    border-radius: 12px;
    overflow: hidden;
}

.i2v-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

.i2v-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.i2v-remove:hover {
    background: #EF5350;
}

/* ============================================================================
   COLLAPSIBLE CONTROLS
   ============================================================================ */

.collapse-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: transparent;
    border: none;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Sora', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-secondary);
    width: 100%;
    margin: 8px 0;
}

/* Space between tech-grid controls and the next collapse toggle */
.ctrl-intermediate + .col-full,
.ctrl-advanced {
    margin-top: 8px;
}

.collapse-toggle:hover {
    border-color: rgba(255, 107, 43, 0.2);
    color: var(--accent);
}

.collapse-toggle.open {
    color: var(--accent);
    border-color: rgba(255, 107, 43, 0.15);
}

.collapse-arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

.collapse-toggle.open .collapse-arrow {
    transform: rotate(180deg);
}

.collapse-section {
    animation: fadeSlideIn 0.3s ease;
}

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

/* ============================================================================
   SURPRISE ME BUTTON
   ============================================================================ */

.btn-surprise {
    background: linear-gradient(135deg, rgba(255,107,43,0.08), rgba(255,0,128,0.08));
    border: 1px dashed rgba(255, 107, 43, 0.3);
    border-radius: 14px;
    padding: 14px 30px;
    color: var(--accent);
    font-family: 'Sora', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-surprise:hover {
    background: linear-gradient(135deg, rgba(255,107,43,0.15), rgba(255,0,128,0.15));
    border-style: solid;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255, 107, 43, 0.15);
}

/* Light mode for new components */
body.light-mode .onboard-textarea {
    color: var(--text-main);
}

body.light-mode .onboard-textarea::placeholder {
    color: rgba(0,0,0,0.35);
}

body.light-mode .collapse-toggle {
    border-top-color: rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .btn-surprise {
    background: linear-gradient(135deg, rgba(255,107,43,0.06), rgba(255,0,128,0.06));
    border-color: rgba(255, 107, 43, 0.25);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media(max-width: 1400px) { 
    .tech-grid { 
        grid-template-columns: repeat(4, 1fr); 
    } 
}

@media(max-width: 1024px) {
    #polo-app {
        padding: 30px;
        border-radius: 30px;
    }
    
    .p-brand h1 {
        font-size: 24px;
    }
    
    .mode-btn {
        padding: 8px 20px;
        font-size: 11px;
    }
}

@media(max-width: 900px) { 
    .col-hero, .col-voice, .col-half { 
        grid-column: span 12; 
    } 
    
    .tech-grid { 
        grid-template-columns: repeat(2, 1fr); 
    } 
}

@media(max-width: 768px) {
    body {
        padding: 15px;
    }
    
    #polo-app {
        padding: 20px;
        border-radius: 20px;
    }
    
    .p-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .p-brand {
        text-align: center;
    }
    
    .p-brand h1 {
        font-size: 20px;
        text-align: center;
    }
    
    .p-brand span, .brand-sub {
        display: none;
    }
    
    .header-controls {
        flex-direction: column;
        gap: 8px;
    }
    
    /* Hide less important header buttons on mobile — keep only theme + history */
    .header-controls > button:nth-child(1),
    .header-controls > button:nth-child(2),
    .header-controls > div:nth-child(5),
    .header-controls > div:nth-child(6) {
        display: none;
    }
    
    /* Remaining header buttons in a row */
    .header-controls {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    
    .mode-switch {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 2px;
        width: 100%;
        order: 10;
    }
    .mode-switch::-webkit-scrollbar { display: none; }
    
    .mode-btn {
        flex: 0 0 auto;
        padding: 9px 12px;
        font-size: 9px;
        white-space: nowrap;
    }
    
    /* Action row: horizontal on mobile */
    .action-row {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px !important;
    }
    
    .action-row .btn-liquid-reset,
    .action-row .magic-toggle {
        width: 60px !important;
        height: 55px !important;
    }
    
    .action-row .btn-liquid-primary {
        width: 100%;
        order: 10;
    }
    
    .p-card {
        padding: 20px;
        border-radius: 20px;
    }
    
    .tech-btn {
        padding: 12px;
        height: 80px;
    }
    
    .p-label {
        font-size: 9px;
    }
    
    .p-val {
        font-size: 11px;
    }
    
    .scenario-bar {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        text-align: center;
    }
    
    .action-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-liquid-primary {
        padding: 18px 25px;
        font-size: 14px;
    }
    
    .modal-box {
        width: 98%;
        max-width: none;
        border-radius: 25px;
        max-height: 90vh;
    }
    
    .modal-head {
        padding: 20px;
        font-size: 11px;
    }
    
    .modal-opt {
        padding: 15px 20px;
        font-size: 13px;
    }
    
    .modal-opt:hover {
        padding-left: 25px;
    }
    
    .res-box {
        padding: 20px;
        height: 350px;
        font-size: 12px;
    }
    
    .login-box {
        padding: 30px 20px;
        border-radius: 15px;
        width: 90%;
        max-width: 350px;
    }
    
    .login-input {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
    
    .btn-login {
        width: 100%;
        padding: 12px 30px;
    }
    
    .magic-toggle {
        width: 60px;
        height: 55px;
    }
    
    
    .theme-toggle {
        top: 12px;
        right: 120px;
    }
}

@media(max-width: 480px) {
    body {
        padding: 6px;
    }
    
    #polo-app {
        padding: 10px;
        border-radius: 14px;
    }
    
    .p-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .brand-logo {
        height: 28px;
    }
    
    .p-brand h1 {
        font-size: 16px;
    }
    
    .p-brand span, .brand-sub {
        display: none;
    }
    
    /* Compact header buttons */
    .header-controls > button,
    .header-controls > div:not(.mode-switch) {
        padding: 8px 10px !important;
    }
    
    /* Hide gallery and guide on very small screens */
    .header-controls > button:first-child {
        display: none;
    }
    
    .mode-btn {
        padding: 8px 10px;
        font-size: 8px;
    }
    
    .tech-btn {
        height: 60px;
        padding: 8px;
    }
    
    .tech-btn .p-val {
        font-size: 9px;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .btn-liquid-primary {
        padding: 14px 16px;
        font-size: 12px;
        letter-spacing: 1px;
    }
    
    .modal-head {
        padding: 15px;
        font-size: 10px;
    }
    
    .res-box {
        height: 280px;
        font-size: 11px;
        padding: 12px;
    }
    
    .p-card {
        padding: 15px;
        border-radius: 16px;
    }
    
    .scenario-bar {
        padding: 15px;
    }
    
    .pill {
        padding: 6px 10px;
        font-size: 8px;
    }
    
    textarea, .p-area {
        font-size: 13px !important;
        min-height: 60px !important;
    }
    
    .slider-wrap label {
        font-size: 8px;
    }
    
    .onboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .onboard-step {
        padding: 20px;
    }
    
    
    
    .theme-toggle {
        display: none;
    }
    
    /* Angles module mobile */
    #anglesSphere {
        width: 140px !important;
        height: 140px !important;
    }
    
    /* Influencer platform grid on mobile */
    #influencerControls .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Transition images smaller on mobile */
    .trans-upload-box, .trans-preview {
        min-height: 80px;
    }
}

@media(max-width: 360px) {
    .mode-btn {
        padding: 7px 8px;
        font-size: 7px;
        letter-spacing: 0.5px;
    }
    
    .tech-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }
    
    .tech-btn {
        height: 55px;
        padding: 6px;
    }
    
    .p-card {
        padding: 12px;
    }
    
    .pill {
        padding: 5px 8px;
        font-size: 7px;
    }
    
    #anglesSphere {
        width: 120px !important;
        height: 120px !important;
    }
}

/* ============================================================================
   UPGRADE 4: MICRO-ANIMATIONS & POLISH
   ============================================================================ */

/* Smooth fade-in for cards on load */
.p-card, .scenario-bar, .tech-btn {
    animation: fadeSlideUp 0.5s ease-out both;
}

.p-card:nth-child(1) { animation-delay: 0.05s; }
.p-card:nth-child(2) { animation-delay: 0.1s; }
.p-card:nth-child(3) { animation-delay: 0.15s; }

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

/* Scenario banner staggered entrance in modal */
.scen-banner {
    animation: bannerSlide 0.35s ease-out both;
}

.scen-banner:nth-child(1) { animation-delay: 0.03s; }
.scen-banner:nth-child(2) { animation-delay: 0.06s; }
.scen-banner:nth-child(3) { animation-delay: 0.09s; }
.scen-banner:nth-child(4) { animation-delay: 0.12s; }
.scen-banner:nth-child(5) { animation-delay: 0.15s; }
.scen-banner:nth-child(6) { animation-delay: 0.18s; }
.scen-banner:nth-child(7) { animation-delay: 0.21s; }
.scen-banner:nth-child(8) { animation-delay: 0.24s; }

@keyframes bannerSlide {
    from { opacity: 0; transform: translateY(8px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Toast notification animation */
.polo-toast {
    animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Modal smooth entrance */
.modal-overlay.active .modal-box {
    animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Collapse toggle smooth rotation */
.collapse-toggle .collapse-arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.collapse-toggle.open .collapse-arrow {
    transform: rotate(180deg);
}

/* Glass button press effect */
.btn-liquid-glass:active {
    transform: scale(0.96);
}

/* Magic toggle pulse when active */
.magic-toggle.on {
    animation: magicPulse 2s ease-in-out infinite;
}

@keyframes magicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 0, 102, 0); }
    50% { box-shadow: 0 0 16px 2px rgba(255, 0, 102, 0.15); }
}

/* Smooth text area focus */
.p-area:focus, .p-input:focus {
    border-color: rgba(255, 107, 43, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 107, 43, 0.06);
    transition: all 0.3s ease;
}

/* Mobile responsive for 2-column scenario grid */
@media (max-width: 500px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
    .scen-banner {
        height: 100px;
    }
    .p-brand {
        gap: 10px;
    }
    .brand-logo {
        height: 28px;
    }
    .brand-text h1 {
        font-size: 18px;
    }
    .mode-btn {
        padding: 8px 12px;
        font-size: 9px;
    }
}

/* ============================================================================
   HEATMAP - Prompt visual analysis
   ============================================================================ */

.hm-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.hm-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.hm-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.hm-text {
    font-size: 13px;
    line-height: 2;
    font-family: 'Space Mono', monospace;
    word-break: break-word;
}

.hm-word {
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
    cursor: default;
}

.hm-word:hover {
    filter: brightness(1.3);
    transform: scale(1.05);
}

.hm-word-neutral {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* ============================================================================
   VOTE BUTTONS
   ============================================================================ */

.prompt-vote {
    transition: all 0.3s ease;
}

.prompt-vote:hover {
    transform: translateY(-2px);
}

.prompt-vote.voted {
    transform: scale(1.1);
}

#btnHeatmap.active {
    background: rgba(255, 107, 43, 0.1);
}

/* ============================================================================
   GUIDE TOOLTIPS — First-time user hints
   ============================================================================ */




/* ============================================================================
   PRICING MODAL RESPONSIVE
   ============================================================================ */

@media(max-width: 768px) {
    #pricingModal > div > div:nth-child(2) {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
}

/* ============================================================
   MODULE SELECTOR DROPDOWN
   ============================================================ */
.module-selector {
    position: relative;
}

.module-selector-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: var(--text-main);
    font-family: 'Sora', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 180px;
}

.module-selector-btn:hover {
    border-color: rgba(255,107,43,0.3);
    background: rgba(255,107,43,0.06);
}

.module-selector-name {
    flex: 1;
    text-align: left;
}

.module-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 10000;
    background: rgba(12,12,12,0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 6px;
    min-width: 240px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.module-dropdown.open {
    display: block;
    animation: dropdownIn 0.15s ease;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.module-dropdown-section {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.3);
    padding: 8px 12px 4px;
}

.module-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.module-dropdown-item:hover {
    background: rgba(255,107,43,0.08);
}

.module-dropdown-item.active {
    background: rgba(255,107,43,0.1);
}

.mdi-icon {
    color: var(--accent);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.mdi-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
}

.mdi-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
}

.mdi-desc {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
}

.mdi-check {
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
    min-width: 14px;
}

/* ============================================================
   MODULE HERO BANNER
   ============================================================ */
.module-banner {
    border-radius: 14px;
    padding: 28px 28px 24px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}

.module-banner-video {
    background: linear-gradient(135deg, #0d2800 0%, #1a4d00 40%, #000000 100%);
}
.module-banner-image {
    background: linear-gradient(135deg, #001a2e 0%, #003366 40%, #000000 100%);
}
.module-banner-img2vid {
    background: linear-gradient(135deg, #1a1a00 0%, #3d3300 40%, #000000 100%);
}
.module-banner-enhance {
    background: linear-gradient(135deg, #001a0d 0%, #003320 40%, #000000 100%);
}
.module-banner-transition {
    background: linear-gradient(135deg, #1a000d 0%, #330019 40%, #000000 100%);
}
.module-banner-influencer {
    background: linear-gradient(135deg, #1a0d00 0%, #331a00 40%, #000000 100%);
}
.module-banner-character {
    background: linear-gradient(135deg, #0d001a 0%, #1f0033 40%, #000000 100%);
}
.module-banner-angles {
    background: linear-gradient(135deg, #001a1a 0%, #003333 40%, #000000 100%);
}
.module-banner-audio {
    background: linear-gradient(135deg, #1a0019 0%, #330033 40%, #000000 100%);
}

.module-banner-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #CCFF00;
    background: rgba(204,255,0,0.12);
    border: 1px solid rgba(204,255,0,0.25);
    border-radius: 20px;
    padding: 3px 10px;
    margin-bottom: 10px;
}

.module-banner-title {
    font-size: 26px;
    font-weight: 800;
    color: #F2F0ED;
    margin: 0 0 6px;
    line-height: 1.2;
}

.module-banner-sub {
    font-size: 12px;
    color: rgba(242,240,237,0.5);
    margin: 0;
}

/* ============================================================
   STICKY GENERATE BUTTON
   ============================================================ */
.action-row {
    position: sticky;
    bottom: 0;
    z-index: 100;
    background: linear-gradient(to top, rgba(10,8,6,1) 70%, rgba(10,8,6,0) 100%);
    padding: 16px 0 12px;
    margin-top: 8px;
}

