/* ═══════════ RESET & BASE ═══════════ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Pastel palette */
  --primary: #7E8CE0;
  --primary-light: #EEEAFF;
  --primary-dark: #6770C5;
  --accent-peach: #FFB5A7;
  --accent-peach-light: #FFF0EC;
  --accent-mint: #A8E6CF;
  --accent-mint-light: #E8FFF3;
  --accent-lavender: #C3B1E1;
  --accent-yellow: #FFE0A3;
  --accent-yellow-light: #FFF8E8;
  --accent-pink: #F2B5D4;
  --bg: #FDF8F3;
  --bg-warm: #FAF5EF;
  --white: #FFFFFF;
  --gray-50: #FAFAF9;
  --gray-100: #F5F3F0;
  --gray-200: #E8E5E0;
  --gray-300: #D6D1CA;
  --gray-400: #A8A29E;
  --gray-500: #78716C;
  --gray-600: #57534E;
  --gray-700: #44403C;
  --gray-800: #292524;
  --danger: #F87171;
  --danger-light: #FEE2E2;
  --success: #6EE7B7;
  --success-light: #D1FAE5;
  --warning: #FCD34D;
  --warning-light: #FEF3C7;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow: 0 2px 8px rgba(41,37,36,0.06);
  --shadow-md: 0 4px 16px rgba(41,37,36,0.08);
  --shadow-lg: 0 8px 32px rgba(41,37,36,0.1);
  --shadow-soft: 0 2px 12px rgba(126,140,224,0.12);
  --nav-height: 68px;
  --header-height: 60px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
  height: 100%;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  color: var(--gray-800);
  background: var(--bg);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle pattern background */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(126,140,224,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,181,167,0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(168,230,207,0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); text-decoration: underline; }

input, textarea, button, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

.screen { display: none; height: 100%; position: relative; z-index: 1; }
.screen.active { display: flex; flex-direction: column; }

/* ═══════════ LANDING PAGE ═══════════ */
#landing-screen { overflow: hidden; }

.landing-scroll {
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.landing-nav {
  background: rgba(253,248,243,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232,229,224,0.5);
  position: sticky;
  top: 0;
  z-index: 50;
}

.landing-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mascot-icon { font-size: 32px; }
.mascot-icon-sm { font-size: 22px; }

.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-800);
}

.landing-nav-btns {
  display: flex;
  gap: 10px;
}

.btn-ghost {
  padding: 10px 20px;
  color: var(--gray-600);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-800); }

.btn-accent {
  padding: 10px 22px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(126,140,224,0.3);
}
.btn-accent:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(126,140,224,0.35);
}

/* Hero */
.hero {
  padding: 60px 24px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--gray-800);
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 17px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 480px;
}

.hero-selectors {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-select {
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.hero-select:focus { border-color: var(--primary); box-shadow: var(--shadow-soft); }

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent-lavender));
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(126,140,224,0.35);
}
.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(126,140,224,0.45);
}
.btn-hero:active { transform: translateY(0); }

.hero-visual {
  flex-shrink: 0;
}

.hero-mascot-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mascot {
  font-size: 120px;
  position: relative;
  z-index: 2;
  animation: mascotFloat 3s ease-in-out infinite;
}

@keyframes mascotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126,140,224,0.15), rgba(168,230,207,0.1), transparent);
  z-index: 1;
}

/* Demo Chat */
.demo-section {
  padding: 60px 24px;
  background: var(--bg-warm);
}

.demo-inner {
  max-width: 700px;
  margin: 0 auto;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  color: var(--gray-500);
  font-size: 15px;
  margin-bottom: 32px;
}

.demo-chat-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.demo-chat-header {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
}

.demo-status {
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
  margin-left: auto;
}

.demo-chat-messages {
  padding: 20px;
  min-height: 180px;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-msg {
  display: flex;
  gap: 10px;
  animation: fadeInUp 0.4s ease;
}
.demo-msg.user { flex-direction: row-reverse; }

.demo-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.demo-msg.user .demo-msg-avatar {
  background: var(--accent-peach-light);
}

.demo-msg-bubble {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.6;
  max-width: 80%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.demo-msg.assistant .demo-msg-bubble {
  background: var(--gray-50);
  color: var(--gray-700);
  border-bottom-left-radius: 4px;
}
.demo-msg.user .demo-msg-bubble {
  background: var(--primary);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.demo-chat-input-area {
  padding: 14px 16px;
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--gray-100);
}

.demo-chat-input-area input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  color: var(--gray-700);
  background: var(--white);
  transition: border-color var(--transition);
}
.demo-chat-input-area input:focus { border-color: var(--primary); }
.demo-chat-input-area input::placeholder { color: var(--gray-400); }

.demo-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(126,140,224,0.3);
}
.demo-send-btn:hover { background: var(--primary-dark); transform: scale(1.05); }

/* Features */
.features-section {
  padding: 60px 24px;
}

.features-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Calculator */
.calc-section {
  padding: 60px 24px;
  background: var(--bg-warm);
}

.calc-inner {
  max-width: 600px;
  margin: 0 auto;
}

.calc-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.calc-inputs {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.calc-field {
  flex: 1;
}

.calc-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.calc-field input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
  outline: none;
  transition: border-color var(--transition);
}
.calc-field input:focus { border-color: var(--primary); }

.calc-result {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
}
.calc-result-item.highlight {
  background: var(--accent-mint-light);
  border: 2px solid var(--accent-mint);
}

.calc-label { font-size: 14px; color: var(--gray-600); font-weight: 600; }
.calc-value { font-size: 18px; font-weight: 800; color: var(--gray-800); }
.calc-old { color: var(--gray-400); text-decoration: line-through; }
.calc-new { color: var(--primary); }
.calc-save { color: #059669; }

/* CTA */
.cta-section {
  padding: 60px 24px;
  text-align: center;
}

.cta-inner {
  max-width: 500px;
  margin: 0 auto;
}

.cta-mascot {
  font-size: 60px;
  margin-bottom: 16px;
  animation: mascotFloat 3s ease-in-out infinite;
}

.cta-inner h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
}

.cta-inner p {
  color: var(--gray-500);
  margin-bottom: 24px;
}

/* Footer */
.landing-footer {
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--gray-400);
  border-top: 1px solid var(--gray-100);
}

/* ═══════════ AUTH SCREEN ═══════════ */
#auth-screen {
  justify-content: center;
  align-items: center;
  background: var(--bg);
  overflow-y: auto;
}

.auth-container {
  background: var(--white);
  padding: 36px 32px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  margin: 16px;
  position: relative;
  animation: slideUp 0.4s ease;
}

.auth-back {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 16px;
  display: inline-block;
  transition: color var(--transition);
}
.auth-back:hover { color: var(--primary); }

.auth-logo {
  text-align: center;
  margin-bottom: 20px;
}

.mascot-avatar {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 6px;
}

.auth-logo h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--gray-800);
}

.auth-container h2 {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--gray-700);
}

/* Role Selector */
.role-selector {
  display: flex;
  gap: 10px;
}

.role-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  text-align: center;
}
.role-option input { display: none; }
.role-option .role-icon { font-size: 28px; }

.role-option:hover { border-color: var(--primary); }
.role-option.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* Consent checkboxes */
.consent-group {
  margin-bottom: 16px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
  cursor: pointer;
  padding: 8px 0;
}

.consent-label input[type="checkbox"] {
  display: none;
}

.consent-label .checkmark {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  margin-top: 1px;
}

.consent-label input:checked + .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.consent-label input:checked + .checkmark::after {
  content: '✓';
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.consent-label a {
  color: var(--primary);
  text-decoration: underline;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-select {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(126, 140, 224, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.error-message {
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
  min-height: 18px;
  margin-bottom: 8px;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent-lavender));
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(126,140,224,0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(126,140,224,0.35);
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled {
  background: var(--gray-300);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-secondary {
  padding: 11px 22px;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-secondary:hover { background: var(--gray-200); }

.btn-danger {
  padding: 11px 22px;
  background: var(--danger);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-danger:hover { background: #EF4444; }

.btn-accent-sm {
  padding: 8px 18px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition);
}
.btn-accent-sm:hover { background: var(--primary-dark); }

.auth-switch {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--gray-500);
}

/* ═══════════ HEADER ═══════════ */
#app-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232,229,224,0.5);
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  flex-shrink: 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 16px;
  max-width: 800px;
  margin: 0 auto;
}

.header-left, .header-right {
  width: 90px;
  display: flex;
  align-items: center;
}
.header-right { justify-content: flex-end; }

.header-center {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 800;
}

.header-mascot { font-size: 26px; }

.header-btn {
  padding: 8px 16px;
  background: var(--primary);
  color: var(--white);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: all var(--transition);
  box-shadow: 0 2px 6px rgba(126,140,224,0.25);
}
.header-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

.header-icon-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--gray-500);
  transition: all var(--transition);
}
.header-icon-btn:hover { background: var(--gray-100); color: var(--primary); }

/* ═══════════ VERIFY BANNER ═══════════ */
.verify-banner {
  background: var(--warning-light);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  flex-shrink: 0;
}

.verify-btn {
  padding: 5px 14px;
  background: var(--warning);
  color: var(--gray-800);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  transition: all var(--transition);
}
.verify-btn:hover { transform: translateY(-1px); }

/* ═══════════ PAGES ═══════════ */
.page {
  display: none;
  flex: 1;
  overflow-y: auto;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}
.page.active { display: flex; flex-direction: column; }

/* ═══════════ AI MOOD INDICATOR ═══════════ */
.ai-mood {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--accent-yellow-light);
  flex-shrink: 0;
}
.mood-emoji { font-size: 16px; }

/* ═══════════ CHAT PAGE ═══════════ */
#page-chat {
  position: relative;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-500);
}

.mascot-large {
  font-size: 72px;
  margin-bottom: 16px;
  animation: mascotFloat 3s ease-in-out infinite;
}

.chat-welcome h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.chat-welcome p {
  font-size: 14px;
  max-width: 360px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Quick chips */
.welcome-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.chip {
  padding: 8px 16px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
  border: 1px solid rgba(126,140,224,0.2);
}
.chip:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.chat-bubble {
  max-width: 80%;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  line-height: 1.6;
  word-wrap: break-word;
  position: relative;
  animation: fadeInUp 0.35s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary), var(--accent-lavender));
  color: var(--white);
  border-bottom-right-radius: 6px;
  box-shadow: 0 2px 8px rgba(126,140,224,0.2);
}

.chat-bubble.assistant {
  align-self: flex-start;
  background: var(--white);
  color: var(--gray-800);
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.chat-bubble .bubble-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.chat-bubble.user .bubble-name {
  color: rgba(255,255,255,0.8);
}

.chat-bubble .bubble-time {
  font-size: 11px;
  opacity: 0.5;
  margin-top: 6px;
  text-align: right;
  font-weight: 600;
}

.chat-bubble .bubble-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-bubble .bubble-text .katex-display,
.demo-msg-bubble .katex-display {
  margin: 0.8em 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.chat-bubble .bubble-text .katex,
.demo-msg-bubble .katex {
  font-size: 1.05em;
}

.chat-bubble.assistant .bubble-time {
  text-align: left;
}

.chat-typing {
  align-self: flex-start;
  background: var(--white);
  padding: 14px 22px;
  border-radius: var(--radius-lg);
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 5px;
  animation: fadeInUp 0.3s ease;
  border: 1px solid var(--gray-100);
}

.chat-typing span {
  width: 8px;
  height: 8px;
  background: var(--accent-lavender);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* XP Bar */
.xp-bar {
  padding: 6px 16px;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  flex-shrink: 0;
}
.xp-info {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.xp-level { color: var(--primary); }
.xp-track {
  height: 6px;
  background: var(--gray-100);
  border-radius: 3px;
  overflow: hidden;
}
.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent-lavender));
  border-radius: 3px;
  transition: width 0.5s ease;
}

.chat-input-area {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, var(--bg) 40%);
  padding-top: 28px;
}

.chat-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 6px 6px 6px 18px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--gray-200);
  transition: border-color var(--transition);
}

.chat-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-soft);
}

#chat-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--gray-800);
  background: transparent;
  padding: 8px 0;
  font-weight: 500;
}

#chat-input::placeholder {
  color: var(--gray-400);
}

.chat-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-lavender));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(126,140,224,0.3);
}
.chat-send:hover { transform: scale(1.06); }
.chat-send:active { transform: scale(0.94); }

/* ═══════════ CHAT PHOTO UPLOAD ═══════════ */
.chat-attach-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
.chat-attach-btn:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.image-preview-area {
  position: absolute;
  bottom: 70px;
  left: 16px;
  right: 16px;
  z-index: 10;
}
.image-preview-inner {
  display: inline-flex;
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--primary-light);
}
.image-preview-inner img {
  max-height: 140px;
  max-width: 220px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.image-preview-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--danger);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.image-preview-close:hover { transform: scale(1.15); }

.bubble-image {
  margin: 6px 0;
}
.bubble-image img {
  max-width: 240px;
  max-height: 200px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.bubble-image img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.image-fullscreen-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
  animation: fadeIn 0.2s ease;
}
.image-fullscreen-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

/* ═══════════ DASHBOARD PAGE ═══════════ */
.dashboard-page {
  padding: 16px;
  padding-bottom: 80px;
}

.dash-section {
  margin-bottom: 20px;
}

.dash-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 12px;
}

.dash-children {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.child-card {
  flex: 0 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  min-width: 160px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.child-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.child-card.active { border-color: var(--primary); background: var(--primary-light); }

.child-avatar { font-size: 32px; margin-bottom: 6px; }
.child-name { font-size: 14px; font-weight: 700; color: var(--gray-800); }
.child-grade { font-size: 12px; color: var(--gray-500); }

.btn-add-child {
  margin-top: 10px;
  padding: 10px 20px;
  background: var(--accent-peach-light);
  color: var(--accent-peach);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition);
  border: 2px dashed var(--accent-peach);
  width: 100%;
}
.btn-add-child:hover { background: var(--accent-peach); color: var(--white); }

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-card {
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.stat-card:hover { transform: translateY(-2px); }

.stat-purple { background: var(--primary-light); }
.stat-green { background: var(--accent-mint-light); }
.stat-orange { background: var(--accent-peach-light); }
.stat-pink { background: var(--accent-yellow-light); }

.stat-icon { font-size: 24px; margin-bottom: 6px; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--gray-800); }
.stat-label { font-size: 12px; font-weight: 600; color: var(--gray-500); margin-top: 2px; }

/* Growth card */
.growth-card, .rec-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.growth-empty {
  color: var(--gray-400);
  font-size: 13px;
  text-align: center;
  padding: 12px;
}

.rec-card p {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 12px;
  line-height: 1.5;
}

/* Subscription card */
.sub-card {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-peach-light));
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}
.sub-plan { font-size: 14px; font-weight: 700; color: var(--gray-800); display: block; }
.sub-days { font-size: 12px; color: var(--gray-500); }

/* Referral card */
.ref-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.ref-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.ref-card p { font-size: 13px; color: var(--gray-500); margin-bottom: 12px; }

.ref-link-wrap {
  display: flex;
  gap: 8px;
}
.ref-link {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--gray-500);
  background: var(--gray-50);
  outline: none;
}
.btn-copy {
  padding: 10px 16px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border: none;
}

.ref-copy-msg {
  text-align: center;
  font-size: 14px;
  color: #16a34a;
  font-weight: 600;
  margin-top: 8px;
}
.btn-copy:hover { background: var(--primary-dark); }

/* ═══════════ STUDENTS PAGE ═══════════ */
.students-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.students-empty-img {
  position: relative;
  margin-bottom: 24px;
}

.students-empty h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: 10px;
}

.students-empty p {
  font-size: 14px;
  color: var(--gray-500);
  max-width: 320px;
  line-height: 1.6;
}

.students-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 80px;
}

.student-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--gray-100);
}
.student-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.student-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}

.student-info {
  flex: 1;
  min-width: 0;
}

.student-info .student-card-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--gray-800);
}

.student-info .student-card-subject {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 2px;
}

.student-card .student-status {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 600;
}
.student-status.active {
  background: var(--success-light);
  color: #059669;
}
.student-status.inactive {
  background: var(--danger-light);
  color: #DC2626;
}

/* ═══════════ ACCOUNT PAGE ═══════════ */
.account-page {
  padding: 20px 16px;
  padding-bottom: 80px;
}

.account-header-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-peach-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.account-user-info {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.account-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-800);
}

.account-email {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 2px;
}

.account-role {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 2px;
}

.account-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.badge-start {
  background: var(--gray-100);
  color: var(--gray-600);
}

.badge-upgrade {
  background: linear-gradient(135deg, var(--primary), var(--accent-lavender));
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 6px rgba(126,140,224,0.25);
}
.badge-upgrade:hover { transform: translateY(-1px); }

.badge-promo {
  background: var(--accent-yellow-light);
  color: #B45309;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 700;
}

.badge-bonus {
  background: var(--accent-mint-light);
  color: #059669;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 700;
}

.account-menu {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.account-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.15s ease;
  border-bottom: 1px solid var(--gray-100);
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
}
.account-menu-item:last-child { border-bottom: none; }
.account-menu-item:hover { background: var(--gray-50); }
.account-menu-item.logout { color: var(--danger); }

.menu-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.menu-arrow {
  margin-left: auto;
  font-size: 20px;
  color: var(--gray-400);
  font-weight: 600;
}

.app-version {
  text-align: center;
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 24px;
}

/* ═══════════ SUBSCRIPTION PLANS ═══════════ */
.modal-wide { max-width: 600px; }
.modal-tall .modal-body { max-height: 65vh; overflow-y: auto; }

.modal-subtitle {
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 20px;
  text-align: center;
}

.plan-cards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.plan-card {
  flex: 1 1 150px;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-card.plan-popular {
  border-color: var(--primary);
  background: rgba(139,108,244,0.04);
}

.plan-card.plan-current {
  background: var(--surface);
}

.plan-badge-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.plan-badge-hot { color: #f97316; }
.plan-badge-prem { color: #a855f7; }

.plan-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.plan-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.plan-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-500);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 4px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.plan-features li {
  font-size: 13px;
  color: var(--gray-600);
}

.feat-yes::before { content: '✅ '; }
.feat-no::before  { content: '❌ '; }
.feat-no { opacity: 0.65; }

.btn-plan {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: opacity .2s;
}

.btn-plan:disabled {
  background: var(--gray-200);
  color: var(--gray-500);
  cursor: default;
}

.btn-plan-buy {
  background: var(--primary);
  color: #fff;
}

.btn-plan-buy:hover { opacity: .85; }

/* ═══════════ PROMO ═══════════ */
.promo-input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.promo-input-row input {
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.promo-result {
  margin-top: 12px;
  font-size: 14px;
  min-height: 20px;
  line-height: 1.5;
}

.promo-success { color: #16a34a; }
.promo-error   { color: #dc2626; }

/* ═══════════ LICENSES ═══════════ */
.license-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.license-icon { font-size: 24px; }

.license-info {
  flex: 1;
}

.license-plan {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.license-key {
  font-size: 12px;
  font-family: monospace;
  color: var(--gray-400);
  margin-top: 2px;
}

.license-status-badge {
  background: #dcfce7;
  color: #16a34a;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.licenses-hint {
  font-size: 13px;
  color: var(--gray-400);
  text-align: center;
  margin-top: 16px;
}

/* ═══════════ REFERRAL ═══════════ */
.referral-hero {
  text-align: center;
  padding: 12px 0 16px;
}

.referral-emoji { font-size: 40px; margin-bottom: 8px; }

.referral-hero h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
}

.referral-hero p {
  font-size: 14px;
  color: var(--gray-500);
  margin: 0;
}

.referral-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.referral-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--gray-700);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.referral-stats {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.ref-stat {
  flex: 1;
  text-align: center;
  background: var(--surface);
  border-radius: 12px;
  padding: 14px;
}

.ref-stat-val {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.ref-stat-label {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ═══════════ FAQ ═══════════ */
.faq-body { padding-top: 4px; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  gap: 12px;
  user-select: none;
}

.faq-arrow {
  font-size: 20px;
  color: var(--gray-400);
  transition: transform .25s;
  flex-shrink: 0;
}

.faq-item.faq-open .faq-arrow {
  transform: rotate(90deg);
}

.faq-answer {
  display: none;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  padding-bottom: 14px;
}

.faq-item.faq-open .faq-answer { display: block; }

/* ═══════════ TERMS ═══════════ */
.terms-updated {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.terms-body h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 6px;
  color: var(--text);
}

.terms-body h4:first-of-type { margin-top: 4px; }

.terms-body p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

/* ═══════════ BOTTOM NAV ═══════════ */
.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(232,229,224,0.5);
  height: var(--nav-height);
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 50;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 16px;
  cursor: pointer;
  color: var(--gray-400);
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.nav-item span { font-size: 11px; font-weight: 700; }
.nav-item:hover { color: var(--gray-600); }
.nav-item.active { color: var(--primary); }
.nav-item.active svg { stroke: var(--primary); }

/* ═══════════ MODALS ═══════════ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(41,37,36,0.35);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.25s ease;
  padding: 16px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.35s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--gray-100);
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 700;
}

.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--gray-500);
  transition: all var(--transition);
}
.modal-close:hover { background: var(--gray-100); }

.modal-body {
  padding: 22px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--gray-100);
}

.modal-footer .btn-primary {
  width: auto;
  padding: 11px 28px;
}

/* ═══════════ SCROLLBAR ═══════════ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ═══════════ LOADING ═══════════ */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 768px) {
  .hero-inner { flex-direction: column; text-align: center; gap: 24px; }
  .hero-text h1 { font-size: 30px; }
  .hero-sub { max-width: 100%; }
  .hero-selectors { justify-content: center; flex-wrap: wrap; }
  .hero-visual { display: flex; justify-content: center; }
  .hero-mascot-wrap { width: 180px; height: 180px; }
  .hero-mascot { font-size: 80px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .calc-inputs { flex-direction: column; }
}

@media (max-width: 480px) {
  .auth-container { padding: 28px 20px; margin: 12px; }
  .chat-bubble { max-width: 88%; }
  .modal { margin: 12px; }
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 16px 24px; }
  .hero-text h1 { font-size: 26px; }
  .landing-nav-btns .btn-ghost { display: none; }
  .hero-select { font-size: 13px; padding: 10px 12px; }
}

/* ═══════════ DETAIL FIELDS ═══════════ */
.detail-field {
  margin-bottom: 14px;
}
.detail-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.detail-field p {
  font-size: 15px;
  color: var(--gray-700);
  margin-top: 4px;
}

/* ═══════════ LANG SELECTOR ═══════════ */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  background: var(--white);
  transition: all var(--transition);
}
.lang-selector:hover { border-color: var(--primary); }
.lang-flag { font-size: 16px; }
