/* ===================================================
   SirinnAi — iOS Liquid Glass Layer (Premium)
   liquid-glass.css | Araf Studio 2026
   Loaded last on every page; refines the base design system.
   =================================================== */

:root {
    --lg-blur: 28px;
    --lg-sat: 190%;
    --lg-fill: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 55%, rgba(255,255,255,0.06) 100%);
    --lg-fill-strong: linear-gradient(135deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.05) 60%, rgba(255,255,255,0.09) 100%);
    --lg-edge: rgba(255,255,255,0.16);
    --lg-shadow:
        inset 0 1px 0 rgba(255,255,255,0.28),
        inset 0 -1px 0 rgba(255,255,255,0.05),
        inset 1px 0 0 rgba(255,255,255,0.08),
        0 10px 40px rgba(0,0,0,0.45);
    --lg-spring: cubic-bezier(0.32, 1.25, 0.5, 1);
    --gold: #e8c981;
}

/* Rich aurora backdrop so the blur has something to refract */
body {
    background:
        radial-gradient(60vmax 60vmax at 12% -10%, rgba(66,133,244,0.22), transparent 60%),
        radial-gradient(55vmax 55vmax at 105% 8%, rgba(139,92,246,0.24), transparent 60%),
        radial-gradient(50vmax 50vmax at 50% 115%, rgba(236,72,153,0.14), transparent 60%),
        #060608;
    background-attachment: fixed;
}

/* ── Shared liquid-glass surface ── */
.sb-inner, .chat-header, .input-box, .user-menu, .msg-ai-bubble, .ws-chip,
.auth-card, .hero-feature, .pf-card, .pf-header, .toast, .btn-glass,
.sb-new-chat, .sb-chat-item.active, .back-btn {
    background: var(--lg-fill) !important;
    -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
    backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
    border: 1px solid var(--lg-edge) !important;
    box-shadow: var(--lg-shadow) !important;
}

/* Sidebar & header edges */
.sidebar { background: transparent !important; }
.sb-inner { border-radius: 0 var(--r-xl) var(--r-xl) 0; border-left: none !important; background: linear-gradient(180deg, rgba(20,20,30,0.62), rgba(10,10,16,0.55)) !important; }
.chat-header { border-top: none !important; border-left: none !important; border-right: none !important; border-radius: 0 0 var(--r-xl) var(--r-xl); position: relative; z-index: 20; }
.chat-footer { background: linear-gradient(0deg, rgba(6,6,8,0.85), transparent) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* Pill shapes like iOS controls */
.input-box { border-radius: 30px; transition: box-shadow .35s var(--lg-spring), transform .35s var(--lg-spring); }
.input-box:focus-within { box-shadow: var(--lg-shadow), 0 0 0 4px rgba(99,102,241,0.18), 0 0 50px rgba(99,102,241,0.25) !important; transform: translateY(-1px); }
.ws-chip, .sb-new-chat { border-radius: var(--r-full); transition: transform .3s var(--lg-spring), background .25s ease; }
.ws-chip:hover, .sb-new-chat:hover { transform: translateY(-2px) scale(1.03); background: var(--lg-fill-strong) !important; }
.ws-chip:active, .sb-new-chat:active { transform: scale(0.96); }

/* Messages */
.msg-ai-bubble { border-radius: 22px 22px 22px 8px; }
.msg-user-bubble {
    background: linear-gradient(135deg, rgba(66,133,244,0.88), rgba(99,102,241,0.88), rgba(139,92,246,0.88)) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.28) !important;
    border-radius: 22px 22px 8px 22px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 10px 30px rgba(99,102,241,0.35) !important;
}
.message-group { animation: lgRise .55s var(--lg-spring) both; }
@keyframes lgRise { from { opacity: 0; transform: translateY(14px) scale(.98); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* Send button — glossy glass orb */
.send-btn {
    background: linear-gradient(145deg, #5a9cf5, #6366F1 55%, #8B5CF6) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 8px 24px rgba(99,102,241,0.45) !important;
    transition: transform .3s var(--lg-spring), box-shadow .3s ease;
}

/* Auth / profile cards */
.auth-card, .pf-card { border-radius: var(--r-2xl); }
.field-input, .pf-val {
    background: rgba(255,255,255,0.05) !important;
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 16px !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.35);
}
.field-input:focus { border-color: rgba(99,102,241,0.7) !important; box-shadow: 0 0 0 4px rgba(99,102,241,0.2), inset 0 1px 2px rgba(0,0,0,0.3); }
.auth-btn, .btn-primary { border-radius: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 10px 30px rgba(99,102,241,0.4); }
.btn-google { border-radius: 18px; }
.auth-tabs { border-radius: 18px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.tab-slider { border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 4px 14px rgba(0,0,0,0.35); }

/* ── Premium brand treatment ── */
.sb-brand, .ht-brand, .hero-brand, .l-brand {
    background: linear-gradient(100deg, #ffffff 0%, #9cc2ff 38%, #b79bff 70%, var(--gold) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: lgShine 7s linear infinite;
}
@keyframes lgShine { to { background-position: 200% center; } }

.header-title { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.ht-sub, .brand-sub, .ws-tag {
    font-family: var(--fb);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--t3);
    font-weight: 500;
}
.ht-sub { font-size: .55rem; margin-top: 3px; }
.hero-brand-wrap { display: flex; flex-direction: column; }
.brand-sub { font-size: .62rem; margin-top: 4px; color: var(--gold); opacity: .85; }
.ws-tag {
    display: inline-block; margin-top: 14px; padding: 6px 14px; font-size: .66rem;
    color: var(--gold);
    border-radius: var(--r-full);
    background: var(--lg-fill);
    border: 1px solid rgba(232,201,129,0.28);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.l-tagline { color: var(--gold) !important; }

/* Premium logo ring */
.ws-logo-ring, .l-logo-wrap, .hero-logo-icon, .pf-avatar-circle {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 0 0 1px rgba(232,201,129,0.25), 0 14px 44px rgba(99,102,241,0.35);
}

/* Soft glass scrollbar & selection */
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.16); border: 2px solid transparent; background-clip: padding-box; }

/* Mobile: slightly lighter blur for performance */
@media (max-width: 640px) { :root { --lg-blur: 22px; } .ws-tag { font-size: .6rem; } }

/* Fallback when backdrop-filter is unsupported */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .sb-inner, .chat-header, .input-box, .user-menu, .msg-ai-bubble, .ws-chip, .auth-card, .pf-card { background: rgba(24,24,34,0.92) !important; }
}
@media (prefers-reduced-motion: reduce) {
    .message-group, .sb-brand, .ht-brand, .hero-brand, .l-brand { animation: none !important; }
}

.hero-feature { border-radius: 18px; overflow: hidden; }

/* ===================================================
   v2 — selection fix, composer, attachments, voice, polish
   =================================================== */

/* Kill the blue flash / focus box on buttons (tap highlight + focus ring) */
*, *::before, *::after { -webkit-tap-highlight-color: transparent; }
button { -webkit-user-select: none; user-select: none; outline: none; }
button:focus, button:focus-visible { outline: none !important; box-shadow: none; }
.chat-footer, .chat-footer button, .footer-legal, .msg-actions, .ws-chip, .sb-new-chat, .vc-top, .voice-overlay { -webkit-user-select: none; user-select: none; }
.chat-textarea { -webkit-user-select: text; user-select: text; }
.send-btn:focus, .send-btn:focus-visible, .send-btn:active { outline: none !important; }
.chat-textarea:focus-visible, .field-input:focus-visible { outline: none; }

/* ── Composer ── */
.input-box { align-items: flex-end; gap: 6px; padding: 8px 8px 8px 10px; }
.chat-textarea { padding: 9px 4px; }
.icon-btn {
    width: 38px; height: 38px; flex-shrink: 0; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: transparent; color: var(--t3); border-radius: 50%;
    transition: background .25s ease, color .25s ease, transform .3s var(--lg-spring);
}
.icon-btn:hover { background: rgba(255,255,255,0.09); color: var(--t1); }
.icon-btn:active { transform: scale(.88); }
.icon-btn.recording { color: #fff; background: rgba(255,69,58,0.85); animation: lgRec 1.3s ease-in-out infinite; }
@keyframes lgRec { 0%,100% { box-shadow: 0 0 0 0 rgba(255,69,58,.5); } 50% { box-shadow: 0 0 0 9px rgba(255,69,58,0); } }
.voice-btn { color: #cdb8ff; background: linear-gradient(135deg, rgba(99,102,241,.22), rgba(139,92,246,.22)); border: 1px solid rgba(255,255,255,.14); }
.voice-btn:hover { background: linear-gradient(135deg, rgba(99,102,241,.4), rgba(139,92,246,.4)); }

.send-btn { width: 38px; height: 38px; border-radius: 50% !important; opacity: .38; transform: scale(.92); transition: opacity .25s ease, transform .3s var(--lg-spring), box-shadow .3s ease; }
.send-btn.ready { opacity: 1; transform: scale(1); }
.send-btn.ready:hover { transform: scale(1.08); }
.send-btn:disabled { opacity: .3 !important; }

/* Attachment preview */
.attach-preview { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 6px; }
.att-chip {
    display: flex; align-items: center; gap: 8px; max-width: 220px;
    padding: 5px 6px 5px 5px; border-radius: 16px;
    background: var(--lg-fill); border: 1px solid var(--lg-edge);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2); animation: lgRise .4s var(--lg-spring) both;
}
.att-chip img { width: 38px; height: 38px; object-fit: cover; border-radius: 11px; }
.att-file-ic { width: 38px; height: 38px; display: grid; place-items: center; font-size: 1.1rem; background: rgba(255,255,255,.07); border-radius: 11px; }
.att-name { font-size: .75rem; color: var(--t2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-x { width: 22px; height: 22px; border-radius: 50%; border: none; cursor: pointer; background: rgba(255,255,255,.12); color: #fff; font-size: 1rem; line-height: 1; }
.att-x:hover { background: rgba(255,69,58,.8); }

/* User message w/ images */
.msg-user-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 100%; }
.msg-images { display: grid; gap: 6px; max-width: min(300px, 78vw); }
.msg-images.n1 { grid-template-columns: 1fr; }
.msg-images.n2, .msg-images.n3, .msg-images.n4 { grid-template-columns: 1fr 1fr; }
.msg-images img { width: 100%; height: 100%; max-height: 260px; object-fit: cover; border-radius: 18px; cursor: zoom-in; border: 1px solid var(--lg-edge); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.lightbox { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.72); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); padding: 20px; cursor: zoom-out; }
.lightbox.show { display: flex; animation: lgRise .3s ease both; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }

/* AI message column, actions, code, tables */
.msg-ai-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.msg-actions { display: flex; gap: 4px; opacity: 0; transition: opacity .25s ease; padding-left: 4px; }
.message-group:hover .msg-actions, .msg-actions:focus-within { opacity: 1; }
@media (hover: none) { .msg-actions { opacity: .7; } }
.msg-actions button { display: flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid var(--lg-edge); border-radius: var(--r-full); background: rgba(255,255,255,.05); color: var(--t3); font: 500 .7rem var(--fb); cursor: pointer; transition: all .2s ease; }
.msg-actions button:hover { color: var(--t1); background: rgba(255,255,255,.12); }

.msg-ai-bubble a { color: #8fb8ff; text-decoration: underline; text-underline-offset: 3px; }
.msg-ai-bubble blockquote { border-left: 3px solid rgba(139,92,246,.7); padding: 2px 0 2px 12px; margin: 8px 0; color: var(--t2); }
.msg-ai-bubble hr { border: none; height: 1px; background: var(--lg-edge); margin: 12px 0; }
.code-block { margin: 10px 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--lg-edge); background: rgba(0,0,0,.45); }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 7px 8px 7px 14px; background: rgba(255,255,255,.06); font: 600 .68rem var(--fb); letter-spacing: .1em; text-transform: uppercase; color: var(--t3); }
.code-copy { border: 1px solid var(--lg-edge); background: rgba(255,255,255,.07); color: var(--t2); padding: 3px 11px; border-radius: var(--r-full); font: 500 .68rem var(--fb); cursor: pointer; }
.code-copy:hover { background: rgba(255,255,255,.16); color: #fff; }
.code-block pre { margin: 0 !important; border: none !important; border-radius: 0 !important; background: transparent !important; overflow-x: auto; }
.md-table { overflow-x: auto; margin: 10px 0; border-radius: 14px; border: 1px solid var(--lg-edge); }
.md-table table { border-collapse: collapse; width: 100%; font-size: .85rem; }
.md-table th, .md-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.07); }
.md-table th { background: rgba(255,255,255,.07); font-weight: 600; }
.md-table tr:last-child td { border-bottom: none; }

/* Welcome polish */
.ws-title { letter-spacing: -.02em; }
.ws-chips { max-width: 640px; }
.ws-chip { padding: 11px 18px; font-size: .84rem; }

/* ── Voice Assistant overlay ── */
.voice-overlay {
    position: fixed; inset: 0; z-index: 9000; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
    padding: 24px; text-align: center;
    background:
        radial-gradient(70vmax 70vmax at 50% 40%, rgba(99,102,241,.30), transparent 62%),
        radial-gradient(50vmax 50vmax at 80% 90%, rgba(236,72,153,.16), transparent 60%),
        rgba(6,6,10,.78);
    -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
}
.voice-overlay.show { display: flex; animation: lgRise .45s var(--lg-spring) both; }
.vc-top { position: absolute; top: max(18px, env(safe-area-inset-top)); left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; }
.vc-langs { display: flex; padding: 4px; gap: 2px; border-radius: var(--r-full); background: var(--lg-fill); border: 1px solid var(--lg-edge); box-shadow: var(--lg-shadow); }
.vc-lang { border: none; cursor: pointer; padding: 8px 16px; border-radius: var(--r-full); background: transparent; color: var(--t3); font: 500 .8rem var(--fb); transition: all .25s ease; }
.vc-lang.active { background: rgba(255,255,255,.18); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.vc-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--lg-edge); background: var(--lg-fill); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: var(--lg-shadow); }
.vc-close:hover { background: rgba(255,69,58,.7); }

.vc-orb-wrap { position: relative; width: 220px; height: 220px; border: none; background: none; cursor: pointer; display: grid; place-items: center; }
.vc-orb {
    width: 130px; height: 130px; border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #fff 0%, #b9d4ff 14%, #6f8cff 42%, #8B5CF6 72%, #4b2bb0 100%);
    box-shadow: inset 0 -10px 30px rgba(0,0,0,.35), inset 0 6px 14px rgba(255,255,255,.55), 0 0 70px rgba(99,102,241,.7);
    transition: transform .4s var(--lg-spring);
}
.vc-ring { position: absolute; inset: 40px; border-radius: 50%; border: 1.5px solid rgba(160,140,255,.5); opacity: 0; }
.voice-overlay[data-state="listening"] .vc-orb { animation: vcBreathe 2.2s ease-in-out infinite; }
.voice-overlay[data-state="listening"] .vc-ring { animation: vcRing 2.4s ease-out infinite; }
.voice-overlay[data-state="listening"] .r2 { animation-delay: .8s; }
.voice-overlay[data-state="listening"] .r3 { animation-delay: 1.6s; }
.voice-overlay[data-state="thinking"] .vc-orb { animation: vcSpin 1.6s linear infinite, vcBreathe 1.2s ease-in-out infinite; filter: hue-rotate(40deg) saturate(1.3); }
.voice-overlay[data-state="speaking"] .vc-orb { animation: vcSpeak .7s ease-in-out infinite; filter: hue-rotate(-30deg) saturate(1.2); }
.voice-overlay[data-state="speaking"] .vc-ring { animation: vcRing 1.2s ease-out infinite; border-color: rgba(120,200,255,.6); }
.voice-overlay[data-state="speaking"] .r2 { animation-delay: .4s; }
.voice-overlay[data-state="speaking"] .r3 { animation-delay: .8s; }
@keyframes vcBreathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes vcSpeak { 0%,100% { transform: scale(1); } 25% { transform: scale(1.16); } 60% { transform: scale(.95); } }
@keyframes vcSpin { to { transform: rotate(360deg); } }
@keyframes vcRing { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(2.1); opacity: 0; } }

.vc-status { font: 600 1.05rem var(--fb); color: var(--t1); letter-spacing: .01em; min-height: 1.5em; }
.vc-transcript { font: 400 1.15rem/1.5 var(--fb); color: var(--t2); max-width: 560px; max-height: 28vh; overflow-y: auto; min-height: 1.5em; }
.vc-hint { position: absolute; bottom: max(22px, env(safe-area-inset-bottom)); font: 500 .68rem var(--fb); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); opacity: .8; }

@media (prefers-reduced-motion: reduce) { .vc-orb, .vc-ring, .icon-btn.recording { animation: none !important; } }

/* ── Performance: no smooth-scroll animation, no per-bubble blur ── */
html, body, .chat-body, .messages { scroll-behavior: auto !important; }
.msg-ai-bubble { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(28,28,40,0.78) !important; }
.message-group { animation: lgRise2 .28s ease-out both; content-visibility: auto; contain-intrinsic-size: auto 90px; }
@keyframes lgRise2 { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chat-body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* ── Icons (replacing emoji glyphs) ── */
.ic { flex-shrink: 0; }
.ws-chip { display: inline-flex; align-items: center; gap: 9px; }
.ws-chip .ic { color: #9db4ff; }
.sb-empty-icon, .sb-chat-item-icon, .hf-icon { display: grid; place-items: center; color: #9db4ff; }
.sb-empty-icon { opacity: .6; margin-bottom: 8px; }

.msg-user { display: flex; justify-content: flex-end; }
.msg-user-stack { max-width: min(78%, 560px); }
.msg-user-bubble { width: max-content; max-width: 100%; white-space: pre-wrap; word-break: break-word; }

/* ── Language chip, language sheet, voice picker ── */
.lang-chip { height: 28px; min-width: 38px; padding: 0 9px; margin-bottom: 5px; border-radius: var(--r-full); border: 1px solid var(--lg-edge); background: rgba(255,255,255,.06); color: var(--t2); font: 600 .68rem var(--fb); letter-spacing: .06em; cursor: pointer; flex-shrink: 0; transition: all .25s ease; }
.lang-chip:hover { background: rgba(255,255,255,.14); color: #fff; }
.vc-langbtn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-full); border: 1px solid var(--lg-edge); background: var(--lg-fill); color: #fff; font: 500 .85rem var(--fb); cursor: pointer; box-shadow: var(--lg-shadow); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); max-width: 60vw; }
.vc-langbtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-close.small { width: 36px; height: 36px; }

.vc-voice-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 16px; border-radius: var(--r-full); border: 1px solid var(--lg-edge); background: var(--lg-fill); max-width: 90vw; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.vc-voice-row label { font: 600 .68rem var(--fb); letter-spacing: .14em; text-transform: uppercase; color: var(--t3); }
.vc-voice-row select { max-width: 52vw; padding: 8px 12px; border-radius: var(--r-full); border: none; background: rgba(255,255,255,.12); color: #fff; font: 500 .8rem var(--fb); outline: none; cursor: pointer; }
.vc-voice-row select option { background: #14141e; color: #fff; }
.vc-novoice { max-width: 420px; font: 400 .74rem/1.5 var(--fb); color: var(--t3); }
.vc-transcript { white-space: pre-wrap; }

.lang-sheet { position: fixed; inset: 0; z-index: 9500; display: none; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lang-sheet.show { display: flex; animation: lgFade .25s ease both; }
@keyframes lgFade { from { opacity: 0; } to { opacity: 1; } }
.lang-panel { width: min(520px, 100%); max-height: min(82vh, 640px); display: flex; flex-direction: column; border-radius: 30px 30px 0 0; padding: 18px 16px max(16px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(34,34,48,.92), rgba(16,16,24,.96)); border: 1px solid var(--lg-edge); border-bottom: none;
    -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 -20px 60px rgba(0,0,0,.5); animation: lgSheet .4s var(--lg-spring) both; }
@keyframes lgSheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) { .lang-sheet { align-items: center; } .lang-panel { border-radius: 30px; border-bottom: 1px solid var(--lg-edge); } }
.lang-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 12px; }
.lang-head h3 { font: 700 1.15rem var(--fd); color: #fff; }
.lang-searchbox { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: var(--t3); margin-bottom: 10px; }
.lang-searchbox input { flex: 1; height: 46px; border: none; background: transparent; outline: none; color: #fff; font: 400 .95rem var(--fb); -webkit-user-select: text; user-select: text; }
.lang-searchbox input::placeholder { color: var(--t4); }
.lang-list { overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding-right: 2px; overscroll-behavior: contain; }
.lang-item { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; padding: 11px 44px 11px 14px; border: none; border-radius: 14px; background: transparent; color: #fff; text-align: left; cursor: pointer; transition: background .2s ease; }
.lang-item:hover { background: rgba(255,255,255,.08); }
.lang-item.active { background: linear-gradient(135deg, rgba(66,133,244,.28), rgba(139,92,246,.28)); }
.lang-native { font: 600 .98rem var(--fb); }
.lang-meta { font: 400 .76rem var(--fb); color: var(--t3); }
.lang-check { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); opacity: 0; color: #9db4ff; }
.lang-item.active .lang-check { opacity: 1; }
.lang-empty { padding: 28px 8px; text-align: center; color: var(--t3); font-size: .9rem; }
