/* ============================================================
   SQ ASSESSMENT HUB — Main Stylesheet
   Vibrant, Interactive, Beginner-Friendly
   ============================================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple: #7c3aed;
  --purple-light: #a855f7;
  --blue: #0891b2;
  --blue-light: #06b6d4;
  --green: #059669;
  --green-light: #10b981;
  --red: #dc2626;
  --red-light: #f87171;
  --orange: #d97706;
  --orange-light: #fbbf24;
  --pink: #db2777;
  --bg: #f8f7ff;
  --surface: #ffffff;
  --text: #1e1b4b;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(124,58,237,0.08);
  --shadow-lg: 0 12px 48px rgba(124,58,237,0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 35%, #7c3aed 70%, #a855f7 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 6% 60px;
  position: relative;
  overflow: hidden;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  animation: float 6s ease-in-out infinite;
}
.shape-1 { width: 400px; height: 400px; background: #a855f7; top: -100px; right: -100px; animation-delay: 0s; }
.shape-2 { width: 250px; height: 250px; background: #10b981; bottom: -50px; left: 10%; animation-delay: 1s; }
.shape-3 { width: 180px; height: 180px; background: #f59e0b; top: 30%; left: -60px; animation-delay: 2s; }
.shape-4 { width: 120px; height: 120px; background: #ec4899; top: 60%; right: 20%; animation-delay: 0.5s; }
.shape-5 { width: 80px; height: 80px; background: #06b6d4; top: 20%; left: 40%; animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content { flex: 1; min-width: 300px; max-width: 600px; z-index: 1; }

.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff; padding: 8px 18px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px;
  margin-bottom: 24px;
  animation: slideDown 0.6s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  animation: slideUp 0.7s ease 0.1s both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.gradient-text {
  background: linear-gradient(90deg, #fbbf24, #f472b6, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { color: rgba(255,255,255,0.85); font-size: 0.7em; font-weight: 600; }

.hero-desc {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
  animation: slideUp 0.7s ease 0.2s both;
}

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 32px;
  animation: slideUp 0.7s ease 0.3s both;
}

.stat-pill {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; padding: 7px 16px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 600; display: flex; align-items: center; gap: 7px;
  backdrop-filter: blur(8px);
}
.stat-pill i { color: #fbbf24; }

.hero-cta-group {
  display: flex; flex-wrap: wrap; gap: 14px;
  animation: slideUp 0.7s ease 0.4s both;
}

/* --- BUTTONS --- */
.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff; border: none; padding: 14px 30px; border-radius: 50px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: var(--transition); box-shadow: 0 4px 20px rgba(124,58,237,0.4);
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-3px); box-shadow: 0 8px 30px rgba(124,58,237,0.55);
}

.btn-secondary {
  background: rgba(255,255,255,0.15); color: #fff;
  border: 2px solid rgba(255,255,255,0.4); padding: 12px 28px; border-radius: 50px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: var(--transition); backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.25); transform: translateY(-3px);
}

.btn-ghost {
  background: transparent; color: var(--purple);
  border: 2px solid var(--purple); padding: 12px 28px; border-radius: 50px;
  font-size: 0.95rem; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: var(--transition);
}
.btn-ghost:hover { background: #f3e8ff; transform: translateY(-2px); }

.btn-submit {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff; border: none; padding: 18px 50px; border-radius: 50px;
  font-size: 1.1rem; font-weight: 800; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  transition: var(--transition); box-shadow: 0 6px 25px rgba(5,150,105,0.4);
}
.btn-submit:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(5,150,105,0.5); }

/* --- SQ WHEEL ILLUSTRATION --- */
.hero-illustration {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  animation: slideUp 1s ease 0.3s both;
}

.sq-wheel {
  width: clamp(240px, 35vw, 380px);
  height: clamp(240px, 35vw, 380px);
  position: relative;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  animation: spin-slow 20s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.wheel-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #fff; z-index: 2;
  box-shadow: 0 0 30px rgba(251,191,36,0.6);
  animation: counter-spin 20s linear infinite;
}

@keyframes counter-spin {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to { transform: translate(-50%,-50%) rotate(-360deg); }
}

.wheel-segment {
  position: absolute; top: 50%; left: 50%;
  width: 50%; height: 2px;
  transform-origin: left center;
  display: flex; align-items: center; justify-content: flex-end;
}

.wheel-segment span {
  background: rgba(255,255,255,0.9);
  color: #312e81; padding: 5px 12px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700; white-space: nowrap;
  animation: counter-spin 20s linear infinite;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.seg-1 { transform: rotate(0deg); }
.seg-2 { transform: rotate(60deg); }
.seg-3 { transform: rotate(120deg); }
.seg-4 { transform: rotate(180deg); }
.seg-5 { transform: rotate(240deg); }
.seg-6 { transform: rotate(300deg); }

/* ============================================================
   STICKY NAV
   ============================================================ */
.sticky-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(124,58,237,0.08);
}

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px; gap: 20px;
}

.nav-logo {
  font-size: 1.1rem; font-weight: 800; color: var(--purple);
  text-decoration: none; display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.nav-logo i { color: var(--purple); }

.nav-tabs { display: flex; gap: 4px; flex-wrap: wrap; }

.nav-tab {
  background: transparent; border: none; padding: 8px 18px; border-radius: 50px;
  font-family: inherit; font-size: 0.88rem; font-weight: 600; color: var(--muted);
  cursor: pointer; display: flex; align-items: center; gap: 7px;
  transition: var(--transition);
}
.nav-tab:hover { background: #f3e8ff; color: var(--purple); }
.nav-tab.active {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: #fff; box-shadow: 0 4px 15px rgba(124,58,237,0.3);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-wrapper { max-width: 1200px; margin: 0 auto; padding: 40px 24px 60px; }

.tab-section { display: none; animation: fadeIn 0.5s ease; }
.tab-section.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- SECTION HEADER --- */
.section-header {
  text-align: center; margin-bottom: 40px; padding: 20px 0;
}

.section-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff; margin: 0 auto 16px;
  box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; color: var(--text); margin-bottom: 8px;
}
.highlight { color: var(--purple); }
.section-sub { color: var(--muted); font-size: 1rem; }

/* ============================================================
   INFO CARDS GRID
   ============================================================ */
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px; margin-bottom: 60px;
}

.info-card {
  background: var(--surface);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: var(--transition); position: relative; overflow: hidden;
}
.info-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.card-purple::before { background: linear-gradient(90deg, #7c3aed, #a855f7); }
.card-blue::before   { background: linear-gradient(90deg, #0891b2, #06b6d4); }
.card-green::before  { background: linear-gradient(90deg, #059669, #10b981); }
.card-orange::before { background: linear-gradient(90deg, #d97706, #fbbf24); }
.card-pink::before   { background: linear-gradient(90deg, #db2777, #ec4899); }
.card-teal::before   { background: linear-gradient(90deg, #0f766e, #14b8a6); }

.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card-icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 14px;
}
.card-purple .card-icon { background: #f3e8ff; color: #7c3aed; }
.card-blue .card-icon   { background: #e0f2fe; color: #0891b2; }
.card-green .card-icon  { background: #d1fae5; color: #059669; }
.card-orange .card-icon { background: #fef3c7; color: #d97706; }
.card-pink .card-icon   { background: #fce7f3; color: #db2777; }
.card-teal .card-icon   { background: #ccfbf1; color: #0f766e; }

.info-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.info-card p  { color: var(--muted); font-size: 0.92rem; line-height: 1.65; }

/* ============================================================
   QUOTIENT COMPARE INFOGRAPHIC
   ============================================================ */
.infographic-block { background: var(--surface); border-radius: 24px; padding: 40px; margin-bottom: 60px; box-shadow: var(--shadow); }

.quotient-compare {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px;
}

.quotient-card {
  background: #f8f7ff; border-radius: var(--radius); padding: 28px;
  border: 2px solid var(--border); transition: var(--transition);
}
.quotient-card:hover { transform: translateY(-4px); }

.q-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: #6366f1; color: #fff; font-size: 1.2rem; font-weight: 900;
  margin-bottom: 14px; box-shadow: 0 4px 15px rgba(99,102,241,0.4);
}
.quotient-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.quotient-card p  { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }

.q-bar {
  background: #e5e7eb; border-radius: 50px; height: 10px; overflow: hidden; margin-bottom: 6px;
}
.q-fill {
  height: 100%; border-radius: 50px;
  animation: barFill 1.5s ease forwards;
}
@keyframes barFill {
  from { width: 0 !important; }
}
.q-label { font-size: 0.78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ============================================================
   SECTIONS TIMELINE
   ============================================================ */
.sections-timeline {
  position: relative; padding-left: 0; margin-bottom: 60px;
}

.timeline-item {
  display: flex; gap: 20px; margin-bottom: 28px;
  background: var(--surface); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); border-left: 5px solid var(--color, #7c3aed);
  transition: var(--transition); align-items: flex-start;
}
.timeline-item[data-color="#7c3aed"] { border-left-color: #7c3aed; }
.timeline-item[data-color="#0891b2"] { border-left-color: #0891b2; }
.timeline-item[data-color="#059669"] { border-left-color: #059669; }
.timeline-item[data-color="#dc2626"] { border-left-color: #dc2626; }
.timeline-item:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }

.tl-number {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff; font-size: 1.2rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.timeline-item[data-color="#0891b2"] .tl-number { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.timeline-item[data-color="#059669"] .tl-number { background: linear-gradient(135deg, #059669, #10b981); }
.timeline-item[data-color="#dc2626"] .tl-number { background: linear-gradient(135deg, #dc2626, #f87171); }

.tl-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: #f3e8ff; color: #7c3aed;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0; margin-bottom: 10px;
}
.timeline-item[data-color="#0891b2"] .tl-icon { background: #e0f2fe; color: #0891b2; }
.timeline-item[data-color="#059669"] .tl-icon { background: #d1fae5; color: #059669; }
.timeline-item[data-color="#dc2626"] .tl-icon { background: #fee2e2; color: #dc2626; }

.tl-content h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.tl-content p  { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }

.tl-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-tags span {
  background: #f3e8ff; color: #7c3aed;
  padding: 4px 12px; border-radius: 50px; font-size: 0.78rem; font-weight: 600;
}
.timeline-item[data-color="#0891b2"] .tl-tags span { background: #e0f2fe; color: #0891b2; }
.timeline-item[data-color="#059669"] .tl-tags span { background: #d1fae5; color: #059669; }
.timeline-item[data-color="#dc2626"] .tl-tags span { background: #fee2e2; color: #dc2626; }

/* ============================================================
   REVISION CARDS
   ============================================================ */
.revision-block { margin-bottom: 60px; }
.revision-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px;
}

.revision-card {
  background: var(--surface); border-radius: var(--radius); padding: 22px;
  border-top: 4px solid var(--clr, #7c3aed);
  box-shadow: var(--shadow); transition: var(--transition);
  position: relative;
}
.revision-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.rv-num {
  font-size: 2.2rem; font-weight: 900; color: var(--clr, #7c3aed);
  opacity: 0.15; position: absolute; top: 10px; right: 16px;
  font-family: 'Poppins', sans-serif;
}
.revision-card p { font-size: 0.92rem; line-height: 1.7; color: #374151; }

/* ============================================================
   SCORING VISUAL BANDS
   ============================================================ */
.scoring-visual { background: var(--surface); border-radius: 24px; padding: 40px; margin-bottom: 40px; box-shadow: var(--shadow); }

.score-bands-visual { display: flex; flex-direction: column; gap: 12px; }

.band {
  background: var(--bc); border-radius: 12px; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; width: var(--bw);
  min-width: 250px; box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  transition: var(--transition);
  animation: bandIn 0.6s ease both;
}

@keyframes bandIn {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
.band:nth-child(1) { animation-delay: 0.1s; }
.band:nth-child(2) { animation-delay: 0.2s; }
.band:nth-child(3) { animation-delay: 0.3s; }
.band:nth-child(4) { animation-delay: 0.4s; }
.band:nth-child(5) { animation-delay: 0.5s; }

.band:hover { transform: translateX(8px); }

.band-range {
  color: #fff; font-size: 1.1rem; font-weight: 800; min-width: 80px;
}
.band-label { color: rgba(255,255,255,0.92); font-size: 0.9rem; font-weight: 600; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, #1e1b4b, #312e81, #7c3aed);
  border-radius: 24px; padding: 48px 40px; text-align: center;
  color: #fff; margin-bottom: 40px;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(168,85,247,0.3), transparent 60%);
}
.cta-banner h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; position: relative; }
.cta-banner p  { color: rgba(255,255,255,0.8); margin-bottom: 28px; position: relative; font-size: 1rem; }
.cta-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; position: relative; }

/* ============================================================
   DRAG & DROP SECTION
   ============================================================ */
.dd-instructions {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1.5px dashed #7c3aed; border-radius: 12px;
  padding: 16px 24px; display: flex; align-items: center; gap: 12px;
  font-size: 0.92rem; color: #374151; margin-bottom: 32px;
}
.dd-instructions i { color: #7c3aed; font-size: 1.2rem; flex-shrink: 0; }

.dd-arena {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; margin-bottom: 24px;
}

@media (max-width: 768px) { .dd-arena { grid-template-columns: 1fr; } }

.dd-col-title {
  font-size: 1rem; font-weight: 700; color: var(--text);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}

.drag-pool { display: flex; flex-direction: column; gap: 10px; }

.drag-card {
  background: var(--surface); border: 2px solid var(--border);
  border-radius: 10px; padding: 12px 16px;
  font-size: 0.88rem; font-weight: 600; cursor: grab;
  transition: var(--transition); color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  user-select: none; position: relative;
}
.drag-card:hover {
  border-color: var(--purple); box-shadow: 0 4px 15px rgba(124,58,237,0.2);
  transform: translateX(4px);
}
.drag-card.dragging {
  opacity: 0.5; cursor: grabbing; transform: rotate(2deg) scale(1.05);
}
.drag-card.placed {
  background: #f3e8ff; border-color: var(--purple); color: var(--purple);
}
.drag-card.correct { background: #d1fae5; border-color: #059669; color: #059669; }
.drag-card.wrong   { background: #fee2e2; border-color: #dc2626; color: #dc2626; }

.drop-zones { display: flex; flex-direction: column; gap: 16px; }

.drop-zone { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }

.dz-header {
  padding: 12px 18px; color: #fff; font-size: 0.9rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}

.dz-body {
  background: #fafafa; border: 2px dashed #e5e7eb;
  border-top: none; min-height: 80px; padding: 12px;
  display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start;
  transition: var(--transition);
}
.dz-body.drag-over {
  background: #f3e8ff; border-color: var(--purple);
}
.dz-placeholder { color: #9ca3af; font-size: 0.82rem; font-style: italic; align-self: center; }

.dropped-tag {
  background: #fff; border: 1.5px solid #c4b5fd; border-radius: 8px;
  padding: 6px 12px; font-size: 0.8rem; font-weight: 600; color: #7c3aed;
  cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 6px;
}
.dropped-tag:hover { background: #fee2e2; border-color: #dc2626; color: #dc2626; }
.dropped-tag i { font-size: 0.7rem; }

.dd-controls { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }

.dd-feedback {
  padding: 0; margin-top: 8px; font-weight: 700; font-size: 1rem;
  transition: var(--transition);
}
.dd-feedback.success { color: #059669; }
.dd-feedback.partial { color: #d97706; }
.dd-feedback.error   { color: #dc2626; }

/* ============================================================
   QUIZ SECTION
   ============================================================ */
.quiz-header-block { margin-bottom: 32px; }

.quiz-instructions-box {
  background: var(--surface); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px;
}
.qi-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; color: #374151; font-weight: 600;
}

/* --- Progress Bar --- */
.quiz-progress-wrap {
  background: var(--surface); border-radius: var(--radius); padding: 20px 24px;
  margin-bottom: 36px; box-shadow: var(--shadow); position: sticky; top: 64px; z-index: 50;
}
.qp-labels {
  display: flex; justify-content: space-between;
  font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-bottom: 8px;
}
.quiz-progress-bar {
  background: #e5e7eb; border-radius: 50px; height: 12px; overflow: hidden; position: relative;
}
.quiz-progress-fill {
  height: 100%; border-radius: 50px;
  background: linear-gradient(90deg, #7c3aed, #10b981);
  transition: width 0.5s ease;
}
.section-markers {
  display: flex; justify-content: space-between; position: relative;
  margin-top: 6px;
}
.section-markers span {
  font-size: 0.75rem; font-weight: 700; color: var(--purple); position: absolute;
  transform: translateX(-50%);
}

/* --- Section Divider --- */
.section-divider {
  background: linear-gradient(135deg, var(--sd-clr), color-mix(in srgb, var(--sd-clr) 60%, white));
  border-radius: var(--radius); padding: 18px 24px;
  display: flex; align-items: center; gap: 16px; margin: 40px 0 20px;
  color: #fff;
}
.sd-icon {
  width: 44px; height: 44px; background: rgba(255,255,255,0.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.sd-text { display: flex; flex-direction: column; gap: 2px; }
.sd-text strong { font-size: 1.1rem; font-weight: 800; }
.sd-text span   { font-size: 0.88rem; opacity: 0.9; }

/* --- Interview Tip --- */
.interview-tip-box {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border: 1.5px solid #f59e0b; border-radius: 12px;
  padding: 16px 20px; display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 20px;
}
.interview-tip-box i { color: #d97706; font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.interview-tip-box strong { display: block; font-size: 0.95rem; color: #92400e; margin-bottom: 4px; }
.interview-tip-box p { font-size: 0.85rem; color: #78350f; line-height: 1.5; }

/* --- Question Cards --- */
.question-card {
  background: var(--surface); border-radius: var(--radius); padding: 28px;
  margin-bottom: 20px; box-shadow: var(--shadow); border: 2px solid transparent;
  transition: var(--transition);
}
.question-card:hover { border-color: #e9d5ff; }
.question-card.answered { border-color: #d1fae5; background: linear-gradient(135deg, #fff, #f0fdf4); }
.question-card.interview-q { border-left: 5px solid #dc2626; }

.q-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.q-number {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  color: #fff; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800; flex-shrink: 0;
}
.q-tag {
  padding: 4px 12px; border-radius: 50px; font-size: 0.78rem; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.q-text { font-size: 1.02rem; font-weight: 600; color: var(--text); line-height: 1.6; margin-bottom: 18px; }
.q-text em { color: var(--purple); font-style: normal; font-weight: 700; }

/* --- Options --- */
.options-list { display: flex; flex-direction: column; gap: 10px; }

.option-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 14px 18px; border-radius: 12px;
  border: 2px solid var(--border); cursor: pointer;
  transition: var(--transition); background: #fafafa;
}
.option-item:hover { border-color: #c4b5fd; background: #f5f3ff; }
.option-item input[type="radio"] { display: none; }
.option-item.selected {
  border-color: var(--purple); background: #f3e8ff;
  box-shadow: 0 2px 12px rgba(124,58,237,0.15);
}

.option-content {
  display: flex; align-items: center; gap: 12px; flex: 1;
  font-size: 0.92rem; color: #374151;
}
.option-letter {
  width: 30px; height: 30px; border-radius: 50%;
  background: #e5e7eb; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 800; flex-shrink: 0;
  transition: var(--transition);
}
.option-item.selected .option-letter {
  background: var(--purple); color: #fff;
}
.option-item.selected .option-content { color: #1e1b4b; font-weight: 600; }

.option-check {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid #e5e7eb; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: transparent; transition: var(--transition); flex-shrink: 0;
}
.option-item.selected .option-check {
  background: var(--purple); border-color: var(--purple); color: #fff;
}

/* --- Submit --- */
.submit-section { text-align: center; padding: 40px 0; }
.unanswered-warning {
  background: #fff7ed; border: 1.5px solid #f59e0b; border-radius: 12px;
  padding: 14px 20px; display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 20px; font-size: 0.9rem; font-weight: 600; color: #92400e;
}

/* ============================================================
   RESULTS SECTION
   ============================================================ */
.results-placeholder {
  text-align: center; padding: 80px 24px;
}
.placeholder-icon {
  width: 80px; height: 80px; background: #f3e8ff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--purple); margin: 0 auto 20px;
}
.results-placeholder h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.results-placeholder p  { color: var(--muted); margin-bottom: 24px; }

/* --- Score Hero --- */
.score-hero {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  border-radius: 24px; padding: 48px 40px;
  display: flex; align-items: center; gap: 48px; flex-wrap: wrap;
  margin-bottom: 48px; color: #fff;
}
.score-animation-wrapper { flex-shrink: 0; }

.score-ring { width: 200px; height: 200px; position: relative; }
.score-ring svg { width: 100%; height: 100%; }
.score-inner {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  text-align: center;
}
.score-num { font-size: 3.2rem; font-weight: 900; color: #fff; line-height: 1; }
.score-max { font-size: 1rem; color: rgba(255,255,255,0.6); font-weight: 600; }

.score-meta { flex: 1; min-width: 240px; }
.score-level-badge {
  display: inline-block; padding: 6px 18px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 700; margin-bottom: 12px;
  background: rgba(255,255,255,0.15);
}
.score-meta h2 { font-size: 2rem; font-weight: 900; margin-bottom: 12px; }
.score-meta p  { color: rgba(255,255,255,0.8); font-size: 1rem; line-height: 1.7; margin-bottom: 20px; }

.score-breakdown { display: flex; flex-wrap: wrap; gap: 10px; }
.sb-chip {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; padding: 6px 14px; border-radius: 50px; font-size: 0.82rem; font-weight: 600;
}

/* --- Section Bars --- */
.section-scores { background: var(--surface); border-radius: 24px; padding: 40px; margin-bottom: 40px; box-shadow: var(--shadow); }
.section-bars { display: flex; flex-direction: column; gap: 20px; }

.section-bar-item { }
.sbi-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;
}
.sbi-label { font-size: 0.92rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.sbi-score { font-size: 0.88rem; font-weight: 700; }
.sbi-track { background: #e5e7eb; border-radius: 50px; height: 14px; overflow: hidden; }
.sbi-fill { height: 100%; border-radius: 50px; transition: width 1.5s ease; }

/* ============================================================
   REFLECTION CARDS
   ============================================================ */
.reflection-block { margin-bottom: 48px; }
.reflection-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}
.reflect-card {
  background: var(--surface); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); transition: var(--transition);
}
.reflect-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.rc-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 14px;
}
.reflect-card p { font-size: 0.92rem; color: #374151; line-height: 1.7; margin-bottom: 14px; }
.rc-space {
  background: #f9fafb; border: 1.5px dashed #d1d5db; border-radius: 8px;
  padding: 10px 14px; font-size: 0.8rem; color: #9ca3af; font-style: italic;
  display: flex; align-items: center; justify-content: space-between;
}

/* ============================================================
   ACTION PLAN
   ============================================================ */
.action-plan-block { margin-bottom: 48px; }
.action-plan-block h3 {
  font-size: 1.5rem; font-weight: 800; margin-bottom: 20px; text-align: center;
}
.action-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.action-item {
  background: var(--surface); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); border-left: 4px solid var(--purple);
  display: flex; gap: 14px; align-items: flex-start;
  transition: var(--transition);
}
.action-item:hover { transform: translateX(4px); }
.ai-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: #f3e8ff; color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.action-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.action-item p  { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ============================================================
   RETAKE SECTION
   ============================================================ */
.retake-section {
  background: var(--surface); border-radius: 24px; padding: 40px;
  text-align: center; box-shadow: var(--shadow); margin-bottom: 40px;
}
.retake-section h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.retake-section p  { color: var(--muted); margin-bottom: 24px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1e1b4b; color: rgba(255,255,255,0.7); padding: 36px 24px; text-align: center;
}
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-logo {
  font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.footer-logo i { color: #a855f7; }
.site-footer p { font-size: 0.88rem; line-height: 1.7; }

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
  position: fixed; bottom: 30px; right: 30px; z-index: 9999;
  background: #1e1b4b; color: #fff; padding: 14px 22px; border-radius: 12px;
  font-size: 0.9rem; font-weight: 600; box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  display: flex; align-items: center; gap: 10px;
  transform: translateX(200px); opacity: 0;
  transition: all 0.4s ease;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast i { color: #10b981; font-size: 1.1rem; }

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 900px) {
  .hero { padding: 80px 5% 60px; flex-direction: column; text-align: center; }
  .hero-cta-group { justify-content: center; }
  .hero-stats { justify-content: center; }
  .badge-pill { justify-content: center; }
  .score-hero { flex-direction: column; align-items: center; text-align: center; }
  .score-breakdown { justify-content: center; }
  .tl-content { flex: 1; }
}

@media (max-width: 600px) {
  .main-wrapper { padding: 24px 16px 40px; }
  .question-card { padding: 20px 16px; }
  .option-item { padding: 12px 14px; }
  .nav-tab { padding: 6px 12px; font-size: 0.8rem; }
  .quiz-instructions-box { grid-template-columns: 1fr; }
  .dd-arena { grid-template-columns: 1fr; }
  .score-hero { padding: 32px 20px; }
  .infographic-block { padding: 24px 16px; }
  .scoring-visual { padding: 24px 16px; }
  .band { min-width: auto; width: 100% !important; }
  .hero-title { font-size: 2rem; }
  .cta-banner { padding: 32px 20px; }
  .section-header h2 { font-size: 1.5rem; }
}

/* ============================================================
   QUIZ SECTION TRACKER MARKER STYLES
   ============================================================ */
.section-markers span:nth-child(1) { left: 0%; }
.section-markers span:nth-child(2) { left: 25%; }
.section-markers span:nth-child(3) { left: 50%; }
.section-markers span:nth-child(4) { left: 75%; }
.section-markers span:nth-child(5) { left: 100%; transform: translateX(-100%); }

/* --- Drag card return from zone on click --- */
.drag-card.placed { cursor: pointer; }
.drag-card.placed::after {
  content: '↩'; position: absolute; top: -8px; right: -8px;
  width: 20px; height: 20px; background: #dc2626; color: #fff;
  border-radius: 50%; font-size: 0.7rem; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
}
.drag-card.placed:hover::after { opacity: 1; }

/* Mobile drag hint */
.dd-instructions .touch-hint {
  display: none; font-size: 0.8rem; color: #7c3aed; font-style: italic;
}
@media (pointer: coarse) {
  .dd-instructions .touch-hint { display: inline; }
  .drag-card { padding: 14px 16px; min-height: 48px; }
}

/* ============================================================
   ANIMATION UTILITIES
   ============================================================ */
.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.bounce-in {
  animation: bounceIn 0.6s cubic-bezier(0.68,-0.55,0.265,1.55) forwards;
}
@keyframes bounceIn {
  from { opacity: 0; transform: scale(0.3); }
  50%  { transform: scale(1.1); }
  to   { opacity: 1; transform: scale(1); }
}

.shake {
  animation: shake 0.5s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}
