/* ================================================================
   LawCard - Main Stylesheet
   Aesthetic: Legal-premium · Deep navy + gold · Refined & trustworthy
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&family=Noto+Serif+Thai:wght@400;600;700&display=swap');

:root {
  --navy:        #0d2240;
  --navy-mid:    #1a3a5c;
  --navy-light:  #2c5f8a;
  --gold:        #c9a84c;
  --gold-light:  #e8c96e;
  --gold-pale:   #fdf6e3;
  --cream:       #fafaf7;
  --cream-dark:  #f0ede6;
  --text-dark:   #1a1a2e;
  --text-mid:    #4a5568;
  --text-light:  #718096;
  --border:      #ddd8cc;
  --border-light:#eeebe3;
  --white:       #ffffff;
  --red:         #c0392b;
  --green:       #1e7a4e;
  --shadow-sm:   0 1px 3px rgba(13,34,64,.08);
  --shadow-md:   0 4px 16px rgba(13,34,64,.12);
  --shadow-lg:   0 12px 40px rgba(13,34,64,.16);
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   20px;
  --transition:  .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Sarabun', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif { font-family: 'Noto Serif Thai', serif; }
h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

a { color: var(--navy-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

img { max-width: 100%; }

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy-light); }

/* ================================================================
   LAYOUT
   ================================================================ */

.lc-wrap { min-height: 100vh; display: flex; flex-direction: column; }

/* ── Navbar ─────────────────────────────────────────── */
.lc-nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding: 0;
}

.lc-nav .container-fluid { padding: 0 1.5rem; }

.lc-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Noto Serif Thai', serif;
  font-size: 1.35rem; font-weight: 700;
  color: var(--white) !important;
  letter-spacing: .02em;
}

.lc-brand .brand-icon {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--navy);
}

.lc-brand span { color: var(--gold-light); }

.lc-nav .nav-link {
  color: rgba(255,255,255,.8) !important;
  font-size: .9rem; font-weight: 500;
  padding: 1.1rem .9rem !important;
  transition: color var(--transition);
  position: relative;
}

.lc-nav .nav-link:hover,
.lc-nav .nav-link.active {
  color: var(--gold-light) !important;
}

.lc-nav .nav-link.active::after {
  content: '';
  position: absolute; bottom: 0; left: .9rem; right: .9rem;
  height: 2px; background: var(--gold);
}

.lc-nav .badge-due {
  background: var(--gold);
  color: var(--navy);
  font-size: .65rem; font-weight: 700;
  padding: 2px 5px;
  border-radius: 10px;
  vertical-align: super;
  margin-left: 2px;
}

/* Search bar */
.nav-search {
  position: relative; width: 240px;
}
.nav-search input {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  border-radius: 20px;
  padding: .35rem 1rem .35rem 2.2rem;
  font-size: .85rem; width: 100%;
  transition: all var(--transition);
}
.nav-search input::placeholder { color: rgba(255,255,255,.5); }
.nav-search input:focus {
  background: rgba(255,255,255,.18);
  border-color: var(--gold);
  outline: none;
}
.nav-search .search-icon {
  position: absolute; left: .65rem; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.5); font-size: .85rem;
}
.search-results-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 9999; display: none;
  max-height: 360px; overflow-y: auto;
}
.search-results-dropdown.show { display: block; }
.search-result-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer; transition: background var(--transition);
}
.search-result-item:hover { background: var(--cream); }
.search-result-item:last-child { border-bottom: none; }

/* Notification bell */
.notif-btn {
  position: relative;
  background: none; border: none; color: rgba(255,255,255,.7);
  font-size: 1.15rem; cursor: pointer; padding: .4rem;
  transition: color var(--transition);
}
.notif-btn:hover { color: var(--gold-light); }
.notif-badge {
  position: absolute; top: 0; right: 0;
  background: #e74c3c; color: #fff;
  font-size: .55rem; font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ── Sidebar ─────────────────────────────────────────── */
.lc-layout { display: flex; flex: 1; min-height: 0; }

.lc-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  overflow-y: auto;
}

.sidebar-section { margin-bottom: 1.5rem; }
.sidebar-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-light);
  padding: 0 1.25rem; margin-bottom: .5rem;
}

.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: .6rem 1.25rem;
  color: var(--text-mid) !important;
  font-size: .9rem; font-weight: 500;
  transition: all var(--transition);
  border-left: 3px solid transparent;
  text-decoration: none;
}
.sidebar-link:hover {
  color: var(--navy) !important;
  background: var(--cream);
  border-left-color: var(--border);
}
.sidebar-link.active {
  color: var(--navy-light) !important;
  background: rgba(44,95,138,.07);
  border-left-color: var(--gold);
  font-weight: 600;
}
.sidebar-link i { font-size: 1rem; width: 20px; text-align: center; }
.sidebar-link .badge { margin-left: auto; }

/* Category chips in sidebar */
.cat-chip {
  display: flex; align-items: center; gap: 8px;
  padding: .45rem 1.25rem;
  color: var(--text-mid) !important;
  font-size: .82rem;
  transition: all var(--transition);
  text-decoration: none;
  border-left: 3px solid transparent;
}
.cat-chip:hover { color: var(--navy) !important; background: var(--cream); }
.cat-chip .cat-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0;
}

/* ── Main content ─────────────────────────────────────── */
.lc-content {
  flex: 1; min-width: 0;
  padding: 2rem;
  overflow-y: auto;
}

/* ── Footer ───────────────────────────────────────────── */
.lc-footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  font-size: .82rem;
  padding: 1.5rem 2rem;
  border-top: 2px solid rgba(201,168,76,.3);
}
.lc-footer a { color: rgba(255,255,255,.5); }
.lc-footer a:hover { color: var(--gold-light); }

/* ================================================================
   COMPONENTS
   ================================================================ */

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  border-radius: 8px !important;
  font-family: 'Sarabun', sans-serif;
  font-size: .9rem; font-weight: 600;
  padding: .5rem 1.2rem;
  transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-navy {
  background: var(--navy); color: #fff; border: 2px solid var(--navy);
}
.btn-navy:hover { background: var(--navy-mid); color: #fff; }
.btn-gold {
  background: var(--gold); color: var(--navy); border: 2px solid var(--gold);
  font-weight: 700;
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); }
.btn-outline-navy {
  background: transparent; color: var(--navy); border: 2px solid var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: .3rem .8rem !important; font-size: .8rem !important; }
.btn-lg { padding: .75rem 1.8rem !important; font-size: 1rem !important; }
.btn-icon { padding: .45rem .65rem !important; }

/* ── Cards ────────────────────────────────────────────── */
.lc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.lc-card:hover { box-shadow: var(--shadow-md); }
.lc-card-body { padding: 1.5rem; }
.lc-card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--cream);
  border-radius: var(--radius) var(--radius) 0 0;
}

/* Deck card */
.deck-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  display: block; color: inherit;
  text-decoration: none;
}
.deck-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.deck-card-banner {
  height: 8px;
}
.deck-card-body { padding: 1.2rem; }
.deck-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff;
  margin-bottom: .8rem;
}
.deck-card h4 {
  font-size: 1rem; font-weight: 600;
  margin-bottom: .3rem; color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.deck-card .deck-meta { font-size: .78rem; color: var(--text-light); }
.deck-card .deck-progress { margin-top: .8rem; }
.deck-progress-bar {
  height: 4px; background: var(--cream-dark); border-radius: 2px; overflow: hidden;
}
.deck-progress-bar .fill { height: 100%; border-radius: 2px; transition: width .5s ease; }

/* Difficulty badge */
.badge-difficulty {
  font-size: .65rem; padding: 2px 8px; border-radius: 10px;
  font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
}
.badge-beginner    { background: #d4edda; color: #155724; }
.badge-intermediate { background: #fff3cd; color: #856404; }
.badge-advanced    { background: #f8d7da; color: #721c24; }
.badge-bar_exam    { background: var(--navy); color: var(--gold-light); }

/* Card type badge */
.badge-type {
  font-size: .65rem; padding: 2px 7px; border-radius: 6px; font-weight: 600;
}
.badge-definition  { background: #e8f4fd; color: #1a6fa5; }
.badge-article     { background: #fdf3e8; color: #a56a1a; }
.badge-case        { background: #fde8e8; color: #a51a1a; }
.badge-concept     { background: #e8fdf0; color: #1a7a45; }
.badge-comparison  { background: #ede8fd; color: #5a1aa5; }

/* ── Stats cards ──────────────────────────────────────── */
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.stat-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.stat-icon.navy   { background: rgba(13,34,64,.1);   color: var(--navy); }
.stat-icon.gold   { background: rgba(201,168,76,.15); color: var(--gold); }
.stat-icon.green  { background: rgba(30,122,78,.1);  color: var(--green); }
.stat-icon.red    { background: rgba(192,57,43,.1);  color: var(--red); }
.stat-value { font-size: 1.8rem; font-weight: 700; line-height: 1.1; color: var(--navy); }
.stat-label { font-size: .82rem; color: var(--text-light); margin-top: 2px; }

/* ── Streak tracker ───────────────────────────────────── */
.streak-display {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1rem; font-weight: 600; color: var(--gold);
}
.streak-display .flame { font-size: 1.3rem; }

/* ── Form elements ────────────────────────────────────── */
.form-label {
  font-size: .85rem; font-weight: 600;
  color: var(--text-mid); margin-bottom: .4rem;
}
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Sarabun', sans-serif;
  font-size: .9rem;
  padding: .6rem .9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.form-control:focus, .form-select:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(44,95,138,.15);
  outline: none;
}
.form-control.is-invalid { border-color: var(--red); }
.form-text { font-size: .78rem; color: var(--text-light); margin-top: .25rem; }

/* Color picker row */
.color-options { display: flex; gap: 8px; flex-wrap: wrap; }
.color-swatch {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer; transition: transform var(--transition), border-color var(--transition);
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.selected { border-color: var(--text-dark); transform: scale(1.15); }

/* ── Alert / Flash ────────────────────────────────────── */
.lc-alert {
  border-radius: var(--radius-sm);
  padding: .8rem 1.2rem;
  font-size: .88rem;
  border-left: 4px solid;
  display: flex; align-items: flex-start; gap: 10px;
}
.lc-alert.success { background: #f0faf5; border-color: var(--green); color: #155724; }
.lc-alert.error   { background: #fdf0f0; border-color: var(--red);   color: #721c24; }
.lc-alert.warning { background: #fffbee; border-color: var(--gold);  color: #856404; }
.lc-alert.info    { background: #eff6ff; border-color: var(--navy-light); color: #1a3a5c; }

/* ── Page header ──────────────────────────────────────── */
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}
.page-header h1 { font-size: 1.7rem; margin-bottom: .25rem; }
.page-header p  { color: var(--text-light); margin: 0; }
.breadcrumb {
  font-size: .8rem; margin-bottom: .5rem;
  padding: 0; background: none;
}
.breadcrumb-item a { color: var(--text-light); }
.breadcrumb-item.active { color: var(--text-mid); }
.breadcrumb-item+.breadcrumb-item::before { color: var(--border); }

/* ── Tables ───────────────────────────────────────────── */
.lc-table { width: 100%; border-collapse: collapse; }
.lc-table th {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-light);
  background: var(--cream); padding: .75rem 1rem;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.lc-table td {
  padding: .85rem 1rem; border-bottom: 1px solid var(--border-light);
  font-size: .88rem;
}
.lc-table tr:last-child td { border-bottom: none; }
.lc-table tr:hover td { background: var(--cream); }

/* ── Tabs ─────────────────────────────────────────────── */
.lc-tabs { border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; display: flex; gap: 0; }
.lc-tab {
  padding: .65rem 1.2rem;
  font-size: .88rem; font-weight: 600;
  color: var(--text-light); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all var(--transition); background: none; border-top: none; border-left: none; border-right: none;
}
.lc-tab:hover { color: var(--navy); }
.lc-tab.active { color: var(--navy-light); border-bottom-color: var(--gold); }

/* ── Empty state ─────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 4rem 2rem;
  color: var(--text-light);
}
.empty-state .empty-icon {
  font-size: 3.5rem; margin-bottom: 1rem;
  opacity: .4;
}
.empty-state h4 { color: var(--text-mid); margin-bottom: .5rem; }

/* ── Toast ───────────────────────────────────────────── */
.lc-toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  display: flex; flex-direction: column; gap: .5rem;
}
.lc-toast {
  background: var(--navy); color: #fff;
  border-radius: var(--radius-sm);
  padding: .75rem 1.25rem;
  font-size: .88rem;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  max-width: 320px;
  animation: slideInRight .3s ease;
}
.lc-toast.success { background: var(--green); }
.lc-toast.error   { background: var(--red); }
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ================================================================
   FLASHCARD STUDY UI
   ================================================================ */

.study-wrap {
  min-height: 100vh;
  background: var(--navy);
  display: flex; flex-direction: column;
}

.study-topbar {
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding: 1rem 2rem;
  display: flex; align-items: center; gap: 1.5rem;
}

.study-progress-track {
  flex: 1; height: 6px;
  background: rgba(255,255,255,.15);
  border-radius: 3px; overflow: hidden;
}
.study-progress-fill {
  height: 100%; background: var(--gold);
  border-radius: 3px; transition: width .4s ease;
}

.study-counter { color: rgba(255,255,255,.7); font-size: .88rem; white-space: nowrap; }

.study-main {
  flex: 1; display: flex;
  align-items: center; justify-content: center;
  padding: 2rem;
}

/* Flip card */
.flip-scene {
  width: 680px; max-width: 100%;
  perspective: 1200px;
}

.flip-card {
  width: 100%; min-height: 380px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
}

.flip-card.flipped { transform: rotateY(180deg); }

.flip-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 2.5rem;
  min-height: 380px;
}

.flip-front {
  background: var(--white);
  border-top: 5px solid var(--gold);
}

.flip-back {
  background: var(--navy-mid);
  border-top: 5px solid var(--navy-light);
  transform: rotateY(180deg);
  color: var(--white);
}

.flip-face-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 1.2rem;
  opacity: .5;
}

.flip-front .flip-face-label { color: var(--text-light); }
.flip-back  .flip-face-label { color: rgba(255,255,255,.6); }

.flip-question {
  font-size: 1.4rem; font-weight: 600;
  color: var(--navy); line-height: 1.5; text-align: center;
}

.flip-answer {
  font-size: 1.05rem; line-height: 1.7;
  color: rgba(255,255,255,.9); text-align: center;
}

.flip-law-ref {
  margin-top: 1rem;
  padding: .6rem 1rem;
  background: rgba(201,168,76,.15);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: var(--radius-sm);
  font-size: .82rem; color: var(--gold-light);
  text-align: center;
}

.flip-hint {
  margin-top: .8rem;
  font-size: .82rem; color: rgba(255,255,255,.5);
  text-align: center; font-style: italic;
}

.flip-example {
  margin-top: 1rem;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-sm);
  font-size: .82rem; color: rgba(255,255,255,.7);
  border-left: 3px solid var(--gold);
}

.flip-hint-btn {
  position: absolute; bottom: 1.2rem; right: 1.5rem;
  background: none; border: 1px solid var(--border);
  border-radius: 20px; padding: .2rem .7rem;
  font-size: .75rem; color: var(--text-light);
  cursor: pointer; transition: all var(--transition);
}
.flip-hint-btn:hover { border-color: var(--gold); color: var(--gold); }

/* SRS Answer buttons */
.srs-buttons {
  display: flex; gap: .75rem;
  justify-content: center; margin-top: 1.5rem;
  flex-wrap: wrap;
}

.srs-btn {
  flex: 1; max-width: 160px;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid;
  font-family: 'Sarabun', sans-serif;
  font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  display: flex; flex-direction: column;
  align-items: center; gap: 2px;
}
.srs-btn span { font-size: .7rem; font-weight: 400; opacity: .8; }

.srs-again { background: rgba(192,57,43,.15); border-color: #c0392b; color: #e74c3c; }
.srs-again:hover { background: #c0392b; color: #fff; }
.srs-hard  { background: rgba(230,126,34,.15); border-color: #e67e22; color: #e67e22; }
.srs-hard:hover  { background: #e67e22; color: #fff; }
.srs-good  { background: rgba(44,95,138,.2);  border-color: var(--navy-light); color: var(--gold-light); }
.srs-good:hover  { background: var(--navy-light); color: #fff; }
.srs-easy  { background: rgba(30,122,78,.15); border-color: var(--green); color: #2ecc71; }
.srs-easy:hover  { background: var(--green); color: #fff; }

/* Study keyboard shortcuts hint */
.keyboard-hint {
  text-align: center; margin-top: 1rem;
  font-size: .75rem; color: rgba(255,255,255,.3);
}
.kbd {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  padding: 0 5px; font-size: .7rem;
}

/* AI Explain panel */
.ai-panel {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1rem;
  color: rgba(255,255,255,.85);
  font-size: .88rem; line-height: 1.7;
}
.ai-panel-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: .75rem;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold-light);
}

/* ================================================================
   AUTH PAGES
   ================================================================ */

.auth-page {
  min-height: 100vh;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  position: relative; overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 600px 600px at 0% 0%, rgba(201,168,76,.08) 0%, transparent 60%),
    radial-gradient(ellipse 400px 600px at 100% 100%, rgba(44,95,138,.2) 0%, transparent 60%);
}

.auth-container {
  width: 100%; max-width: 440px;
  position: relative; z-index: 1;
}

.auth-logo {
  text-align: center; margin-bottom: 2rem;
}
.auth-logo .logo-mark {
  width: 60px; height: 60px;
  background: var(--gold);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--navy);
  margin: 0 auto 1rem;
}
.auth-logo h1 {
  font-size: 1.8rem; color: var(--white);
}
.auth-logo h1 span { color: var(--gold-light); }
.auth-logo p { color: rgba(255,255,255,.5); font-size: .88rem; }

.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.auth-divider {
  text-align: center; position: relative; margin: 1.2rem 0;
}
.auth-divider::before {
  content: '';
  position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: var(--border);
}
.auth-divider span {
  position: relative;
  background: var(--white);
  padding: 0 1rem;
  font-size: .78rem; color: var(--text-light);
}

/* Password strength */
.password-strength { height: 4px; border-radius: 2px; margin-top: .4rem; transition: all .3s; }
.strength-0 { background: var(--border); width: 0; }
.strength-1 { background: #e74c3c; width: 25%; }
.strength-2 { background: #e67e22; width: 50%; }
.strength-3 { background: #f39c12; width: 75%; }
.strength-4 { background: var(--green); width: 100%; }

/* ================================================================
   PRICING PAGE
   ================================================================ */

.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}
.pricing-card.featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,168,76,.15);
  transform: scale(1.02);
}
.pricing-badge {
  background: var(--gold); color: var(--navy);
  font-size: .7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 10px;
  letter-spacing: .06em;
}
.pricing-price { font-size: 2.5rem; font-weight: 700; color: var(--navy); line-height: 1; }
.pricing-price small { font-size: .9rem; font-weight: 400; color: var(--text-light); }
.pricing-feature {
  display: flex; align-items: center; gap: 8px;
  padding: .4rem 0; font-size: .88rem; color: var(--text-mid);
  border-bottom: 1px solid var(--border-light);
}
.pricing-feature:last-child { border-bottom: none; }
.pricing-feature i { color: var(--gold); font-size: .9rem; width: 18px; }
.pricing-feature.disabled { opacity: .4; text-decoration: line-through; }

/* ================================================================
   STUDY SESSION COMPLETE
   ================================================================ */

.session-complete {
  text-align: center; padding: 3rem 2rem;
}
.session-complete .trophy { font-size: 4rem; margin-bottom: 1rem; }
.confetti-bar {
  display: flex; justify-content: center; gap: 4px; margin-bottom: 1.5rem;
}
.confetti-bar span {
  width: 8px; border-radius: 4px;
  animation: confettiFall .6s ease both;
}
@keyframes confettiFall {
  from { transform: translateY(-20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ================================================================
   CHART AREA
   ================================================================ */

.chart-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.chart-title {
  font-size: .82rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 1rem;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 992px) {
  .lc-sidebar { display: none; }
  .lc-content { padding: 1.25rem; }
  .flip-scene { width: 100%; }
}

@media (max-width: 768px) {
  .lc-nav .nav-search { display: none; }
  .srs-buttons { gap: .5rem; }
  .srs-btn { padding: .6rem .75rem; font-size: .82rem; }
  .pricing-card.featured { transform: none; }
}

@media (max-width: 576px) {
  .auth-card { padding: 1.75rem 1.25rem; }
  .flip-face { padding: 1.75rem; }
  .flip-question { font-size: 1.2rem; }
}
