@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* ============================================================
   DESIGN TOKENS — Uyumlu Liquid Glass Rənglər
   ============================================================ */
:root {
    /* Base - light mode */
    --bg: #f0f2f7;
    --bg-soft: #e8ebf2;
    --bg-elevated: #ffffff;
    
    /* Glass layers */
    --glass-1: rgba(255, 255, 255, 0.55);
    --glass-2: rgba(255, 255, 255, 0.72);
    --glass-3: rgba(255, 255, 255, 0.85);
    --glass-4: rgba(255, 255, 255, 0.95);
    
    /* Borders */
    --border-1: rgba(255, 255, 255, 0.5);
    --border-2: rgba(255, 255, 255, 0.7);
    --border-solid: rgba(0, 0, 0, 0.06);
    --border-strong: rgba(0, 0, 0, 0.12);
    
    /* Text */
    --text: #0a0e1a;
    --text-2: #4a5568;
    --text-3: #94a3b8;
    --text-muted: #cbd5e1;
    
    /* Accent — muted blue */
    --accent: #3b6fe0;
    --accent-soft: rgba(59, 111, 224, 0.08);
    --accent-glow: rgba(59, 111, 224, 0.15);
    
    /* Bubbles */
    --bubble-user: rgba(59, 111, 224, 0.12);
    --bubble-user-text: #0a0e1a;
    --code-bg: rgba(248, 250, 252, 0.9);
    
    /* Interactive */
    --hover: rgba(10, 14, 26, 0.04);
    --active: rgba(10, 14, 26, 0.07);
    
    /* Status */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    /* Shadows — soft & layered */
    --shadow-xs: 0 1px 2px rgba(10, 14, 26, 0.03);
    --shadow-sm: 0 1px 3px rgba(10, 14, 26, 0.05), 0 1px 2px rgba(10, 14, 26, 0.03);
    --shadow-md: 0 4px 12px rgba(10, 14, 26, 0.06), 0 2px 4px rgba(10, 14, 26, 0.04);
    --shadow-lg: 0 12px 40px rgba(10, 14, 26, 0.08), 0 4px 12px rgba(10, 14, 26, 0.04);
    --shadow-xl: 0 24px 60px rgba(10, 14, 26, 0.12), 0 8px 20px rgba(10, 14, 26, 0.06);
    
    /* Inner highlights — liquid glass */
    --inner-light: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    --inner-dark: inset 0 -1px 0 rgba(10, 14, 26, 0.04);
    
    /* Easing */
    --ease: cubic-bezier(0.32, 0.72, 0, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode */
[data-theme="dark"] {
    --bg: #080a10;
    --bg-soft: #0d1017;
    --bg-elevated: #131720;
    
    --glass-1: rgba(20, 25, 36, 0.55);
    --glass-2: rgba(20, 25, 36, 0.72);
    --glass-3: rgba(20, 25, 36, 0.85);
    --glass-4: rgba(20, 25, 36, 0.95);
    
    --border-1: rgba(255, 255, 255, 0.06);
    --border-2: rgba(255, 255, 255, 0.1);
    --border-solid: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);
    
    --text: #eef2f8;
    --text-2: #94a3b8;
    --text-3: #64748b;
    --text-muted: #475569;
    
    --accent: #5b8def;
    --accent-soft: rgba(91, 141, 239, 0.1);
    --accent-glow: rgba(91, 141, 239, 0.2);
    
    --bubble-user: rgba(91, 141, 239, 0.15);
    --bubble-user-text: #eef2f8;
    --code-bg: rgba(13, 16, 23, 0.8);
    
    --hover: rgba(255, 255, 255, 0.05);
    --active: rgba(255, 255, 255, 0.08);
    
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.7), 0 8px 20px rgba(0, 0, 0, 0.5);
    
    --inner-light: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --inner-dark: inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* ============================================================
   RESET
   ============================================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    -webkit-tap-highlight-color: transparent;
    font-weight: 400;
}
html, body {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
body {
    background: var(--bg);
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(59, 111, 224, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(236, 72, 153, 0.03) 0%, transparent 70%);
    background-attachment: fixed;
    color: var(--text);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.01em;
    transition: background-color 0.4s var(--ease), color 0.3s var(--ease);
}
[data-theme="dark"] body {
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(59, 111, 224, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(236, 72, 153, 0.04) 0%, transparent 70%);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-3);
}

/* ============================================================
   SPLASH
   ============================================================ */
#splash {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s var(--ease);
}
.splash-logo {
    font-size: 42px;
    font-weight: 300;
    letter-spacing: 10px;
    color: var(--text);
    display: flex;
    gap: 0;
}
.splash-logo span {
    display: inline-block;
    opacity: 0;
    animation: splashIn 0.6s var(--ease) forwards;
}
.splash-logo span:nth-child(1) { animation-delay: 0.05s; }
.splash-logo span:nth-child(2) { animation-delay: 0.13s; }
.splash-logo span:nth-child(3) { animation-delay: 0.21s; }
.splash-logo span:nth-child(4) { animation-delay: 0.29s; }
.splash-logo span:nth-child(5) { animation-delay: 0.37s; }
.splash-logo span:nth-child(6) { animation-delay: 0.45s; }
@keyframes splashIn {
    from { opacity: 0; transform: translateY(8px); filter: blur(6px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ============================================================
   WELCOME — 3D QIZ BAŞI
   ============================================================ */
#welcome {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 500;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse at 50% 30%, rgba(59, 111, 224, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease), visibility 0.5s;
    padding: 20px;
    overflow: hidden;
}
#welcome.show {
    opacity: 1;
    visibility: visible;
}

/* 3D Head Scene */
.head-scene {
    position: relative;
    width: 200px;
    height: 260px;
    margin-bottom: 40px;
    perspective: 1000px;
    perspective-origin: 50% 30%;
}
.head {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    /* Initial: looking up */
    animation: headTurn 4s var(--ease-smooth) 0.5s forwards;
}
@keyframes headTurn {
    0% {
        transform: rotateX(35deg) rotateY(0deg);
    }
    40% {
        transform: rotateX(35deg) rotateY(0deg);
    }
    100% {
        transform: rotateX(0deg) rotateY(0deg);
    }
}

/* Glow effect behind head */
.head-glow {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 111, 224, 0.35) 0%, rgba(139, 92, 246, 0.2) 40%, transparent 70%);
    filter: blur(30px);
    z-index: -1;
    animation: glowPulse 5s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

/* Hair — top of head */
.head-hair {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 90px;
    background: linear-gradient(180deg,
        #1a1f2e 0%,
        #2a3044 40%,
        #161a26 100%);
    border-radius: 80px 80px 20px 20px;
    box-shadow:
        inset 0 -10px 20px rgba(0, 0, 0, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 3;
}
.head-hair::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20%;
    width: 60%;
    height: 30px;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.12) 0%,
        transparent 100%);
    border-radius: 50%;
    filter: blur(4px);
}

/* Face */
.head-face {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 150px;
    background: linear-gradient(180deg,
        #f4d1b8 0%,
        #e8bfa0 30%,
        #d9a97f 70%,
        #c99768 100%);
    border-radius: 50% 50% 45% 45% / 40% 40% 60% 60%;
    box-shadow:
        inset 0 -20px 30px rgba(180, 130, 90, 0.3),
        inset 0 15px 20px rgba(255, 220, 190, 0.4),
        0 15px 40px rgba(0, 0, 0, 0.35);
    z-index: 2;
    overflow: hidden;
}
.head-face::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(0deg, rgba(180, 130, 90, 0.25) 0%, transparent 100%);
}

/* Forehead highlight */
.head-forehead {
    position: absolute;
    top: 15%;
    left: 20%;
    width: 40%;
    height: 25%;
    background: radial-gradient(circle, rgba(255, 240, 220, 0.5) 0%, transparent 70%);
    filter: blur(8px);
}

/* Eyes */
.head-eyes {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 32px;
    z-index: 5;
}
.eye {
    position: relative;
    width: 14px;
    height: 10px;
    background: #2a1810;
    border-radius: 50%;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.6),
        inset 0 -1px 2px rgba(255, 220, 190, 0.3);
    animation: eyeBlink 5s ease-in-out infinite;
}
.eye::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 3px;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    filter: blur(0.5px);
}
.eye::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 3px;
    background: rgba(255, 220, 190, 0.4);
    border-radius: 50%;
    filter: blur(1px);
}
@keyframes eyeBlink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.05); }
}

/* Nose */
.head-nose {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 22px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(200, 150, 110, 0.4) 50%,
        rgba(200, 150, 110, 0.2) 100%);
    border-radius: 50% 50% 45% 45%;
    box-shadow: inset 0 -3px 5px rgba(160, 110, 70, 0.3);
}
.head-nose::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 4px;
    background: rgba(160, 110, 70, 0.3);
    border-radius: 50%;
    filter: blur(1px);
}

/* Lips */
.head-lips {
    position: absolute;
    top: 74%;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 10px;
    background: linear-gradient(180deg,
        #c9707a 0%,
        #a85566 50%,
        #8b4553 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow:
        inset 0 -2px 4px rgba(100, 40, 50, 0.5),
        inset 0 2px 3px rgba(255, 180, 190, 0.4);
}
.head-lips::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 0.5px;
    background: rgba(80, 30, 40, 0.6);
    transform: translateY(-50%);
}

/* Chin */
.head-chin {
    position: absolute;
    top: 88%;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 20px;
    background: radial-gradient(ellipse at center,
        rgba(217, 169, 127, 0.6) 0%,
        transparent 70%);
    border-radius: 50%;
    filter: blur(3px);
}

/* Neck */
.head-neck {
    position: absolute;
    top: 180px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 80px;
    background: linear-gradient(180deg,
        #e8bfa0 0%,
        #d9a97f 40%,
        #b8875a 100%);
    border-radius: 30% 30% 50% 50% / 20% 20% 80% 80%;
    box-shadow:
        inset 0 -20px 30px rgba(140, 90, 50, 0.3),
        inset 0 10px 15px rgba(255, 200, 170, 0.3);
    z-index: 1;
}
.head-neck::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 20%;
    width: 60%;
    height: 40%;
    background: radial-gradient(ellipse, rgba(160, 100, 60, 0.2) 0%, transparent 70%);
    filter: blur(4px);
}
/* Neck shadow */
.head-neck::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 40%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, transparent 100%);
    border-radius: 50%;
    filter: blur(3px);
}

.welcome-title {
    font-size: 32px;
    font-weight: 300;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeUp 0.7s var(--ease) 1.6s forwards;
}
.welcome-sub {
    font-size: 16px;
    font-weight: 300;
    color: var(--text-2);
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeUp 0.7s var(--ease) 1.75s forwards;
}
.welcome-btn {
    padding: 12px 28px;
    background: var(--glass-3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: var(--text);
    border: 0.5px solid var(--border-2);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 400;
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--shadow-md), var(--inner-light);
    opacity: 0;
    animation: fadeUp 0.7s var(--ease) 1.9s forwards;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.welcome-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg), var(--inner-light);
}
.welcome-btn:active {
    transform: translateY(0) scale(0.98);
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   TOP BAR — 3 icon pill + brand + theme
   ============================================================ */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 14px;
    background: var(--glass-2);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 0.5px solid var(--border-1);
    z-index: 1000;
    box-shadow: var(--shadow-xs);
}
.top-pill {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    background: var(--glass-3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 0.5px solid var(--border-2);
    border-radius: 20px;
    box-shadow: var(--shadow-sm), var(--inner-light);
}
.pill-icon {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}
.pill-icon:hover {
    background: var(--hover);
}
.pill-icon:active {
    transform: scale(0.92);
    background: var(--active);
}
.brand {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.icon-btn {
    background: var(--glass-3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 0.5px solid var(--border-2);
    color: var(--text);
    width: 36px;
    height: 36px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: var(--shadow-sm), var(--inner-light);
    transition: background 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}
.icon-btn:hover {
    background: var(--glass-4);
    box-shadow: var(--shadow-md), var(--inner-light);
}
.icon-btn:active {
    transform: scale(0.94);
}

/* ============================================================
   SIDEBAR — Liquid Glass
   ============================================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: var(--glass-3);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border-right: 0.5px solid var(--border-2);
    display: flex;
    flex-direction: column;
    padding: 14px 12px 12px;
    z-index: 2000;
    transition: left 0.45s var(--ease);
    box-shadow: 4px 0 40px rgba(10, 14, 26, 0.08);
}
.sidebar.open {
    left: 0;
}
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 26, 0.2);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1900;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

.sidebar-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}
.sidebar-logo {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, #6d9bf5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px var(--accent-glow), var(--inner-light);
}

.new-chat-full {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    background: var(--glass-4);
    border: 0.5px solid var(--border-2);
    border-radius: 14px;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 400;
    font-family: inherit;
    cursor: pointer;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm), var(--inner-light);
    transition: background 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}
.new-chat-full:hover {
    background: var(--glass-3);
    box-shadow: var(--shadow-md), var(--inner-light);
    transform: translateY(-1px);
}
.new-chat-full:active {
    transform: translateY(0) scale(0.98);
}
.new-chat-full i {
    font-size: 14px;
    color: var(--accent);
}
.shortcut {
    margin-left: auto;
    font-size: 10.5px;
    color: var(--text-3);
    font-weight: 400;
    letter-spacing: 0;
    padding: 2px 6px;
    background: var(--hover);
    border-radius: 5px;
}

.section-label {
    font-size: 10.5px;
    font-weight: 500;
    color: var(--text-3);
    padding: 0 8px 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.history-container {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
    margin: 0 -4px;
    padding: 0 4px;
}
.history-container::-webkit-scrollbar { width: 3px; }
.history-container::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 2px;
}
.history-container::-webkit-scrollbar-track { background: transparent; }

.history-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 10px;
    border-radius: 10px;
    margin-bottom: 1px;
    cursor: pointer;
    color: var(--text-2);
    font-size: 13.5px;
    font-weight: 400;
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
    opacity: 0;
    animation: historyIn 0.35s var(--ease-out) forwards;
}
@keyframes historyIn {
    to { opacity: 1; }
}
.history-item:hover {
    background: var(--hover);
    color: var(--text);
}
.history-item.active {
    background: var(--glass-4);
    color: var(--text);
    font-weight: 500;
    box-shadow: var(--shadow-xs), var(--inner-light);
}
.history-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.history-menu-btn {
    background: transparent;
    border: none;
    color: var(--text-3);
    cursor: pointer;
    padding: 3px 5px;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease);
    font-size: 11px;
}
.history-item:hover .history-menu-btn {
    opacity: 1;
}
.history-menu-btn:hover {
    background: var(--active);
    color: var(--text);
}

/* History context menu */
.history-context-menu {
    position: fixed;
    background: var(--glass-4);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 0.5px solid var(--border-2);
    border-radius: 12px;
    box-shadow: var(--shadow-xl), var(--inner-light);
    padding: 4px;
    z-index: 5000;
    min-width: 150px;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}
.history-context-menu.show {
    opacity: 1;
    transform: scale(1);
}
.context-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 13px;
    font-weight: 400;
    font-family: inherit;
    cursor: pointer;
    border-radius: 8px;
    text-align: left;
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.context-item:hover {
    background: var(--hover);
}
.context-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}
.context-item i {
    width: 14px;
    font-size: 12px;
    color: var(--text-3);
    transition: color 0.15s var(--ease);
}
.context-item.danger:hover i {
    color: var(--danger);
}

.sidebar-bottom {
    padding-top: 12px;
    border-top: 0.5px solid var(--border-1);
}
.lang-select {
    width: 100%;
    background: var(--glass-4);
    color: var(--text);
    border: 0.5px solid var(--border-2);
    padding: 9px 32px 9px 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 12.5px;
    font-weight: 400;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    box-shadow: var(--shadow-xs), var(--inner-light);
    transition: background 0.15s var(--ease), box-shadow 0.15s var(--ease);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.lang-select:hover {
    background-color: var(--glass-3);
    box-shadow: var(--shadow-sm), var(--inner-light);
}
.lang-select option {
    background: var(--bg-elevated);
    color: var(--text);
    padding: 8px;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.15s var(--ease);
}
.profile-card:hover {
    background: var(--hover);
}
.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--glass-4);
    border: 0.5px solid var(--border-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-xs), var(--inner-light);
}
.profile-info {
    flex: 1;
    min-width: 0;
}
.profile-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-status {
    font-size: 11px;
    color: var(--text-3);
    font-weight: 300;
}

/* ============================================================
   CHAT AREA
   ============================================================ */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 150px;
    width: 100%;
    overflow: hidden;
}
.messages-wrapper {
    width: 100%;
    max-width: 720px;
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
    display: flex;
    flex-direction: column;
}
.messages-wrapper::-webkit-scrollbar { width: 4px; }
.messages-wrapper::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 2px;
}
.messages-wrapper::-webkit-scrollbar-track { background: transparent; }

/* ============================================================
   MESSAGES
   ============================================================ */
.message-row {
    display: flex;
    width: 100%;
    margin-bottom: 22px;
    opacity: 0;
    animation: msgIn 0.4s var(--ease-out) forwards;
}
@keyframes msgIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.msg-user-row { justify-content: flex-end; }
.msg-bot-row { justify-content: flex-start; }

.bubble {
    max-width: 85%;
    padding: 11px 16px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
    word-wrap: break-word;
    overflow-wrap: break-word;
    position: relative;
    letter-spacing: -0.005em;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.msg-user-row .bubble {
    background: var(--bubble-user);
    color: var(--bubble-user-text);
    border: 0.5px solid var(--accent-soft);
    border-bottom-right-radius: 6px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-xs), var(--inner-light);
}
.msg-user-row .bubble:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm), var(--inner-light);
}
.msg-bot-row .bubble {
    background: transparent;
    color: var(--text);
    border-bottom-left-radius: 6px;
    padding-left: 0;
    max-width: 95%;
}

/* User copy button */
.user-copy-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--bg-elevated);
    border: 0.5px solid var(--border-solid);
    color: var(--text-3);
    padding: 3px 6px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.15s var(--ease), color 0.15s var(--ease);
}
.msg-user-row .bubble:hover .user-copy-btn {
    opacity: 1;
}
.user-copy-btn:hover {
    color: var(--text);
}

/* ============================================================
   MARKDOWN
   ============================================================ */
.bubble p {
    margin-bottom: 8px;
    font-weight: 400;
}
.bubble p:last-child { margin-bottom: 0; }
.bubble strong { font-weight: 500; }
.bubble em { font-style: italic; font-weight: 400; }
.bubble ul, .bubble ol { margin: 6px 0 6px 20px; }
.bubble li { margin-bottom: 3px; font-weight: 400; }
.bubble a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 0.5px;
}
.bubble h1, .bubble h2, .bubble h3, .bubble h4 {
    margin: 14px 0 6px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.015em;
}
.bubble h1 { font-size: 1.3em; }
.bubble h2 { font-size: 1.15em; }
.bubble h3 { font-size: 1.05em; }
.bubble h4 { font-size: 1em; }
.bubble blockquote {
    border-left: 2px solid var(--border-strong);
    padding-left: 12px;
    margin: 8px 0;
    color: var(--text-2);
    font-weight: 300;
}
.bubble hr {
    border: none;
    border-top: 0.5px solid var(--border-solid);
    margin: 12px 0;
}
.bubble code {
    background: var(--code-bg);
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.87em;
    font-family: 'SF Mono', Monaco, Menlo, Consolas, monospace;
    font-weight: 400;
    border: 0.5px solid var(--border-solid);
    color: var(--text);
}
.bubble pre {
    background: var(--code-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 14px 16px;
    margin: 10px 0;
    overflow-x: auto;
    position: relative;
    border: 0.5px solid var(--border-solid);
    box-shadow: var(--shadow-xs);
}
.bubble pre code {
    background: transparent !important;
    padding: 0 !important;
    font-size: 13px;
    line-height: 1.6;
    display: block;
    font-weight: 400;
    border: none;
    font-family: 'SF Mono', Monaco, Menlo, Consolas, monospace;
}
.bubble table {
    border-collapse: collapse;
    margin: 10px 0;
    width: 100%;
    font-size: 13.5px;
}
.bubble th, .bubble td {
    border: 0.5px solid var(--border-solid);
    padding: 7px 10px;
    text-align: left;
    font-weight: 400;
}
.bubble th {
    background: var(--bg-soft);
    font-weight: 500;
}
.bubble img {
    max-width: 100%;
    border-radius: 8px;
    margin: 8px 0;
}

/* Copy button */
.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--glass-4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid var(--border-2);
    color: var(--text-2);
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 400;
    font-family: inherit;
    opacity: 0;
    transition: opacity 0.15s var(--ease), color 0.15s var(--ease), background 0.15s var(--ease);
    z-index: 10;
    box-shadow: var(--shadow-xs);
}
.bubble pre:hover .copy-btn { opacity: 1; }
.copy-btn:hover {
    color: var(--text);
    background: var(--glass-3);
}
.copy-btn.copied { color: var(--success); }

/* ============================================================
   THINKING
   ============================================================ */
.thinking-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}
.thinking-spinner {
    width: 11px;
    height: 11px;
    border: 1.5px solid var(--border-solid);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.thinking-text {
    color: var(--text-2);
    font-size: 13px;
    font-weight: 300;
}

.thinking-box {
    background: var(--glass-2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid var(--border-1);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    font-size: 12.5px;
    box-shadow: var(--shadow-xs);
}
.thinking-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text-2);
    font-size: 12.5px;
    font-weight: 400;
    user-select: none;
    transition: background 0.15s var(--ease);
}
.thinking-header:hover { background: var(--hover); }
.thinking-header i:first-child { color: var(--accent); }
.thinking-arrow {
    margin-left: auto;
    transition: transform 0.3s var(--ease);
    font-size: 10px;
    color: var(--text-3);
}
.thinking-box.open .thinking-arrow { transform: rotate(180deg); }
.thinking-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease), padding 0.35s var(--ease);
    padding: 0 12px;
    color: var(--text-2);
    font-size: 12.5px;
    font-weight: 300;
    line-height: 1.6;
}
.thinking-box.open .thinking-content {
    max-height: 600px;
    padding: 8px 12px;
    border-top: 0.5px solid var(--border-1);
    overflow-y: auto;
}

/* ============================================================
   INPUT
   ============================================================ */
.input-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 12px 14px;
    background: linear-gradient(to top, var(--bg) 60%, transparent);
    z-index: 100;
    pointer-events: none;
}
.input-wrapper > * { pointer-events: auto; }

.input-container {
    width: 100%;
    max-width: 720px;
    background: var(--glass-3);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 0.5px solid var(--border-2);
    border-radius: 24px;
    box-shadow: var(--shadow-lg), var(--inner-light);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.input-container:focus-within {
    border-color: var(--accent);
    box-shadow: var(--shadow-xl), 0 0 0 3px var(--accent-soft), var(--inner-light);
}

/* Pills INSIDE input */
.input-pills {
    display: flex;
    gap: 6px;
    padding: 2px 4px 0;
    flex-wrap: wrap;
}
.mini-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--glass-4);
    border: 0.5px solid var(--border-2);
    border-radius: 14px;
    color: var(--text-2);
    font-size: 12px;
    font-weight: 400;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    letter-spacing: -0.005em;
    box-shadow: var(--shadow-xs), var(--inner-light);
}
.mini-pill:hover {
    background: var(--glass-3);
    color: var(--text);
    transform: translateY(-1px);
}
.mini-pill.active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 4px 12px var(--accent-glow), var(--inner-light);
}
.mini-pill i {
    font-size: 10px;
}

.input-row {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 0 2px 2px;
}

.plus-btn {
    background: transparent;
    color: var(--text-2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 14px;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s var(--ease), color 0.15s var(--ease), transform 0.2s var(--ease);
}
.plus-btn:hover {
    background: var(--hover);
    color: var(--text);
}
.plus-btn:active { transform: scale(0.92); }
.plus-btn.active i { transform: rotate(45deg); }
.plus-btn i { transition: transform 0.3s var(--ease); }

.expanding-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 400;
    padding: 9px 4px;
    outline: none;
    resize: none;
    max-height: 160px;
    font-family: inherit;
    line-height: 1.5;
    align-self: center;
    letter-spacing: -0.005em;
}
.expanding-input::placeholder {
    color: var(--text-3);
    font-weight: 300;
}

.send-btn {
    background: var(--accent);
    color: #ffffff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px var(--accent-glow), var(--inner-light);
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.send-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 14px var(--accent-glow), var(--inner-light);
}
.send-btn:active { transform: scale(0.94); }
.send-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.disclaimer {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 8px;
    text-align: center;
    font-weight: 300;
    letter-spacing: -0.005em;
}

/* ============================================================
   MODE MENU
   ============================================================ */
.mode-menu {
    position: fixed;
    bottom: 155px;
    left: 50%;
    transform: translateX(-50%) translateY(8px) scale(0.96);
    min-width: 230px;
    max-width: 270px;
    background: var(--glass-4);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 0.5px solid var(--border-2);
    border-radius: 18px;
    box-shadow: var(--shadow-xl), var(--inner-light);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s var(--ease), transform 0.25s var(--ease-out), visibility 0.2s;
    z-index: 600;
    transform-origin: bottom center;
}
.mode-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}
.mode-menu-title {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-3);
    padding: 8px 10px 4px;
}
.mode-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text);
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 400;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
    position: relative;
    letter-spacing: -0.005em;
}
.mode-option:hover {
    background: var(--hover);
}
.mode-option.active {
    background: var(--glass-3);
    font-weight: 500;
    box-shadow: var(--shadow-xs), var(--inner-light);
}
.mode-option.active::after {
    content: '✓';
    margin-left: auto;
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
}
.mode-divider {
    height: 0.5px;
    background: var(--border-1);
    margin: 5px 6px;
}

/* ============================================================
   ATTACHMENT PREVIEW
   ============================================================ */
.attachment-preview {
    width: 100%;
    max-width: 720px;
    background: var(--glass-3);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 0.5px solid var(--border-2);
    border-radius: 14px;
    padding: 9px 14px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: var(--text-2);
    font-weight: 400;
    box-shadow: var(--shadow-md), var(--inner-light);
}
.attachment-preview button {
    background: transparent;
    border: none;
    color: var(--text-3);
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s var(--ease);
}
.attachment-preview button:hover { color: var(--text); }

/* ============================================================
   GENERATED IMAGE
   ============================================================ */
.image-bubble {
    padding: 8px !important;
    background: var(--glass-3) !important;
    backdrop-filter: blur(20px) !important;
    max-width: 92% !important;
    border-radius: 16px !important;
    border: 0.5px solid var(--border-2) !important;
    box-shadow: var(--shadow-md), var(--inner-light) !important;
}
.generated-image {
    width: 100%;
    max-width: 440px;
    border-radius: 10px;
    cursor: pointer;
    display: block;
    transition: transform 0.3s var(--ease);
    box-shadow: var(--shadow-sm);
}
.generated-image:hover { transform: scale(1.01); }
.image-caption {
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--text-2);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
}
.image-caption i { color: var(--accent); }
.image-download {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 6px 12px;
    background: var(--accent);
    color: #ffffff;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 400;
    text-decoration: none;
    box-shadow: 0 2px 8px var(--accent-glow), var(--inner-light);
    transition: opacity 0.15s var(--ease), transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.image-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--accent-glow), var(--inner-light);
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--glass-4);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 0.5px solid var(--border-2);
    color: var(--text);
    padding: 9px 18px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    z-index: 4000;
    box-shadow: var(--shadow-lg), var(--inner-light);
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 26, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.25s var(--ease);
}
.modal-overlay.show { display: flex; opacity: 1; }
.modal-box {
    background: var(--glass-4);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    padding: 26px 22px;
    border-radius: 20px;
    text-align: center;
    max-width: 310px;
    width: 88%;
    border: 0.5px solid var(--border-2);
    box-shadow: var(--shadow-xl), var(--inner-light);
    transform: scale(0.95);
    transition: transform 0.3s var(--ease-out);
}
.modal-overlay.show .modal-box { transform: scale(1); }
.modal-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.modal-desc {
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 20px;
    line-height: 1.5;
    font-weight: 300;
}
.modal-close-btn {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 400;
    font-size: 13px;
    font-family: inherit;
    box-shadow: 0 2px 8px var(--accent-glow), var(--inner-light);
    transition: opacity 0.2s var(--ease), transform 0.15s var(--ease);
}
.modal-close-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.modal-close-btn:active { transform: scale(0.97); }

.rename-input {
    width: 100%;
    background: var(--glass-3);
    border: 0.5px solid var(--border-2);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text);
    font-size: 13.5px;
    font-family: inherit;
    font-weight: 400;
    outline: none;
    margin-bottom: 16px;
    box-shadow: var(--shadow-xs), var(--inner-light);
    transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.rename-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft), var(--inner-light);
}
.modal-actions {
    display: flex;
    gap: 8px;
}
.modal-secondary, .modal-primary {
    flex: 1;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 400;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.15s var(--ease), background 0.15s var(--ease), transform 0.15s var(--ease);
    border: 0.5px solid transparent;
}
.modal-secondary {
    background: transparent;
    border-color: var(--border-2);
    color: var(--text);
}
.modal-secondary:hover { background: var(--hover); }
.modal-secondary:active { transform: scale(0.97); }
.modal-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 2px 8px var(--accent-glow), var(--inner-light);
}
.modal-primary:hover { opacity: 0.9; }
.modal-primary:active { transform: scale(0.97); }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 640px) {
    .brand { font-size: 14px; }
    .top-bar { padding: 0 10px; height: 54px; }
    .top-pill { padding: 3px; }
    .pill-icon { width: 30px; height: 30px; font-size: 12px; }
    .messages-wrapper { padding: 16px 14px; }
    .bubble { max-width: 90%; font-size: 14.5px; padding: 10px 14px; }
    .msg-bot-row .bubble { max-width: 98%; }
    .input-wrapper { padding: 8px 10px 10px; }
    .input-container { border-radius: 22px; padding: 6px; }
    .disclaimer { font-size: 10px; margin-top: 6px; }
    .splash-logo { font-size: 32px; letter-spacing: 8px; }
    .sidebar { width: 270px; left: -290px; }
    .copy-btn { opacity: 1; }
    .bubble pre { padding: 12px 12px; padding-top: 36px; }
    .thinking-text { font-size: 12.5px; }
    .mode-menu { bottom: 145px; min-width: 210px; }
    .plus-btn, .send-btn { width: 34px; height: 34px; }
    .expanding-input { font-size: 14.5px; padding: 8px 4px; }
    .generated-image { max-width: 100%; }
    .welcome-title { font-size: 26px; }
    .welcome-sub { font-size: 15px; }
    .user-copy-btn { opacity: 1; }
    .mini-pill { padding: 3px 9px; font-size: 11.5px; }
    .head-scene { width: 170px; height: 220px; }
    .head-hair { width: 135px; height: 75px; }
    .head-face { width: 110px; height: 125px; top: 50px; }
    .head-neck { top: 150px; width: 60px; height: 70px; }
    .head-eyes { gap: 26px; }
    .eye { width: 12px; height: 8px; }
    .head-lips { width: 22px; height: 8px; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in { animation: fadeIn 0.4s var(--ease) forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   HIGHLIGHT.JS
   ============================================================ */
.hljs {
    background: transparent !important;
    font-weight: 400;
    font-family: 'SF Mono', Monaco, Menlo, Consolas, monospace;
}
[data-theme="dark"] .hljs { color: #e5e5e5; }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Selection */
::selection {
    background: var(--accent-soft);
    color: var(--text);
}

/* Focus visible */
button:focus-visible,
select:focus-visible,
textarea:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ============================================================
   SAFARI-SPECIFIC FIXES
   ============================================================ */
@supports (-webkit-touch-callout: none) {
    .input-container {
        /* iOS safe area */
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }
}
/* ============================================================
   SON DÜZƏLİŞLƏR
   ============================================================ */

/* --- NEON GLOW SİLİNİR --- */
:root { --accent-glow: rgba(59, 111, 224, 0); }
[data-theme="dark"] { --accent-glow: rgba(91, 141, 239, 0); }
.send-btn { box-shadow: none !important; }
.mini-pill.active { box-shadow: none !important; }
.sidebar-logo { box-shadow: none !important; }
.modal-primary { box-shadow: none !important; }
.image-download { box-shadow: none !important; }
.head-glow {
    background: radial-gradient(circle, rgba(59, 111, 224, 0.12) 0%, transparent 70%) !important;
    filter: blur(40px) !important;
}
.welcome-glow { display: none !important; }
.avatar-glow { display: none !important; }
.send-btn:hover { box-shadow: 0 2px 8px rgba(10, 14, 26, 0.08) !important; }

/* --- GEMINI-STYLE LIGHT SWEEP --- */
#welcome::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.03) 35%,
        rgba(0, 0, 0, 0.08) 50%,
        rgba(0, 0, 0, 0.03) 65%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
    animation: lightSweep 8s ease-in-out infinite;
}
[data-theme="dark"] #welcome::before {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.02) 35%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.02) 65%,
        transparent 100%
    );
}
@keyframes lightSweep {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}
#welcome > * {
    position: relative;
    z-index: 2;
}

/* --- USER COPY BUTTON — mesajın içində, sağ üstdə --- */
.msg-user-row .bubble {
    padding-right: 42px !important;
}
.user-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--bg-elevated);
    border: 0.5px solid var(--border-solid);
    color: var(--text-3);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
    padding: 0;
    transition: opacity 0.15s var(--ease), color 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.msg-user-row .bubble:hover .user-copy-btn { opacity: 1; }
.user-copy-btn:hover {
    color: var(--text);
    border-color: var(--border-strong);
}
@media (max-width: 640px) {
    .user-copy-btn { opacity: 0.7; }
}

/* --- ŞƏKİL ENDİRMƏ DÜYMƏSİ --- */
.image-download {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 14px;
    background: var(--accent);
    color: #ffffff !important;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 400;
    font-family: inherit;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s var(--ease), transform 0.15s var(--ease);
}
.image-download:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.image-download:active { transform: scale(0.97); }
.image-download i { font-size: 12px; }
/* ============================================================
   QIZ SİLİNDİ — YALNIZ İŞIQ SWEEP QALIR
   ============================================================ */

/* 3D baş elementlərini tamamilə gizlət */
.head-scene,
.head,
.head-glow,
.head-hair,
.head-face,
.head-forehead,
.head-eyes,
.eye,
.head-nose,
.head-lips,
.head-chin,
.head-neck {
    display: none !important;
}

/* Welcome ekranı — mərkəzdə yalnız mətn */
#welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

/* Başlıq — daha böyük və gözəl */
.welcome-title {
    font-size: 44px !important;
    font-weight: 300 !important;
    letter-spacing: -0.03em !important;
    margin-bottom: 10px !important;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease) 0.5s forwards !important;
}

.welcome-sub {
    font-size: 18px !important;
    color: var(--text-2) !important;
    font-weight: 300 !important;
    margin-bottom: 36px !important;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease) 0.75s forwards !important;
}

.welcome-btn {
    opacity: 0;
    animation: fadeUp 0.8s var(--ease) 1s forwards !important;
}

/* İşıq sweep — davamlı olaraq sağa doğru hərəkət edir */
#welcome::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.03) 35%,
        rgba(0, 0, 0, 0.08) 50%,
        rgba(0, 0, 0, 0.03) 65%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
    animation: lightSweep 6s ease-in-out infinite;
}

[data-theme="dark"] #welcome::before {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.02) 35%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.02) 65%,
        transparent 100%
    );
}

@keyframes lightSweep {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Mətnlər sweep-in üstündə qalsın */
#welcome > * {
    position: relative;
    z-index: 2;
}

/* Mobile — başlıq ölçüsü */
@media (max-width: 640px) {
    .welcome-title { font-size: 32px !important; }
    .welcome-sub { font-size: 15px !important; margin-bottom: 28px !important; }
}
/* ============================================================
   SPLASH SİLİNDİ + WELCOME-ONLY REJİM + FOCUS RING SİLİNDİ
   ============================================================ */

/* Splash tamamilə silinir */
#splash { display: none !important; }

/* Focus ring silinir */
.input-container:focus-within {
    border-color: var(--border-2) !important;
    box-shadow: var(--shadow-lg), var(--inner-light) !important;
}
textarea:focus-visible,
input:focus-visible {
    outline: none !important;
}

/* ============ WELCOME GÖRÜNƏNDƏ CHAT GİZLƏNİR ============ */
/* Body-də .chat-active yoxdursa → welcome rejimi */
body:not(.chat-active) .top-bar,
body:not(.chat-active) .sidebar,
body:not(.chat-active) .sidebar-overlay,
body:not(.chat-active) .chat-area,
body:not(.chat-active) .input-wrapper,
body:not(.chat-active) .mode-menu {
    display: none !important;
}

/* Welcome həmişə görünür (chat-active olmayanda) */
body:not(.chat-active) #welcome {
    opacity: 1 !important;
    visibility: visible !important;
}

/* chat-active olanda welcome gizlənir */
body.chat-active #welcome {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Welcome düzgün mövqe */
#welcome {
    z-index: 9999;
}
/* ============================================================
   WELCOME TAM EKRAN + NETLIFY BADGE SİL
   ============================================================ */

/* Netlify badge tamamilə sil */
[data-netlify-badge],
.netlify-badge,
#netlify-badge,
.netlify-badge-container,
a[href*="netlify.com"][target="_blank"],
a[href*="netlify"][target="_blank"],
div[class*="netlify"],
div[id*="netlify"],
iframe[src*="netlify"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Body welcome rejimində — tam ekran */
body:not(.chat-active) {
    display: block !important;
    overflow: hidden !important;
}

body:not(.chat-active) #welcome {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    margin: 0 !important;
    z-index: 9999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: var(--bg) !important;
    overflow: hidden !important;
}

/* Mətnlər tam ortada */
body:not(.chat-active) #welcome .welcome-title {
    font-size: 52px !important;
    font-weight: 300 !important;
    letter-spacing: -0.03em !important;
    margin: 0 0 12px 0 !important;
    text-align: center !important;
}

body:not(.chat-active) #welcome .welcome-sub {
    font-size: 18px !important;
    margin: 0 0 36px 0 !important;
    text-align: center !important;
    color: var(--text-2) !important;
}

body:not(.chat-active) #welcome .welcome-btn {
    margin: 0 !important;
    padding: 14px 32px !important;
    font-size: 15px !important;
}

/* Chat rejimində welcome gizlət */
body.chat-active #welcome {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Chat rejimində normal layout */
body.chat-active {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* Mobile */
@media (max-width: 640px) {
    body:not(.chat-active) #welcome .welcome-title {
        font-size: 38px !important;
    }
    body:not(.chat-active) #welcome .welcome-sub {
        font-size: 16px !important;
        margin-bottom: 30px !important;
    }
    body:not(.chat-active) #welcome .welcome-btn {
        padding: 12px 28px !important;
        font-size: 14px !important;
    }
}
/* ============================================================
   MOBIL KLAVYATURA — SÖHBƏT YERİNDƏ QALSIN
   ============================================================ */

/* Klaviatura açılanda body hündürlüyünü sabit saxla */
body.keyboard-open {
    overflow: hidden !important;
    height: 100vh !important;
    height: 100dvh !important;
    position: fixed !important;
    width: 100% !important;
}

/* Klaviatura açıq olanda input-wrapper-i viewport içində saxla */
body.keyboard-open .input-wrapper {
    position: fixed !important;
    transition: none !important;
}

/* Chat area klaviatura açıq olanda da sabit */
body.keyboard-open .chat-area {
    overflow: hidden !important;
}

/* Input-container focus olanda border dəyişməsin */
.input-container:focus-within {
    border-color: var(--border-2) !important;
    box-shadow: var(--shadow-lg), var(--inner-light) !important;
}

/* Focus ring sil */
textarea:focus-visible,
input:focus-visible {
    outline: none !important;
}

/* Mobile xüsusi */
@media (max-width: 768px) {
    body.keyboard-open .chat-area {
        padding-bottom: 100px !important;
    }
    body.keyboard-open .messages-wrapper {
        padding-bottom: 20px !important;
    }
}
/* ============================================================
   MOBIL SCROLL FIX — KLAVYATURA AÇIQ OLANDA DA SCROLL İŞLƏSİN
   ============================================================ */

/* Body həmişə scroll-a icazə versin */
html, body {
    overflow: hidden !important;
    height: 100dvh !important;
    position: relative !important;
}

/* Klaviatura açıq olanda body-ni kilidləmə, sadəcə input-wrapper-i tənzimlə */
body.keyboard-open {
    overflow: hidden !important;
}

/* Chat area həmişə scroll-a icazə versin */
.chat-area {
    overflow: hidden !important;
    position: relative !important;
}

/* Messages wrapper — ƏSAS SCROLL SAHƏSİ */
.messages-wrapper {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    scroll-behavior: smooth;
    flex: 1 !important;
    min-height: 0 !important;
    touch-action: pan-y !important;
    padding-bottom: 20px !important;
}

/* Klaviatura açıq olanda da scroll işləsin */
body.keyboard-open .messages-wrapper {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
}

/* Input wrapper klaviatura açıq olanda */
body.keyboard-open .input-wrapper {
    position: fixed !important;
    transition: none !important;
}

/* Mobile xüsusi */
@media (max-width: 768px) {
    html, body {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    .chat-area {
        position: absolute !important;
        top: 56px !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        overflow: hidden !important;
        padding-top: 0 !important;
    }
    
    .messages-wrapper {
        height: 100% !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 140px !important;
        touch-action: pan-y !important;
    }
    
    body.keyboard-open .messages-wrapper {
        padding-bottom: 20px !important;
    }
    
    /* Scrollbar gizlət */
    .messages-wrapper::-webkit-scrollbar {
        width: 0 !important;
        display: none !important;
    }
}
/* ============================================================
   MOBIL SCROLL FIX — SÖHBƏT SABİT, YALNIZ SCROLL İŞLƏYİR
   ============================================================ */

html, body {
    overflow: hidden !important;
    height: 100dvh !important;
    width: 100vw !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    overscroll-behavior: none !important;
}

/* Chat area tam ekran olaraq sabit qalır */
.chat-area {
    position: fixed !important;
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
    padding-bottom: 130px !important;
}

/* Messages-wrapper — YEGANƏ SCROLL SAHƏSİ */
.messages-wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    padding: 24px 20px !important;
    scroll-behavior: smooth;
}

/* Input wrapper sabit qalır */
.input-wrapper {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100 !important;
    transition: bottom 0.1s ease-out;
}

/* Mobile — input-wrapper klaviaturaya uyğunlaşır, chat-area TOXUNULMAZ */
@media (max-width: 768px) {
    .chat-area {
        top: 54px !important;
        padding-bottom: 110px !important;
    }
    
    .messages-wrapper {
        padding: 16px 12px !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
    }
    
    /* Klaviatura açıq olanda yalnız input-wrapper tərpənir */
    body.keyboard-open .chat-area {
        padding-bottom: 110px !important;
    }
    
    /* Scrollbar gizlət */
    .messages-wrapper::-webkit-scrollbar {
        width: 0 !important;
        display: none !important;
    }
}
/* ============================================================
   SON HƏLL — MOBIL SCROLL + KLAVYATURA
   ============================================================ */

/* Body həmişə sabit */
html, body {
    overflow: hidden !important;
    height: 100dvh !important;
    width: 100vw !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    overscroll-behavior: none !important;
}

/* Chat area — tam ekran, fixed */
.chat-area {
    position: fixed !important;
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    display: block !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Messages wrapper — YEGANƏ SCROLL SAHƏSİ */
.messages-wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    scroll-behavior: smooth;
    padding: 24px 20px 140px 20px !important;
    margin: 0 !important;
    display: block !important;
}

/* Input wrapper — sabit alt */
.input-wrapper {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    transition: bottom 0.15s ease-out;
    pointer-events: auto !important;
}

/* Klaviatura açıq olanda da eyni — chat-area TOXUNULMAZ */
body.keyboard-open .chat-area {
    top: 56px !important;
    bottom: 0 !important;
    padding: 0 !important;
}

body.keyboard-open .messages-wrapper {
    padding: 24px 20px 20px 20px !important;
}

/* Mobile xüsusi */
@media (max-width: 768px) {
    .chat-area {
        top: 54px !important;
    }
    
    .messages-wrapper {
        padding: 16px 12px 130px 12px !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
    }
    
    body.keyboard-open .messages-wrapper {
        padding: 16px 12px 16px 12px !important;
    }
    
    /* Scrollbar gizlət */
    .messages-wrapper::-webkit-scrollbar {
        width: 0 !important;
        display: none !important;
    }
    
    /* Input wrapper mobil */
    .input-wrapper {
        padding: 8px 10px 10px !important;
    }
    
    /* Klaviatura açıq olanda input-wrapper-i viewport içində saxla */
    body.keyboard-open .input-wrapper {
        position: fixed !important;
    }
}
/* ============================================================
   SON HƏLL — MESAJLAR MƏRKƏZDƏ + TOP BAR GÖRÜNSÜN
   ============================================================ */

/* Chat area — normal flex layout (fixed deyil) */
.chat-area {
    position: fixed !important;
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
}

/* Messages wrapper — mərkəzdə, max-width, scroll işləyir */
.messages-wrapper {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 720px !important;
    height: 100% !important;
    flex: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    scroll-behavior: smooth;
    padding: 24px 20px 140px 20px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

/* Input wrapper — sabit alt, mərkəzdə */
.input-wrapper {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 10px 12px 14px !important;
    background: linear-gradient(to top, var(--bg) 60%, transparent) !important;
    transition: bottom 0.15s ease-out !important;
}

/* Top bar — görünsün */
.top-bar {
    z-index: 1001 !important;
}

/* Klaviatura açıq olanda da eyni */
body.keyboard-open .chat-area {
    top: 56px !important;
    bottom: 0 !important;
    padding: 0 !important;
}

body.keyboard-open .messages-wrapper {
    padding: 24px 20px 20px 20px !important;
}

/* Mobile */
@media (max-width: 768px) {
    .chat-area {
        top: 54px !important;
    }
    
    .messages-wrapper {
        padding: 16px 12px 130px 12px !important;
        max-width: 100% !important;
    }
    
    body.keyboard-open .messages-wrapper {
        padding: 16px 12px 16px 12px !important;
    }
    
    .messages-wrapper::-webkit-scrollbar {
        width: 0 !important;
        display: none !important;
    }
}

/* Netlify badge — daha aqressiv sil */
[data-netlify-badge],
.netlify-badge,
#netlify-badge,
.netlify-badge-container,
a[href*="netlify"],
a[href*="netlify.com"],
div[id*="netlify"],
div[class*="netlify"],
iframe[src*="netlify"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -99999px !important;
    top: -99999px !important;
    width: 0 !important;
    height: 0 !important;
    z-index: -9999 !important;
}