:root {
    /* --- THEME: MIDNIGHT & SUNLIGHT (User Request) --- */

    /* ADDED FOR V14 UI POLISH */
    --gabriel-navy-deep: #1e1b4b;
    --gabriel-navy-light: #4338ca;

    /* CHAT (Right - Sunlight) -> REVERTED TO NAVY (User Regression Fix) */
    --hue-chat: 240;
    /* Deep Navy Base */
    --chat-bg-base: #1e1b4b;
    --chat-bg-grad: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    --chat-text: #fffbeb;
    /* Cream Text */
    --chat-text-dim: #94a3b8;

    /* Bubbles */
    --bubble-sys-bg: #fcd34d;
    /* Rich Golden Amber (User Request) */
    /* Warm Gold -> Now Rich Amber */
    --bubble-sys-text: #0f172a;
    /* Dark Navy/Black Text */
    --bubble-user-bg: #fbbf24;
    /* Vibrant Golden Orange */
    --bubble-user-text: #ffffff;
    /* White Text */

    /* DECK (Left - Midnight) */
    --hue-deck: 240;
    --deck-bg: #1e1b4b;
    /* Dark Navy Background */
    --deck-panel: #312e81;
    --deck-card-bg: transparent;
    /* NO CARD BACKGROUND */
    --deck-text: #fffbeb;
    /* Cream Text */
    --deck-text-dim: #94a3b8;
    --deck-accent: #fbbf24;
    /* Gold Accent */
    --deck-border: rgba(255, 255, 255, 0.1);

    /* Layout Dimensions */
    --sidebar-w: 80px;
    --deck-w: 600px;

    --radius-lg: 32px;
    --radius-sm: 16px;

    /* Effects */
    --shadow-soft: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
    --shadow-pop: 0 4px 0px rgba(0, 0, 0, 0.2);
    --glass-chat: rgba(255, 255, 255, 0.6);
    --glass-deck: rgba(30, 27, 75, 0.8);
}

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

body {
    font-family: 'Outfit', sans-serif;
    height: 100vh;
    overflow: hidden;
    color: var(--chat-text);
    /* V32 FIX: Default to Dark Navy (Landing Page) */
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}

/* Hearthkeeper Theme Class (Applied via JS) */
body.preset-hearthkeeper {
    background: var(--chat-bg-base);
}

/* --- Layout & Core --- */
.app-container {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: 100%;
}

/* --- 1. SIDEBAR (Left - Nav) --- */
.sidebar {
    width: var(--sidebar-w);
    height: 100%;
    background: var(--deck-bg);
    /* Dark Navy */
    border-right: 1px solid var(--deck-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    gap: 16px;
    z-index: 10;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: var(--deck-accent);
    color: var(--chat-text);
    /* Navy Icon Text */
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: var(--shadow-pop);
}

/* --- 2. DECK (Configuration Panel) --- */
.config-deck {
    width: var(--deck-w);
    background: var(--deck-bg);
    /* Dark Navy */
    border-right: 1px solid var(--deck-border);
    padding: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Headers */
h1,
h2,
h3 {
    font-family: 'Cinzel Decorative', serif;
    font-weight: 700;
}

.deck-header {
    margin-bottom: 30px;
    text-align: center;
}

/* "Configuration" Header */
.deck-header h3 {
    font-size: 2.5rem;
    /* Much Bigger */
    color: var(--deck-accent);
    /* Gold */
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: capitalize;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.deck-subtitle {
    font-size: 1rem;
    color: var(--deck-text-dim);
    font-family: 'Outfit', sans-serif;
}

/* Section Styling - "Personality Preset", "System Dials" */
.config-section {
    margin-bottom: 30px;
    /* Reduced space */
    padding: 24px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Varying Backgrounds for Visual Separation */
.config-section:nth-of-type(1) {
    /* Personality Presets */
    background: rgba(255, 255, 255, 0.02);
}

.config-section:nth-of-type(2) {
    /* Conversation Mode */
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.config-section:nth-of-type(3) {
    /* System Dials */
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.config-section label {
    display: block;
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.5rem;
    /* Bigger */
    color: #ffffff;
    /* White to standout */
    margin-bottom: 32px;
    /* Increased internal spacing */
    font-weight: 700;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* PRESETS GRID - NO CARDS, JUST ICONS */
.preset-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    /* Tighter spacing */
}

.preset-card {
    background: transparent;
    /* Dropped the Cards */
    border-radius: 0;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: visible;
    /* Allow glow to spill */
}

.preset-card:hover {
    background: transparent;
    transform: translateY(-5px) scale(1.02);
}

.preset-card.active {
    background: transparent;
    border: none;
    box-shadow: none;
}

.preset-card.active::before {
    display: none;
    /* No border box */
}

/* Icon in card */
.p-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    margin-bottom: 20px;
    border: 2px solid var(--deck-border);
    color: #fff;
}

/* Icon in card - Image Maximized (HUGE) */
.p-icon-img {
    width: 80px;
    /* Reduced size */
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 24px;
    border: 4px solid var(--deck-border);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.preset-card:hover .p-icon-img {
    transform: scale(1.1);
    border-color: var(--deck-accent);
    box-shadow:
        0 0 30px rgba(251, 191, 36, 0.4),
        0 10px 40px rgba(0, 0, 0, 0.6);
}

.preset-card.active .p-icon-img {
    border-color: var(--deck-accent);
    box-shadow:
        0 0 50px rgba(251, 191, 36, 0.6),
        0 0 0 4px rgba(251, 191, 36, 0.3);
}

/* Text in card */
.preset-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.p-name {
    font-family: 'Cinzel Decorative', serif;
    font-weight: 700;
    font-size: 1.4rem;
    /* Larger Name */
    color: var(--deck-text);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.p-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: var(--deck-text-dim);
    line-height: 1.4;
    max-width: 200px;
    margin: 0 auto;
}

/* Mode Switcher */
.mode-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
}

.mode-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 100px;
    border: 1px solid var(--deck-border);
    background: rgba(255, 255, 255, 0.05);
    /* Transparent on Navy */
    color: var(--deck-text-dim);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: var(--deck-accent);
}

.mode-btn.active {
    background: var(--deck-accent);
    border-color: var(--deck-accent);
    color: #1e1b4b;
    /* Navy text on Gold button */
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

.mode-btn span:first-child {
    font-size: 1.2rem;
}

.mode-btn.active span:first-child {
    color: #1e1b4b;
}

/* ===== GERT SLIDERS (V19 Compact Transparent) ===== */
.dial-item.gert-slider {
    background: transparent;
    /* Removed White Card */
    padding: 0;
    border-radius: 0;
    margin-bottom: 24px;
    border: none;
    box-shadow: none;
}

.dial-header {
    margin-bottom: 6px;
    text-align: center;
}

.dial-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gabriel-gold-primary);
    /* Gold Text */
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Cinzel Decorative', serif;
}

.slider-container {
    padding: 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* GERT Range Slider - Using Image Track (THICKER) */
/* GERT Range Slider - V19 Compact Pure CSS (Digital Gold) */
input.gert-range {
    width: 100%;
    height: 6px;
    /* Ultra compact */
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    margin: 16px 0;
    /* Vertical spacing */
}

/* Track - Thin, Dark, Digital */
input.gert-range::-webkit-slider-runnable-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    /* Dark Glass */
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

input.gert-range::-moz-range-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Thumb - Golden Orb (Small & Glowing) */
input.gert-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff7cc, #fbbf24, #b45309);
    margin-top: -7px;
    /* (6px track - 18px thumb) / 2 = -6px + adjustment */
    box-shadow:
        0 0 10px rgba(251, 191, 36, 0.5),
        /* Inner Glow */
        0 2px 4px rgba(0, 0, 0, 0.5);
    /* Drop Shadow */
    transition: transform 0.1s ease, box-shadow 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

input.gert-range::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff7cc, #fbbf24, #b45309);
    border: none;
    box-shadow:
        0 0 10px rgba(251, 191, 36, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Hover Effects */
input.gert-range:hover::-webkit-slider-thumb {
    transform: scale(1.1);
    box-shadow:
        0 0 15px rgba(251, 191, 36, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.6);
    background: radial-gradient(circle at 30% 30%, #fff, #fbbf24, #b45309);
}

input.gert-range:active::-webkit-slider-thumb {
    transform: scale(0.95);
    background: #f59e0b;
}

/* Endpoint Labels - Dark text for white background */
.dial-endpoints {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 4px;
    padding: 0 4px;
    width: 100%;
}

.endpoint-left,
.endpoint-right {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    /* Dim White */
    max-width: 48%;
    /* Prevent overlap */
    line-height: 1.2;
    font-family: 'Outfit', sans-serif;
}

.endpoint-left {
    text-align: left;
}

.endpoint-right {
    text-align: right;
}

/* --- 2. CHAT AREA (Right - Sunlight) --- */
.chat-interface {
    flex: 1;
    height: 100%;
    /* Ensure it doesn't overflow the parent */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--chat-bg-grad);
    position: relative;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 0;
    /* Remove padding from container, padding belongs on children */
    z-index: 5;
    margin-top: 0;
}

.chat-header {
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.header-info h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--chat-text);
    /* Navy Text */
    background: none;
    margin-bottom: 4px;
    letter-spacing: -1px;
    font-family: 'Cinzel Decorative', serif;
}

.mode-badge {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--chat-text);
    /* Navy Text */
    background: transparent;
    padding: 0;
    opacity: 0.8;
}

.chat-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 0 10%;
    /* Wider padding for centered feel */
    display: flex;
    flex-direction: column;
    gap: 24px;
    scroll-behavior: smooth;
    /* Hide scrollbar for cleaner look */
    scrollbar-width: none;
}

/* --- 2.1 Chat Bubbles --- */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 20px 0 20px;
    /* Padding for content */
    display: flex;
    flex-direction: column;
    gap: 24px;
    scrollbar-width: none;
}

.chat-messages::-webkit-scrollbar {
    display: none;
}

.message {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

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

.message-avatar {
    display: none;
    /* Hide avatars for cleaner look (Reference Image style) */
}

.message-content {
    background: var(--bubble-sys-bg);
    padding: 32px 40px;
    border-radius: 40px;
    border-bottom-left-radius: 8px;
    /* Tail effect */
    font-size: 1.5rem;
    /* Larger text */
    font-weight: 500;
    line-height: 1.4;
    color: var(--bubble-sys-text);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.4),
        /* Deep shadow */
        0 8px 10px -6px rgba(0, 0, 0, 0.4),
        inset 0 -4px 0 rgba(0, 0, 0, 0.1);
    /* Stronger bottom shading */
    max-width: 80%;
    position: relative;
    border: none;
    font-family: 'Outfit', sans-serif;
}

.message.user .message-content {
    background: #FFC107;
    /* Hardcoded match for image */
    color: #ffffff;
    font-weight: 600;
    border-radius: 40px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 8px;
    /* Tail effect */
    box-shadow:
        0 10px 25px -5px rgba(180, 83, 9, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(161, 98, 7, 0.4);
}

/* Markdown Styling inside Bubbles */
.message-content strong {
    font-weight: 800;
    color: inherit;
}

.message-content em {
    font-style: italic;
    opacity: 0.9;
}

.message-content h1,
.message-content h2,
.message-content h3 {
    font-family: 'Cinzel Decorative', serif;
    font-weight: 700;
    margin-top: 16px;
    margin-bottom: 8px;
    line-height: 1.2;
}

/* Input Area (Dark Pill) */
.input-area {
    padding: 30px 40px;
    display: flex;
    justify-content: center;
}

.input-box {
    width: 100%;
    max-width: 700px;
    background: #1e1b4b;
    /* Dark Navy Pill */
    border: none;
    box-shadow: 0 10px 30px -5px rgba(30, 27, 75, 0.4);
    border-radius: 60px;
    padding: 12px 12px 12px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: 0.3s;
}

.input-box:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -10px rgba(30, 27, 75, 0.5);
}

textarea {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1.1rem;
    padding: 12px 0;
    color: #fffbeb;
    /* Cream Text on Navy */
    resize: none;
    height: 48px;
    line-height: 24px;
}

textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

#send-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--deck-accent);
    /* Gold Button */
    color: #1e1b4b;
    /* Navy Icon */
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: 0.2s;
}

#send-btn:hover {
    transform: scale(1.1) rotate(10deg);
    background: #fff;
}




/* API Section */
.input-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-family: 'Space Grotesk', monospace;
}

.btn-micro {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-micro:hover {
    background: var(--deck-accent);
    color: black;
}

/* Modals and Hidden Elements */
.hidden {
    display: none !important;
}

/* God Mode Tab System - V39 Fix */
.god-tab {
    display: none;
}

.god-tab.active {
    display: block;
}

/* Ensure phonebook takes full height */
#tab-llm.active {
    display: flex;
    flex-direction: column;
}

/* V39 Fix: User Matrix needs flex for table expansion */
#tab-matrix.active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#tab-matrix .table-container {
    flex: 1;
    overflow-y: auto;
    min-height: 300px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 40, 0.4);
    backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    z-index: 100;
}

.modal-content {
    background: white;
    color: var(--chat-text);
    padding: 40px;
    border-radius: 24px;
    width: 440px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.modal-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--chat-text);
}

.modal-body {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--chat-text-dim);
}

.modal-actions .btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.modal-actions .primary {
    background: var(--deck-panel);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-actions .secondary {
    background: #f0f0f0;
    color: #666;
    margin-right: 10px;
}

/* PRE-HIDE MODAL (Critical fix maintenance) */
#consent-modal.hidden {
    display: none !important;
}

/* ============================================
   GABRIEL SETTINGS PANEL - THIRD COLUMN CSS
   Version: 1.0.0
   Compatible with Gabriel XVII Interface
   ============================================ */

/* CSS Custom Properties - Match Gabriel's Design System */
:root {
    /* Core Navy Palette (from left column) */
    --gabriel-navy-deep: #0f0f2a;
    --gabriel-navy-primary: #1a1a3e;
    --gabriel-navy-light: #252552;
    --gabriel-navy-highlight: #2d2d5a;

    /* Gold Accents (matching System Dials orbs) */
    --gabriel-gold-primary: #f4c542;
    --gabriel-gold-light: #ffd966;
    --gabriel-gold-dark: #c9a227;
    --gabriel-gold-glow: rgba(244, 197, 66, 0.4);

    /* Usage Bar Gradient Colors */
    --gabriel-usage-green: #4ade80;
    --gabriel-usage-green-dark: #22c55e;
    --gabriel-usage-orange: #fb923c;
    --gabriel-usage-orange-dark: #f97316;
    --gabriel-usage-red: #f87171;
    --gabriel-usage-red-dark: #ef4444;

    /* Text Hierarchy */
    --gabriel-text-primary: #ffffff;
    --gabriel-text-secondary: rgba(255, 255, 255, 0.7);
    --gabriel-text-muted: rgba(255, 255, 255, 0.5);

    /* Gradient Presets (inspired by screenshots 2 & 3) */
    --gabriel-gradient-panel: linear-gradient(180deg, #1a1a3e 0%, #0f0f2a 100%);
    --gabriel-gradient-card: linear-gradient(145deg, rgba(45, 45, 90, 0.6) 0%, rgba(26, 26, 62, 0.8) 100%);
    --gabriel-gradient-glow: radial-gradient(ellipse at center, rgba(244, 197, 66, 0.15) 0%, transparent 70%);
    --gabriel-gradient-input: linear-gradient(145deg, rgba(15, 15, 42, 0.8) 0%, rgba(26, 26, 62, 0.6) 100%);

    /* Spacing */
    --gabriel-spacing-xs: 4px;
    --gabriel-spacing-sm: 8px;
    --gabriel-spacing-md: 16px;
    --gabriel-spacing-lg: 24px;
    --gabriel-spacing-xl: 32px;

    /* Border Radius */
    --gabriel-radius-sm: 8px;
    --gabriel-radius-md: 12px;
    --gabriel-radius-lg: 16px;
    --gabriel-radius-xl: 20px;

    /* Transitions */
    --gabriel-transition-fast: 0.2s ease;
    --gabriel-transition-normal: 0.3s ease;
    --gabriel-transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   MAIN PANEL CONTAINER
   ============================================ */

.gabriel-settings-panel {
    width: 280px;
    max-height: calc(100vh - 40px);
    background: var(--gabriel-gradient-panel);
    border-radius: var(--gabriel-radius-xl);
    padding: var(--gabriel-spacing-xl) var(--gabriel-spacing-lg);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Ambient glow effect (like screenshot 2 & 3) */
.gabriel-settings-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gabriel-gradient-glow);
    pointer-events: none;
    opacity: 0.5;
}

/* ============================================
   SECTION TITLE (Matching Cinzel headers)
   ============================================ */

.gabriel-section-title {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--gabriel-text-primary);
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: var(--gabriel-spacing-md);
    position: relative;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* ============================================
   SETTINGS CARD (Consistent container style)
   ============================================ */

.gabriel-settings-card {
    background: var(--gabriel-gradient-card);
    border-radius: var(--gabriel-radius-lg);
    padding: var(--gabriel-spacing-lg) 16px;
    margin-bottom: var(--gabriel-spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    backdrop-filter: blur(10px);
    transition: all var(--gabriel-transition-normal);
}

.gabriel-settings-card:hover {
    border-color: rgba(244, 197, 66, 0.2);
    box-shadow: 0 0 20px rgba(244, 197, 66, 0.1);
}

/* Card Labels */
.gabriel-card-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--gabriel-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--gabriel-spacing-sm);
    display: block;
}

/* ============================================
   USERNAME DISPLAY
   ============================================ */

.gabriel-username-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--gabriel-gradient-input);
    border-radius: var(--gabriel-radius-md);
    border: 1px solid rgba(244, 197, 66, 0.3);
}

.gabriel-username-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--gabriel-gold-primary) 0%, var(--gabriel-gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(244, 197, 66, 0.3);
}

.gabriel-username-text {
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--gabriel-gold-light);
    letter-spacing: 1px;
}

/* ============================================
   LANGUAGE DROPDOWN
   ============================================ */

.gabriel-language-wrapper {
    position: relative;
}

.gabriel-language-select {
    width: 100%;
    padding: 14px 16px;
    padding-right: 40px;
    background: var(--gabriel-gradient-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--gabriel-radius-md);
    color: var(--gabriel-text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all var(--gabriel-transition-normal);
}

.gabriel-language-select:hover,
.gabriel-language-select:focus {
    border-color: var(--gabriel-gold-primary);
    outline: none;
    box-shadow: 0 0 15px rgba(244, 197, 66, 0.2);
}

.gabriel-language-select option {
    background: var(--gabriel-navy-primary);
    color: var(--gabriel-text-primary);
    padding: 10px;
}

.gabriel-dropdown-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    color: var(--gabriel-gold-primary);
}

/* ============================================
   USAGE BAR
   ============================================ */

.gabriel-usage-bar-container {
    position: relative;
    height: 24px;
    background: linear-gradient(90deg,
            var(--gabriel-usage-red-dark) 0%,
            var(--gabriel-usage-red) 15%,
            var(--gabriel-usage-orange-dark) 15%,
            var(--gabriel-usage-orange) 30%,
            var(--gabriel-usage-green-dark) 30%,
            var(--gabriel-usage-green) 100%);
    border-radius: var(--gabriel-radius-md);
    overflow: visible;
    margin-bottom: var(--gabriel-spacing-sm);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Glossy overlay */
.gabriel-usage-bar-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    border-radius: var(--gabriel-radius-md) var(--gabriel-radius-md) 0 0;
    pointer-events: none;
}

/* Gold Orb Marker (matching System Dials style) */
.gabriel-usage-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: linear-gradient(145deg, var(--gabriel-gold-light) 0%, var(--gabriel-gold-dark) 100%);
    border-radius: 50%;
    box-shadow:
        0 0 15px var(--gabriel-gold-glow),
        0 2px 8px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--gabriel-navy-deep);
    transition: left var(--gabriel-transition-smooth);
    z-index: 10;
}

/* Highlight reflection on orb */
.gabriel-usage-marker::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 6px;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

/* Usage Info Row */
.gabriel-usage-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: var(--gabriel-text-secondary);
    margin-top: var(--gabriel-spacing-sm);
}

.gabriel-usage-count {
    font-weight: 600;
    color: var(--gabriel-text-primary);
}

/* Status Badges */
.gabriel-usage-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gabriel-usage-status.green {
    background: rgba(74, 222, 128, 0.2);
    color: var(--gabriel-usage-green);
}

.gabriel-usage-status.orange {
    background: rgba(251, 146, 60, 0.2);
    color: var(--gabriel-usage-orange);
}

.gabriel-usage-status.red {
    background: rgba(248, 113, 113, 0.2);
    color: var(--gabriel-usage-red);
}

/* ============================================
   REPLENISH BUTTON
   ============================================ */

.gabriel-replenish-btn {
    width: 100%;
    padding: 16px 24px;
    margin-top: var(--gabriel-spacing-md);
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    border-radius: var(--gabriel-radius-md);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Inactive State */
.gabriel-replenish-btn.inactive {
    background: linear-gradient(145deg, rgba(45, 45, 90, 0.4) 0%, rgba(26, 26, 62, 0.6) 100%);
    color: var(--gabriel-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

/* Active State (Glowing) */
.gabriel-replenish-btn.active {
    background: linear-gradient(145deg, var(--gabriel-gold-primary) 0%, var(--gabriel-gold-dark) 100%);
    color: var(--gabriel-navy-deep);
    border: none;
    box-shadow:
        0 4px 20px var(--gabriel-gold-glow),
        0 0 40px rgba(244, 197, 66, 0.2);
    animation: gabriel-pulse-glow 2s infinite;
}

.gabriel-replenish-btn.active:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 25px rgba(244, 197, 66, 0.5),
        0 0 50px rgba(244, 197, 66, 0.3);
}

/* Shimmer Effect */
.gabriel-replenish-btn.active::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 70%);
    animation: gabriel-shimmer 3s infinite;
}

.gabriel-btn-price {
    display: block;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-top: 4px;
    opacity: 0.8;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes gabriel-pulse-glow {

    0%,
    100% {
        box-shadow:
            0 4px 20px var(--gabriel-gold-glow),
            0 0 40px rgba(244, 197, 66, 0.2);
    }

    50% {
        box-shadow:
            0 4px 25px rgba(244, 197, 66, 0.6),
            0 0 60px rgba(244, 197, 66, 0.3);
    }
}

@keyframes gabriel-shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* ============================================
   PANEL FOOTER
   ============================================ */

.gabriel-panel-footer {
    margin-top: var(--gabriel-spacing-md);
    padding-top: var(--gabriel-spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.gabriel-footer-text {
    font-size: 15px;
    color: var(--gabriel-text-muted);
    line-height: 1.6;
}

.gabriel-footer-link {
    color: var(--gabriel-gold-primary);
    text-decoration: none;
    transition: color var(--gabriel-transition-fast);
}

.gabriel-footer-link:hover {
    color: var(--gabriel-gold-light);
    text-decoration: underline;
}

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

@media (max-width: 320px) {
    .gabriel-settings-panel {
        width: 100%;
        padding: var(--gabriel-spacing-md);
    }

    .gabriel-section-title {
        font-size: 16px;
        letter-spacing: 2px;
    }
}

/* ============================================
   THREE-COLUMN LAYOUT INTEGRATION
   ============================================ */

/* Add this to your main layout CSS */
.gabriel-layout-three-column {
    display: grid;
    /* V41 FIX: Use percentages for predictable sizing on all screens */
    grid-template-columns: 22% 48% 30%;
    gap: 0;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* .gabriel-layout-three-column .gabriel-left-column {}
.gabriel-layout-three-column .gabriel-center-column {} */

.gabriel-layout-three-column .gabriel-right-column {
    /* Settings panel container */
    padding: 20px;
    background: var(--deck-bg);
    /* Use deck background for consistency */
    border-left: 1px solid var(--deck-border);
    overflow-y: auto;
    overflow-x: hidden;
    /* Enable scrolling for dials + settings */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================================
   RESPONSIVE BREAKPOINTS FOR LAPTOP/DESKTOP
   ============================================ */

/* Large screens (≤1600px) */
@media (max-width: 1600px) {
    .gabriel-layout-three-column {
        grid-template-columns: 20% 50% 30%;
    }

    .gabriel-layout-three-column .gabriel-right-column {
        padding: 16px;
    }
}

/* Medium screens (≤1440px) - Common 17" laptop resolution */
@media (max-width: 1440px) {
    .gabriel-layout-three-column {
        grid-template-columns: 18% 52% 30%;
    }

    .gabriel-layout-three-column .gabriel-right-column {
        padding: 14px;
        gap: 16px;
    }

    .perspective-panel.left {
        padding: 14px;
    }

    .chat-header h2 {
        font-size: 2rem;
    }
}

/* Smaller screens (≤1366px) - 17" laptop at standard resolution */
@media (max-width: 1366px) {
    .gabriel-layout-three-column {
        grid-template-columns: 16% 54% 30%;
    }

    .gabriel-layout-three-column .gabriel-right-column {
        padding: 12px;
        gap: 14px;
    }

    .chat-header h2 {
        font-size: 1.8rem;
    }

    .gabriel-section-title {
        font-size: 13px;
        letter-spacing: 1.5px;
    }
}

/* Small Laptop (≤1200px) */
@media (max-width: 1200px) {
    .gabriel-layout-three-column {
        grid-template-columns: 14% 56% 30%;
    }

    .gabriel-layout-three-column .gabriel-right-column {
        padding: 10px;
        gap: 12px;
    }

    .chat-header h2 {
        font-size: 1.6rem;
    }

    .gabriel-section-title {
        font-size: 12px;
        letter-spacing: 1px;
    }
}

/* Tablet Portrait (≤900px) - Stack left panel */
@media (max-width: 900px) {
    .gabriel-layout-three-column {
        grid-template-columns: 1fr minmax(280px, 1fr);
        grid-template-rows: auto 1fr;
    }

    .perspective-panel.left {
        display: none;
        /* Hide left panel on smaller tablets */
    }

    .gabriel-layout-three-column .gabriel-right-column {
        padding: 12px;
        min-width: 200px;
    }
}

/* Mobile (≤600px) - Single column */
@media (max-width: 600px) {
    .gabriel-layout-three-column {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }

    .perspective-panel.left {
        display: none;
    }

    .gabriel-layout-three-column .gabriel-right-column {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: auto;
        max-height: 40vh;
        min-width: unset;
        border-left: none;
        border-top: 1px solid var(--deck-border);
        z-index: 100;
    }

    .chat-interface {
        padding-bottom: 120px;
        /* Space for fixed settings */
    }
}

/* Compact Dials for Right Column */
.config-section.compact-dials {
    margin-bottom: 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.config-section.compact-dials label {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Ensure sliders fit width */
.slider-container {
    width: 100%;
}

input.gert-range {
    width: 100%;
}

/* === AUTH & LOGIN STYLES === */

.gabriel-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.gabriel-input {
    flex: 1;
    background: rgba(10, 10, 30, 0.6);
    border: 1px solid rgba(244, 197, 66, 0.3);
    color: #e0e0e0;
    padding: 10px 14px;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.gabriel-input:focus {
    outline: none;
    border-color: #f4c542;
    box-shadow: 0 0 10px rgba(244, 197, 66, 0.2);
    background: rgba(10, 10, 30, 0.9);
}

.gabriel-btn.full-width {
    width: 100%;
    margin-top: 5px;
    justify-content: center;
}

.gabriel-btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    width: 40px;
    color: #f4c542;
    cursor: pointer;
    transition: all 0.2s;
}

.gabriel-btn-icon:hover {
    background: rgba(244, 197, 66, 0.2);
    border-color: #f4c542;
}

.gabriel-message-box {
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.gabriel-message-box.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.gabriel-message-box.info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
}

.gabriel-message-window {
    background: linear-gradient(135deg, rgba(244, 197, 66, 0.1), rgba(10, 10, 30, 0.4));
    border-left: 3px solid #f4c542;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gabriel-link-sm {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
}

.gabriel-link-sm:hover {
    color: #f4c542;
}

.gabriel-panel-footer {
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.gabriel-footer-text a {
    color: #f4c542;
    text-decoration: none;

    .gabriel-payment-mock {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: rgba(0, 0, 0, 0.2);
        padding: 10px;
        border-radius: 6px;
        margin-bottom: 15px;
        border: 1px dashed rgba(255, 255, 255, 0.1);
    }

    .price-tag {
        color: #f4c542;
        font-weight: 700;
    }

    /* Code block touch-up - Synesthetic: Indigo Depth */
    .message-content pre {
        background: #1e1b4b;
        /* Midnight Navy */
        padding: 15px;
        border-radius: 8px;
        overflow-x: auto;
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #e2e8f0;
        /* Light text for contrast */
    }

    /* Inline Code - High Contrast */
    .message-content code {
        font-family: 'Courier New', monospace;
        font-size: 0.9em;
        color: #312e81;
        /* Deep Indigo - High Contrast on Cream */
        background: rgba(49, 46, 129, 0.1);
        /* Subtle tint */
        padding: 2px 4px;
        border-radius: 4px;
    }

    /* Ensure code INSIDE pre blocks stays light */
    .message-content pre code {
        color: inherit;
        background: transparent;
        padding: 0;
        border: none;
    }

    /* --- GOD MODE HUD (Procession of the Simulacra) --- */
    :root {
        --god-text: #fbbf24;
        /* Theme Gold (match --deck-accent) */
        --god-bg: #0a0a14;
        /* Deep Void */
        --god-highlight: #ffffff;
        /* V39: Brilliant Color Palette */
        --god-accent-primary: #00ffff;
        /* Electric Cyan */
        --god-accent-secondary: #ffdd00;
        /* Neon Banana */
        --god-accent-tertiary: #ff6b00;
        /* Hot Orange */
        --god-glow-cyan: rgba(0, 255, 255, 0.4);
        --god-glow-gold: rgba(255, 221, 0, 0.3);
    }

    /* V39: Kitchen Background with Neon Banana */
    #god-hud {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: radial-gradient(circle at center, #1e1b4b 0%, #0f172a 100%);
        /* REMOVED IMAGE AS REQUESTED - CLEAN NAVY TEXTURE */
        z-index: 9999;
        display: flex;
        justify-content: center;
        align-items: center;
        font-family: 'Courier New', Courier, monospace;
        color: var(--god-text);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease-in-out;
    }

    /* Overlay gradient for depth */
    #god-hud::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.3) 0%, rgba(10, 10, 20, 0.7) 100%);
        pointer-events: none;
    }

    #god-hud.shatter-in {
        opacity: 1;
        pointer-events: all;
    }

    /* V39: Floating Glass Panel - WIDER */
    .god-glass-pane {
        width: 95%;
        max-width: 1400px;
        /* Much wider */
        height: 85vh;
        background: linear-gradient(145deg, rgba(10, 15, 30, 0.92) 0%, rgba(20, 10, 40, 0.88) 100%);
        border: 1px solid rgba(0, 255, 255, 0.4);
        box-shadow:
            0 25px 80px rgba(0, 0, 0, 0.5),
            /* Deep shadow */
            0 0 60px rgba(0, 255, 255, 0.15),
            /* Cyan glow */
            0 0 100px rgba(255, 221, 0, 0.1),
            /* Gold aura */
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        /* Top shine */
        border-radius: 16px;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        position: relative;
        overflow: hidden;
        backdrop-filter: blur(20px) saturate(180%);
        /* Floating effect */
        transform: translateY(-10px);
        animation: floatPanel 4s ease-in-out infinite;
    }

    @keyframes floatPanel {

        0%,
        100% {
            transform: translateY(-10px);
        }

        50% {
            transform: translateY(0px);
        }
    }

    /* ... scanline ... */

    /* V39: Brilliant Panel Styling */
    .god-panel {
        border: 1px solid var(--god-glow-cyan);
        background: rgba(0, 10, 20, 0.5);
        padding: 1rem;
        display: flex;
        flex-direction: column;
        border-radius: 8px;
    }

    /* ... headers ... */

    /* V39: NEURAL NODES - Brilliant Styling */
    .model-node {
        background: linear-gradient(135deg, rgba(0, 255, 255, 0.05) 0%, rgba(255, 221, 0, 0.03) 100%);
        border: 1px solid rgba(0, 255, 255, 0.3);
        padding: 1rem;
        text-align: left;
        cursor: pointer;
        transition: all 0.25s ease;
        display: flex;
        align-items: center;
        gap: 1rem;
        color: var(--god-accent-secondary);
        border-radius: 6px;
    }

    .model-node:hover {
        background: linear-gradient(135deg, rgba(0, 255, 255, 0.12) 0%, rgba(255, 221, 0, 0.08) 100%);
        border-color: var(--god-accent-primary);
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
        transform: translateX(5px);
    }

    .model-node.active {
        border-color: var(--god-accent-primary);
        background: linear-gradient(135deg, rgba(0, 255, 255, 0.2) 0%, rgba(255, 221, 0, 0.1) 100%);
        box-shadow: 0 0 25px rgba(0, 255, 255, 0.4), inset 0 0 30px rgba(0, 255, 255, 0.1);
        color: #fff;
    }

    /* Scanline Effect */
    .god-glass-pane::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.1) 51%);
        background-size: 100% 4px;
        pointer-events: none;
        opacity: 0.3;
    }

    .god-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 2px solid var(--god-text);
        padding-bottom: 1rem;
    }

    .god-header h2 {
        font-size: 1.2rem;
        letter-spacing: 2px;
        margin: 0;
        text-shadow: 0 0 10px var(--god-text);
        color: var(--god-text);
    }

    .god-status {
        font-size: 0.8rem;
        color: var(--god-text);
    }

    .blink {
        animation: blinker 1s linear infinite;
        color: #fff;
    }

    @keyframes blinker {
        50% {
            opacity: 0;
        }
    }

    .god-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 1.5rem;
        flex: 1;
        overflow: hidden;
    }

    .god-panel {
        border: 1px solid rgba(0, 255, 65, 0.3);
        background: rgba(0, 0, 0, 0.3);
        padding: 1rem;
        display: flex;
        flex-direction: column;
    }

    .god-panel h3 {
        font-size: 0.8rem;
        color: var(--god-text);
        margin-top: 0;
        margin-bottom: 1rem;
        border-bottom: 1px dashed var(--god-text);
        padding-bottom: 0.5rem;
        opacity: 0.7;
    }

    /* TABLE STYLES */
    .table-container {
        overflow-y: auto;
        flex: 1;
    }

    #god-user-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.85rem;
    }

    #god-user-table tbody {
        display: table-row-group;
    }

    #god-user-table tr {
        display: table-row;
    }

    #god-user-table th {
        text-align: left;
        color: var(--god-text);
        padding: 0.5rem;
        border-bottom: 1px solid var(--god-text);
        opacity: 0.8;
    }

    #god-user-table td {
        padding: 0.5rem;
        border-bottom: 1px solid rgba(0, 255, 65, 0.1);
        color: #fff;
        /* White Text for Readability */
    }

    .mono {
        font-family: 'Courier New', monospace;
    }

    .user-role-admin {
        color: #f0f !important;
        /* Cyber Magenta */
        text-shadow: 0 0 5px #f0f;
    }

    /* NEURAL NODES */
    .model-grid {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }

    .model-node {
        background: rgba(0, 255, 65, 0.05);
        border: 1px solid rgba(0, 255, 65, 0.3);
        padding: 1rem;
        text-align: left;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 1rem;
        color: var(--god-text);
    }

    .model-node:hover {
        background: rgba(0, 255, 65, 0.1);
        border-color: var(--god-text);
    }

    .model-node.active {
        border-color: #fff;
        background: rgba(0, 255, 65, 0.2);
        box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
        color: #fff;
    }

    .node-icon {
        font-size: 1.5rem;
    }

    .node-name {
        font-weight: bold;
        font-size: 1rem;
    }

    .node-stat {
        font-size: 0.7rem;
        color: rgba(255, 255, 255, 0.7);
        margin-left: auto;
    }

    #god-close-btn {
        align-self: flex-end;
        background: var(--god-text);
        border: 1px solid var(--god-bg);
        color: var(--god-bg);
        padding: 0.8rem 1.5rem;
        cursor: pointer;
        font-family: inherit;
        font-weight: bold;
        transition: all 0.2s;
        text-transform: uppercase;
    }

    #god-close-btn:hover {
        background: #fff;
        box-shadow: 0 0 15px #fff;
    }

    /* --- V14 UI POLISH (Password Toggle & Links) --- */
    .gabriel-input-group {
        position: relative;
        /* Ensure absolute children are contained */
    }

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

    .gabriel-password-toggle {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.6);
        /* LIGHT COLOR for Dark Background */
        cursor: pointer;
        font-size: 1.2rem;
        padding: 4px;
        line-height: 1;
        z-index: 5;
        transition: color 0.2s;
    }

    .gabriel-password-toggle:hover {
        color: #ffffff;
    }

    .gabriel-forgot-link {
        display: block;
        text-align: right;
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.5);
        /* LIGHT COLOR for Dark Background */
        margin-top: 8px;
        text-decoration: none;
        transition: all 0.2s;
    }

    .gabriel-forgot-link:hover {
        text-decoration: underline;
        color: #ffffff;
    }

    /* NANO BANANA CSS */
    /* ==========================================================================
   NANO BANANA THEME (GREEN OVERRIDE) - V25 KITCHEN REDESIGN
   ========================================================================== */

    /* 1. SCREEN-WIDE GRADIENT - Neon Banana Background */
    #god-hud {
        background: url('/images/kitchen_bg_neon.png') no-repeat center center fixed !important;
        background-size: cover !important;
        backdrop-filter: blur(10px) saturate(140%) !important;
    }

    /* 2. GLASS PANE (Main Container) */
    .god-glass-pane {
        background: rgba(0, 20, 0, 0.4) !important;
        /* Deep Green Glass */
        border: 1px solid rgba(0, 255, 65, 0.3) !important;
        box-shadow:
            0 0 60px rgba(0, 255, 65, 0.15),
            inset 0 0 30px rgba(0, 0, 0, 0.6) !important;
        border-radius: 12px !important;
    }

    /* Scanline Effect - Make it Green */
    .god-glass-pane::before {
        background: linear-gradient(to bottom, transparent 50%, rgba(0, 255, 65, 0.05) 51%) !important;
        background-size: 100% 4px !important;
    }

    /* 3. ENLARGED DATA AREA (Floating) */
    .neural-stats-panel {
        width: 95% !important;
        max-width: 1400px !important;
        /* Huge Data Area */
        margin: 0 auto 20px auto;
        background: rgba(0, 20, 0, 0.5) !important;
        border: 1px solid rgba(0, 255, 65, 0.2) !important;
        border-radius: 12px !important;
        padding: 24px !important;
        backdrop-filter: blur(15px) !important;
        box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.6),
            0 0 20px rgba(0, 255, 65, 0.1) !important;
        position: relative;
        overflow: hidden;
        transform: translateY(0);
        transition: transform 0.3s ease;
    }

    .neural-stats-panel:hover {
        transform: translateY(-2px);
        border-color: rgba(0, 255, 65, 0.5) !important;
    }

    /* 4. TEXT & COLORS */
    :root {
        --god-text: #00ff41 !important;
        /* Matrix Green */
        --god-highlight: #ccffcc !important;
    }

    /* Headers */
    .god-header h2,
    .god-panel h3,
    #god-user-table th {
        color: #00ff41 !important;
        text-shadow: 0 0 5px rgba(0, 255, 65, 0.5) !important;
        font-family: 'Space Mono', 'Courier New', monospace !important;
        letter-spacing: 2px !important;
    }

    /* 5. BUTTONS (Neon Green) */
    .neural-controls button,
    #god-close-btn,
    .btn-reset,
    #btn-run-test,
    #btn-manage-keys {
        border: 1px solid #00ff41 !important;
        background: rgba(0, 255, 65, 0.1) !important;
        color: #00ff41 !important;
        box-shadow: 0 0 10px rgba(0, 255, 65, 0.2) !important;
        font-family: 'Space Mono', monospace !important;
        text-transform: uppercase !important;
        border-radius: 4px !important;
    }

    .neural-controls button:hover,
    #god-close-btn:hover {
        background: #00ff41 !important;
        color: #000 !important;
        box-shadow: 0 0 30px rgba(0, 255, 65, 0.6) !important;
    }

    /* 6. MAIN ICON REFLECTIONS */
    .god-header h2 {
        position: relative;
    }

    /* Add a pseudo-shine to the header text/icon */
    .god-header h2::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.8) 50%, transparent 60%);
        opacity: 0.1;
        pointer-events: none;
        animation: nano-shine 6s infinite;
    }

    @keyframes nano-shine {
        0% {
            transform: translateX(-100%) rotate(30deg);
        }

        20% {
            transform: translateX(100%) rotate(30deg);
        }

        100% {
            transform: translateX(100%) rotate(30deg);
        }
    }

    /* 7. MODEL SELECTOR (Green) */
    #gemini-model-select {
        background: rgba(0, 20, 0, 0.8) !important;
        border-color: #00ff41 !important;
        color: #00ff41 !important;
    }

    /* ==========================================================================
   SIDEBAR & TAB STYLES (Phase 2 Architecture) - V39 BRILLIANT
   ========================================================================== */

    /* V39: Menu Buttons - Brilliant Palette */
    .god-menu-btn {
        background: rgba(0, 255, 255, 0.05);
        border: 1px solid rgba(0, 255, 255, 0.3);
        color: var(--god-accent-secondary);
        padding: 15px 20px;
        text-align: left;
        font-family: 'Space Mono', monospace;
        font-size: 0.85rem;
        cursor: pointer;
        transition: all 0.25s ease;
        border-radius: 8px;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .god-menu-btn:hover {
        background: linear-gradient(90deg, rgba(0, 255, 255, 0.15) 0%, rgba(255, 221, 0, 0.1) 100%);
        color: #fff;
        padding-left: 25px;
        border-color: var(--god-accent-primary);
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    }

    .god-menu-btn.active {
        background: linear-gradient(90deg, var(--god-accent-primary) 0%, var(--god-accent-secondary) 100%);
        color: #000;
        box-shadow: 0 0 25px rgba(0, 255, 255, 0.5), 0 0 40px rgba(255, 221, 0, 0.3);
        font-weight: bold;
        border-color: transparent;
    }

    /* Tabs */
    .god-tab {
        animation: fadeIn 0.3s ease;
    }

    .god-tab.hidden {
        display: none;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Neon Button Utility */
    .btn-neon {
        background: rgba(0, 255, 65, 0.1);
        border: 1px solid #00ff41;
        color: #00ff41;
        padding: 10px 20px;
        font-family: 'Space Mono', monospace;
        text-transform: uppercase;
        cursor: pointer;
        transition: all 0.2s;
    }

    .btn-neon:hover {
        background: #00ff41;
        color: #000;
        box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    }

    /* SPARK UI OVERLAY */
    .spark-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(8px);
        z-index: 10000;
        display: none;
        /* Hidden by default */
        align-items: center;
        justify-content: center;
    }

    .spark-modal-glass {
        width: 900px;
        max-width: 95%;
        background: rgba(20, 20, 25, 0.9);
        border: 1px solid rgba(255, 215, 0, 0.2);
        /* Gold tint */
        border-radius: 16px;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
        padding: 2rem;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

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

    .spark-header h2 {
        color: #ffd700;
        font-family: 'Cinzel Decorative', serif;
        margin-bottom: 1.5rem;
        font-size: 2rem;
        text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
    }

    .spark-topic-input {
        width: 80%;
        margin: 0 auto;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #fff;
        font-size: 1.2rem;
        padding: 1rem;
        border-radius: 8px;
        text-align: center;
        display: block;
    }

    .spark-topic-input:focus {
        border-color: #ffd700;
        outline: none;
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    }

    .spark-arena-config {
        display: flex;
        flex-direction: row;
        gap: 2rem;
        align-items: flex-start;
    }

    .spark-agent-config {
        flex: 1;
        background: rgba(255, 255, 255, 0.03);
        padding: 1.5rem;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .spark-agent-config.agent-a {
        border-top: 3px solid #00ff41;
        /* Matrix Green */
    }

    .spark-agent-config.agent-b {
        border-top: 3px solid #ff0055;
        /* Neon Red */
    }

    .agent-title {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        opacity: 0.8;
    }

    .spark-vs {
        align-self: center;
        font-weight: 900;
        font-size: 1.5rem;
        color: rgba(255, 255, 255, 0.2);
        font-style: italic;
    }

    .control-group {
        margin-bottom: 1.2rem;
    }

    .control-group label {
        display: block;
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        color: rgba(255, 255, 255, 0.5);
        text-transform: uppercase;
    }

    .control-group select {
        width: 100%;
        background: #000;
        color: #fff;
        padding: 0.8rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 6px;
        font-family: 'Space Grotesk', sans-serif;
        cursor: pointer;
    }

    .control-group select:hover {
        border-color: rgba(255, 255, 255, 0.5);
    }

    .spark-footer {
        display: flex;
        justify-content: flex-end;
        gap: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1.5rem;
    }

    .btn-text {
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.6);
        cursor: pointer;
        font-size: 1rem;
    }

    .btn-text:hover {
        color: #fff;
    }

    .spark-ignite-btn {
        background: linear-gradient(135deg, #ffd700, #ffaa00);
        color: #000;
        border: none;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        font-weight: 800;
        border-radius: 8px;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(255, 170, 0, 0.3);
        transition: all 0.2s ease;
        text-transform: uppercase;
    }

    .spark-ignite-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 170, 0, 0.5);
        filter: brightness(1.1);
    }

    /* ============================================= */
    /* --- CEREBRO INTERFACE v2 (Premium Redesign) --- */
    /* ============================================= */

    /* Modal Overlay - Full Screen Dark Backdrop */
    #cerebro-modal.modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(8px);
        z-index: 9999;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 40px;
    }

    #cerebro-modal.hidden {
        display: none !important;
    }

    /* Main Panel - LARGER, Premium Glassmorphism */
    #cerebro-modal .modal-content.cerebro-panel {
        width: 1200px !important;
        max-width: 95vw !important;
        height: 85vh !important;
        min-height: 600px;
        background: linear-gradient(145deg,
                rgba(15, 10, 40, 0.98) 0%,
                rgba(30, 20, 60, 0.95) 50%,
                rgba(10, 5, 30, 0.98) 100%) !important;
        border: 1px solid rgba(251, 191, 36, 0.35) !important;
        border-radius: 24px !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        overflow: hidden !important;
        color: #fff !important;
        box-shadow:
            0 0 80px rgba(251, 191, 36, 0.15),
            0 25px 50px rgba(0, 0, 0, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
        animation: cerebroSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes cerebroSlideIn {
        from {
            opacity: 0;
            transform: scale(0.95) translateY(20px);
        }

        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }

    /* Header - Premium Title Bar */
    .cerebro-header {
        padding: 28px 32px;
        border-bottom: 1px solid rgba(251, 191, 36, 0.2);
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: linear-gradient(180deg,
                rgba(251, 191, 36, 0.08) 0%,
                transparent 100%);
    }

    .cerebro-title {
        font-family: 'Cinzel Decorative', serif;
        font-size: 2rem;
        font-weight: 700;
        background: linear-gradient(135deg, #fbbf24, #f59e0b, #fcd34d);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        display: flex;
        align-items: center;
        gap: 16px;
        text-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
    }

    .cerebro-title i,
    .cerebro-title svg {
        width: 32px;
        height: 32px;
        color: #fbbf24;
        filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5));
    }

    /* Close Button */
    .cerebro-header .icon-btn,
    #cerebro-close {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.7);
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #cerebro-close:hover {
        background: rgba(239, 68, 68, 0.2);
        border-color: rgba(239, 68, 68, 0.5);
        color: #f87171;
        transform: rotate(90deg);
    }

    /* Controls Bar - Premium Search Interface */
    .cerebro-controls {
        padding: 24px 32px;
        display: flex;
        gap: 16px;
        background: rgba(0, 0, 0, 0.3);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        align-items: center;
    }

    .cerebro-input {
        flex: 1;
        background: rgba(0, 0, 0, 0.5);
        border: 2px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 16px 24px;
        color: #fff;
        font-family: 'Outfit', sans-serif;
        font-size: 1.1rem;
        transition: all 0.3s;
    }

    .cerebro-input:focus {
        outline: none;
        border-color: rgba(251, 191, 36, 0.5);
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.15);
        background: rgba(0, 0, 0, 0.6);
    }

    .cerebro-input::placeholder {
        color: rgba(255, 255, 255, 0.3);
    }

    .cerebro-select {
        background: rgba(0, 0, 0, 0.5);
        border: 2px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 16px 20px;
        color: #fff;
        font-family: 'Outfit', sans-serif;
        font-size: 1rem;
        cursor: pointer;
        min-width: 160px;
        transition: all 0.3s;
    }

    .cerebro-select:hover {
        border-color: rgba(251, 191, 36, 0.3);
    }

    .cerebro-select option {
        background: #1a1035;
        color: #fff;
    }

    /* HUNT Button - Glowing CTA */
    .cerebro-btn {
        background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
        color: #0f0a28;
        border: none;
        border-radius: 12px;
        padding: 16px 32px;
        font-weight: 800;
        cursor: pointer;
        font-family: 'Outfit', sans-serif;
        font-size: 1rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        gap: 10px;
        box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
    }

    .cerebro-btn:hover {
        background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
        box-shadow: 0 6px 30px rgba(251, 191, 36, 0.5);
        transform: translateY(-2px);
    }

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

    .cerebro-btn svg,
    .cerebro-btn i {
        width: 20px;
        height: 20px;
    }

    /* Results Grid - Scrollable Content Area */
    .cerebro-grid {
        flex: 1;
        padding: 24px 32px;
        overflow-y: auto;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 24px;
        align-content: start;
        background: linear-gradient(180deg,
                rgba(0, 0, 0, 0.2) 0%,
                rgba(0, 0, 0, 0.4) 100%);
    }

    /* Custom Scrollbar */
    .cerebro-grid::-webkit-scrollbar {
        width: 8px;
    }

    .cerebro-grid::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 4px;
    }

    .cerebro-grid::-webkit-scrollbar-thumb {
        background: rgba(251, 191, 36, 0.3);
        border-radius: 4px;
    }

    .cerebro-grid::-webkit-scrollbar-thumb:hover {
        background: rgba(251, 191, 36, 0.5);
    }

    /* Result Card - Premium Video Cards */
    .c-card {
        background: linear-gradient(145deg,
                rgba(255, 255, 255, 0.05) 0%,
                rgba(255, 255, 255, 0.02) 100%);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .c-card:hover {
        transform: translateY(-6px) scale(1.02);
        background: linear-gradient(145deg,
                rgba(255, 255, 255, 0.08) 0%,
                rgba(255, 255, 255, 0.04) 100%);
        border-color: rgba(251, 191, 36, 0.3);
        box-shadow:
            0 12px 35px rgba(0, 0, 0, 0.4),
            0 0 20px rgba(251, 191, 36, 0.1);
    }

    .c-thumb {
        width: 100%;
        height: 180px;
        object-fit: cover;
        background: linear-gradient(135deg, #1a1035 0%, #0a0520 100%);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .c-body {
        padding: 16px 18px;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .c-title {
        font-size: 1.05rem;
        font-weight: 600;
        line-height: 1.4;
        color: #fff;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .c-meta {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.5);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .c-meta span {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    /* Action Buttons - Plant/Burn */
    .c-actions {
        padding: 14px 18px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        gap: 10px;
        background: rgba(0, 0, 0, 0.2);
    }

    .c-act-btn {
        flex: 1;
        padding: 12px 16px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.03);
        color: rgba(255, 255, 255, 0.7);
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        font-weight: 500;
        font-size: 0.9rem;
        transition: all 0.25s;
    }

    .c-act-btn svg,
    .c-act-btn i {
        width: 16px;
        height: 16px;
    }

    .c-act-btn.plant:hover {
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0.15) 100%);
        color: #34d399;
        border-color: #34d399;
        box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
    }

    .c-act-btn.plant.success {
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.4) 0%, rgba(16, 185, 129, 0.2) 100%);
        color: #10b981;
        border-color: #10b981;
    }

    .c-act-btn.prune:hover {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(239, 68, 68, 0.15) 100%);
        color: #f87171;
        border-color: #f87171;
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
    }

    /* Favorites Button */
    .c-act-btn.fav:hover {
        background: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(251, 191, 36, 0.15) 100%);
        color: #fbbf24;
        border-color: #fbbf24;
        box-shadow: 0 0 15px rgba(251, 191, 36, 0.2);
    }

    .c-act-btn.fav.saved {
        background: linear-gradient(135deg, rgba(251, 191, 36, 0.4) 0%, rgba(251, 191, 36, 0.2) 100%);
        color: #fbbf24;
        border-color: #fbbf24;
    }

    /* Loading Spinner */
    .c-spinner {
        margin: 80px auto;
        width: 56px;
        height: 56px;
        border: 4px solid rgba(255, 255, 255, 0.1);
        border-top-color: #fbbf24;
        border-radius: 50%;
        animation: cerebroSpin 0.8s linear infinite;
    }

    @keyframes cerebroSpin {
        to {
            transform: rotate(360deg);
        }
    }

    /* Empty State */
    .cerebro-grid>div[style*="text-align: center"] {
        grid-column: 1 / -1;
        padding: 80px 40px !important;
        color: rgba(255, 255, 255, 0.4) !important;
        font-size: 1.1rem;
        line-height: 1.8;
    }

    .cerebro-grid>div[style*="text-align: center"] svg,
    .cerebro-grid>div[style*="text-align: center"] i {
        color: rgba(251, 191, 36, 0.4);
        margin-bottom: 16px;
    }