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

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

    /* CHAT (Right - Midnight Sync) */
    --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);
    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;
    /* V41 FIX: High contrast gold text */
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
    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;
    /* V41 FIX: High contrast white text */
    color: #f8fafc;
    text-shadow: 0 0 10px rgba(248, 250, 252, 0.3);
    background: transparent;
    padding: 0;
    opacity: 1;
}

.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 */
.hidden {
    display: none;
}

.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;
    /* V41: Center content horizontally */
    align-items: center;
    justify-content: flex-start;
}

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

/* Large screens (≤1600px) - 17" laptops often 1440px or 1366px */
@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;
}

/* MARKDOWN TABLE STYLES */
.message-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.9em;
    font-family: 'Space Grotesk', sans-serif;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.message-content th,
.message-content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.message-content th {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--deck-accent);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.8em;
}

.message-content tr:last-child td {
    border-bottom: none;
}

.message-content tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Code block touch-up - Synesthetic: Indigo Depth & Emerald Precision */
.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 - Synesthetic: Indigo Depth */
.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: #1e1b4b;
    /* Theme Navy (match --deck-bg) */
    --god-highlight: #ffffff;
}

#god-hud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 12, 0.95);
    /* Deep Void */
    backdrop-filter: blur(12px) saturate(180%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Courier New', Courier, monospace;
    /* Hard Coding Font */
    font-size: 140%;
    /* V41: 40% larger text */
    color: var(--god-text);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

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

/* Panel Borders & Backgrounds */
.god-glass-pane {
    width: 95%;
    /* V41: Wider */
    max-width: 1600px;
    /* V41: 60% wider (was 1000px) */
    height: 90vh;
    /* V41: Taller to accommodate larger text */
    background: rgba(30, 27, 75, 0.95);
    /* Deep Navy */
    border: 1px solid var(--god-text);
    box-shadow: 0 0 50px rgba(251, 191, 36, 0.2), inset 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* ... scanline ... */

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

/* ... headers ... */

/* NEURAL NODES */
.model-node {
    background: rgba(251, 191, 36, 0.05);
    /* Gold Tint */
    border: 1px solid rgba(251, 191, 36, 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(251, 191, 36, 0.1);
    border-color: var(--god-text);
}

.model-node.active {
    border-color: #fff;
    background: rgba(251, 191, 36, 0.2);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
    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: 1.2rem;
    /* V41: Increased from 0.85rem */
}

#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 (Replacing Klimt/Void) */
#god-hud {
    background: url('nano_bg.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)
   ========================================================================== */

/* Menu Buttons */
.god-menu-btn {
    background: transparent;
    border: 1px solid rgba(0, 255, 65, 0.2);
    color: rgba(0, 255, 65, 0.7);
    padding: 15px;
    text-align: left;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.god-menu-btn:hover {
    background: rgba(0, 255, 65, 0.1);
    color: #00ff41;
    padding-left: 20px;
    /* Slide effect */
    border-color: #00ff41;
}

.god-menu-btn.active {
    background: #00ff41;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
    font-weight: bold;
    border-color: #00ff41;
}

/* 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);
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.icon-btn:hover {
    color: var(--accent-primary);
}

.icon-btn.outside-plus {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn.outside-plus:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.icon-btn.outside-plus:active {
    transform: scale(0.95);
    background: #ffd700;
    /* Gold Flash */
    color: #000;
}

.input-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    /* v33 glass effect */
    border-radius: 12px;
    padding: 4px 8px;
    /* Adjusted padding */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 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);
}

/* ============================================
   PRESET GRAVEYARD (Eliminated Protocols)
   ============================================ */
.eliminated-presets {
    margin-bottom: var(--gabriel-spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    text-align: center;
}

.graveyard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.graveyard-item {
    font-family: 'Space Grotesk', monospace;
    /* Tech feel */
    font-size: 14px;
    font-weight: 600;
    color: var(--gabriel-text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.graveyard-item:hover {
    opacity: 0.8;
}

/* Strikethrough Effect */
.graveyard-item.crossed-out::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    width: 120%;
    height: 2px;
    background: #FF4444;
    /* Bright Red Strike */
    transform: translateY(-50%) rotate(-2deg);
    /* Slightly skewed */
    box-shadow: 0 0 5px rgba(255, 68, 68, 0.6);
}

/* ============================================
   TIER MODE ICONS (V41 - Replaces Teaser Presets)
   ============================================ */
.tier-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.tier-item {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(30, 27, 75, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tier-icon-svg {
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

/* Hover State */
.tier-item:hover {
    background: rgba(45, 42, 100, 0.8);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(251, 191, 36, 0.4);
}

.tier-item:hover .tier-icon-svg {
    color: rgba(255, 255, 255, 0.9);
}

/* Active State (Current Mode) */
.tier-item.active {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(245, 158, 11, 0.2));
    border-color: #fbbf24;
    box-shadow:
        0 0 20px rgba(251, 191, 36, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.3);
}

.tier-item.active .tier-icon-svg {
    color: #fbbf24;
}

/* Locked State (Tier not accessible) */
.tier-item.locked {
    opacity: 0.6;
    cursor: pointer;
    /* Still clickable to show video */
}

.tier-item.locked::after {
    content: '🔒';
    position: absolute;
    bottom: -4px;
    right: -4px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tier-item.locked:hover {
    opacity: 0.9;
    border-color: rgba(148, 163, 184, 0.5);
}

/* Tier Section Title */
.tier-modes .gabriel-section-title {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-size: 0.75rem !important;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* V41: TIER UNLOCKED PANEL                                                    */
/* ═══════════════════════════════════════════════════════════════════════════ */

.tier-unlocked-panel {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
}

.tier-unlocked-panel .gabriel-section-title {
    color: #fbbf24;
    font-size: 0.8rem !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 12px;
}

.unlocked-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Solo Mode - LLM Dropdown */
.unlocked-solo .setting-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    margin-bottom: 6px;
    display: block;
}

.unlocked-solo .setting-select {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #f8fafc;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Compare Mode - LLM Dropdowns */
.unlocked-compare .setting-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    margin-bottom: 8px;
    display: block;
}

.compare-dropdowns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.compare-dropdown-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.compare-number {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.compare-llm-select {
    flex: 1;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #f8fafc;
    font-size: 0.85rem;
    cursor: pointer;
}

.llm-handle {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: #052e16;
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: monospace;
    min-width: 70px;
    text-align: center;
}

/* Legacy badge style kept for compatibility */
.llm-badge {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: #052e16;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: monospace;
}

/* Debate & Council Buttons */
.debate-btn,
.council-btn {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.debate-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.debate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.council-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.council-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* Hint Text */
.hint-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    text-align: center;
    margin-top: 6px;
    font-style: italic;
}

/* Hidden utility class */
.unlocked-content .hidden {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* PHASE 4: MODEL FAMILY IDENTITIES (UI OVERHAUL) */
/* Distinct visual styles for each AI family */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* Base Message Style Adjustment for Overrides */
.message-content {
    transition: all 0.3s ease;
}

/* --- ANTHROPIC (Claude) --- */
/* Warm, Literary, Ethical */
.msg-anthropic .message-content,
option.model-anthropic {
    background: linear-gradient(135deg, #2d2a26 0%, #3e3b36 100%) !important;
    border-left: 4px solid #d97706 !important;
    /* Amber-600 */
    font-family: 'Georgia', 'Times New Roman', serif !important;
    color: #fef3c7 !important;
    /* Amber-100 */
}

.msg-anthropic .msg-meta {
    color: #d97706 !important;
}

/* --- GOOGLE (Gemini) --- */
/* Technical, Blue, Research */
.msg-google .message-content,
option.model-google {
    background: linear-gradient(135deg, #172554 0%, #1e3a8a 100%) !important;
    border-left: 4px solid #3b82f6 !important;
    /* Blue-500 */
    font-family: 'Roboto', sans-serif !important;
    color: #dbeafe !important;
    /* Blue-100 */
}

.msg-google .msg-meta {
    color: #3b82f6 !important;
}

/* --- OPENAI (GPT) --- */
/* Modern, Green/Teal, Startup */
.msg-openai .message-content,
option.model-openai {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%) !important;
    border-left: 4px solid #10b981 !important;
    /* Emerald-500 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: #d1fae5 !important;
    /* Emerald-100 */
}

.msg-openai .msg-meta {
    color: #10b981 !important;
}

/* --- MISTRAL (European) --- */
/* Purple, Hacker/Dev, European */
.msg-mistral .message-content,
option.model-mistral {
    background: linear-gradient(135deg, #2e1065 0%, #4c1d95 100%) !important;
    border-left: 4px solid #a855f7 !important;
    /* Purple-500 */
    font-family: 'Fira Code', 'Courier New', monospace !important;
    color: #f3e8ff !important;
    /* Purple-100 */
}

.msg-mistral .msg-meta {
    color: #a855f7 !important;
}

/* --- META (Llama) --- */
/* Slate, Open Source, Neutral */
.msg-meta-ai .message-content,
/* .msg-meta is confusing with metadata class */
option.model-meta {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    border-left: 4px solid #94a3b8 !important;
    /* Slate-400 */
    font-family: system-ui, sans-serif !important;
    color: #f8fafc !important;
    /* Slate-50 */
}

.msg-meta-ai .msg-meta {
    color: #94a3b8 !important;
}

/* --- CHINESE (Deepseek/Qwen) --- */
/* Red/Gold, Academic, Traditional */
.msg-chinese .message-content,
option.model-chinese {
    background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 100%) !important;
    border-left: 4px solid #ef4444 !important;
    /* Red-500 */
    font-family: 'Times New Roman', serif !important;
    color: #fee2e2 !important;
    /* Red-100 */
}

.msg-chinese .msg-meta {
    color: #ef4444 !important;
}

/* --- DROPDOWN STYLING (Select Elements) --- */
/* Ensure options inside select inherit these styles on supported browsers */
select option {
    padding: 8px;
}

/* ========== LIGHT THEME - RICH FOREST (V41) ========== */
body.light-theme {
    background: #f0fdf4 !important;
    /* Pale Mint Base */
    color: #14532d !important;
    /* Deepest Forest Green */
}

body.light-theme .sidebar {
    background: linear-gradient(180deg, #dcfce7 0%, #bbf7d0 100%);
    /* Sage Gradient */
    border-color: rgba(20, 83, 45, 0.15);
}

body.light-theme .chat-panel {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

body.light-theme .chat-interface {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

body.light-theme .left-section {
    background: rgba(240, 253, 244, 0.95);
    border-right: 1px solid rgba(20, 83, 45, 0.1);
}

body.light-theme .message-bubble {
    background: rgba(22, 101, 52, 0.08);
    /* Dark Emerald Tint */
    color: #14532d;
    border: 1px solid rgba(22, 101, 52, 0.1);
}

body.light-theme .input-box input,
body.light-theme .input-box textarea {
    background: rgba(255, 255, 255, 0.6);
    color: #14532d;
    border-color: rgba(22, 101, 52, 0.3);
    box-shadow: 0 4px 6px -1px rgba(20, 83, 45, 0.1);
}

body.light-theme .settings-panel {
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.98) 0%, rgba(209, 250, 229, 0.98) 100%);
    border-left: 1px solid rgba(20, 83, 45, 0.2);
    box-shadow: -10px 0 40px rgba(20, 83, 45, 0.15);
}

body.light-theme .settings-title,
body.light-theme .section-title {
    color: #15803d;
    /* Pure Green 700 */
    font-weight: 700;
}

body.light-theme .setting-select {
    background: #fff;
    color: #14532d;
    border: 1px solid rgba(22, 101, 52, 0.3);
}

body.light-theme .setting-row label {
    color: #166534;
    /* Green 800 */
    font-weight: 600;
}

body.light-theme .header-info h2 {
    color: #15803d;
    /* Green 700 */
    text-shadow: 0 0 20px rgba(21, 128, 61, 0.3);
}

body.light-theme .mode-badge {
    color: #166534;
    font-weight: 700;
}