/* ============================================================
   Exam Prep PWA — styles.css
   Mobile-first, lavender / purple design system
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #FFFFFF;
  --bg-soft:     #F9F7FF;
  --purple:      #C99BFF;
  --purple-dark: #7C3AED;
  --purple-mid:  #A96AE8;
  --lavender:    #E4C1FF;
  --lavender-soft: #F0E6FF;
  --card-bg:     #F3F2F7;
  --text:        #1F2933;
  --text-sec:    #6B7280;
  --accent:      #A96AE8;
  --green:       #60C783;
  --orange:      #F4B15D;
  --red:         #EF4444;
  --dark-btn:    #111827;
  --radius-lg:   20px;
  --radius-md:   14px;
  --radius-sm:   10px;
  --radius-pill: 50px;
  --shadow:      0 2px 12px rgba(124,58,237,.10);
  --shadow-md:   0 4px 20px rgba(124,58,237,.15);
  --nav-h:       68px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); color: var(--text); font-family: -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.5; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

/* ── App Shell ─────────────────────────────────────────────── */
#app { display: flex; flex-direction: column; height: 100vh; max-width: 480px; margin: 0 auto; position: relative; overflow: hidden; background: var(--bg); }
#view { flex: 1; overflow-y: auto; padding-bottom: calc(var(--nav-h) + 8px); }
#view.no-nav { padding-bottom: 0; }
#view::-webkit-scrollbar { display: none; }

/* ── Bottom Navigation ─────────────────────────────────────── */
#bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  height: var(--nav-h);
  background: #fff;
  border-top: 1px solid #F0E6FF;
  display: flex; align-items: center; justify-content: space-around;
  z-index: 100;
  box-shadow: 0 -2px 16px rgba(124,58,237,.08);
}
.nav-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  flex: 1; padding: 8px 0; color: var(--text-sec); font-size: 11px; transition: color .2s;
}
.nav-btn.active { color: var(--purple-dark); }
.nav-btn svg { width: 22px; height: 22px; }
.nav-center-wrap { flex: 1; display: flex; justify-content: center; align-items: center; }
.nav-center-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--dark-btn);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(17,24,39,.35);
  position: relative; margin-top: -20px;
}
.nav-center-btn svg { width: 26px; height: 26px; }
.nav-center-ring {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--purple);
  border-right-color: var(--purple);
  animation: none;
}

/* ── Screen container ──────────────────────────────────────── */
.screen { padding: 0 0 16px; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Top Bar ───────────────────────────────────────────────── */
.top-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 8px;
  position: sticky; top: 0; background: var(--bg); z-index: 50;
}
.top-bar h2 { font-size: 18px; font-weight: 700; }
.top-bar-icons { display: flex; gap: 8px; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--card-bg); display: flex; align-items: center; justify-content: center; color: var(--text-sec); }
.back-btn { display: flex; align-items: center; gap: 6px; color: var(--purple-dark); font-weight: 600; font-size: 15px; }

/* ── Cards / Surfaces ──────────────────────────────────────── */
.card { background: var(--card-bg); border-radius: var(--radius-lg); padding: 18px; }
.card-purple { background: linear-gradient(135deg, #C99BFF 0%, #9B59F5 100%); color: #fff; }
.card-lavender { background: var(--lavender-soft); }
.shadow { box-shadow: var(--shadow); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: var(--radius-pill); font-weight: 600; font-size: 15px; padding: 12px 24px; transition: opacity .15s, transform .1s; }
.btn:active { transform: scale(.97); opacity: .9; }
.btn-primary { background: var(--purple-dark); color: #fff; }
.btn-secondary { background: var(--lavender-soft); color: var(--purple-dark); }
.btn-ghost { background: transparent; color: var(--purple-dark); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 17px; width: 100%; }
.btn-block { width: 100%; }

/* ── Inputs ────────────────────────────────────────────────── */
.input-group { margin-bottom: 14px; }
.input-group label { display: block; font-size: 13px; color: var(--text-sec); margin-bottom: 4px; font-weight: 500; }
.input, textarea.input, select.input {
  width: 100%; padding: 12px 16px; border: 1.5px solid #E5E7EB;
  border-radius: var(--radius-md); background: var(--bg);
  font-size: 15px; transition: border-color .2s; outline: none;
}
.input:focus { border-color: var(--purple); }
textarea.input { resize: vertical; min-height: 80px; }

/* ── Tags ──────────────────────────────────────────────────── */
.tag { display: inline-flex; align-items: center; background: var(--lavender-soft); color: var(--purple-dark); border-radius: var(--radius-pill); padding: 3px 10px; font-size: 12px; font-weight: 600; }

/* ── Section heading ───────────────────────────────────────── */
.section-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 8px; }
.section-header h3 { font-size: 17px; font-weight: 700; }
.section-header a, .section-link { color: var(--accent); font-size: 14px; font-weight: 500; }

/* ── Toast ─────────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: calc(var(--nav-h) + 16px); left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--dark-btn); color: #fff;
  padding: 10px 22px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 500; opacity: 0;
  transition: opacity .3s, transform .3s; z-index: 1000; white-space: nowrap;
  pointer-events: none;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Modal ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 500;
  display: flex; align-items: flex-end; justify-content: center;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: var(--bg); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 24px 20px; width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.modal-close { position: absolute; top: 16px; right: 20px; font-size: 22px; color: var(--text-sec); }

/* ── Auth ──────────────────────────────────────────────────── */
#auth-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 32px 24px; }
.auth-logo { font-size: 48px; margin-bottom: 12px; }
.auth-title { font-size: 26px; font-weight: 800; color: var(--purple-dark); margin-bottom: 4px; }
.auth-sub { color: var(--text-sec); margin-bottom: 32px; font-size: 14px; text-align: center; }
.auth-form { width: 100%; max-width: 360px; }
.auth-switch { margin-top: 16px; text-align: center; color: var(--text-sec); font-size: 14px; }
.auth-switch span { color: var(--purple-dark); font-weight: 600; cursor: pointer; }

/* ── HOME ──────────────────────────────────────────────────── */
.home-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 20px 0; }
.home-greeting { font-size: 13px; color: var(--text-sec); }
.home-name { font-size: 20px; font-weight: 800; }
.goal-card { margin: 16px 20px 0; background: linear-gradient(135deg, #7C3AED 0%, #C99BFF 100%); border-radius: var(--radius-lg); padding: 20px; color: #fff; }
.goal-label { font-size: 13px; opacity: .85; }
.goal-count { font-size: 32px; font-weight: 800; margin: 4px 0; }
.goal-sub { font-size: 13px; opacity: .8; }
.goal-link { font-size: 13px; color: #E4C1FF; margin-top: 8px; display: inline-block; }

/* Weekly calendar */
.weekly-row { display: flex; gap: 6px; padding: 16px 20px 0; overflow-x: auto; }
.weekly-row::-webkit-scrollbar { display: none; }
.day-cell {
  flex: 1; min-width: 38px; display: flex; flex-direction: column; align-items: center;
  gap: 4px; background: var(--card-bg); border-radius: var(--radius-md); padding: 10px 4px;
  font-size: 11px; color: var(--text-sec);
}
.day-cell.today { background: var(--lavender-soft); color: var(--purple-dark); font-weight: 700; }
.day-cell.done .day-dot { background: var(--purple); }
.day-dot { width: 6px; height: 6px; border-radius: 50%; background: #E5E7EB; }
.day-label { font-weight: 600; }

/* Promo card */
.promo-card { margin: 16px 20px 0; background: var(--lavender-soft); border-radius: var(--radius-lg); padding: 18px; display: flex; align-items: center; gap: 12px; }
.promo-text { flex: 1; }
.promo-text h4 { font-size: 15px; font-weight: 700; color: var(--purple-dark); }
.promo-text p { font-size: 12px; color: var(--text-sec); margin: 2px 0 10px; }
.promo-close { color: var(--text-sec); font-size: 18px; padding: 4px; }

/* Progress section */
.progress-card { margin: 0 20px; background: var(--card-bg); border-radius: var(--radius-lg); padding: 16px; }
.progress-label { font-size: 13px; color: var(--text-sec); margin-bottom: 4px; }
.progress-bar-wrap { background: #E5E7EB; border-radius: 99px; height: 6px; overflow: hidden; margin: 8px 0; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--purple-dark), var(--purple)); border-radius: 99px; transition: width .5s ease; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 20px 0; }
.stat-cell { background: var(--card-bg); border-radius: var(--radius-md); padding: 14px; }
.stat-cell .stat-val { font-size: 24px; font-weight: 800; color: var(--purple-dark); }
.stat-cell .stat-name { font-size: 12px; color: var(--text-sec); margin-top: 2px; }

/* ── DECKS ─────────────────────────────────────────────────── */
.deck-grid { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.deck-card {
  background: var(--card-bg); border-radius: var(--radius-lg);
  padding: 16px 18px; display: flex; align-items: center; gap: 14px;
  transition: background .2s;
}
.deck-card.active { background: var(--lavender-soft); border: 2px solid var(--purple); }
.deck-icon { font-size: 32px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); background: #fff; }
.deck-info { flex: 1; }
.deck-name { font-size: 16px; font-weight: 700; }
.deck-meta { font-size: 12px; color: var(--text-sec); margin-top: 2px; }
.deck-actions { display: flex; gap: 6px; }

/* Subject cards */
.subject-list { padding: 0 16px; display: flex; flex-direction: column; gap: 8px; }
.subject-row { background: var(--card-bg); border-radius: var(--radius-md); padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.subject-name { flex: 1; font-weight: 600; font-size: 15px; }
.subject-count { font-size: 12px; color: var(--text-sec); }

/* ── CARD LIBRARY ──────────────────────────────────────────── */
.card-list { padding: 0 16px; display: flex; flex-direction: column; gap: 8px; }
.card-row { background: var(--card-bg); border-radius: var(--radius-md); padding: 14px 16px; }
.card-front { font-weight: 600; font-size: 15px; }
.card-trans { font-size: 13px; color: var(--accent); margin-top: 2px; }
.card-back { font-size: 13px; color: var(--text-sec); margin-top: 4px; }
.card-row-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.status-badge { display: inline-flex; align-items: center; background: var(--lavender-soft); color: var(--purple-dark); border-radius: var(--radius-pill); padding: 2px 10px; font-size: 11px; font-weight: 600; }
.status-badge.new    { background: #F3F4F6; color: var(--text-sec); }
.status-badge.learning { background: #FEF3C7; color: #D97706; }
.status-badge.familiar { background: #D1FAE5; color: #059669; }
.status-badge.mastered { background: #E0F2FE; color: #0284C7; }
.status-badge.weak  { background: #FEE2E2; color: #DC2626; }

/* ── FLASHCARD REVIEW ──────────────────────────────────────── */
#review-screen { display: flex; flex-direction: column; height: 100vh; background: var(--bg-soft); }
.review-progress-bar { height: 4px; background: var(--lavender-soft); }
.review-progress-fill { height: 100%; background: var(--purple); transition: width .3s; }
.review-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.review-counter { font-size: 14px; color: var(--text-sec); font-weight: 600; }
.flashcard-area { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px; }
.flashcard-wrap { width: 100%; max-width: 360px; perspective: 1000px; }
.flashcard {
  width: 100%; min-height: 260px; position: relative;
  transform-style: preserve-3d; transition: transform .45s ease;
  cursor: pointer;
}
.flashcard.flipped { transform: rotateY(180deg); }
.card-face {
  position: absolute; inset: 0;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 28px 24px;
  backface-visibility: hidden; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.card-face.back { transform: rotateY(180deg); align-items: flex-start; justify-content: flex-start; overflow-y: auto; }
.card-face-hint { font-size: 12px; color: var(--text-sec); margin-bottom: 12px; }
.card-face-main { font-size: 24px; font-weight: 700; text-align: center; line-height: 1.4; }
.card-face-trans { font-size: 16px; color: var(--accent); margin-top: 6px; text-align: center; }
.card-face-section { width: 100%; margin-top: 12px; }
.card-face-section-label { font-size: 11px; color: var(--text-sec); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.card-face-section p { font-size: 14px; color: var(--text); line-height: 1.5; }
.review-rating { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; padding: 12px 16px 20px; }
.rating-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 6px; border-radius: var(--radius-md); font-size: 12px; font-weight: 700;
  transition: transform .1s;
}
.rating-btn:active { transform: scale(.95); }
.rating-btn.forgot  { background: #FEE2E2; color: #DC2626; }
.rating-btn.hard    { background: #FEF3C7; color: #D97706; }
.rating-btn.good    { background: #D1FAE5; color: #059669; }
.rating-btn.easy    { background: #DBEAFE; color: #2563EB; }
.rating-btn .emoji  { font-size: 20px; }
.review-actions { display: flex; gap: 8px; padding: 0 16px 8px; }
.review-actions button { flex: 1; background: var(--card-bg); border-radius: var(--radius-sm); padding: 8px; font-size: 12px; color: var(--text-sec); font-weight: 500; }

/* ── QUIZ / EXAM ───────────────────────────────────────────── */
#quiz-screen, #exam-screen { display: flex; flex-direction: column; min-height: 100vh; }
.quiz-header { padding: 14px 20px; }
.quiz-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.quiz-counter { font-size: 14px; font-weight: 700; color: var(--text-sec); }
.quiz-timer { font-size: 16px; font-weight: 800; color: var(--red); }
.quiz-progress-bar { height: 4px; background: var(--card-bg); border-radius: 99px; overflow: hidden; }
.quiz-progress-fill { height: 100%; background: var(--purple); transition: width .3s; }
.question-card { margin: 0 16px 16px; background: #fff; border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.question-text { font-size: 16px; font-weight: 600; line-height: 1.6; }
.question-trans { font-size: 13px; color: var(--accent); margin-top: 6px; line-height: 1.5; }
.options-list { padding: 0 16px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.option-btn {
  display: flex; align-items: center; gap: 12px;
  background: var(--card-bg); border-radius: var(--radius-md);
  padding: 14px 16px; text-align: left; width: 100%;
  transition: background .15s; font-size: 15px;
}
.option-btn:active { transform: scale(.99); }
.option-letter {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: #E5E7EB; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.option-btn.selected { background: var(--lavender-soft); }
.option-btn.selected .option-letter { background: var(--purple); color: #fff; }
.option-btn.correct { background: #D1FAE5; }
.option-btn.correct .option-letter { background: var(--green); color: #fff; }
.option-btn.wrong { background: #FEE2E2; }
.option-btn.wrong .option-letter { background: var(--red); color: #fff; }
.option-text { flex: 1; }
.option-trans { font-size: 12px; color: var(--text-sec); margin-top: 2px; }
.explanation-box { margin: 0 16px 16px; background: var(--lavender-soft); border-radius: var(--radius-md); padding: 14px 16px; }
.explanation-box h4 { font-size: 13px; font-weight: 700; color: var(--purple-dark); margin-bottom: 6px; }
.explanation-box p { font-size: 13px; line-height: 1.6; color: var(--text); }
.quiz-btn-row { padding: 0 16px 24px; display: flex; gap: 10px; }
.toggle-trans-btn { width: 100%; background: var(--card-bg); border-radius: var(--radius-pill); padding: 10px; font-size: 13px; font-weight: 600; color: var(--accent); margin: 0 16px 10px; }

/* ── RESULT ────────────────────────────────────────────────── */
.result-screen { padding: 32px 20px; text-align: center; }
.result-emoji { font-size: 64px; margin-bottom: 16px; }
.result-score { font-size: 56px; font-weight: 900; color: var(--purple-dark); }
.result-label { font-size: 16px; color: var(--text-sec); margin-bottom: 24px; }
.result-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.result-stat { background: var(--card-bg); border-radius: var(--radius-md); padding: 14px 8px; }
.result-stat .val { font-size: 22px; font-weight: 800; color: var(--text); }
.result-stat .lbl { font-size: 11px; color: var(--text-sec); margin-top: 2px; }

/* ── WRONG BOOK ────────────────────────────────────────────── */
.wrong-item { margin: 0 16px 10px; background: var(--card-bg); border-radius: var(--radius-lg); padding: 16px; }
.wrong-q { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.wrong-answers { display: flex; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.wrong-ans { color: var(--red); font-weight: 600; }
.correct-ans { color: var(--green); font-weight: 600; }
.wrong-count-badge { background: #FEE2E2; color: var(--red); border-radius: var(--radius-pill); padding: 2px 10px; font-size: 12px; font-weight: 700; }

/* ── IMPORT ────────────────────────────────────────────────── */
.import-tabs { display: flex; margin: 0 16px 12px; background: var(--card-bg); border-radius: var(--radius-md); padding: 4px; }
.import-tab { flex: 1; padding: 8px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--text-sec); transition: background .2s; text-align: center; }
.import-tab.active { background: var(--bg); color: var(--purple-dark); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.import-box { margin: 0 16px; }
.import-result { margin: 12px 16px; padding: 12px 16px; background: var(--card-bg); border-radius: var(--radius-md); font-size: 13px; }
.import-result .ok { color: var(--green); font-weight: 700; }
.import-result .err { color: var(--red); font-weight: 700; }

/* ── STATS ─────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; margin-bottom: 12px; }
.stats-cell { background: var(--card-bg); border-radius: var(--radius-lg); padding: 16px; }
.stats-cell .val { font-size: 28px; font-weight: 800; color: var(--purple-dark); }
.stats-cell .lbl { font-size: 12px; color: var(--text-sec); margin-top: 2px; }
.accuracy-list { padding: 0 16px; display: flex; flex-direction: column; gap: 8px; }
.accuracy-row { background: var(--card-bg); border-radius: var(--radius-md); padding: 12px 14px; }
.accuracy-name { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.accuracy-bar-row { display: flex; align-items: center; gap: 8px; }
.accuracy-bar-wrap { flex: 1; background: #E5E7EB; border-radius: 99px; height: 6px; overflow: hidden; }
.accuracy-bar-fill { height: 100%; background: var(--purple); border-radius: 99px; }
.accuracy-pct { font-size: 13px; font-weight: 700; color: var(--purple-dark); min-width: 38px; text-align: right; }

/* ── NOTES ─────────────────────────────────────────────────── */
.note-item { margin: 0 16px 10px; background: var(--card-bg); border-radius: var(--radius-lg); padding: 16px; }
.note-keyword { font-size: 17px; font-weight: 700; color: var(--purple-dark); }
.note-meaning { font-size: 14px; color: var(--accent); margin: 2px 0 6px; }
.note-body { font-size: 13px; color: var(--text); line-height: 1.6; }

/* ── ACCOUNT ───────────────────────────────────────────────── */
.account-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--lavender-soft); display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 24px auto 8px; }
.account-email { text-align: center; font-size: 15px; color: var(--text-sec); margin-bottom: 24px; }
.account-menu { padding: 0 16px; display: flex; flex-direction: column; gap: 8px; }
.account-row { display: flex; align-items: center; gap: 12px; background: var(--card-bg); border-radius: var(--radius-md); padding: 14px 16px; }
.account-row span { flex: 1; font-size: 15px; font-weight: 500; }
.account-row .chevron { color: var(--text-sec); font-size: 18px; }

/* ── SHARING ───────────────────────────────────────────────── */
.share-member { display: flex; align-items: center; gap: 10px; background: var(--card-bg); border-radius: var(--radius-md); padding: 12px 14px; margin-bottom: 8px; }
.share-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--lavender-soft); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.share-info { flex: 1; }
.share-email { font-size: 14px; font-weight: 600; }
.share-role { font-size: 12px; color: var(--accent); }

/* ── QUIZ SETUP ────────────────────────────────────────────── */
.setup-options { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.setup-option { background: var(--card-bg); border-radius: var(--radius-lg); padding: 18px; display: flex; align-items: center; gap: 14px; }
.setup-option-icon { font-size: 28px; }
.setup-option-info { flex: 1; }
.setup-option-name { font-size: 16px; font-weight: 700; }
.setup-option-desc { font-size: 12px; color: var(--text-sec); margin-top: 2px; }
.setup-option-arrow { color: var(--text-sec); font-size: 20px; }

/* ── AI placeholder ────────────────────────────────────────── */
.ai-bar { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 16px; }
.ai-btn { background: var(--lavender-soft); color: var(--purple-dark); border-radius: var(--radius-pill); padding: 7px 14px; font-size: 12px; font-weight: 600; }
.ai-note { margin: 0 16px 8px; background: #FEF3C7; border-radius: var(--radius-md); padding: 10px 14px; font-size: 12px; color: #92400E; }

/* ── Utilities ─────────────────────────────────────────────── */
.hidden { display: none !important; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.px-16 { padding-left: 16px; padding-right: 16px; }
.text-center { text-align: center; }
.text-sec { color: var(--text-sec); }
.text-sm { font-size: 13px; }
.text-purple { color: var(--purple-dark); }
.bold { font-weight: 700; }
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-sec); }
.empty-state .emoji { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 15px; }
.divider { height: 1px; background: var(--card-bg); margin: 12px 16px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.loading { text-align: center; padding: 40px; color: var(--text-sec); }

/* ── Responsive (tablet+) ──────────────────────────────────── */
@media (min-width: 600px) {
  #app { box-shadow: 0 0 40px rgba(0,0,0,.08); }
}
