@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&family=Syne:wght@400;700;800;900&family=Space+Grotesk:wght@300;400;500;700&display=swap');

/* --- THE NEURAL DIALECTIC DESIGN SYSTEM (CHAOS & ORDER) --- */
:root {
    --bg-base: #040406;
    
    /* Order Mode Tokens (Default/Logical) */
    --color-logic-primary: #FFFFFF;
    --color-logic-accent: #00F0FF; /* Pure Algorithmic Green */
    --border-logic: rgba(255, 255, 255, 0.05);
    --font-logic: 'Space Grotesk', sans-serif;
    
    /* Chaos Mode Tokens (Emotional/Creative) */
    --color-creative-primary: #FF0055; /* Visceral Pink */
    --color-creative-accent: #E000FF; /* Psychedelic Purple */
    --font-creative: 'Syne', sans-serif;
    
    /* Active State Variables (Controlled by the Dial JS) */
    --active-primary: var(--color-logic-primary);
    --active-accent: var(--color-logic-accent);
    --active-font: var(--font-logic);
    /* Prevent transitioning variables updated at 60fps (like colors/gradients) to avoid screen stuttering/flicker */
    --theme-transition: font-family 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --container-max: 1300px;

    /* Dynamic Palette Tokens (Updated in JS) */
    --glow-color-1: #00F0FF;
    --glow-color-2: #FFFFFF;
    --active-gradient: linear-gradient(135deg, var(--glow-color-1) 0%, var(--glow-color-2) 100%);
}

/* --- THEME OVERRIDES (DRAMATIC GLOBAL OVERRIDES) --- */

/* Chaos Mode Global Styles */
body.chaos-theme {
    background-color: #0c0112;
    --active-primary: var(--color-creative-primary);
    --active-accent: var(--color-creative-accent);
    --active-font: var(--font-creative);
}

body.chaos-theme, 
body.chaos-theme * {
    font-family: var(--font-creative) !important;
}

body.chaos-theme .glass-card {
    background: rgba(20, 2, 32, 0.35);
    border-color: rgba(255, 0, 85, 0.15);
    border-radius: 48px 16px 48px 16px;
    box-shadow: 0 30px 60px rgba(224, 0, 255, 0.06), 0 0 30px rgba(255, 0, 85, 0.02);
}

body.chaos-theme .editorial-btn {
    border-radius: 30px 10px 30px 10px;
    border-color: var(--color-creative-primary);
    color: #FFF;
    background: linear-gradient(135deg, var(--color-creative-primary) 0%, var(--color-creative-accent) 100%);
    box-shadow: 0 12px 30px rgba(255, 0, 85, 0.25);
    font-weight: 900;
}

body.chaos-theme .editorial-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 18px 40px rgba(255, 0, 85, 0.45);
    color: #000;
}

body.chaos-theme .sandbox-drag-card {
    border-radius: 36px 12px;
    border-color: rgba(255, 0, 85, 0.12);
    background: rgba(16, 2, 28, 0.95);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 0, 85, 0.03);
}

/* Order Mode Global Styles */
body.order-theme {
    background-color: #020203;
    --active-primary: var(--color-logic-primary);
    --active-accent: var(--color-logic-accent);
    --active-font: var(--font-logic);
}

body.order-theme,
body.order-theme * {
    font-family: var(--font-logic) !important;
}

body.order-theme .glass-card {
    background: rgba(6, 6, 8, 0.9);
    border-color: rgba(255, 255, 255, 0.05);
    border-radius: 0px;
    box-shadow: none;
}

body.order-theme .editorial-btn {
    border-radius: 0px;
    border-color: #FFF;
    background: transparent;
    color: #FFF;
}

body.order-theme .editorial-btn.btn-active {
    background: #FFF;
    color: #000;
}

body.order-theme .editorial-btn:hover {
    background: var(--color-logic-accent);
    border-color: var(--color-logic-accent);
    color: #000;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.25);
}

body.order-theme .sandbox-drag-card {
    border-radius: 0px;
    border-color: rgba(255, 255, 255, 0.05);
    background: rgba(6, 6, 8, 0.98);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--active-accent) var(--bg-base);
}

body {
    background-color: var(--bg-base);
    color: #E5E7EB;
    overflow-x: hidden;
    position: relative;
    transition: background-color 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scrollbar styling */
body::-webkit-scrollbar {
    width: 6px;
}
body::-webkit-scrollbar-track {
    background: var(--bg-base);
}
body::-webkit-scrollbar-thumb {
    background: var(--active-accent);
    border-radius: 10px;
}

/* --- ARCHITECTURAL BACKGROUND GUIDES (BLUEPRINT AESTHETIC) --- */
.structural-guides {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    padding: 0 3rem;
}

.guide-line {
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.015);
    position: relative;
}

.guide-line::before {
    content: '';
    position: absolute;
    top: 15%;
    left: -2px;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

/* --- DYNAMIC GRAPHICS LAYER --- */
#fluid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.ambient-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 20%, rgba(4, 4, 6, 0.95) 95%);
    z-index: 1;
    pointer-events: none;
}

/* --- GRID & SECTION CONSTRAINTS --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
    z-index: 3;
}

.section {
    padding: 13rem 0;
    position: relative;
    z-index: 2;
}

/* --- MONUMENTAL ASYMMETRICAL TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.02;
    color: #FFF;
    transition: var(--theme-transition);
}

.editorial-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 7rem;
}

.editorial-tagline {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--active-accent);
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--theme-transition);
}

.editorial-title {
    font-size: 6rem;
    max-width: 950px;
}

/* --- HEADER / FLOATING NAVIGATION --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-logic);
    transition: var(--theme-transition);
    padding: 0.5rem 0;
    background: rgba(4, 4, 6, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header.scrolled {
    background: rgba(4, 4, 6, 0.8);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-bottom-color: rgba(255, 255, 255, 0.04);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}

/* Scroll progress indicator bar */
.scroll-progress-indicator {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--active-gradient);
    box-shadow: 0 0 12px var(--active-accent);
    z-index: 1010;
    transition: width 0.1s linear, box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-name {
    background: linear-gradient(135deg, var(--glow-color-1), var(--glow-color-2), var(--active-accent), var(--glow-color-1));
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logoGlowShift 8s ease-in-out infinite;
    font-family: 'Syne', sans-serif !important;
    font-weight: 900;
    letter-spacing: -0.04em;
    font-size: 1.6rem;
    text-transform: uppercase;
    transition: filter 0.3s ease;
}

.logo:hover .logo-name {
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.3));
}

body.chaos-theme .logo:hover .logo-name {
    filter: drop-shadow(0 0 8px rgba(255, 0, 85, 0.3));
}

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

/* Hyper-premium gradient text styled natively for smooth 60fps shifting */
.grad-text {
    background: var(--active-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: none !important;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    transition: opacity 0.3s ease;
}

/* Hover focus/unfocus links fade effect */
.nav-menu:hover .nav-link:not(:hover) {
    opacity: 0.45;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    color: #9CA3AF;
    transition: var(--transition-smooth), opacity 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: #FFF;
}

.nav-link.active {
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
}
body.chaos-theme .nav-link.active {
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.35);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--active-gradient);
    transition: var(--transition-smooth);
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 28px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1100;
}

.hamburger-line {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #FFF;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-line:nth-child(1) { top: 2px; }
.hamburger-line:nth-child(2) { top: 9px; }
.hamburger-line:nth-child(3) { top: 16px; }

/* Open state animations for Hamburger */
.menu-toggle.open .hamburger-line:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
    background: var(--active-accent);
}
.menu-toggle.open .hamburger-line:nth-child(2) {
    opacity: 0;
    left: -40px;
}
.menu-toggle.open .hamburger-line:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
    background: var(--active-accent);
}

/* --- HERO (THE BLUEPRINT STAGE) --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 8rem;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 5rem;
    align-items: center;
}

.hero-large-text {
    font-size: 7rem;
    font-weight: 900;
    line-height: 0.92;
    text-transform: uppercase;
}

.hero-interactive-badge {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--active-accent);
    color: var(--active-accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 3rem;
    transition: var(--theme-transition);
}

.hero-description-block {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.hero-description-block p {
    font-size: 1.25rem;
    color: #9CA3AF;
    line-height: 1.8;
    font-weight: 300;
}

.hero-cta-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.editorial-btn {
    font-weight: 700;
    font-size: 0.85rem;
    padding: 1.2rem 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    cursor: pointer;
    transition: var(--theme-transition);
    border: 1px solid #FFF;
    color: #FFF;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: #9CA3AF;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
}

.scroll-indicator span.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--active-accent);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

/* --- THE COGNITIVE DIAL MODULATOR --- */
.dial-sandbox-container {
    background: rgba(6, 6, 8, 0.4);
    border: 1px solid var(--border-logic);
    padding: 5rem;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
}

.dial-visual-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 440px;
}

.oscilloscope-wrapper {
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.9), 0 4px 15px rgba(0,0,0,0.5);
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--theme-transition);
}

.osc-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.osc-led-blink {
    width: 6px;
    height: 6px;
    background-color: var(--active-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--active-accent);
    animation: pulse 0.8s infinite alternate;
    transition: var(--theme-transition);
}

.osc-label {
    font-family: var(--font-logic);
    font-size: 0.65rem;
    color: #6B7280;
    letter-spacing: 0.12em;
    font-weight: 700;
    text-transform: uppercase;
}

#oscilloscope-canvas {
    background: #010102;
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 2px;
}

.dial-graphic-box {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.05);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--theme-transition);
}

.dial-graphic-core {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--active-accent) 0%, transparent 80%);
    opacity: 0.6;
    transition: var(--theme-transition);
    filter: blur(15px);
    animation: pulse-core 3s infinite alternate;
}

.dial-interactive-slider-box {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.dial-labels-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.dial-label-btn {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--theme-transition);
}

.dial-label-btn.active {
    color: #FFF;
    text-shadow: 0 0 20px var(--active-accent);
}

.dial-slider-container {
    position: relative;
    width: 100%;
}

.dial-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    outline: none;
    border-radius: 10px;
}

.dial-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFF;
    border: 4px solid var(--active-accent);
    cursor: pointer;
    transition: var(--theme-transition);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

.dial-slider::-moz-range-thumb {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFF;
    border: 4px solid var(--active-accent);
    cursor: pointer;
    transition: var(--theme-transition);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

.dial-dynamic-text {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    min-height: 140px;
    transition: var(--theme-transition);
    color: #FFF;
}

/* --- THE CAMPAIGN PLAYGROUND (DRAG & TOSS SANDBOX) --- */
.sandbox-board-wrapper {
    position: relative;
    margin-top: 4rem;
}

.sandbox-instructions {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #4B5563;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2.5rem;
}

.sandbox-board {
    width: 100%;
    height: 650px;
    border: 1px solid var(--border-logic);
    background: rgba(6, 6, 8, 0.2);
    position: relative;
    overflow: hidden;
    cursor: grab;
}

/* Radar overlay in Sandbox board */
.sandbox-board-radar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 680px;
    height: 680px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.025);
    pointer-events: none;
    z-index: 1;
}

.sandbox-board-radar::before {
    content: '';
    position: absolute;
    top: 90px; left: 90px; right: 90px; bottom: 90px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.015);
}

.sandbox-board-radar::after {
    content: '';
    position: absolute;
    top: 200px; left: 200px; right: 200px; bottom: 200px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.008);
}

/* Sweep effect beam */
.sandbox-radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 340px;
    height: 340px;
    background: conic-gradient(from 0deg at 0% 0%, var(--active-accent) 0deg, transparent 80deg);
    opacity: 0.04;
    transform-origin: top left;
    animation: radar-rotate 8s linear infinite;
    pointer-events: none;
    z-index: 1;
    transition: var(--theme-transition);
}

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

/* Card corner brackets details */
.card-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: var(--active-accent);
    border-style: solid;
    pointer-events: none;
    transition: var(--theme-transition);
    opacity: 0.25;
}

.sandbox-drag-card:hover .card-corner {
    opacity: 0.8;
}

.card-corner.top-left { top: 12px; left: 12px; border-width: 1.5px 0 0 1.5px; }
.card-corner.top-right { top: 12px; right: 12px; border-width: 1.5px 1.5px 0 0; }
.card-corner.bottom-left { bottom: 12px; left: 12px; border-width: 0 0 1.5px 1.5px; }
.card-corner.bottom-right { bottom: 12px; right: 12px; border-width: 0 1.5px 1.5px 0; }

/* Micro technical metadata block inside cards */
.card-tech-metadata {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-logic) !important;
    font-size: 0.62rem;
    font-weight: 700;
    color: #4B5563;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding-bottom: 0.4rem;
}

.sandbox-board:active {
    cursor: grabbing;
}

/* Technical grid coordinate accents inside sandbox */
.sandbox-board::before {
    content: '+';
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.1);
    font-family: monospace;
}

.sandbox-board::after {
    content: '+';
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.1);
    font-family: monospace;
}

.sandbox-drag-card {
    position: absolute;
    width: 340px;
    padding: 3rem 2.5rem;
    cursor: grab;
    user-select: none;
    touch-action: none;
    z-index: 10;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: transform 0.1s linear, border-color 0.4s ease;
}

.sandbox-drag-card:active {
    cursor: grabbing;
    z-index: 100;
    border-color: var(--active-accent);
}

.sandbox-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sandbox-card-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--active-accent);
    font-weight: 700;
}

.sandbox-card-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.sandbox-card-desc {
    font-size: 0.95rem;
    color: #9CA3AF;
    line-height: 1.7;
    margin-bottom: 1.75rem;
    font-weight: 300;
}

.sandbox-card-image-box {
    width: 100%;
    height: 170px;
    background: #020203;
    overflow: hidden;
    margin-bottom: 1.75rem;
    border-radius: 4px;
    position: relative;
}

.sandbox-card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.sandbox-drag-card:hover .sandbox-card-image-box img {
    transform: scale(1.06);
    opacity: 0.85;
}

.sandbox-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 1.25rem;
}

.sandbox-metric-val {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--active-accent);
}

.sandbox-details-btn {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    background: none;
    border: none;
    color: #FFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
}

.sandbox-details-btn:hover {
    color: var(--active-accent);
}

/* --- THE MODULAR SYNTH COPY DECK (HIGH-END INSTRUMENT LOOK) --- */
.synth-deck-container {
    background: rgba(6, 6, 8, 0.4);
    border: 1px solid var(--border-logic);
    padding: 5rem;
}

.synth-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 2rem;
    margin-bottom: 4rem;
}

.synth-title-block h3 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.synth-title-block p {
    font-size: 0.9rem;
    color: #6B7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.synth-status-led {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.led-dot {
    width: 10px;
    height: 10px;
    background: var(--active-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--active-accent);
    animation: pulse 1s infinite alternate;
}

.synth-dashboard-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 5rem;
}

.synth-controls {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.input-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
}

.input-field-group label {
    font-family: var(--font-logic) !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    color: #9CA3AF;
    letter-spacing: 0.05em;
    transition: var(--theme-transition);
}

.playground-input {
    width: 100%;
    padding: 1.1rem 1.4rem;
    background: rgba(0, 0, 0, 0.45) !important;
    border: 1px solid var(--border-logic) !important;
    border-radius: 4px;
    font-family: var(--font-logic) !important;
    font-size: 1.05rem;
    color: #FFFFFF !important; /* Forces highly legible white text color */
    outline: none;
    transition: var(--theme-transition);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.8);
}

.playground-input:focus {
    border-color: var(--active-accent) !important;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.8), 0 0 15px rgba(255, 255, 255, 0.03);
}

.playground-input::placeholder {
    color: #4B5563 !important;
}

.synth-knobs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
}

.synth-knob-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.synth-knob-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #9CA3AF;
}

/* REALISTIC 3D MECHANICAL DIAL STYLING */
.synth-rotary-dial {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #2a2a35 0%, #111116 80%);
    border: 3px solid #0d0d12;
    position: relative;
    cursor: ns-resize;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), inset 0 2px 5px rgba(255, 255, 255, 0.05);
    transition: transform 0.1s linear;
}

.synth-rotary-dial::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 18px;
    background: var(--active-accent);
    border-radius: 3px;
    box-shadow: 0 0 8px var(--active-accent);
}

/* Technical visual dial tick background */
.synth-rotary-dial::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 1px dotted rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.synth-knob-value {
    font-size: 1rem;
    font-weight: 700;
    color: #FFF;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Console panel layouts */
.synth-console-panel {
    display: flex;
    gap: 2rem;
    width: 100%;
}

.synth-vu-meters {
    display: flex;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 1.2rem;
    border-radius: 4px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.8);
    justify-content: center;
}

.vu-channel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.vu-title {
    font-family: var(--font-logic);
    font-size: 0.58rem;
    font-weight: 700;
    color: #6B7280;
    letter-spacing: 0.1em;
}

.vu-leds {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 18px;
}

.led-seg {
    height: 6px;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1px;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

/* LED color mappings based on level segment height */
.led-seg[data-level="1"].active,
.led-seg[data-level="2"].active,
.led-seg[data-level="3"].active,
.led-seg[data-level="4"].active,
.led-seg[data-level="5"].active,
.led-seg[data-level="6"].active {
    background: var(--active-accent);
    box-shadow: 0 0 6px var(--active-accent);
}

.led-seg[data-level="7"].active,
.led-seg[data-level="8"].active {
    background: #FF9F00;
    box-shadow: 0 0 6px #FF9F00;
}

.led-seg[data-level="9"].active,
.led-seg[data-level="10"].active {
    background: #FF0055;
    box-shadow: 0 0 6px #FF0055;
}

/* CRT styled Terminal screen styling */
.synth-console {
    background: #020204;
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 3rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--active-accent);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: inset 0 0 45px rgba(0, 0, 0, 0.98);
    position: relative;
    overflow: hidden;
    flex-grow: 1;
}

/* CRT Scanlines Overlay */
.synth-console::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 4px, 6px 100%;
    z-index: 10;
    pointer-events: none;
}

/* CRT Flicker screen glow */
.synth-console::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: rgba(0, 240, 255, 0.015);
    opacity: 0.2;
    z-index: 10;
    pointer-events: none;
    animation: crt-flicker 0.15s infinite;
}

@keyframes crt-flicker {
    0% { opacity: 0.15; }
    50% { opacity: 0.22; }
    100% { opacity: 0.17; }
}

.synth-console-line {
    margin-bottom: 1.25rem;
}

.synth-console-line.header {
    color: #FFF;
}

.synth-console-line.heading {
    color: #FFF;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    padding-bottom: 0.25rem;
    margin-top: 1rem;
}

/* --- THE EDITORIAL DETAILS MODAL --- */
.editorial-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 3, 5, 0.97);
    z-index: 1000;
    backdrop-filter: blur(25px);
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content-card {
    background: #060609;
    border: 1px solid rgba(255, 255, 255, 0.04);
    max-width: 950px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 5rem;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #FFF;
    font-size: 2.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    color: var(--active-accent);
    transform: rotate(90deg);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.modal-img-box {
    width: 100%;
    height: 350px;
    background: #000;
    overflow: hidden;
}

.modal-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* --- BRUTALIST CONTACT LAYOUT --- */
.brutalist-contact-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 7rem;
}

.contact-meta-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-mega-text {
    font-size: 4.5rem;
    line-height: 0.95;
    font-family: var(--active-font);
    font-weight: 900;
    text-transform: uppercase;
}

.brutalist-input-group {
    position: relative;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    padding: 1.6rem 0 0.6rem 0;
    margin-bottom: 3.5rem;
    transition: border-bottom-color 0.4s ease;
}

.brutalist-input-group::after {
    content: '';
    position: absolute;
    bottom: -2px; /* aligns exactly with the border-bottom */
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--active-gradient);
    box-shadow: 0 0 10px var(--active-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.brutalist-input-group:focus-within::after {
    transform: scaleX(1);
}

.brutalist-field {
    background: transparent;
    border: none;
    width: 100%;
    color: #FFF;
    font-size: 1.15rem;
    font-family: var(--font-logic);
    outline: none;
    padding: 0.6rem 0;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.brutalist-label {
    position: absolute;
    left: 0;
    top: 1.8rem;
    color: rgba(255, 255, 255, 0.22);
    font-size: 0.95rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.12em;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.brutalist-field:focus ~ .brutalist-label,
.brutalist-field:not(:placeholder-shown) ~ .brutalist-label {
    transform: translateY(-2.5rem) scale(0.72);
    color: var(--active-accent);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}


/* --- FOOTER & BRANDING --- */
.branding-footer {
    border-top: 1px solid var(--border-logic);
    padding: 7rem 0;
    background: #010102;
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-socials-row {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.footer-social-link {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-social-link:hover {
    color: var(--active-accent);
}

/* --- ANIMATIONS (KEYFRAMES) --- */
@keyframes float-badge {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.15); opacity: 1; }
}

@keyframes pulse-core {
    0% { transform: scale(0.9); opacity: 0.4; }
    100% { transform: scale(1.1); opacity: 0.7; }
}

@keyframes scroll-wheel {
    0% { transform: translate(-50%, 0); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translate(-50%, 16px); opacity: 0; }
}

/* Scroll reveal defaults */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- RESPONSIVE ADAPTATIONS --- */
@media (max-width: 1024px) {
    .hero-layout, .dial-sandbox-container, .synth-dashboard-layout, .brutalist-contact-layout {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .editorial-title {
        font-size: 4rem;
    }
    .hero-large-text {
        font-size: 4.5rem;
    }
    .dial-visual-column {
        height: 280px;
    }
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .modal-content-card {
        padding: 2.5rem;
    }
    .structural-guides {
        display: none;
    }
}

@media (max-width: 768px) {
    .editorial-title {
        font-size: 3rem;
    }
    .hero-large-text {
        font-size: 3.5rem;
    }
    .sandbox-drag-card {
        width: 100%;
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
        margin-bottom: 2rem;
    }
    .sandbox-board {
        height: auto;
        overflow: visible;
        background: transparent;
        border: none;
    }
    .dial-sandbox-container, .synth-deck-container, .modal-content-card {
        padding: 2.5rem 2rem;
    }
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(4, 4, 6, 0.96);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-bottom: 1px solid var(--border-logic);
        gap: 1.5rem;
        padding: 2.2rem;
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
    }
    .nav-menu.mobile-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-menu.mobile-open li {
        animation: mobileMenuItemIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    }
    .nav-menu.mobile-open li:nth-child(1) { animation-delay: 0.04s; }
    .nav-menu.mobile-open li:nth-child(2) { animation-delay: 0.08s; }
    .nav-menu.mobile-open li:nth-child(3) { animation-delay: 0.12s; }
    .nav-menu.mobile-open li:nth-child(4) { animation-delay: 0.16s; }
    .nav-menu.mobile-open li:nth-child(5) { animation-delay: 0.2s; }
    .nav-menu.mobile-open li:nth-child(6) { animation-delay: 0.24s; }
    .nav-menu.mobile-open li:nth-child(7) { animation-delay: 0.28s; }
    .nav-menu.mobile-open li:nth-child(8) { animation-delay: 0.32s; }
    .nav-menu.mobile-open li:nth-child(9) { animation-delay: 0.36s; }
    .nav-menu.mobile-open li:nth-child(10) { animation-delay: 0.4s; }

    @keyframes mobileMenuItemIn {
        from { transform: translateY(12px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
    .menu-toggle {
        display: block;
    }
    .synth-console-panel {
        flex-direction: column;
        gap: 1.5rem;
    }
    .synth-vu-meters {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        padding: 1.2rem;
    }
    .vu-channel {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    .vu-leds {
        flex-direction: row;
        width: auto;
        height: 18px;
        gap: 3px;
    }
    .led-seg {
        width: 8px;
        height: 100%;
    }
}


/* ==========================================================================
   AI ORBIT SECTION — ECOSISTEMA AI + MARKETING + COACHING
   Respects the existing design system: variables, .reveal, .glass-card patterns
   ========================================================================== */

/* ---- Section base ---- */
.ai-orbit-section {
    overflow: hidden;
    padding-bottom: 8rem;
}

/* ---- Orbit stage: 3-column layout ---- */
.ai-orbit-stage {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    min-height: 580px;
    margin-bottom: 6rem;
}

/* ── Columns ── */
.ai-orbit-col {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.ai-orbit-col--left  { align-items: flex-end; }
.ai-orbit-col--right { align-items: flex-start; }

/* ── Floating Cards ── */
/* Inherits exact sandbox-drag-card visual language */
.ai-float-card {
    width: 100%;
    max-width: 300px;
    background: linear-gradient(135deg, rgba(28, 6, 52, 0.8) 0%, rgba(10, 2, 22, 0.95) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(168, 85, 247, 0.28);
    padding: 2.2rem 2rem;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 20px rgba(168, 85, 247, 0.1);
    /* Individual float animation applied via JS data-orbit-speed */
    will-change: transform;
    transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}

.ai-float-card:hover {
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.95), 0 0 35px rgba(168, 85, 247, 0.45);
    border-color: rgba(168, 85, 247, 0.7);
}

/* Alt card — slightly inset start offset for staggering */
.ai-float-card--alt {
    background: linear-gradient(135deg, rgba(36, 8, 64, 0.82) 0%, rgba(14, 2, 30, 0.96) 100%);
    border-color: rgba(168, 85, 247, 0.35);
}

/* Corner brackets — exact copy of .card-corner pattern */
.ai-card-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: #A855F7;
    border-style: solid;
    pointer-events: none;
    opacity: 0.25;
    transition: var(--theme-transition);
}

.ai-float-card:hover .ai-card-corner {
    opacity: 0.9;
    box-shadow: 0 0 10px #A855F7;
}

.ai-card-corner--tl { top: 12px; left: 12px; border-width: 1.5px 0 0 1.5px; }
.ai-card-corner--br { bottom: 12px; right: 12px; border-width: 0 1.5px 1.5px 0; }

/* Icon zone — accent colored SVG */
.ai-card-icon-zone {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: #D8B4FE;
    position: relative;
    transition: var(--theme-transition);
}

.ai-card-icon-zone::before {
    content: '';
    position: absolute;
    inset: -6px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
    transition: var(--theme-transition);
}

.ai-float-card:hover .ai-card-icon-zone::before {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.45) 0%, transparent 70%);
}

/* Card body */
.ai-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

/* Tag — exact .sandbox-card-tag pattern */
.ai-card-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #D8B4FE;
    font-weight: 700;
    transition: var(--theme-transition);
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.35);
}

/* Micro text — pure high-contrast white with slightly weighted font */
.ai-card-micro {
    font-size: 0.88rem;
    color: #FFFFFF !important;
    line-height: 1.65;
    font-weight: 400;
}

/* Metric — .sandbox-metric-val pattern */
.ai-card-metric {
    font-weight: 800;
    font-size: 1.35rem;
    color: #FFFFFF;
    border-top: 1px solid rgba(168, 85, 247, 0.25);
    padding-top: 1rem;
    transition: var(--theme-transition);
}

.ai-card-metric span {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #C084FC;
    margin-left: 0.4rem;
}

/* ── Center column ── */
.ai-orbit-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 3rem 1rem;
}

/* Ambient pulsing rings — echo of .dial-graphic-box pattern */
.ai-orbit-pulse-ring {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, 0.04);
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.02);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: ai-ring-breathe 5s ease-in-out infinite;
}

.ai-orbit-pulse-ring--2 {
    width: 480px;
    height: 480px;
    border-color: rgba(0, 240, 255, 0.02);
    box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.01);
    animation-delay: -2.5s;
    animation-duration: 7s;
}

@keyframes ai-ring-breathe {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.04); }
}

/* ── Micro-text list in center ── */
.ai-orbit-microtexts {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

.ai-micro-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition-delay: var(--delay, 0s) !important;
}

.ai-micro-dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    background: var(--active-accent);
    border-radius: 50%;
    margin-top: 0.45rem;
    box-shadow: 0 0 8px var(--active-accent);
    transition: var(--theme-transition);
    animation: pulse 1.4s infinite alternate;
}

.ai-micro-item p {
    font-size: 0.95rem;
    color: #9CA3AF;
    line-height: 1.6;
    font-weight: 300;
    font-style: italic;
}

/* ── Bottom strip ── */
.ai-orbit-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.2);
}

.ai-strip-sep {
    color: var(--active-accent);
    font-size: 1.1rem;
    opacity: 0.4;
    transition: var(--theme-transition);
}

/* ── Float keyframe (CSS fallback) ── */
@keyframes ai-float-a {
    0%, 100% { transform: translate3d(0, 0px, 0); }
    50%       { transform: translate3d(0, -14px, 0); }
}

@keyframes ai-float-b {
    0%, 100% { transform: translate3d(0, -8px, 0); }
    50%       { transform: translate3d(0, 6px, 0); }
}

/* Apply default CSS float to cards (JS parallax overrides inline) */
#ai-ecosystem:not(.js-parallax-active) .ai-float-card:nth-child(1) {
    animation: ai-float-a 6s ease-in-out infinite;
}
#ai-ecosystem:not(.js-parallax-active) .ai-float-card:nth-child(2) {
    animation: ai-float-b 8s ease-in-out infinite;
    animation-delay: -3s;
}

/* ── Order-mode border-radius override (matches body.order-theme .sandbox-drag-card → border-radius: 0) ── */
/* ── Order-mode purple/cyan brutalist styling ── */
body.order-theme .ai-float-card {
    border-radius: 0;
    border-color: rgba(6, 182, 212, 0.35);
    background: linear-gradient(135deg, rgba(20, 8, 48, 0.85) 0%, rgba(6, 2, 20, 0.98) 100%);
    box-shadow: 0 30px 60px rgba(0, 240, 255, 0.04), 0 0 20px rgba(6, 182, 212, 0.15);
}

body.order-theme .ai-float-card:hover {
    border-color: rgba(6, 182, 212, 0.8);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(6, 182, 212, 0.5);
}

body.order-theme .ai-card-corner {
    border-color: #22D3EE;
}

body.order-theme .ai-card-tag {
    color: #22D3EE;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.45);
}

body.order-theme .ai-card-metric span {
    color: #22D3EE;
}

body.order-theme .ai-micro-dot {
    background: #22D3EE;
    box-shadow: 0 0 10px #22D3EE;
}

body.order-theme .ai-orbit-pulse-ring {
    border-color: rgba(6, 182, 212, 0.08);
    box-shadow: inset 0 0 30px rgba(6, 182, 212, 0.04);
}

body.order-theme .ai-strip-sep {
    color: #22D3EE;
}

/* ── Chaos-mode purple/pink creative styling ── */
body.chaos-theme .ai-float-card {
    border-radius: 24px 8px 24px 8px;
    border-color: rgba(236, 72, 153, 0.35);
    background: linear-gradient(135deg, rgba(46, 6, 74, 0.8) 0%, rgba(18, 2, 38, 0.95) 100%);
    box-shadow: 0 30px 60px rgba(224, 0, 255, 0.08), 0 0 20px rgba(236, 72, 153, 0.15);
}

body.chaos-theme .ai-float-card:hover {
    border-color: rgba(236, 72, 153, 0.8);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(236, 72, 153, 0.5);
}

body.chaos-theme .ai-card-corner {
    border-color: #EC4899;
}

body.chaos-theme .ai-card-tag {
    color: #F472B6;
    text-shadow: 0 0 10px rgba(236, 72, 153, 0.45);
}

body.chaos-theme .ai-card-metric span {
    color: #F472B6;
}

body.chaos-theme .ai-card-icon-zone::before {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, transparent 70%);
}

body.chaos-theme .ai-micro-dot {
    background: #EC4899;
    box-shadow: 0 0 10px #EC4899;
}

body.chaos-theme .ai-orbit-pulse-ring {
    border-color: rgba(236, 72, 153, 0.08);
    box-shadow: inset 0 0 30px rgba(236, 72, 153, 0.04);
}

body.chaos-theme .ai-strip-sep {
    color: #EC4899;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .ai-orbit-stage {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        min-height: unset;
        gap: 2rem;
    }

    /* Center column spans both columns at the bottom */
    .ai-orbit-center {
        grid-column: 1 / -1;
        order: -1;
        padding: 2rem 0;
    }

    .ai-orbit-pulse-ring {
        width: 200px;
        height: 200px;
    }

    .ai-orbit-pulse-ring--2 {
        width: 300px;
        height: 300px;
    }

    .ai-orbit-col--left,
    .ai-orbit-col--right {
        align-items: stretch;
    }

    .ai-float-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .ai-orbit-stage {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .ai-orbit-col--left,
    .ai-orbit-col--right {
        flex-direction: row;
        gap: 1.5rem;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .ai-orbit-col--left::-webkit-scrollbar,
    .ai-orbit-col--right::-webkit-scrollbar {
        display: none;
    }

    .ai-float-card {
        min-width: 260px;
        max-width: 280px;
        /* Disable individual float on mobile — too heavy */
        animation: none !important;
    }

    .ai-orbit-center {
        padding: 1.5rem 0;
    }

    .ai-orbit-pulse-ring,
    .ai-orbit-pulse-ring--2 {
        display: none; /* Clean up on mobile */
    }

    .ai-orbit-strip {
        gap: 0.75rem 1rem;
        font-size: 0.7rem;
    }
}

/* ── Accessibility: respect reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .ai-float-card {
        animation: none !important;
    }
    .ai-orbit-pulse-ring {
        animation: none !important;
    }
    .ai-micro-dot {
        animation: none !important;
    }
}

/* ==========================================================================
   SHADDAI — SPACE SHOOTER GAME STYLES
   ========================================================================== */


/* ---- Section wrapper ---- */
.shaddai-section {
    padding-bottom: 0 !important;
    overflow: hidden;
}

.shaddai-title {
    background: linear-gradient(90deg, #00F8FF 0%, #8B5CF6 50%, #FF2D55 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.12em;
    font-size: clamp(3rem, 10vw, 7rem) !important;
    text-shadow: none;
    filter: drop-shadow(0 0 40px rgba(0, 248, 255, 0.35));
}

.shaddai-subtitle {
    color: rgba(180, 210, 255, 0.7);
    font-family: var(--font-logic);
    font-size: 1rem;
    letter-spacing: 0.06em;
    margin-top: -0.5rem;
    margin-bottom: 2rem;
}

/* ---- Utility ---- */
.hidden { display: none !important; }

/* ---- INTRO SCREEN ---- */
.shaddai-intro-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 1rem 3rem;
}

.shaddai-intro-card {
    position: relative;
    background: rgba(4, 6, 20, 0.92);
    border: 1px solid rgba(0, 248, 255, 0.22);
    border-radius: 20px;
    padding: 3rem 3.5rem 2.5rem;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 60px rgba(0, 248, 255, 0.08), 0 0 120px rgba(139, 92, 246, 0.06), inset 0 1px 0 rgba(255,255,255,0.06);
    overflow: hidden;
}

/* Animated background stars for intro card */
.shaddai-stars-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.7) 1px, transparent 1px),
        radial-gradient(circle, rgba(0, 248, 255, 0.5) 1px, transparent 1px),
        radial-gradient(circle, rgba(180, 130, 255, 0.5) 1px, transparent 1px);
    background-size: 120px 120px, 80px 80px, 200px 200px;
    background-position: 0 0, 40px 40px, 100px 20px;
    opacity: 0.35;
    pointer-events: none;
    animation: starsScroll 12s linear infinite;
}

@keyframes starsScroll {
    from { background-position: 0 0, 40px 40px, 100px 20px; }
    to   { background-position: 0 120px, 40px 120px, 100px 140px; }
}

.shaddai-ship-icon {
    font-size: 3.5rem;
    animation: shipHover 2.5s ease-in-out infinite;
    display: block;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 20px rgba(0, 200, 255, 0.8));
}

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

.shaddai-card-title {
    font-family: 'Syne', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    letter-spacing: 0.2em;
    background: linear-gradient(90deg, #00F8FF, #8B5CF6, #FF2D55);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.4rem;
}

.shaddai-card-sub {
    color: rgba(180, 210, 255, 0.7);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    margin-bottom: 1.8rem;
    font-family: var(--font-logic);
}

.shaddai-name-input {
    width: 100%;
    background: rgba(0, 248, 255, 0.05);
    border: 1px solid rgba(0, 248, 255, 0.3);
    border-radius: 10px;
    padding: 0.85rem 1.2rem;
    color: #FFFFFF;
    font-family: 'Space Grotesk', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
    outline: none;
    margin-bottom: 1.4rem;
    box-sizing: border-box;
    caret-color: #00F8FF;
}

.shaddai-name-input::placeholder {
    color: rgba(0, 248, 255, 0.35);
    font-weight: 400;
    letter-spacing: 0.06em;
}

.shaddai-name-input:focus {
    border-color: rgba(0, 248, 255, 0.7);
    box-shadow: 0 0 0 3px rgba(0, 248, 255, 0.12);
    background: rgba(0, 248, 255, 0.08);
}

.shaddai-start-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #00C8F8, #8B5CF6);
    border: none;
    border-radius: 12px;
    padding: 0.95rem 2.5rem;
    color: #FFFFFF;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    width: 100%;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 24px rgba(0, 200, 248, 0.3), 0 0 0 0 rgba(0, 200, 248, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.shaddai-start-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.shaddai-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 200, 248, 0.45), 0 0 0 2px rgba(0, 200, 248, 0.3);
}

.shaddai-start-btn:hover::before { opacity: 1; }

.shaddai-start-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(0, 200, 248, 0.3);
}

.shaddai-controls-hint {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: rgba(120, 160, 200, 0.6);
    font-size: 0.78rem;
    font-family: var(--font-logic);
    letter-spacing: 0.04em;
}

/* ==========================================================================
   SECCIÓN: TRANSFORMACIÓN IA (EXPERIENCIA INTERACTIVA) — IA HUB
   ========================================================================== */
#transformacion-ia {
    position: relative;
    z-index: 5;
}

.ia-hub-tabs-container {
    width: 100%;
    margin-bottom: 3.5rem;
    border-bottom: 1px solid var(--border-logic);
    padding-bottom: 0.8rem;
}

.ia-hub-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.ia-hub-tab-btn {
    background: none;
    border: none;
    color: #9CA3AF;
    font-family: var(--font-logic) !important;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    padding: 0.8rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transition: var(--theme-transition);
    border-bottom: 2px solid transparent;
    position: relative;
}

.ia-hub-tab-btn:hover {
    color: #FFFFFF;
}

.ia-hub-tab-btn.active {
    color: var(--active-accent);
    border-bottom-color: var(--active-accent);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

body.chaos-theme .ia-hub-tab-btn.active {
    color: var(--color-creative-primary);
    border-bottom-color: var(--color-creative-primary);
}

.ia-hub-tab-btn svg {
    stroke-width: 2px;
    transition: var(--theme-transition);
}

.ia-hub-tab-btn.active svg {
    transform: scale(1.1);
}

/* --- CARD GENERAL DEL HUB --- */
.ia-hub-card {
    padding: 4.5rem;
    background: rgba(8, 8, 12, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 50px 120px rgba(0,0,0,0.85), 0 0 50px rgba(255,255,255,0.005);
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.chaos-theme .ia-hub-card {
    background: rgba(20, 2, 32, 0.45);
    border-color: rgba(255, 0, 85, 0.15);
    border-radius: 48px 16px 48px 16px;
    box-shadow: 0 30px 60px rgba(224, 0, 255, 0.06), 0 0 30px rgba(255, 0, 85, 0.02);
}

body.order-theme .ia-hub-card {
    background: rgba(6, 6, 8, 0.95);
    border-color: rgba(255, 255, 255, 0.05);
    border-radius: 0px;
    box-shadow: none;
}

/* --- ESTRUCTURA PANEL LAYOUT --- */
.ia-hub-tab-panel {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.ia-hub-tab-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.panel-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4.5rem;
    align-items: start;
}

.panel-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.panel-info h3 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    color: #FFFFFF;
}

body.chaos-theme .panel-info h3 {
    font-family: var(--font-creative) !important;
}

.panel-info p {
    font-size: 1.08rem;
    line-height: 1.7;
    color: #9CA3AF;
    font-weight: 300;
}

.panel-interactive {
    width: 100%;
    position: relative;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- WIZARD / PREGUNTAS --- */
.ia-wizard-step, .madurez-q-step {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    animation: fadeInPanel 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.wizard-progress {
    font-family: var(--font-logic) !important;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--active-accent);
}

.wizard-question {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.35;
    color: #FFFFFF;
}

.wizard-options, .wizard-options-grid {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.wizard-opt-btn {
    width: 100%;
    padding: 1.15rem 1.6rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: #D1D5DB;
    font-family: var(--font-logic) !important;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: var(--theme-transition);
    position: relative;
    overflow: hidden;
}

.wizard-opt-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    transform: translateX(4px);
}

.wizard-opt-btn:active {
    transform: translateX(2px);
}

.wizard-opt-btn.selected {
    border-color: var(--active-accent);
    background: rgba(0, 240, 255, 0.04);
    color: #FFFFFF;
}

body.chaos-theme .wizard-opt-btn {
    border-radius: 12px 4px 12px 4px;
}

body.chaos-theme .wizard-opt-btn.selected {
    border-color: var(--color-creative-primary);
    background: rgba(255, 0, 85, 0.04);
}

/* --- LOADING ESTADOS EN MÓDULO --- */
.panel-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
    width: 100%;
    min-height: 300px;
    animation: fadeInPanel 0.4s ease both;
}

.neural-spinner-micro {
    position: relative;
    width: 65px;
    height: 65px;
}

.neural-spinner-micro svg {
    width: 100%;
    height: 100%;
    animation: spin 2.5s linear infinite;
}

.neural-spinner-micro circle {
    fill: none;
}

.neural-spinner-micro .ring-back {
    stroke: rgba(255, 255, 255, 0.03);
}

.neural-spinner-micro .ring-fill {
    stroke: var(--active-accent);
    stroke-linecap: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 150;
    animation: dash 1.5s ease-in-out infinite alternate;
}

.loading-status-text {
    font-family: var(--font-logic) !important;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #6B7280;
    text-align: center;
}

/* --- RESULTADOS TÁCTICOS --- */
.panel-result {
    width: 100%;
    animation: resultEnter 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.result-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 1.25rem;
}

.result-badge {
    align-self: flex-start;
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    font-family: var(--font-logic) !important;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-logic-accent);
}

body.chaos-theme .result-badge {
    background: rgba(255, 0, 85, 0.08);
    border-color: rgba(255, 0, 85, 0.2);
    color: var(--color-creative-primary);
}

.result-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #FFFFFF;
}

.result-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.result-section {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.result-section-label {
    font-family: var(--font-logic) !important;
    font-size: 0.65rem;
    font-weight: 700;
    color: #6B7280;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.result-section p {
    font-size: 1.02rem;
    line-height: 1.6;
    color: #D1D5DB;
    font-weight: 300;
}

.result-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-left: 0.25rem;
}

.result-bullets li {
    position: relative;
    padding-left: 1.6rem;
    font-size: 1.02rem;
    line-height: 1.5;
    color: #D1D5DB;
    font-weight: 300;
}

.result-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--active-accent);
    font-weight: 700;
}

.highlight-box {
    background: rgba(255, 255, 255, 0.015);
    border: 1px dashed rgba(255, 255, 255, 0.06);
    padding: 1.25rem 1.6rem;
    border-radius: 4px;
}

body.chaos-theme .highlight-box {
    border-color: rgba(255, 0, 85, 0.15);
    background: rgba(255, 0, 85, 0.01);
    border-radius: 12px 4px 12px 4px;
}

.result-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.result-cta-btn {
    flex-grow: 1;
    justify-content: center;
    font-size: 0.82rem;
}

.wizard-reset-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.12);
    color: #9CA3AF;
    font-size: 0.78rem;
    padding: 0.9rem 1.5rem;
}

.wizard-reset-btn:hover {
    border-color: rgba(255,255,255,0.3);
    color: #FFF;
}

/* --- ASISTENTE CHATBOT --- */
.chat-container {
    background: #020204;
    border: 1px solid var(--border-logic);
    border-radius: 6px;
    height: 480px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 4px 20px rgba(0,0,0,0.9);
}

body.chaos-theme .chat-container {
    border-radius: 24px 8px 24px 8px;
    border-color: rgba(255,0,85,0.15);
}

.chat-messages {
    flex: 1;
    padding: 1.8rem 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    scrollbar-width: thin;
}

.chat-msg {
    max-width: 82%;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    animation: msgEnter 0.3s ease both;
}

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

.bot-msg {
    align-self: flex-start;
}

.user-msg {
    align-self: flex-end;
}

.msg-sender {
    font-family: var(--font-logic) !important;
    font-size: 0.58rem;
    font-weight: 700;
    color: #4B5563;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.user-msg .msg-sender {
    align-self: flex-end;
    color: var(--active-accent);
}

.msg-content {
    padding: 0.95rem 1.25rem;
    border-radius: 8px;
    font-size: 0.92rem;
    line-height: 1.55;
    font-weight: 300;
}

.bot-msg .msg-content {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: #D1D5DB;
    border-radius: 0 12px 12px 12px;
}

body.chaos-theme .bot-msg .msg-content {
    background: rgba(20, 2, 32, 0.35);
    border-color: rgba(255, 0, 85, 0.12);
}

.user-msg .msg-content {
    background: var(--active-gradient);
    color: #000;
    font-weight: 600;
    border-radius: 12px 0 12px 12px;
}

body.chaos-theme .user-msg .msg-content {
    background: linear-gradient(135deg, var(--color-creative-primary) 0%, var(--color-creative-accent) 100%);
    color: #FFF;
}

/* Sugerencias Rápidas */
.quick-prompts-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 1.5rem;
}

.quick-prompts-label {
    font-family: var(--font-logic) !important;
    font-size: 0.65rem;
    font-weight: 700;
    color: #4B5563;
    letter-spacing: 0.1em;
}

.quick-prompts-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.quick-prompt-btn {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    color: #9CA3AF;
    font-family: var(--font-logic) !important;
    font-size: 0.78rem;
    font-weight: 500;
    text-align: left;
    padding: 0.65rem 1rem;
    cursor: pointer;
    transition: var(--theme-transition);
}

.quick-prompt-btn:hover {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.12);
    color: #FFF;
    transform: translateX(2px);
}

body.chaos-theme .quick-prompt-btn {
    border-radius: 8px 3px 8px 3px;
}

/* Chat Input Bar */
.chat-input-bar {
    display: flex;
    border-top: 1px solid rgba(255,255,255,0.04);
    background: rgba(0,0,0,0.5);
    padding: 0.8rem;
    gap: 0.8rem;
}

.chat-input-bar input {
    margin-bottom: 0 !important;
}

.chat-send-btn {
    aspect-ratio: 1;
    flex-shrink: 0;
    padding: 0 1.25rem !important;
    justify-content: center;
}

/* Chat Loading Dots */
.chat-loading-indicator {
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: fadeInPanel 0.25s ease both;
}

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

.chat-loading-dots span {
    width: 6px;
    height: 6px;
    background-color: var(--active-accent);
    border-radius: 50%;
    animation: loadingDots 1.4s infinite ease-in-out both;
}

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

.chat-loading-text {
    font-family: var(--font-logic) !important;
    font-size: 0.68rem;
    color: #4B5563;
    letter-spacing: 0.04em;
}

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

/* Conversion Banner */
.chat-conversion-banner {
    position: absolute;
    bottom: 4.8rem;
    left: 1rem;
    right: 1rem;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid var(--active-accent);
    padding: 0.9rem 1.4rem;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    animation: bannerSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    z-index: 20;
}

body.chaos-theme .chat-conversion-banner {
    border-color: var(--color-creative-primary);
    background: rgba(20, 2, 32, 0.95);
    border-radius: 12px 4px 12px 4px;
}

.chat-conversion-banner span {
    font-family: var(--font-logic) !important;
    font-size: 0.85rem;
    font-weight: 700;
    color: #FFFFFF;
}

.chat-conversion-banner .result-cta-btn {
    padding: 0.5rem 1.2rem !important;
    font-size: 0.72rem !important;
    border-radius: 4px;
    color: #00F0FF !important;
    border: 1px solid #00F0FF !important;
    background: rgba(0, 240, 255, 0.05) !important;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-conversion-banner .result-cta-btn:hover {
    background: #00F0FF !important;
    color: #000000 !important;
    box-shadow: 0 0 15px #00F0FF;
}

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

/* --- MADUREZ CIRCULAR PROGRESO --- */
.madurez-score-visualization {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem;
}

.score-circle-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
}

.score-circle-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-circle-bg {
    stroke: rgba(255, 255, 255, 0.025);
}

.score-circle-fill {
    stroke: var(--active-accent);
    stroke-linecap: round;
    stroke-dasharray: 264; /* 2 * pi * r (r=42) => 263.89 */
    stroke-dashoffset: 264;
    transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 0 8px var(--active-accent));
}

body.chaos-theme .score-circle-fill {
    stroke: var(--color-creative-primary);
    filter: drop-shadow(0 0 8px var(--color-creative-primary));
}

.score-circle-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.score-pct-value {
    font-family: var(--font-logic) !important;
    font-size: 2.8rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1;
}

.score-pct-label {
    font-family: var(--font-logic) !important;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--active-accent);
}

body.chaos-theme .score-pct-label {
    color: var(--color-creative-primary);
}

/* Keyframes de Carga */
@keyframes dash {
    0% { stroke-dashoffset: 200; }
    100% { stroke-dashoffset: 40; }
}

@keyframes fadeInPanel {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- RESPONSIVIDAD HUB --- */
@media (max-width: 1024px) {
    .panel-layout {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .panel-info h3 {
        font-size: 2.2rem;
    }
    .ia-hub-card {
        padding: 3rem 2.2rem;
    }
}

@media (max-width: 768px) {
    .ia-hub-tabs {
        justify-content: center;
        gap: 0.5rem;
    }
    .ia-hub-tab-btn {
        width: 100%;
        justify-content: center;
    }
    .wizard-question {
        font-size: 1.3rem;
    }
    .chat-container {
        height: 420px;
    }
    .chat-messages {
        padding: 1.25rem 1rem;
    }
    .chat-conversion-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
        bottom: 4.8rem;
    }
    .chat-conversion-banner .result-cta-btn {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   SECCIÓN: INSIGHT ESTRATÉGICO DIARIO — POWERED BY GEMINI
   ========================================================================== */
.insight-daily-section {
    position: relative;
    z-index: 5;
}

.insight-wrapper {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    position: relative;
}

/* --- TARJETA GLASSMOPHISM --- */
.insight-card {
    position: relative;
    padding: 3.5rem 3rem;
    border: 1px solid var(--border-logic);
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 255, 255, 0.01);
    transition: var(--theme-transition);
    overflow: hidden;
}

body.chaos-theme .insight-card {
    background: rgba(20, 2, 32, 0.45);
    border-color: rgba(255, 0, 85, 0.15);
    border-radius: 48px 16px 48px 16px;
    box-shadow: 0 30px 60px rgba(224, 0, 255, 0.06), 0 0 30px rgba(255, 0, 85, 0.02);
}

body.order-theme .insight-card {
    background: rgba(6, 6, 8, 0.95);
    border-color: rgba(255, 255, 255, 0.05);
    border-radius: 0px;
    box-shadow: none;
}

.insight-card--fallback {
    border-color: rgba(239, 68, 68, 0.2);
}

/* --- HEADER DE LA TARJETA --- */
.insight-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.insight-card-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.insight-gemini-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 20px;
    font-family: var(--font-logic) !important;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #00F2FE;
    position: relative;
}

.insight-gemini-badge--offline {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.insight-badge-pulse {
    width: 6px;
    height: 6px;
    background-color: #00F2FE;
    border-radius: 50%;
    position: absolute;
    top: -2px;
    right: -2px;
    box-shadow: 0 0 8px #00F2FE;
    animation: pulse 1s infinite alternate;
}

.insight-date-tag {
    font-family: var(--font-logic) !important;
    font-size: 0.72rem;
    color: #6B7280;
    font-weight: 600;
}

/* --- CONTENIDO --- */
.insight-card-title {
    font-size: 2.2rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: #FFFFFF;
}

body.chaos-theme .insight-card-title {
    font-family: var(--font-creative) !important;
    background: linear-gradient(135deg, #FF0055, #E000FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.order-theme .insight-card-title {
    font-family: var(--font-logic) !important;
}

.insight-card-body {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #D1D5DB;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* --- FOOTER DE LA TARJETA --- */
.insight-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 2rem;
    margin-top: 2rem;
}

.insight-action-block {
    flex: 1;
}

.insight-action-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--active-accent);
    font-weight: 600;
    transition: var(--theme-transition);
}

.insight-apply-btn {
    font-size: 0.75rem;
    padding: 0.9rem 1.6rem;
    flex-shrink: 0;
}

body.chaos-theme .insight-apply-btn {
    border-radius: 20px 8px 20px 8px;
}

body.order-theme .insight-apply-btn {
    border-radius: 0px;
}

/* --- DYNAMIC LOADING NEURAL STATE --- */
.insight-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    border: 1px solid var(--border-logic);
    background: rgba(6, 6, 8, 0.4);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    min-height: 480px;
    transition: var(--theme-transition);
}

body.chaos-theme .insight-loading-state {
    background: rgba(20, 2, 32, 0.25);
    border-color: rgba(255, 0, 85, 0.12);
    border-radius: 48px 16px 48px 16px;
}

body.order-theme .insight-loading-state {
    background: rgba(6, 6, 8, 0.95);
    border-color: rgba(255, 255, 255, 0.05);
    border-radius: 0px;
}

.insight-neural-loader {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 3rem;
}

.neural-svg {
    width: 100%;
    height: 100%;
    z-index: 2;
    position: relative;
}

.neural-ring-svg {
    stroke: var(--active-accent);
    opacity: 0.15;
    transform-origin: center;
    transition: stroke 0.6s ease;
}

.neural-ring-svg--1 {
    animation: spin 25s linear infinite;
    stroke-dasharray: 8, 12;
}

.neural-ring-svg--2 {
    animation: spin-reverse 20s linear infinite;
    stroke-dasharray: 4, 8;
}

.neural-ring-svg--3 {
    animation: spin 15s linear infinite;
    stroke-dasharray: 12, 6;
}

.neural-dot {
    fill: var(--active-accent);
    opacity: 0.7;
    transition: fill 0.6s ease;
    animation: pulse-node 2s infinite alternate;
}

.neural-core-ring {
    stroke: var(--active-accent);
    stroke-dasharray: 4, 4;
    opacity: 0.4;
    animation: spin 8s linear infinite;
    transform-origin: center;
    transition: stroke 0.6s ease;
}

.neural-core-mid {
    fill: var(--active-accent);
    opacity: 0.2;
    animation: pulse-core-mid 1.5s infinite alternate;
    transition: fill 0.6s ease;
}

.neural-core-inner {
    fill: #FFFFFF;
    box-shadow: 0 0 15px #FFFFFF;
}

.neural-line {
    stroke: var(--active-accent);
    opacity: 0.2;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: draw-line 3s infinite ease-in-out;
    transition: stroke 0.6s ease;
}

.nl-cx1 { animation-delay: 0.2s; }
.nl-cx2 { animation-delay: 0.5s; }
.nl-cx3 { animation-delay: 0.8s; }
.nl-cx4 { animation-delay: 1.1s; }

.neural-glow-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, var(--active-accent) 0%, transparent 70%);
    opacity: 0.12;
    z-index: 1;
    filter: blur(10px);
    pointer-events: none;
    animation: pulse-glow-orb 3s infinite alternate;
    transition: background 0.6s ease;
}

/* --- TEXT BLOCK --- */
.insight-loading-text-block {
    text-align: center;
    margin-bottom: 2.5rem;
    z-index: 2;
}

.insight-loading-phrase {
    font-size: 1.35rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    height: 2rem;
    transition: opacity 0.3s ease;
}

.insight-loading-sub {
    font-family: var(--font-logic) !important;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #6B7280;
}

/* --- PROGRESS TRACK --- */
.insight-progress-track {
    width: 320px;
    height: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.8rem;
    z-index: 2;
}

.insight-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--active-gradient);
    border-radius: 4px;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.insight-progress-scan {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 60px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: progress-scan 1.5s infinite linear;
}

.insight-progress-labels {
    display: flex;
    justify-content: space-between;
    width: 320px;
    font-family: var(--font-logic) !important;
    font-size: 0.65rem;
    font-weight: 700;
    color: #4B5563;
    letter-spacing: 0.05em;
    z-index: 2;
}

#insight-progress-pct {
    color: var(--active-accent);
}

/* --- POWERED BY ROW --- */
.insight-powered-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.25rem;
    padding: 0 0.5rem;
}

.insight-powered-text {
    font-family: var(--font-logic) !important;
    font-size: 0.72rem;
    color: #4B5563;
    font-weight: 600;
}

.insight-refresh-micro {
    background: none;
    border: none;
    color: #6B7280;
    font-family: var(--font-logic) !important;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.insight-refresh-micro:hover {
    color: var(--active-accent);
}

.insight-refresh-micro svg {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.insight-refresh-micro:hover svg {
    transform: rotate(180deg);
}

.insight-refresh-micro:active {
    transform: scale(0.95);
}

/* --- KEYFRAMES --- */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes pulse-node {
    0% { opacity: 0.4; transform: scale(0.8); }
    100% { opacity: 0.9; transform: scale(1.2); }
}

@keyframes pulse-core-mid {
    0% { opacity: 0.1; transform: scale(0.9); }
    100% { opacity: 0.35; transform: scale(1.1); }
}

@keyframes pulse-glow-orb {
    0% { opacity: 0.08; filter: blur(10px) scale(0.9); }
    100% { opacity: 0.18; filter: blur(14px) scale(1.1); }
}

@keyframes draw-line {
    0%, 100% { stroke-dashoffset: 300; opacity: 0.1; }
    50% { stroke-dashoffset: 0; opacity: 0.4; }
}

@keyframes progress-scan {
    0% { transform: translateX(-60px); }
    100% { transform: translateX(320px); }
}

/* Responsive Daily Insight */
@media (max-width: 768px) {
    .insight-card {
        padding: 2.5rem 1.75rem;
    }
    .insight-card-title {
        font-size: 1.8rem;
    }
    .insight-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    .insight-apply-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .insight-powered-row {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }
    .insight-progress-track,
    .insight-progress-labels {
        width: 100%;
    }
}

/* ---- GAME WRAPPER ---- */
.shaddai-game-wrapper {
    position: relative;
    width: 100%;
    max-width: 860px;
    margin: 0 auto 3rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 248, 255, 0.18);
    overflow: hidden;
    box-shadow: 0 0 80px rgba(0, 100, 255, 0.12), 0 0 0 1px rgba(0,248,255,0.06);
    background: #01000A;
    display: flex;
    flex-direction: column;
}

/* ---- HUD ---- */
.shaddai-hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.4rem;
    background: rgba(0, 8, 30, 0.9);
    border-bottom: 1px solid rgba(0, 248, 255, 0.15);
    gap: 1rem;
    flex-shrink: 0;
    z-index: 2;
}

.shaddai-hud-left,
.shaddai-hud-right,
.shaddai-hud-center {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shaddai-hud-center {
    align-items: center;
    flex: 1;
}

.shaddai-hud-right {
    align-items: flex-end;
}

.shaddai-hud-label {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: rgba(0, 248, 255, 0.5);
    text-transform: uppercase;
}

.shaddai-hud-value {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.08em;
}

.shaddai-hud-score-val {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #00F8FF;
    letter-spacing: 0.04em;
    text-shadow: 0 0 14px rgba(0, 248, 255, 0.6);
}

.shaddai-hud-lives {
    display: flex;
    gap: 4px;
}

.shaddai-heart {
    font-size: 1rem;
    color: rgba(255, 80, 80, 0.25);
    transition: color 0.3s, text-shadow 0.3s;
}

.shaddai-heart.active {
    color: #FF4466;
    text-shadow: 0 0 8px rgba(255, 60, 100, 0.8);
}

.shaddai-hud-level {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: #FFB800;
    letter-spacing: 0.1em;
    text-shadow: 0 0 8px rgba(255, 184, 0, 0.6);
}

/* ---- CANVAS ---- */
#shaddai-canvas {
    display: block;
    width: 100%;
    height: 560px;
    max-height: 65vh;
    background: #01000A;
    cursor: crosshair;
    touch-action: none;
}

/* ---- MOBILE CONTROLS ---- */
.shaddai-mobile-controls {
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.5rem 1rem;
    background: rgba(0, 4, 20, 0.95);
    border-top: 1px solid rgba(0, 248, 255, 0.1);
    gap: 1rem;
    flex-shrink: 0;
}

.shaddai-dpad {
    display: grid;
    grid-template-rows: auto auto auto;
    justify-items: center;
    gap: 3px;
}

.shaddai-dpad-row {
    display: flex;
    gap: 3px;
    align-items: center;
}

.shaddai-dpad-center {
    width: 42px;
    height: 42px;
    background: rgba(0, 248, 255, 0.05);
    border-radius: 4px;
}

.shaddai-dpad-btn {
    width: 50px;
    height: 50px;
    background: rgba(0, 30, 60, 0.9);
    border: 1px solid rgba(0, 248, 255, 0.3);
    border-radius: 8px;
    color: #00F8FF;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    transition: background 0.1s, transform 0.08s;
    touch-action: manipulation;
}

.shaddai-dpad-btn:active,
.shaddai-dpad-btn:focus {
    background: rgba(0, 100, 180, 0.6);
    transform: scale(0.93);
    outline: none;
}

.shaddai-fire-btn {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 60, 0, 0.6), rgba(180, 0, 0, 0.3));
    border: 2px solid rgba(255, 100, 0, 0.5);
    border-radius: 50%;
    color: #FF8C00;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    transition: transform 0.08s, box-shadow 0.08s;
    box-shadow: 0 0 20px rgba(255, 80, 0, 0.25);
}

.shaddai-fire-btn small {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 180, 80, 0.8);
}

.shaddai-fire-btn:active,
.shaddai-fire-btn:focus {
    transform: scale(0.91);
    box-shadow: 0 0 36px rgba(255, 120, 0, 0.6);
    outline: none;
}

/* ---- GAME OVER SCREEN ---- */
.shaddai-gameover-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 1rem 3rem;
}

.shaddai-go-card {
    background: rgba(10, 0, 20, 0.96);
    border: 1px solid rgba(255, 60, 120, 0.35);
    border-radius: 20px;
    padding: 3rem 3.5rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 80px rgba(255, 40, 100, 0.1), 0 0 160px rgba(139, 92, 246, 0.06);
    animation: goCardIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.shaddai-go-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    color: #FF4466;
    text-shadow: 0 0 20px rgba(255, 60, 100, 0.7);
    margin-bottom: 0.4rem;
}

.shaddai-go-pilot {
    color: rgba(200, 220, 255, 0.7);
    font-family: var(--font-logic);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.shaddai-go-pilot span {
    color: #FFFFFF;
    font-weight: 700;
}

.shaddai-go-score-label {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: rgba(0, 248, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.shaddai-go-score {
    font-family: 'Syne', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: #00F8FF;
    text-shadow: 0 0 30px rgba(0, 248, 255, 0.7);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.shaddai-go-actions {
    display: flex;
    gap: 1rem;
}

.shaddai-go-actions .shaddai-start-btn {
    flex: 1;
    margin-bottom: 0;
}

.shaddai-menu-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.95rem 1.5rem;
    color: rgba(200, 220, 255, 0.85);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.shaddai-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
}

/* ---- RESPONSIVE — Show mobile controls on touch devices / small screens ---- */
@media (max-width: 768px) {
    .shaddai-mobile-controls {
        display: flex;
    }

    #shaddai-canvas {
        height: 45vh;
        min-height: 280px;
    }

    .shaddai-intro-card,
    .shaddai-go-card {
        padding: 2rem 1.5rem;
    }

    .shaddai-controls-hint {
        display: none; /* keyboard hints hidden on mobile */
    }

    .shaddai-game-wrapper {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin: 0 0 2rem;
    }

    .shaddai-go-actions {
        flex-direction: column;
    }

    .shaddai-go-score {
        font-size: 2.5rem;
    }
}

@media (pointer: coarse) {
    .shaddai-mobile-controls { display: flex; }
    .shaddai-controls-hint   { display: none; }
}

/* ==========================================================================
   INITIAL INITIALIZATION PRELOADER — HIGH TECH & IA
   ========================================================================== */

/* Body scroll lock when preloader is active */
body.preloader-active {
    overflow: hidden !important;
    height: 100vh !important;
}

.ai-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: #040406;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Space Grotesk', sans-serif;
}

/* Slide up and fade out transition */
.ai-preloader.fade-out {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px) scale(1.02);
}

.ai-preloader-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.ai-preloader-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.012) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center;
    opacity: 0.85;
}

.ai-preloader-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 0%, transparent 70%);
    transform: translate(-50%, -50%);
}

.ai-preloader-stage {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    width: 100%;
    max-width: 440px;
    padding: 2rem;
}

.ai-orbit {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    animation: preloader-float 4s ease-in-out infinite;
}

.ai-character {
    width: 100px;
    height: 100px;
    object-fit: contain;
    z-index: 3;
    position: relative;
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.22));
}

.ai-halo {
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
    z-index: 2;
    pointer-events: none;
    animation: preloader-halo 2.2s ease-in-out infinite alternate;
}

.ai-orbit-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, 0.08);
    pointer-events: none;
    z-index: 2;
}

.ai-orbit-circle--outer {
    inset: -18px;
    border-style: dashed;
    border-width: 1px;
    animation: preloader-spin 25s linear infinite;
}

.ai-orbit-circle--inner {
    inset: -6px;
    border-width: 1.5px;
    border-color: rgba(0, 240, 255, 0.15) transparent rgba(0, 240, 255, 0.15) transparent;
    animation: preloader-spin-reverse 12s linear infinite;
}

.ai-scan-line {
    position: absolute;
    width: 130px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00F0FF, transparent);
    z-index: 4;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0;
    animation: preloader-scan 3.5s ease-in-out infinite;
    box-shadow: 0 0 6px #00F0FF;
}

.ai-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    text-align: center;
}

.ai-preloader-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.28em;
    color: #FFFFFF;
    margin-bottom: 0.2rem;
    text-indent: 0.28em;
}

.ai-accent {
    color: var(--active-accent);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.45);
}

.ai-loading-label {
    font-family: var(--font-logic), sans-serif;
    font-size: 0.84rem;
    color: #9CA3AF;
    letter-spacing: 0.04em;
    height: 1.4rem;
    transition: opacity 0.3s ease;
}

.ai-progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
    margin-top: 0.4rem;
}

.ai-progress {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 1.5px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.01);
}

.ai-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--active-accent);
    box-shadow: 0 0 10px var(--active-accent), 0 0 3px var(--active-accent);
    border-radius: 1.5px;
    transition: width 0.1s linear;
}

.ai-progress-percent {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--active-accent);
    width: 38px;
    text-align: right;
    text-shadow: 0 0 6px rgba(0, 240, 255, 0.25);
}

.ai-preloader-telemetry {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.2rem;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.16);
    letter-spacing: 0.12em;
    font-weight: 500;
}

.telemetry-node {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.telemetry-node::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--active-accent);
    box-shadow: 0 0 4px var(--active-accent);
    opacity: 0.8;
}

/* Animations declarations */
@keyframes preloader-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes preloader-halo {
    0% { transform: scale(0.9); opacity: 0.45; }
    100% { transform: scale(1.08); opacity: 0.9; }
}

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

@keyframes preloader-spin-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes preloader-scan {
    0%, 100% { top: 0%; opacity: 0; }
    10%, 90% { opacity: 0.85; }
    50% { top: 100%; opacity: 0.85; }
}

/* Responsive constraints */
@media (max-width: 768px) {
    .ai-orbit {
        width: 130px;
        height: 130px;
    }
    .ai-character {
        width: 80px;
        height: 80px;
    }
    .ai-scan-line {
        width: 105px;
    }
    .ai-preloader-title {
        font-size: 1.2rem;
    }
    .ai-loading-label {
        font-size: 0.78rem;
    }
    .ai-progress-container {
        max-width: 260px;
    }
    .ai-preloader-telemetry {
        gap: 0.9rem;
    }
}

/* Accessibility reduced motion constraints */
@media (prefers-reduced-motion: reduce) {
    .ai-orbit, .ai-scan-line, .ai-orbit-circle, .ai-halo {
        animation: none !important;
    }
    .ai-preloader {
        transition: opacity 0.5s ease !important;
    }
}

/* ==========================================================================
   SMART AUTOGESTED BLOG SECTION STYLING
   ========================================================================== */

.blog-wrapper {
    position: relative;
    width: 100%;
}

.blog-content-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
}

/* --- MAIN BLOG COLUMN --- */
.blog-main-column {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* --- BLOG CARD DESIGN --- */
.blog-card {
    background: rgba(6, 6, 8, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.045);
    padding: 1.6rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 240, 255, 0.08);
}

/* Chaos Mode Overrides for Blog Cards */
body.chaos-theme .blog-card {
    border-radius: 24px 8px 24px 8px;
    border-color: rgba(255, 0, 85, 0.12);
    background: rgba(20, 2, 32, 0.35);
}

body.chaos-theme .blog-card:hover {
    border-color: rgba(224, 0, 255, 0.3);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 20px rgba(255, 0, 85, 0.08);
}

/* Order Mode Overrides for Blog Cards */
body.order-theme .blog-card {
    border-radius: 0px;
    border-color: rgba(255, 255, 255, 0.05);
    background: rgba(6, 6, 8, 0.94);
}

body.order-theme .blog-card:hover {
    border-color: var(--color-logic-accent);
}

/* Card image box */
.blog-card-img-box {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

body.chaos-theme .blog-card-img-box {
    border-radius: 16px 4px 16px 4px;
}

body.order-theme .blog-card-img-box {
    border-radius: 0px;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}

.blog-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.68rem;
    font-family: 'Space Grotesk', monospace;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.blog-card-tag {
    font-weight: 700;
    color: var(--active-accent);
    letter-spacing: 0.15em;
}

.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--active-accent);
}

.blog-card-excerpt {
    font-size: 0.85rem;
    color: #9CA3AF;
    line-height: 1.6;
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-read-link {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-read-link {
    color: var(--active-accent);
}

.blog-read-link svg {
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-read-link svg {
    transform: translateX(3px);
}

/* --- BLOG SIDEBAR --- */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: rgba(6, 6, 8, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.chaos-theme .sidebar-widget {
    border-radius: 16px;
    border-color: rgba(255, 0, 85, 0.08);
}

body.order-theme .sidebar-widget {
    border-radius: 0px;
}

.widget-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: 1.2rem;
    border-left: 2.5px solid var(--active-accent);
    padding-left: 0.6rem;
}

/* Search widget */
.blog-search-box {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.2rem;
}

body.chaos-theme .blog-search-box { border-radius: 8px; }
body.order-theme .blog-search-box { border-radius: 0px; }

.blog-search-field {
    flex: 1;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 0.82rem;
    padding: 0.5rem 0.75rem;
    font-family: var(--active-font);
    outline: none;
}

.blog-search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.88rem;
    padding: 0 0.75rem;
    transition: transform 0.2s ease;
}

.blog-search-btn:active {
    transform: scale(0.9);
}

/* Categories List */
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.widget-header .widget-title {
    margin-bottom: 0;
}

.clear-filter-btn {
    background: transparent;
    border: none;
    color: var(--active-accent);
    font-size: 0.68rem;
    font-family: 'Space Grotesk', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.categories-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    transition: background 0.3s ease, color 0.3s ease;
}

body.chaos-theme .category-item { border-radius: 6px; }
body.order-theme .category-item { border-radius: 0px; }

.category-item:hover,
.category-item.active {
    background: rgba(255, 255, 255, 0.02);
    color: var(--active-accent);
}

.category-name {
    font-weight: 300;
}

.category-count {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.15rem 0.45rem;
    border-radius: 10px;
}

.category-item.active .category-count {
    color: #000;
    background: var(--active-accent);
}

.sidebar-categories-dropdown-container {
    display: none; /* Hidden on desktop */
}

/* --- PAGINATION --- */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 2rem;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.chaos-theme .pagination-btn { border-radius: 8px; }
body.order-theme .pagination-btn { border-radius: 0px; }

.pagination-btn:hover:not(:disabled) {
    border-color: var(--active-accent);
    color: var(--active-accent);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.08);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-num {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    color: #9CA3AF;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.chaos-theme .page-num { border-radius: 6px; }
body.order-theme .page-num { border-radius: 0px; }

.page-num:hover,
.page-num.active {
    color: var(--active-accent);
    border-color: rgba(0, 240, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
}

/* --- SINGLE ARTICLE DETAIL PAGE VIEW --- */
.blog-detail-view {
    max-width: 800px;
    margin: 0 auto;
}

.back-to-blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: #9CA3AF;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.back-to-blog-btn:hover {
    color: var(--active-accent);
}

.single-post-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-hero-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

body.chaos-theme .post-hero-image { border-radius: 24px 8px; }
body.order-theme .post-hero-image { border-radius: 0px; }

.post-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-header-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
}

.post-meta-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.76rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.post-badge-category {
    background: rgba(0, 240, 255, 0.08);
    color: var(--active-accent);
    padding: 0.25rem 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(0, 240, 255, 0.15);
}

body.chaos-theme .post-badge-category { border-radius: 12px; }
body.order-theme .post-badge-category { border-radius: 0px; }

.post-meta-item {
    font-weight: 400;
}

.post-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1.25;
    font-family: 'Syne', sans-serif;
}

/* Post Body Content Styling */
.post-markdown-content {
    font-size: 1.05rem;
    color: #D1D5DB;
    line-height: 1.8;
    font-weight: 300;
}

.post-markdown-content h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 0.5rem;
}

.post-markdown-content p {
    margin-bottom: 1.5rem;
}

.post-markdown-content ul,
.post-markdown-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.post-markdown-content li {
    font-weight: 300;
}

.post-markdown-content strong {
    font-weight: 700;
    color: #FFFFFF;
}

/* Highlight boxes inside posts */
.post-markdown-content .highlight-box {
    background: rgba(255, 255, 255, 0.015);
    border-left: 3px solid var(--active-accent);
    padding: 1.5rem;
    margin: 2.2rem 0;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.005);
}

body.chaos-theme .post-markdown-content .highlight-box { border-radius: 0 12px 12px 0; }
body.order-theme .post-markdown-content .highlight-box { border-radius: 0px; }

.highlight-box h4 {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.highlight-box p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Sources section styling */
.post-sources-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    margin-top: 2.5rem;
}

.sources-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #9CA3AF;
    margin-bottom: 0.8rem;
}

.sources-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.source-item-link {
    font-size: 0.84rem;
    color: var(--active-accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.3s ease;
}

.source-item-link:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* CTA Card */
.post-cta-card {
    background: linear-gradient(135deg, rgba(6,6,8,0.92) 0%, rgba(20,20,25,0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    text-align: center;
    margin-top: 3.5rem;
}

body.chaos-theme .post-cta-card {
    border-radius: 20px;
    border-color: rgba(255, 0, 85, 0.12);
    box-shadow: 0 15px 40px rgba(224, 0, 255, 0.03);
}

body.order-theme .post-cta-card {
    border-radius: 0px;
}

.cta-card-content {
    max-width: 580px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.cta-card-content h4 {
    font-family: 'Syne', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.3;
}

.cta-card-content p {
    font-size: 0.92rem;
    color: #9CA3AF;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-weight: 300;
}

/* Related Posts Section */
.related-posts-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2.5rem;
    margin-top: 4rem;
}

.related-section-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: 2rem;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

/* Loading Skeleton and States UI */
.blog-skeleton-card {
    height: 420px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

body.chaos-theme .blog-skeleton-card { border-radius: 24px 8px; }
body.order-theme .blog-skeleton-card { border-radius: 0px; }

.blog-skeleton-card::before {
    content: '';
    display: block;
    position: absolute;
    left: -150px;
    top: 0;
    height: 100%;
    width: 150px;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
    animation: skeleton-shimmer 1.8s infinite;
}

@keyframes skeleton-shimmer {
    from { left: -150px; }
    to { left: 100%; }
}

.blog-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(6, 6, 8, 0.2);
    border: 1px dashed rgba(255, 255, 255, 0.05);
}

body.chaos-theme .blog-empty-state { border-radius: 16px; }
body.order-theme .blog-empty-state { border-radius: 0px; }

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    opacity: 0.6;
}

.blog-empty-state h4 {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.blog-empty-state p {
    font-size: 0.88rem;
    color: #6B7280;
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- MOBILE RESPONSIVE LAYOUT CONSTRAINTS --- */
@media (max-width: 1024px) {
    .sidebar-categories-dropdown-container {
        display: block;
        margin-top: 0.2rem;
    }
    
    .blog-mobile-select {
        width: 100%;
        background: rgba(6, 6, 8, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #FFFFFF;
        padding: 0.65rem 1rem;
        font-family: var(--active-font);
        font-size: 0.84rem;
        outline: none;
    }
    
    body.chaos-theme .blog-mobile-select { border-radius: 8px; }
    body.order-theme .blog-mobile-select { border-radius: 0px; }

    .categories-list {
        display: none; /* Hidden on mobile, dropdown is used instead */
    }
    
    .blog-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-title {
        font-size: 1.65rem;
    }
    
    .post-hero-image {
        height: 240px;
    }
    
    .post-cta-card {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   FUTURISTIC CIRCULAR TECH PLAY BUTTON (STAGE HERO)
   ========================================================================== */
.tech-play-btn {
    position: relative;
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(4, 4, 6, 0.88);
    border: 1px solid var(--active-accent);
    cursor: pointer;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    padding: 0;
    margin-left: 0.5rem;
    z-index: 10;
}

.tech-play-btn:hover {
    transform: scale(1.08);
    border-color: #FFFFFF;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.25);
}

body.chaos-theme .tech-play-btn:hover {
    box-shadow: 0 0 25px rgba(255, 0, 85, 0.25);
}

.play-btn-glow {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--active-accent) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.tech-play-btn:hover .play-btn-glow {
    opacity: 0.22;
}

.play-btn-rings {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.play-ring {
    position: absolute;
    inset: 0;
    border: 1px solid var(--active-accent);
    border-radius: 50%;
    opacity: 0.2;
    transform: scale(1);
    animation: play-ring-pulsate 3s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.play-ring:nth-child(2) {
    animation-delay: -1.5s;
}

@keyframes play-ring-pulsate {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.play-btn-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.play-icon {
    width: 16px;
    height: 16px;
    color: #FFFFFF;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
    transform: translateX(1px); /* micro centering adjustment */
}

.tech-play-btn:hover .play-icon {
    color: var(--active-accent);
    transform: translateX(1px) scale(1.15);
}

.play-btn-text {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    transition: color 0.4s ease;
}

.tech-play-btn:hover .play-btn-text {
    color: #FFFFFF;
}

/* ==========================================================================
   CYBER FUTURISTIC VIDEO MODAL & CUSTOM PLAYER
   ========================================================================== */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Space Grotesk', sans-serif;
}

.video-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 3, 5, 0.88);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    z-index: 1;
}

.video-player-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 920px;
    background: #040406;
    border: 1px solid var(--border-logic);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 240, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal.active .video-player-container {
    transform: scale(1) translateY(0);
}

body.chaos-theme .video-player-container {
    border-radius: 24px;
    border-color: rgba(255, 0, 85, 0.15);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.95), 0 0 40px rgba(224, 0, 255, 0.04);
}

body.order-theme .video-player-container {
    border-radius: 0;
}

/* Corner bracket details */
.player-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: var(--active-accent);
    border-style: solid;
    pointer-events: none;
    z-index: 10;
    transition: var(--theme-transition);
    opacity: 0.6;
}

.player-corner--tl { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.player-corner--tr { top: 12px; right: 12px; border-width: 2px 2px 0 0; }
.player-corner--bl { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; }
.player-corner--br { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }

/* Upper telemetry HUD */
.player-telemetry-header {
    background: rgba(6, 6, 8, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.9rem 2.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #4B5563;
    text-transform: uppercase;
}

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

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--active-accent);
    box-shadow: 0 0 6px var(--active-accent);
    animation: pulse 1s infinite alternate;
}

.player-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    margin-left: 1.5rem;
}

.player-close-btn:hover {
    color: #FFFFFF;
    transform: scale(1.1);
}

/* Real video viewport area */
.video-screen {
    position: relative;
    width: 100%;
    background: #000;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-screen video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
}

/* Tech mesh grid scan lines */
.video-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: 3;
    pointer-events: none;
    opacity: 0.85;
}

/* Play Big Overlay Button */
.video-play-overlay {
    position: absolute;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(4, 4, 6, 0.82);
    border: 1px solid var(--active-accent);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.video-play-overlay svg {
    width: 22px;
    height: 22px;
    transform: translateX(2px);
}

.video-play-overlay:hover {
    transform: scale(1.08);
    border-color: #FFFFFF;
    color: var(--active-accent);
}

/* Controls bar */
.player-controls {
    background: rgba(6, 6, 8, 0.94);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 1.2rem 2.2rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Timeline progress area */
.player-progress-area {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    border-radius: 2px;
    transition: height 0.25s ease;
}

.player-progress-area:hover {
    height: 6px;
}

.player-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--active-gradient);
    box-shadow: 0 0 10px var(--active-accent);
    border-radius: 2px;
    pointer-events: none;
}

.player-progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 12px;
    height: 12px;
    background: #FFFFFF;
    border: 3px solid var(--active-accent);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(255,255,255,0.4);
    transition: transform 0.2s ease;
}

.player-progress-area:hover .player-progress-handle {
    transform: translate(-50%, -50%) scale(1);
}

/* Row of controls */
.player-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.controls-left, .controls-right {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.control-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    width: 20px;
    height: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.3s ease;
}

.control-btn:hover {
    color: var(--active-accent);
    transform: scale(1.08);
}

.control-btn svg {
    width: 100%;
    height: 100%;
}

.player-time-display {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
}

#player-current-time {
    color: #FFFFFF;
}

.time-separator {
    margin: 0 4px;
    color: rgba(255, 255, 255, 0.2);
}

/* Responsive modal player overrides */
@media (max-width: 768px) {
    .player-controls {
        padding: 1rem 1.5rem 1.2rem;
        gap: 0.8rem;
    }
    .player-telemetry-header {
        padding: 0.7rem 1.5rem;
    }
    .controls-left, .controls-right {
        gap: 1.2rem;
    }
}
}

/* --- BOTÓN DE PLAN TÁCTICO CYBER --- */
.plan-submit-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.8rem;
    background: rgba(0, 240, 255, 0.03) !important;
    border: 1px solid var(--active-accent) !important;
    color: var(--active-accent) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1.1rem 2rem !important;
    font-size: 0.82rem !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

body.chaos-theme .plan-submit-btn {
    border-radius: 30px 10px 30px 10px !important;
    background: rgba(224, 0, 255, 0.03) !important;
    box-shadow: 0 4px 15px rgba(255, 0, 85, 0.1);
}

body.order-theme .plan-submit-btn {
    border-radius: 0px !important;
}

.plan-submit-btn:hover {
    background: var(--active-accent) !important;
    color: #000000 !important;
    box-shadow: 0 0 25px var(--active-accent) !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   CYBER PHOENIX BACKGROUND ANIMATION
   ========================================================================== */
#cyber-phoenix-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1; /* Floats beautifully behind active hero elements but above grids */
    opacity: 0.85;
}

#cyber-phoenix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

/* ==========================================================================
   DAILY INSIGHT SOLAR SYSTEM BACKGROUND
   ========================================================================== */
.insight-daily-section {
    position: relative;
    overflow: hidden;
}

.insight-solar-system-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1; /* Floats behind text content but above base grids */
    opacity: 0.65;
}

#insight-solar-system-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

/* ==========================================================================
   DIAGNOSTIC WIZARD PREMIUM NEON CTA BUTTONS
   ========================================================================== */
.panel-result .result-cta-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.03) !important;
    border: 1px solid var(--active-accent) !important;
    color: var(--active-accent) !important;
    font-family: var(--font-logic) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1.1rem 2.2rem !important;
    font-size: 0.82rem !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
    text-decoration: none;
    flex-grow: 1;
}

body.chaos-theme .panel-result .result-cta-btn {
    border-radius: 30px 10px 30px 10px !important;
    background: rgba(224, 0, 255, 0.03) !important;
    box-shadow: 0 4px 15px rgba(255, 0, 85, 0.1) !important;
}

body.order-theme .panel-result .result-cta-btn {
    border-radius: 0px !important;
}

.panel-result .result-cta-btn:hover {
    background: var(--active-accent) !important;
    color: #000000 !important;
    box-shadow: 0 0 25px var(--active-accent) !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   BRUTALIST CONTACT SUBMIT BUTTON
   ========================================================================== */
#contact-submit-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: rgba(0, 240, 255, 0.02) !important;
    border: 1px solid var(--active-accent) !important;
    color: var(--active-accent) !important;
    font-family: var(--font-logic) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding: 1.25rem 2rem !important;
    font-size: 0.85rem !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer;
    text-decoration: none;
}

body.chaos-theme #contact-submit-btn {
    border-radius: 30px 10px 30px 10px !important;
    background: rgba(224, 0, 255, 0.02) !important;
    box-shadow: 0 4px 15px rgba(255, 0, 85, 0.08) !important;
}

body.order-theme #contact-submit-btn {
    border-radius: 0px !important;
}

#contact-submit-btn:hover {
    background: var(--active-accent) !important;
    color: #000000 !important;
    box-shadow: 0 0 32px var(--active-accent) !important;
    transform: translateY(-3px) !important;
}

/* ==========================================================================
   CONTACT FORM SUCCESS STATE OVERLAY
   ========================================================================== */
.form-success-overlay {
    display: none; /* Controlled via app.js display style changes */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 4, 6, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 10;
    padding: 3rem;
    animation: fadeInSuccess 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.success-icon-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--active-accent);
    color: var(--active-accent);
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    animation: successPulse 2s infinite alternate;
}

@keyframes fadeInSuccess {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes successPulse {
    0% { transform: scale(1); box-shadow: 0 0 15px var(--active-accent); }
    100% { transform: scale(1.05); box-shadow: 0 0 30px var(--active-accent); }
}

/* ==========================================================================
   MOBILE RESPONSIVE BLINDAGE & RESPONSIVE FIXES (PORTAL GLOBAL OVERRIDES)
   ========================================================================== */
@media (max-width: 768px) {
    /* GLOBAL CONTAINER SECURITY: Recover screen real estate & prevent side scrolling */
    .container {
        padding: 0 1.25rem !important;
    }
    
    /* 1. BRUTALIST CONTACT SECTION RESPONSIFY */
    #contacto .glass-card {
        padding: 2rem 1.25rem !important; /* Recover screen real estate from 4.5rem */
    }
    
    .contact-upper-brand {
        margin-bottom: 1.5rem !important;
    }
    
    .contact-upper-brand div {
        font-size: 1.8rem !important; /* Smaller icon check */
    }
    
    .contact-upper-brand h3 {
        font-size: clamp(1.1rem, 5vw, 1.3rem) !important; /* Prevents overflow and truncation */
        letter-spacing: 0.01em !important;
    }
    
    .contact-mega-text {
        font-size: clamp(1.6rem, 7vw, 2.2rem) !important; /* Down to clamp to prevent overflowing narrow viewports */
        line-height: 1.05 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .contact-meta-column p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        max-width: 100% !important;
        margin-top: 1rem !important;
        padding-left: 0.8rem !important;
    }
    
    .brutalist-contact-layout {
        gap: 2.5rem !important;
    }
    
    .brutalist-input-group {
        margin-bottom: 2.2rem !important;
    }
    
    /* Success overlay responsify */
    .form-success-overlay {
        padding: 2rem 1.25rem !important;
    }
    
    .form-success-overlay h3 {
        font-size: clamp(1.2rem, 5vw, 1.5rem) !important;
    }
    
    .form-success-overlay p {
        font-size: 0.9rem !important;
    }
    
    /* 2. SINTETIZADOR MODULAR DE HOOKS (DIALS SYSTEM) */
    .synth-deck-container {
        padding: 2rem 1.25rem !important;
    }
    
    .synth-knobs-grid {
        gap: 1.25rem !important; /* Reduced from 3.5rem to allow dials to fit side-by-side */
    }
    
    .synth-knob-unit {
        gap: 0.8rem !important;
    }
    
    .synth-knob-label {
        font-size: 0.72rem !important; /* Prevent label clipping on narrow viewports */
        letter-spacing: 0.08em !important;
    }
    
    .synth-rotary-dial {
        width: 76px !important; /* Sized down from 90px to fit on 320px viewports (iPhone SE) */
        height: 76px !important;
    }
    
    .synth-rotary-dial::before {
        top: 8px !important;
        width: 4px !important;
        height: 15px !important;
    }
    
    .synth-knob-value {
        font-size: 0.85rem !important;
        padding: 0.2rem 0.5rem !important;
    }
    
    /* 3. COGNITIVE DIAL & HEMISPHERE MODULATOR */
    .dial-sandbox-container {
        padding: 2rem 1.25rem !important;
    }
    
    .dial-visual-column {
        height: 320px !important; /* Down from 440px to recover vertical viewport space */
    }
    
    .dial-graphic-box {
        width: 190px !important; /* Scaled down from 300px to fit mobile screens perfectly */
        height: 190px !important;
    }
    
    .dial-graphic-core {
        width: 95px !important; /* Scaled down proportionally from 150px */
        height: 95px !important;
    }
    
    .oscilloscope-wrapper {
        width: 100% !important;
        max-width: 240px !important; /* Scale wrapper to fit within standard mobile grids */
        margin-top: 1.2rem !important;
        padding: 0.6rem 0.9rem !important;
    }
    
    #oscilloscope-canvas {
        width: 100% !important;
        max-width: 215px !important;
        height: 48px !important; /* Slightly smaller height */
    }
    
    .dial-label-btn {
        font-size: clamp(0.72rem, 3.5vw, 0.8rem) !important; /* Down from 1.25rem to prevent text stacking/overflow */
        letter-spacing: 0.05em !important;
    }
    
    .dial-dynamic-text {
        font-size: 1.05rem !important; /* Down from 2rem to prevent enormous text blocks */
        line-height: 1.45 !important;
        min-height: auto !important;
    }
    
    .dial-interactive-slider-box {
        gap: 1.5rem !important;
    }
    
    /* 4. CHAT CONVERSION CTA RESPONSIVENESS */
    .chat-conversion-banner {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 1.25rem !important;
        align-items: stretch !important;
        text-align: center !important;
    }
    
    .chat-conversion-banner .result-cta-btn {
        width: 100% !important;
        text-align: center !important;
    }
    
    /* 5. DAILY STRATEGIC INSIGHT HEADER & METRIC CLAMPS */
    .insight-card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.8rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }
    
    .insight-card-header-left {
        flex-wrap: wrap !important;
        gap: 0.6rem !important;
        width: 100% !important;
    }
    
    .insight-date-tag {
        align-self: flex-start !important;
        margin-top: 0.2rem !important;
        color: rgba(255, 255, 255, 0.4) !important;
    }
    
    .ai-card-metric {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.35rem !important;
        align-items: flex-start !important;
        padding-top: 0.8rem !important;
    }
    
    .ai-card-metric span {
        margin-left: 0 !important;
        display: block !important;
        line-height: 1.35 !important;
    }
}

/* ────────────────────────────────────────────────────────
   ADVANCED QUALIFICATION FORM: SELECTS & CHECKBOX STYLING
──────────────────────────────────────────────────────── */
.brutalist-select {
    background: rgba(4, 4, 6, 0.98) !important;
    border: none !important;
    width: 100% !important;
    color: #FFF !important;
    font-size: 1.15rem !important;
    font-family: var(--active-font) !important;
    outline: none !important;
    padding: 0.6rem 0 !important;
    cursor: pointer !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0 !important;
    appearance: none !important; /* hide default browser styling */
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right center !important;
    background-size: 18px !important;
    transition: border-bottom-color 0.4s ease, color 0.3s ease !important;
}

body.chaos-theme .brutalist-select {
    border-radius: 8px 8px 0 0 !important;
}

.brutalist-select:focus {
    border-bottom-color: var(--active-accent) !important;
    color: var(--active-accent) !important;
}

.brutalist-select option {
    background: #060608 !important;
    color: #FFF !important;
    padding: 0.75rem !important;
    font-family: var(--active-font) !important;
}

/* Custom checkbox styling */
.brutalist-checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
    cursor: pointer;
    font-family: var(--active-font);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    user-select: none;
}

.brutalist-checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.brutalist-custom-checkbox {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

body.chaos-theme .brutalist-custom-checkbox {
    border-radius: 4px;
}

.brutalist-checkbox-container:hover input ~ .brutalist-custom-checkbox {
    border-color: var(--active-accent);
}

.brutalist-checkbox-container input:checked ~ .brutalist-custom-checkbox {
    background: var(--active-gradient);
    border-color: var(--active-accent);
    box-shadow: 0 0 10px var(--active-accent);
}

.brutalist-custom-checkbox::after {
    content: "✓";
    font-size: 0.85rem;
    color: #000;
    font-weight: 900;
    display: none;
}

.brutalist-checkbox-container input:checked ~ .brutalist-custom-checkbox::after {
    display: block;
}







