/* ─────────────────────────────────────────────────────────────────────────────
   assets/llm_styles.css
   GG_LLM chat & AI panel styles — ALL rules scoped to .llm-* classes.
   ⚠  Does NOT touch body, *, :root, or any other global selector.
   Load ONLY from the LLM modal / panel components, never from app.py globally.
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Box sizing — scoped only to llm components ──────────────────────────── */
.llm-ai-panel *, .llm-summary-panel *,
.llm-modal-container *, .llm-messages *,
.llm-input-row *, .llm-chips-row * {
  box-sizing: border-box;
}

/* ── Typography helpers ───────────────────────────────────────────────────── */
.llm-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 8px;
}

.llm-section-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

/* ── Section header row ───────────────────────────────────────────────────── */
.llm-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
  font-family: 'Lato', sans-serif;
}

.llm-section-header-accent {
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, #14ac9c, #0f766e);
  flex-shrink: 0;
}

/* ── Page-level AI buttons ────────────────────────────────────────────────── */
.llm-page-boxes {
  display: flex;
  gap: 8px;
  align-items: center;
}

.llm-page-box {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 12px;
  border: 1px solid #99f6e4;
  border-radius: 6px;
  background: #f0fdfa;
  color: #0d9488;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.llm-page-box:hover {
  background: #ccfbf1;
  border-color: #14ac9c;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}
.llm-page-box.llm-page-box--filled {
  background: #14ac9c;
  border-color: #14ac9c;
  color: white;
}
.llm-page-box.llm-page-box--filled:hover {
  background: #0d9488;
  box-shadow: 0 2px 8px rgba(14,116,144,0.25);
}

/* Potential page-level buttons: match the green Analysis/Statistics tab
   buttons (.llm-tab-btn) — solid teal background, white text. Id-scoped so it
   wins over the conflicting .llm-page-box definitions regardless of CSS load
   order. */
#potcp-page-summary-btn.llm-page-box,
#potcp-page-assistant-btn.llm-page-box {
  background: #0d9488;
  border: none;
  color: white;
}
#potcp-page-summary-btn.llm-page-box:hover,
#potcp-page-assistant-btn.llm-page-box:hover {
  background: #0f766e;
}

.llm-tab-icon {
  width: 12px;
  height: 12px;
  object-fit: contain;
  vertical-align: middle;
}

/* ── AI Panel card ────────────────────────────────────────────────────────── */
.llm-ai-panel {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05), 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 8px;
  font-family: 'Lato', sans-serif;
  background: #ffffff;
}

.llm-ai-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(135deg, #0f766e 0%, #14ac9c 100%);
  transition: filter 0.15s;
}
.llm-ai-panel-header:hover { filter: brightness(1.05); }

.llm-ai-panel-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.llm-ai-panel-body {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  animation: llm-fade-in 0.2s ease;
}

.llm-ai-panel-content {
  padding: 2px 14px 14px;
  font-size: 12px;
  line-height: 1.7;
  color: #0f172a;
}
.llm-ai-panel-content p { margin-top: 8px; }
.llm-ai-panel-content p:first-child { margin-top: 0; }
.llm-ai-panel-content strong { color: #0f766e; }

.llm-ai-panel-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

/* ── Status / badge chips ─────────────────────────────────────────────────── */
.llm-chip-ready {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255,255,255,0.18);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  white-space: nowrap;
}
.llm-chip-ai {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: #f0fdfa;
  color: #0d9488;
  border: 1px solid #99f6e4;
}

/* ── Small action buttons ─────────────────────────────────────────────────── */
.llm-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Lato', sans-serif;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.12s, border-color 0.12s;
  white-space: nowrap;
}
.llm-btn-primary {
  font-size: 10px; font-weight: 700;
  padding: 3px 9px;
  border: 1px solid #99f6e4;
  background: #f0fdfa; color: #0d9488;
}
.llm-btn-primary:hover { background: #ccfbf1; border-color: #14ac9c; }

.llm-btn-ghost {
  font-size: 10px; font-weight: 400;
  padding: 3px 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff; color: #475569;
}
.llm-btn-ghost:hover { background: #f8fafc; }

/* ── Summary panel ────────────────────────────────────────────────────────── */
.llm-summary-panel {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  margin-bottom: 8px;
  font-family: 'Lato', sans-serif;
  background: #ffffff;
}
.llm-summary-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.12s;
}
.llm-summary-panel-header:hover { background: #f1f5f9; }
.llm-summary-panel-icon {
  width: 26px; height: 26px; border-radius: 7px;
  background: #f0fdfa; border: 1px solid #99f6e4;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 13px; font-weight: 700; color: #0d9488;
}

/* ── Chat modal ───────────────────────────────────────────────────────────── */
.llm-modal-container {
  width: 600px; min-width: 380px;
  min-height: 480px; max-height: 90vh;
  display: flex; flex-direction: column;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 2px 6px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
  background: #ffffff;
  position: fixed; z-index: 1001;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  resize: both;
}
.llm-modal-header {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #0f766e 0%, #14ac9c 100%);
  padding: 12px 14px;
  border-radius: 10px 10px 0 0;
  cursor: move; user-select: none; flex-shrink: 0;
}
.llm-modal-header-icon-btn {
  background: rgba(255,255,255,0.15); border: none; color: white;
  cursor: pointer; width: 28px; height: 28px; border-radius: 6px;
  padding: 0; display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; transition: background 0.12s;
}
.llm-modal-header-icon-btn:hover { background: rgba(255,255,255,0.25); }

.llm-notice-bar {
  font-size: 10.5px; color: #0d9488; font-weight: 600;
  background: #f0fdfa;
  border-top: 1px solid #99f6e4; border-bottom: 1px solid #99f6e4;
  padding: 8px 14px; line-height: 1.4; flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
}

/* ── Messages area ────────────────────────────────────────────────────────── */
.llm-messages {
  flex: 1; overflow-y: auto;
  padding: 14px 12px; background: #f8fafc;
  min-height: 120px; max-height: 380px;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 12px; scroll-behavior: smooth;
}
.llm-messages::-webkit-scrollbar { width: 5px; }
.llm-messages::-webkit-scrollbar-track { background: transparent; }
.llm-messages::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 3px; }
.llm-messages::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

/* ── Chat bubbles ─────────────────────────────────────────────────────────── */
.llm-bubble-row { display: flex; align-items: flex-end; gap: 7px; }
.llm-bubble-row--user { flex-direction: row-reverse; }

.llm-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.llm-avatar--bot {
  background: linear-gradient(135deg, #0f766e, #14ac9c);
  padding: 2px;
}
.llm-avatar--user {
  background: #e2e8f0; color: #64748b;
  font-size: 11px; font-weight: 700; font-family: 'Lato', sans-serif;
}

.llm-bubble {
  max-width: 82%; padding: 9px 13px;
  font-size: 12px; line-height: 1.65;
  font-family: 'Lato', sans-serif;
}
.llm-bubble--user {
  background: linear-gradient(135deg, #0f766e, #14ac9c);
  color: white;
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 2px 8px rgba(14,116,144,0.25);
}
.llm-bubble--bot {
  background: #ffffff; color: #0f172a;
  border-radius: 4px 16px 16px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  border: 1px solid #e2e8f0;
}
.llm-bubble--bot strong { color: #0f766e; }

/* ── Typing dots ──────────────────────────────────────────────────────────── */
.llm-typing-bubble {
  background: #ffffff; border: 1px solid #e2e8f0;
  border-radius: 4px 16px 16px 16px;
  padding: 10px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  /* flex only while showing dots — JS removes this class once streaming begins */
  display: flex; gap: 4px; align-items: center;
}
/* Once streaming text replaces the dots, the bubble becomes a normal text block */
.llm-bubble--bot[data-streaming-active] {
  display: block !important;
  line-height: 1.65;
}
.llm-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #14ac9c; display: inline-block;
  animation: llm-bounce 1.2s ease-in-out infinite;
  font-size: 0;
}
.llm-dot-1 { animation-delay: 0s; }
.llm-dot-2 { animation-delay: 0.2s; }
.llm-dot-3 { animation-delay: 0.4s; }

/* ── Streaming cursor ─────────────────────────────────────────────────────── */
.llm-stream-cursor {
  display: inline-block;
  width: 2px; height: 13px;
  background: #14ac9c; border-radius: 1px;
  margin-left: 2px; vertical-align: text-bottom;
  animation: llm-cursor-blink 0.8s step-end infinite;
}

/* ── Quick chips ──────────────────────────────────────────────────────────── */
.llm-chips-row {
  padding: 12px 16px 8px; background: white;
  border-top: 1px solid #e2e8f0;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex-shrink: 0;
}
.llm-chip {
  display: inline-flex; align-items: center;
  height: auto; line-height: 1.2;
  font-size: 10.5px; padding: 5px 11px;
  border: 1px solid #99f6e4; border-radius: 22px;
  background: white; color: #0d9488;
  cursor: pointer; font-family: 'Lato', sans-serif;
  font-weight: 700; white-space: nowrap; letter-spacing: 0.4px;
  text-transform: none;
  transition: background 0.12s, border-color 0.12s;
}
.llm-chip:hover { background: #f0fdfa; border-color: #14ac9c; }

/* Page assistant: 2×2 suggestion grid (no horizontal scroll).
   Scoped to both the Performance (#page-assistant-modal-container) and the
   Potential (#potcp-page-assistant-modal-container) page-level modals so their
   suggestion chips share the same grid, centered text, font, and alignment. */
#page-assistant-modal-container .llm-chips-page-wrap,
#potcp-page-assistant-modal-container .llm-chips-page-wrap {
  padding: 12px 22px 10px 26px;
  background: white;
  border-top: 1px solid #e2e8f0;
  box-sizing: border-box;
}
#page-assistant-modal-container .llm-chips-page-label,
#potcp-page-assistant-modal-container .llm-chips-page-label {
  display: block;
  font-size: 9px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 10px 4px;
  padding-right: 8px;
}
#page-assistant-modal-container .llm-chips-grid-page,
#potcp-page-assistant-modal-container .llm-chips-grid-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  width: 100%;
  padding-right: 4px;
  box-sizing: border-box;
}
#page-assistant-modal-container .llm-chips-grid-page .llm-chip,
#potcp-page-assistant-modal-container .llm-chips-grid-page .llm-chip {
  flex: none;
  white-space: normal;
  text-align: center;
  justify-content: center;
  line-height: 1.25;
  padding: 7px 8px;
  font-size: 9.5px;
  min-height: 38px;
}

#page-assistant-modal-container .pa-footer-actions,
#potcp-page-assistant-modal-container .pa-footer-actions {
  padding: 10px 22px 12px 26px;
  box-sizing: border-box;
}

#page-assistant-modal-container .llm-input-row,
#potcp-page-assistant-modal-container .llm-input-row {
  padding: 10px 22px 12px 26px;
  box-sizing: border-box;
}

/* ── Input row ────────────────────────────────────────────────────────────── */
.llm-input-row {
  display: flex; align-items: center;
  padding: 10px 12px 12px; background: white;
  border-top: 1px solid #e2e8f0; flex-shrink: 0; gap: 8px;
}
.llm-chat-input {
  flex: 1; border: 1.5px solid #e2e8f0; border-radius: 22px;
  padding: 8px 14px; font-size: 12px;
  font-family: 'Lato', sans-serif; outline: none;
  color: #0f172a; background: #f8fafc;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.llm-chat-input:focus {
  border-color: #14ac9c;
  box-shadow: 0 0 0 3px rgba(20,172,156,0.12);
  background: white;
}
.llm-send-btn {
  background: linear-gradient(135deg, #0f766e, #14ac9c);
  color: white; border: none; border-radius: 22px;
  padding: 8px 16px; cursor: pointer;
  font-size: 12px; font-weight: 700;
  font-family: 'Lato', sans-serif;
  display: inline-flex; align-items: center; gap: 5px;
  transition: filter 0.15s, box-shadow 0.15s; white-space: nowrap;
}
.llm-send-btn:hover { filter: brightness(1.08); box-shadow: 0 2px 8px rgba(14,116,144,0.25); }
.llm-send-btn:disabled {
  background: #e2e8f0; color: #94a3b8;
  cursor: default; box-shadow: none; filter: none;
}

/* ── Modal footer ─────────────────────────────────────────────────────────── */
.llm-modal-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 0 0 10px 10px; flex-shrink: 0;
}

/* ── Loading pulse ────────────────────────────────────────────────────────── */
.llm-loading-row {
  display: flex; align-items: center; gap: 10px; padding: 18px 14px;
}

/* ── Animations ───────────────────────────────────────────────────────────── */
@keyframes llm-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-4px); }
}
@keyframes llm-pulse {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.9); }
  30%           { opacity: 1;   transform: scale(1.1); }
}
@keyframes llm-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes llm-cursor-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .llm-modal-container {
    width: calc(100vw - 24px) !important;
    min-width: 0 !important;
    left: 12px !important;
    transform: translateY(-50%) !important;
    top: 50% !important;
  }
  .llm-page-boxes { flex-wrap: wrap; }
}

/* ── Language picker (inside AI panel header) ─────────────────────────────── */

/* Shared rule — keeps EN, Other, and × at exactly the same size and baseline */
.lang-quick,
.lang-wrap,
.ai-panel-close {
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  box-sizing: border-box;
  flex: 0 0 auto;
  align-self: center;
  margin: 0 !important;
  vertical-align: middle;
}

/* Close button — size + matching border */
.ai-panel-close {
  width: 30px; line-height: 1; text-transform: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.18) !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 300;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.3) !important;
  border-radius: 6px;
  padding: 0 !important;
  -webkit-appearance: none;
  appearance: none;
}
.ai-panel-close:hover { background: rgba(255,255,255,0.28) !important; }

/* Keep EN / Other languages / × on one aligned row */
.summary-panel-header {
  flex-wrap: nowrap;
  align-items: center;
}

/* Keep action controls visible; let title shrink/truncate first */
.summary-panel-header > :first-child {
  min-width: 0;
}
#page-assistant-title,
#potcp-page-assistant-title,
[id*="ai-panel-title"] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Compact controls for narrow analysis panels */
@media (max-width: 760px) {
  .summary-panel-header {
    gap: 6px;
  }
  .lang-quick,
  .lang-wrap,
  .ai-panel-close {
    height: 28px;
    min-height: 28px;
    max-height: 28px;
  }
  .ai-panel-close {
    width: 28px;
    min-width: 28px;
  }
  .lang-quick {
    padding: 1px;
  }
  .lang-quick .qp {
    padding: 0 6px;
    font-size: 9px;
    gap: 3px;
  }
  .lang-quick .qp .qp-flag {
    font-size: 15px;
  }
  .lang-current {
    padding: 0 7px;
    font-size: 9px;
  }
  .lang-caret {
    width: 20px;
    font-size: 8px;
  }
  .lang-code {
    font-size: 9px;
  }
  #page-assistant-title,
  #potcp-page-assistant-title,
  [id*="ai-panel-title"] {
    max-width: 40%;
  }
}

.lang-wrap {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  overflow: visible;
  transition: background 0.15s, border-color 0.15s;
}
.lang-wrap:hover { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.55); }
.lang-wrap.is-selected { background: white; border-color: white; box-shadow: 0 1px 4px rgba(0,0,0,0.15); }
.lang-wrap.is-selected .lang-current,
.lang-wrap.is-selected .lang-caret { color: #0f766e; }
.lang-wrap.is-selected .lang-current { border-right-color: rgba(15,118,110,0.2); }
.lang-wrap.is-selected .lang-caret:hover { background: rgba(15,118,110,0.08); }

.lang-current {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 0 8px; color: rgba(255,255,255,0.92);
  font-size: 10px; font-weight: 700; letter-spacing: 0.3px;
  font-family: 'Lato', sans-serif; cursor: pointer;
  background: transparent; border: none; line-height: 1; text-transform: none;
  border-right: 1px solid rgba(255,255,255,0.25);
  height: 100%; white-space: nowrap;
}
.lang-code { font-size: 10px; font-weight: 800; letter-spacing: 0.5px; }

.lang-caret {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 100%; color: rgba(255,255,255,0.85);
  background: transparent; border: none; cursor: pointer; padding: 0;
  font-size: 9px; line-height: 1; text-transform: none;
  transition: background 0.12s, color 0.12s;
  border-radius: 0 5px 5px 0;
}
.lang-caret:hover { background: rgba(255,255,255,0.18); color: white; }
.lang-wrap.is-open .lang-caret { transform: rotate(180deg); }

/* Quick-pick strip — mirrors lang-wrap pattern exactly */
.lang-quick {
  display: inline-flex; align-items: stretch;
  padding: 2px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  overflow: hidden;
}
.lang-quick .qp {
  /* height: 100% fills the container content-box (30px − 2×2px padding = 26px) */
  height: 100%; box-sizing: border-box;
  border: none; background: transparent;
  color: rgba(255,255,255,0.9);
  font-size: 10px; font-weight: 700; letter-spacing: 0.4px;
  padding: 0 7px; line-height: 1; border-radius: 4px; cursor: pointer;
  font-family: 'Lato', sans-serif;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  text-transform: none; white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}
.lang-quick .qp:hover { background: rgba(255,255,255,0.18); color: white; }
.lang-quick .qp.active {
  background: white; color: #0f766e;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
.lang-quick .qp .qp-flag {
  font-size: 18px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Dropdown */
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  width: 260px; max-height: 340px;
  background: white; border: 1px solid #e2e8f0; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14), 0 2px 6px rgba(0,0,0,0.06);
  padding: 6px; z-index: 5000;
  display: none; flex-direction: column; color: #0f172a;
  animation: lang-drop-in 0.14s ease;
}
.lang-wrap.is-open .lang-menu { display: flex; }

.lang-menu-search { padding: 4px 6px 6px; border-bottom: 1px solid #f1f5f9; margin-bottom: 4px; }
.lang-menu-search input {
  width: 100%; border: 1px solid #e2e8f0; border-radius: 6px;
  padding: 5px 9px; font-size: 12px; font-family: 'Lato', sans-serif;
  outline: none; color: #0f172a; background: #f8fafc; box-sizing: border-box;
}
.lang-menu-search input:focus {
  border-color: #14ac9c; box-shadow: 0 0 0 3px rgba(20,172,156,0.12); background: white;
}
.lang-menu-list { overflow-y: auto; flex: 1; min-height: 0; }
.lang-menu-list::-webkit-scrollbar { width: 5px; }
.lang-menu-list::-webkit-scrollbar-track { background: transparent; }
.lang-menu-list::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 3px; }
.lang-menu-empty {
  padding: 14px 10px; text-align: center; color: #94a3b8;
  font-size: 11px; font-style: italic; display: none;
}
.lang-menu-label {
  font-size: 9px; font-weight: 800; letter-spacing: 0.8px;
  text-transform: uppercase; color: #94a3b8; padding: 4px 10px 3px;
}
.lang-option {
  display: flex; align-items: center; gap: 8px;
  width: 100%; border: none; background: transparent;
  padding: 6px 10px; border-radius: 5px; cursor: pointer;
  font-family: 'Lato', sans-serif; font-size: 12px; color: #0f172a;
  text-align: left; transition: background 0.1s; box-sizing: border-box;
}
.lang-option:hover { background: #f0fdfa; }
.lang-option .opt-flag { font-size: 14px; width: 20px; text-align: center; }
.lang-option .opt-name { flex: 1; font-weight: 600; }
.lang-option .opt-code { font-size: 9.5px; font-weight: 700; color: #94a3b8; letter-spacing: 0.6px; }
.lang-option.active { background: #f0fdfa; color: #0d9488; }
.lang-option.active .opt-code { color: #0d9488; }
.lang-option .check { width: 14px; color: #14ac9c; display: inline-flex; justify-content: center; }

@keyframes lang-drop-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
