/* ================================================================
   AI SANA — OFFICIAL DESIGN SYSTEM
   Amanzholov East Kazakhstan University
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Merriweather:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
  /* Brand */
  --brand-primary:   #6366f1;
  --brand-secondary: #8b5cf6;
  --brand-accent:    #38bdf8;
  --brand-danger:    #ef4444;
  --brand-success:   #10b981;
  --brand-warning:   #f59e0b;

  /* Dark palette */
  --dark-900: #0a0818;
  --dark-800: #0f0c29;
  --dark-700: #16133a;
  --dark-600: #1e1b4b;

  /* Light palette */
  --light-50:  #fafbff;
  --light-100: #f0f4ff;
  --light-200: #e0e7ff;
  --light-300: #c7d2fe;

  /* Text */
  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;

  /* Surfaces */
  --surface:       #ffffff;
  --surface-raised: #f8fafc;
  --border:        #e2e8f0;
  --border-focus:  rgba(99,102,241,0.4);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.07);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.14), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-brand: 0 8px 32px rgba(99,102,241,0.30);
  --shadow-brand-lg: 0 16px 48px rgba(99,102,241,0.40);

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast:   0.15s cubic-bezier(0.4,0,0.2,1);
  --transition-base:   0.25s cubic-bezier(0.4,0,0.2,1);
  --transition-slow:   0.4s  cubic-bezier(0.4,0,0.2,1);
  --transition-spring: 0.35s cubic-bezier(0.34,1.56,0.64,1);

  /* Legacy compat */
  --primary:       var(--brand-primary);
  --secondary:     var(--brand-secondary);
  --accent:        #EC4899;
  --success:       var(--brand-success);
  --warning:       var(--brand-warning);
  --bg-main:       var(--light-50);
  --bg-card:       var(--surface);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--light-50);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── HEADER ──────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0;
  background: rgba(10, 8, 24, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(99, 102, 241, 0.18);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 4px 32px rgba(0,0,0,0.35);
  transition: background var(--transition-base);
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(99,102,241,0.06) 0%, transparent 40%, rgba(139,92,246,0.04) 100%);
  pointer-events: none;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

/* Logo */
.logo-section {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 80px;
  height: 80px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: var(--transition-base);
}


.logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.2;
}

.logo-subtext {
  font-size: 0.75rem;
  font-weight: 600;
  color: #a78bfa;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.07);
}

/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 3px;
  margin-left: 1.5rem;
}

.lang-btn {
  padding: 5px 12px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.lang-btn:hover {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(99,102,241,0.4);
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  background: linear-gradient(180deg, var(--dark-800) 0%, #060412 100%);
  color: white;
  padding: 72px 0 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.5), rgba(139,92,246,0.3), transparent);
}

.footer::after {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.footer-logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand-text h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand-text p {
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  line-height: 1.7;
  white-space: pre-line;
}

.footer-section h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 400;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: #a78bfa;
  padding-left: 4px;
}

.footer-links a::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(167,139,250,0);
  flex-shrink: 0;
  transition: background var(--transition-fast);
}

.footer-links a:hover::before {
  background: #a78bfa;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.footer-bottom p,
.footer-bottom {
  text-align: center;
  color: rgba(255,255,255,0.28);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

/* ── AGENT CARDS ─────────────────────────────────────────────── */
.agents-section {
  padding: 96px 0;
  background: var(--light-50);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.agent-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  transition: transform var(--transition-spring), box-shadow var(--transition-base), border-color var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.agent-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--icon-bg-1, #6366f1), var(--icon-bg-2, #8b5cf6));
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.agent-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--icon-bg-1, #6366f1), 0.03), transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.agent-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.10), 0 4px 16px rgba(99,102,241,0.10);
  border-color: rgba(99,102,241,0.2);
}

.agent-card:hover::before { opacity: 1; }
.agent-card:hover::after  { opacity: 1; }

.agent-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.agent-icon-wrapper {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--icon-bg-1, #6366f1), var(--icon-bg-2, #8b5cf6));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform var(--transition-spring), box-shadow var(--transition-base);
  position: relative;
  flex-shrink: 0;
}

.agent-icon-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.22), transparent 60%);
  opacity: 1;
}

.agent-card:hover .agent-icon-wrapper {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 12px 36px rgba(0,0,0,0.2);
}

.agent-info { width: 100%; }

.agent-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.agent-title {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 16px;
  background: var(--light-100);
  border-radius: var(--radius-full);
  display: inline-block;
  line-height: 1.5;
  border: 1px solid var(--light-200);
}

.agent-status-badge {
  position: absolute;
  top: 16px; right: 16px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 10;
}

.agent-status-badge.ready {
  background: rgba(16,185,129,0.12);
  color: #059669;
  border: 1px solid rgba(16,185,129,0.25);
}

.agent-status-badge.dev {
  background: rgba(245,158,11,0.1);
  color: #d97706;
  border: 1px solid rgba(245,158,11,0.22);
}

.agent-status-badge.testing {
  background: rgba(59,130,246,0.1);
  color: #2563eb;
  border: 1px solid rgba(59,130,246,0.22);
}

.agent-description { display: none; }
.agent-features     { display: none; }

/* ── MODAL ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
  animation: modal-bg-in 0.2s ease;
}

@keyframes modal-bg-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  max-width: 680px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.22), 0 0 0 1px rgba(255,255,255,0.06);
  animation: modal-in 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

.modal-header {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 60%, #1e1b4b 100%);
  color: white;
  padding: 36px 40px 32px;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  position: relative;
  overflow: hidden;
}

.modal-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(99,102,241,0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 100%, rgba(139,92,246,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.modal-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.modal-header p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.modal-body {
  padding: 32px 40px 36px;
}

.modal-section {
  margin-bottom: 28px;
}

.modal-section h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-section h3::before {
  content: '';
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 2px;
  flex-shrink: 0;
}

.modal-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.9rem;
}

.modal-section ul { list-style: none; }

.modal-section li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.modal-section li:last-child { border-bottom: none; }

.modal-section li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-primary);
  flex-shrink: 0;
  margin-top: 6px;
}

.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), transform var(--transition-fast);
  z-index: 10;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255,255,255,0.22);
  transform: rotate(90deg);
}

/* ── SCROLLBAR ───────────────────────────────────────────────── */
.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 3px;
}

/* ── BUTTONS (legacy) ────────────────────────────────────────── */
.btn {
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: white;
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand-lg);
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}

/* ── STAT CARDS (legacy) ─────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.stat-label {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  font-weight: 500;
}

/* ── INFO SECTION ────────────────────────────────────────────── */
.info-section { padding: 96px 0; background: var(--surface); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.info-card {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--light-50);
  border: 1px solid var(--border);
  transition: transform var(--transition-spring), box-shadow var(--transition-base);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.info-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(99,102,241,0.15);
}

.info-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.info-text {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9rem;
}

/* ── HERO (legacy, now unused but kept for compatibility) ─────── */
.hero { padding: 5rem 0; text-align: center; }
.hero-content { max-width: 900px; margin: 0 auto; }

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary), var(--brand-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

/* ── CHAT PAGE ───────────────────────────────────────────────── */
.chat-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--light-50);
}

.chat-container {
  width: 100%;
  max-width: 900px;
  background: var(--surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}

.chat-header {
  background: linear-gradient(135deg, var(--dark-800), var(--dark-600));
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: white;
}

.back-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: background var(--transition-fast);
}

.back-btn:hover { background: rgba(255,255,255,0.18); }

.chat-agent-info h2 { margin-bottom: 4px; font-size: 1.1rem; }
.chat-agent-role { color: rgba(255,255,255,0.65); font-size: 0.85rem; }

.chat-box { height: 600px; display: flex; flex-direction: column; }

.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
  background: var(--light-50);
}

.message { margin-bottom: 20px; display: flex; }
.message-user    { justify-content: flex-end; }
.message-assistant { justify-content: flex-start; }

.message-bubble {
  max-width: 70%;
  padding: 14px 20px;
  border-radius: 18px;
  line-height: 1.6;
  font-size: 0.9rem;
}

.message-user .message-bubble {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: white;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 4px 14px rgba(99,102,241,0.25);
}

.message-assistant .message-bubble {
  background: var(--surface);
  color: var(--text-primary);
  border-radius: 18px 18px 18px 4px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.loading { display: flex; gap: 6px; padding: 4px 0; }

.loading-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: bounce 1.4s infinite ease-in-out both;
}

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

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40%           { transform: scale(1); }
}

.input-area {
  padding: 20px 32px;
  border-top: 1px solid var(--border);
  background: white;
}

.input-wrapper { display: flex; gap: 12px; }

.message-input {
  flex: 1;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 48px;
  max-height: 150px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  color: var(--text-primary);
}

.message-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}

.send-btn {
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--transition-base);
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.4);
}

.send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── AI-USTAZ PAGE STYLES ────────────────────────────────────── */
.ai-ustaz-page {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #f8faff, #eef2ff);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-shapes { position: fixed; width: 100%; height: 100%; top: 0; left: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.05;
  animation: au-float 20s infinite ease-in-out;
}

.shape-1 { width: 600px; height: 600px; background: linear-gradient(135deg, #6366f1, #8b5cf6); top: -200px; right: -150px; }
.shape-2 { width: 400px; height: 400px; background: linear-gradient(135deg, #6366f1, #a78bfa); bottom: -150px; left: -100px; animation-delay: 3s; }
.shape-3 { width: 300px; height: 300px; background: linear-gradient(135deg, #a78bfa, #6366f1); top: 50%; left: 50%; animation-delay: 6s; }

@keyframes au-float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(50px,-50px) scale(1.1); }
  66%       { transform: translate(-30px,30px) scale(0.9); }
}

.ai-network  { position: fixed; width: 100%; height: 100%; top: 0; left: 0; z-index: 0; pointer-events: none; opacity: 0.15; }
.ai-particles { position: fixed; width: 100%; height: 100%; top: 0; left: 0; z-index: 0; pointer-events: none; }

.ai-node {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--brand-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(99,102,241,0.5);
  animation: au-pulse-node 3s infinite ease-in-out;
}

@keyframes au-pulse-node {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.5); opacity: 1; }
}

.ai-connection {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
  transform-origin: left center;
  animation: au-data-flow 3s infinite linear;
}

@keyframes au-data-flow {
  0%   { opacity: 0; transform: scaleX(0); }
  50%  { opacity: 0.5; }
  100% { opacity: 0; transform: scaleX(1); }
}

.particle {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--brand-primary);
  border-radius: 50%;
  opacity: 0.4;
  animation: au-float-particle 15s infinite ease-in-out;
}

@keyframes au-float-particle {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

.hero-section { position: relative; z-index: 1; }

.main-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary), #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
  text-align: center;
}

.ai-sana-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
  border: 1.5px solid rgba(99,102,241,0.22);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-primary);
  transition: all var(--transition-base);
  cursor: default;
}

.ai-sana-badge:hover {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99,102,241,0.15);
}

.accent-line {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  margin: 20px auto;
  border-radius: 2px;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  margin: 20px 0 48px;
  font-weight: 400;
  line-height: 1.7;
}

.subtitle-accent { font-weight: 600; color: var(--brand-primary); }

.library-btn {
  padding: 11px 22px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  box-shadow: 0 4px 15px rgba(99,102,241,0.25);
  text-decoration: none;
}

.library-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99,102,241,0.35);
}

.logo-img { height: 72px; width: auto; filter: drop-shadow(0 4px 8px rgba(99,102,241,0.2)); }

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 20px;
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
}

.card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  text-align: center;
  transition: transform var(--transition-spring), box-shadow var(--transition-base);
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 24px rgba(99,102,241,0.07);
  border: 1.5px solid transparent;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(99,102,241,0.04), rgba(139,92,246,0.04));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 20px 50px rgba(99,102,241,0.18);
  border-color: rgba(99,102,241,0.35);
}

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

.card .icon {
  width: 80px; height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  box-shadow: 0 8px 24px rgba(99,102,241,0.28);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.card .icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent 60%);
}

.card:hover .icon {
  transform: scale(1.1) rotate(4deg);
  box-shadow: 0 14px 36px rgba(99,102,241,0.4);
}

.card .icon svg { width: 38px; height: 38px; fill: white; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12)); }

.card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-weight: 700;
}

.card-description {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ── ANIMATIONS ──────────────────────────────────────────────── */
.fade-in               { animation: au-fadeInUp 0.6s ease both; }
.fade-in-delay-1       { animation: au-fadeInUp 0.6s ease 0.15s both; }
.fade-in-delay-2       { animation: au-fadeInUp 0.6s ease 0.30s both; }

@keyframes au-fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes au-sparkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50%       { opacity: 1; transform: scale(1); }
}

/* ── CHAT WIDGET ─────────────────────────────────────────────── */
#chat-widget { position: fixed; bottom: 28px; right: 28px; z-index: 10001; }

#chat-button {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(99,102,241,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  position: relative;
}

#chat-button::before {
  content: '';
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 50%;
  opacity: 0.25;
  animation: au-chat-pulse 2.5s infinite;
}

@keyframes au-chat-pulse {
  0%, 100% { transform: scale(1); opacity: 0.25; }
  50%       { transform: scale(1.12); opacity: 0; }
}

#chat-button:hover { transform: scale(1.08); box-shadow: 0 12px 36px rgba(99,102,241,0.5); }
#chat-button i { font-size: 26px; color: white; }

#chat-container {
  position: fixed;
  bottom: 96px; right: 28px;
  width: 370px; height: 520px;
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: 0 24px 60px rgba(0,0,0,0.18), 0 0 0 1px rgba(99,102,241,0.1);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
}

#chat-container.active { display: flex; animation: au-slideUp 0.25s ease; }

@keyframes au-slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

#chat-header {
  padding: 24px;
  background: linear-gradient(135deg, var(--dark-800), var(--dark-600));
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chat-title { font-size: 1.05rem; font-weight: 700; }

#chat-close {
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

#chat-close:hover { background: rgba(255,255,255,0.22); transform: rotate(90deg); }

#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  background: var(--light-50);
}

.chat-message {
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  animation: au-fadeIn 0.25s ease;
}

@keyframes au-fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.message-avatar {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.message-avatar.bot  { background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)); color: white; }
.message-avatar.user { background: linear-gradient(135deg, #64748b, #94a3b8); color: white; }

.message-content {
  max-width: 78%;
  padding: 14px 18px;
  border-radius: 16px;
  line-height: 1.65;
  font-size: 0.88rem;
}

.message-content.bot {
  background: white;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 4px;
}

.message-content.user {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: white;
  margin-left: auto;
  box-shadow: 0 4px 14px rgba(99,102,241,0.25);
  border-radius: 16px 16px 4px 16px;
}

.chat-message.user { flex-direction: row-reverse; }

#chat-input-container {
  padding: 16px 20px;
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}

#chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  outline: none;
  transition: all var(--transition-fast);
  font-family: inherit;
  color: var(--text-primary);
}

#chat-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

#chat-send {
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border: none;
  border-radius: var(--radius-md);
  color: white;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

#chat-send:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(99,102,241,0.4); }
#chat-send i { font-size: 16px; }

.loading-dots::after {
  content: '...';
  animation: au-dots 1.5s steps(4, end) infinite;
}

@keyframes au-dots {
  0%, 20% { content: ''; }
  40%      { content: '.'; }
  60%      { content: '..'; }
  80%, 100%{ content: '...'; }
}

#chat-messages::-webkit-scrollbar { width: 5px; }
#chat-messages::-webkit-scrollbar-track { background: transparent; }
#chat-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 3px;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-content { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand   { grid-column: 1 / -1; }
  .cards-grid     { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .header-content { padding: 0 1rem; }

  .nav { gap: 0; }
  .nav-link { padding: 6px 10px; font-size: 0.82rem; }

  .language-switcher { margin-left: 0.75rem; }
  .lang-btn { padding: 4px 8px; font-size: 0.72rem; }

  .logo-text    { font-size: 0.78rem; }
  .logo-subtext { font-size: 0.65rem; }
  .logo-icon    { width: 42px; height: 42px; }

  .footer-content { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand   { grid-column: auto; }

  .agents-grid { grid-template-columns: 1fr; }
  .cards-grid  { grid-template-columns: 1fr; gap: 16px; }

  .modal-header { padding: 28px 24px; }
  .modal-body   { padding: 24px; }
  .modal-header h2 { font-size: 1.3rem; }

  .section-title { font-size: 1.7rem; }

  #chat-container { width: calc(100% - 32px); right: 16px; left: 16px; bottom: 84px; }
  #chat-widget    { bottom: 16px; right: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .card { padding: 28px 20px; }
}

/* ── MISC / CARDS ICON GLOW ──────────────────────────────────── */
.card .icon::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(135deg, #818cf8, var(--brand-primary));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover .icon::before { opacity: 1; }

.ai-sparkle {
  position: absolute;
  width: 4px; height: 4px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: au-sparkle 2s infinite ease-in-out;
}

.ai-sparkle:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.ai-sparkle:nth-child(2) { top: 30%; right: 25%; animation-delay: 0.3s; }
.ai-sparkle:nth-child(3) { bottom: 25%; left: 30%; animation-delay: 0.6s; }
.ai-sparkle:nth-child(4) { bottom: 30%; right: 20%; animation-delay: 0.9s; }

@keyframes au-glow-pulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(99,102,241,0.4); }
  50%       { box-shadow: 0 4px 25px rgba(99,102,241,0.7); }
}

@keyframes au-spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Responsive for chat widget ──────────────────────────────── */
@media (max-width: 480px) {
  .main-title { font-size: 2.4rem; }
  .subtitle   { font-size: 0.95rem; padding: 0 12px; }
}

/* ================================================================
   HEADER SEARCH + LANGUAGE DROPDOWN
   ================================================================ */

/* Nav icon button (search trigger) */
.nav-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  flex-shrink: 0;
}

.nav-icon-btn:hover {
  background: rgba(99,102,241,0.2);
  border-color: rgba(99,102,241,0.4);
  color: #fff;
}

/* Search wrap */
.nav-search-wrap {
  position: relative;
}

/* Search dropdown */
.nav-search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: rgba(15, 12, 41, 0.96);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
  animation: dropdown-in 0.18s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 300;
}

@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.nav-search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 400;
  caret-color: #a78bfa;
}

.nav-search-input::placeholder { color: rgba(255,255,255,0.3); }

.nav-search-results {
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
}

.nav-search-results::-webkit-scrollbar { width: 4px; }
.nav-search-results::-webkit-scrollbar-thumb {
  background: rgba(99,102,241,0.4);
  border-radius: 2px;
}

.nav-search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.nav-search-result-item:hover { background: rgba(99,102,241,0.18); }

.nav-search-result-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-search-result-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.nav-search-result-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.4;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.nav-search-empty {
  padding: 20px 16px;
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 0.85rem;
}

/* Language dropdown */
.lang-dropdown-wrap {
  position: relative;
  margin-left: 6px;
}

.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
  font-family: inherit;
}

.lang-dropdown-btn:hover {
  background: rgba(99,102,241,0.18);
  border-color: rgba(99,102,241,0.35);
  color: #fff;
}

.lang-current {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 168px;
  background: rgba(15, 12, 41, 0.97);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(99,102,241,0.28);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
  padding: 6px;
  animation: dropdown-in 0.18s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 300;
}

.lang-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-family: inherit;
  transition: background var(--transition-fast), color var(--transition-fast);
  text-align: left;
}

.lang-menu-item:hover {
  background: rgba(99,102,241,0.18);
  color: #fff;
}

.lang-menu-item.active {
  background: rgba(99,102,241,0.2);
  color: #fff;
}

.lang-menu-short {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #a78bfa;
  min-width: 28px;
}

.lang-menu-label {
  font-size: 0.85rem;
  font-weight: 500;
  flex: 1;
}

/* Bounce animation for scroll hint */
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* Hide old language-switcher */
.language-switcher { display: none; }