html { outline: 6px solid #ff00ff !important; }

/* Memory Anchor overrides (theme-pro-override.css) */
/* Visually hidden but accessible text (for screen readers) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================
   MEMORY ANCHOR - BOLD & VIBRANT
   WOW-FACTOR DESIGN SYSTEM
   ============================ */

/* ============================
   VIBRANT COLOR PALETTE
   ============================ */
:root {
  /* Rich, saturated backgrounds */
  --bg: #0a0e27;
  --bg-gradient: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #2a1f3a 100%);
  
  /* High-contrast text */
  --text: #ffffff;
  --text-secondary: #e0e7ff;
  --muted: #a5b4fc;
  
  /* Accent colors: deep orange + electric blue */
  --accent-orange: #f97316;
  --accent-orange-soft: rgba(249, 115, 22, 0.16);
  --accent-blue: #60a5fa;
  --accent-blue-soft: rgba(96, 165, 250, 0.18);

  /* Surfaces & borders */
  --surface: rgba(15, 23, 42, 0.45);
  --surface-soft: rgba(15, 23, 42, 0.28);
  --border: rgba(148, 163, 184, 0.20);

  /* Shadows & glows */
  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.8);
  --shadow-hero: 0 30px 90px rgba(15, 23, 42, 0.9);
  --glow-orange: 0 0 60px rgba(249, 115, 22, 0.75);
  --glow-blue: 0 0 80px rgba(59, 130, 246, 0.9);

  /* Rounded corners */
  --radius-lg: 24px;
  --radius-pill: 999px;
}

/* Dark mode tokens (ThemePro toggles html[data-theme="dark"]) */
html[data-theme="dark"] {
  --bg: #020617;
  --bg-gradient: radial-gradient(circle at top, #1e293b 0%, #020617 55%, #020617 100%);
  --text: #f9fafb;
  --text-secondary: #e5e7eb;
  --muted: #9ca3af;
  --surface: rgba(15, 23, 42, 0.44);
  --surface-soft: rgba(15, 23, 42, 0.9);
  --border: rgba(148, 163, 184, 0.5);
  --shadow-soft: 0 18px 70px rgba(0, 0, 0, 0.9);
}

/* ============================
   GLOBAL RESET & BODY
   ============================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #111827 0%, #020617 55%, #020617 100%);
  color: var(--text);
}

/* ============================
   LAYOUT HELPERS
   ============================ */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

/* Fade-in animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeInUp 0.8s ease forwards;
}
.fade-in-up.delay-1 { animation-delay: 0.12s; }
.fade-in-up.delay-2 { animation-delay: 0.18s; }
.fade-in-up.delay-3 { animation-delay: 0.24s; }
.fade-in-up.delay-4 { animation-delay: 0.3s; }
.fade-in-up.delay-5 { animation-delay: 0.36s; }
.fade-in-up.delay-6 { animation-delay: 0.42s; }
.fade-in-up.delay-7 { animation-delay: 0.48s; }

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

/* ============================
   HEADER & NAV
   ============================ */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.55),
    rgba(15, 23, 42, 0.45),
    rgba(15, 23, 42, 0.28),
    transparent
  );
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.7rem 2.0rem !important;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px !important;
  height: 46px !important;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle at 0% 0%, #f59e0b 0%, #f97316 35%, #db2777 80%);
  box-shadow: var(--glow-orange);
  overflow: hidden;
}

.brand-mark img {
  width: 46px !important;
  height: 46px !important;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-name {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.45rem !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #e5e7eb, #bfdbfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.35rem 0.55rem;
}


.nav-list {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.nav-list a {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-list a::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0 0, rgba(249, 115, 22, 0.2), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.2), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-list a:hover::before {
  opacity: 1;
}

.nav-list a:hover {
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
}

/* ============================
   HERO
   ============================ */

.hero {
  padding: 5rem 0 4rem;
  background:
    radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), transparent 50%),
    radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.9), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.3), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.35), transparent 55%),
    #020617;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-copy .eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 3.15rem;
  line-height: 1.1;
  margin: 0 0 1rem;
  background: conic-gradient(from 160deg, #f97316, #fbbf24, #60a5fa, #6366f1, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.cta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.trust-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  position: relative;
  padding: 1.75rem 1.5rem;
  border-radius: 24px;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), transparent 60%),
              radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 60%),
              rgba(15, 23, 42, 0.44);
  box-shadow: var(--shadow-hero);
  border: 1px solid rgba(148, 163, 184, 0.35);
  overflow: hidden;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, rgba(249, 115, 22, 0.5), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.6), transparent 55%);
  box-shadow: var(--glow-blue);
  margin-bottom: 1rem;
}

.hero-pill .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #fbbf24;
  box-shadow: 0 0 16px rgba(251, 191, 36, 1);
}

.hero-pill .text {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-subcopy {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-points li {
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

/* ============================
   BUTTONS
   ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: #0b1120;
  background-image:
    radial-gradient(circle at 0 0, rgba(251, 191, 36, 0.8), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.95), transparent 55%),
    linear-gradient(90deg, #f97316, #ea580c);
  box-shadow: 0 15px 40px rgba(248, 250, 252, 0.25);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-position 0.25s ease;
  background-size: 180% 180%;
  background-position: 10% 0%;
}

.btn.primary {
  /* same as base .btn */
}

.btn.secondary {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.7);
  background-image:
    radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.9), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(30, 64, 175, 0.9), transparent 60%);
  box-shadow: 0 16px 46px rgba(15, 23, 42, 0.9);
}

.btn.ghost {
  color: var(--text-secondary);
  background: transparent;
  border-color: rgba(148, 163, 184, 0.6);
  box-shadow: none;
}

.btn.small {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.btn.full-width,
.btn.primary.full-width {
  width: 100%;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-blue);
  background-position: 90% 100%;
  border-color: rgba(248, 250, 252, 0.8);
}

/* ============================
   CARDS & SURFACES
   ============================ */

.card {
  position: relative;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.12), transparent 60%),
              radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.13), transparent 60%),
              rgba(15, 23, 42, 0.44);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card.glass {
  background: radial-gradient(circle at 0 0, rgba(249, 115, 22, 0.12), transparent 60%),
              radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.16), transparent 60%),
              rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(30px) saturate(165%);
  -webkit-backdrop-filter: blur(30px) saturate(165%);
}

.card.stacked {
  margin-bottom: 1.5rem;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0 0, rgba(249, 115, 22, 0.16), transparent 65%),
              radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.16), transparent 65%);
  opacity: 0.5;
  pointer-events: none;
}

/* ============================
   TYPOGRAPHY UTILS
   ============================ */

h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 2.25rem;
  margin: 0 0 1rem;
  background: linear-gradient(90deg, #e5e7eb, #bfdbfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

.small {
  font-size: 0.85rem;
}

.muted {
  color: var(--muted);
}

/* ============================
   TWO-COLUMN LAYOUTS
   ============================ */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

/* ============================
   QUICK CHECK CARD
   ============================ */

.quick-check-card {
  position: relative;
}

.qc-status-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.qc-status-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.qc-status-value {
  font-size: 0.9rem;
  font-weight: 600;
}

.qc-status-idle {
  color: #22c55e;
}

/* Quick Check image shell */
.qc-image-shell {
  margin: 1rem 0;
  border-radius: 18px;
  background: radial-gradient(circle at 0 0, rgba(251, 191, 36, 0.1), transparent 60%),
              radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.12), transparent 60%),
              rgba(15, 23, 42, 0.44);
  border: 1px solid rgba(148, 163, 184, 0.45);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qc-image-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
}

.qc-image-placeholder::before {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
}

.qc-sparkle {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fbbf24;
  box-shadow: 0 0 24px rgba(251, 191, 36, 1);
}
.qc-watch-yes{
  background: linear-gradient(90deg, rgba(255,179,0,.95), rgba(255,106,0,.95)) !important;
  border: 1px solid rgba(255,180,0,.45) !important;
  color: #0b1020 !important;
  box-shadow: 0 10px 24px rgba(255,145,0,.18) !important;
}

.qc-watch-no{
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color: rgba(255,255,255,.92) !important;
}

body.qc-step5-focus .qc-check-btn{
  position: fixed !important;
  left: 16px !important;
  right: 16px !important;
  bottom: calc(12px + var(--qc-kb, 0px) + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 9999 !important;
}

body.qc-step5-focus .qc-step[data-qc-step="5"]{
  padding-bottom: calc(92px + var(--qc-kb, 0px) + env(safe-area-inset-bottom, 0px)) !important;
}
.qc-location-card .loc-label {
  white-space: normal;
  text-align: center;
  line-height: 1.15;
  font-weight: 600;
  font-size: clamp(0.9rem, 2.4vw, 1rem);
  min-height: 2.6em; /* ensures even height for 2-line labels */
}

/* ============================
   SCENE TRAINER CARD
   ============================ */

.scene-card {
  position: relative;
}

.scene-picker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.scene-picker label {
  font-size: 0.85rem;
  color: var(--muted);
}

.scene-picker select {
  flex: 1;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font-size: 0.9rem;
}

/* Scene audio row */
.scene-audio-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.scene-audio-row label {
  font-size: 0.8rem;
  color: var(--muted);
}

.scene-audio-row select,
.scene-audio-row input[type="range"] {
  flex: 1;
}

/* Scene display */
.scene-display {
  margin: 0.75rem 0 0.75rem;
  border-radius: 20px;
  background: radial-gradient(circle at 0 0, rgba(96, 165, 250, 0.18), transparent 60%),
              radial-gradient(circle at 100% 100%, rgba(249, 115, 22, 0.18), transparent 60%),
              rgba(15, 23, 42, 0.44);
  border: 1px solid rgba(148, 163, 184, 0.45);
  overflow: hidden;
  position: relative;
}
/* Scene Trainer technique note (stands out above controls) */
.scene-technique-note {
  margin-bottom: 0.85rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fefce8;
  background: radial-gradient(circle at 0 0, rgba(249, 115, 22, 0.85), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.9), transparent 55%),
              rgba(15, 23, 42, 0.98);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.9);
}

/* Applied from JS when we want a subtle scene transition */
.scene-display.scene-animate-in {
  animation: sceneFadeSlideIn 0.45s ease-out;
}

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


.scene-image-shell {
  min-height: 190px;
  position: relative;
}

.scene-image-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
}

.scene-image-placeholder::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
}

.scene-sparkle {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #60a5fa;
  box-shadow: 0 0 30px rgba(96, 165, 250, 1);
  bottom: 18%;
  left: 18%;
}

.scene-caption-shell {
  padding: 0.85rem 1rem 1rem;
}

.scene-caption {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Scene controls */
.scene-controls {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
/* Subtle fade/scale-in for Scene Trainer (used by JS animateSceneDisplay) */
.scene-animate-in {
  animation: sceneFadeIn 450ms ease-out forwards;
}

@keyframes sceneFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.level2-nudge {
  margin-bottom: 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  font-size: 0.95rem;
  line-height: 1.35;
}



.level2-nudge {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.level2-nudge .nudge-text {
  margin: 0 0 0.6rem 0;
  color: var(--text-secondary);
}

.level2-nudge .nudge-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.level2-nudge .nudge-actions .btn {
  flex: 1 1 auto;
  min-width: 140px;
}

.level2-nudge.is-fading {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}
/* --- Scene Trainer visibility fix --- */
.scene-card img,
#scene-display img {
  display: block !important;
  position: relative !important;
  z-index: 5 !important;
  width: 100% !important;
  height: auto !important;
  object-fit: cover;
  border-radius: 14px;
  opacity: 1 !important;
}

/* Make sure the loader or overlay never sits on top permanently */
#scene-display .loading-overlay {
  z-index: 4 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ============================
   LEVELS GRID
   ============================ */

.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.level-card ul {
  padding-left: 1.2rem;
  margin: 0;
  font-size: 0.9rem;
}

.levels-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

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

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.faq-card details {
  margin-bottom: 0.75rem;
}

.faq-card summary {
  cursor: pointer;
  font-weight: 600;
}

/* ============================
   SUPPORT SECTION
   ============================ */

#support ul {
  padding-left: 1.2rem;
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .levels-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 5rem 1.5rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero .lead {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 4rem 1.5rem;
  }

  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .levels-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-list {
    display: none;
  }

  .hero-card {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .masthead-inner {
    padding: 0.75rem 1.25rem;
  }

  .nav-list {
    display: none;
  }

  .nav-list.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 1.5rem;
    left: 1.5rem;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(10, 14, 39, 0.55);
    backdrop-filter: blur(26px) saturate(160%);
    -webkit-backdrop-filter: blur(26px) saturate(160%);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    gap: 0.5rem;
    z-index: 9999;
  }

  .nav-list a {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-list.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 1.5rem;
    left: 1.5rem;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(10, 14, 39, 0.55);
    backdrop-filter: blur(26px) saturate(160%);
    -webkit-backdrop-filter: blur(26px) saturate(160%);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    gap: 0.5rem;
    z-index: 9999;
  }
}

/* EMERGENCY FIX - Force buttons to be clickable
   (SCALED BACK: only target the two main buttons) */
#quick-check-start-btn,
#start-scene-training {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

/* Remove any blocking overlays */
.card::before,
.card::after,
.hero::before,
.hero::after,
.section::before,
.section::after {
  pointer-events: none !important;
}

/* ============================
   THEME PRO CONTROL BAR
   ============================ */
/* Theme toggle pill – fixed just under the sticky header, top-right */
#ma-controls:not(.in-header) {
  position: fixed;
  top: 4.25rem;
  right: 0.9rem;
  left: auto;
  bottom: auto;

  display: inline-flex;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;

  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
  z-index: 60;
}

/* Keep the existing button styling – you already have this: */
#ma-controls .ctl {
  border: 1px solid rgba(148, 163, 184, 0.6);
  border-radius: 999px;
  padding: 0.52rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: #e5e7eb;
  background: radial-gradient(circle at 0 0, rgba(249, 115, 22, 0.35), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.35), transparent 55%);
  cursor: pointer;
  white-space: nowrap;
}

/* Nudge position slightly on smaller screens so it clears the logo/menu */
#ma-controls .ctl:hover {
  border-color: rgba(249, 115, 22, 0.8);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.6);
}

/* Hint bubbles from ThemePro */
.ma-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.35rem;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.9);
  color: #fbbf24;
  cursor: default;
  position: relative;
}

.ma-tip__bubble {
  position: absolute;
  left: 50%;
  bottom: 125%;
  transform: translateX(-50%);
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.44);
  color: #e5e7eb;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.ma-tip:hover .ma-tip__bubble {
  opacity: 1;
  transform: translate(-50%, -2px);
}

@keyframes shimmer {
  0% { opacity: 1; text-shadow: 0 0 8px rgba(255, 255, 255, 0.6); }
  50% { opacity: 0.6; text-shadow: 0 0 12px rgba(255, 255, 255, 0.8); }
  100% { opacity: 1; text-shadow: 0 0 8px rgba(255, 255, 255, 0.6); }
}

.break-timer {
  font-size: 3rem;
  font-weight: bold;
  animation: shimmer 1s infinite ease-in-out;
}

/* ============================
   MOBILE NAV OVERRIDE
   ============================ */
@media (max-width: 768px) {
  .masthead-inner {
    align-items: center;
    position: relative;
  }

  .brand-name {
    font-size: 1rem;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px !important;
    height: 46px !important;
    margin-left: auto;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.75);
    color: var(--text);
    cursor: pointer;
    padding: 0.35rem 0.55rem;
}


  .mobile-menu-toggle .icon-bars {
    font-size: 1.25rem !important;
    line-height: 1;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    right: 1.5rem;
    left: 1.5rem;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 1.25rem;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow-soft);
    flex-direction: column;
    gap: 0.5rem;
    z-index: 30;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-list a {
    width: 100%;
    padding: 0.5rem 0.25rem;
  }
}

/* Screenreader-only text (hides the visible "Toggle navigation" copy) */
/* When you tap nav links, keep the section title clear of the masthead */
.section {
  scroll-margin-top: 5.5rem;
}

@media (max-width: 768px) {
  .section {
    scroll-margin-top: 4.25rem;
  }
}

/* Smooth header fade on scroll */
.masthead {
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.40),
    rgba(15, 23, 42, 0.32),
    rgba(15, 23, 42, 0.18),
    transparent
  );
  transition: background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

/* Prevent Quick-Check bottom pill bar from overlapping answer buttons */
.quick-check-card,
#quick-check .card-body {
  padding-bottom: 4.5rem !important;
}

.masthead.is-scrolled {
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.98),
    rgba(15, 23, 42, 0.90),
    rgba(15, 23, 42, 0.45),
    rgba(15, 23, 42, 0.78)
  );
  border-bottom-color: rgba(148, 163, 184, 0.50);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.90);
}

/* =========================================
   Fix Memory Anchor toggle pill on mobile
   ========================================= */

/* Kill the skyscraper height */
.ma-mode-panel,
.ma-mode-pill-columns {
  height: auto !important;
  min-height: 0 !important;
}

/* Each column: short, centred label, not full screen */
.ma-mode-pill-column {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px !important;
  max-height: 64px !important;
  padding: 0.5rem 0.75rem;
  border-radius: 999px !important;
  background: linear-gradient(
    180deg,
    rgba(13, 22, 46, 0.95),
    rgba(4, 10, 28, 0.96)
  );
}

/* Text inside the pill */
.ma-mode-pill-column span,
.ma-mode-pill-column button,
.ma-mode-pill-column label {
  font-size: 0.75rem;
  line-height: 1.1;
  text-align: center;
}

/* Keep it just under the Memory Anchor logo pill */
.ma-mode-panel-wrapper {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

/* Mobile specific tightening */
@media (max-width: 640px) {
  .ma-mode-panel-wrapper {
    padding: 0 12px;
  }

  .ma-mode-pill-columns {
    gap: 0.5rem;
  }

  .ma-mode-pill-column {
    flex: 1 1 0;
    height: 56px !important;
    max-height: 56px !important;
  }
}

/* ============================
   DEC 2025 FIX – keep ThemePro pill clear of logo + nav
   ============================ */

/* Make header inner a safe positioning context (future-proofing) */
.masthead-inner {
  position: relative;
}

/* Default: sit clearly below the masthead on larger screens */
#ma-controls {
  top: 5.8rem !important;
  right: 0.95rem !important;
  left: auto !important;
  bottom: auto !important;
}

/* Medium screens (tablets / small laptops) */
@media (max-width: 1024px) {
  #ma-controls {
    top: 6.4rem !important;
    right: 0.85rem !important;
  }
}

/* Small screens (phones) – drop it further so it never hides the logo pill */
/* ============================
   DESKTOP MICRO-TWEAK – give nav a bit more breathing room
   ============================ */
@media (min-width: 1025px) {
  #ma-controls {
    top: 6.6rem !important;
  }
}

/* ============================
   COMFORT TWEAKS FOR OLDER ADULTS
   ============================ */

body {
  font-size: 16px;
}

p,
.small,
.muted,
.scene-caption,
.hero .lead {
  font-size: 1rem;
}

.btn {
  min-height: 44px;
  padding: 0.85rem 1.8rem;
}

.choice-btn {
  min-height: 48px;
  font-size: 0.98rem;
}

/* Slightly larger labels in key controls */
.scene-picker label,
.scene-audio-row label,
.qc-status-label {
  font-size: 0.9rem;
}

/* Make card content breathe on mobile */
@media (max-width: 768px) {
  .card {
    padding: 1.5rem 1.25rem;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero .lead {
    font-size: 1.05rem;
  }
}

/* ===========================
   Scene Trainer image sizing
   =========================== */

/* Wrapper that holds the scene image inside the trainer card */
.trainer-card .scene-visual {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Frame that limits how tall the scene can get */
.trainer-card .scene-image-frame {
  width: 100%;
  max-width: 480px;
  max-height: 60vh;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The scene image itself: shrink to fit, don’t overflow */
.trainer-card .scene-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Mobile tightening – slightly lower height on very small screens */
@media (max-width: 600px) {
  .trainer-card .scene-image-frame {
    max-height: 55vh;
  }
}
/* Make Scene Trainer window taller, especially for Level 2 journeys */
.trainer-card .scene-image-frame {
  max-width: 640px;      /* wider on desktop */
  max-height: 72vh;      /* more vertical room so all panels fit */
}

/* On small screens, still use most of the height */
@media (max-width: 768px) {
  .trainer-card .scene-image-frame {
    max-width: 100%;
    max-height: 80vh;
  }
}

/* ======================================
   Keys CTA – lost keys slider block
   ====================================== */

#no-problem-helper.cta-block {
  display: block;
  max-width: 950px;
  margin: 3rem auto;
  padding: 2rem 1.25rem;
  border-radius: 1.5rem;
  text-align: center;
  background: radial-gradient(
    circle at top left,
    rgba(248, 250, 252, 0.06),
    rgba(15, 23, 42, 0.95)
  );
  box-shadow: 0 15px 45px rgba(15, 23, 42, 0.85);
}

#no-problem-helper .cta-copy {
  margin-bottom: 1.25rem;
}

#no-problem-helper .cta-copy h2 {
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
  line-height: 1.3;
}

#no-problem-helper .cta-copy p {
  margin: 0.25rem 0 1rem;
  color: var(--text-secondary);
}

#no-problem-helper .cta-caption {
  margin: 0.5rem 0 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Small pill label above the caption */
#no-problem-helper .cta-caption::before {
  content: "Keys story · 4 steps";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fefce8;
  background: radial-gradient(circle at 0 0, rgba(249, 115, 22, 0.8), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.85), transparent 55%);
  box-shadow: 0 0 24px rgba(15, 23, 42, 0.9);
}

/* Slider shell */
#no-problem-helper .cta-slides {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 1.25rem;
  overflow: hidden;
  background: radial-gradient(circle at 0 0, rgba(96, 165, 250, 0.15), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(249, 115, 22, 0.2), transparent 55%),
              rgba(15, 23, 42, 0.98);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.95);
  aspect-ratio: 3 / 4; /* keep a nice, stable frame */
}

#no-problem-helper .slide-track {
  position: absolute;
  inset: 0;
}

/* Individual slides – JS toggles .is-active */
#no-problem-helper .cta-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
  pointer-events: none;
}

#no-problem-helper .cta-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}


/* Prev / next nav buttons */
#no-problem-helper .cta-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.98), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(30, 64, 175, 0.95), transparent 55%);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.9);
}

#no-problem-helper .cta-nav.prev {
  left: 0.5rem;
}

#no-problem-helper .cta-nav.next {
  right: 0.5rem;
}

#no-problem-helper .cta-nav:hover {
  border-color: rgba(249, 115, 22, 0.9);
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.7);
}

/* Mobile tweaks */
@media (max-width: 768px) {
  #no-problem-helper.cta-block {
    margin: 2.5rem auto;
    padding: 1.75rem 1rem;
  }

  #no-problem-helper .cta-slides {
    max-width: 360px;
  }
}
/* Subtle transitions for Scene Trainer (Level 2 focus) */
.scene-display {
  position: relative;
  overflow: hidden;
}

/* Base animated container for scene screens */
.scene-screen {
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.scene-screen.is-active {
  opacity: 1;
  transform: translateX(0);
}

/* Make Level 2 feel a touch more “cinematic” */
#scene-trainer .scene-display.scene-level-2 .scene-screen {
  transition-duration: 0.7s;
}

#scene-trainer .scene-image-frame {
  will-change: transform, opacity;
}

/* ======================================
   Journey – collapsible levels toggle
   ====================================== */

.journey-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.9), transparent 60%),
              radial-gradient(circle at 100% 100%, rgba(30, 64, 175, 0.9), transparent 60%);
  color: var(--text-secondary);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease, border-color 0.18s ease;
}

.journey-toggle:hover {
  border-color: rgba(249, 115, 22, 0.85);
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.6);
  transform: translateY(-1px);
}

.journey-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.8rem;
  background: rgba(15, 23, 42, 0.95);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.journey-toggle[aria-expanded="true"] .journey-toggle-icon {
  transform: rotate(90deg);
  border-color: rgba(249, 115, 22, 0.85);
  background: radial-gradient(circle at 0 0, rgba(249, 115, 22, 0.6), transparent 60%);
}

.journey-toggle-label {
  white-space: nowrap;
}

.journey-details {
  display: none;
  margin-top: 0.4rem;
}

.journey-details.is-open {
  display: block;
}

/* Slightly larger tap target on mobile */
@media (max-width: 768px) {
  .journey-toggle {
    width: 100%;
    justify-content: center;
    padding: 0.45rem 1rem;
  }
}

/* ============================
   SCENE TRAINER - IMAGE FIT FIX
   Prevent Level 2 frames from cropping (show full image)
   ============================ */
#scene-display-area .scene-image-frame{
  width: 100%;
  height: clamp(220px, 40vh, 460px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* safe with object-fit: contain */
  border-radius: 18px;
}

#scene-display-area .scene-image-frame .scene-image{
  width: 100%;
  height: 100%;
  object-fit: contain;      /* no crop */
  object-position: center top;
  display: block;
}

/* ============================
   PATCH: Header centering + nav sizing
   (keeps masthead background full-width, centers inner content)
   ============================ */
.masthead-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

@media (min-width: 769px) {
  .nav-list a {
    padding: 0.55rem 0.95rem;
    font-size: 0.95rem;
  }
}

/* ============================
   PATCH: Ensure ThemePro control buttons never fall back to browser defaults
   ============================ */
#ma-controls button {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.6);
  border-radius: 999px;
  padding: 0.5rem 1.15rem !important;
  font-size: 1.0rem !important;
  font-weight: 600;
  color: #e5e7eb;
  background: radial-gradient(circle at 0 0, rgba(249, 115, 22, 0.35), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.35), transparent 60%);
  cursor: pointer;
}

#ma-controls button:hover {
  border-color: rgba(249, 115, 22, 0.8);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.6);
}


/* ==========================================
   SCENE TRAINER ENHANCEMENTS (Level cues + nudge)
   ========================================== */

/* Make sure JS-referenced theme vars exist even if the base theme CSS isn't loaded */
:root {
  --text-muted: var(--muted);
  --accent: var(--accent-orange);
  --accent-secondary: var(--accent-blue);
  --accent-light: rgba(249, 115, 22, 0.95);
  --success: #22c55e;
  --warning: #fbbf24;
}

/* Subtle visual cues per level */
.trainer-card.scene-level-1 {
  border-left: 4px solid var(--accent-orange);
}
.trainer-card.scene-level-2 {
  border-left: 4px solid var(--accent-blue);
}
.trainer-card.scene-level-3 {
  border-left: 4px solid rgba(167, 139, 250, 0.95);
}

#scene-display-area.scene-level-1,
#scene-question-area.scene-level-1 {
  border-left: 3px solid rgba(249, 115, 22, 0.55);
  padding-left: 0.75rem;
}
#scene-display-area.scene-level-2,
#scene-question-area.scene-level-2 {
  border-left: 3px solid rgba(96, 165, 250, 0.55);
  padding-left: 0.75rem;
}
#scene-display-area.scene-level-3,
#scene-question-area.scene-level-3 {
  border-left: 3px solid rgba(167, 139, 250, 0.55);
  padding-left: 0.75rem;
}

/* Gentle pulse when level changes */
.level-up-animation {
  animation: gentlePulse 1.5s ease-out;
}
@keyframes gentlePulse {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.9; transform: translateY(-2px); }
}
/* Make trust links match Balanced Glow (kill default blue/underline) */
.ma-trust a,
footer a,
.footer a {
  color: var(--ma-accent-warm, #ffb24a);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 178, 74, .35);
  padding-bottom: 2px;
}

.ma-trust a:hover,
footer a:hover,
.footer a:hover {
  border-bottom-color: rgba(255, 178, 74, .75);
  filter: brightness(1.08);
}
/* Let the global gradient breathe through */
section, .section, .block {
  background: transparent !important;
}

/* Keep cards readable without turning the whole page into a slab */
.card, .panel, .glass, .glass-card {
  background: rgba(10, 14, 26, .42);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(24px) saturate(155%);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
  box-shadow: 0 22px 70px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.07);
}
/* Reduce excessive top/bottom gaps on big sections */
section { padding-block: clamp(22px, 5vw, 46px); }

/* Headings shouldn’t float in space */
h2, h3 { margin-bottom: 12px; }
p { margin-top: 10px; }

/* Difficulty badge */
.difficulty-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--text-secondary);
}

/* Method note (Level 2+) */
.method-note {
  margin-top: 0.6rem;
  line-height: 1.4;
}

/* Level 2 nudge (robust styling) */
.level2-nudge {
  margin-bottom: 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.35);
}
.level2-nudge .nudge-text {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.35;
}
.level2-nudge .nudge-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
}
.level2-nudge.is-fading {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}


#themeProToggles button,
#theme-pro-toggles button,
.themeProToggles button,
.theme-pro-toggles button,
.tp-toggles button,
.theme-toggles button,
.mode-toggles button {
  position: relative !important;
}

/* ===== FK Deep Glass v2 (wins late) ===== */
.card, .trainer-card, .trainer-controls, .trainer-body, .cta-block {
  background-color: rgba(10, 14, 26, .38) !important;
  backdrop-filter: blur(26px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(26px) saturate(160%) !important;
  box-shadow: 0 26px 85px rgba(0,0,0,.60), inset 0 1px 0 rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.12) !important;
}
.masthead {
  backdrop-filter: blur(28px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(160%) !important;
}
/* =========================
   FOOTER: fix oversized logo + center it
   ========================= */
footer .footer-brand,
footer .brand,
footer .footerTop,
footer .footer-inner,
footer .footerWrap {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* target common logo/mark wrappers */
footer .logo,
footer .brandmark,
footer .footer-logo,
footer .footerLogo,
footer .ma-logo,
footer .ma-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* clamp any img/svg used as the footer mark */
footer .logo img,
footer .logo svg,
footer .brandmark img,
footer .brandmark svg,
footer .footer-logo img,
footer .footer-logo svg,
footer .footerLogo img,
footer .footerLogo svg,
footer .ma-logo img,
footer .ma-logo svg,
footer .ma-mark img,
footer .ma-mark svg {
  width: min(140px, 60vw) !important;
  max-width: 140px !important;
  height: auto !important;
  display: block;
  margin: 0 auto !important;
}

/* if the big "M" is text or an icon font, clamp it too */
footer .logo,
footer .brandmark {
  font-size: 18px !important;
  line-height: 1.1 !important;
}

/* small phones: slightly smaller */
@media (max-width: 420px) {
  footer .logo img,
  footer .logo svg,
  footer .brandmark img,
  footer .brandmark svg {
    max-width: 120px !important;
    width: min(120px, 62vw) !important;
  }
}
/* ===== FOOTER WATERMARK FIX (the giant MEMORY ANCHOR graphic) ===== */

/* 1) Kill common pseudo-element watermarks */
footer::before, footer::after,
.site-footer::before, .site-footer::after,
.footer::before, .footer::after {
  content: none !important;
  background: none !important;
}

/* 2) If it's a background-image on the footer, tame it (not full-screen) */
footer, .site-footer, .footer {
  background-repeat: no-repeat !important;
  background-position: center top !important;
  background-size: 520px auto !important; /* adjust smaller/larger */
}

/* smaller phones */
@media (max-width: 420px) {
  footer, .site-footer, .footer {
    background-size: 360px auto !important;
  }
}

/* 3) If it's an actual element inside footer (img/svg watermark), clamp/hide it */
footer img, footer svg {
  max-width: 100% !important;
  height: auto !important;
}

/* common “watermark/bg” class patterns */
footer [class*="watermark"],
footer [class*="Watermark"],
footer [class*="bg-mark"],
footer [class*="bgMark"],
footer [class*="footer-bg"],
footer [class*="footerBg"],
footer [class*="brand-bg"],
footer [class*="brandBg"] {
  max-width: 520px !important;
  height: auto !important;
  margin: 0 auto !important;
}

/* FINAL OVERRIDE: keep Memory Anchor controls in the header, not floating */
.masthead-inner #ma-controls.in-header {
  position: static !important;
  margin-left: auto;
  background: rgba(15, 23, 42, 0.65);
  box-shadow: none;

  /* keep buttons inside the header container */
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
  max-width: min(520px, 100%);
  min-width: 0;
}

/* Neutralize the global fixed positioning for our specific header instance */
.masthead-inner #ma-controls.in-header,
.masthead-inner #themeProToggles,
.masthead-inner #theme-pro-toggles {
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  inset: auto !important;
  transform: none !important;
}

/* Keep the pill compact inside the masthead */
.masthead-inner #ma-controls.in-header .ctl {
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.92rem;
}
/* FINAL PATCH: keep Memory Anchor controls inside the header, not fixed */
.masthead-inner #ma-controls.in-header {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  inset: auto !important;
  transform: none !important;
  z-index: 1 !important; /* above header background, but under overlays */
  pointer-events: auto !important;
}


/* ============================
   PATCH: SYMMETRIC SCENE TRAINER FRAMES
   Fixes the "heavy on one side, thin on the other" look.
   Outer window = trainer card. Inner windows = display + question areas.
   Level 1: Outer orange + inner red
   Level 2: Outer blue + inner yellow
   Level 3: Outer violet + inner teal (reserved)
   ============================ */

.trainer-card.scene-level-1,
.trainer-card.scene-level-2,
.trainer-card.scene-level-3,
#scene-display-area.scene-level-1,
#scene-display-area.scene-level-2,
#scene-display-area.scene-level-3,
#scene-question-area.scene-level-1,
#scene-question-area.scene-level-2,
#scene-question-area.scene-level-3 {
  position: relative;
}

/* Remove the old left-only cue */
.trainer-card.scene-level-1,
.trainer-card.scene-level-2,
.trainer-card.scene-level-3 {
  border-left: none !important;
  border-right: none !important;
}
#scene-display-area.scene-level-1,
#scene-display-area.scene-level-2,
#scene-display-area.scene-level-3,
#scene-question-area.scene-level-1,
#scene-question-area.scene-level-2,
#scene-question-area.scene-level-3 {
  border-left: none !important;
  border-right: none !important;
  padding-right: 0.75rem; /* balance the existing left padding */
}

/* OUTER FRAMES (trainer card) */
.trainer-card.scene-level-1::after,
.trainer-card.scene-level-2::after,
.trainer-card.scene-level-3::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.trainer-card.scene-level-1::after {
  box-shadow: inset 0 0 0 4px rgba(249, 115, 22, 0.85);
}
.trainer-card.scene-level-2::after {
  box-shadow: inset 0 0 0 4px rgba(96, 165, 250, 0.85);
}
.trainer-card.scene-level-3::after {
  box-shadow: inset 0 0 0 4px rgba(167, 139, 250, 0.85);
}

/* INNER FRAMES (display + question areas) */
#scene-display-area.scene-level-1::after,
#scene-question-area.scene-level-1::after,
#scene-display-area.scene-level-2::after,
#scene-question-area.scene-level-2::after,
#scene-display-area.scene-level-3::after,
#scene-question-area.scene-level-3::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  pointer-events: none;
}

#scene-display-area.scene-level-1::after,
#scene-question-area.scene-level-1::after {
  /* inner "red" window */
  box-shadow: inset 0 0 0 3px rgba(244, 63, 94, 0.70);
}

#scene-display-area.scene-level-2::after,
#scene-question-area.scene-level-2::after {
  /* inner "yellow" window */
  box-shadow: inset 0 0 0 3px rgba(251, 191, 36, 0.75);
}

#scene-display-area.scene-level-3::after,
#scene-question-area.scene-level-3::after {
  /* reserved */
  box-shadow: inset 0 0 0 3px rgba(45, 212, 191, 0.70);
}

/* Optional safety: if anything old renders, hide hint-only lines when hints are off */
html[data-ma-hints="off"] .ma-hints-only {
  display: none !important;
}


/* ==========================================
   Scene Trainer image visibility safeguards
   Ensures images render on mobile and aren't collapsed/hidden.
   ========================================== */
#scene-display-area { display: block; width: 100%; }
#scene-display-area img { display: block; width: 100%; max-width: 100%; height: auto; }
.scene-main-frame { position: relative; }
.scene-img-loading { pointer-events: none; }


/* ============================
   QUICK CHECK — Lively UI polish
   ============================ */

#quick-check .qc-step {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

#quick-check .qc-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 900px) {
  #quick-check .qc-layout {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

#quick-check .qc-title {
  color: var(--text);
  font-size: 1.35rem;
  margin: 0;
}

#quick-check .qc-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

#quick-check .qc-path-picker {
  margin-top: 0.35rem;
}

#quick-check .qc-path-caption {
  margin: 0 0 0.5rem;
}

#quick-check .qc-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.75rem;
}

@media (min-width: 560px) {
  #quick-check .qc-item-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

#quick-check .qc-location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-top: 0.75rem;
}

#quick-check .qc-item-btn,
#quick-check .qc-location-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.35);
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

#quick-check .qc-item-btn:hover,
#quick-check .qc-location-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  background: rgba(15, 23, 42, 0.44);
}

#quick-check .qc-item-btn:active,
#quick-check .qc-location-btn:active {
  transform: translateY(-1px) scale(0.99);
}

#quick-check .qc-item-btn.is-selected,
#quick-check .qc-location-btn.is-selected {
  border-color: rgba(59, 130, 246, 0.85);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.55), 0 18px 40px rgba(0, 0, 0, 0.4);
}

#quick-check .qc-choice-icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.28), rgba(0, 0, 0, 0) 60%),
    rgba(2, 6, 23, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

#quick-check .qc-choice-icon img {
  width: 44px;
  height: auto;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.45));
}

#quick-check .qc-choice-label {
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}

#quick-check .qc-loc-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

#quick-check .qc-loc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

#quick-check .qc-rail-note {
  margin: 0.4rem 0 0;
}

#quick-check .qc-preview-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

#quick-check .qc-preview-loc {
  width: 130px;
  height: auto;
  opacity: 0.35;
  transform: translateY(10px) scale(0.95);
  filter: blur(0.2px);
}

#quick-check .qc-preview-item {
  width: 92px;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5));
}

#quick-check .qc-sparkle-1 {
  top: 16%;
  left: 20%;
}

#quick-check .qc-sparkle-2 {
  top: 26%;
  right: 18%;
}

#quick-check .qc-sparkle-3 {
  bottom: 18%;
  left: 28%;
}

#quick-check .qc-sparkle {
  opacity: 0.85;
  animation: qcSparkle 2.8s ease-in-out infinite;
}

#quick-check .qc-sparkle-2 {
  animation-delay: 0.7s;
}

#quick-check .qc-sparkle-3 {
  animation-delay: 1.35s;
}

@keyframes qcSparkle {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

#quick-check .qc-quickwin-note {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: rgba(15, 23, 42, 0.35);
}

#quick-check .qc-quickwin-actions {
  display: flex;
  justify-content: flex-start;
}

#quick-check .qc-place-btn {
  margin-top: 0.5rem;
  padding: 0.95rem 1.25rem;
  font-size: 1.05rem;
}

#quick-check .qc-calm-slot {
  margin-top: 0.85rem;
  min-height: 0;
}

#quick-check .qc-calm-chip {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  text-align: center;
}

#quick-check .qc-image-shell--placement {
  margin-top: 0.75rem;
}

#quick-check .qc-placement-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.9rem;
}

#quick-check .qc-item-hover {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.3), rgba(0, 0, 0, 0) 62%),
    rgba(2, 6, 23, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.4);
  transition: transform 300ms ease, opacity 300ms ease;
}

#quick-check .qc-item-hover img {
  width: 56px;
  height: auto;
}

#quick-check .qc-drop-arrow {
  font-size: 1.6rem;
  color: var(--text-muted);
}

#quick-check .qc-location-target {
  width: 100%;
  max-width: 260px;
  height: 150px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.5);
}

#quick-check .qc-location-target img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

#quick-check .qc-target-ring {
  position: absolute;
  inset: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  animation: qcRing 2.4s ease-in-out infinite;
}

@keyframes qcRing {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.95;
  }
}

#quick-check .qc-target-label {
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
/* =========================================================
   QUICK CHECK — IMAGE SIZING + PREVIEW CLARITY FIXES
   - Keep icons/photos inside their containers
   - Center images
   - Avoid "default phone" duplication by using placeholders
   ========================================================= */

#quick-check .qc-choice-icon img {
  width: 38px;
  max-width: 80%;
  max-height: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

#quick-check .qc-preview-stack {
  display: grid;
  gap: 0.9rem;
  padding: 0.9rem;
  width: 100%;
}

#quick-check .qc-preview-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

#quick-check .qc-preview-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
}

#quick-check .qc-preview-empty {
  width: 92px;
  height: 64px;
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  background: rgba(2, 6, 23, 0.22);
  color: rgba(226, 232, 240, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-align: center;
  padding: 0.35rem 0.5rem;
}

#quick-check .qc-preview-empty--wide {
  width: min(240px, 100%);
  height: 118px;
}

#quick-check .qc-preview-item {
  width: 72px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

#quick-check .qc-preview-loc {
  width: min(240px, 100%);
  height: 118px;
  display: block;
  margin: 0 auto;
  border-radius: 18px;
  object-fit: cover;
}

#quick-check .qc-location-target img,
#quick-check .qc-loc-thumb img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

@media (max-width: 480px) {
  #quick-check .qc-preview-item { width: 64px; }
  #quick-check .qc-preview-loc,
  #quick-check .qc-preview-empty--wide { height: 104px; }
}

/* =========================================================
   MOBILE HEADER LAYOUT FIX v2 (Jan 2026)
   - Fix Dark mode pill clipping/left shift
   - Prevent controls from overlapping brand/hamburger
   - Ensure hamburger is always tappable and nav is above overlays
   ========================================================= */

@media (max-width: 768px) {
  /* Let the nav row breathe and wrap into a clean 2-row header */
  .masthead-inner {
    align-items: center;
  }

  .masthead-nav {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap !important;
    gap: 0.6rem !important;
  }

  /* Keep hamburger reliably clickable */
  .mobile-menu-toggle {
    position: relative !important;
    z-index: 10050 !important;
    pointer-events: auto !important;
    margin-left: auto !important;
  }

  /* Controls become full-width row under brand/hamburger */
  #ma-controls.in-header {
    flex: 0 0 100% !important;
    width: 100% !important;
    margin-left: 0 !important; /* IMPORTANT: stops left-clipping caused by right-alignment overflow */
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    padding: 0.45rem 0.65rem !important;
    box-sizing: border-box !important;
    z-index: 10040 !important;
  }

  #ma-controls.in-header .ctl {
    flex: 1 1 calc(50% - 0.5rem) !important;
    max-width: calc(50% - 0.5rem) !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  /* Nav dropdown should sit above controls + content */
  .nav-list {
    z-index: 10060 !important;
  }
}

/* Restore the red/orange orb beside the header title */
.brand-name .brand-mark {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 999px !important;
  margin-left: 0.35rem !important;
  font-size: 0.65rem !important;
  line-height: 1 !important;

  background: radial-gradient(circle at 30% 30%, rgba(255, 196, 87, 0.95), rgba(255, 122, 0, 0.92) 55%, rgba(255, 64, 0, 0.85) 100%) !important;
  border: 1px solid rgba(255, 170, 70, 0.55) !important;
  box-shadow: 0 0 10px rgba(255, 122, 0, 0.55) !important;

  color: rgba(8, 12, 22, 0.92) !important;
  -webkit-text-fill-color: rgba(8, 12, 22, 0.92) !important;
}


/* === DEFENSIVE HEADER CONTROLS LOCK (do not remove) === */
.masthead-inner #ma-controls.in-header,
.masthead-nav #ma-controls.in-header {
  position: static !important;
  background: rgba(15, 23, 42, 0.65) !important;
  box-shadow: none !important;
}



/* ===== Header alignment & overflow fix (controls + hamburger) ===== */
.masthead-inner{
  flex-wrap: wrap;
  gap: 0.75rem;
}

.masthead-nav{
  min-width: 0;
}

@media (max-width: 768px){
  .masthead-inner{
    padding: 0.85rem 1rem;
  }

  /* Give nav its own row when space is tight */
  .masthead-nav{
    flex: 1 1 100%;
    justify-content: flex-end;
  }

  /* Keep hamburger on the right, controls on the next line */
  .mobile-menu-toggle{
    order: 1;
  }
  #ma-controls.in-header{
    order: 2;
    width: 100%;
  }
}


/* Hide masthead while in tool sections */
body.ma-tool-open .masthead{ display:none !important; }


/* Hide masthead/controls while an active tool UI is on screen */
body.tool-active .masthead,
body.tool-active #ma-controls {
  display: none !important;
}

/* --- Final Hero Visual Balance (confirmed design) --- */
@media (max-width: 900px) {
  .hero {
    padding-top: 1.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .masthead-inner {
    padding: 1rem 1.25rem !important;
  }

  .brand-logo {
    width: 185px !important;
  }

  .hero h1 {
    font-size: 2.5rem !important;
    line-height: 1.1 !important;
    margin-top: 0.5rem !important;
  }

  .hero .lead {
    font-size: 1.05rem !important;
    max-width: 90%;
    margin: 0.75rem auto 1.5rem !important;
  }
}
/* Step 6: keep CTA bar clickable and above everything */
#qc-actions-step6-floating{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
}

html.qc-step6-active body{
  padding-bottom: 110px; /* prevents content hiding behind bar */
}

/* If the masthead/header still blocks taps on mobile, hide it on step6 too */
@media (max-width: 768px){
  html.qc-step6-active .masthead{
    display: none !important;
  }
}
/* QC mobile overlay protection */
@media (max-width: 520px) {
  .qc-actions,
  .qc-post-actions,
  .action-bar {
    position: static !important;
    bottom: auto !important;
    top: auto !important;
  }

  /* Ensure QC sections have breathing room so nothing sits under a floating block */
  #quick-check,
  .quick-check,
  .qc-root,
  .qc-container {
    padding-bottom: 24px !important;
  }
}
/* QC: ensure feedback area isn't visually "below the fold" on mobile */
@media (max-width: 520px) {
  #qc-reflection-feedback {
    scroll-margin-top: 84px;
  }
  #scene-trainer {
    scroll-margin-top: 84px;
  }
}
/* Step 5: make "Yes, I saw it" visually primary */
.qc-watch-yes{
  background: linear-gradient(90deg, rgba(255,179,0,.95), rgba(255,106,0,.95)) !important;
  border: 1px solid rgba(255,180,0,.45) !important;
  color: #0b1020 !important;
  box-shadow: 0 10px 24px rgba(255,145,0,.18) !important;
}

.qc-watch-no{
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color: rgba(255,255,255,.92) !important;
}

/* While typing in Step 5, float the Check CTA above the keyboard */
body.qc-step5-focus .qc-check-btn{
  position: fixed !important;
  left: 16px !important;
  right: 16px !important;
  bottom: calc(12px + var(--qc-kb, 0px) + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 9999 !important;
}

/* Prevent content being covered by the floating CTA */
body.qc-step5-focus .qc-step[data-qc-step="5"]{
  padding-bottom: calc(92px + var(--qc-kb, 0px) + env(safe-area-inset-bottom, 0px)) !important;
}
.qc-watch-yes{
  background: linear-gradient(90deg, rgba(255,179,0,.95), rgba(255,106,0,.95)) !important;
  border: 1px solid rgba(255,180,0,.45) !important;
  color: #0b1020 !important;
  box-shadow: 0 10px 24px rgba(255,145,0,.18) !important;
}
.qc-watch-no{
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color: rgba(255,255,255,.92) !important;
}
/* ===========================
   Quick Check — Step 1: Memory style selected state
   =========================== */

#quick-check button[aria-pressed="true"],
#quick-check [role="button"][aria-pressed="true"],
#quick-check .is-active,
#quick-check .active,
#quick-check .selected,
#quick-check .is-selected {
  background: linear-gradient(90deg, rgba(0,200,255,.22), rgba(255,179,0,.22)) !important;
  border: 2px solid rgba(255,179,0,.65) !important;
  box-shadow:
    0 10px 24px rgba(255,179,0,.18),
    0 0 0 2px rgba(0,200,255,.18) inset !important;
  transform: translateY(-1px);
}

/* Optional: de-emphasize unselected pills a touch */
#quick-check button[aria-pressed="false"] {
  opacity: .88;
}
/* === Mindset Reset modal: reduce brightness, improve contrast === */
#ma-mindset-reset-modal,
.ma-mindset-reset-modal {
  background: rgba(8, 12, 20, 0.72) !important; /* dim overlay */
  backdrop-filter: blur(6px);
}

#ma-mindset-reset-modal .panel,
.ma-mindset-reset-modal .panel,
#ma-mindset-reset-modal .ma-reset-panel,
.ma-reset-panel {
  background: rgba(14, 21, 36, 0.96) !important; /* dark panel */
  border: 1px solid rgba(243, 165, 51, 0.35) !important; /* soft amber */
  box-shadow: 0 18px 55px rgba(0,0,0,0.55) !important;
}

#ma-mindset-reset-modal h3,
#ma-mindset-reset-modal .title,
#ma-mindset-reset-modal .timer,
#ma-mindset-reset-modal label,
#ma-mindset-reset-modal .hint,
.ma-mindset-reset-modal * {
  color: rgba(242, 246, 255, 0.92) !important;
}

#ma-mindset-reset-modal .timer,
#ma-reset-timer {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: rgba(243, 165, 51, 0.95) !important; /* readable amber */
}

#ma-mindset-reset-modal input[type="text"],
#ma-mindset-reset-modal textarea {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  color: rgba(242, 246, 255, 0.92) !important;
}

#ma-mindset-reset-modal .btn,
#ma-mindset-reset-modal button {
  border-radius: 12px;
}

#ma-mindset-reset-modal .btn.primary,
#ma-mindset-reset-modal button.primary {
  background: rgba(108, 140, 255, 0.95) !important;
  color: #0b1020 !important;
}

#ma-mindset-reset-modal .btn.warn,
#ma-mindset-reset-modal button.warn {
  background: rgba(243, 165, 51, 0.95) !important;
  color: #0b1020 !important;
}
