:root {
  --ink: #17172a;
  --navy: #243b64;
  --deep: #0d1024;
  --purple: #5b3fa0;
  --violet: #8b72c4;
  --gold: #e7a72e;
  --gold-soft: #f7e5b6;
  --cream: #fbf8f1;
  --muted: #77748b;
  --line: #e7e2d8;
  --card: rgba(255, 255, 255, 0.96);
  --shadow: 0 22px 60px rgba(14, 16, 45, 0.2);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(231, 167, 46, 0.2), transparent 27rem),
    radial-gradient(circle at 95% 10%, rgba(139, 114, 196, 0.22), transparent 31rem),
    linear-gradient(135deg, #0b0e22 0%, #24284d 58%, #11152f 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.app-shell { min-height: 100vh; }

.topbar {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(231, 167, 46, 0.7);
  border-radius: 13px;
  color: var(--gold);
  background: rgba(36, 59, 100, 0.72);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22);
  font-weight: 800;
  font-size: 1.2rem;
}

.brand strong,
.brand small { display: block; }
.brand strong { font-size: 0.87rem; }
.brand small { margin-top: 1px; color: rgba(255, 255, 255, 0.62); letter-spacing: 0.04em; font-size: 0.75rem; }

.topbar-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #66d18f;
  box-shadow: 0 0 0 5px rgba(102, 209, 143, 0.12);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 52px;
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(2.25rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.05em; }
h1 span { color: var(--gold); }
h2 { margin-bottom: 8px; color: var(--navy); font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.15; }
h3 { margin-bottom: 8px; color: var(--navy); font-size: 1.12rem; }

.landing {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 28px;
  align-items: stretch;
}

.intro-panel {
  position: relative;
  overflow: hidden;
  min-height: 530px;
  padding: clamp(32px, 6vw, 74px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(145deg, rgba(36, 59, 100, 0.94), rgba(62, 43, 117, 0.85)),
    radial-gradient(circle at 80% 15%, rgba(231, 167, 46, 0.36), transparent 16rem);
  box-shadow: var(--shadow);
}

.intro-panel::after {
  content: "";
  position: absolute;
  width: 290px;
  height: 290px;
  right: -94px;
  bottom: -98px;
  border: 1px solid rgba(231, 167, 46, 0.48);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(231, 167, 46, 0.06), 0 0 0 58px rgba(231, 167, 46, 0.035);
}

.intro-panel h1 { max-width: 610px; color: #fff; }
.intro-panel h1 span { color: var(--gold); }
.app-subtitle { margin: -5px 0 17px; color: var(--gold); font-size: 0.8rem; font-weight: 850; letter-spacing: 0.11em; }
.intro-copy { max-width: 560px; margin-bottom: 26px; color: rgba(255, 255, 255, 0.78); font-size: 1.04rem; }

.stat-strip {
  max-width: 620px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat {
  padding: 15px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.07);
}

.stat strong { display: block; color: var(--gold); font-size: 1.45rem; }
.stat span { display: block; color: rgba(255, 255, 255, 0.67); font-size: 0.79rem; }

.setup-card,
.panel,
.question-card,
.result-card,
.writing-card {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.setup-card { padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.setup-card h2 { margin-bottom: 8px; }
.muted { color: var(--muted); }
.setup-note { margin: 18px 0 20px; padding: 13px 15px; border-radius: 13px; color: #55536a; background: #f4f0e8; font-size: 0.88rem; }
.access-panel { margin-top: 13px; padding: 16px; border: 1px solid #e2d9f5; border-radius: 17px; background: #f8f5ff; }
.access-panel .form-label:first-child { margin-top: 0; }
.learner-fields { min-width: 0; margin: 20px 0 0; padding: 0; border: 0; }
.learner-fields legend { margin-bottom: -2px; padding: 0; color: var(--navy); font-size: 0.95rem; font-weight: 800; }
.learner-fields:disabled { opacity: 0.58; }

.form-label { display: block; margin: 17px 0 7px; color: var(--navy); font-weight: 750; }
.text-input,
.writing-input {
  width: 100%;
  border: 1px solid #d8d2c7;
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.text-input { min-height: 48px; padding: 11px 14px; }
.text-input:focus,
.writing-input:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(91, 63, 160, 0.12); outline: none; }

.primary-btn,
.secondary-btn,
.ghost-btn,
.nav-btn {
  min-height: 46px;
  border-radius: 13px;
  border: 1px solid transparent;
  padding: 10px 17px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-btn { color: #19152a; background: linear-gradient(135deg, #f5c24e, var(--gold)); box-shadow: 0 10px 22px rgba(181, 123, 19, 0.25); }
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(181, 123, 19, 0.32); }
.secondary-btn { color: #fff; background: var(--navy); }
.secondary-btn:hover { transform: translateY(-1px); background: #1b2f55; }
.primary-btn:disabled,
.secondary-btn:disabled { cursor: not-allowed; opacity: 0.52; transform: none; box-shadow: none; }
.ghost-btn { color: var(--navy); border-color: #d8d2c7; background: #fff; }
.ghost-btn:hover { background: #f6f3ed; }
.nav-btn { color: var(--navy); border-color: #d8d2c7; background: #fff; }
.nav-btn:disabled { cursor: not-allowed; opacity: 0.45; }
.nav-btn:not(:disabled):hover { background: #f5f1e9; }

.full-width { width: 100%; }

.info-row { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.info-card { padding: 20px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 17px; color: #fff; background: rgba(255, 255, 255, 0.07); }
.info-card strong { display: block; margin-bottom: 5px; color: var(--gold); }
.info-card span { color: rgba(255, 255, 255, 0.69); font-size: 0.87rem; }

.quiz-header { margin-bottom: 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; }
.quiz-header .ghost-btn { min-height: 42px; }
.quiz-heading { color: #fff; }
.quiz-heading strong { display: block; font-size: 1.07rem; }
.quiz-heading span { display: block; color: rgba(255, 255, 255, 0.63); font-size: 0.82rem; }
.timer { min-width: 96px; padding: 8px 12px; border: 1px solid rgba(231, 167, 46, 0.55); border-radius: 12px; color: var(--gold); background: rgba(13, 16, 36, 0.5); text-align: center; font-variant-numeric: tabular-nums; font-weight: 850; }

.progress-wrap { margin-bottom: 20px; }
.progress-meta { display: flex; justify-content: space-between; gap: 10px; color: rgba(255, 255, 255, 0.75); font-size: 0.82rem; }
.progress-track { height: 9px; overflow: hidden; margin-top: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.16); }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), #f8d36c); transition: width 200ms ease; }

.quiz-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.panel { padding: 20px; }
.panel h3 { margin-bottom: 4px; }
.panel-subtitle { margin-bottom: 15px; color: var(--muted); font-size: 0.84rem; }
.question-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.question-jump { min-width: 34px; min-height: 34px; padding: 4px; border: 1px solid #d9d2c8; border-radius: 9px; color: #4c4960; background: #fff; font-size: 0.8rem; font-weight: 750; }
.question-jump:hover { border-color: var(--purple); color: var(--purple); }
.question-jump.active { border-color: var(--purple); color: #fff; background: var(--purple); }
.question-jump.answered { border-color: #77b991; color: #1e6b40; background: #edf8f0; }
.question-jump.answered.active { color: #fff; background: var(--purple); }
.legend { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 9px 13px; color: var(--muted); font-size: 0.77rem; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 9px; height: 9px; display: inline-block; border-radius: 3px; background: #fff; border: 1px solid #d9d2c8; }
.legend .legend-answered { border-color: #77b991; background: #edf8f0; }
.legend .legend-current { border-color: var(--purple); background: var(--purple); }

.question-card { min-height: 520px; padding: clamp(22px, 4vw, 44px); }
.question-kicker { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.section-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: 99px; color: #4e3d7f; background: #eee9f8; font-size: 0.75rem; font-weight: 850; letter-spacing: 0.04em; }
.question-count { color: var(--muted); font-size: 0.84rem; font-weight: 700; }
.question-stem { margin-bottom: 20px; color: var(--ink); font-size: clamp(1.12rem, 2.4vw, 1.42rem); line-height: 1.4; font-weight: 800; }
.figure-wrap { margin: 0 0 22px; padding: 12px; border: 1px solid #e5dfd6; border-radius: 15px; background: #fff; }
.figure-wrap img { width: 100%; max-height: 330px; display: block; object-fit: contain; border-radius: 9px; }
.figure-caption { margin: 9px 4px 0; color: var(--muted); text-align: center; font-size: 0.78rem; font-style: italic; }
.hint-box { margin: -6px 0 18px; padding: 12px 14px; border: 1px solid #e2d9f5; border-radius: 13px; color: #4e3d7f; background: #f7f3ff; }
.hint-box summary { cursor: pointer; font-weight: 800; }
.hint-box p { margin: 8px 0 0; color: #4b4760; font-size: 0.94rem; }
.option-list { display: grid; gap: 10px; }
.option-label { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 50px; padding: 13px 15px; border: 1px solid #ddd7cd; border-radius: 13px; color: #302d41; background: #fff; transition: border-color 150ms ease, background 150ms ease, transform 150ms ease; }
.option-label:hover { transform: translateX(2px); border-color: #aa95d9; background: #faf8ff; }
.option-label.selected { border-color: var(--purple); background: #f1edfb; box-shadow: inset 4px 0 0 var(--purple); }
.option-label input { position: absolute; opacity: 0; pointer-events: none; }
.option-letter { flex: 0 0 27px; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #cfc7d8; border-radius: 50%; color: var(--purple); font-size: 0.79rem; font-weight: 850; }
.selected .option-letter { color: #fff; border-color: var(--purple); background: var(--purple); }
.option-text { padding-top: 1px; font-size: 0.96rem; }

.quiz-actions { margin-top: 18px; display: flex; justify-content: space-between; gap: 12px; }
.action-right { display: flex; gap: 10px; }

.writing-shell { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(350px, 1.22fr); gap: 20px; align-items: start; }
.writing-card { padding: clamp(23px, 4vw, 40px); }
.writing-card h2 { color: var(--navy); }
.writing-card .eyebrow { color: var(--purple); }
.topic-list { display: grid; gap: 10px; margin: 22px 0; }
.topic-label { display: flex; align-items: flex-start; gap: 10px; padding: 12px 13px; border: 1px solid #ddd7cd; border-radius: 12px; background: #fff; }
.topic-label.selected { border-color: var(--purple); background: #f1edfb; }
.topic-label input { margin-top: 5px; accent-color: var(--purple); }
.topic-label strong { display: block; color: var(--navy); }
.topic-label span { display: block; color: #5f5b70; font-size: 0.86rem; }
.writing-input { min-height: 250px; resize: vertical; padding: 14px; line-height: 1.6; }
.writing-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 7px; color: var(--muted); font-size: 0.81rem; }
.writing-guide { padding: 20px; border-radius: 17px; color: #4c4960; background: #f4f0e8; }
.writing-guide h3 { margin-bottom: 12px; }
.writing-guide ul { margin: 0; padding-left: 20px; }
.writing-guide li + li { margin-top: 8px; }

.results-grid { display: grid; grid-template-columns: minmax(290px, 0.85fr) minmax(0, 1.15fr); gap: 20px; align-items: stretch; }
.result-card { padding: clamp(26px, 4vw, 44px); }
.score-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; background: linear-gradient(145deg, rgba(36, 59, 100, 0.98), rgba(76, 46, 131, 0.94)); }
.score-ring { position: relative; width: 178px; height: 178px; margin: 12px 0 20px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--gold) var(--score-angle), rgba(255, 255, 255, 0.14) 0); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.06); }
.score-ring::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: #29365f; }
.score-ring-content { position: relative; z-index: 1; }
.score-ring strong { display: block; color: var(--gold); font-size: 2.9rem; line-height: 1; }
.score-ring span { display: block; color: rgba(255, 255, 255, 0.7); font-size: 0.78rem; }
.score-panel h2 { color: #fff; }
.score-panel p { max-width: 300px; margin-bottom: 0; color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }
.result-line { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.result-line:last-child { border-bottom: 0; }
.record-note { margin-top: 16px; padding: 11px 13px; border-radius: 11px; color: #315b42; background: #edf8f0; font-size: 0.9rem; font-weight: 700; }
.record-note.warning { color: #8a4e20; background: #fff3e8; }
.result-line strong { color: var(--navy); }
.result-line span { color: var(--muted); text-align: right; }
.result-message { margin: 18px 0; padding: 15px; border-radius: 13px; color: #504d61; background: #f4f0e8; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.review-list { display: grid; gap: 8px; margin: 20px 0; max-height: 420px; overflow: auto; }
.review-item { padding: 12px 14px; border: 1px solid #e5dfd6; border-radius: 12px; background: #fff; }
.review-item strong { color: var(--navy); }
.review-item .correct { color: #1d7041; font-weight: 750; }
.review-item .wrong { color: #a34949; font-weight: 750; }

.noscript { margin: 20px; padding: 20px; border-radius: 15px; color: #fff; background: #9e3b3b; }

@media (max-width: 900px) {
  .landing,
  .writing-shell,
  .results-grid { grid-template-columns: 1fr; }
  .intro-panel { min-height: auto; }
  .quiz-layout { grid-template-columns: 1fr; }
  .question-card { order: 1; }
  .quiz-nav-panel { order: 2; }
}

@media (max-width: 600px) {
  .topbar, main, .site-footer { width: min(100% - 24px, 1180px); }
  .topbar { padding-top: 16px; }
  main { padding-top: 12px; }
  .site-footer { flex-direction: column; gap: 4px; }
  .intro-panel, .setup-card, .question-card, .writing-card, .result-card { border-radius: 19px; }
  .intro-panel { padding: 30px 23px; }
  .setup-card { padding: 25px 20px; }
  h1 { font-size: 2.65rem; }
  .stat-strip, .info-row { grid-template-columns: 1fr; }
  .info-row { gap: 10px; }
  .quiz-header { grid-template-columns: 1fr auto; gap: 10px; }
  .quiz-header .ghost-btn { grid-column: 1 / -1; justify-self: start; }
  .question-card { padding: 22px 17px; }
  .question-kicker { align-items: flex-start; flex-direction: column; gap: 7px; }
  .quiz-actions { flex-direction: column; }
  .action-right { display: grid; grid-template-columns: 1fr 1fr; }
  .action-right .primary-btn { grid-column: 1 / -1; }
  .score-ring { width: 155px; height: 155px; }
  .score-ring::after { width: 122px; height: 122px; }
}

/* PROFNEXA Learning Studio dashboard direction: layered 3D surfaces, gold light and deep-space purple. */
:root {
  --space-purple: #17133d;
  --space-violet: #35206e;
  --electric-violet: #b79bff;
  --dashboard-line: rgba(255, 255, 255, 0.16);
}

.brand strong {
  font-size: 1.04rem;
  letter-spacing: 0.14em;
}

.brand small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.topbar-note {
  padding: 8px 13px;
  border: 1px solid rgba(231, 167, 46, 0.25);
  border-radius: 999px;
  background: rgba(13, 16, 36, 0.3);
  font-size: 0.82rem;
}

.intro-panel {
  min-height: 560px;
  display: block;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(20, 18, 67, 0.98), rgba(66, 34, 123, 0.92) 56%, rgba(36, 59, 100, 0.9)),
    radial-gradient(circle at 78% 14%, rgba(231, 167, 46, 0.45), transparent 17rem);
}

.intro-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(135deg, black, transparent 72%);
}

.intro-panel::after {
  z-index: 0;
  border-color: rgba(231, 167, 46, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 540px;
  min-height: 464px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content .eyebrow {
  color: #ffe09a;
  letter-spacing: 0.18em;
  text-shadow: 0 2px 18px rgba(231, 167, 46, 0.24);
}

.hero-content h1 {
  margin-bottom: 20px;
  font-size: clamp(2.7rem, 5.5vw, 4.9rem);
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.24);
}

.hero-content .app-subtitle {
  max-width: 460px;
  color: #f7cc64;
  line-height: 1.55;
}

.hero-content .intro-copy {
  max-width: 500px;
  color: rgba(255, 255, 255, 0.84);
}

.hero-3d {
  position: absolute;
  z-index: 1;
  top: 18px;
  right: -35px;
  width: 340px;
  height: 340px;
  pointer-events: none;
  perspective: 900px;
  opacity: 0.92;
}

.hero-orbit {
  position: absolute;
  inset: 37px 17px 37px 54px;
  border: 1px solid rgba(255, 220, 126, 0.55);
  border-radius: 50%;
  transform: rotate(-28deg) rotateX(65deg);
  box-shadow: 0 0 0 12px rgba(231, 167, 46, 0.04), 0 0 32px rgba(231, 167, 46, 0.2);
}

.hero-orbit-two {
  inset: 54px 42px 20px 31px;
  border-color: rgba(183, 155, 255, 0.58);
  transform: rotate(38deg) rotateY(64deg);
}

.hero-crystal {
  position: absolute;
  top: 95px;
  left: 103px;
  width: 142px;
  height: 142px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 232, 160, 0.82);
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(142, 91, 225, 0.22) 42%, rgba(18, 15, 62, 0.74));
  box-shadow: inset 14px 14px 30px rgba(255, 255, 255, 0.1), inset -18px -18px 32px rgba(0, 0, 0, 0.24), 0 22px 38px rgba(0, 0, 0, 0.26), 0 0 45px rgba(231, 167, 46, 0.26);
  transform: rotate(-11deg) rotateX(8deg) rotateY(-14deg) translateZ(35px);
}

.hero-crystal::before,
.hero-crystal::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 23px;
}

.hero-crystal::before { inset: 9px; }
.hero-crystal::after { inset: -13px; opacity: 0.28; transform: rotate(24deg); }
.hero-crystal span { color: #f5c24e; font-size: 1.05rem; font-weight: 900; letter-spacing: 0.16em; }
.hero-crystal strong { font-size: 2.1rem; line-height: 1.05; letter-spacing: -0.06em; }

.hero-spark {
  position: absolute;
  color: #ffe49a;
  font-size: 1.5rem;
  text-shadow: 0 0 18px rgba(255, 221, 126, 0.8);
}

.hero-spark-one { top: 58px; left: 76px; }
.hero-spark-two { right: 46px; bottom: 68px; color: #d3c2ff; font-size: 1.9rem; }
.hero-spark-three { top: 115px; right: 27px; color: #fff; font-size: 2.5rem; }

.sets-dashboard {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 22px;
  padding: clamp(25px, 4vw, 38px);
  border: 1px solid var(--dashboard-line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 91% 6%, rgba(231, 167, 46, 0.19), transparent 16rem),
    linear-gradient(145deg, rgba(35, 25, 87, 0.96), rgba(17, 16, 49, 0.94));
  box-shadow: 0 28px 72px rgba(6, 5, 29, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.sets-dashboard::before {
  content: "";
  position: absolute;
  inset: auto -20% -65% 20%;
  height: 270px;
  z-index: 0;
  border-radius: 50%;
  background: rgba(122, 88, 216, 0.2);
  filter: blur(60px);
}

.dashboard-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.dashboard-heading .eyebrow { margin-bottom: 9px; }
.dashboard-heading h2 { margin-bottom: 7px; color: #fff; font-size: clamp(1.6rem, 3vw, 2.35rem); }
.dashboard-copy { max-width: 680px; margin-bottom: 0; color: rgba(255, 255, 255, 0.7); font-size: 1rem; }

.access-state-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.access-state-pill i {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  display: block;
  border-radius: 50%;
  background: #9c91b8;
  box-shadow: 0 0 0 4px rgba(156, 145, 184, 0.12);
}

.access-state-pill.active {
  border-color: rgba(102, 209, 143, 0.45);
  color: #d7ffe3;
  background: rgba(102, 209, 143, 0.12);
}

.access-state-pill.active i {
  background: #66d18f;
  box-shadow: 0 0 0 4px rgba(102, 209, 143, 0.14), 0 0 16px rgba(102, 209, 143, 0.45);
}

.set-card-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.set-card {
  --set-accent: #f5c24e;
  --set-glow: rgba(245, 194, 78, 0.28);
  position: relative;
  min-height: 292px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 23px;
  color: #fff;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.05) 40%, rgba(12, 12, 41, 0.53)), radial-gradient(circle at 86% 5%, var(--set-glow), transparent 12rem);
  box-shadow: 0 19px 30px rgba(5, 5, 26, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font: inherit;
  text-align: left;
  transform: translateZ(0);
  transform-style: preserve-3d;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease, filter 180ms ease;
}

.set-card::before {
  content: "";
  position: absolute;
  top: -42%;
  right: -16%;
  width: 76%;
  height: 125%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: rotate(24deg);
  pointer-events: none;
}

.set-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 28%, rgba(255, 255, 255, 0.13) 42%, transparent 55%);
  transform: translateX(-130%);
  transition: transform 500ms ease;
}

.set-card-advanced { --set-accent: #c9b4ff; --set-glow: rgba(154, 113, 255, 0.33); }
.set-card-mastery { --set-accent: #7be3d2; --set-glow: rgba(65, 210, 189, 0.27); }
.set-card.available { cursor: pointer; }
.set-card.available:hover { transform: translateY(-6px) rotateX(1deg) rotateY(-1deg); border-color: var(--set-accent); box-shadow: 0 27px 40px rgba(5, 5, 26, 0.38), 0 0 28px var(--set-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.set-card.available:hover::after { transform: translateX(130%); }
.set-card.selected { border-color: var(--set-accent); box-shadow: 0 24px 38px rgba(5, 5, 26, 0.35), 0 0 0 2px rgba(245, 194, 78, 0.4), 0 0 35px var(--set-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.set-card.locked { cursor: not-allowed; opacity: 0.65; filter: saturate(0.62); }
.set-card:disabled { color: #fff; }

.set-card > * { position: relative; z-index: 1; }
.set-card-topline { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.set-number { color: var(--set-accent); font-size: 1.1rem; font-weight: 900; letter-spacing: 0.08em; }
.set-status { color: rgba(255, 255, 255, 0.67); font-size: 0.76rem; font-weight: 750; text-align: right; }

.set-card-glyph {
  width: 70px;
  height: 70px;
  margin: 17px 0 15px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 21px;
  color: var(--set-accent);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04));
  box-shadow: inset 8px 8px 16px rgba(255, 255, 255, 0.1), inset -10px -10px 18px rgba(0, 0, 0, 0.2), 8px 10px 18px rgba(0, 0, 0, 0.18);
  font-size: 2rem;
  font-weight: 950;
  transform: rotate(-7deg) translateZ(20px);
}

.set-card-copy { display: block; }
.set-card-copy strong { display: block; color: #fff; font-size: 1.38rem; line-height: 1.1; }
.set-card-copy > span { display: block; margin-top: 4px; color: var(--set-accent); font-size: 0.92rem; font-weight: 850; }
.set-card-copy small { display: block; min-height: 43px; margin-top: 7px; color: rgba(255, 255, 255, 0.7); font-size: 0.88rem; line-height: 1.45; }
.set-card-bottom { width: 100%; margin-top: auto; padding-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255, 255, 255, 0.13); color: rgba(255, 255, 255, 0.63); font-size: 0.78rem; }
.set-card-arrow { color: var(--set-accent); font-weight: 900; white-space: nowrap; }

.info-card {
  box-shadow: 0 12px 24px rgba(8, 8, 30, 0.12);
}

@media (max-width: 900px) {
  .hero-3d { right: -72px; transform: scale(0.82); transform-origin: top right; opacity: 0.64; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; }
  .set-card-grid { grid-template-columns: 1fr; }
  .set-card { min-height: 245px; }
}

@media (max-width: 600px) {
  .topbar-note { padding: 7px 10px; font-size: 0.74rem; }
  .intro-panel { min-height: 535px; padding: 30px 23px; }
  .hero-content { min-height: 475px; }
  .hero-3d { top: -38px; right: -112px; transform: scale(0.66); opacity: 0.4; }
  .hero-content h1 { font-size: 2.65rem; }
  .sets-dashboard { padding: 23px 16px; border-radius: 23px; }
  .dashboard-heading h2 { font-size: 1.65rem; }
  .access-state-pill { max-width: 100%; white-space: normal; }
  .set-card { min-height: 255px; padding: 20px; border-radius: 20px; }
  .set-card-copy small { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .set-card, .set-card::after, .primary-btn, .secondary-btn, .ghost-btn, .nav-btn, .option-label { transition: none; }
}
