/* Aviation Aptitude Simulator — visual style matched to reference */

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  background: #2a2a2a;
}

#app {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
}

/* ── Flight viewport (top ~68%) ── */
.flight-viewport {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  background: #a5c9eb;
}

#flight-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Timer (console bottom-left) ── */
.timer-display {
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  letter-spacing: 2px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.timer-console {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 5;
  padding: 6px 14px;
  font-size: clamp(18px, 2.2vw, 26px);
}

.timer-display.hidden {
  display: none;
}

/* ── Overlays (start / complete) — full app coverage ── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 20, 35, 0.72);
  overflow-y: auto;
  padding: 16px;
}

.overlay.hidden {
  display: none;
}

#app.is-postgame .flight-viewport,
#app.is-postgame .console,
#app.is-pregame .flight-viewport,
#app.is-pregame .console {
  visibility: hidden;
  pointer-events: none;
}

.overlay-postgame {
  background: #2c2c2c;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  overflow-y: auto;
}

.overlay-postgame .overlay-panel {
  max-width: none;
  width: 100%;
  min-height: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: linear-gradient(180deg, #3a3a3a 0%, #2a2a2a 100%);
  box-sizing: border-box;
}

#overlay-debrief-intro.overlay-postgame,
#overlay-debrief-q.overlay-postgame {
  align-items: center;
  justify-content: center;
}

#overlay-start.overlay-postgame,
#overlay-debrief-intro.overlay-postgame,
#overlay-debrief-q.overlay-postgame,
#overlay-complete.overlay-postgame {
  align-items: stretch;
  flex-direction: column;
  justify-content: flex-start;
  background:
    linear-gradient(rgba(98, 181, 115, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 181, 115, 0.026) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(53, 105, 67, 0.17), transparent 42%),
    #101311;
  background-size: 44px 44px, 44px 44px, auto, auto;
}

.fast-page-header {
  width: 100%;
  flex: 0 0 auto;
}

#overlay-start .dashboard-brand {
  grid-template-columns: auto;
  grid-template-areas: 'logo';
  column-gap: 0;
}

#overlay-start .dashboard-account-label {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.4px;
}

#overlay-start.overlay-postgame .overlay-panel {
  max-width: 780px;
  width: min(780px, calc(100% - 32px));
  min-height: auto;
  margin: clamp(32px, 6vh, 54px) auto 0;
  padding: 28px 34px 22px;
  border: 1px solid #343c36;
  border-radius: 8px;
  background: rgba(27, 31, 28, 0.97);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

#overlay-debrief-intro.overlay-postgame .debrief-intro-card {
  max-width: 780px;
  width: min(780px, calc(100% - 32px));
  min-height: auto;
  margin: clamp(32px, 6vh, 54px) auto;
  padding: 28px 34px 30px;
  border: 1px solid #343c36;
  border-radius: 8px;
  background: rgba(27, 31, 28, 0.97);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  text-align: center;
}

#overlay-debrief-intro .dashboard-account-label {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.4px;
}

#overlay-debrief-intro .overlay-title {
  margin-bottom: 10px;
  color: #f2f4f2;
  font-size: clamp(25px, 3.5vw, 34px);
  letter-spacing: -0.3px;
  text-align: center;
}

#overlay-debrief-intro .overlay-text {
  max-width: 590px;
  margin: 0 auto 23px;
  color: #aab2ac;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

#overlay-start .overlay-panel > h1 {
  margin: 0 0 22px;
  color: #f2f4f2;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(25px, 3.5vw, 34px);
  letter-spacing: -0.3px;
  text-align: left;
}

#overlay-start .fast-briefing-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 0;
  text-align: left;
}

.fast-briefing-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
  text-align: left;
}

#overlay-start .fast-briefing-item {
  height: 100%;
  min-height: 122px;
  padding: 16px;
  border: 1px solid #343c36;
  border-radius: 6px;
  background: #151916;
}

.fast-briefing-item {
  min-height: 106px;
  padding: 15px 16px;
  border: 1px solid #343c36;
  border-radius: 6px;
  background: #151916;
}

#overlay-start .fast-briefing-item h2 {
  margin: 0 0 8px;
  color: #70bd80;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

#overlay-debrief-intro .fast-briefing-item h3 {
  margin: 0 0 8px;
  color: #70bd80;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.fast-briefing-item h2,
.fast-briefing-item h3 {
  margin-bottom: 8px;
  color: #70bd80;
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

#overlay-start .fast-briefing-item p,
#overlay-start .fast-briefing-item ul,
#overlay-start .fast-briefing-item ol {
  margin: 0;
  color: #c3cac4;
  font-size: 13px;
  line-height: 1.5;
}

#overlay-start .fast-briefing-item ul,
#overlay-start .fast-briefing-item ol {
  padding-left: 17px;
}

#overlay-start .fast-briefing-item li {
  margin-bottom: 4px;
}

#overlay-start .fast-briefing-item li:last-child {
  margin-bottom: 0;
}

.fast-briefing-item p {
  color: #c3cac4;
  font-size: 13px;
  line-height: 1.5;
}

.fast-briefing-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 10px;
  row-gap: 10px;
  width: min(calc(100% - 32px), 400px);
  margin: 28px auto clamp(32px, 6vh, 54px);
}

.debrief-intro-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 10px;
  row-gap: 10px;
  width: min(100%, 400px);
  margin: 0 auto;
}

#overlay-start .overlay-btn-start,
#overlay-start .back-dashboard-btn,
#overlay-debrief-intro .overlay-btn-start,
#overlay-debrief-intro .back-dashboard-btn {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  min-height: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 11px 16px;
  border-radius: 5px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.7px;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  box-shadow: none;
}

#overlay-start .overlay-btn-start,
#overlay-debrief-intro .overlay-btn-start {
  min-width: 0;
  border: 1px solid #65aa73;
  background: #367b46;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

#overlay-start .overlay-btn-start:hover,
#overlay-debrief-intro .overlay-btn-start:hover {
  border-color: #79bd87;
  background: #428b53;
  filter: none;
}

#overlay-start .overlay-btn-start:focus-visible,
#overlay-debrief-intro .overlay-btn-start:focus-visible,
#overlay-start .back-dashboard-btn:focus-visible,
#overlay-debrief-intro .back-dashboard-btn:focus-visible {
  outline: 2px solid #78c587;
  outline-offset: 3px;
}

#overlay-start .back-dashboard-btn,
#overlay-debrief-intro .back-dashboard-btn {
  border: 1px solid #465c4b;
  background: #151916;
  color: #c9dfcd;
  cursor: pointer;
}

#overlay-start .back-dashboard-btn:hover,
#overlay-debrief-intro .back-dashboard-btn:hover {
  border-color: #70ad7b;
  background: rgba(57, 125, 72, 0.14);
  color: #dce9df;
}

@media (max-width: 680px) {
  #overlay-start.overlay-postgame .overlay-panel,
  #overlay-debrief-intro.overlay-postgame .debrief-intro-card {
    width: min(520px, calc(100% - 28px));
    padding: 25px 22px 20px;
  }

  #overlay-debrief-intro.overlay-postgame .debrief-intro-card {
    padding: 25px 22px 27px;
  }

  .fast-briefing-info {
    grid-template-columns: 1fr;
  }

  #overlay-start .fast-briefing-info {
    grid-auto-rows: auto;
  }

  .fast-briefing-item {
    min-height: 0;
  }

  .fast-briefing-actions,
  .debrief-intro-actions {
    grid-template-columns: 1fr;
    width: min(calc(100% - 28px), 360px);
  }
}

.overlay-countdown {
  background: rgba(7, 12, 9, 0.48);
  z-index: 110;
}

.countdown-circle {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 2px solid #70bd80;
  background: #101311;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.48),
    0 0 16px rgba(112, 189, 128, 0.16),
    inset 0 0 20px rgba(112, 189, 128, 0.035);
}

#countdown-num {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 58px;
  font-weight: 700;
  color: #f5f7f5;
  line-height: 0.85;
  animation: countdown-number-change 1s cubic-bezier(0.22, 0.8, 0.35, 1) infinite;
}

@keyframes countdown-number-change {
  0% {
    opacity: 0.55;
    transform: scale(0.94);
  }
  22% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  #countdown-num {
    animation: none;
  }
}

.overlay-postgame .overlay-panel-debrief {
  max-width: 720px;
  width: min(720px, 100%);
  min-height: auto;
  margin: auto;
  padding: 48px 40px;
  background: transparent;
}

#overlay-debrief-q.overlay-postgame .overlay-panel-debrief {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'progress timer'
    'question question'
    'answers answers';
  column-gap: 28px;
  max-width: 960px;
  width: min(960px, calc(100% - 48px));
  min-height: auto;
  margin: clamp(32px, 6vh, 54px) auto 0;
  padding: 30px 34px 34px;
  border: 1px solid #343c36;
  border-radius: 8px;
  background: rgba(27, 31, 28, 0.97);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

#overlay-debrief-q .dashboard-account-label {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.4px;
}

#overlay-debrief-q > .back-dashboard-btn {
  box-sizing: border-box;
  display: flex;
  width: max-content;
  min-height: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin: 28px auto clamp(32px, 6vh, 54px);
  padding: 11px 16px;
  border: 1px solid #465c4b;
  border-radius: 5px;
  background: #151916;
  color: #c9dfcd;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.7px;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

#overlay-debrief-q > .back-dashboard-btn:hover {
  border-color: #70ad7b;
  background: rgba(57, 125, 72, 0.14);
  color: #dce9df;
}

#overlay-debrief-q > .back-dashboard-btn:focus-visible {
  outline: 2px solid #78c587;
  outline-offset: 3px;
}

#overlay-debrief-q .debrief-progress {
  grid-area: progress;
  margin-bottom: 25px;
  color: #89938b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: 0.2px;
}

#overlay-debrief-q .debrief-question-text {
  grid-area: question;
  margin-bottom: 21px;
  color: #f2f4f2;
  font-size: clamp(20px, 2.5vw, 27px);
  font-weight: 600;
  line-height: 1.4;
}

#overlay-debrief-q .debrief-answers {
  grid-area: answers;
  gap: 10px;
  margin-bottom: 0;
}

#overlay-debrief-q .debrief-timer-wrap {
  grid-area: timer;
  align-self: start;
  margin-top: 0;
}

#overlay-debrief-q .debrief-answer-btn {
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #3c443e;
  border-radius: 5px;
  background: #151916;
  color: #dfe4e0;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.12s, background-color 0.12s;
}

#overlay-debrief-q .debrief-answer-btn:hover:not(:disabled) {
  border-color: #619f6d;
  background: #1d251f;
}

#overlay-debrief-q .debrief-answer-btn:focus-visible {
  outline: 2px solid #78c587;
  outline-offset: 2px;
}

#overlay-debrief-q .debrief-answer-btn:active:not(:disabled) {
  border-color: #78c587;
  background: #243329;
}

#overlay-debrief-q .debrief-timer-circle {
  width: 78px;
  height: 78px;
  border: 1px solid #2c322e;
  background: conic-gradient(
    #62b573 calc(var(--debrief-p, 100) * 1%),
    #252b27 0
  );
  box-shadow:
    0 0 0 2px rgba(98, 181, 115, 0.42),
    0 0 10px rgba(98, 181, 115, 0.22),
    inset 0 0 0 7px #151916;
}

#overlay-debrief-q .debrief-timer-circle span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #eef5ef;
}

@media (max-width: 680px) {
  #overlay-debrief-q.overlay-postgame .overlay-panel-debrief {
    width: min(560px, calc(100% - 28px));
    padding: 25px 22px 27px;
  }

  #overlay-debrief-q .debrief-question-text {
    font-size: clamp(18px, 5vw, 23px);
  }

  #overlay-debrief-q .debrief-timer-circle {
    width: 68px;
    height: 68px;
  }
}

.overlay-panel {
  text-align: center;
  max-width: 480px;
  padding: 36px 44px;
  background: linear-gradient(180deg, #4a4a4a 0%, #333 100%);
  border: 3px solid #888;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.overlay-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: bold;
  color: #eee;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.overlay-text {
  font-size: clamp(13px, 1.4vw, 16px);
  color: #ccc;
  line-height: 1.5;
  margin-bottom: 28px;
}

.overlay-btn {
  display: inline-block;
  min-width: 160px;
  padding: 14px 36px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #111;
  border: 2px solid #1a1a1a;
  border-radius: 3px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 3px 6px rgba(0, 0, 0, 0.4);
}

.overlay-btn-start {
  background: #00e800;
}

.overlay-btn-restart {
  background: #a5c9eb;
  margin-top: 8px;
}

.overlay-btn:hover {
  filter: brightness(1.08);
}

.overlay-btn:active {
  transform: translateY(1px);
}

.overlay-panel-debrief {
  max-width: 560px;
  text-align: left;
}

.overlay-panel-debrief .overlay-title {
  text-align: left;
  margin-bottom: 8px;
}

.overlay-panel-debrief .overlay-btn {
  display: block;
  margin: 24px auto 0;
}

.debrief-progress {
  color: #a5c9eb;
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: bold;
  margin-bottom: 14px;
}

.debrief-question-text {
  color: #eee;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.4;
  margin-bottom: 18px;
}

.debrief-answers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.debrief-answer-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: bold;
  color: #eee;
  background: #2a2a2a;
  border: 2px solid #666;
  border-radius: 3px;
  cursor: pointer;
}

.debrief-answer-btn:hover:not(:disabled) {
  background: #3a3a3a;
  border-color: #a5c9eb;
}

.debrief-answer-btn:disabled {
  cursor: default;
}

.debrief-timer-wrap {
  display: flex;
  justify-content: center;
}

.debrief-timer-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(#a5c9eb calc(var(--debrief-p, 100) * 1%), #222 0);
  box-shadow: inset 0 0 0 8px #333;
}

.debrief-timer-circle span {
  font-family: 'Courier New', Courier, monospace;
  font-size: 26px;
  font-weight: bold;
  color: #eee;
}

#overlay-complete.overlay-postgame .overlay-panel-results {
  max-width: 1120px;
  width: min(1120px, calc(100% - 48px));
  min-height: auto;
  margin: clamp(38px, 6vh, 58px) auto 60px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.results-summary {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.results-heading {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.results-heading h2 {
  color: #f2f4f2;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.5px;
}

.results-heading p {
  margin-top: 9px;
  color: #98a19a;
  font-size: 14px;
}

.overall-score-card {
  display: flex;
  min-width: 260px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 24px;
  border: 1px solid #4b7453;
  border-radius: 8px;
  background: #1b251d;
}

#overlay-complete .dashboard-account-label {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.4px;
}

.overall-score-card span,
.result-score-card h3 {
  color: #79c489;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.overall-score-card strong {
  color: #f3f7f4;
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(38px, 5vw, 54px);
  line-height: 1;
}

.result-score-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.result-score-card {
  display: flex;
  min-height: 176px;
  flex-direction: column;
  justify-content: space-between;
  padding: 21px;
  border: 1px solid #343c36;
  border-top: 2px solid #579d66;
  border-radius: 8px;
  background: rgba(27, 31, 28, 0.97);
  transition: border-color 0.16s, transform 0.16s;
}

.result-score-card strong {
  margin: auto 0;
  color: #f2f4f2;
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1;
}

.result-card-detail {
  min-height: 18px;
  color: #8f9991;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  transform: translateY(3px);
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
}

.result-score-card:focus-visible {
  outline: 2px solid #78c587;
  outline-offset: 3px;
}

.result-score-card:focus .result-card-detail {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .result-score-card:hover {
    border-color: #568160;
    transform: translateY(-2px);
  }

  .result-score-card:hover .result-card-detail {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (hover: none), (pointer: coarse) {
  .result-card-detail {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

.results-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.results-primary-action,
.results-secondary-action {
  min-height: 44px;
  padding: 11px 24px;
  border-radius: 5px;
  font: inherit;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}

.results-primary-action {
  min-width: 170px;
  border: 1px solid #65aa73;
  background: #367b46;
  color: #fff;
}

.results-primary-action:hover {
  border-color: #79bd87;
  background: #428b53;
}

.results-secondary-action {
  border: 1px solid #465c4b;
  background: transparent;
  color: #c9dfcd;
}

.results-secondary-action:hover {
  border-color: #70ad7b;
  background: rgba(57, 125, 72, 0.14);
}

.results-primary-action:focus-visible,
.results-secondary-action:focus-visible {
  outline: 2px solid #78c587;
  outline-offset: 3px;
}

.results-data-store {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 980px) {
  .result-score-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  #overlay-complete.overlay-postgame .overlay-panel-results {
    width: calc(100% - 28px);
    margin: 34px auto 46px;
  }

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

  .overall-score-card {
    min-width: 0;
  }

  .result-score-grid {
    grid-template-columns: 1fr;
  }

  .result-score-card {
    min-height: 144px;
  }

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

.btn:not(:disabled) {
  cursor: pointer;
}

.btn-aircraft:not(:disabled):hover {
  filter: brightness(1.06);
}

.btn-waypoint:not(:disabled):hover {
  filter: brightness(1.06);
  background: #ff4d4d;
}

.btn-pressed {
  transform: translateY(2px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45);
}

/* ── Bottom console ──
   Height is locked to the largest Q&A content (Q14 pattern grid 140px
   + instruction + padding). Border-box: 257px → black screens ≈ 220px
   (≈200px inner). Content cannot grow this bar. */
.console {
  position: relative;
  z-index: 6;
  flex: 0 0 257px;
  height: 257px;
  min-height: 257px;
  max-height: 257px;
  overflow: visible;
  padding: 8px 12px 10px;
  background: linear-gradient(180deg, #6e6e6e 0%, #505050 100%);
  border-top: none;
}

.console::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -36px;
  height: 36px;
  background: #6e6e6e;
  border-top: 3px solid #3a3a3a;
  pointer-events: none;
}

.console-panels {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  height: 100%;
}

.panel {
  display: flex;
  align-items: stretch;
}

.panel-left,
.panel-right {
  flex: 1 1 0;
  max-width: 320px;
}

.panel-right {
  position: relative;
}

.qa-leds {
  position: absolute;
  left: 6px;
  bottom: calc(100% + 8px);
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.qa-led {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-sizing: border-box;
}

.qa-led,
.qa-led.is-off {
  background:
    radial-gradient(circle at 32% 28%, #6a2424 0%, #3a0c0c 42%, #140404 78%);
  box-shadow:
    inset 0 1px 2px rgba(255, 120, 120, 0.18),
    inset 0 -1px 2px rgba(0, 0, 0, 0.65),
    0 0 0 1px #1a0505;
}

.qa-led.is-on {
  background:
    radial-gradient(circle at 32% 28%, #ff9a9a 0%, #ff2a2a 38%, #b00000 75%);
  box-shadow:
    inset 0 1px 2px rgba(255, 220, 220, 0.55),
    0 0 7px 2px rgba(255, 40, 40, 0.75),
    0 0 14px 3px rgba(180, 0, 0, 0.45);
}

.panel-center {
  flex: 0 0 auto;
}

.panel-frame {
  position: relative;
  flex: 1;
  width: 100%;
  padding: 6px;
  background: linear-gradient(145deg, #9a9a9a, #6a6a6a);
  border: 2px solid #b8b8b8;
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.35);
}

.panel-frame-center {
  width: clamp(120px, 14vw, 160px);
}

/* Corner screws */
.screw {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ccc, #555);
  border: 1px solid #333;
  z-index: 2;
}

.screw-tl { top: 4px; left: 4px; }
.screw-tr { top: 4px; right: 4px; }
.screw-bl { bottom: 4px; left: 4px; }
.screw-br { bottom: 4px; right: 4px; }

.panel-screen {
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #000;
  border: 2px inset #222;
  overflow: hidden;
}

.panel-screen-empty {
  min-height: 100px;
}

/* ── Q&A panel (bottom-right) ── */
.qa-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  min-height: 0;
  overflow: hidden;
}

.qa-view {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.qa-view.hidden {
  display: none;
}

.qa-instruction {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(13px, 1.7vw, 16px);
  color: #3dff3d;
  margin: 0 0 8px;
  letter-spacing: 0.3px;
  max-width: 100%;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.qa-problem {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: bold;
  color: #3dff3d;
  line-height: 1.2;
  padding: 0 6px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.qa-answers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 6px;
  width: 100%;
  max-width: 100%;
  padding: 2px;
  box-sizing: border-box;
}

.qa-answer-btn {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(13px, 1.8vw, 18px);
  font-weight: bold;
  color: #3dff3d;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 2px;
  padding: 8px 1px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1.15;
}

.qa-answer-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
}

.qa-answer-btn:disabled {
  cursor: default;
}

.qa-answer-btn.qa-answer-selected {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.qa-question-content {
  margin-top: 4px;
}

.qa-question-content:empty {
  display: none;
}

.qa-problem.hidden,
.qa-instruction.hidden {
  display: none;
}

/* Number grid (question + mini answer grids) */
.qa-num-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  max-width: 168px;
  margin: 0 auto;
}

.qa-num-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 22px;
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: bold;
  color: #3dff3d;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 2px;
}

.qa-answers-grid--grids {
  max-width: 220px;
  gap: 8px;
}

.qa-mini-grid-btn {
  padding: 4px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
}

.qa-mini-grid-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.qa-mini-grid-btn:disabled {
  cursor: default;
}

.qa-mini-grid-btn.qa-answer-selected {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.qa-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.qa-mini-cell {
  width: 18px;
  height: 14px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 9px;
  font-weight: bold;
  color: #3dff3d;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Compass answers */
.qa-answers-grid--compass {
  max-width: 220px;
  gap: 8px;
}

.qa-compass-btn {
  padding: 4px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qa-compass-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.qa-compass-btn:disabled {
  cursor: default;
}

.qa-compass-btn.qa-answer-selected {
  border-color: #fff;
}

.qa-compass-canvas {
  display: block;
  width: 72px;
  height: 72px;
}

/* Object symbol grid */
.qa-symbol-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 8px;
  max-width: 180px;
  margin: 0 auto;
}

.qa-symbol-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
}

.qa-symbol-cell canvas {
  display: block;
}

.qa-instruction--large {
  font-size: clamp(15px, 2vw, 19px);
  font-weight: bold;
  margin-bottom: 8px;
}

/* Missing colour — 2×3 coloured cells */
.qa-colour-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: 200px;
  margin: 0 auto;
}

.qa-colour-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 28px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(11px, 1.3vw, 13px);
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Missing letter — 2×3 letter cells */
.qa-letter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  max-width: 160px;
  margin: 0 auto;
}

.qa-letter-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 28px;
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: bold;
  color: #3dff3d;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.qa-answers-grid--visual {
  max-width: 220px;
  gap: 6px 8px;
}

.qa-visual-btn {
  padding: 3px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qa-visual-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.qa-visual-btn:disabled {
  cursor: default;
}

.qa-visual-btn.qa-answer-selected {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.qa-visual-canvas {
  display: block;
  max-width: 100%;
}

.qa-sequence-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.qa-seq-arrow {
  color: #3dff3d;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: bold;
}

.qa-analogy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.qa-analogy-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qa-analogy-label,
.qa-analogy-as {
  color: #3dff3d;
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: bold;
}

.radar-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

#radar-canvas {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 200 / 120;
}

/* ── Center controls ── */
.center-controls {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 2px 0;
  height: 100%;
  box-sizing: border-box;
}

.btn {
  flex: 0 0 auto;
  height: 48px;
  min-height: 36px;
  border: 2px solid #1a1a1a;
  border-radius: 2px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: bold;
  letter-spacing: 0.5px;
  color: #111;
  cursor: default;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 2px 3px rgba(0, 0, 0, 0.4);
}

.btn-aircraft {
  background: #00e800;
}

.btn-waypoint {
  background: #ff1a1a;
}

/* Waypoint progress route (exactly 4 dots) */
.waypoint-track {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  margin-top: 2px;
  background: #000;
  border: 2px inset #222;
  overflow: hidden;
}

.waypoint-route {
  display: block;
  width: 100%;
  height: 100%;
}

.route-seg {
  fill: none;
  stroke: #e53935;
  stroke-width: 2.2;
  stroke-dasharray: 4 3;
  stroke-linecap: round;
  opacity: 0;
}

.route-seg.is-active {
  opacity: 1;
}

.route-dot {
  opacity: 0;
}

.route-dot.is-visible {
  opacity: 1;
}

.route-dot-ring {
  fill: #f0c14b;
  stroke: #c47a12;
  stroke-width: 1.2;
}

.route-dot-core {
  fill: #e02424;
}

/* ── Public landing page ── */
.public-landing {
  position: fixed;
  inset: 0;
  z-index: 800;
  overflow-y: auto;
  scroll-behavior: smooth;
  background:
    linear-gradient(rgba(98, 181, 115, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 181, 115, 0.026) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(53, 105, 67, 0.22), transparent 38%),
    radial-gradient(circle at 86% 72%, rgba(40, 76, 49, 0.12), transparent 34%),
    #0d100e;
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  color: #ecefec;
}

.landing-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 850;
  display: flex;
  width: min(1120px, calc(100% - 48px));
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 12px 8px 18px;
  border: 1px solid rgba(112, 189, 128, 0.22);
  border-radius: 14px;
  background: rgba(14, 19, 16, 0.62);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.landing-nav-brand {
  display: block;
  min-width: 0;
}

.landing-nav-brand img {
  display: block;
  width: 220px;
  height: auto;
  margin: -21px -28px -20px -36px;
}

.landing-nav-end {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
}

.landing-nav-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.landing-nav-account {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.landing-nav-account-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 0;
}

.landing-nav-account-label {
  color: #70bd80;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.landing-nav-account-email {
  max-width: 240px;
  overflow-wrap: anywhere;
  color: #d8ded9;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.3;
}

.landing-nav-dashboard,
.landing-nav-logout {
  box-sizing: border-box;
  flex: 0 0 auto;
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.landing-nav-dashboard {
  border: 1px solid #465c4b;
  background: #151916;
  color: #c9dfcd;
}

.landing-nav-dashboard:hover,
.landing-nav-logout:hover {
  border-color: #70ad7b;
  background: rgba(57, 125, 72, 0.14);
  color: #dce9df;
}

.landing-nav-logout {
  border: 1px solid #465c4b;
  background: transparent;
  color: #c9dfcd;
}

.landing-nav-dashboard:focus-visible,
.landing-nav-logout:focus-visible {
  outline: 2px solid #78c587;
  outline-offset: 3px;
}

.landing-nav-button {
  min-width: 104px;
  min-height: 40px;
  padding: 9px 17px;
  border-radius: 6px;
  font: inherit;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.landing-nav-signup {
  border: 1px solid #65aa73;
  background: #367b46;
  color: #fff;
}

.landing-nav-signup:hover {
  border-color: #79bd87;
  background: #428b53;
}

.landing-nav-login {
  border: 1px solid #465c4b;
  background: rgba(17, 21, 18, 0.32);
  color: #d2e1d5;
}

.landing-nav-login:hover {
  border-color: #70ad7b;
  background: rgba(57, 125, 72, 0.14);
  color: #f0f6f1;
}

.landing-nav-button:focus-visible,
.landing-hero-cta:focus-visible,
.landing-nav-brand:focus-visible {
  outline: 2px solid #78c587;
  outline-offset: 3px;
}

.view-pricing-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 860;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 16px 10px 14px;
  border: 1px solid rgba(112, 189, 128, 0.32);
  border-radius: 999px;
  background: rgba(14, 19, 16, 0.78);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #dce9df;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
  animation: view-pricing-float 2s ease-in-out infinite;
}

@keyframes view-pricing-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .view-pricing-button {
    animation: none;
  }
}

.view-pricing-button-arrow {
  color: #70bd80;
  font-size: 13px;
  line-height: 1;
}

.view-pricing-button:hover {
  border-color: #70ad7b;
  background: rgba(57, 125, 72, 0.2);
  color: #e8f3ea;
}

.view-pricing-button:focus-visible {
  outline: 2px solid #78c587;
  outline-offset: 3px;
}

.landing-hero {
  display: flex;
  min-height: 100%;
  min-height: 100svh;
  align-items: center;
  padding: clamp(110px, 18vh, 150px) max(24px, calc((100% - 1120px) / 2)) clamp(42px, 9vh, 84px);
}

.landing-hero-content {
  max-width: 970px;
}

.landing-hero h1 {
  max-width: 950px;
  color: #f3f6f3;
  font-size: clamp(58px, 7.7vw, 106px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.landing-hero h1 span {
  display: block;
}

.landing-hero .landing-hero-accent {
  color: #70bd80;
}

.landing-hero p {
  max-width: 660px;
  margin-top: 30px;
  color: #aab2ac;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.65;
}

.landing-hero-cta {
  display: inline-flex;
  min-width: 158px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
  padding: 12px 24px;
  border: 1px solid #65aa73;
  border-radius: 6px;
  background: #367b46;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1.1px;
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
}

.landing-hero-cta:hover {
  border-color: #79bd87;
  background: #428b53;
}

.landing-tests {
  scroll-margin-top: 92px;
  padding: 68px max(24px, calc((100% - 1120px) / 2)) 120px;
  background:
    linear-gradient(90deg, rgba(98, 181, 115, 0.02) 1px, transparent 1px),
    #121613;
  background-size: 44px 44px, auto;
}

.landing-tests-inner {
  width: 100%;
}

.landing-tests-intro {
  max-width: 720px;
  margin-bottom: 46px;
}

.landing-section-eyebrow,
.landing-product-label,
.landing-product-duration,
.landing-product-skills {
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  text-transform: uppercase;
}

.landing-section-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #70bd80;
  font-size: 10px;
  letter-spacing: 1.8px;
}

#tests .landing-section-eyebrow,
#how-it-works .landing-section-eyebrow,
#pricing .landing-section-eyebrow {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.4px;
}

.landing-tests-intro h2 {
  color: #f2f4f2;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.landing-tests-intro p {
  max-width: 680px;
  margin-top: 18px;
  color: #aab2ac;
  font-size: 16px;
  line-height: 1.7;
}

.landing-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.landing-product-card {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  padding: 35px;
  border: 1px solid #354038;
  border-top: 2px solid #579d66;
  border-radius: 10px;
  background: rgba(22, 27, 23, 0.96);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
  transition: border-color 0.18s, background-color 0.18s, transform 0.18s;
}

.landing-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.landing-product-label {
  color: #79c489;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}

.landing-product-duration {
  color: #78827a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  letter-spacing: 0.4px;
  text-align: right;
}

.landing-product-preview {
  display: flex;
  width: 100%;
  aspect-ratio: 16 / 9;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid #344038;
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(98, 181, 115, 0.018) 1px, transparent 1px),
    #101311;
  background-size: 36px 36px, auto;
  color: #6f7971;
  font-family: 'Courier New', Courier, monospace;
  text-align: center;
  text-transform: uppercase;
}

.landing-product-preview span {
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1.2px;
}

.landing-product-preview small {
  color: #59615b;
  font-size: 9px;
  letter-spacing: 0.7px;
}

.landing-product-preview img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}

.landing-product-card h3 {
  max-width: 460px;
  color: #f2f4f2;
  font-size: clamp(29px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.landing-product-card > p {
  max-width: 470px;
  margin-top: 18px;
  color: #aab2ac;
  font-size: 15px;
  line-height: 1.7;
}

.landing-product-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 34px;
  list-style: none;
}

.landing-product-skills li {
  padding: 7px 10px;
  border: 1px solid #3a463d;
  border-radius: 999px;
  background: rgba(57, 125, 72, 0.08);
  color: #a9b9ac;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  letter-spacing: 0.4px;
}

.landing-process {
  padding: 112px max(24px, calc((100% - 1120px) / 2)) 124px;
  background:
    radial-gradient(circle at 84% 20%, rgba(53, 105, 67, 0.11), transparent 35%),
    #0f1210;
}

.landing-process-inner {
  width: 100%;
}

.landing-process-intro {
  max-width: 720px;
}

.landing-process-intro h2 {
  color: #f2f4f2;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.landing-process-intro p {
  max-width: 650px;
  margin-top: 18px;
  color: #aab2ac;
  font-size: 16px;
  line-height: 1.7;
}

.landing-process-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin-top: 58px;
  list-style: none;
}

.landing-process-list::before {
  content: '';
  position: absolute;
  top: 27px;
  right: 12.5%;
  left: 12.5%;
  height: 1px;
  background: #354038;
}

.landing-process-list li {
  position: relative;
  z-index: 1;
  text-align: center;
}

.landing-step-number {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border: 1px solid #4b7453;
  border-radius: 50%;
  background: #172019;
  color: #79c489;
  font-family: 'Courier New', Courier, monospace;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.7px;
}

.landing-step-content h3 {
  margin-top: 25px;
  color: #f0f3f0;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.landing-step-content p {
  margin-top: 12px;
  color: #98a19a;
  font-size: 13px;
  line-height: 1.65;
}

.landing-pricing {
  padding: 112px max(24px, calc((100% - 1120px) / 2)) 124px;
  background:
    radial-gradient(circle at 14% 82%, rgba(53, 105, 67, 0.1), transparent 34%),
    #111512;
}

.landing-pricing-inner {
  width: 100%;
}

.landing-pricing-intro {
  max-width: 680px;
  margin-bottom: 46px;
}

.landing-pricing-intro h2 {
  color: #f2f4f2;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.landing-pricing-intro p {
  margin-top: 18px;
  color: #aab2ac;
  font-size: 16px;
  line-height: 1.7;
}

.landing-pricing-intro .pricing-checkout-message {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid #4b7453;
  border-radius: 7px;
  background: rgba(57, 125, 72, 0.12);
  color: #d7e7da;
  font-size: 14px;
  line-height: 1.55;
}

.pricing-checkout-message[hidden] {
  display: none;
}

.landing-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.landing-pricing-card {
  --plan-accent: #70bd80;
  --plan-accent-rgb: 112, 189, 128;
  --plan-button: #367b46;
  --plan-button-hover: #428b53;
  position: relative;
  display: flex;
  min-height: 0;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  padding: 22px;
  border: 1px solid #354038;
  border-radius: 9px;
  background: rgba(22, 27, 23, 0.96);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.2);
  transition: border-color 0.24s, box-shadow 0.24s, transform 0.24s;
}

.landing-pricing-card:nth-child(1) {
  --plan-accent: #68b8c9;
  --plan-accent-rgb: 104, 184, 201;
  --plan-button: #33798a;
  --plan-button-hover: #3f8b9d;
}

.landing-pricing-card:nth-child(2) {
  --plan-accent: #9180d5;
  --plan-accent-rgb: 145, 128, 213;
  --plan-button: #6252a4;
  --plan-button-hover: #7260b8;
}

.landing-pricing-card::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(
    circle at 50% 5%,
    rgba(var(--plan-accent-rgb), 0.24),
    transparent 48%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s;
}

.landing-pricing-card > * {
  position: relative;
  z-index: 1;
}

.landing-pricing-card-featured {
  border-color: #579d66;
  background: rgba(27, 37, 29, 0.98);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.25);
}

.landing-pricing-card-top {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.landing-pricing-card-top h3 {
  color: var(--plan-accent);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.landing-pricing-badge {
  padding: 5px 8px;
  border: 1px solid #5a8a64;
  border-radius: 999px;
  background: rgba(57, 125, 72, 0.22);
  color: #b9dfc0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.35px;
  line-height: 1;
  text-transform: uppercase;
}

.landing-price {
  margin-top: 22px;
  color: var(--plan-accent);
  font-size: clamp(46px, 5vw, 58px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

.landing-price-note,
.landing-pricing-saving {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.35px;
  line-height: 1;
  text-transform: uppercase;
}

.landing-price-note {
  margin-top: 10px;
  color: #7f8981;
}

.landing-pricing-saving {
  width: max-content;
  margin-top: 13px;
  padding: 5px 8px;
  border: 1px solid rgba(98, 181, 115, 0.36);
  border-radius: 4px;
  color: #8bd19a;
}

.landing-pricing-features {
  display: grid;
  gap: 9px;
  margin: 20px 0;
  list-style: none;
}

.landing-pricing-features li {
  position: relative;
  padding-left: 23px;
  color: #c3cac4;
  font-size: 14px;
  line-height: 1.45;
}

.landing-pricing-features li::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 6px;
  height: 10px;
  border-right: 2px solid var(--plan-accent);
  border-bottom: 2px solid var(--plan-accent);
  transform: rotate(45deg);
}

.landing-plan-button {
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding: 11px 18px;
  border: 1px solid var(--plan-accent);
  border-radius: 5px;
  background: var(--plan-button);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.landing-plan-button:hover {
  border-color: var(--plan-accent);
  background: var(--plan-button-hover);
}

.landing-plan-button:focus-visible {
  outline: 2px solid var(--plan-accent);
  outline-offset: 3px;
}

.landing-payment-note {
  margin-top: 28px;
  color: #7f8981;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.landing-payment-note span {
  margin: 0 7px;
  color: #4b5a4e;
}

@media (hover: hover) and (pointer: fine) {
  .landing-product-card:hover {
    border-color: #568160;
    border-top-color: #70ad7b;
    background: rgba(25, 32, 27, 0.98);
    transform: translateY(-3px);
  }

  .landing-pricing-card:hover {
    border-color: var(--plan-accent);
    box-shadow: 0 22px 48px rgba(var(--plan-accent-rgb), 0.1);
    transform: translateY(-3px);
  }

  .landing-pricing-card:hover::before {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-landing {
    scroll-behavior: auto;
  }

  .landing-product-card {
    transition: none;
  }

  .landing-pricing-card,
  .landing-pricing-card::before {
    transition: none;
  }

  .landing-pricing-card:hover {
    transform: none;
  }
}

@media (max-width: 900px) {
  .landing-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-pricing-card-featured {
    grid-column: 1 / -1;
    width: calc((100% - 20px) / 2);
    justify-self: center;
  }
}

@media (max-width: 860px) {
  .landing-product-grid {
    grid-template-columns: 1fr;
  }

  .landing-product-card {
    min-height: 390px;
  }

  .landing-process {
    padding: 88px 24px 100px;
  }

  .landing-process-list {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 48px;
  }

  .landing-process-list::before {
    top: 28px;
    right: auto;
    bottom: 28px;
    left: 27px;
    width: 1px;
    height: auto;
  }

  .landing-process-list li {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 20px;
    text-align: left;
  }

  .landing-step-content h3 {
    margin-top: 2px;
  }
}

@media (max-width: 700px) {
  .landing-pricing {
    padding: 88px 24px 100px;
  }

  .landing-pricing-grid {
    grid-template-columns: 1fr;
  }

  .landing-pricing-card-featured {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
  }
}

@media (max-height: 700px) and (min-width: 761px) {
  .landing-hero h1 {
    font-size: clamp(56px, 6.8vw, 92px);
  }
}

@media (max-width: 760px) {
  .landing-nav {
    width: calc(100% - 32px);
  }

  .landing-nav-account {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .landing-hero {
    padding: 142px 24px 68px;
  }

  .landing-hero h1 {
    font-size: clamp(50px, 12vw, 76px);
  }

  .landing-tests {
    scroll-margin-top: 84px;
    padding: 64px 24px 96px;
  }
}

@media (max-width: 520px) {
  .landing-nav {
    top: 12px;
    width: calc(100% - 24px);
    min-height: 60px;
    gap: 10px;
    padding: 7px 8px 7px 12px;
    border-radius: 11px;
  }

  .landing-nav:has(#landing-nav-account:not(.auth-hidden)) {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .landing-nav:has(#landing-nav-account:not(.auth-hidden)) .landing-nav-end {
    width: 100%;
  }

  .landing-nav-brand img {
    width: 170px;
    margin: -16px -20px -16px -27px;
  }

  .landing-nav-actions {
    gap: 6px;
  }

  .landing-nav-account {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }

  .landing-nav-account-email {
    max-width: 160px;
  }

  .landing-nav-dashboard,
  .landing-nav-logout {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 11px;
  }

  .landing-nav-button {
    min-width: 68px;
    min-height: 36px;
    padding: 8px;
    font-size: 10px;
    letter-spacing: 0.7px;
  }

  .view-pricing-button {
    right: 16px;
    bottom: 16px;
    min-height: 36px;
    padding: 8px 14px 8px 12px;
    font-size: 11px;
  }

  .landing-hero {
    align-items: flex-start;
    padding: 132px 20px 58px;
  }

  .landing-hero h1 {
    font-size: clamp(43px, 13vw, 60px);
    line-height: 1;
  }

  .landing-hero p {
    margin-top: 24px;
    font-size: 16px;
  }

  .landing-hero-cta {
    margin-top: 28px;
  }

  .landing-tests {
    scroll-margin-top: 76px;
    padding: 56px 20px 80px;
  }

  .landing-tests-intro {
    margin-bottom: 34px;
  }

  .landing-tests-intro h2 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .landing-product-card {
    min-height: 0;
    padding: 27px 24px;
  }

  .landing-product-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
  }

  .landing-product-duration {
    text-align: left;
  }

  .landing-product-label {
    font-size: 16px;
  }

  .landing-product-skills {
    margin-top: 42px;
    padding-top: 0;
  }

  .landing-product-preview {
    margin-bottom: 24px;
  }

  .landing-process {
    padding: 72px 20px 84px;
  }

  .landing-process-intro h2 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .landing-process-list {
    gap: 32px;
    margin-top: 40px;
  }

  .landing-process-list li {
    gap: 16px;
  }

  .landing-pricing {
    padding: 72px 20px 84px;
  }

  .landing-pricing-intro {
    margin-bottom: 34px;
  }

  .landing-pricing-intro h2 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .landing-pricing-card {
    min-height: 0;
    padding: 22px;
  }
}

/* ── Approved-user dashboard ── */
.dashboard {
  position: fixed;
  inset: 0;
  z-index: 900;
  overflow-y: auto;
  background:
    linear-gradient(rgba(98, 181, 115, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 181, 115, 0.026) 1px, transparent 1px),
    radial-gradient(circle at 9% 0%, rgba(53, 105, 67, 0.17), transparent 38%),
    #101311;
  background-size: 44px 44px, 44px 44px, auto, auto;
  color: #ecefec;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  min-height: 156px;
  padding: 26px max(24px, calc((100% - 1120px) / 2));
  border-bottom: 1px solid #2c332e;
  background: rgba(16, 19, 17, 0.86);
}

.dashboard-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: 'logo heading';
  align-items: center;
  column-gap: 28px;
  min-width: 0;
}

.dashboard-account-label {
  color: #70bd80;
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1.7px;
}

#dashboard .dashboard-account-label {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.4px;
}

.dashboard-logo {
  grid-area: logo;
  display: block;
  width: 285px;
  height: auto;
  margin: -25px -39px -24px -48px;
}

.dashboard-heading {
  grid-area: heading;
  padding-left: 2px;
  border-left: 1px solid #354038;
}

.dashboard-heading h1 {
  padding-left: 20px;
  color: #f2f4f2;
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1.2;
}

.dashboard-account {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-items: end;
  gap: 5px;
  min-width: 220px;
  padding-left: 32px;
  border-left: 1px solid #2d352f;
}

.dashboard-email {
  max-width: 310px;
  overflow-wrap: anywhere;
  color: #d8ded9;
  font-size: 13px;
}

.dashboard-logout,
.dashboard-purchase,
.dashboard-admin {
  margin-top: 8px;
  padding: 7px 16px;
  border: 1px solid #465c4b;
  border-radius: 5px;
  background: transparent;
  color: #c9dfcd;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.dashboard-purchase {
  border-color: #65aa73;
  background: #367b46;
  color: #fff;
}

.dashboard-logout:hover,
.dashboard-purchase:hover,
.dashboard-admin:hover {
  border-color: #70ad7b;
  background: rgba(57, 125, 72, 0.14);
}

.dashboard-logout:focus-visible,
.dashboard-purchase:focus-visible,
.dashboard-admin:focus-visible,
.test-card-action:focus-visible {
  outline: 2px solid #78c587;
  outline-offset: 3px;
}

.dashboard-content {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(46px, 6vw, 72px) 0 64px;
}

.dashboard-intro {
  max-width: 660px;
  margin-bottom: 30px;
}

.dashboard-intro h2 {
  margin-top: 0;
  color: #f2f4f2;
  font-size: clamp(25px, 3.5vw, 34px);
  letter-spacing: -0.3px;
}

.dashboard-intro > p:last-child {
  margin-top: 9px;
  color: #98a19a;
  font-size: 14px;
  line-height: 1.6;
}

.dashboard-pending-payment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
  padding: 17px 19px;
  border: 1px solid #4b7453;
  border-radius: 7px;
  background: rgba(57, 125, 72, 0.12);
}

.dashboard-pending-payment[hidden] {
  display: none;
}

.dashboard-pending-payment strong {
  color: #8bd19a;
  font-size: 14px;
}

.dashboard-pending-payment p {
  margin-top: 5px;
  color: #aab2ac;
  font-size: 12px;
  line-height: 1.5;
}

.dashboard-pending-payment button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid #65aa73;
  border-radius: 5px;
  background: #367b46;
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
}

.dashboard-pending-payment button:hover {
  border-color: #79bd87;
  background: #428b53;
}

.dashboard-pending-payment button:focus-visible {
  outline: 2px solid #78c587;
  outline-offset: 3px;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.test-card {
  display: flex;
  min-height: 315px;
  flex-direction: column;
  padding: 29px;
  border: 1px solid #343c36;
  border-top: 2px solid #579d66;
  border-radius: 8px;
  background: rgba(27, 31, 28, 0.96);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.23);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.test-card > * {
  position: relative;
  z-index: 1;
}

.test-card-unavailable {
  border-color: #2e3430;
  border-top-color: #48504a;
  background: rgba(23, 26, 24, 0.93);
}

@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  #fast-test-card::before,
  #ball-test-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 38%;
    pointer-events: none;
    z-index: 0;
    background-color: #141814;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%, cover;
    opacity: 0;
    transform: scale(1.01);
    transform-origin: 72% center;
    transition: opacity 0.42s ease, transform 0.55s ease;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.4) 24%, #000 56%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.4) 24%, #000 56%);
  }

  #fast-test-card::before {
    background-image:
      linear-gradient(90deg, rgba(16, 19, 17, 0.9) 0%, rgba(16, 19, 17, 0.58) 46%, rgba(12, 14, 13, 0.4) 100%),
      url("assets/previews/fast-test-preview.png");
  }

  #ball-test-card::before {
    background-image:
      linear-gradient(90deg, rgba(16, 19, 17, 0.9) 0%, rgba(16, 19, 17, 0.58) 46%, rgba(12, 14, 13, 0.4) 100%),
      url("assets/previews/ball-test-preview.png");
  }

  #fast-test-card:hover::before,
  #ball-test-card:hover::before,
  #fast-test-card:focus-within::before,
  #ball-test-card:focus-within::before {
    opacity: 1;
    transform: scale(1.045);
  }

  .test-card-available:hover,
  .test-card-available:focus-within {
    border-color: #3f5344;
    border-top-color: #6bb87c;
    box-shadow:
      0 18px 45px rgba(0, 0, 0, 0.23),
      0 0 0 1px rgba(98, 181, 115, 0.14),
      0 0 26px rgba(87, 157, 102, 0.2);
  }

  .test-card-unavailable:hover,
  .test-card-unavailable:focus-within {
    border-color: #363e38;
    border-top-color: #5a675e;
    box-shadow:
      0 18px 45px rgba(0, 0, 0, 0.23),
      0 0 22px rgba(87, 157, 102, 0.08);
  }
}

.test-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
}

.test-card-number {
  color: #6f7971;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1.5px;
}

.test-status {
  padding: 5px 10px;
  border: 1px solid;
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.test-status-available {
  border-color: rgba(98, 181, 115, 0.48);
  background: rgba(57, 125, 72, 0.13);
  color: #88cd96;
}

.test-status-soon {
  border-color: #474e49;
  background: rgba(255, 255, 255, 0.02);
  color: #858d87;
}

.test-card h3 {
  margin-bottom: 13px;
  color: #f2f4f2;
  font-size: 24px;
  letter-spacing: -0.2px;
}

.test-card > p {
  flex: 1;
  max-width: 470px;
  color: #aab2ac;
  font-size: 14px;
  line-height: 1.7;
}

.test-card-unavailable h3,
.test-card-unavailable > p,
.test-card-unavailable .test-card-number {
  color: #747b76;
}

.test-card-expiry {
  margin-top: 18px;
  color: #89968c;
  font-size: 12px;
  line-height: 1.4;
}

.test-card-expiry:not([hidden]) + .test-card-action {
  margin-top: 10px;
}

.test-card-action {
  width: 100%;
  min-height: 44px;
  margin-top: 28px;
  padding: 11px 18px;
  border: 1px solid #65aa73;
  border-radius: 5px;
  background: #367b46;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.test-card-action:hover:not(:disabled) {
  border-color: #79bd87;
  background: #428b53;
}

.test-card-action-disabled {
  border-color: #353b37;
  background: #252925;
  color: #6f7771;
  cursor: not-allowed;
}

.dashboard-data-section {
  margin-top: 48px;
}

.dashboard-data-section + .dashboard-data-section {
  margin-top: 32px;
}

.dashboard-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.dashboard-section-heading h2 {
  margin: 0;
  color: #79c489;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

#progress-title,
#history-title {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.4px;
}

.progress-card,
.history-card {
  border: 1px solid #343c36;
  border-radius: 8px;
  background: rgba(27, 31, 28, 0.96);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.dashboard-community {
  margin-top: 28px;
  padding-top: 4px;
}

.community-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.community-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: #6e9a78;
}

.community-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.community-copy h2 {
  margin: 0;
  color: #c5cdc6;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.15px;
  text-transform: none;
}

.community-copy p {
  margin: 4px 0 0;
  color: #7f8881;
  font-size: 12px;
  line-height: 1.5;
}

.community-join {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid #45634c;
  border-radius: 5px;
  background: #1c221e;
  color: #8bc498;
  font: inherit;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.4px;
  text-decoration: none;
}

.community-join:hover {
  border-color: #5d8a67;
  background: #243028;
  color: #9fd6ab;
}

.community-join:focus-visible {
  outline: 2px solid #78c587;
  outline-offset: 3px;
}

.dashboard.onboarding-active .dashboard-header,
.dashboard.onboarding-active .dashboard-content {
  pointer-events: none;
}

.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(7, 9, 8, 0.62);
}

.onboarding-overlay[hidden],
.onboarding-card[hidden],
.onboarding-back[hidden] {
  display: none !important;
}

.onboarding-spotlight {
  position: relative;
  z-index: 30;
  border-radius: 10px;
  outline: 1px solid rgba(110, 168, 124, 0.48);
  outline-offset: 10px;
  box-shadow:
    0 0 0 1px rgba(16, 19, 17, 0.35),
    0 0 0 10px rgba(16, 19, 17, 0.18);
}

.onboarding-card {
  position: fixed;
  left: 50%;
  bottom: max(32px, env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: min(520px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 0;
  border: 1px solid rgba(112, 189, 128, 0.22);
  border-radius: 20px;
  background: rgba(14, 19, 16, 0.78);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ecefec;
  font-family: Arial, Helvetica, sans-serif;
}

.onboarding-card-inner {
  display: flex;
  flex-direction: column;
  padding: 20px 22px 18px;
}

@media (min-width: 641px) {
  .onboarding-card-inner {
    min-height: 236px;
  }
}

.onboarding-card.is-step-changing .onboarding-card-inner {
  animation: onboarding-card-in 0.16s ease;
}

.onboarding-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.onboarding-step-label {
  margin: 0;
  color: #7bb88a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.onboarding-progress {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.onboarding-progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2a332d;
}

.onboarding-progress-dot.is-complete,
.onboarding-progress-dot.is-active {
  background: #6eae7d;
}

.onboarding-title {
  margin: 0;
  color: #f4f6f4;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.onboarding-body {
  margin: 10px 0 0;
  color: #9aa39c;
  font-size: 13.5px;
  line-height: 1.65;
}

.onboarding-error {
  margin: 12px 0 0;
  color: #d98a8a;
  font-size: 12px;
  line-height: 1.45;
}

.onboarding-error[hidden] {
  display: none;
}

.onboarding-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

@media (min-width: 641px) {
  .onboarding-actions {
    margin-top: auto;
    padding-top: 20px;
  }
}

.onboarding-back,
.onboarding-next {
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 5px;
  font: inherit;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.4px;
  cursor: pointer;
}

.onboarding-back {
  border: 1px solid #3d4a41;
  background: transparent;
  color: #a3ada6;
}

.onboarding-back:hover:not(:disabled) {
  border-color: #536258;
  color: #d5ddd7;
}

.onboarding-next {
  border: 1px solid #5d8a67;
  background: #2f6840;
  color: #fff;
}

.onboarding-next:hover:not(:disabled) {
  border-color: #73a67e;
  background: #38794b;
}

.onboarding-back:disabled,
.onboarding-next:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.onboarding-back:focus-visible,
.onboarding-next:focus-visible {
  outline: 2px solid #78c587;
  outline-offset: 3px;
}

@keyframes onboarding-card-in {
  from {
    opacity: 0.6;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .onboarding-card.is-step-changing .onboarding-card-inner {
    animation: none;
  }
}

@media (max-width: 640px) {
  .onboarding-card {
    width: calc(100% - 24px);
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
  }

  .onboarding-card-inner {
    padding: 16px 16px 14px;
  }

  .onboarding-title {
    font-size: 19px;
  }

  .onboarding-actions {
    flex-wrap: wrap;
  }

  .onboarding-back,
  .onboarding-next {
    flex: 1 1 auto;
  }
}

.progress-card {
  padding: 14px 16px;
}

.progress-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
  font-family: Arial, Helvetica, sans-serif;
}

.progress-summary-metric {
  min-width: 0;
  padding: 7px 10px 8px;
  border: 1px solid #303832;
  border-radius: 6px;
  background: #151916;
}

.progress-summary-label {
  display: block;
  color: #758078;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.35px;
  line-height: 1.2;
  text-transform: uppercase;
}

.progress-summary-value {
  display: block;
  margin-top: 3px;
  color: #e6ece7;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
}

.progress-summary-value.is-empty {
  color: #8f9991;
}

.progress-summary-count {
  color: #e6ece7;
}

.progress-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, 104px);
  border: 1px solid #3a443d;
  border-radius: 5px;
  overflow: hidden;
}

.progress-toggle-button {
  min-height: 32px;
  padding: 6px 12px;
  border: 0;
  background: #151916;
  color: #89938b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.35px;
  cursor: pointer;
}

.progress-toggle-button + .progress-toggle-button {
  border-left: 1px solid #3a443d;
}

.progress-toggle-button.is-active {
  background: #2f6f3e;
  color: #fff;
}

.progress-toggle-button:not(.is-active):hover,
.progress-toggle-button:not(.is-active):focus-visible {
  background: rgba(57, 125, 72, 0.14);
  color: #c9dfcd;
  box-shadow: inset 0 0 0 1px #465c4b;
}

.progress-toggle-button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid #78c587;
  outline-offset: -2px;
}

.progress-chart-wrap {
  min-height: 218px;
  overflow-x: auto;
  border: 1px solid #303832;
  border-radius: 6px;
  background: #121613;
}

.progress-graph {
  min-height: 216px;
}

.progress-svg {
  display: block;
  width: 100%;
  min-width: 680px;
  height: 216px;
}

.progress-grid-line {
  stroke: #343c36;
  stroke-width: 1.1;
}

.progress-axis-label {
  fill: #98a19a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
}

.progress-line {
  fill: none;
  stroke: #70bd80;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.progress-point {
  fill: #101311;
  stroke: #79c489;
  stroke-width: 3;
  cursor: pointer;
}

.progress-point:hover,
.progress-point:focus {
  fill: #79c489;
  stroke: #d8f0dd;
  outline: none;
}

.progress-tooltip {
  position: fixed;
  z-index: 1200;
  min-width: 170px;
  padding: 10px 12px;
  border: 1px solid #55705b;
  border-radius: 5px;
  background: #111512;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
  color: #dfe7e0;
  font-size: 12px;
  line-height: 1.45;
  pointer-events: none;
}

.progress-tooltip[hidden] {
  display: none;
}

.progress-tooltip-score {
  display: block;
  margin-bottom: 2px;
  color: #8bd19a;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
}

.history-card {
  overflow: hidden;
}

.history-header,
.history-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 120px minmax(220px, 1fr);
  align-items: center;
  column-gap: 24px;
}

.history-header {
  padding: 13px 22px;
  border-bottom: 1px solid #343c36;
  background: #151916;
  color: #758078;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.history-row {
  min-height: 62px;
  padding: 13px 22px;
  border-bottom: 1px solid #2b322d;
  color: #d8ded9;
  font-size: 13px;
}

.history-row:last-child {
  border-bottom: 0;
}

.history-test-name {
  color: #f0f3f0;
  font-weight: 600;
}

.history-score {
  color: #8bd19a;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
}

.history-completed {
  color: #9fa8a1;
}

.dashboard-data-message {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 24px;
  color: #8f9991;
  font-size: 13px;
  text-align: center;
}

.progress-graph .dashboard-data-message {
  min-height: 216px;
}

.back-dashboard-btn {
  display: block;
  margin: 18px auto 0;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  color: #b7c8ba;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.back-dashboard-btn:hover {
  color: #8bd19a;
}

/* ── Admin dashboard ── */
.admin-dashboard {
  position: fixed;
  inset: 0;
  z-index: 950;
  overflow-y: auto;
  background:
    linear-gradient(rgba(98, 181, 115, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 181, 115, 0.026) 1px, transparent 1px),
    radial-gradient(circle at 9% 0%, rgba(53, 105, 67, 0.2), transparent 38%),
    #101311;
  background-size: 44px 44px, 44px 44px, auto, auto;
  color: #ecefec;
}

.admin-header {
  display: flex;
  min-height: 132px;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 22px max(24px, calc((100% - 1120px) / 2));
  border-bottom: 1px solid #2c332e;
  background: rgba(16, 19, 17, 0.9);
}

.admin-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 22px;
}

.admin-logo {
  display: block;
  width: 285px;
  height: auto;
  margin: -25px -39px -24px -48px;
}

.admin-badge {
  padding: 7px 10px;
  border: 1px solid #5a8a64;
  border-radius: 5px;
  background: rgba(57, 125, 72, 0.19);
  color: #9bd6a7;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1.5px;
}

.admin-account {
  display: flex;
  min-width: 300px;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  padding-left: 32px;
  border-left: 1px solid #2d352f;
}

.admin-account-label,
.admin-eyebrow,
.admin-section-heading h2,
.admin-purchase-details dt {
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  text-transform: uppercase;
}

.admin-account-label {
  color: #70bd80;
  font-size: 10px;
  letter-spacing: 1.7px;
}

.admin-email {
  max-width: 330px;
  overflow-wrap: anywhere;
  color: #d8ded9;
  font-size: 13px;
}

.admin-header-actions {
  display: flex;
  gap: 9px;
  margin-top: 8px;
}

.admin-open-platform,
.admin-logout,
.admin-proof-button,
.admin-approve-button,
.admin-reject-button {
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 5px;
  font: inherit;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.45px;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.admin-open-platform,
.admin-approve-button {
  border: 1px solid #65aa73;
  background: #367b46;
  color: #fff;
}

.admin-logout,
.admin-proof-button {
  border: 1px solid #465c4b;
  background: transparent;
  color: #c9dfcd;
}

.admin-reject-button {
  border: 1px solid #795050;
  background: rgba(105, 43, 43, 0.15);
  color: #e2b8b8;
}

.admin-open-platform:hover,
.admin-approve-button:hover:not(:disabled) {
  border-color: #79bd87;
  background: #428b53;
}

.admin-logout:hover,
.admin-proof-button:hover:not(:disabled) {
  border-color: #70ad7b;
  background: rgba(57, 125, 72, 0.14);
}

.admin-reject-button:hover:not(:disabled) {
  border-color: #a96666;
  background: rgba(126, 48, 48, 0.24);
}

.admin-open-platform:focus-visible,
.admin-logout:focus-visible,
.admin-proof-button:focus-visible,
.admin-approve-button:focus-visible,
.admin-reject-button:focus-visible {
  outline: 2px solid #78c587;
  outline-offset: 3px;
}

.admin-proof-button:disabled,
.admin-approve-button:disabled,
.admin-reject-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.admin-content {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(46px, 6vw, 72px) 0 70px;
}

.admin-intro {
  max-width: 720px;
  margin-bottom: 30px;
}

.admin-eyebrow {
  display: block;
  margin-bottom: 11px;
  color: #70bd80;
  font-size: 10px;
  letter-spacing: 1.7px;
}

.admin-intro h1 {
  color: #f2f4f2;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.admin-intro p {
  margin-top: 13px;
  color: #98a19a;
  font-size: 14px;
  line-height: 1.6;
}

.admin-message {
  margin-bottom: 22px;
  padding: 12px 14px;
  border: 1px solid #4b7453;
  border-radius: 6px;
  background: rgba(57, 125, 72, 0.13);
  color: #cce8d2;
  font-size: 13px;
  line-height: 1.5;
}

.admin-message.is-error {
  border-color: #704444;
  background: rgba(111, 45, 45, 0.19);
  color: #f0caca;
}

.admin-review-section {
  margin-top: 34px;
}

.admin-recent-section {
  margin-top: 54px;
  opacity: 0.88;
}

.admin-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-section-heading h2 {
  color: #79c489;
  font-size: 12px;
  letter-spacing: 1.4px;
}

.admin-count {
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border: 1px solid #4b7453;
  border-radius: 999px;
  background: rgba(57, 125, 72, 0.13);
  color: #9bd6a7;
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  font-weight: bold;
}

.admin-purchase-list {
  display: grid;
  gap: 14px;
}

.admin-purchase-card {
  padding: 23px;
  border: 1px solid #3b493e;
  border-left: 3px solid #70bd80;
  border-radius: 8px;
  background: rgba(27, 31, 28, 0.97);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

.admin-purchase-card.is-reviewed {
  border-color: #343c36;
  border-left-width: 1px;
  background: rgba(24, 28, 25, 0.94);
}

.admin-purchase-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.admin-purchase-top h3 {
  overflow-wrap: anywhere;
  color: #f0f3f0;
  font-size: 17px;
}

.admin-purchase-top p {
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: #6f7971;
  font-family: 'Courier New', Courier, monospace;
  font-size: 9px;
}

.admin-status {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid #4b7453;
  border-radius: 999px;
  background: rgba(57, 125, 72, 0.13);
  color: #8bd19a;
  font-family: 'Courier New', Courier, monospace;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 0.8px;
}

.admin-status-approved {
  border-color: #4b7453;
  color: #8bd19a;
}

.admin-status-rejected {
  border-color: #704444;
  background: rgba(111, 45, 45, 0.14);
  color: #d9a7a7;
}

.admin-purchase-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 28px;
  margin-top: 23px;
  padding-top: 20px;
  border-top: 1px solid #303832;
}

.admin-purchase-details dt {
  margin-bottom: 7px;
  color: #778079;
  font-size: 9px;
  letter-spacing: 1px;
}

.admin-purchase-details dd {
  overflow-wrap: anywhere;
  color: #d8ded9;
  font-size: 13px;
  line-height: 1.45;
}

.admin-purchase-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #303832;
}

.admin-proof-button {
  margin-right: auto;
}

.admin-empty {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px solid #343c36;
  border-radius: 8px;
  background: rgba(27, 31, 28, 0.78);
  color: #8f9991;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 760px) {
  .admin-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 22px 24px;
  }

  .admin-logo {
    width: 250px;
  }

  .admin-account {
    width: 100%;
    min-width: 0;
    align-items: flex-start;
    padding: 17px 0 0;
    border-top: 1px solid #2d352f;
    border-left: 0;
  }

  .admin-content {
    width: calc(100% - 32px);
    padding: 42px 0 54px;
  }

  .admin-purchase-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .admin-brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .admin-badge {
    margin-top: -8px;
  }

  .admin-header-actions,
  .admin-purchase-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .admin-header-actions button,
  .admin-purchase-actions button {
    width: 100%;
  }

  .admin-purchase-card {
    padding: 19px;
  }

  .admin-purchase-top {
    flex-direction: column;
  }

  .admin-purchase-details {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .admin-proof-button {
    margin-right: 0;
  }
}

/* ── Authentication ── */
.auth-hidden {
  display: none !important;
}

#app.auth-hidden {
  display: flex !important;
  visibility: hidden;
  pointer-events: none;
}

.session-loading,
.auth-screen,
.payment-screen,
.payment-pending-screen,
.access-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background:
    radial-gradient(circle at 50% -12%, rgba(53, 105, 67, 0.17), transparent 43%),
    #101311;
  color: #ecefec;
}

.payment-screen {
  overflow-y: auto;
  background:
    linear-gradient(rgba(98, 181, 115, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 181, 115, 0.026) 1px, transparent 1px),
    radial-gradient(circle at 12% 5%, rgba(53, 105, 67, 0.2), transparent 38%),
    #101311;
  background-size: 44px 44px, 44px 44px, auto, auto;
}

.payment-header {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(24px, calc((100% - 1120px) / 2));
  border-bottom: 1px solid #2c332e;
  background: rgba(16, 19, 17, 0.88);
}

.payment-logo {
  display: block;
  width: 260px;
  height: auto;
  margin: -25px -35px -24px -43px;
}

.payment-back,
.payment-secondary {
  border: 1px solid #465c4b;
  border-radius: 5px;
  background: transparent;
  color: #c9dfcd;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.payment-back {
  padding: 9px 16px;
  font-size: 12px;
}

.payment-back:hover,
.payment-secondary:hover {
  border-color: #70ad7b;
  background: rgba(57, 125, 72, 0.14);
}

.payment-layout {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 78px) 0 72px;
}

.payment-intro {
  max-width: 720px;
  margin-bottom: 34px;
}

.payment-eyebrow,
.payment-summary-topline,
.payment-includes h3,
.payment-method span {
  font-family: 'Courier New', Courier, monospace;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.payment-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #70bd80;
}

.payment-intro > .payment-eyebrow,
.payment-proof-section > .payment-eyebrow {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.4px;
}

.payment-intro h1 {
  color: #f3f6f3;
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.payment-intro p {
  margin-top: 16px;
  color: #aab2ac;
  font-size: 15px;
  line-height: 1.65;
}

.payment-content {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 22px;
  align-items: start;
}

.payment-summary-card,
.payment-methods-card {
  border: 1px solid #354038;
  border-radius: 9px;
  background: rgba(27, 31, 28, 0.97);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.25);
}

.payment-summary-card {
  padding: clamp(26px, 4vw, 38px);
  border-top: 2px solid #579d66;
}

.payment-summary-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #7f8981;
}

.payment-access-badge {
  padding: 6px 9px;
  border: 1px solid rgba(98, 181, 115, 0.4);
  border-radius: 999px;
  background: rgba(57, 125, 72, 0.13);
  color: #8bd19a;
  white-space: nowrap;
}

.payment-summary-card h2 {
  margin-top: 28px;
  color: #f2f4f2;
  font-size: clamp(27px, 4vw, 38px);
  letter-spacing: -0.025em;
}

.payment-price {
  margin-top: 10px;
  color: #79c489;
  font-size: clamp(48px, 6vw, 66px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}

.payment-includes {
  margin-top: 30px;
  padding: 22px 0;
  border-top: 1px solid #343c36;
  border-bottom: 1px solid #343c36;
}

.payment-includes h3 {
  margin-bottom: 13px;
  color: #7f8981;
}

.payment-includes ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.payment-includes li {
  position: relative;
  padding-left: 24px;
  color: #dce2dd;
  font-size: 14px;
}

.payment-includes li::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 3px;
  width: 6px;
  height: 10px;
  border-right: 2px solid #70bd80;
  border-bottom: 2px solid #70bd80;
  transform: rotate(45deg);
}

.payment-secondary {
  width: 100%;
  min-height: 46px;
  font-weight: bold;
}

.payment-secondary {
  margin-top: 11px;
  padding: 11px 18px;
  font-size: 12px;
}

.payment-methods-card {
  padding: clamp(26px, 4vw, 34px);
  scroll-margin: 24px;
}

.payment-methods-card:focus {
  outline: 2px solid #5e9f6b;
  outline-offset: 3px;
}

.payment-methods-card h2 {
  color: #f2f4f2;
  font-size: clamp(24px, 3vw, 31px);
  line-height: 1.2;
}

.payment-preview-note {
  margin-top: 12px;
  color: #98a19a;
  font-size: 13px;
  line-height: 1.6;
}

.payment-method-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.payment-method {
  display: flex;
  width: 100%;
  min-height: 82px;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid #343c36;
  border-radius: 6px;
  background: #151916;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.payment-method:hover {
  border-color: #568160;
  background: #19201b;
}

.payment-method.is-selected {
  border-color: #70bd80;
  background: rgba(57, 125, 72, 0.16);
  box-shadow: inset 3px 0 0 #70bd80;
}

.payment-method span {
  color: #70bd80;
}

.payment-method strong {
  color: #e8ece9;
  font-size: 17px;
}

.payment-method-detail {
  margin-top: 28px;
  padding-top: 27px;
  border-top: 1px solid #343c36;
}

.payment-method-panel h3 {
  color: #f2f4f2;
  font-size: 20px;
  line-height: 1.3;
}

.payment-panel-amount,
.paypal-package-line {
  margin-top: 13px;
  color: #cbd2cc;
  font-size: 14px;
  line-height: 1.5;
}

.payment-panel-amount strong,
.paypal-package-line span {
  color: #8bd19a;
  font-family: 'Courier New', Courier, monospace;
  font-size: 18px;
}

.duitnow-qr-image,
.paypal-qr-image {
  display: block;
  width: min(310px, 100%);
  height: auto;
  margin: 20px auto;
  border: 1px solid #46524a;
  border-radius: 7px;
  background: #fff;
}

.payment-instructions {
  display: grid;
  gap: 10px;
  margin: 20px 0 0 20px;
  color: #c3cac4;
  font-size: 13px;
  line-height: 1.55;
}

.payment-instructions li {
  padding-left: 4px;
}

.payment-method-note {
  margin-top: 15px;
  color: #98a19a;
  font-size: 12px;
  line-height: 1.6;
}

.paypal-open-button {
  display: inline-flex;
  min-width: 170px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding: 11px 22px;
  border: 1px solid #65aa73;
  border-radius: 5px;
  background: #367b46;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.7px;
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s;
}

.paypal-open-button:hover {
  border-color: #79bd87;
  background: #428b53;
}

.payment-made-button {
  width: 100%;
  min-height: 46px;
  margin-top: 26px;
  padding: 12px 18px;
  border: 1px solid #65aa73;
  border-radius: 5px;
  background: #367b46;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.6px;
  cursor: pointer;
}

.payment-made-button:hover {
  border-color: #79bd87;
  background: #428b53;
}

.payment-proof-section {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid #4b7453;
  border-radius: 6px;
  background: rgba(57, 125, 72, 0.12);
  color: #dce6de;
}

.payment-proof-section:focus {
  outline: 2px solid #78c587;
  outline-offset: 3px;
}

.payment-proof-section h3 {
  color: #f2f4f2;
  font-size: 19px;
}

.payment-proof-form {
  display: grid;
  gap: 19px;
  margin-top: 19px;
}

.payment-field-label {
  display: block;
  color: #dce2dd;
  font-size: 13px;
  font-weight: bold;
}

.payment-field-help {
  margin-top: 5px;
  color: #98a19a;
  font-size: 11px;
  line-height: 1.5;
}

.payment-file-picker {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  margin-top: 10px;
  padding: 14px;
  border: 1px dashed #55705b;
  border-radius: 6px;
  background: #131714;
  color: #d9eddd;
  text-align: center;
  cursor: pointer;
}

.payment-file-picker:hover {
  border-color: #70ad7b;
  background: #172019;
}

.payment-file-picker small {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #8f9991;
  font-size: 11px;
}

.payment-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.payment-file-input:focus-visible + *,
.payment-file-picker:has(+ .payment-file-input:focus-visible) {
  outline: 2px solid #78c587;
  outline-offset: 3px;
}

.payment-reference-input {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #3c443e;
  border-radius: 5px;
  outline: none;
  background: #111412;
  color: #fff;
  font: inherit;
  font-size: 13px;
}

.payment-reference-input:focus {
  border-color: #62b573;
  box-shadow: 0 0 0 3px rgba(98, 181, 115, 0.13);
}

.payment-submit-message {
  padding: 11px 12px;
  border: 1px solid #704444;
  border-radius: 5px;
  background: rgba(111, 45, 45, 0.19);
  color: #f0caca;
  font-size: 12px;
  line-height: 1.5;
}

.payment-submit-message.is-success {
  border-color: #4b7453;
  background: rgba(57, 125, 72, 0.15);
  color: #cce8d2;
}

.payment-submit-button {
  width: 100%;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid #65aa73;
  border-radius: 5px;
  background: #367b46;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.6px;
  cursor: pointer;
}

.payment-submit-button:hover:not(:disabled) {
  border-color: #79bd87;
  background: #428b53;
}

.payment-submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.payment-back:focus-visible,
.payment-secondary:focus-visible,
.payment-method:focus-visible,
.paypal-open-button:focus-visible,
.payment-made-button:focus-visible,
.payment-submit-button:focus-visible {
  outline: 2px solid #78c587;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .payment-header {
    min-height: 92px;
    padding: 14px 20px;
  }

  .payment-logo {
    width: 215px;
    margin: -20px -29px -20px -35px;
  }

  .payment-layout {
    width: calc(100% - 32px);
    padding: 42px 0 52px;
  }

  .payment-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .payment-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .payment-back {
    align-self: flex-end;
    margin-top: -14px;
  }

  .payment-layout {
    width: calc(100% - 28px);
    padding-top: 34px;
  }

  .payment-summary-topline {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ── Compact checkout redesign ── */
.payment-screen {
  padding: 0 24px;
}

.payment-layout {
  width: min(1040px, 100%);
  padding: 0 0 46px;
}

.payment-header {
  min-height: 78px;
  padding: 8px 0;
  border-bottom-color: #29322c;
  background: transparent;
}

.payment-logo {
  width: 230px;
  margin: -22px -31px -21px -38px;
}

.payment-back {
  padding: 7px 10px;
  border-color: transparent;
  color: #89958c;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.payment-back:hover {
  border-color: transparent;
  background: transparent;
  color: #c9dfcd;
}

.payment-intro {
  max-width: 650px;
  margin: 29px 0 24px;
}

.payment-eyebrow {
  margin-bottom: 8px;
  font-size: 9px;
  letter-spacing: 1.6px;
}

.payment-intro h1 {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.payment-intro p {
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.55;
}

.payment-content {
  grid-template-columns: minmax(280px, 0.72fr) minmax(440px, 1.28fr);
  gap: 16px;
}

.payment-summary-card,
.payment-methods-card {
  border-color: #343d37;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

.payment-summary-card {
  position: sticky;
  top: 18px;
  padding: 23px;
  border-top-width: 1px;
}

.payment-summary-topline {
  align-items: center;
}

.payment-access-badge {
  padding: 5px 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  letter-spacing: 0.55px;
}

.payment-package-label {
  display: block;
  color: #79b985;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.55px;
  text-transform: uppercase;
}

.payment-summary-card h3 {
  margin-top: 22px;
  color: #f2f4f2;
  font-size: clamp(23px, 3vw, 29px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.payment-includes {
  margin-top: 8px;
  padding: 0;
  border: 0;
}

.payment-includes ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.payment-includes li {
  padding-left: 0;
  color: #aab2ac;
  font-size: 12px;
  line-height: 1.5;
}

.payment-includes li::before {
  display: none;
}

.payment-includes li + li::before {
  content: '+';
  display: inline;
  position: static;
  margin: 0 6px;
  border: 0;
  color: #70bd80;
  transform: none;
}

.payment-price {
  margin-top: 23px;
  color: #8bd19a;
  font-size: clamp(42px, 5vw, 52px);
  letter-spacing: -0.045em;
}

.payment-benefits {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #303832;
  color: #c3cac4;
  font-size: 12px;
}

.payment-benefits span::before {
  content: '✓';
  margin-right: 9px;
  color: #70bd80;
  font-weight: bold;
}

.payment-secondary {
  min-height: 32px;
  margin-top: 22px;
  padding: 6px 10px;
  border-color: transparent;
  color: #818c84;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.payment-secondary:hover {
  border-color: transparent;
  background: transparent;
  color: #b9cbbd;
}

.payment-methods-card {
  padding: 24px 25px 25px;
  scroll-margin: 16px;
}

.payment-methods-card > .payment-eyebrow {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.7px;
}

.payment-methods-card h2 {
  font-size: clamp(22px, 3vw, 27px);
}

.payment-preview-note {
  margin-top: 6px;
  font-size: 12px;
}

.payment-method-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}

.payment-method {
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  min-height: 96px;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 5px;
  background: #151916;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.payment-method:hover {
  border-color: #70ad7b;
  background: #151916;
}

.payment-method.is-selected {
  border-color: #79c489;
  background: #151916;
  box-shadow: 0 0 0 1px #79c489;
}

.payment-method span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8px;
  letter-spacing: 0.55px;
}

.payment-method-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 72%;
  width: 72%;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding: 16px 18px;
}

.payment-method-logo {
  display: block;
  box-sizing: border-box;
  flex: 0 0 28%;
  align-self: stretch;
  width: 28%;
  min-height: 96px;
  height: auto;
  padding: 18px 14px;
  border-left: 1px solid #c9d0cb;
  background: #f4f6f3;
  object-fit: contain;
  object-position: center;
}

.payment-method-logo-duitnow {
  max-width: none;
  max-height: none;
}

.payment-method-logo-paypal {
  max-width: none;
  max-height: none;
}

.payment-method strong {
  font-size: 15px;
}

.payment-method-detail {
  margin-top: 20px;
  padding-top: 20px;
}

.payment-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.payment-method-panel h3 {
  font-size: 17px;
}

.payment-panel-heading > div > p {
  margin-top: 4px;
  color: #89938b;
  font-size: 10px;
  line-height: 1.4;
}

.payment-panel-amount {
  flex: 0 0 auto;
  margin-top: 0;
  color: #98a19a;
  font-size: 11px;
  text-align: right;
}

.payment-panel-amount strong,
.paypal-package-line span {
  display: block;
  margin-top: 2px;
  font-size: 17px;
}

#duitnow-payment-amount,
#paypal-payment-amount {
  margin-top: 0;
  color: #8bd19a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.duitnow-payment-content,
.paypal-payment-content {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin-top: 17px;
}

.duitnow-qr-wrap,
.paypal-qr-wrap {
  margin: 0;
}

.duitnow-qr-image,
.paypal-qr-image {
  width: 180px;
  margin: 0;
  border-radius: 5px;
}

.duitnow-qr-wrap figcaption,
.paypal-qr-wrap figcaption {
  margin-top: 7px;
  color: #7f8981;
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
}

.payment-instructions {
  gap: 7px;
  margin: 0 0 0 18px;
  font-size: 11px;
  line-height: 1.45;
}

.payment-method-note {
  margin-top: 10px;
  font-size: 10px;
  line-height: 1.5;
}

.paypal-package-line {
  margin-top: 10px;
  font-size: 12px;
}

.paypal-package-line span {
  display: inline;
}

.paypal-open-button {
  min-width: 0;
  min-height: 32px;
  margin-top: 10px;
  padding: 6px 12px;
  border-color: #465c4b;
  background: transparent;
  color: #c9dfcd;
  font-size: 10px;
}

.paypal-open-button:hover {
  border-color: #70ad7b;
  background: rgba(57, 125, 72, 0.14);
}

.payment-made-button {
  min-height: 41px;
  margin-top: 20px;
  padding: 10px 15px;
  font-size: 11px;
}

.payment-proof-section {
  margin-top: 12px;
  padding: 18px;
  border-color: #3e5944;
  border-radius: 5px;
  background: rgba(42, 76, 49, 0.13);
}

.payment-proof-section .payment-eyebrow {
  margin-bottom: 5px;
}

.payment-proof-section h3 {
  font-size: 17px;
}

.payment-proof-intro {
  margin-top: 5px;
  color: #98a19a;
  font-size: 11px;
  line-height: 1.5;
}

.payment-proof-form {
  gap: 15px;
  margin-top: 15px;
}

.payment-field-label {
  font-size: 12px;
}

.payment-field-help {
  margin-top: 3px;
  font-size: 10px;
}

.payment-file-picker {
  min-height: 60px;
  gap: 4px;
  margin-top: 7px;
  padding: 10px;
}

.payment-reference-input {
  min-height: 40px;
  margin-top: 6px;
  padding: 8px 11px;
  font-size: 12px;
}

.payment-submit-button {
  min-height: 42px;
  padding: 10px 15px;
  font-size: 11px;
}

@media (max-width: 820px) {
  .payment-screen {
    padding: 0 20px;
  }

  .payment-content {
    grid-template-columns: 1fr;
  }

  .payment-summary-card {
    position: static;
  }
}

@media (max-width: 520px) {
  .payment-screen {
    padding: 0 14px;
  }

  .payment-layout {
    width: 100%;
    padding-bottom: 30px;
  }

  .payment-header {
    min-height: 67px;
    align-items: center;
    flex-direction: row;
    gap: 12px;
    padding: 6px 0;
  }

  .payment-logo {
    width: 190px;
    margin: -18px -25px -17px -31px;
  }

  .payment-back {
    align-self: auto;
    margin: 0;
    white-space: nowrap;
  }

  .payment-intro {
    margin: 23px 0 19px;
  }

  .payment-intro h1 {
    font-size: 29px;
  }

  .payment-summary-card,
  .payment-methods-card {
    padding: 20px;
  }

  .payment-summary-topline {
    align-items: center;
    flex-direction: row;
  }

  .payment-method-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-method {
    min-height: 80px;
    gap: 0;
    padding: 0;
    background: #151916;
  }

  .payment-method:hover,
  .payment-method.is-selected {
    background: #151916;
  }

  .payment-method-copy {
    flex-basis: 66%;
    width: 66%;
    padding: 12px 12px 12px 14px;
  }

  .payment-method-logo {
    flex-basis: 34%;
    width: 34%;
    min-height: 80px;
    padding: 12px 10px;
  }

  .payment-method-logo-duitnow,
  .payment-method-logo-paypal {
    max-width: none;
    max-height: none;
  }

  .payment-panel-heading {
    flex-direction: column;
    gap: 9px;
  }

  .payment-panel-amount {
    text-align: left;
  }

  .payment-panel-amount strong {
    display: inline;
    margin: 0 0 0 3px;
  }

  .duitnow-payment-content,
  .paypal-payment-content {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .duitnow-qr-image,
  .paypal-qr-image {
    width: min(210px, 100%);
    margin: 0 auto;
  }

  .payment-instructions {
    font-size: 11px;
  }
}

.session-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 1px;
}

.auth-screen,
.payment-pending-screen,
.access-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 24px;
}

.payment-pending-card {
  text-align: center;
}

.payment-pending-card .payment-eyebrow {
  margin-bottom: 15px;
}

.payment-pending-card h1 {
  margin-bottom: 18px;
}

.payment-pending-card > p {
  color: #c8d0ca;
  font-size: 14px;
  line-height: 1.6;
}

.payment-pending-card > p + p {
  margin-top: 7px;
}

.payment-pending-package {
  margin-top: 18px !important;
  color: #8bd19a !important;
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
}

.auth-layout {
  display: flex;
  width: min(440px, 100%);
  min-height: calc(100vh - 48px);
  min-height: calc(100dvh - 48px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 28px 0 20px;
}

.auth-screen {
  display: block;
}

.auth-brand {
  width: 100%;
  margin-bottom: 8px;
  text-align: center;
}

.auth-logo-home {
  display: block;
  width: min(390px, 100%);
  margin: -26px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.auth-logo-home:hover {
  opacity: 0.88;
}

.auth-logo-home:focus-visible {
  outline: 2px solid #78c587;
  outline-offset: 3px;
  border-radius: 8px;
}

.auth-logo {
  display: block;
  width: 100%;
  height: auto;
}

.auth-card {
  width: min(420px, 100%);
  padding: 29px 32px 32px;
  background: #1b1f1c;
  border: 1px solid #343b35;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
}

.auth-card h1 {
  margin-bottom: 28px;
  color: #f2f4f2;
  font-size: clamp(24px, 5vw, 31px);
  line-height: 1.2;
  text-align: center;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 26px;
  border-bottom: 1px solid #343b35;
}

.auth-tab {
  padding: 10px 12px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #879089;
  font: inherit;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1.4px;
  cursor: pointer;
}

.auth-tab.is-active {
  border-bottom-color: #62b573;
  color: #dff2e2;
}

.auth-tab:focus-visible,
.auth-submit:focus-visible,
.auth-secondary:focus-visible {
  outline: 2px solid #78c587;
  outline-offset: 3px;
}

.auth-form {
  display: grid;
  gap: 9px;
}

.auth-form label {
  margin-top: 7px;
  color: #c7cdc8;
  font-size: 13px;
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #3c443e;
  border-radius: 5px;
  outline: none;
  background: #111412;
  color: #fff;
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.auth-form input:focus {
  border-color: #62b573;
  background: #131714;
  box-shadow: 0 0 0 3px rgba(98, 181, 115, 0.13);
}

.auth-forgot-link {
  justify-self: end;
  margin: 2px 0 -4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8d968f;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}

.auth-forgot-link:hover {
  color: #d5ddd6;
}

.auth-forgot-link:focus-visible {
  outline: 2px solid #78c587;
  outline-offset: 3px;
  border-radius: 3px;
}

.auth-reset-title {
  margin: 2px 0 4px;
  color: #f3f6f3;
  font-size: 22px;
  line-height: 1.2;
}

.auth-reset-copy {
  margin-bottom: 8px;
  color: #9fa8a1;
  font-size: 13px;
  line-height: 1.55;
}

.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #8d968f;
  transform: translateY(-50%);
  cursor: pointer;
}

.password-toggle:hover {
  color: #d5ddd6;
}

.password-toggle:focus-visible {
  outline: 2px solid #78c587;
  outline-offset: 1px;
}

.password-toggle-icon {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle-icon-hide {
  display: none;
}

.password-toggle.is-revealed .password-toggle-icon-show {
  display: none;
}

.password-toggle.is-revealed .password-toggle-icon-hide {
  display: block;
}

.auth-submit,
.auth-secondary {
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid #65aa73;
  border-radius: 5px;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.auth-submit {
  margin-top: 15px;
  background: #367b46;
  color: #fff;
}

.auth-submit:hover:not(:disabled) {
  border-color: #79bd87;
  background: #428b53;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.auth-secondary {
  margin-top: 22px;
  background: transparent;
  color: #d9eddd;
}

.auth-secondary:hover:not(:disabled) {
  background: rgba(80, 151, 94, 0.11);
}

.auth-message {
  margin-bottom: 20px;
  padding: 12px 13px;
  border: 1px solid #704444;
  border-radius: 5px;
  background: rgba(111, 45, 45, 0.19);
  color: #f0caca;
  font-size: 13px;
  line-height: 1.5;
}

.auth-message.is-success {
  border-color: #3e5944;
  background: rgba(57, 125, 72, 0.16);
  color: #d5ead9;
}

.verification-message {
  color: #d5dad6;
  line-height: 1.55;
  text-align: center;
}

.verification-message h2 {
  margin-bottom: 14px;
  color: #8bd19a;
}

.verification-message strong {
  color: #fff;
  overflow-wrap: anywhere;
}

.auth-footer {
  margin-top: 23px;
  color: #69716b;
  font-size: 12px;
  letter-spacing: 0.35px;
}

.access-card {
  text-align: center;
}

.access-card h1 {
  margin-bottom: 18px;
}

.access-message,
.access-email {
  color: #d5dad6;
  line-height: 1.55;
}

.access-email {
  margin-top: 16px;
  color: #fff;
  overflow-wrap: anywhere;
}

.access-actions {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.access-actions .auth-submit,
.access-actions .auth-secondary {
  margin-top: 0;
}

.logout-btn {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 130;
  width: max-content;
  min-height: 36px;
  padding: 8px 16px;
  border: 1px solid #465c4b;
  border-radius: 5px;
  background: #151916;
  color: #c9dfcd;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.logout-btn:hover {
  border-color: #70ad7b;
  background: rgba(57, 125, 72, 0.14);
  color: #dce9df;
}

#app.is-pregame > .logout-btn,
#app:has(#overlay-debrief-intro:not(.hidden)) > .logout-btn,
#app:has(#overlay-debrief-q:not(.hidden)) > .logout-btn,
#app:has(#overlay-complete:not(.hidden)) > .logout-btn {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 520px) {
  .auth-screen,
  .access-screen {
    padding: 12px 16px;
  }

  .auth-layout {
    min-height: calc(100vh - 24px);
    min-height: calc(100dvh - 24px);
    padding: 18px 0 14px;
  }

  .auth-brand {
    margin-bottom: 6px;
  }

  .auth-logo-home {
    width: min(350px, 100%);
    margin-top: -24px;
  }

  .auth-card {
    padding: 25px 21px 27px;
  }
}

@media (max-width: 760px) {
  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
  }

  .dashboard-brand {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'logo'
      'heading';
  }

  .dashboard-logo {
    width: min(300px, calc(100% + 40px));
    margin: -27px 0 -24px -44px;
  }

  .dashboard-heading {
    padding: 15px 0 0;
    border-top: 1px solid #354038;
    border-left: 0;
  }

  .dashboard-heading h1 {
    padding-left: 0;
  }

  .dashboard-account {
    width: 100%;
    align-items: flex-start;
    justify-items: start;
    min-width: 0;
    padding: 18px 0 0;
    border-top: 1px solid #2d352f;
    border-left: 0;
  }

  .dashboard-content {
    width: min(100% - 32px, 1120px);
    padding: 42px 0;
  }

  .dashboard-pending-payment {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-community {
    margin-top: 24px;
  }

  .community-row {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .community-copy {
    flex: 1 1 calc(100% - 38px);
  }

  .community-join {
    margin-left: 38px;
  }

  .test-grid {
    grid-template-columns: 1fr;
  }

  .test-card {
    min-height: 300px;
    padding: 25px;
  }

  .dashboard-data-section {
    margin-top: 40px;
  }

  .dashboard-data-section + .dashboard-data-section {
    margin-top: 28px;
  }

  .progress-card {
    padding: 14px;
  }

  .progress-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 9px;
  }

  .history-header,
  .history-row {
    grid-template-columns: minmax(120px, 1fr) 80px minmax(190px, 1fr);
    column-gap: 16px;
  }

  .history-header {
    display: none;
  }

  .history-row {
    grid-template-columns: 1fr auto;
    row-gap: 8px;
    padding: 17px 18px;
  }

  .history-completed {
    grid-column: 1 / -1;
  }

  .history-completed::before {
    content: 'Completed: ';
    color: #6f7971;
  }
}

@media (max-width: 420px) {
  .dashboard-header {
    padding: 22px 18px;
  }

  .dashboard-content {
    width: calc(100% - 28px);
    padding: 36px 0;
  }

  .test-card {
    min-height: 0;
    padding: 23px 20px;
  }

  .progress-card {
    padding: 12px;
  }

  .progress-summary-value {
    font-size: 16px;
  }

  .dashboard-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }

  .community-join {
    width: 100%;
    margin-left: 0;
  }
}
