/* =========================================================
   Real World Testing Center — Stylesheet
   Based on Black Intervention Learning Club theme
   Dark luxury theme with gold accents
   ========================================================= */

/* ── CSS VARIABLES ── */
:root {
  --bg: #0d0d0d;
  --bg2: #141414;
  --bg3: #1e1e1e;
  --card: #1a1816;
  --text: #ece5d8;
  --muted: #9a9080;
  --cream: #faf5eb;
  --gold: #c8a84e;
  --gold2: #a08530;
  --red: #8b2020;
  --green: #4db84d;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  --max-w: 1200px;
  --max: 720px;
  --pad: clamp(1rem, 5vw, 3rem);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--cream);
}
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--cream); }

::selection { background: var(--gold); color: var(--bg); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.5rem; }
li { margin-bottom: .4rem; }


/* ── PAGE LAYOUT ── */
.page-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--pad);
}

.page-wrap--wide {
  max-width: var(--max-w);
}

.page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.page-header h1 { margin-bottom: .5rem; }
.page-header p { color: var(--muted); font-size: 1rem; }


/* ── HEADER / NAVIGATION ── */
.club-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, .95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 168, 78, .08);
}

.club-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.club-wordmark {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: .28em;
  color: var(--gold);
  text-transform: uppercase;
}
.club-wordmark a { color: inherit; }
.club-wordmark a:hover { color: var(--cream); }

.club-nav {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}
.club-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.club-nav a:hover,
.club-nav a.active { color: var(--gold); }

.club-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.club-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  margin: 5px 0;
  transition: .3s;
}


/* ── SITE HEADER / NAV (used in HTML) ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, .95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 168, 78, .08);
}
.site-header .container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}
.wordmark {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: .28em;
  color: var(--gold);
  text-transform: uppercase;
}
.wordmark:hover { color: var(--cream); }
.site-nav {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}
.site-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.site-nav a:hover,
.site-nav a.active { color: var(--gold); }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  margin: 5px 0;
  transition: .3s;
}

/* ── SITE FOOTER ── */
.site-footer {
  border-top: 1px solid rgba(200, 168, 78, .08);
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
}
.site-footer .container { max-width: var(--max-w); margin: 0 auto; }
.site-footer p {
  font-size: .8rem;
  color: var(--muted);
  margin: 0;
  margin-bottom: .25rem;
}
.site-footer a { color: var(--gold); font-size: .8rem; }


/* ── FORMS ── */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: .4rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: .85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cream);
  background: var(--bg3);
  border: 1px solid rgba(200, 168, 78, .15);
  border-radius: 6px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input::placeholder { color: var(--muted); opacity: .6; }
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 168, 78, .12);
}

.form-error {
  font-size: .85rem;
  color: var(--red);
  margin-top: .3rem;
}

.form-hint {
  font-size: .82rem;
  color: var(--muted);
  margin-top: .25rem;
}


/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 2rem;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bg);
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, opacity .2s;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(200, 168, 78, .3);
  color: var(--bg);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.8rem;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-secondary:hover {
  background: var(--gold);
  color: var(--bg);
}

.btn-disabled,
.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-sm {
  padding: .5rem 1.2rem;
  font-size: .82rem;
}

.btn-block {
  width: 100%;
}


/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid rgba(200, 168, 78, .1);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color .2s, box-shadow .2s;
}
.card:hover {
  border-color: rgba(200, 168, 78, .25);
}

.upgrade-card {
  background: var(--card);
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 0 30px rgba(200, 168, 78, .08);
}
.upgrade-card h3 { color: var(--gold); margin-bottom: .75rem; }


/* ── QUIZ STYLES ── */
.quiz-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--pad);
}

.quiz-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(200, 168, 78, .1);
}
.quiz-header h2 { font-size: 1.4rem; margin-bottom: .25rem; }
.quiz-header .round-label {
  font-size: .85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--bg3);
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold2), var(--gold));
  border-radius: 4px;
  transition: width .4s ease;
}

/* Progress dots — 10 rounds */
.progress-dots {
  display: flex;
  justify-content: center;
  gap: .6rem;
  margin: 1rem 0;
}
.progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--gold2);
  background: transparent;
  transition: background .3s, border-color .3s;
}
.progress-dot--completed {
  background: var(--gold);
  border-color: var(--gold);
}
.progress-dot--current {
  border-color: var(--gold);
  box-shadow: 0 0 6px rgba(200, 168, 78, .4);
}
.progress-dot--future {
  border-color: rgba(200, 168, 78, .2);
}

/* Question card */
.question-card {
  background: var(--card);
  border: 1px solid rgba(200, 168, 78, .15);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.question-number {
  font-size: .8rem;
  color: var(--gold2);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .75rem;
}

.question-text {
  font-family: var(--font-head);
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

/* Answer choices */
.answer-choices {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.answer-choice {
  background: var(--bg3);
  border: 1px solid rgba(200, 168, 78, .08);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}
.answer-choice:hover {
  border-color: var(--gold);
}
.answer-choice--selected {
  border-color: var(--gold);
  background: rgba(200, 168, 78, .08);
}
.answer-correct {
  background: rgba(77, 184, 77, .15);
  border-color: var(--green);
  color: var(--cream);
}
.answer-incorrect {
  background: rgba(139, 32, 32, .2);
  border-color: var(--red);
  color: var(--cream);
}

/* Explanation box */
.explanation-box {
  background: var(--bg2);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--muted);
  animation: fadeSlideIn .3s ease;
}
.explanation-box strong { color: var(--cream); }

/* Round summary */
.round-summary {
  text-align: center;
  padding: 2rem;
  background: var(--card);
  border: 1px solid rgba(200, 168, 78, .15);
  border-radius: 10px;
  margin: 1.5rem 0;
}
.round-summary .score-display {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  margin: .5rem 0;
}
.round-summary .score-label {
  font-size: .85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* Quiz complete */
.quiz-complete {
  text-align: center;
  padding: 3rem 2rem;
}
.quiz-complete h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.quiz-complete .final-score {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin: 1rem 0;
}
.quiz-complete .final-label {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}


/* ── DASHBOARD STYLES ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid rgba(200, 168, 78, .1);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}
.stat-card .stat-number {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1.1;
}
.stat-card .stat-label {
  font-size: .78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .35rem;
}

/* Progress tracker — 52-item master article grid */
.progress-tracker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 6px;
  margin: 1.5rem 0;
}
.progress-cell {
  aspect-ratio: 1;
  border-radius: 6px;
  border: 1px solid rgba(200, 168, 78, .12);
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  color: var(--muted);
  transition: background .2s, border-color .2s;
  cursor: default;
}
.progress-cell--done {
  background: rgba(200, 168, 78, .15);
  border-color: var(--gold);
  color: var(--gold);
}
.progress-cell--current {
  border-color: var(--gold);
  box-shadow: 0 0 8px rgba(200, 168, 78, .25);
  color: var(--cream);
}

/* Article history */
.article-history {
  list-style: none;
  padding: 0;
}
.article-history li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .85rem 1rem;
  border-bottom: 1px solid rgba(200, 168, 78, .06);
  margin: 0;
}
.article-history li:last-child { border-bottom: none; }
.article-history .history-title {
  font-weight: 600;
  color: var(--cream);
  font-size: .95rem;
}
.article-history .history-score {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold);
  font-size: 1.1rem;
}
.article-history .history-date {
  font-size: .78rem;
  color: var(--muted);
}


/* ── CHECKOUT / PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.price-card {
  background: var(--card);
  border: 1px solid rgba(200, 168, 78, .1);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.price-card:hover {
  transform: translateY(-2px);
}

.price-highlight {
  border: 2px solid var(--gold);
  box-shadow: 0 0 40px rgba(200, 168, 78, .1);
  position: relative;
}
.price-highlight::before {
  content: 'BEST VALUE';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--bg);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  padding: .25rem .8rem;
  border-radius: 20px;
}

.price-amount {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--cream);
  line-height: 1;
  margin: 1rem 0 .25rem;
}
.price-amount span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.price-period {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.price-features {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 1.5rem;
}
.price-features li {
  padding: .4rem 0;
  padding-left: 1.4rem;
  position: relative;
  font-size: .92rem;
  color: var(--text);
}
.price-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}


/* ── CROSS-SELL CTA ── */
.cta-banner {
  background: var(--bg2);
  border: 1px solid rgba(200, 168, 78, .1);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0;
}
.cta-banner p {
  font-size: .9rem;
  color: var(--muted);
  margin: 0;
}
.cta-banner a { white-space: nowrap; }


/* ── ALERTS / MESSAGES ── */
.alert {
  padding: .85rem 1.15rem;
  border-radius: 8px;
  font-size: .92rem;
  margin-bottom: 1rem;
  border: 1px solid;
}
.alert-success {
  background: rgba(77, 184, 77, .1);
  border-color: rgba(77, 184, 77, .25);
  color: var(--green);
}
.alert-error {
  background: rgba(139, 32, 32, .15);
  border-color: rgba(139, 32, 32, .3);
  color: #e05555;
}
.alert-info {
  background: rgba(200, 168, 78, .08);
  border-color: rgba(200, 168, 78, .15);
  color: var(--gold);
}


/* ── LOADING ── */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(200, 168, 78, .15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.spinner-sm {
  width: 18px;
  height: 18px;
  border-width: 2px;
  margin: 0;
  display: inline-block;
  vertical-align: middle;
}

.skeleton {
  background: linear-gradient(90deg, var(--bg3) 25%, rgba(200, 168, 78, .06) 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease infinite;
  border-radius: 6px;
  height: 1em;
  margin-bottom: .5rem;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }


/* ── FOOTER ── */
.club-footer {
  border-top: 1px solid rgba(200, 168, 78, .08);
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
}
.club-footer p {
  font-size: .8rem;
  color: var(--muted);
  margin: 0;
}
.club-footer a { color: var(--gold); font-size: .8rem; }


/* ── AUTH PAGES ── */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--pad);
}

.auth-card {
  background: var(--card);
  border: 1px solid rgba(200, 168, 78, .12);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.auth-card h1 {
  font-size: 1.6rem;
  margin-bottom: .5rem;
}
.auth-card p {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 1.5rem;
}
.auth-card .form-group { text-align: left; }
.auth-card .auth-link {
  display: block;
  margin-top: 1rem;
  font-size: .85rem;
  color: var(--muted);
}
.auth-card .auth-link a { color: var(--gold); }


/* ── SUBSCRIPTION BADGES ── */
.badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 4px;
  vertical-align: middle;
}
.badge-free {
  background: var(--bg3);
  color: var(--muted);
  border: 1px solid rgba(200, 168, 78, .1);
}
.badge-premium {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--bg);
}


/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
  animation: fadeIn .2s ease;
}

.modal-content {
  background: var(--card);
  border: 1px solid rgba(200, 168, 78, .15);
  border-radius: 12px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-content h3 { margin-bottom: 1rem; }
.modal-close {
  float: right;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color .2s;
}
.modal-close:hover { color: var(--cream); }

.modal-actions {
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}


/* ── QUIZ RESULTS BREAKDOWN ── */
.results-summary {
  display: flex;
  justify-content: space-around;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: .9rem;
}
.breakdown-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .6rem;
}
.breakdown-label {
  min-width: 70px;
  font-size: .85rem;
  color: var(--muted);
}
.breakdown-bar {
  flex: 1;
  height: 6px;
  background: var(--bg3);
  border-radius: 4px;
  overflow: hidden;
}
.breakdown-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold2), var(--gold));
  border-radius: 4px;
  transition: width .4s ease;
}
.breakdown-score {
  min-width: 40px;
  text-align: right;
  font-size: .85rem;
  color: var(--gold);
  font-weight: 600;
}
.review-question-num {
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: .4rem;
}
.review-status-icon { margin-left: .5rem; }
.review-correct .review-status-icon { color: var(--green); }
.review-wrong .review-status-icon { color: var(--red); }
.review-question-text {
  font-size: .95rem;
  color: var(--cream);
  margin-bottom: .5rem;
  line-height: 1.5;
}
.review-answers {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  font-size: .85rem;
}
.answer-correct { color: var(--green); }
.answer-wrong { color: var(--red); }
.btn-explanation {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-size: .8rem;
  padding: .5rem 0;
  text-decoration: underline;
}
.explanation-text {
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.6;
  padding: .5rem;
  background: var(--bg2);
  border-radius: 6px;
  margin-top: .25rem;
}
.question-breakdown { margin-top: 2rem; }
.question-breakdown h3 { margin-bottom: 1rem; }
.question-review-item {
  background: var(--card);
  border: 1px solid rgba(200, 168, 78, .1);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: .75rem;
  border-left: 3px solid transparent;
}
.review-correct { border-left-color: var(--green); }
.review-wrong { border-left-color: var(--red); }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: .95rem;
}
.empty-state a { color: var(--gold); }


/* ── UTILITY CLASSES ── */
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.text-cream { color: var(--cream); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }


/* ── ANIMATIONS ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn .3s ease; }
.fade-slide-in { animation: fadeSlideIn .3s ease; }


/* ── RESPONSIVE: TABLET (768px) ── */
@media (max-width: 768px) {
  .site-header .container { padding: .85rem 1.25rem; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, .98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(200, 168, 78, .1);
    padding: 1.25rem 2rem;
    gap: 1rem;
  }
  .menu-toggle { display: block; }

  .club-header-inner { padding: .85rem 1.25rem; }

  .club-nav { display: none; }
  .club-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, .98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(200, 168, 78, .1);
    padding: 1.25rem 2rem;
    gap: 1rem;
  }
  .club-menu-toggle { display: block; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }

  .cta-banner {
    flex-direction: column;
    text-align: center;
  }

  .modal-content { padding: 1.5rem; }
}


/* ── RESPONSIVE: MOBILE (480px) ── */
@media (max-width: 480px) {
  body { font-size: 1rem; }

  .page-wrap { padding: 1.25rem 1rem; }

  .club-wordmark { font-size: .95rem; letter-spacing: .2em; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: .65rem; }
  .stat-card { padding: 1rem; }
  .stat-card .stat-number { font-size: 1.8rem; }

  .question-card { padding: 1.25rem; }
  .question-text { font-size: 1.1rem; }
  .answer-choice { padding: .85rem 1rem; }

  .quiz-complete .final-score { font-size: 3rem; }

  .progress-tracker { grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 4px; }

  .price-amount { font-size: 2.2rem; }

  .auth-card { padding: 1.75rem 1.25rem; }

  .modal-actions { flex-direction: column; }
  .modal-actions .btn-primary,
  .modal-actions .btn-secondary { width: 100%; }
}


/* =========================================================
   RWTC ADDITIONS — Testing Center specific styles
   ========================================================= */

/* ── TEST MODE BANNER ── */
#test-mode-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ff6b00;
  color: #fff;
  text-align: center;
  padding: 8px;
  font-weight: bold;
  z-index: 99999;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}


/* ── SKELETON LOADERS ── */
.skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 8px;
}
.skeleton-card {
  height: 120px;
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 12px;
  margin-bottom: 16px;
}
.skeleton-text {
  height: 16px;
  width: 60%;
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
  margin: 8px 0;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* ── PRINT STYLES ── */
@media print {
  .site-header, .site-footer, nav, .cta-button, .share-btn, .print-btn,
  #test-mode-banner, .toast-notification { display: none !important; }
  body { background: #fff !important; color: #000 !important; padding: 20px !important; }
  .container { max-width: 100% !important; }
  .results-section { border: 1px solid #ccc; padding: 20px; }
  .question-review { page-break-inside: avoid; }
  .question-review.correct { border-left: 4px solid #2ecc71; }
  .question-review.incorrect { border-left: 4px solid #e74c3c; }
}


/* ── ACHIEVEMENT / BADGE STYLES ── */
.streak-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.streak-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(200,168,78,0.2);
  border-radius: 12px;
  padding: 20px 24px;
  flex: 1;
  min-width: 150px;
}
.streak-flame {
  font-size: 32px;
  animation: flame-flicker 1s ease-in-out infinite alternate;
}
@keyframes flame-flicker {
  0% { transform: scale(1) rotate(-2deg); }
  100% { transform: scale(1.1) rotate(2deg); }
}
.streak-number {
  font-size: 28px;
  font-weight: 700;
  color: #c8a84e;
}
.streak-label {
  font-size: 13px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.badge-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.badge-card:hover {
  transform: translateY(-2px);
}
.badge-card.earned {
  border-color: rgba(200,168,78,0.5);
  background: rgba(200,168,78,0.08);
}
.badge-card.locked {
  opacity: 0.5;
  filter: grayscale(0.5);
}
.badge-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.badge-name {
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  margin-bottom: 4px;
}
.badge-desc {
  font-size: 13px;
  color: #999;
  margin-bottom: 8px;
}
.badge-date {
  font-size: 12px;
  color: #c8a84e;
}
.badge-locked-text {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* ── CATALOG STYLES ── */
.catalog-controls {
  margin-bottom: 24px;
}
.search-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s;
}
.search-input:focus {
  border-color: #c8a84e;
}
.search-input::placeholder {
  color: #777;
}
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  background: transparent;
  color: #ccc;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  white-space: nowrap;
}
.pill:hover {
  border-color: #c8a84e;
  color: #c8a84e;
}
.pill.active {
  background: #c8a84e;
  color: #0d0d0d;
  border-color: #c8a84e;
  font-weight: 600;
}
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.quiz-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.quiz-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200,168,78,0.4);
  background: rgba(255,255,255,0.08);
}
.quiz-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.category-badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #c8a84e;
  background: rgba(200,168,78,0.15);
  padding: 4px 10px;
  border-radius: 12px;
}
.difficulty-badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 12px;
}
.diff-easy { background: rgba(46,204,113,0.15); color: #2ecc71; }
.diff-medium { background: rgba(241,196,15,0.15); color: #f1c40f; }
.diff-hard { background: rgba(231,76,60,0.15); color: #e74c3c; }
.diff-new { background: rgba(52,152,219,0.15); color: #3498db; }
.quiz-card-title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 12px;
}
.quiz-card-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #888;
}
.quiz-card-score {
  margin-top: 10px;
  font-size: 14px;
  color: #c8a84e;
  font-weight: 600;
}
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #888;
  font-size: 16px;
}


/* ── PER-QUESTION REVIEW STYLES ── */
.question-review {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  border-left: 4px solid transparent;
}
.question-review.correct {
  border-left-color: #2ecc71;
}
.question-review.incorrect {
  border-left-color: #e74c3c;
}
.question-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.question-number {
  font-weight: 600;
  color: #ccc;
  font-size: 13px;
}
.question-result-icon {
  font-size: 18px;
}
.question-text {
  color: #eee;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.answer-line {
  font-size: 13px;
  padding: 4px 0;
}
.answer-line.user-correct {
  color: #2ecc71;
}
.answer-line.user-wrong {
  color: #e74c3c;
}
.answer-line.correct-answer {
  color: #2ecc71;
  font-weight: 600;
}
.explanation-toggle {
  background: none;
  border: none;
  color: #c8a84e;
  cursor: pointer;
  font-size: 13px;
  padding: 6px 0;
  text-decoration: underline;
}
.explanation-content {
  display: none;
  color: #aaa;
  font-size: 13px;
  line-height: 1.6;
  padding: 10px;
  margin-top: 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
}
.explanation-content.show {
  display: block;
}


/* ── TOAST NOTIFICATIONS ── */
.toast-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #c8a84e;
  color: #0d0d0d;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 99998;
  white-space: nowrap;
}
.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ── CATEGORY PROGRESS BARS ── */
.category-progress {
  margin-top: 24px;
}
.category-progress-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.category-progress-label {
  font-size: 14px;
  color: #ccc;
  min-width: 100px;
}
.category-progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}
.category-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #c8a84e, #e0c068);
  border-radius: 4px;
  transition: width 0.6s ease;
}
.category-progress-pct {
  font-size: 13px;
  color: #c8a84e;
  min-width: 40px;
  text-align: right;
}


/* ── TIME DISPLAY ── */
.time-display {
  font-size: 14px;
  color: #c8a84e;
  font-weight: 600;
  letter-spacing: 1px;
}
.results-time {
  font-size: 16px;
  color: #c8a84e;
  margin: 8px 0;
}


/* ── PRINT BUTTON ── */
.print-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #ccc;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}
.print-btn:hover {
  border-color: #c8a84e;
  color: #c8a84e;
}


/* ── RESPONSIVE: RWTC ADDITIONS (768px) ── */
@media (max-width: 768px) {
  .streak-stats { flex-direction: column; }
  .badge-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .quiz-grid { grid-template-columns: 1fr; }
  .category-pills { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .streak-card { padding: 16px; }
}
