/* Lakshya Punjab Official PSSSB Typing Portal — v2 */
:root {
  --primary: #172554;
  --primary-mid: #3730A3;
  --accent-indigo: #4F46E5;
  --accent-pink: #DB2777;
  --accent-pink-soft: #FDF2F8;
  --accent-indigo-soft: #EEF2FF;
  --gold: #D97706;
  --gold-soft: #FFFBEB;
  --bg: #F6F8FC;
  --surface: #FFFFFF;
  --ref-bg: #FFFDF5;
  --ref-border: #E5D8A5;
  --typing-bg: #F8FAFF;
  --border: #DCE3F0;
  --text: #0F172A;
  --muted: #52607A;
  --green-bg: #ECFDF5;
  --green: #047857;
  --red-bg: #FEF2F2;
  --red: #B91C1C;
  --amber-bg: #FFFBEB;
  --amber: #B45309;
  --purple-bg: #F5F3FF;
  --purple: #6D28D9;
  --blue-bg: #EFF6FF;
  --blue: #1D4ED8;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(23, 37, 84, 0.06);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.pa-font {
  font-family: 'Raavi', 'Noto Sans Gurmukhi', 'AnmolLipi', sans-serif !important;
  line-height: 1.85;
}

/* Header */
.lp-header {
  background: linear-gradient(135deg, var(--primary) 0%, #241F6B 60%, #4A154B 100%);
  color: #fff;
  border-bottom: 3px solid var(--accent-pink);
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: 0 3px 14px rgba(15, 23, 42, 0.16);
}
.lp-header-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 11px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.brand-logo {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 11px;
  background: #FFFFFF;
  object-fit: contain;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
}
.brand-title {
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1.15;
}
.brand-title span { color: #F472B6; }
.brand-sub {
  font-size: 0.77rem;
  color: #E2E8F0;
  font-weight: 500;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  line-height: 1 !important;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
  padding: 0 13px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.16s ease;
}
.nav-btn:hover {
  background: rgba(255,255,255,0.22);
  border-color: #F472B6;
}
.nav-btn.pink {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
  color: #fff;
}
.nav-btn.pink:hover { background: #BE185D; }

/* Main Container */
.container {
  max-width: 1260px;
  width: 100%;
  margin: 20px auto;
  padding: 0 20px;
  flex: 1;
}

/* Mode Bar */
.mode-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--surface);
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.mode-tab {
  flex: 1 1 155px;
  background: var(--accent-indigo-soft);
  color: var(--primary);
  border: 1.5px solid transparent;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.16s;
}
.mode-tab:hover { background: #E0E7FF; }
.mode-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--accent-pink);
  box-shadow: 0 3px 10px rgba(23,37,84,0.22);
}
.mode-tab small {
  display: block;
  font-size: 0.71rem;
  font-weight: 500;
  opacity: 0.88;
  margin-top: 2px;
}

/* Official Banner */
.info-banner {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFF 100%);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent-pink);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow);
}
.info-banner h2 {
  color: var(--primary);
  font-size: 1.12rem;
  margin-bottom: 8px;
}
.rules-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(295px, 1fr));
  gap: 6px 18px;
  font-size: 0.85rem;
  color: #334155;
}
.rules-list li::before {
  content: "▸ ";
  color: var(--accent-pink);
  font-weight: 900;
}
.rules-list .highlight-pink { color: var(--accent-pink); font-weight: 700; }

.candidate-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 240px;
}
.candidate-box label {
  display: block;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.candidate-box input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}
.candidate-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
}
.candidate-stats strong { color: var(--primary); }

/* Library Card */
.library-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.library-controls {
  padding: 15px 20px;
  background: #F9FAFF;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.lang-switch {
  display: inline-flex;
  background: var(--accent-indigo-soft);
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  line-height: 1 !important;
  border: none;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0 16px;
  border-radius: 7px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.16s;
}
.lang-btn.active {
  background: var(--primary);
  color: #fff;
}

/* Difficulty Filter Pills */
.diff-switch {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.diff-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
}
.diff-btn.active {
  background: var(--accent-pink);
  color: #fff;
  border-color: var(--accent-pink);
}

.filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.search-input, .select-input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.86rem;
  background: #fff;
  color: var(--text);
}
.search-input { min-width: 210px; }

/* Range Jump Pills */
.range-bar {
  padding: 10px 20px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.range-pill {
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #F8FAFC;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.range-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Test Grid */
.tests-grid {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 12px;
}
.test-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  background: #fff;
  cursor: pointer;
  transition: all 0.16s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}
.test-item:hover {
  border-color: var(--accent-indigo);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(23,37,84,0.09);
}
.test-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.test-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent-indigo-soft);
  color: var(--primary);
}
.diff-tag {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}
.diff-easy { background: var(--green-bg); color: var(--green); }
.diff-moderate { background: var(--amber-bg); color: var(--amber); }
.diff-hard { background: var(--accent-pink-soft); color: var(--accent-pink); }

.test-title {
  font-size: 0.91rem;
  font-weight: 700;
  color: var(--text);
}
.test-topic {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}
.test-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px dashed #EDF2F7;
  padding-top: 6px;
}
.done-pill {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}
.done-pill.pass { background: var(--green-bg); color: var(--green); }
.done-pill.fail { background: var(--red-bg); color: var(--red); }

/* ================= EXAM ARENA ================= */
.hidden { display: none !important; }

.exam-shell {
  background: var(--surface);
  border: 1.5px solid #C7D2FE;
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(23, 37, 84, 0.09);
  overflow: hidden;
}
.exam-topbar {
  background: #F8FAFF;
  border-bottom: 1.5px solid var(--border);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.candidate-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #F472B6;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.exam-center { text-align: center; }
.exam-heading { font-size: 1rem; font-weight: 800; color: var(--primary); }
.chunk-tag {
  display: inline-block;
  margin-top: 3px;
  background: var(--accent-pink-soft);
  color: var(--accent-pink);
  border: 1px solid #FBCFE8;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 2px 10px;
  border-radius: 6px;
}
.timer-box {
  background: #EEF2FF;
  border: 1.5px solid #C7D2FE;
  border-radius: 10px;
  padding: 7px 14px;
  text-align: center;
  min-width: 145px;
}
.timer-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}
.timer-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.timer-box.warn { background: var(--amber-bg); border-color: #FCD34D; }
.timer-box.danger { background: var(--red-bg); border-color: #FCA5A5; }

/* Chunk Progress Strip */
.chunk-strip {
  padding: 9px 18px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.chunk-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.chunk-pill {
  min-width: 34px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: #F8FAFC;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}
.chunk-pill.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.chunk-pill.completed { background: var(--green-bg); color: var(--green); border-color: #6EE7B7; }
.chunk-pill.partial { background: var(--amber-bg); color: var(--amber); border-color: #FCD34D; }

.exam-tools { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.mini-btn {
  padding: 5px 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.mini-btn:hover { background: var(--accent-indigo-soft); }

/* Protected Reference Box */
.ref-section {
  background: var(--ref-bg);
  padding: 14px 18px 18px;
  border-bottom: 1.5px solid var(--ref-border);
  position: relative;
}
.panel-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.ref-box {
  background: #FFFFFF;
  border: 1.5px solid #B6A975;
  border-radius: 8px;
  padding: 18px 20px;
  font-size: 1.38rem;
  line-height: 1.85;
  color: #0F172A;
  min-height: 165px;
  max-height: 290px;
  overflow-y: auto;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
}
.hl-word { padding: 1px 3px; border-radius: 4px; }
.hl-current { background: #E0E7FF; color: #1E1B4B; border-bottom: 2px solid var(--accent-indigo); font-weight: 700; }
.hl-ok { color: var(--green); }
.hl-err { background: var(--red-bg); color: var(--red); text-decoration: underline wavy var(--red); }

.typing-section {
  background: var(--typing-bg);
  padding: 14px 18px 18px;
}
.typing-area {
  width: 100%;
  min-height: 165px;
  background: #FFFFFF;
  border: 2px solid #94A3B8;
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 1.35rem;
  line-height: 1.8;
  color: #0F172A;
  resize: vertical;
  outline: none;
  font-family: inherit;
}
.typing-area:focus {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}

.exam-footer {
  padding: 12px 18px;
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.unlock-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.78rem;
  background: #F1F5F9;
  color: var(--muted);
}
.unlock-badge.ready { background: var(--green-bg); color: var(--green); }
.exam-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #0F172A; }
.btn-pink { background: var(--accent-pink); color: #fff; }
.btn-pink:hover { background: #BE185D; }
.btn-danger { background: #DC2626; color: #fff; }
.btn-danger:hover { background: #B91C1C; }
.btn-outline { background: #fff; color: var(--primary); border: 1.5px solid var(--border); }
.btn-outline:hover { background: var(--accent-indigo-soft); border-color: var(--accent-indigo); }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 250;
  border-left: 4px solid var(--accent-pink);
  max-width: 92vw;
}

/* Result Card */
.result-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 940px;
  margin: 0 auto;
}
.result-header {
  background: linear-gradient(135deg, var(--primary) 0%, #312E81 65%, #831843 100%);
  color: #fff;
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.result-body { padding: 22px; }
.verdict-box {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.verdict-box.pass { background: var(--green-bg); color: var(--green); border: 1.5px solid #6EE7B7; }
.verdict-box.fail { background: var(--red-bg); color: var(--red); border: 1.5px solid #FCA5A5; }

.score-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.93rem;
}
.score-table tr { border-bottom: 1px solid var(--border); }
.score-table td { padding: 10px 12px; }
.score-table td:first-child { font-weight: 600; color: var(--primary); width: 48%; }
.score-table td:last-child { font-weight: 700; color: var(--text); }
.highlight-note {
  background: #FEF9C3;
  color: #713F12;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 600;
}
.psssb-note-box {
  background: var(--gold-soft);
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 0.85rem;
  color: #78350F;
  margin-bottom: 16px;
}

.error-inspector { margin-top: 20px; border-top: 2px solid var(--border); padding-top: 18px; }
.err-legend { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; font-size: 0.78rem; font-weight: 700; }
.leg-item { padding: 3px 9px; border-radius: 6px; }
.err-chunk-block { border: 1px solid var(--border); border-radius: 9px; padding: 12px 14px; margin-bottom: 12px; background: #FAFBFD; }
.err-chunk-title { font-size: 0.82rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.err-tokens { line-height: 2.1; font-size: 1.05rem; }
.tok { display: inline-block; margin: 2px 3px; padding: 1px 6px; border-radius: 5px; }
.tok-ok { color: #166534; }
.tok-wrong { background: var(--red-bg); color: var(--red); border: 1px solid #FECACA; }
.tok-skip { background: #FFF7ED; color: #C2410C; border: 1px dashed #FDBA74; }
.tok-extra { background: var(--purple-bg); color: var(--purple); border: 1px solid #DDD6FE; }
.tok-space { background: var(--blue-bg); color: var(--blue); border: 1px solid #BFDBFE; }
.tok-vowel { background: #FEF08A; color: #854D0E; font-size: 0.72rem; padding: 1px 5px; border-radius: 4px; margin-left: 4px; }

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 180;
  padding: 16px;
}
.modal-box {
  background: #fff;
  border-radius: 14px;
  max-width: 780px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.28);
}
.modal-head {
  background: linear-gradient(135deg, var(--primary) 0%, #312E81 70%, #831843 100%);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 5;
}
.modal-close {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.15rem;
  cursor: pointer;
}
.modal-body { padding: 20px; font-size: 0.9rem; }
.form-field { margin-bottom: 12px; }
.form-field label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
}

.vowel-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.vowel-table th, .vowel-table td { border: 1px solid var(--border); padding: 9px 12px; text-align: center; }
.vowel-table th { background: var(--accent-indigo-soft); color: var(--primary); }

/* Worksheet */
.worksheet-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
  max-width: 880px;
  margin: 0 auto;
}
.worksheet-chunk { padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 1.15rem; }

/* Professional Multi-Column Footer with Social Links & Official Support */
.lp-footer {
  background: linear-gradient(135deg, #0F172A 0%, var(--primary) 65%, #3B0D29 100%);
  color: #CBD5E1;
  border-top: 3px solid var(--accent-pink);
  margin-top: 36px;
  padding: 28px 20px 18px;
  font-size: 0.84rem;
}
.footer-grid {
  max-width: 1260px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-col h3 {
  color: #fff;
  font-size: 0.94rem;
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}
.footer-col h3 span { color: #F472B6; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-links a, .footer-links button {
  color: #CBD5E1;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.84rem;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.footer-links a:hover, .footer-links button:hover { color: #F472B6; }
.social-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.social-chip {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  text-decoration: none;
  padding: 6px 11px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.15s;
}
.social-chip:hover { background: var(--accent-pink); border-color: var(--accent-pink); }
.footer-bottom {
  max-width: 1260px;
  margin: 14px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.76rem;
  color: #94A3B8;
}

@media (max-width: 768px) {
  .info-banner { grid-template-columns: 1fr; }
  .ref-box, .typing-area { font-size: 1.12rem; }
}
@media print {
  .lp-header, .mode-bar, .no-print, .lp-footer { display: none !important; }
  body { background: #fff; }
  .result-card, .worksheet-box { box-shadow: none; border: none; max-width: 100%; }
}
