@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg:           #070709;
    --bg-card:      #0e0e12;
    --bg-card-alt:  #121218;
    --accent-red:   #e60000;
    --accent-cyan:  #00e5ff;
    --accent-purple:#a855f7;
    --text-primary: #f0f0f4;
    --text-muted:   #4a4a5a;
    --text-dim:     #2a2a38;
    --border:       rgba(255,255,255,0.06);
    --border-glow:  rgba(0,229,255,0.2);
    --font-head:    'Space Grotesk', sans-serif;
    --font-body:    'Inter', sans-serif;
    --font-mono:    'Courier New', monospace;
    --app-max-width: 480px;
}

/* ── Adaptación de ancho por dispositivo ────
   El mismo layout mobile-first escala su ancho
   máximo en tablet/desktop en vez de quedarse
   fijo en 480px, para no dejar huecos vacíos
   en los laterales en pantallas grandes. ── */
@media (min-width: 700px) {
    :root { --app-max-width: 620px; }
}
@media (min-width: 1024px) {
    :root { --app-max-width: 760px; }
}
@media (min-width: 1440px) {
    :root { --app-max-width: 880px; }
}

body.light-mode, html.light-mode, :root:has(body.light-mode) {
    --bg:           #f6f8fd;
    --bg-card:      #ffffff;
    --bg-card-alt:  #f0f4fc;
    --accent-red:   #e11d48;
    --accent-cyan:  #00e5ff;
    --accent-purple:#a855f7;
    --text-primary: #0f172a;
    --text-muted:   #64748b;
    --text-dim:     #94a3b8;
    --border:       rgba(0,0,0,0.08);
    --border-glow:  rgba(0,229,255,0.25);
    --gold:         #d4a843;
    --gold-glow:    rgba(212,168,67,0.35);
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    /* Premium Scrollbar Global (PC/Windows) */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* Webkit Global Scrollbars */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 229, 255, 0.2);
}


html {
    background: var(--bg);
    min-height: 100%;
    min-height: 100dvh;
    height: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100%;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    /* Dot grid */
    background-image: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,229,255,0.06) 0%, transparent 60%),
                      radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 100% 100%, 24px 24px;
}

#app {
    width: 100%;
    max-width: var(--app-max-width);
    min-height: 100%;
    min-height: 100dvh;
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.view-container {
    padding: 24px 20px;
    padding-top: calc(24px + env(safe-area-inset-top, 0px));
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100%;
    min-height: 100dvh;
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    animation: fadeIn 0.35s ease-out;
}

/* ── Header ───────────────────────────────── */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-top: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-left {
    display: flex;
    flex-direction: column;
}

.logo-text {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    line-height: 1;
    user-select: none;
}

.logo-text svg {
    display: block;
    height: auto;
}

.header-divider {
    width: 1px;
    height: 28px;
    background: var(--border);
}

.slogan-block {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    line-height: 1.5;
    text-transform: uppercase;
}

.header-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Secure channel badge ─────────────────── */
.secure-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.secure-badge::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
}

/* ── Protocol label ───────────────────────── */
.protocol-label {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    margin-top: -10px;
}

/* ── Orb ──────────────────────────────────── */
.orb-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0 24px;
    position: relative;
    height: 240px;
}

.orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0,229,255,0.07);
    animation: orbPulse 4s ease-in-out infinite;
}

.orb-ring-1 {
    width: 260px;
    height: 260px;
    animation: orbPulse 6s ease-in-out infinite;
}
.orb-ring-2 {
    width: 200px;
    height: 200px;
    border-color: rgba(0,229,255,0.12);
    animation: orbPulse 4s ease-in-out infinite reverse;
}

.orb-core {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle at 30% 35%, #ffffff 0%, var(--accent-cyan) 30%, var(--accent-purple) 70%, #050508 100%);
    border-radius: 50%;
    box-shadow:
        0 0 0 2px rgba(0,229,255,0.2),
        0 0 80px rgba(168,85,247,0.4),
        0 0 160px rgba(0,229,255,0.2),
        inset 0 0 35px rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
    animation: orbNebula 4s ease-in-out infinite, orbFloat 5s ease-in-out infinite;
}

/* El "Pulmón" de la Nebulosa */
.orb-core::before {
    content: '';
    position: absolute;
    inset: -80px;
    background: radial-gradient(circle, rgba(0,229,255,0.3) 0%, rgba(168,85,247,0.2) 45%, transparent 70%);
    filter: blur(35px);
    z-index: -1;
    animation: nebulaBreathing 5s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.8;
}

/* Segunda capa de partículas de nebulosa */
.orb-core::after {
    content: '';
    position: absolute;
    inset: -120px;
    background: radial-gradient(circle, rgba(0,229,255,0.15) 0%, transparent 75%);
    filter: blur(50px);
    z-index: -2;
    animation: nebulaBreathing 8s ease-in-out infinite reverse;
    pointer-events: none;
}


.orb-core.listening {
    transform: scale(1.1);
    box-shadow:
        0 0 0 3px rgba(0,229,255,0.3),
        0 0 80px rgba(0,229,255,0.7),
        0 0 150px rgba(0,229,255,0.4),
        0 0 220px rgba(0,229,255,0.2);
}

.orb-mic {
    color: #ffffff;
    width: 36px;
    height: 36px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.8)) drop-shadow(0 0 2px rgba(255,255,255,1));
}

/* ── Chat input ───────────────────────────── */
.chat-input-wrapper {
    background: rgba(14,14,18,0.9);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 14px 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
    transition: border-color 0.25s, box-shadow 0.25s;
    width: 100%;
    box-sizing: border-box;
}

.chat-input-wrapper:focus-within {
    border-color: rgba(0,229,255,0.3);
    box-shadow: 0 0 0 3px rgba(0,229,255,0.05);
}

.chat-input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    outline: none;
    letter-spacing: 0.3px;
    resize: none;
    height: 24px;
    max-height: 136px; /* ~5-6 líneas */
    overflow-y: hidden;
    line-height: 24px;
    padding: 0;
    display: block;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
    box-sizing: border-box;
}
.chat-input::-webkit-scrollbar { width: 3px; }
.chat-input::-webkit-scrollbar-track { background: transparent; }
.chat-input::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

.chat-input::placeholder {
    color: var(--text-muted);
    font-size: 13px;
}

/* Fila inferior: botones de acción */
.chat-input-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.file-attach-btn {
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.file-attach-btn:hover {
    color: var(--accent-cyan);
}

.file-preview-area {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.file-preview-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-cyan);
}
.file-preview-item img {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    object-fit: cover;
}
.file-preview-remove {
    cursor: pointer;
    color: var(--accent-red);
    opacity: 0.6;
}
.file-preview-remove:hover { opacity: 1; }

.send-btn {
    background: rgba(0,229,255,0.08);
    border: 1px solid rgba(0,229,255,0.2);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.send-btn:hover {
    background: rgba(0,229,255,0.15);
    box-shadow: 0 0 12px rgba(0,229,255,0.2);
}

/* ── Service cards ────────────────────────── */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    text-decoration: none;
    color: var(--text-primary);
    display: block;
}

.service-card:hover {
    background: var(--bg-card-alt);
    border-color: rgba(255,255,255,0.1);
    transform: translateX(2px);
}

/* Active / featured card */
.service-card-accent {
    border-top: 2px solid var(--accent-red);
}

.service-number {
    position: absolute;
    top: 14px;
    right: 14px;
    color: var(--text-dim);
    font-size: 10px;
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

.service-icon {
    margin-bottom: 20px;
    color: var(--accent-red);
    width: 20px;
    height: 20px;
    transition: color 0.3s ease;
}

.service-icon.active {
    color: var(--accent-cyan);
}

.service-title {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.service-subtitle {
    font-size: 9px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ── Bottom nav (Futuristic Liquid Glass Dock) ── */
.bottom-nav {
    position: fixed;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: min(440px, calc(100% - 28px));
    height: 64px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(28px) saturate(190%) contrast(105%);
    -webkit-backdrop-filter: blur(28px) saturate(190%) contrast(105%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 
        0 20px 44px -10px rgba(0, 0, 0, 0.16),
        0 6px 18px -4px rgba(0, 0, 0, 0.08),
        inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 2px 0 rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 14px;
    z-index: 999;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode bottom nav */
body:not(.light-mode) .bottom-nav {
    background: rgba(18, 22, 34, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 24px 48px -8px rgba(0, 0, 0, 0.7),
        0 8px 20px -4px rgba(0, 0, 0, 0.4),
        0 0 24px rgba(0, 229, 255, 0.06),
        inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1.5px 1px 0 rgba(0, 0, 0, 0.4);
}

/* Slot for each regular navigation item */
.nav-item-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 52px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item-slot:hover {
    transform: translateY(-2px);
}

.nav-item-slot:active {
    transform: scale(0.92);
}

.nav-icon-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

/* Icon base styling — Warm Champagne / Gold Tone */
.nav-item,
.nav-item-icon {
    width: 22px;
    height: 22px;
    color: #cca454;
    stroke: #cca454;
    stroke-width: 1.85;
    filter: drop-shadow(0 1px 3px rgba(180, 140, 50, 0.2));
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body:not(.light-mode) .nav-item,
body:not(.light-mode) .nav-item-icon {
    color: rgba(226, 194, 117, 0.85);
    stroke: rgba(226, 194, 117, 0.85);
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
}

.nav-item-slot:hover .nav-item,
.nav-item-slot:hover .nav-item-icon,
.nav-item:hover {
    color: #f7d996;
    stroke: #f7d996;
    filter: drop-shadow(0 0 8px rgba(247, 217, 150, 0.6));
}

/* Active Icon — Luminous Electric Cyan (from photo) */
.nav-item-slot.active .nav-item,
.nav-item-slot.active .nav-item-icon,
.nav-item.active {
    color: #00e5ff !important;
    stroke: #00e5ff !important;
    stroke-width: 2.1;
    filter: 
        drop-shadow(0 0 6px rgba(0, 229, 255, 0.95))
        drop-shadow(0 0 14px rgba(0, 229, 255, 0.55)) !important;
}

.nav-item-slot.active svg path,
.nav-item-slot.active svg circle,
.nav-item-slot.active svg line,
.nav-item-slot.active svg polyline,
.nav-item-slot.active svg rect,
.nav-item-slot.active svg ellipse,
.nav-item.active svg path,
.nav-item.active svg circle,
.nav-item.active svg line,
.nav-item.active svg polyline,
.nav-item.active svg rect,
.nav-item.active svg ellipse {
    stroke: #00e5ff !important;
}

/* Neon Active Pill Indicator (Right beneath active icon) */
.nav-active-pill {
    position: absolute;
    bottom: 2px;
    width: 15px;
    height: 3px;
    border-radius: 99px;
    background: #00e5ff;
    box-shadow: 
        0 0 8px #00e5ff,
        0 0 16px rgba(0, 229, 255, 0.7);
    opacity: 0;
    transform: scaleX(0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item-slot.active .nav-active-pill {
    opacity: 1;
    transform: scaleX(1);
}

/* Notification dot on folder */
.nav-icon-box .notification-dot,
.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 7px;
    height: 7px;
    background: #ef4444;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
    display: none;
    z-index: 2;
}

/* ── Center Slot (Golden Medallion & Glass Arch) ── */
.nav-center-slot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-top: -18px; /* Elevates the coin above the bar */
    flex-shrink: 0;
}

/* Smooth glass arch / halo surrounding the coin */
.nav-center-slot::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 
        0 -6px 18px rgba(255, 255, 255, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.08),
        inset 0 1.5px 2px rgba(255, 255, 255, 0.9);
    z-index: 1;
    pointer-events: none;
    transition: all 0.3s ease;
}

body:not(.light-mode) .nav-center-slot::before {
    background: rgba(18, 22, 34, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 
        0 -6px 20px rgba(0, 0, 0, 0.4),
        0 0 16px rgba(212, 168, 67, 0.25),
        inset 0 1.5px 1px rgba(255, 255, 255, 0.3);
}

.nav-center-slot::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 30px;
    background: radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.35) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.nav-item-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Glass panel (Registration / Onboarding) ── */
.glass-panel {
    background: rgba(14,14,18,0.9);
    border: 1px solid var(--border);
    padding: 28px;
    border-radius: 8px;
    width: 100%;
    backdrop-filter: blur(12px);
}

.text-center { text-align: center; }

.glass-input {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border);
    padding: 14px;
    color: white;
    border-radius: 6px;
    margin-bottom: 16px;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s;
}

.glass-input:focus {
    border-color: rgba(0,229,255,0.3);
}

.btn-primary {
    width: 100%;
    background: white;
    color: black;
    border: none;
    padding: 14px;
    font-weight: 700;
    font-family: var(--font-head);
    font-size: 13px;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:not(:disabled):hover {
    background: #e8e8e8;
    transform: translateY(-1px);
}

h1 {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* ── Animations ───────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1);    opacity: 0.3; }
    50%       { transform: scale(1.1); opacity: 0.8; }
}

@keyframes orbNebula {
    0%, 100% { 
        box-shadow: 0 0 60px rgba(0,229,255,0.3), 0 0 120px rgba(168,85,247,0.2);
        filter: hue-rotate(0deg);
    }
    50% { 
        box-shadow: 0 0 120px rgba(168,85,247,0.5), 0 0 240px rgba(0,229,255,0.3);
        filter: hue-rotate(10deg);
    }
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

@keyframes nebulaBreathing {
    0%, 100% { 
        transform: scale(0.8); 
        opacity: 0.5; 
        filter: blur(25px);
    }
    50% { 
        transform: scale(1.3); 
        opacity: 1; 
        filter: blur(45px);
    }
}



@keyframes blink {
    50% { opacity: 0; }
}

/* ════════════════════════════════════════════
   VOICE CHAT SCREEN  (Stitch Style)
════════════════════════════════════════════ */

.vc-root {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100%;
    min-height: 100dvh;
    height: 100dvh;
    width: 100%;
    background: #05050a;
    background-image:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0,229,255,0.07) 0%, transparent 60%),
        radial-gradient(circle, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 100% 100%, 24px 24px;
    overflow: hidden;
    animation: fadeIn 0.3s ease-out;
    padding-top: env(safe-area-inset-top, 0px);
    box-sizing: border-box;
}

/* Header */
.vc-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}

.vc-back {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}
.vc-back:hover { background: rgba(255,255,255,0.07); }

.vc-title-block { flex: 1; }
.vc-title {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
}
.vc-subtitle {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-top: 2px;
    text-transform: uppercase;
}

.vc-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: statusPulse 2s ease-in-out infinite;
}

/* Orb area */
.vc-orb-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 12px;
    flex-shrink: 0;
    position: relative;
}

.vc-orb-rings {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vc-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0,229,255,0.06);
    animation: orbPulse 4s ease-in-out infinite;
}
.vc-ring-1 { width: 220px; height: 220px; animation-delay: 0s; }
.vc-ring-2 { width: 170px; height: 170px; border-color: rgba(0,229,255,0.09); animation-delay: -1.3s; }
.vc-ring-3 { width: 270px; height: 270px; border-color: rgba(0,229,255,0.04); animation-delay: -2.6s; }

.vc-orb {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 35%, #ffffff 0%, var(--accent-cyan) 30%, var(--accent-purple) 70%, #050508 100%);
    box-shadow:
        0 0 0 2px rgba(0,229,255,0.2),
        0 0 90px rgba(168,85,247,0.4),
        0 0 180px rgba(0,229,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 5;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    animation: orbFloat 5s ease-in-out infinite;
}

.vc-orb::before {
    content: '';
    position: absolute;
    inset: -70px;
    background: radial-gradient(circle, rgba(0,229,255,0.35) 0%, rgba(168,85,247,0.2) 45%, transparent 75%);
    filter: blur(30px);
    z-index: -1;
    animation: nebulaBreathing 4s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.9;
}






.vc-orb.vc-orb-active {
    transform: scale(1.12);
    box-shadow:
        0 0 0 3px rgba(0,229,255,0.3),
        0 0 55px rgba(0,229,255,0.55),
        0 0 110px rgba(0,229,255,0.25);
}

.vc-orb.vc-orb-thinking {
    animation: orbThink 1s ease-in-out infinite alternate;
}

.vc-orb.vc-orb-speaking {
    transform: scale(1.08);
    box-shadow:
        0 0 0 2px rgba(230,0,0,0.2),
        0 0 40px rgba(230,0,0,0.3),
        0 0 80px rgba(230,0,0,0.12);
}

.vc-mic-icon {
    width: 30px;
    height: 30px;
    color: #ffffff;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.8)) drop-shadow(0 0 2px rgba(255,255,255,1));
}

.vc-orb-label {
    margin-top: 16px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    transition: color 0.3s;
}

/* Transcript */
.vc-transcript {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.vc-transcript::-webkit-scrollbar { width: 3px; }
.vc-transcript::-webkit-scrollbar-track { background: transparent; }
.vc-transcript::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

.vc-msg { display: flex; }
.vc-msg-ai  { justify-content: flex-start; }
.vc-msg-user { justify-content: flex-end; }

.vc-msg-bubble {
    max-width: 80%;
    padding: 11px 15px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
    font-family: var(--font-body);
    font-weight: 300;
    animation: fadeIn 0.2s ease-out;
}

.vc-msg-ai .vc-msg-bubble {
    background: rgba(14,14,20,0.9);
    border: 1px solid rgba(0,229,255,0.12);
    color: #d0d8e0;
    border-bottom-left-radius: 4px;
}

.vc-msg-user .vc-msg-bubble {
    background: rgba(230,0,0,0.15);
    border: 1px solid rgba(230,0,0,0.25);
    color: #f0d0d0;
    border-bottom-right-radius: 4px;
}

/* Typing indicator */
.vc-typing {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 14px 18px;
}
.vc-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
    opacity: 0.4;
    animation: typingBounce 1.2s ease-in-out infinite;
}
.vc-typing span:nth-child(2) { animation-delay: 0.2s; }
.vc-typing span:nth-child(3) { animation-delay: 0.4s; }

/* Input bar */
.vc-input-bar {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
    background: rgba(5,5,10,0.96);
    border-top: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color 0.25s;
    width: 100%;
    box-sizing: border-box;
}

.vc-input-bar:focus-within {
    border-top-color: rgba(0,229,255,0.15);
}

.vc-input {
    width: 100%;
    background: transparent;
    border: none;
    color: #f0f0f4;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    outline: none;
    transition: none;
    resize: none;
    height: 24px;
    max-height: 136px; /* ~5-6 líneas */
    overflow-y: hidden;
    line-height: 24px;
    display: block;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
    box-sizing: border-box;
}
.vc-input::-webkit-scrollbar { width: 3px; }
.vc-input::-webkit-scrollbar-track { background: transparent; }
.vc-input::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.vc-input:focus { outline: none; }
.vc-input::placeholder { color: var(--text-muted); font-size: 13px; }

/* Fila inferior vc: botones de acción */
.vc-input-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

/* Caja visual que envuelve el textarea de vc */
.vc-input-box {
    background: rgba(14,14,20,0.9);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 12px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.vc-input-box:focus-within {
    border-color: rgba(0,229,255,0.3);
    box-shadow: 0 0 0 3px rgba(0,229,255,0.05);
}

.vc-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,229,255,0.1);
    border: 1px solid rgba(0,229,255,0.25);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, box-shadow 0.2s;
}
.vc-send-btn:hover {
    background: rgba(0,229,255,0.18);
    box-shadow: 0 0 16px rgba(0,229,255,0.2);
}

/* ── Extra animations ─────────────────────── */
@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--accent-cyan); }
    50%       { opacity: 0.5; box-shadow: 0 0 4px var(--accent-cyan); }
}

@keyframes orbThink {
    from { box-shadow: 0 0 0 2px rgba(0,229,255,0.15), 0 0 30px rgba(0,229,255,0.25); }
    to   { box-shadow: 0 0 0 4px rgba(0,229,255,0.3),  0 0 60px rgba(0,229,255,0.5); }
}

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%            { transform: translateY(-5px); opacity: 1; }
}

@keyframes drift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.view-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.view-title { font-family: var(--font-head); font-size: 18px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.back-btn { 
    position: relative;
    width: 40px; 
    height: 40px; 
    min-width: 40px;
    min-height: 40px;
    flex-shrink: 0;
    border-radius: 50%; 
    background: rgba(255,255,255,0.06); 
    border: 1px solid var(--border); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    transition: all 0.2s; 
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.back-btn::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
}
.back-btn:hover { 
    background: rgba(255,255,255,0.12); 
    border-color: rgba(255,255,255,0.25); 
}
.back-btn:active {
    transform: scale(0.92);
    background: rgba(255,255,255,0.18);
}
#modalSueno {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.94);
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: calc(24px + env(safe-area-inset-top, 20px)) !important;
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 20px)) !important;
    padding-left: calc(16px + env(safe-area-inset-left, 0px)) !important;
    padding-right: calc(16px + env(safe-area-inset-right, 0px)) !important;
    box-sizing: border-box;
}
#modalGlobal {
    padding-top: calc(24px + env(safe-area-inset-top, 20px)) !important;
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 20px)) !important;
    padding-left: calc(16px + env(safe-area-inset-left, 0px)) !important;
    padding-right: calc(16px + env(safe-area-inset-right, 0px)) !important;
    box-sizing: border-box;
}
.progress-pill-container { width: 100%; height: 6px; background: rgba(255,255,255,0.04); border-radius: 10px; overflow: hidden; margin: 8px 0; }
.progress-pill { height: 100%; background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple)); border-radius: 10px; transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); }
.stat-card { background: rgba(255,255,255,0.02); border: 1px solid var(--border); padding: 16px; border-radius: 8px; display: flex; flex-direction: column; gap: 4px; }
.stat-value { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--accent-cyan); }
.stat-label { font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.logout-link { font-family: var(--font-mono); font-size: 10px; color: var(--accent-red); opacity: 0.6; text-decoration: none; cursor: pointer; margin-top: 30px; display: inline-block; }


/* -- Financial Area: Accordion & Forms ------ */
.accordion-section {
    margin-bottom: 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-header {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(255,255,255,0.01);
}
.accordion-header:hover { background: rgba(255,255,255,0.03); }
.accordion-title {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-cyan);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.accordion-section.expanded .accordion-content {
    max-height: 2000px;
    padding: 0 20px 24px;
}
.accordion-chevron {
    transition: transform 0.3s;
    color: var(--text-muted);
}
.accordion-section.expanded .accordion-chevron { transform: rotate(180deg); }

/* Form Fields */
.f-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 10px;
}
.f-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.f-label {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.f-input {
    background: rgba(14,14,20,0.6);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    padding: 10px 12px;
    color: #fff;
    font-size: 13px;
    font-family: var(--font-body);
    outline: none;
    transition: all 0.2s;
}
.f-input:focus {
    border-color: var(--accent-cyan);
    background: rgba(0,229,255,0.03);
    box-shadow: 0 0 10px rgba(0,229,255,0.1);
}

.auto-fill-flash {
    animation: flashCyan 1.5s ease;
}
@keyframes flashCyan {
    0% { border-color: var(--accent-cyan); box-shadow: 0 0 20px var(--accent-cyan); }
    100% { border-color: rgba(255,255,255,0.08); box-shadow: none; }
}

.f-attachment-area {
    margin-top: 24px;
    padding: 20px;
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
}
.f-attachment-area:hover { background: rgba(0,229,255,0.03); border-color: var(--accent-cyan); }
.f-attachment-label {
    font-family: var(--font-head);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
}

.f-save-btn {
    position: fixed;
    bottom: 80px;
    left: 20px;
    right: 20px;
    background: var(--accent-cyan);
    color: black;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-weight: 700;
    font-family: var(--font-head);
    letter-spacing: 1px;
    cursor: pointer;
    z-index: 90;
    box-shadow: 0 10px 30px rgba(0,229,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
}



/* -- Compact Patrimonial Rows ------ */
.f-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    gap: 8px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.f-row-label {
    font-size: 11px;
    color: var(--text-primary);
    font-weight: 500;
}
.f-row-header {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 7px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 6px;
    margin-top: 14px;
}
.f-mini-input {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 3px;
    padding: 6px 8px;
    color: #fff;
    font-size: 10px;
    width: 100%;
    outline: none;
}
.f-mini-input:focus { border-color: var(--accent-cyan); }

.f-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 20px 0;
}

.ai-badge {
    font-size: 7px;
    font-family: var(--font-mono);
    background: rgba(0,229,255,0.1);
    color: var(--accent-cyan);
    padding: 2px 4px;
    border-radius: 2px;
    border: 1px solid rgba(0,229,255,0.2);
    margin-left: 6px;
    text-transform: uppercase;
}

/* ── Onboarding & Futuristic Effects ── */
.nebula-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle, rgba(138,43,226,0.05) 0%, transparent 70%);
}

.bank-card { 
    background: rgba(255,255,255,0.03); 
    border: 1px solid rgba(255,255,255,0.06); 
    border-radius: 12px; 
    height: 50px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    transition: all 0.2s; 
}
.bank-card:hover { 
    border-color: var(--accent-cyan); 
    background: rgba(0,229,255,0.05); 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.6; }
}

@keyframes orbNebula {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(20deg); }
}

/* ── Command Center Dashboard ── */
.command-center {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 6px 0 20px;
    padding: 0 4px;
}

.cc-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.cc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 2px; height: 100%;
    background: var(--accent-cyan);
    opacity: 0.5;
}

.cc-label {
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cc-value {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cc-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: blink 2s infinite;
}

.cc-progress-bg {
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    margin-top: 6px;
}

.cc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 2px;
    transition: width 1s ease;
}

/* ── One-Click Fix Widgets ── */
.fix-widget {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeIn 0.4s ease;
    max-width: 300px;
}

.fix-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fix-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(138, 43, 226, 0.2);
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fix-title {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.fix-desc {
    font-family: var(--font-mono);
    font-size: 10px;
    color: #888;
    line-height: 1.5;
}

.fix-btn {
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.1), rgba(138, 43, 226, 0.2));
    border: 1px solid var(--accent-purple);
    border-radius: 8px;
    padding: 10px;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.fix-btn:hover {
    background: var(--accent-purple);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

/* ── Dream Runway (Motor de Sueños) ── */
.dream-runway {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.runway-line {
    position: absolute;
    left: 40px;
    top: 60px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
    opacity: 0.3;
}

.runway-step {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.step-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #000;
    border: 2px solid var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.step-marker.done {
    background: var(--accent-cyan);
    color: #000;
}

.step-marker.future {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.step-content {
    flex: 1;
}

.step-title {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.step-desc {
    font-family: var(--font-mono);
    font-size: 10px;
    color: #666;
    line-height: 1.4;
}

/* ── ARSENAL LEGAL: LA CARTA DEL SOBERANO ── */
.legal-card {
    animation: slideUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: top;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
}

.legal-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--accent-red), #ff6b6b);
}

.legal-card button {
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.2);
}

.legal-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Live Audit Log ── */
.real-time-audit-container {
    padding: 0 4px;
    margin-top: -10px;
    margin-bottom: 8px;
    max-height: 160px;
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top center;
    transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.real-time-audit-header {
    font-family: var(--font-mono);
    font-size: 7px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 1.2px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.real-time-audit-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 6px var(--accent-cyan);
    animation: auditDotPulse 1.4s infinite ease-in-out;
}

@keyframes auditDotPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
}

.real-time-audit-container.audit-collapsing {
    max-height: 0 !important;
    opacity: 0 !important;
    transform: scaleY(0) translateY(-8px) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    pointer-events: none !important;
}

.real-time-audit-container.audit-hidden {
    display: none !important;
}

.audit-log {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px 12px;
    margin: 4px 0 0;
    max-height: 100px;
    overflow-y: auto;
}

/* Premium Scrollbar for Audit Log (PC/Windows) */
.audit-log::-webkit-scrollbar {
    width: 3px;
}
.audit-log::-webkit-scrollbar-track {
    background: transparent;
}
.audit-log::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}
.audit-log::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 229, 255, 0.2);
}
/* Firefox */
.audit-log {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

.audit-entry {
    font-family: var(--font-mono);
    font-size: 8px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.audit-entry:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.audit-entry.active {
    color: var(--accent-cyan);
}

.audit-entry.active::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--accent-cyan);
}

/* ── Master Plan Premium Button ── */
.master-plan-container {
    margin: 30px 0;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(0, 229, 255, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    text-align: center;
    animation: glowPulse 4s infinite alternate;
}

@keyframes glowPulse {
    from { box-shadow: 0 0 5px rgba(255, 215, 0, 0.1); }
    to { box-shadow: 0 0 20px rgba(0, 229, 255, 0.2); }
}

.btn-master-plan {
    background: linear-gradient(90deg, #ffd700, #00e5ff);
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    color: #000;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-master-plan:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.4);
}

.btn-master-plan:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.master-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid #ffd700;
    border-radius: 20px;
    color: #ffd700;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* -- NEW SUPER IA ORB -- */
.scene { position: relative; width: 400px; height: 400px; display: flex; align-items: center; justify-content: center; cursor: pointer; margin: 0 auto; }
.ambient { position: absolute; width: 100%; height: 100%; background: radial-gradient(ellipse at 50% 48%, rgba(0, 180, 255, 0.12) 0%, rgba(100, 60, 255, 0.07) 50%, transparent 75% ); animation: ambientPulse 4s ease-in-out infinite; pointer-events: none; }
@keyframes ambientPulse { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }
.wings-wrap { position: absolute; width: 100%; top: -50px; display: flex; justify-content: center; }
.wings-img { width: 95%; object-fit: contain; animation: wingBreathe 7s ease-in-out infinite; transform-origin: center 40%; filter: drop-shadow(0 0 25px rgba(0, 200, 255, 0.6)) brightness(1.1); mix-blend-mode: screen; transition: filter 0.5s ease; }
@keyframes wingBreathe { 0%, 100% { transform: scale(1) translateY(0px); } 50% { transform: scale(1.04) translateY(-6px); } }
.scene:hover .wings-img, .scene.active .wings-img { filter: drop-shadow(0 0 40px rgba(0, 230, 255, 1)) drop-shadow(0 0 100px rgba(60, 120, 255, 0.6)) drop-shadow(0 0 160px rgba(100, 60, 255, 0.35)); animation: wingFlare 0.5s ease-out forwards; }
@keyframes wingFlare { to { transform: scale(1.07) translateY(-9px); } }
.core-glow { position: absolute; width: 100px; height: 100px; top: 43%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(ellipse at center, rgba(0, 230, 255, 0.28) 0%, rgba(80, 100, 255, 0.16) 45%, transparent 75% ); animation: corePulse 3s ease-in-out infinite; pointer-events: none; }
@keyframes corePulse { 0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); } }
.scene:hover .core-glow, .scene.active .core-glow { animation: coreFlare 0.3s ease-out forwards; }
@keyframes coreFlare { to { opacity: 1; transform: translate(-50%, -50%) scale(1.4); } }
.ring-overlay { position: absolute; width: 120px; height: 120px; top: 43%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.ring-outer { transform-origin: 50% 50%; animation: rotateSlow 22s linear infinite; }
.ring-inner { transform-origin: 50% 50%; animation: rotateSlow 13s linear infinite reverse; }
@keyframes rotateSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.center-eye { position: absolute; width: 8px; height: 8px; top: 43%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: #00ffee; box-shadow: 0 0 8px 3px rgba(0, 255, 238, 1), 0 0 28px 10px rgba(0, 212, 255, 0.7), 0 0 60px 20px rgba(80, 100, 255, 0.4); animation: eyePulse 3s ease-in-out infinite; pointer-events: none; }
@keyframes eyePulse { 0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.6); } }
.particle { position: absolute; border-radius: 50%; background: #00d4ff; pointer-events: none; animation: floatUp linear infinite; }
@keyframes floatUp { 0% { opacity: 0; transform: translateY(0) scale(1); } 20% { opacity: 0.9; } 80% { opacity: 0.4; } 100% { opacity: 0; transform: translateY(-100px) scale(0.2); } }
.scene .label { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); font-size: 8px; letter-spacing: 4px; color: rgba(0, 200, 255, 0.4); text-transform: uppercase; white-space: nowrap; transition: color 0.3s, letter-spacing 0.3s; }
.scene:hover .label { color: rgba(0, 255, 238, 0.9); letter-spacing: 6px; }
.scene .status { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); font-size: 7px; letter-spacing: 1.5px; color: rgba(100, 80, 255, 0.5); white-space: nowrap; animation: statusBlink 4s ease-in-out infinite; }
@keyframes statusBlink { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; color: rgba(0, 255, 238, 0.7); } }

/* ═══════════════════════════════════════════════════
   MODO SANTUARIO — EL SOS EMOCIONAL
═══════════════════════════════════════════════════ */

.santuario-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    outline: none;
}

.santuario-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(0.25) brightness(0.7) contrast(1.15);
    opacity: 0.75;
    border: 1px solid rgba(212, 168, 67, 0.3);
    animation: heartbeatQuiet 4s ease-in-out infinite;
}

/* Dedicated rich golden coin styling inside the futuristic bottom dock */
.bottom-nav .santuario-btn {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    position: relative;
    z-index: 3;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-nav .santuario-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #eab308;
    box-shadow: 
        0 0 16px rgba(234, 179, 8, 0.45),
        0 4px 10px rgba(0, 0, 0, 0.25),
        inset 0 0 6px rgba(255, 255, 255, 0.4);
    filter: brightness(1.08) contrast(1.1);
    opacity: 1;
    animation: heartbeatQuiet 4s ease-in-out infinite;
}

.bottom-nav .santuario-btn:hover {
    transform: scale(1.1) translateY(-2px);
}

.bottom-nav .santuario-btn:hover img {
    border-color: #ffd700;
    box-shadow: 
        0 0 24px rgba(255, 215, 0, 0.75),
        0 6px 14px rgba(0, 0, 0, 0.35),
        inset 0 0 8px rgba(255, 255, 255, 0.7);
    filter: brightness(1.22) contrast(1.15);
}

.santuario-btn:hover {
    transform: scale(1.12) rotate(3deg);
}

.santuario-btn:hover img {
    filter: grayscale(0) brightness(1.15) drop-shadow(0 0 8px rgba(212, 168, 67, 0.7));
    opacity: 1;
    border: 1px solid rgba(212, 168, 67, 0.7);
}

.santuario-btn-active {
    animation: heartbeatActive 1.5s ease-in-out infinite;
}

.santuario-btn-active img,
.bottom-nav .santuario-btn-active img {
    filter: grayscale(0) brightness(1.25) drop-shadow(0 0 15px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 5px rgba(212, 168, 67, 0.5)) !important;
    opacity: 1 !important;
    border: 2px solid rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.9), 0 0 12px rgba(212, 168, 67, 0.6) !important;
    animation: none !important;
}

@keyframes heartbeatQuiet {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.08); opacity: 0.8; }
}

@keyframes heartbeatActive {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.2); }
    28% { transform: scale(1); }
    42% { transform: scale(1.15); }
    70% { transform: scale(1); }
}

/* Santuario: banner superior + fondo ambiental — NUNCA bloquea el chat */
.santuario-overlay {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-max-width);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
    pointer-events: none; /* NUNCA bloquea — solo el botón de cerrar es clickable */
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.santuario-overlay.santuario-active {
    opacity: 1;
}

/* Fondo ambiental blanco que envuelve toda la app sin bloquear */
.santuario-ambient {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.15) 0%, rgba(200, 240, 255, 0.05) 40%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.santuario-ambient.santuario-active {
    opacity: 1;
}

@keyframes sanctuaryBreath {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

.santuario-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 248, 255, 0.9) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    animation: slideDown 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-100%); }
    to { opacity: 1; transform: translateY(0); }
}

.santuario-icon {
    font-size: 20px;
    animation: dove 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
    flex-shrink: 0;
}

@keyframes dove {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
}

.santuario-title {
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    color: rgba(50, 50, 60, 0.9);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    flex: 1;
}

.santuario-subtitle {
    display: none; /* oculto en el banner compacto */
}

.santuario-close {
    font-family: var(--font-mono);
    font-size: 9px;
    color: rgba(100, 100, 110, 0.8);
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.3s;
    padding: 4px 10px;
    border: 1px solid rgba(100, 100, 110, 0.2);
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    pointer-events: all; /* Solo el botón de cerrar es clickable */
    background: rgba(0, 0, 0, 0.04);
}

.santuario-close:hover {
    color: rgba(0, 0, 0, 0.9);
    border-color: rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.08);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── LEGACY HERMETICUM: LA BÓVEDA DEL ALMA ── */
.legacy-card-profile {
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.05) 0%, rgba(10, 10, 15, 0.95) 100%);
    border: 1px solid rgba(212, 168, 67, 0.2);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(212, 168, 67, 0.05);
}

.legacy-card-profile::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, #d4a843, transparent);
}

/* Custom Toggle Premium */
.legacy-toggle {
    width: 54px;
    height: 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 0 6px;
}

.legacy-toggle-on {
    background: rgba(212, 168, 67, 0.15);
    border-color: rgba(212, 168, 67, 0.4);
    box-shadow: 0 0 15px rgba(212, 168, 67, 0.1);
}

.legacy-toggle-knob {
    width: 14px;
    height: 14px;
    background: #444;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    left: 4px;
}

.legacy-toggle-on .legacy-toggle-knob {
    left: calc(100% - 18px);
    background: #d4a843;
    box-shadow: 0 0 10px #d4a843;
}

.legacy-toggle-label {
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    color: rgba(255,255,255,0.2);
    margin-left: auto;
    transition: all 0.3s;
}

.legacy-toggle-on .legacy-toggle-label {
    color: #d4a843;
    margin-left: 0;
    margin-right: auto;
}

#legacyLinajeForm {
    margin-top: 15px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes skeleton {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   MAAT-I RADIANT LUXURY LIGHT MODE (Alabastro, Cristal, Oro, Cian & Amatista)
   ========================================================================== */

/* ── Fondo Global y Atmósfera Radiante ── */
body.light-mode {
    background-color: var(--bg);
    color: var(--text-primary);
    background-image:
        radial-gradient(ellipse 90% 60% at 50% -10%, rgba(0, 180, 225, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 100% 15%, rgba(139, 92, 246, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 0% 75%, rgba(212, 168, 67, 0.08) 0%, transparent 50%),
        radial-gradient(circle, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 24px 24px;
    background-attachment: fixed;
}

body.light-mode ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
}
body.light-mode ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 162, 199, 0.35);
}

/* ── Cabecera y Logo ── */
body.light-mode .app-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
body.light-mode .logo-text {
    color: #0f172a !important;
}
body.light-mode .logo-text svg {
    filter: drop-shadow(0 0 10px rgba(0, 162, 199, 0.2)) !important;
}
body.light-mode .header-divider {
    background: rgba(0, 0, 0, 0.08);
}
body.light-mode .header-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    color: var(--text-primary);
}
body.light-mode .header-btn:hover {
    border-color: rgba(0, 162, 199, 0.4);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 162, 199, 0.15);
}
body.light-mode .slogan-block {
    color: #64748b;
}
body.light-mode .secure-badge {
    color: #007799;
}
body.light-mode .protocol-label {
    color: #94a3b8;
}

/* ── 1. Barra de Navegación Inferior (Dock de Cristal Futurista) ── */
body.light-mode .bottom-nav {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(28px) saturate(190%) contrast(105%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(190%) contrast(105%) !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
    box-shadow: 
        0 20px 44px -10px rgba(100, 116, 139, 0.22),
        0 6px 18px -4px rgba(100, 116, 139, 0.1),
        inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 2px 0 rgba(255, 255, 255, 0.35) !important;
}
body.light-mode .nav-item-slot .nav-item,
body.light-mode .nav-item-slot .nav-item-icon {
    color: #cca454 !important;
    stroke: #cca454 !important;
}
body.light-mode .nav-item-slot:hover .nav-item,
body.light-mode .nav-item-slot:hover .nav-item-icon {
    color: #d4a843 !important;
    stroke: #d4a843 !important;
}
body.light-mode .nav-item-slot.active .nav-item,
body.light-mode .nav-item-slot.active .nav-item-icon {
    color: #00e5ff !important;
    stroke: #00e5ff !important;
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.95)) drop-shadow(0 0 12px rgba(0, 229, 255, 0.5)) !important;
}
body.light-mode .nav-item-slot.active svg path,
body.light-mode .nav-item-slot.active svg circle,
body.light-mode .nav-item-slot.active svg line,
body.light-mode .nav-item-slot.active svg polyline,
body.light-mode .nav-item-slot.active svg rect,
body.light-mode .nav-item-slot.active svg ellipse {
    stroke: #00e5ff !important;
}
body.light-mode .nav-center-slot::before {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 
        0 -6px 18px rgba(255, 255, 255, 0.6),
        0 8px 20px rgba(100, 116, 139, 0.1),
        inset 0 1.5px 2px rgba(255, 255, 255, 0.95) !important;
}
body.light-mode .bottom-nav .santuario-btn img {
    border: 2px solid #eab308 !important;
    box-shadow: 0 0 18px rgba(234, 179, 8, 0.5), inset 0 0 6px rgba(255, 255, 255, 0.4) !important;
}
body.light-mode .nav-active-pill {
    background: #00e5ff !important;
    box-shadow: 0 0 8px #00e5ff, 0 0 16px rgba(0, 229, 255, 0.7) !important;
}
body.light-mode .notification-dot {
    background: #e11d48 !important;
    box-shadow: 0 0 8px rgba(225, 29, 72, 0.6) !important;
}

/* ── 2. Super IA Orb, Alas Celestiales & Centro Neural ── */
body.light-mode .ambient {
    background: radial-gradient(ellipse at 50% 48%, rgba(0, 180, 255, 0.2) 0%, rgba(139, 92, 246, 0.12) 50%, transparent 75%) !important;
}
body.light-mode .wings-img {
    mix-blend-mode: normal !important;
    filter: drop-shadow(0 8px 24px rgba(0, 180, 230, 0.38)) drop-shadow(0 0 35px rgba(139, 92, 246, 0.22)) brightness(1.03) contrast(1.05) !important;
}
body.light-mode .scene:hover .wings-img,
body.light-mode .scene.active .wings-img {
    filter: drop-shadow(0 0 32px rgba(0, 200, 255, 0.8)) drop-shadow(0 0 60px rgba(139, 92, 246, 0.5)) brightness(1.08) contrast(1.08) !important;
}
body.light-mode .core-glow {
    background: radial-gradient(ellipse at center, rgba(0, 180, 255, 0.3) 0%, rgba(139, 92, 246, 0.18) 45%, transparent 75%) !important;
}
body.light-mode .ring-overlay svg path,
body.light-mode .ring-overlay svg circle {
    stroke: rgba(0, 229, 255, 0.35) !important;
}
body.light-mode .center-eye {
    background: #00e5ff !important;
    box-shadow: 0 0 10px 3px rgba(0, 229, 255, 0.9), 0 0 24px 8px rgba(168, 85, 247, 0.5) !important;
}
body.light-mode .particle {
    background: #00e5ff !important;
}
body.light-mode .scene .label {
    color: #0090a8 !important;
    font-weight: 700 !important;
    letter-spacing: 4px !important;
}
body.light-mode .scene:hover .label {
    color: #00bcd4 !important;
}
body.light-mode .scene .status {
    color: #7c3aed !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
}
body.light-mode .orb-core {
    background: radial-gradient(circle at 30% 35%, #ffffff 0%, #00c8e5 30%, #8b5cf6 70%, #4c1d95 100%) !important;
    box-shadow: 0 10px 35px rgba(0, 162, 199, 0.35), 0 0 60px rgba(139, 92, 246, 0.25), inset 0 0 25px rgba(255, 255, 255, 0.8) !important;
}
body.light-mode .orb-core::before {
    background: radial-gradient(circle, rgba(0, 180, 255, 0.25) 0%, rgba(139, 92, 246, 0.18) 45%, transparent 70%) !important;
}
body.light-mode .orb-ring,
body.light-mode .orb-ring-1,
body.light-mode .orb-ring-2 {
    border-color: rgba(0, 162, 199, 0.18) !important;
}
body.light-mode .orb-mic {
    color: #ffffff !important;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3)) !important;
}

/* ── 3. Chat Inputs, Action Bars & Botones de Sellar ── */
body.light-mode .chat-input-wrapper {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(14px) !important;
}
body.light-mode .chat-input-wrapper:focus-within {
    border-color: rgba(0, 162, 199, 0.45) !important;
    box-shadow: 0 0 0 3px rgba(0, 162, 199, 0.12), 0 8px 24px rgba(15, 23, 42, 0.07) !important;
}
body.light-mode .chat-input,
body.light-mode .vc-input {
    color: #0f172a !important;
}
body.light-mode .chat-input::placeholder,
body.light-mode .vc-input::placeholder {
    color: #94a3b8 !important;
}
body.light-mode .chat-input-actions,
body.light-mode .vc-input-actions {
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}
body.light-mode .file-attach-btn {
    color: #64748b !important;
}
body.light-mode .file-attach-btn:hover {
    color: #00a2c7 !important;
}
body.light-mode .file-preview-item {
    background: rgba(0, 162, 199, 0.08) !important;
    border: 1px solid rgba(0, 162, 199, 0.2) !important;
    color: #007799 !important;
}
body.light-mode .send-btn,
body.light-mode .vc-send-btn {
    background: rgba(0, 229, 255, 0.1) !important;
    border: 1.5px solid #00e5ff !important;
    color: #00bcd4 !important;
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.35) !important;
    transition: all 0.25s ease !important;
}
body.light-mode .send-btn svg,
body.light-mode .vc-send-btn svg {
    stroke: #00bcd4 !important;
    filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.65)) !important;
}
body.light-mode .send-btn:hover,
body.light-mode .vc-send-btn:hover {
    background: rgba(0, 229, 255, 0.22) !important;
    border-color: #00e5ff !important;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.55) !important;
    transform: translateY(-1px) scale(1.05) !important;
}
body.light-mode .send-btn:hover svg,
body.light-mode .vc-send-btn:hover svg {
    stroke: #008fa8 !important;
}

/* Botón Sellar: Acabado Sello Blanco & Oro Pulido de Alta Gama (sin fondo beige sucio) */
body.light-mode #btnSellarMobile,
body.light-mode #btnSellarDashboard,
body.light-mode [onclick*="abrirModalMomentum()"],
body.light-mode [onclick*="sellarMomentum()"] {
    background: #ffffff !important;
    border: 1.5px solid #d4a843 !important;
    color: #92640e !important;
    box-shadow: 0 3px 14px rgba(212, 168, 67, 0.22), inset 0 1px 0 #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    text-shadow: none !important;
    transition: all 0.25s ease !important;
}
body.light-mode #btnSellarMobile:hover,
body.light-mode #btnSellarDashboard:hover,
body.light-mode [onclick*="abrirModalMomentum()"]:hover,
body.light-mode [onclick*="sellarMomentum()"]:hover {
    background: #fffdf5 !important;
    border-color: #e6b800 !important;
    color: #785004 !important;
    box-shadow: 0 6px 22px rgba(212, 168, 67, 0.38), inset 0 1px 0 #ffffff !important;
    transform: translateY(-1px) !important;
}

/* Oportunidad de Sueño: Tarjeta Blanca con Relieve de Oro Noble (eliminando fondo amarillo turbio) */
body.light-mode .dash-opportunity-card,
body.light-mode [style*="background:rgba(255,215,0"],
body.light-mode [style*="background: rgba(255,215,0"],
body.light-mode [style*="background:rgba(255, 215, 0"] {
    background: #ffffff !important;
    border: 1.5px solid rgba(212, 168, 67, 0.6) !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 24px -2px rgba(212, 168, 67, 0.16), 0 2px 8px rgba(15, 23, 42, 0.04), inset 0 1px 0 #ffffff !important;
    transition: all 0.25s ease !important;
}
body.light-mode .dash-opportunity-card:hover,
body.light-mode [style*="background:rgba(255,215,0"]:hover {
    border-color: #d4a843 !important;
    box-shadow: 0 10px 30px rgba(212, 168, 67, 0.28) !important;
    transform: translateY(-2px) !important;
}
body.light-mode .dash-opportunity-title,
body.light-mode [style*="color:#ffd700"],
body.light-mode [style*="color: #ffd700"] {
    color: #b8860b !important;
    font-weight: 800 !important;
    letter-spacing: 1.2px !important;
    text-shadow: none !important;
}
body.light-mode .dash-opportunity-text,
body.light-mode .dash-opportunity-card [style*="color:#ddd"],
body.light-mode .dash-opportunity-card [style*="color: #ddd"] {
    color: #334155 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}
body.light-mode .dash-opportunity-card b,
body.light-mode .dash-opportunity-card strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}

/* Resto de tarjetas de alertas proactivas en Modo Claro */
body.light-mode [onclick*="Revisemos mi hipoteca"],
body.light-mode [onclick*="Evalúa mis sueños"],
body.light-mode [onclick*="service/finanzas"] {
    background: #ffffff !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05), inset 0 1px 0 #ffffff !important;
}
body.light-mode [onclick*="Revisemos mi hipoteca"] div[style*="color:#ddd"],
body.light-mode [onclick*="Evalúa mis sueños"] div[style*="color:#fff"],
body.light-mode [onclick*="service/finanzas"] div[style*="color:#ddd"] {
    color: #334155 !important;
}

/* ── 4. Pantalla de Voz & Transcripción (Voice Chat) ── */
body.light-mode .vc-root {
    background: #f6f8fd !important;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 180, 230, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 100% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle, rgba(15, 23, 42, 0.035) 1px, transparent 1px) !important;
    background-size: 100% 100%, 100% 100%, 24px 24px !important;
}
body.light-mode .vc-header {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}
body.light-mode .vc-back {
    background: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #0f172a !important;
}
body.light-mode .vc-title {
    color: #0f172a !important;
}
body.light-mode .vc-subtitle {
    color: #64748b !important;
}
body.light-mode .vc-transcript {
    background: transparent !important;
}
body.light-mode .vc-msg-ai .vc-msg-bubble,
body.light-mode .vc-msg-ai > div {
    background: #ffffff !important;
    border: 1px solid rgba(0, 162, 199, 0.18) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(0, 162, 199, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    color: #1e293b !important;
}
body.light-mode .vc-msg-user .vc-msg-bubble,
body.light-mode .vc-msg-user > div {
    background: linear-gradient(135deg, rgba(0, 162, 199, 0.12) 0%, rgba(139, 92, 246, 0.1) 100%) !important;
    border: 1px solid rgba(0, 162, 199, 0.25) !important;
    box-shadow: 0 4px 16px rgba(0, 162, 199, 0.06) !important;
    color: #0f172a !important;
}
body.light-mode .vc-input-bar {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(16px) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}
body.light-mode .vc-input-box {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}
body.light-mode .vc-input-box:focus-within {
    border-color: rgba(0, 162, 199, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(0, 162, 199, 0.1) !important;
}
body.light-mode .vc-orb {
    background: radial-gradient(circle at 30% 35%, #ffffff 0%, #00c8e5 30%, #8b5cf6 70%, #4c1d95 100%) !important;
    box-shadow: 0 10px 40px rgba(0, 162, 199, 0.35), 0 0 70px rgba(139, 92, 246, 0.25), inset 0 0 25px rgba(255, 255, 255, 0.8) !important;
}
body.light-mode .vc-ring-1,
body.light-mode .vc-ring-2,
body.light-mode .vc-ring-3 {
    border-color: rgba(0, 162, 199, 0.15) !important;
}
body.light-mode #vcMicBtn {
    background: rgba(0, 162, 199, 0.1) !important;
    border: 1px solid rgba(0, 162, 199, 0.25) !important;
    color: #007799 !important;
}

/* ── 5. Tarjetas del Dashboard y Centro de Control ── */
body.light-mode .service-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
}
body.light-mode .service-card:hover {
    background: #ffffff !important;
    border-color: rgba(0, 162, 199, 0.3) !important;
    box-shadow: 0 10px 28px -4px rgba(0, 162, 199, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04) !important;
    transform: translateY(-2px) !important;
}
body.light-mode .service-title {
    color: #0f172a !important;
}
body.light-mode .service-subtitle {
    color: #64748b !important;
}
body.light-mode .service-number {
    color: #94a3b8 !important;
    font-weight: 600 !important;
}
body.light-mode .service-icon {
    color: #e11d48 !important;
}
body.light-mode .service-icon.active {
    color: #00e5ff !important;
}
body.light-mode .service-card-accent {
    border-top: 2px solid #00e5ff !important;
    box-shadow: 0 4px 16px rgba(0, 229, 255, 0.12), inset 0 1px 0 #ffffff !important;
}

body.light-mode .cc-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05), inset 0 1px 0 #ffffff !important;
}
body.light-mode .cc-card::before {
    background: linear-gradient(180deg, #00e5ff, #a855f7) !important;
    width: 3px !important;
}
body.light-mode .cc-label {
    color: #64748b !important;
    font-weight: 600 !important;
}
body.light-mode .cc-value {
    color: #0f172a !important;
    font-weight: 700 !important;
}
body.light-mode .cc-card .cc-value span[style*="background:linear-gradient"] {
    background: linear-gradient(135deg, #00e5ff 0%, #a855f7 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 800 !important;
}
body.light-mode .cc-status-dot {
    background: #00e5ff !important;
    box-shadow: 0 0 8px #00e5ff !important;
}

/* ── Barras de Energía Soberana & Sovereign Health (Colores Idénticos a Dark Mode) ── */
body.light-mode .energyBar-sync,
body.light-mode .cc-progress-fill,
body.light-mode .progress-pill {
    background: linear-gradient(90deg, #00e5ff 0%, #a855f7 100%) !important;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5) !important;
}

body.light-mode .dash-energy-card,
body.light-mode [style*="background: rgba(0,229,255,0.02)"],
body.light-mode [style*="background:rgba(0,229,255,0.02)"] {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04), inset 0 1px 0 #ffffff !important;
}
body.light-mode .dash-energy-card [style*="background:rgba(255,255,255,0.05)"],
body.light-mode .cc-progress-bg {
    background: rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
}
body.light-mode .energyText-sync {
    color: #00bcd4 !important;
    font-weight: 800 !important;
    text-shadow: 0 0 6px rgba(0, 229, 255, 0.35) !important;
}
body.light-mode .dash-energy-card [style*="color:#666"] {
    color: #64748b !important;
    font-weight: 600 !important;
}

body.light-mode .fix-widget {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 243, 255, 0.95) 100%) !important;
    border: 1px solid rgba(139, 92, 246, 0.25) !important;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1) !important;
}
body.light-mode .fix-icon {
    background: rgba(139, 92, 246, 0.12) !important;
    color: #7c3aed !important;
}
body.light-mode .fix-title {
    color: #0f172a !important;
}
body.light-mode .fix-desc {
    color: #64748b !important;
}
body.light-mode .fix-btn {
    background: linear-gradient(90deg, #00a2c7, #7c3aed) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 3px 12px rgba(124, 58, 237, 0.25) !important;
}

body.light-mode .dream-runway {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
}
body.light-mode .step-marker {
    background: #ffffff !important;
    border-color: #00a2c7 !important;
    color: #00a2c7 !important;
    box-shadow: 0 0 10px rgba(0, 162, 199, 0.2) !important;
}
body.light-mode .step-marker.done {
    background: #00a2c7 !important;
    color: #ffffff !important;
}
body.light-mode .step-title {
    color: #0f172a !important;
}
body.light-mode .step-desc {
    color: #64748b !important;
}

/* ── 6. Live Audit Log & Master Plan ── */
body.light-mode .real-time-audit-header {
    color: #64748b !important;
}
body.light-mode .audit-log {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
}
body.light-mode .audit-entry {
    color: #64748b !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
}
body.light-mode .audit-entry.active {
    color: #007799 !important;
    font-weight: 600 !important;
}
body.light-mode .master-plan-container {
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.1) 0%, rgba(0, 162, 199, 0.08) 100%) !important;
    border: 1px solid rgba(212, 168, 67, 0.4) !important;
    box-shadow: 0 8px 32px rgba(212, 168, 67, 0.12) !important;
}
body.light-mode .btn-master-plan {
    background: linear-gradient(90deg, #d4a843 0%, #00a2c7 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(0, 162, 199, 0.3) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
body.light-mode .btn-master-plan:hover {
    box-shadow: 0 8px 28px rgba(0, 162, 199, 0.45) !important;
}
body.light-mode .master-badge {
    background: rgba(212, 168, 67, 0.15) !important;
    border: 1px solid rgba(212, 168, 67, 0.6) !important;
    color: #996515 !important;
}

/* ── 7. Bóveda del Linaje (Legacy Hermeticum) & Perfil ── */
body.light-mode .legacy-card-profile {
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.08) 0%, rgba(255, 255, 255, 0.96) 100%) !important;
    border: 1px solid rgba(212, 168, 67, 0.35) !important;
    box-shadow: 0 8px 30px rgba(212, 168, 67, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}
body.light-mode .legacy-toggle {
    background: rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}
body.light-mode .legacy-toggle-knob {
    background: #94a3b8 !important;
}
body.light-mode .legacy-toggle-label {
    color: #64748b !important;
}
body.light-mode .legacy-toggle-on {
    background: rgba(212, 168, 67, 0.18) !important;
    border-color: rgba(212, 168, 67, 0.8) !important;
    box-shadow: 0 0 15px rgba(212, 168, 67, 0.2) !important;
}
body.light-mode .legacy-toggle-on .legacy-toggle-knob {
    background: #d4a843 !important;
    box-shadow: 0 0 10px rgba(212, 168, 67, 0.6) !important;
}
body.light-mode .legacy-toggle-on .legacy-toggle-label {
    color: #996515 !important;
}

/* ── 8. Formularios, Acordeones y Paneles de Cristal ── */
body.light-mode .accordion-section {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
}
body.light-mode .accordion-header {
    background: rgba(255, 255, 255, 0.5) !important;
}
body.light-mode .accordion-title {
    color: #007799 !important;
}
body.light-mode .f-input,
body.light-mode .f-mini-input {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #0f172a !important;
}
body.light-mode .f-input:focus,
body.light-mode .f-mini-input:focus {
    border-color: #00a2c7 !important;
    box-shadow: 0 0 0 3px rgba(0, 162, 199, 0.12) !important;
}
body.light-mode .f-save-btn {
    background: linear-gradient(135deg, #00a2c7 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(0, 162, 199, 0.35) !important;
}
body.light-mode .ai-badge {
    background: rgba(0, 162, 199, 0.12) !important;
    border-color: rgba(0, 162, 199, 0.3) !important;
    color: #007799 !important;
}
body.light-mode .bank-card {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
}
body.light-mode .bank-card:hover {
    border-color: #00a2c7 !important;
    background: rgba(0, 162, 199, 0.06) !important;
}
body.light-mode .glass-panel {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08) !important;
}
body.light-mode .glass-input {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #0f172a !important;
}
body.light-mode .btn-primary {
    background: #0f172a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2) !important;
}
body.light-mode .stat-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}
body.light-mode .stat-value {
    color: #00a2c7 !important;
}
body.light-mode .stat-label {
    color: #64748b !important;
}

/* ── 9. Modo Santuario Celestial ── */
body.light-mode .santuario-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%) !important;
    border-bottom: 1px solid rgba(212, 168, 67, 0.3) !important;
    box-shadow: 0 4px 25px rgba(212, 168, 67, 0.15) !important;
}
body.light-mode .santuario-title {
    color: #996515 !important;
    text-shadow: none !important;
}
body.light-mode .santuario-ambient.santuario-active {
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 215, 0, 0.12) 0%, rgba(200, 240, 255, 0.08) 40%, transparent 70%) !important;
}

/* ── 10. Sobrescritura de Elementos Dinámicos e Inline Styles ── */
body.light-mode [style*="background:rgba(14,14,20"],
body.light-mode [style*="background: rgba(14,14,20"],
body.light-mode [style*="background:rgba(14, 14, 20"],
body.light-mode [style*="background:rgba(7,7,9"],
body.light-mode [style*="background: rgba(7,7,9"],
body.light-mode [style*="background:rgba(0,0,0"],
body.light-mode [style*="background: rgba(0,0,0"],
body.light-mode [style*="background:rgba(5,5,10"],
body.light-mode [style*="background: rgba(5,5,10"],
body.light-mode [style*="background:rgba(5, 5, 10"] {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}

body.light-mode [style*="color:#fff"],
body.light-mode [style*="color: #fff"],
body.light-mode [style*="color:#ffffff"],
body.light-mode [style*="color: #ffffff"],
body.light-mode [style*="color:#d0d8e0"],
body.light-mode [style*="color: #d0d8e0"],
body.light-mode [style*="color:#ccc"],
body.light-mode [style*="color: #ccc"] {
    color: var(--text-primary) !important;
}

body.light-mode [style*="color:#888"],
body.light-mode [style*="color: #888"],
body.light-mode [style*="color:#aaa"],
body.light-mode [style*="color: #aaa"],
body.light-mode [style*="color:#666"],
body.light-mode [style*="color: #666"],
body.light-mode [style*="color:#555"],
body.light-mode [style*="color: #555"] {
    color: var(--text-muted) !important;
}

body.light-mode .lucide {
    stroke: currentColor;
}

/* ══════════════════════════════════════════════
   MAAT-I VITAL · Health & Performance Styles
   ══════════════════════════════════════════════ */

.vital-hero-card {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0%, rgba(168, 85, 247, 0.05) 50%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
}

.vital-hero-glow {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.vital-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.vital-metric-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vital-metric-card:hover {
    border-color: rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.03);
    transform: translateY(-2px);
}

.vital-metric-val {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin: 6px 0 2px 0;
}

.vital-metric-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.vital-pulse {
    animation: vitalHeartPulse 1.4s ease-in-out infinite;
}

@keyframes vitalHeartPulse {
    0% { transform: scale(1); opacity: 0.9; }
    15% { transform: scale(1.22); opacity: 1; }
    30% { transform: scale(1); opacity: 0.9; }
    45% { transform: scale(1.15); opacity: 1; }
    60% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(1); opacity: 0.9; }
}

.vital-badge-active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #10b981;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.vital-badge-idle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 600;
}

.vital-tab-btn {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.vital-tab-btn.active {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.3);
    color: var(--accent-cyan);
}

.vital-step-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
}

.vital-copy-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 10px 12px;
    border-radius: 8px;
    outline: none;
    user-select: all;
}

body.light-mode .vital-hero-card {
    background: linear-gradient(135deg, rgba(0, 162, 199, 0.08) 0%, rgba(139, 92, 246, 0.06) 50%, rgba(16, 185, 129, 0.08) 100%) !important;
    border-color: rgba(0, 162, 199, 0.25) !important;
    box-shadow: 0 8px 30px rgba(0, 162, 199, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body.light-mode .vital-metric-card {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

body.light-mode .vital-metric-card:hover {
    border-color: rgba(0, 162, 199, 0.35) !important;
    background: #ffffff !important;
    box-shadow: 0 6px 20px rgba(0, 162, 199, 0.1) !important;
}

body.light-mode .vital-copy-input {
    background: #f0f4fc !important;
    color: #007799 !important;
    border-color: rgba(0, 162, 199, 0.4) !important;
}

/* ══════════════════════════════════════════════
   DASHBOARD VITAL TELEMETRY RINGS WIDGET
   ══════════════════════════════════════════════ */

.vital-dash-widget {
    margin: 4px 4px 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05) 0%, rgba(138, 43, 226, 0.04) 50%, rgba(236, 72, 153, 0.03) 100%);
    border: 1px solid rgba(0, 229, 255, 0.22);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
}

.vital-dash-widget:hover {
    border-color: rgba(0, 229, 255, 0.45);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0%, rgba(138, 43, 226, 0.07) 50%, rgba(236, 72, 153, 0.05) 100%);
    box-shadow: 0 8px 32px rgba(0, 229, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.vital-dash-glow {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.2) 0%, rgba(138, 43, 226, 0.1) 50%, transparent 70%);
    pointer-events: none;
    filter: blur(10px);
}

.vital-dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.vital-dash-title {
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.vital-dash-badge {
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.25);
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vital-dash-body {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vital-dash-rings-wrap {
    position: relative;
    width: 116px;
    height: 116px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vital-dash-rings-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.35));
}

.vital-dash-rings-center {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.vital-dash-metrics-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.vital-dash-metric-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s ease;
}

.vital-dash-metric-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.vital-dash-metric-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.vital-dash-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.vital-dash-metric-val {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: right;
}

.vital-dash-metric-sub {
    font-size: 9px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-align: right;
}

.vital-dash-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 9px;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

body.light-mode .vital-dash-widget {
    background: #ffffff !important;
    border: 1px solid rgba(0, 229, 255, 0.35) !important;
    box-shadow: 0 6px 24px rgba(0, 229, 255, 0.09), 0 2px 8px rgba(15, 23, 42, 0.03), inset 0 1px 0 #ffffff !important;
}

body.light-mode .vital-dash-widget:hover {
    border-color: rgba(0, 229, 255, 0.6) !important;
    box-shadow: 0 10px 32px rgba(0, 229, 255, 0.18) !important;
}

body.light-mode .vital-dash-metric-item {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02) !important;
}
