/* ==========================================================================
   QuizEarn — Design System
   Theme: bold "trivia-poster" identity — saturated blue/violet fields,
   gold & orange sticker-shadow buttons, rounded display type.
   Inspired by: quiz/trivia social graphics (sunburst blue, tilted yellow
   tag on violet, cream card with offset-shadow answer pills).
   ========================================================================== */


   :root {
  /* Brand */
  --qe-primary: #2A4EE0;        /* poster blue */
  --qe-primary-rgb: 42, 78, 224;
  --qe-secondary: #6C2BD9;      /* poster violet */
  --qe-secondary-rgb: 108, 43, 217;
  --qe-accent: #FFC93C;         /* poster gold — main CTA / highlight color */
  --qe-accent-rgb: 255, 201, 60;
  --qe-accent-2: #FF9C3F;       /* poster orange — secondary warm accent */
  --qe-accent-2-rgb: 255, 156, 63;

  /* Semantic (kept independent of brand accent so correct/wrong always read clearly) */
  --qe-success: #17C3A2;
  --qe-success-rgb: 23, 195, 162;
  --qe-danger: #FF5A63;
  --qe-danger-rgb: 255, 90, 99;

  --qe-dark: #170B36;           /* deep indigo-black — text, footer, shadows */
  --qe-dark-rgb: 23, 11, 54;
  --qe-light: #F7F6FF;          /* faint lavender-white page background */

  --qe-gradient: linear-gradient(135deg, #2A4EE0 0%, #6C2BD9 100%);
  --qe-gradient-accent: linear-gradient(135deg, #FFC93C 0%, #FF9C3F 100%);

  --qe-gold: #FFC93C;
  --qe-silver: #C0C0C0;
  --qe-bronze: #CD7F32;

  /* "How it works" step badges */
  --qe-step-1: #FFC93C;   
  --qe-step-2: #FFC93C;   
  --qe-step-3: #FFC93C;   
  --qe-step-4: #FFC93C;   

  --qe-radius: 0.85rem;
  --qe-radius-sm: 0.6rem;
  --qe-shadow-sm: 0 2px 10px rgba(23, 11, 54, 0.07);
  --qe-shadow-md: 0 10px 26px rgba(23, 11, 54, 0.12);
  --qe-shadow-lg: 0 18px 44px rgba(23, 11, 54, 0.16);

  /* "Sticker" shadow — hard, unblurred offset used on buttons, quiz
     options and badges. This crisp cut-paper shadow is the page's
     signature, echoing the die-cut answer pills in the reference posters. */
  --qe-shadow-sticker: 0.28rem 0.28rem 0 var(--qe-dark);
  --qe-shadow-sticker-sm: 0.16rem 0.16rem 0 var(--qe-dark);

  --qe-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--qe-dark);
  background-color: var(--qe-light);
  font-weight: 400;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.font-heading {
  font-family: 'Baloo 2', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Extra-bold display headlines — the poster's chunky, rounded punch */
h1, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }

a { color: var(--qe-primary); text-decoration: none; }

::selection { background: var(--qe-primary); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 3px solid var(--qe-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================================
   Utility / text
   ========================================================================== */

.text-gradient {
  background: #2A4EE0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-gradient-primary { background: var(--qe-gradient); }
.bg-soft-primary { background: rgba(var(--qe-primary-rgb), 0.10); }
.bg-soft-secondary { background: rgba(var(--qe-secondary-rgb), 0.10); }
.bg-soft-accent { background: rgba(var(--qe-accent-rgb), 0.10); }

.text-primary-qe { color: var(--qe-primary) !important; }
.text-secondary-qe { color: var(--qe-secondary) !important; }
.text-accent-qe { color: #B9821A !important; } /* darker gold shade so it stays legible as text, not just a fill */

/* Section eyebrow — a tilted gold "sticker tag", the recurring badge
   motif borrowed straight from the reference posters' corner labels. */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Baloo 2', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--qe-dark);
  background: var(--qe-accent);
  padding: 0.45rem 1rem;
  border-radius: 50px;
  box-shadow: var(--qe-shadow-sticker-sm);
  transform: rotate(-3deg);
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.qe-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
  padding: 0.8rem 0;
  background: rgba(247, 246, 255, 0.7);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  transition: all var(--qe-transition);
  border-bottom: 1px solid transparent;
}

.qe-navbar.scrolled {
  padding: 0.6rem 0;
  background: rgba(247, 246, 255, 0.92);
  box-shadow: var(--qe-shadow-sm);
  border-bottom-color: rgba(23, 11, 54, 0.06);
}

.qe-navbar .navbar-brand {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  
}

.qe-navbar .navbar-brand .brand-mark img {
  display: inline-block;
  width:150px;
  height: 45px;
  vertical-align: middle;
  position: relative;
 
 
}

.qe-nav-link {
  position: relative;
  font-weight: 500;
  color: var(--qe-dark) !important;
  padding: 0.5rem 1rem !important;
}
.qe-nav-link:hover{
  border-radius: 10px;
}

.qe-navbar .navbar-toggler {
  border: none;
  box-shadow: none;
  padding: 0.35rem 0.5rem;
}
.qe-navbar .navbar-toggler:focus { box-shadow: none; }

/* ==========================================================================
   Nav sidebar (offcanvas, slides in from the right below lg)
   ========================================================================== */

.qe-offcanvas {
  width: min(300px, 82vw);
  height: 100vh;
  background: var(--qe-light);
}
.qe-offcanvas .offcanvas-header {
  border-bottom: 1px solid rgba(23, 11, 54, 0.08);
  padding: 1.1rem 1.25rem;
}
.qe-offcanvas .offcanvas-title {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
}
.qe-offcanvas .offcanvas-body { padding: 0.25rem 1.25rem 1.25rem; display: flex; }
.qe-offcanvas .btn-qe-primary { width: 100%; text-align: center; }

/* Below lg the offcanvas becomes the real sidebar: plain list rows with
   hairline dividers (no pill hover fill), like a simple menu sheet. */
@media (max-width: 991.98px) {
  .qe-offcanvas .offcanvas-body { flex-direction: column; }
  .qe-offcanvas .navbar-nav { gap: 0; }
  .qe-offcanvas .nav-item { border-bottom: 1px solid rgba(23, 11, 54, 0.08); }
  .qe-offcanvas .qe-nav-link {
    padding: 0.95rem 0.15rem !important;
    border-radius: 0;
    font-size: 1.02rem;
    font-weight: 600;
    display: block;
  }
  .qe-offcanvas .qe-nav-link:hover,
  .qe-offcanvas .qe-nav-link:focus {
    background: transparent;
    color: var(--qe-primary) !important;
    padding-left: 0.35rem !important;
  }
}
@media (min-width: 992px) {
  .qe-offcanvas .qe-nav-link {
    transition: background 0.12s ease, color 0.12s ease;
  }
  .qe-offcanvas .qe-nav-link:hover,
  .qe-offcanvas .qe-nav-link:focus {
    background: rgba(var(--qe-primary-rgb), 0.08);
    color: var(--qe-primary) !important;
  }
}

/* Bottom CTA stack — two full-width buttons pinned under the link list,
   mobile only (desktop keeps the single inline Dashboard button). */
.qe-offcanvas-cta {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(23, 11, 54, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  transition: transform var(--qe-transition), box-shadow var(--qe-transition), background var(--qe-transition);
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: scale(1.02); }
.btn:active { transform: scale(0.98); }

.btn-qe-primary {
  background: var(--qe-gradient);
  border: none;
  color: #fff;
  box-shadow: var(--qe-shadow-sticker);
}
.btn-qe-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0.36rem 0.36rem 0 var(--qe-dark);
}
.btn-qe-primary:active { transform: translateY(1px); box-shadow: var(--qe-shadow-sticker-sm); }

.btn-qe-accent {
  background: var(--qe-gradient-accent);
  border: none;
  color: var(--qe-dark);
  box-shadow: var(--qe-shadow-sticker);
}
.btn-qe-accent:hover {
  color: var(--qe-dark);
  transform: translateY(-2px);
  box-shadow: 0.36rem 0.36rem 0 var(--qe-dark);
}
.btn-qe-accent:active { transform: translateY(1px); box-shadow: var(--qe-shadow-sticker-sm); }

.btn-qe-outline {
  background: transparent;
  border: 2px solid var(--qe-primary);
  color: var(--qe-primary);
}
.btn-qe-outline:hover { background: var(--qe-primary); color: #fff; }

.btn-qe-success {
  background: var(--qe-success);
  border: none;
  color: #fff;
  box-shadow: var(--qe-shadow-sticker);
}
.btn-qe-success:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0.36rem 0.36rem 0 var(--qe-dark);
}
.btn-qe-success:active { transform: translateY(1px); box-shadow: var(--qe-shadow-sticker-sm); }

/* On the vivid hero field, the outline button flips to white for contrast
   and the primary CTA flips to gold — the poster's highest-contrast pairing */
.qe-hero .btn-qe-outline { border-color: rgba(255,255,255,0.7); color: #fff; }
.qe-hero .btn-qe-outline:hover { background: #fff; color: var(--qe-primary); }
.qe-hero .btn-qe-primary { background: var(--qe-gradient-accent); color: var(--qe-dark); }
.qe-hero .btn-qe-primary:hover { color: var(--qe-dark); }

.btn-qe-pulse { animation: qePulse 2.4s ease-in-out infinite; }
@keyframes qePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--qe-accent-rgb), 0.5); }
  50% { box-shadow: 0 0 0 14px rgba(var(--qe-accent-rgb), 0); }
}

/* ripple */
.btn-ripple { position: relative; overflow: hidden; }
.ripple-el {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: qeRipple 0.6s linear;
  background: rgba(255,255,255,0.55);
  pointer-events: none;
}
@keyframes qeRipple { to { transform: scale(3); opacity: 0; } }

.btn .spinner-border-sm { display: none; }
.btn.is-loading .btn-label { visibility: hidden; }
.btn.is-loading .spinner-border-sm {
  display: inline-block;
  position: absolute; left: 50%; top: 50%;
  margin-left: -0.5rem; margin-top: -0.5rem;
}

/* ==========================================================================
   Hero
   A full-bleed color field with a faint sunburst — the direct nod to
   the trivia-poster references — replaces the previous light background.
   ========================================================================== */

.qe-hero {
  position: relative;
  padding: 8rem 0 3.5rem;
  overflow: hidden;
  background:
    repeating-conic-gradient(from 8deg at 78% -10%, rgba(255,255,255,0.05) 0deg 5deg, transparent 5deg 11deg),
    radial-gradient(circle at 15% 110%, rgba(255,201,60,0.16), transparent 45%),
    linear-gradient(155deg, #2E52E4 0%, #4636CC 45%, var(--qe-secondary) 100%);
}


.qe-hero-content { position: relative; z-index: 1; }

/* Text inside the hero switches to light/white for contrast against the
   color field, and the gradient number/word treatment flips to gold. */
.qe-hero h1 { color: #fff; }
.qe-hero .lead { color: rgba(255,255,255,0.85); }
.qe-hero .text-muted { color: rgba(255,255,255,0.68) !important; }
.qe-hero .text-gradient {
  background: linear-gradient(120deg, #FFEBB0, var(--qe-accent) 65%);
  -webkit-background-clip: text;
  background-clip: text;
}

.qe-typewriter {
  display: inline-block;
  border-right: 3px solid var(--qe-accent);
  white-space: nowrap;
  overflow: hidden;
  animation: qeCaret 0.8s step-end infinite;
}
@keyframes qeCaret { from, to { border-color: transparent; } 50% { border-color: var(--qe-accent); } }

/* Trophy visual — big, playful, slowly turning. Desktop-only (hidden via
   d-none d-lg-block on the wrapping column in landing.html), so mobile
   and tablet get the freed-up width for the text column instead. */
.qe-hero-trophy {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  perspective: 900px;
}
.qe-hero-trophy-img {
  width: 100%;
  max-width: 550px;
  filter: drop-shadow(0 26px 44px rgba(23, 11, 54, 0.35));
  animation: qeTrophyTurn 9s ease-in-out infinite;
}
@keyframes qeTrophyTurn {
  0%, 100% { transform: rotateY(-8deg) translateY(0); }
  50%      { transform: rotateY(8deg) translateY(-20px); }
}

/* Hero gets shorter on phones/tablets now that the trophy column is hidden */
@media (max-width: 767.98px) {
  .qe-hero { padding: 6.5rem 0 3.5rem; }
}

/* ==========================================================================
   Cards
   ========================================================================== */

.qe-card {
  border: 1px solid rgba(23, 11, 54, 0.08);
  border-radius: var(--qe-radius);
  background: #fff;
  transition: transform var(--qe-transition), box-shadow var(--qe-transition), border-color var(--qe-transition);
  position: relative;
}
.qe-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--qe-shadow-md);
  border-color: transparent;
}
.qe-card::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--qe-transition);
  pointer-events: none;
}
.qe-card:hover::before { opacity: 1; }

/* Compact internal rhythm — tight title/description pairing like a spec card */
.qe-card h5, .qe-card h6 { font-size: 1.02rem; margin-bottom: 0.3rem; line-height: 1.3; }
.qe-card p:last-child { margin-bottom: 0; }

.qe-step-badge {
  width: 2.35rem; height: 2.35rem;
  border-radius: 50%;
  background: var(--qe-gradient-accent);
  color: var(--qe-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0.12rem 0.12rem 0 rgba(23,11,54,0.35);
  transition: transform var(--qe-transition);
}
.qe-card:hover .qe-step-badge { transform: rotate(-8deg) scale(1.08); }

.qe-step-badge-1 { background: var(--qe-step-1); }
.qe-step-badge-2 { background: var(--qe-step-2); }
.qe-step-badge-3 { background: var(--qe-step-3); }
.qe-step-badge-4 { background: var(--qe-step-4); }

.qe-icon-circle {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.7rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: transform var(--qe-transition);
}
.qe-card:hover .qe-icon-circle { transform: scale(1.1) rotate(6deg); }

/* Small pill tag — compact metadata chip, e.g. "10 questions / day" */
.qe-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 50px;
  background: rgba(var(--qe-primary-rgb), 0.1);
  color: var(--qe-primary);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.qe-form-floating { position: relative; margin-bottom: 1.25rem; }
.qe-form-floating .form-control,
.qe-form-floating .form-select {
  border-radius: 0.75rem;
  border: 1.5px solid rgba(23, 11, 54, 0.12);
  padding: 1rem 0.9rem 0.4rem;
  height: 3.4rem;
  transition: box-shadow var(--qe-transition), border-color var(--qe-transition);
}
.qe-form-floating .form-control:focus,
.qe-form-floating .form-select:focus {
  border-color: var(--qe-primary);
  box-shadow: 0 0 0 4px rgba(var(--qe-primary-rgb), 0.15);
}
.qe-form-floating label { color: rgba(23, 11, 54, 0.55); }

.qe-form-floating .form-control.is-valid { border-color: var(--qe-success); }
.qe-form-floating .form-control.is-invalid { border-color: var(--qe-danger); }

.valid-feedback, .invalid-feedback { font-weight: 500; }

.qe-dropzone {
  border: 2px dashed rgba(var(--qe-primary-rgb), 0.35);
  border-radius: var(--qe-radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: rgba(var(--qe-primary-rgb), 0.03);
  transition: all var(--qe-transition);
  cursor: pointer;
}
.qe-dropzone.dragover {
  border-color: var(--qe-primary);
  background: rgba(var(--qe-primary-rgb), 0.08);
  transform: scale(1.01);
}

/* ==========================================================================
   Leaderboard
   ========================================================================== */

.qe-podium { display: flex; align-items: flex-end; justify-content: center; gap: 1rem; }
.qe-podium-item { text-align: center; width: 30%; max-width: 180px; }
.qe-podium-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--qe-gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-family: 'Baloo 2', sans-serif;
  margin: 0 auto 0.6rem;
  border: 3px solid #fff;
  box-shadow: var(--qe-shadow-md);
}
.qe-podium-bar {
  border-radius: 0.9rem 0.9rem 0 0;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 0.6rem;
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.4rem;
  color: #fff;
}
.qe-podium-item.gold .qe-podium-bar { height: 130px; background: linear-gradient(180deg, var(--qe-accent), #E0A61F); color: var(--qe-dark); }
.qe-podium-item.silver .qe-podium-bar { height: 100px; background: linear-gradient(180deg, #C0C0C0, #A6A6A6); }
.qe-podium-item.bronze .qe-podium-bar { height: 78px; background: linear-gradient(180deg, #CD7F32, #B06A28); }

.qe-rank-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.7rem 1rem;
  border-radius: var(--qe-radius-sm);
  background: #fff;
  border: 1px solid rgba(23, 11, 54, 0.06);
  margin-bottom: 0.6rem;
  opacity: 0;
  transform: translateY(12px);
  animation: qeRowIn 0.5s ease forwards;
}
@keyframes qeRowIn { to { opacity: 1; transform: translateY(0); } }
.qe-rank-row.qe-me {
  border-color: var(--qe-primary);
  background: rgba(var(--qe-primary-rgb), 0.06);
  box-shadow: 0 0 0 3px rgba(var(--qe-primary-rgb), 0.12);
}
.qe-rank-num { width: 2.2rem; font-family: 'Baloo 2', sans-serif; font-weight: 700; color: var(--qe-primary); }
.qe-rank-pulse { animation: qePulseDot 1.6s ease-in-out infinite; }
@keyframes qePulseDot { 0%,100%{ opacity:1;} 50%{opacity:0.4;} }

/* ==========================================================================
   Quiz interface
   ========================================================================== */

.qe-timer-ring { position: relative; width: 92px; height: 92px; }
.qe-timer-ring svg { transform: rotate(-90deg); }
.qe-timer-ring circle {
  fill: none; stroke-width: 7; stroke-linecap: round;
}
.qe-timer-ring .bg { stroke: rgba(var(--qe-primary-rgb), 0.12); }
.qe-timer-ring .fg { stroke: var(--qe-primary); transition: stroke-dashoffset 1s linear, stroke 0.3s; }
.qe-timer-ring .num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.5rem;
}

/* Answer options — solid gold "sticker" pills with a dark circular letter
   badge and a hard offset shadow, the direct match for the poster's
   answer buttons. Correct/wrong swap to their own semantic colors. */
.qe-option {
  border: none;
  border-radius: 50px;
  padding: 1rem 1.4rem;
  background: var(--qe-accent);
  color: var(--qe-dark);
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex; align-items: center; gap: 0.9rem;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: var(--qe-shadow-sticker);
}
.qe-option:hover {
  transform: translate(-2px, -2px);
  box-shadow: 0.4rem 0.4rem 0 var(--qe-dark);
}
.qe-option:active { transform: translate(0, 0); box-shadow: var(--qe-shadow-sticker-sm); }
.qe-option .qe-opt-letter {
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--qe-dark); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.05rem; flex-shrink: 0;
  transition: all 0.18s ease;
}
.qe-option:hover .qe-opt-letter { transform: scale(1.1) rotate(-6deg); }
.qe-option.correct { background: var(--qe-success); color: #fff; }
.qe-option.correct .qe-opt-letter { background: #fff; color: var(--qe-success); }
.qe-option.wrong { background: var(--qe-danger); color: #fff; }
.qe-option.wrong .qe-opt-letter { background: #fff; color: var(--qe-danger); }

.qe-score-pop { animation: qeScorePop 0.5s ease; }
@keyframes qeScorePop { 0%{ transform: scale(1);} 30%{ transform: scale(1.3); color: var(--qe-success);} 100%{ transform: scale(1);} }

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.qe-accordion .accordion-item {
  border: none;
  border-bottom: 1px solid rgba(23, 11, 54, 0.08);
  background: transparent;
}
.qe-accordion .accordion-button {
  font-family: 'Baloo 2', sans-serif; font-weight: 600;
  background: transparent; box-shadow: none;
  padding: 1.25rem 0.25rem;
}
.qe-accordion .accordion-button:focus { box-shadow: none; }
.qe-accordion .accordion-button::after { display: none; }
.qe-accordion .qe-toggle-icon {
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: rgba(var(--qe-primary-rgb), 0.1);
  display: flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0; margin-left: 1rem;
}
.qe-accordion .qe-toggle-icon::before,
.qe-accordion .qe-toggle-icon::after {
  content: ""; position: absolute; background: var(--qe-primary); transition: transform 0.3s;
}
.qe-accordion .qe-toggle-icon::before { width: 10px; height: 2px; }
.qe-accordion .qe-toggle-icon::after { width: 2px; height: 10px; }
.qe-accordion .accordion-button:not(.collapsed) .qe-toggle-icon::after { transform: rotate(90deg) scaleY(0); }
.qe-accordion .accordion-body { padding: 0 0.25rem 1.5rem; color: rgba(23, 11, 54, 0.7); }

/* ==========================================================================
   Footer
   ========================================================================== */

.qe-footer { background: var(--qe-dark); color: rgba(255,255,255,0.75); }
.qe-footer a { color: rgba(255,255,255,0.75); }
.qe-footer a:hover { color: #fff; }
.qe-social-icon {
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--qe-transition);
}
.qe-social-icon:hover { transform: scale(1.12) translateY(-2px); }

.qe-back-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--qe-gradient-accent); color: var(--qe-dark); border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--qe-shadow-sticker);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all var(--qe-transition);
  z-index: 1020;
  
}
.qe-back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.qe-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.qe-reveal.qe-in { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Misc: stats, progress, toasts, admin
   ========================================================================== */

.qe-stat { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 2.2rem; }

.progress.qe-progress { height: 0.6rem; border-radius: 50px; background: rgba(23, 11, 54, 0.08); }
.progress.qe-progress .progress-bar { background: #2A4EE0; border-radius: 50px; }

.qe-toast-container { z-index: 1080; }

.qe-status-step {
  display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; position: relative;
}
.qe-status-step .dot {
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: #fff; border: 2px solid rgba(23, 11, 54, 0.15);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
  margin-bottom: 0.5rem; transition: all var(--qe-transition); z-index: 1;
}
.qe-status-step.done .dot,
.qe-status-step.active .dot { background: var(--qe-gradient); border-color: transparent; color: #fff; }
.qe-status-step.active .dot { animation: qePulseDot 1.4s ease-in-out infinite; }
.qe-status-track {
  position: absolute; top: 1.2rem; left: -50%; width: 100%; height: 2px; background: rgba(23, 11, 54, 0.12); z-index: 0;
}
.qe-status-step:first-child .qe-status-track { display: none; }
.qe-status-step.done .qe-status-track { background: var(--qe-success); }

.qe-sidebar-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 1rem; border-radius: 0.7rem; color: rgba(255,255,255,0.75); font-weight: 500;
  transition: all var(--qe-transition);
}
.qe-sidebar-link:hover, .qe-sidebar-link.active { background: rgba(255,255,255,0.08); color: #fff; }
.qe-sidebar-link.active { background: var(--qe-gradient); }

.table-qe thead { font-family: 'Baloo 2', sans-serif; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(23, 11, 54, 0.55); }
.table-qe tbody tr { transition: background var(--qe-transition); }
.table-qe tbody tr:hover { background: rgba(var(--qe-primary-rgb), 0.04); }

.qe-loading-dots span {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; margin: 0 2px; animation: qeDotBounce 1.2s ease-in-out infinite;
}
.qe-loading-dots span:nth-child(2) { animation-delay: 0.15s; }
.qe-loading-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes qeDotBounce { 0%,80%,100%{ transform: translateY(0); opacity: 0.4;} 40%{ transform: translateY(-5px); opacity:1;} }