/* ============ CBSE 2027 Prep — Refined Design System ============ */
:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --accent: #0284c7;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --text-secondary: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-focus: #818cf8;
  --ok: #059669;
  --ok-bg: #ecfdf5;
  --ok-border: #a7f3d0;
  --warn: #d97706;
  --warn-bg: #fffbeb;
  --warn-border: #fde68a;
  --danger: #dc2626;
  --math: #2563eb; --sci: #059669; --sst: #d97706; --eng: #7c3aed; --fra: #e11d48;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --hero-grad: radial-gradient(120% 120% at 85% 10%, rgba(99, 102, 241, 0.28) 0%, transparent 55%),
               radial-gradient(100% 100% at 10% 90%, rgba(6, 182, 212, 0.18) 0%, transparent 50%),
               linear-gradient(145deg, #0b0f19 0%, #171b38 45%, #1e1b4b 100%);
  --grad: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #0ea5e9 100%);
}

[data-theme=dark] {
  --bg: #090d16;
  --surface: #111827;
  --surface-2: #1e293b;
  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --muted: #94a3b8;
  --border: #1f293d;
  --border-focus: #6366f1;
  --ok-bg: rgba(5, 150, 105, 0.15);
  --ok-border: rgba(5, 150, 105, 0.35);
  --warn-bg: rgba(217, 119, 6, 0.15);
  --warn-border: rgba(217, 119, 6, 0.35);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.6);
  --hero-grad: radial-gradient(120% 120% at 85% 10%, rgba(99, 102, 241, 0.22) 0%, transparent 55%),
               radial-gradient(100% 100% at 10% 90%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
               linear-gradient(145deg, #030712 0%, #0c102b 50%, #1e1b4b 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color 0.15s ease; }
a:hover { text-decoration: underline; color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---- Header ---- */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}
[data-theme=dark] header.site {
  background: rgba(17, 24, 39, 0.88);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}
.nav-links { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-links a.active { background: var(--primary); color: #fff; }
.theme-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 11px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s, border-color 0.15s;
}
.theme-btn:hover { background: var(--surface-2); }
.menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 11px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* ---- Hero Section ---- */
.hero {
  background: var(--hero-grad);
  color: #fff;
  padding: 64px 0 76px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-chip-wrap { display: flex; align-items: center; margin-bottom: 18px; }
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 0.01em;
}
.hero-chip .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  display: inline-block;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}
.hero p.sub {
  margin-top: 16px;
  font-size: 1.08rem;
  line-height: 1.55;
  color: #cbd5e1;
  max-width: 620px;
}
.cta-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-white {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}
.btn-white:hover {
  background: #f8fafc;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
}
.proof-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #cbd5e1;
}
.proof-strip strong { color: #ffffff; font-weight: 700; }
.proof-strip .dot { opacity: 0.4; }

/* ---- Hero Media & Elegant Pictorial Showcase ---- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}
.hero-showcase-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35), 0 0 40px rgba(99, 102, 241, 0.28);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.hero-showcase-frame:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 32px 68px rgba(0, 0, 0, 0.45), 0 0 55px rgba(99, 102, 241, 0.42);
}
.hero-showcase-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.hero-badge-float {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 7px 14px;
  border-radius: 999px;
  color: #f8fafc;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.01em;
}
.hero-badge-float .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  display: inline-block;
  flex-shrink: 0;
}

/* ---- Tool Icon Badges for Home Grid ---- */
.tool-icon-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.tool-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.card-link:hover .tool-icon { transform: scale(1.08); }
.tool-icon.t-indigo { background: #e0e7ff; color: #4338ca; }
.tool-icon.t-blue   { background: #dbeafe; color: #1d4ed8; }
.tool-icon.t-emerald{ background: #d1fae5; color: #047857; }
.tool-icon.t-amber  { background: #fef3c7; color: #b45309; }
.tool-icon.t-purple { background: #ede9fe; color: #6d28d9; }
.tool-icon.t-cyan   { background: #cffafe; color: #0e7490; }

[data-theme=dark] .tool-icon.t-indigo { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }
[data-theme=dark] .tool-icon.t-blue   { background: rgba(37, 99, 235, 0.2); color: #93c5fd; }
[data-theme=dark] .tool-icon.t-emerald{ background: rgba(5, 150, 105, 0.2); color: #6ee7b7; }
[data-theme=dark] .tool-icon.t-amber  { background: rgba(217, 119, 6, 0.2); color: #fde047; }
[data-theme=dark] .tool-icon.t-purple { background: rgba(124, 58, 237, 0.2); color: #c4b5fd; }
[data-theme=dark] .tool-icon.t-cyan   { background: rgba(6, 182, 212, 0.2); color: #67e8f9; }

/* ---- Countdown Grid ---- */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
  position: relative;
  z-index: 5;
}
.cd-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cd-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cd-card .num {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.cd-card .lbl {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-top: 6px;
}

/* ---- Sections & Cards ---- */
section.block { padding: 48px 0; }
.section-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 6px;
  color: var(--text);
}
.section-sub {
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 760px;
  font-size: 0.95rem;
  line-height: 1.55;
}
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.card p, .card li { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.card ul { padding-left: 18px; margin-top: 8px; }

/* ---- Clickable Cards ---- */
.card-link {
  display: block;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.card-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  text-decoration: none;
}
.card-link h3::after {
  content: '→';
  margin-left: auto;
  color: var(--primary);
  font-weight: 800;
  transition: transform 0.15s;
}
.card-link:hover h3::after {
  transform: translateX(3px);
}

/* ---- Tables ---- */
table.t {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
table.t th {
  background: var(--surface-2);
  color: var(--muted);
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
table.t td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}
table.t tr:last-child td { border-bottom: none; }
table.t tr:hover td { background: var(--surface-2); }
table.t td strong { color: var(--text); font-weight: 700; }

/* Action Buttons inside Table */
.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1.4;
}
.btn-action-primary {
  background: var(--primary);
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}
.btn-action-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-action-outline {
  background: transparent;
  color: var(--primary) !important;
  border: 1px solid var(--border);
}
.btn-action-outline:hover {
  background: var(--surface-2);
  border-color: var(--primary);
  text-decoration: none;
}
.btn-action-ghost {
  background: transparent;
  color: var(--muted) !important;
}
.btn-action-ghost:hover {
  color: var(--text) !important;
  background: var(--surface-2);
  text-decoration: none;
}

/* ---- Refined Probability & Category Tags ---- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.tag-sqp {
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid var(--ok-border);
}
.tag-hi {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #c7d2fe;
}
.tag-md {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid var(--warn-border);
}
.tag-blue { background: #dbeafe; color: #1d4ed8; }
.tag-red  { background: #fee2e2; color: #b91c1c; }

[data-theme=dark] .tag-sqp {
  background: rgba(5, 150, 105, 0.15);
  color: #6ee7b7;
  border-color: rgba(5, 150, 105, 0.35);
}
[data-theme=dark] .tag-hi {
  background: rgba(79, 70, 229, 0.15);
  color: #a5b4fc;
  border-color: rgba(79, 70, 229, 0.35);
}
[data-theme=dark] .tag-md {
  background: rgba(217, 119, 6, 0.15);
  color: #fde047;
  border-color: rgba(217, 119, 6, 0.35);
}
[data-theme=dark] .tag-blue { background: rgba(37, 99, 235, 0.2); color: #93c5fd; }
[data-theme=dark] .tag-red  { background: rgba(220, 38, 38, 0.2); color: #fca5a5; }

/* ---- Weightage Bars (Subject Blueprints) ---- */
.bar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0;
  font-size: 0.88rem;
}
.bar-row .bl { width: 180px; color: var(--text-secondary); font-weight: 600; flex: none; }
.bar {
  flex: 1;
  height: 10px;
  background: var(--surface-2);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #4f46e5 0%, #0ea5e9 100%);
  transition: width 0.4s ease;
}
.bar-row .bv { width: 50px; text-align: right; font-weight: 800; color: var(--text); }

/* ---- Interactive Checklist ---- */
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 8px 0;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.check:hover { border-color: var(--primary); background: var(--surface-2); }
.check input {
  margin-top: 4px;
  accent-color: var(--primary);
  width: 17px;
  height: 17px;
  flex: none;
  cursor: pointer;
}
.check .ct { font-size: 0.93rem; font-weight: 600; color: var(--text); }
.check .cd2 { font-size: 0.82rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.check.done { opacity: 0.65; background: var(--surface-2); }
.check.done .ct { text-decoration: line-through; }

.progress-outer {
  height: 12px;
  background: var(--surface-2);
  border-radius: 99px;
  overflow: hidden;
  margin: 10px 0 4px;
  border: 1px solid var(--border);
}
.progress-inner {
  height: 100%;
  background: var(--grad);
  border-radius: 99px;
  transition: width 0.5s ease;
}

/* ---- Question Cards (Probable Qs) ---- */
.q-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s;
}
.q-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.q-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.q-text { font-weight: 600; font-size: 0.96rem; color: var(--text); line-height: 1.5; }

/* ---- Filter Chips & Search ---- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--primary); color: var(--text); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.search-box {
  width: 100%;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.96rem;
  margin-bottom: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-box:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12); }

/* ---- Timeline ---- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 99px;
}
.tl-item {
  position: relative;
  margin-bottom: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--primary);
}
.tl-date {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

/* ---- Notifications & Callouts ---- */
.note {
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 18px 0;
  line-height: 1.5;
}
.note strong { color: var(--text); }

/* ---- Practice Quiz ---- */
.opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  margin: 7px 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
}
.opt:hover { border-color: var(--primary); background: var(--surface-2); }
.opt.correct { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); font-weight: 700; }
.opt.wrong { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.explain {
  display: none;
  margin-top: 12px;
  padding: 14px 16px;
  border-left: 4px solid var(--primary);
  background: var(--surface-2);
  border-radius: 0 10px 10px 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.explain.show { display: block; }
.scoreboard { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.score-box {
  flex: 1;
  min-width: 130px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow);
}
.score-box b { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.score-box span { font-size: 0.78rem; color: var(--muted); display: block; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }

/* ---- Utility Classes ---- */
.hero-sm { padding: 44px 0 54px; }
.block-alt { background: var(--surface-2); }
.hero-note { font-size: 0.85rem; opacity: 0.9; margin-top: 6px; }
.mt-8{margin-top:8px} .mt-14{margin-top:14px} .mt-16{margin-top:16px} .mt-18{margin-top:18px} .mt-20{margin-top:20px}
.t-plain { box-shadow: none; border: none; }
.table-wrap { overflow-x: auto; }
.t-wide { min-width: 640px; }
.q-topic { font-size: 0.82rem; color: var(--muted); font-weight: 600; margin-left: 4px; }
.progress-hero { background: rgba(255, 255, 255, 0.22); max-width: 520px; border: none; }
.progress-hero .progress-inner { background: #ffffff; }

/* ---- Responsive Adjustments ---- */
@media (max-width: 860px) {
  .countdown { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 14px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; margin-left: auto; }
  .bar-row .bl { width: 130px; }
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-media { margin-top: 8px; }
}
@media (max-width: 640px) {
  .proof-strip { gap: 8px 10px; font-size: 0.84rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .countdown { grid-template-columns: 1fr; gap: 10px; }
}

/* ---- Complete Footer Styles ---- */
footer.site, footer.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}
.footer-grid h4 {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.footer-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}
.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  color: var(--muted);
  font-size: 0.84rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}
@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ---- Viral Engine & Urgency Styles ---- */
.urgency-ticker {
  background: linear-gradient(90deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
  color: #fff;
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
  position: relative;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.urgency-ticker .badge-live {
  background: #ef4444;
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.urgency-ticker .count-highlight {
  color: #fde047;
  font-weight: 800;
}

.viral-diagnostic-card {
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: 16px;
  padding: 32px 28px;
  margin: 32px 0 40px;
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.12);
  position: relative;
  overflow: hidden;
}
.viral-diagnostic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.diag-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--surface-2);
  border-radius: 999px;
  margin-bottom: 24px;
  overflow: hidden;
}
.diag-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
  width: 20%;
  transition: width 0.3s ease;
}
.diag-opt-btn {
  width: 100%;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 0.96rem;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}
.diag-opt-btn:hover {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, var(--surface-2));
  transform: translateX(4px);
}
.diag-opt-btn.correct {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #065f46 !important;
}
.diag-opt-btn.wrong {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
}

.diag-result-card {
  text-align: center;
  padding: 24px 16px;
}
.diag-score-display {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 12px 0 6px;
}
.share-action-group {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.btn-whatsapp {
  background: #25D366;
  color: #ffffff !important;
  font-weight: 700;
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}
.btn-telegram {
  background: #229ED9;
  color: #ffffff !important;
  font-weight: 700;
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(34, 158, 217, 0.35);
  transition: transform 0.15s ease;
}
.btn-telegram:hover {
  transform: translateY(-2px);
}

.floating-studygroup-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 8px 18px 8px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  max-width: 90vw;
  animation: slideUp 0.4s ease-out;
}
@keyframes slideUp {
  from { transform: translate(-50%, 40px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}
.floating-studygroup-bar span {
  color: #f8fafc;
  font-size: 0.88rem;
  font-weight: 600;
}
@media (max-width: 600px) {
  .floating-studygroup-bar span {
    display: none;
  }
}

