/* ═══════════════════════════════════════════════════════
   CLEX.IN – CINEMATIC DESIGN SYSTEM v3.0
   Inspired by Piramyd – Elite AI Platform Aesthetic
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700&display=swap');

/* ── Design Tokens ── */
:root {
    --color-bg: #050505;
    --color-bg-elevated: #0a0a0a;
    --color-bg-card: rgba(255,255,255,0.02);
    --color-bg-card-hover: rgba(255,255,255,0.04);
    --color-surface: #111111;
    --color-border: rgba(255,255,255,0.06);
    --color-border-hover: rgba(255,255,255,0.12);
    --color-text: #e8e8e8;
    --color-text-secondary: #888888;
    --color-text-muted: #555555;
    --color-accent: #c9a96e;
    --color-accent-hover: #dfc08a;
    --color-accent-glow: rgba(201,169,110,0.15);
    --color-cyan: #22d3ee;
    --color-emerald: #34d399;
    --color-purple: #a78bfa;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-pill: 9999px;
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition-normal: 0.4s var(--ease-out);
    --transition-slow: 0.6s var(--ease-out);
}

/* ── Base Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

::selection {
    background-color: rgba(201, 169, 110, 0.25);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ── 3D Particle Canvas ── */
#particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ── Display Typography ── */
.display-serif {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.display-serif-italic {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.label-caps {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* ── Glass Cards ── */
.glass-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
    position: relative;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(201, 169, 110, 0.03), transparent 40%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.glass-card:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow:
        0 20px 50px -15px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

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

/* ── Gradient Text ── */
.gradient-text {
    background: linear-gradient(135deg, var(--color-accent), #e8d5a8, var(--color-accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 6s linear infinite;
}

.gradient-text-cyan {
    background: linear-gradient(135deg, #22d3ee, #67e8f9, #22d3ee);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ── Glow Pulse ── */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(201, 169, 110, 0.2), 0 0 15px rgba(201, 169, 110, 0.05);
    }
    50% {
        box-shadow: 0 0 10px rgba(201, 169, 110, 0.4), 0 0 30px rgba(201, 169, 110, 0.1);
    }
}

.glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

/* ── Float Animation ── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* ── Marquee ── */
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 220s linear infinite;
    display: flex;
    width: max-content;
    will-change: transform;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* ── Premium Buttons ── */
.btn-primary {
    position: relative;
    background: linear-gradient(135deg, var(--color-accent), #b8944d);
    color: #050505;
    padding: 0.85rem 2.25rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.88rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 0 20px rgba(201, 169, 110, 0.15), 0 4px 12px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(201, 169, 110, 0.3), 0 8px 24px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, var(--color-accent-hover), var(--color-accent));
}

.btn-secondary {
    position: relative;
    background: transparent;
    color: var(--color-text);
    padding: 0.85rem 2.25rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 0.88rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.02em;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

/* ── Category Tabs ── */
.category-tab {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
    font-family: var(--font-body);
}

.category-tab:hover {
    color: var(--color-text);
    background: transparent;
    border-color: transparent;
    transform: none;
}

.category-tab.active {
    color: #fff;
    background: transparent;
    border-color: rgba(201, 169, 110, 0.6);
    box-shadow: none;
}

/* ── Model Cards ── */
.model-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: all 0.5s var(--ease-out);
    cursor: default;
    position: relative;
    overflow: visible;
    z-index: 2;
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0), transparent);
    transition: all 0.5s ease;
}

.model-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(400px circle at var(--card-x, 50%) var(--card-y, 50%), rgba(201, 169, 110, 0.02), transparent 40%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}

.model-card:hover {
    background: var(--color-bg-card-hover);
    border-color: rgba(201, 169, 110, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(201, 169, 110, 0.04);
}

.model-card:hover::before {
    background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.3), transparent);
}

.model-card:hover::after {
    opacity: 1;
}

.model-card .try-btn {
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s var(--ease-out);
}

.model-card:hover .try-btn {
    opacity: 1;
    transform: translateY(0);
}

/* ── Tag Badges ── */
.tag-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--font-body);
    background: rgba(201, 169, 110, 0.06);
    color: rgba(201, 169, 110, 0.7);
    border: 1px solid rgba(201, 169, 110, 0.12);
}

.tag-badge.code {
    background: rgba(168, 85, 247, 0.06);
    color: rgba(168, 85, 247, 0.7);
    border-color: rgba(168, 85, 247, 0.12);
}

.tag-badge.speech {
    background: rgba(251, 191, 36, 0.06);
    color: rgba(251, 191, 36, 0.7);
    border-color: rgba(251, 191, 36, 0.12);
}

.tag-badge.safety {
    background: rgba(239, 68, 68, 0.06);
    color: rgba(239, 68, 68, 0.7);
    border-color: rgba(239, 68, 68, 0.12);
}

.tag-badge.embedding {
    background: rgba(52, 211, 153, 0.06);
    color: rgba(52, 211, 153, 0.7);
    border-color: rgba(52, 211, 153, 0.12);
}

/* ── Chat Panel ── */
.chat-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 480px;
    max-width: 100vw;
    background: rgba(5, 5, 5, 0.97);
    border-left: 1px solid var(--color-border);
    backdrop-filter: blur(24px);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out);
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.chat-panel.open {
    transform: translateX(0);
}

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

.chat-bubble {
    max-width: 85%;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-lg);
    font-size: 0.88rem;
    line-height: 1.7;
    word-wrap: break-word;
    animation: bubbleIn 0.3s ease-out;
}

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

.chat-bubble.user {
    align-self: flex-end;
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.15);
    color: white;
    border-bottom-right-radius: 0.3rem;
}

.chat-bubble.assistant {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    color: #d1d5db;
    border-bottom-left-radius: 0.3rem;
}

.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    background: rgba(5, 5, 5, 0.9);
}

.chat-input-bar input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    outline: none;
    transition: all 0.3s;
    font-family: var(--font-body);
}

.chat-input-bar input:focus {
    border-color: rgba(201, 169, 110, 0.4);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.06);
}

.chat-input-bar button {
    background: rgba(201, 169, 110, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.2);
    color: var(--color-accent);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-input-bar button:hover {
    background: rgba(201, 169, 110, 0.2);
    box-shadow: 0 0 15px rgba(201, 169, 110, 0.1);
}

/* ── Docs Page ── */
.docs-sidebar {
    position: sticky;
    top: 6rem;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
}

.docs-sidebar a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    border-left: 2px solid transparent;
    transition: all 0.3s;
    text-decoration: none;
    font-weight: 500;
}

.docs-sidebar a:hover {
    color: var(--color-text);
    border-left-color: rgba(255, 255, 255, 0.1);
}

.docs-sidebar a.active {
    color: var(--color-accent);
    border-left-color: var(--color-accent);
    background: rgba(201, 169, 110, 0.04);
}

.docs-section {
    scroll-margin-top: 6rem;
}

/* ── Code Blocks ── */
.code-block {
    position: relative;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 1rem 0;
}

.code-block .code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.72rem;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-weight: 500;
}

.code-block pre {
    margin: 0;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    font-size: 0.8rem;
    line-height: 1.8;
}

.code-block code {
    color: #d1d5db;
    font-family: var(--font-mono);
}

.copy-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-secondary);
    padding: 0.25rem 0.65rem;
    border-radius: 0.35rem;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    font-family: var(--font-body);
    font-weight: 600;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(201, 169, 110, 0.3);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

/* ── Featured Card ── */
.featured-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all 0.5s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.featured-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(201, 169, 110, 0.03), transparent 40%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.featured-card:hover {
    background: var(--color-bg-card-hover);
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow:
        0 24px 60px -15px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.04);
}

.featured-card:hover::after {
    opacity: 1;
}

/* ── Login / Auth Page ── */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.login-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    width: 100%;
    max-width: 440px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.25), transparent);
}

.login-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    outline: none;
    transition: all 0.3s;
    font-family: var(--font-body);
}

.login-input:focus {
    border-color: rgba(201, 169, 110, 0.4);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.06);
    background: rgba(255, 255, 255, 0.04);
}

.login-input::placeholder {
    color: #4b5563;
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--color-accent), #b8944d);
    color: #050505;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.login-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.login-btn:hover {
    box-shadow: 0 0 25px rgba(201, 169, 110, 0.25), 0 8px 24px rgba(201, 169, 110, 0.1);
    transform: translateY(-2px);
}

.login-btn:hover::before {
    transform: translateX(100%);
}

.input-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.input-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.1rem;
    height: 1.1rem;
    color: #4b5563;
    pointer-events: none;
    transition: color 0.3s;
}

.input-group:focus-within .input-icon {
    color: var(--color-accent);
}

/* ── Spinner ── */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(201, 169, 110, 0.2);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ── Typing Indicator ── */
@keyframes bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

.typing-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4b5563;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0.32s; }

/* ── Subtle Grid Background ── */
.grid-bg {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: 80px 80px;
}

/* ── Orb ── */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    mix-blend-mode: screen;
}

/* ── Breathing White Glow ── */
@keyframes breathe {
    0%, 100% {
        opacity: 0.7;
        text-shadow: 0 0 8px rgba(255,255,255,0.08);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(255,255,255,0.25), 0 0 40px rgba(255,255,255,0.08);
    }
}

@keyframes breatheBorder {
    0%, 100% {
        border-color: rgba(255,255,255,0.04);
        box-shadow: 0 0 0 rgba(255,255,255,0);
    }
    50% {
        border-color: rgba(255,255,255,0.12);
        box-shadow: 0 0 20px rgba(255,255,255,0.03);
    }
}

.breathe {
    animation: breathe 4s ease-in-out infinite;
}

.breathe-border {
    animation: breatheBorder 4s ease-in-out infinite;
}

/* ── Cursor Following Gold Glow ── */
.cursor-glow-area {
    position: relative;
    overflow: hidden;
}

.cursor-glow-area::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,169,110,0.08) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    left: var(--glow-x, 50%);
    top: var(--glow-y, 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.cursor-glow-area:hover::after {
    opacity: 1;
}

/* ── AI Provider Bubbles ── */
@keyframes bubbleWobble {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-8px) rotate(2deg) scale(1.03); }
    50% { transform: translateY(-4px) rotate(-1deg) scale(1.01); }
    75% { transform: translateY(-10px) rotate(1.5deg) scale(1.04); }
}

@keyframes bubbleBounce {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.15); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes bubbleBurst {
    0% { transform: scale(1); opacity: 1; }
    30% { transform: scale(1.4); opacity: 0.8; }
    60% { transform: scale(1.8); opacity: 0.3; }
    100% { transform: scale(2.2); opacity: 0; }
}

@keyframes burstParticle {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { opacity: 0; }
}

.ai-bubble {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: bubbleWobble 5s ease-in-out infinite;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.12), rgba(255,255,255,0.02) 60%, transparent);
    border: 2px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        inset 0 -4px 12px rgba(0,0,0,0.3),
        inset 0 4px 8px rgba(255,255,255,0.08),
        0 8px 32px rgba(0,0,0,0.4),
        0 0 20px rgba(201,169,110,0.06);
    overflow: visible;
    z-index: 1;
}

.ai-bubble::before {
    content: '';
    position: absolute;
    width: 30%;
    height: 20%;
    top: 15%;
    left: 22%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.35), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.ai-bubble:hover {
    transform: translateY(-6px) scale(1.1) !important;
    box-shadow:
        inset 0 -4px 12px rgba(0,0,0,0.3),
        inset 0 4px 8px rgba(255,255,255,0.12),
        0 12px 40px rgba(0,0,0,0.5),
        0 0 30px rgba(201,169,110,0.15);
    animation-play-state: paused;
}

.ai-bubble.bursting {
    animation: bubbleBurst 0.6s ease-out forwards !important;
    pointer-events: none;
}

.ai-bubble.reassembling {
    animation: bubbleBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

.ai-bubble:nth-child(2) { animation-delay: -1s; }
.ai-bubble:nth-child(3) { animation-delay: -2s; }
.ai-bubble:nth-child(4) { animation-delay: -0.5s; }
.ai-bubble:nth-child(5) { animation-delay: -3.2s; }

.bubble-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    animation: burstParticle 0.8s ease-out forwards;
}

/* ── Golden Accent Dot Pulse ── */
@keyframes goldPulse {
    0%, 100% {
        box-shadow: 0 0 6px rgba(201,169,110,0.4), 0 0 12px rgba(201,169,110,0.1);
    }
    50% {
        box-shadow: 0 0 12px rgba(201,169,110,0.7), 0 0 30px rgba(201,169,110,0.2);
    }
}

.gold-pulse {
    animation: goldPulse 3s ease-in-out infinite;
}

/* ── Nav ── */
.nav-link {
    position: relative;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    letter-spacing: 0.03em;
}

.nav-link.active {
    background: white;
    color: black;
}

.nav-link:not(.active) {
    color: var(--color-text-secondary);
}

.nav-link:not(.active):hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link:focus-visible {
    color: white;
    box-shadow: 0 0 0 2px rgba(201, 169, 110, 0.6);
}

/* ── Stat Counter ── */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-card {
    animation: countUp 0.8s ease-out;
}

.stat-card:nth-child(2) {
    animation-delay: 0.15s;
    animation-fill-mode: both;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

/* ── Section Divider ── */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    margin: 0;
    border: none;
}

/* ── Ambient Noise Texture ── */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .chat-panel {
        width: 100vw;
    }

    .login-card {
        margin: 1rem;
        padding: 2rem;
    }
}
