:root {
  --bg: #0a0a0a;
  --panel: #121212;
  --panel-soft: #191919;
  --gold: #d4af37;
  --gold-light: #e5c14a;
  --mint: #69e6b1;
  --violet: #a88cff;
  --sun: #ffd166;
  --coral: #ff7a66;
  --blue: #7dd3fc;
  --pink: #ff7ab6;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(212, 175, 55, 0.2);
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.46);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 17px;
  padding-top: 82px;
}

a { color: inherit; text-decoration: none; }

button, input, textarea, select {
  font: inherit;
}

button { cursor: pointer; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #070707; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gold), var(--violet), var(--mint));
  border-radius: 999px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px clamp(20px, 4vw, 58px);
  background: rgba(10, 10, 10, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.logo {
  color: var(--text);
  font-size: 1.6rem;
  font-weight: 800;
  white-space: nowrap;
  text-shadow: none;
}

.logo::first-letter { color: var(--gold); }

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

.nav a, .back-link {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  padding: 11px 16px;
  transition: 180ms ease;
}

.nav a:hover, .back-link:hover {
  color: var(--text);
  background: rgba(255, 122, 182, 0.14);
  border-color: rgba(255, 122, 182, 0.28);
  box-shadow: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a[href$="recherche.html"],
.nav a[href$="profil.html"] {
  display: none;
}

.topbar-shortcut {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
  line-height: 1;
}

.theme-toggle {
  width: auto;
  min-width: 62px;
  padding: 0 12px;
  font-size: 0.82rem;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  border-color: transparent;
  color: #101010;
}

.topbar-shortcut:hover {
  border-color: rgba(125, 211, 252, 0.55);
  background: rgba(125, 211, 252, 0.14);
}

.account-shortcut {
  font-size: 1.05rem;
}

.topbar-contact {
  color: var(--gold-light);
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.topbar-contact:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.demo-login {
  width: 100%;
  margin-top: 12px;
}

.guest-note {
  align-self: stretch;
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 16px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--text);
}

.guest-note strong {
  color: var(--gold-light);
}

.guest-note span {
  color: var(--muted);
  line-height: 1.45;
}

.shell {
  width: min(1380px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 76px;
}

.dashboard-shell { min-height: calc(100vh - 82px); }

.page-title {
  text-align: center;
  margin-bottom: 28px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: center;
  margin-bottom: 22px;
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 122, 182, 0.16), rgba(125, 211, 252, 0.08) 45%, rgba(140, 255, 193, 0.11)),
    #121212;
  box-shadow: var(--shadow);
}

.eyebrow {
  color: var(--sun);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 800;
}

.dashboard-hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.45rem, 5vw, 5rem);
  line-height: 1.04;
}

.hero-copy {
  color: var(--muted);
  max-width: 650px;
  line-height: 1.6;
}

.pulse-orbit {
  position: relative;
  width: 190px;
  height: 190px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 122, 182, 0.24), rgba(125, 211, 252, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: floaty 6s ease-in-out infinite;
}

.pulse-orbit span {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 22px;
  filter: blur(0.2px);
}

.pulse-orbit span:nth-child(1) { background: var(--gold); left: 22px; top: 36px; }
.pulse-orbit span:nth-child(2) { background: var(--gold-light); right: 22px; top: 70px; }
.pulse-orbit span:nth-child(3) { background: var(--mint); left: 68px; bottom: 22px; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(4deg); }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card {
  background: linear-gradient(180deg, #171717, #111);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  color: var(--text);
  font-size: 2.65rem;
  margin-bottom: 4px;
}

.stat-card span { color: var(--muted); }

.stat-card:nth-child(1) { border-color: rgba(255, 122, 182, 0.34); }
.stat-card:nth-child(2) { border-color: rgba(125, 211, 252, 0.34); }
.stat-card:nth-child(3) { border-color: rgba(140, 255, 193, 0.34); }
.stat-card:nth-child(4) { border-color: rgba(182, 156, 255, 0.34); }

.page-title p {
  color: var(--gold);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.page-title h1 {
  margin: 0 auto;
  max-width: 760px;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  line-height: 1.04;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.feature-card, .panel, .calendar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 182, 0.55);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.5);
}

.shimmer::after {
  content: "";
  position: absolute;
  inset: -80% auto -80% -70%;
  width: 45%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transition: left 550ms ease;
}

.shimmer:hover::after { left: 130%; }

.card-icon {
  font-size: 3.35rem;
  margin-bottom: auto;
}

.feature-card h2, .panel h1, .panel h2, .toolbar h1 {
  margin: 0 0 10px;
}

.feature-card p, .preview, .score {
  color: var(--muted);
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}

.icon-btn, .btn, .fab {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--sun));
  color: #060606;
  font-weight: 800;
  box-shadow: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.icon-btn {
  width: 52px;
  height: 52px;
  font-size: 2rem;
}

.btn {
  padding: 13px 19px;
}

.btn:hover, .icon-btn:hover, .fab:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--mint));
  box-shadow: none;
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn.small {
  padding: 8px 11px;
  font-size: 0.9rem;
}

.btn.danger {
  background: #ef6b6b;
  color: #110606;
}

.calendar {
  overflow: hidden;
}

.weekdays, .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekdays span {
  padding: 14px;
  color: var(--gold);
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.day {
  min-height: 132px;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0d0d0d;
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.day:nth-child(7n) { border-right: 0; }
.day.muted { color: #686868; background: #090909; }
.day.today { outline: 1px solid var(--gold); outline-offset: -2px; }
.day:hover {
  background: rgba(212, 175, 55, 0.1);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.24);
}

.date-number {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 800;
}

.event-pill {
  display: block;
  width: 100%;
  margin: 5px 0;
  padding: 6px 8px;
  border: 0;
  border-radius: 999px;
  color: #101010;
  text-align: left;
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 62px;
  height: 62px;
  font-size: 2rem;
  z-index: 5;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.public-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.48fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.panel {
  padding: 34px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 14px;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0d0d0d;
  color: var(--text);
  padding: 14px 16px;
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 122, 182, 0.12);
}

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

.tabs, .actions, .modal-actions, .editor-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.tab, .editor-tools button {
  border: 1px solid var(--line);
  background: #090909;
  color: var(--muted);
  border-radius: 999px;
  padding: 12px 15px;
}

.tab.active {
  color: #080808;
  background: linear-gradient(135deg, var(--gold), var(--sun));
  border-color: transparent;
}

.editor-tools {
  margin: 14px 0;
}

.editor-tools input, .editor-tools select {
  width: auto;
  min-width: 54px;
}

.editor {
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #070707;
  padding: 16px;
  outline: none;
}

.hidden { display: none !important; }

.list, .postit-list {
  display: grid;
  gap: 16px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.list-item {
  background: linear-gradient(180deg, #1a1a1a, #141414);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.list-item h3 { margin: 0 0 8px; font-size: 1.35rem; }
.list-item p { color: var(--muted); margin: 0 0 10px; }

.feed-panel .list {
  max-height: none;
}

.feed-panel .list-item {
  padding: 24px;
  border-radius: 22px;
}

.publication-text {
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.7;
  margin: 14px 0;
}

.preview {
  min-height: 180px;
  line-height: 1.6;
}

.preview img, .publication-media img {
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.preview iframe, .publication-media iframe {
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.reader {
  margin-top: 18px;
}

.storage-card {
  display: grid;
  gap: 12px;
  margin: 16px 0 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 122, 182, 0.09), rgba(125, 211, 252, 0.07)), #151515;
}

.storage-card div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
}

.storage-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.92rem;
}

.storage-bar {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #080808;
  border: 1px solid var(--line);
}

.storage-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--gold), var(--sun));
  transition: width 220ms ease;
}

.resume-library-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 18px;
}

.resume-group {
  display: grid;
  gap: 12px;
}

.resume-group + .resume-group {
  margin-top: 18px;
}

.resume-group-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--section-main, #60a5fa) 34%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--section-main, #60a5fa) 12%, transparent);
  color: var(--text);
}

.resume-group-head span,
.resume-group-head strong {
  line-height: 1.25;
}

.resume-group-list {
  display: grid;
  gap: 12px;
}

.resume-card {
  padding: 18px;
}

.resume-card h4 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.reader-shell {
  width: min(1120px, calc(100% - 32px));
}

.resume-reader-page {
  padding: clamp(28px, 5vw, 58px);
}

.resume-reader-page h1 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.05;
}

.reader-page-content {
  color: var(--text);
  font-size: 1.24rem;
  line-height: 1.8;
}

.reader-page-content img {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 22px;
  border: 1px solid var(--line);
}

.reader-page-content iframe {
  width: 100%;
  min-height: 72vh;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.file-reader-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #151515;
}

.dashboard-live {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.compact-list {
  max-height: 260px;
}

.dashboard-message-card,
.dashboard-support-card {
  display: grid;
  align-content: start;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.dashboard-message-card p,
.dashboard-support-card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.dashboard-message-card:hover,
.dashboard-support-card:hover {
  border-color: rgba(212, 175, 55, 0.38);
  transform: translateY(-2px);
}

.feedback-shell {
  max-width: 820px;
}

.feedback-panel {
  display: grid;
  gap: 18px;
}

.admin-feedback-card p {
  white-space: normal;
  line-height: 1.65;
}

.roadmap-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.roadmap-list li {
  color: inherit;
  line-height: 1.5;
}

.auth-page {
  padding-top: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 122, 182, 0.13), transparent 28%),
    radial-gradient(circle at 80% 15%, rgba(125, 211, 252, 0.12), transparent 26%),
    radial-gradient(circle at 70% 85%, rgba(140, 255, 193, 0.1), transparent 24%),
    var(--bg);
}

.auth-shell {
  width: min(1060px, calc(100% - 28px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: center;
}

.auth-brand h1 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.02;
  margin: 22px 0 18px;
}

.auth-brand p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 620px;
}

.auth-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-badges span, .admin-door {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 9px 12px;
  background: rgba(17, 17, 17, 0.8);
}

.auth-card {
  width: 100%;
}

.auth-form h2 { margin-top: 18px; }

.form-message {
  min-height: 22px;
  color: var(--gold-light);
}

.admin-door {
  display: inline-flex;
  margin-top: 16px;
}

.hidden-admin-shortcut {
  position: fixed;
  right: 14px;
  bottom: 10px;
  z-index: 20;
  padding: 5px 8px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.42);
  color: rgba(245, 234, 205, 0.38);
  font-size: 0.72rem;
  text-decoration: none;
  opacity: 0.42;
  transition: opacity 160ms ease, color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.hidden-admin-shortcut:hover,
.hidden-admin-shortcut:focus-visible {
  opacity: 1;
  color: var(--gold-light);
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(10, 10, 10, 0.88);
}

.admin-roadmap-form {
  max-width: 760px;
}

.admin-shell {
  width: min(1180px, calc(100% - 28px));
}

.intruder-screen {
  text-align: center;
  animation: warningIn 320ms ease both;
}

.warning-mark {
  font-size: 5rem;
  margin-bottom: 12px;
}

.intruder-screen h1 {
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 6vw, 5rem);
}

.intruder-screen p {
  color: var(--muted);
  font-size: 1.2rem;
}

@keyframes warningIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.admin-panel {
  display: grid;
  gap: 18px;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.admin-head p { color: var(--muted); margin: 6px 0 0; }

.postit {
  background: #fff3a0;
  color: #1b1600;
  border-radius: var(--radius);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.35);
  padding: 32px;
  min-height: 210px;
}

.postit-list .postit {
  padding: 22px;
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.question-builder {
  margin: 22px 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #161616;
}

.question-builder h2,
.draft-box h2 {
  font-size: 1.25rem;
  margin: 0 0 14px;
}

.draft-box {
  margin: 22px 0;
}

.draft-questions {
  display: grid;
  gap: 12px;
}

.draft-question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #101010;
}

.draft-question span {
  color: var(--muted);
}

.quiz-player {
  margin-top: 24px;
}

.quiz-player h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.quiz-player .postit {
  font-size: 1.2rem;
  line-height: 1.7;
}

.correction-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.answer-option {
  display: block;
  width: 100%;
  margin: 10px 0;
  border: 2px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.45);
  color: #171100;
  border-radius: 10px;
  padding: 12px;
  text-align: left;
}

.answer-option.selected {
  border-color: #7a5b00;
  box-shadow: 0 0 0 4px rgba(122, 91, 0, 0.18);
}

.modal {
  border: 0;
  background: transparent;
  width: min(580px, calc(100% - 26px));
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
}

.modal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.vote-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.reported-item {
  border-color: rgba(255, 79, 216, 0.55);
  box-shadow: 0 0 26px rgba(255, 79, 216, 0.12);
}

.report-box {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 79, 216, 0.08);
  border: 1px solid rgba(255, 79, 216, 0.22);
}

.report-box p {
  margin: 0;
}

.about-shell {
  max-width: 980px;
}

.about-title {
  text-align: left;
  margin-bottom: 24px;
}

.about-title h1 {
  margin-left: 0;
  margin-right: 0;
}

.about-layout {
  display: grid;
  gap: 18px;
}

.about-card {
  border-radius: 16px;
  padding: clamp(22px, 3vw, 32px);
}

.about-card h2 {
  margin-top: 0;
  margin-bottom: 14px;
  color: var(--gold-light);
  font-size: 1.45rem;
}

.about-card p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 10px;
}

.about-card ul {
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.75;
}

.support-card {
  border-color: rgba(212, 175, 55, 0.42);
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.16), rgba(105, 230, 177, 0.08)),
    #121212;
}

.support-kicker {
  color: var(--sun);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
}

.support-button {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
}

.warning-card {
  border-color: rgba(255, 122, 102, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 122, 102, 0.13), rgba(255, 255, 255, 0.025)),
    #121212;
}

.conclusion-card {
  border-color: rgba(105, 230, 177, 0.34);
}

.contact-link {
  color: var(--gold-light);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  body { padding-top: 118px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .dashboard-grid, .split, .dashboard-live, .auth-shell, .dashboard-hero, .stat-grid, .public-layout, .quiz-layout { grid-template-columns: 1fr; }
  .pulse-orbit { display: none; }
  .day { min-height: 104px; }
  .draft-question { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 20px, 1180px); padding-top: 18px; }
  .nav a { padding: 8px 9px; }
  .form-grid { grid-template-columns: 1fr; }
  .weekdays span { padding: 10px 4px; font-size: 0.78rem; }
  .day { min-height: 86px; padding: 6px; }
  .event-pill { font-size: 0.72rem; padding: 5px; }
}

/* Premium dark + gold system, applied globally. */
body {
  background:
    radial-gradient(circle at 18% 0%, rgba(212, 175, 55, 0.11), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(125, 211, 252, 0.08), transparent 26%),
    radial-gradient(circle at 72% 92%, rgba(255, 122, 102, 0.08), transparent 24%),
    var(--bg);
}

.topbar {
  background: rgba(10, 10, 10, 0.88);
  border-bottom-color: rgba(212, 175, 55, 0.18);
}

.logo {
  color: var(--gold);
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.logo::first-letter { color: var(--text); }

.nav a,
.back-link,
.auth-badges span,
.admin-door {
  border-color: rgba(212, 175, 55, 0.08);
}

.nav a:hover,
.back-link:hover {
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.38);
}

.dashboard-hero,
.auth-page {
  background:
    radial-gradient(circle at 16% 18%, rgba(212, 175, 55, 0.16), transparent 30%),
    radial-gradient(circle at 88% 28%, rgba(105, 230, 177, 0.1), transparent 24%),
    radial-gradient(circle at 65% 90%, rgba(168, 140, 255, 0.1), transparent 26%),
    #0a0a0a;
}

.dashboard-hero,
.panel,
.calendar,
.feature-card,
.stat-card,
.list-item,
.modal-card {
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.96), rgba(13, 13, 13, 0.98));
  border-color: rgba(212, 175, 55, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.dashboard-hero {
  border-color: rgba(212, 175, 55, 0.24);
}

.eyebrow,
.page-title p,
.weekdays span,
label,
.quiz-library-branch {
  color: var(--gold);
}

.stat-card:nth-child(1),
.feature-card:nth-child(1) { border-color: rgba(212, 175, 55, 0.34); }
.stat-card:nth-child(2),
.feature-card:nth-child(2) { border-color: rgba(125, 211, 252, 0.28); }
.stat-card:nth-child(3),
.feature-card:nth-child(3) { border-color: rgba(105, 230, 177, 0.28); }
.stat-card:nth-child(4),
.feature-card:nth-child(4) { border-color: rgba(168, 140, 255, 0.28); }

.feature-card:hover,
.list-item:hover,
.stat-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
}

.dashboard-grid .feature-card {
  color: #101010;
  border: 0;
}

.dashboard-grid .feature-card h2,
.dashboard-grid .feature-card p,
.dashboard-grid .feature-card .card-icon {
  color: #101010;
}

.dashboard-grid .feature-card:nth-child(1) {
  background: linear-gradient(135deg, #ffd166, #f4a261);
}

.dashboard-grid .feature-card:nth-child(2) {
  background: linear-gradient(135deg, #7dd3fc, #60a5fa);
}

.dashboard-grid .feature-card:nth-child(3) {
  background: linear-gradient(135deg, #8cffc1, #34d399);
}

.dashboard-grid .feature-card:nth-child(4) {
  background: linear-gradient(135deg, #c4b5fd, #ff7ab6);
}

.dashboard-grid .feature-card:hover {
  border: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
}

.dashboard-shell .stat-card,
.dashboard-live .panel {
  border: 0;
  color: #101010;
}

.dashboard-shell .stat-card strong,
.dashboard-shell .stat-card span,
.dashboard-live .panel h2,
.dashboard-live .panel h3,
.dashboard-live .panel p,
.dashboard-live .panel .preview,
.dashboard-live .panel a {
  color: #101010;
}

.dashboard-shell .stat-card:nth-child(1) {
  background: linear-gradient(135deg, #ffd166, #f6ad55);
}

.dashboard-shell .stat-card:nth-child(2) {
  background: linear-gradient(135deg, #7dd3fc, #38bdf8);
}

.dashboard-shell .stat-card:nth-child(3) {
  background: linear-gradient(135deg, #8cffc1, #4ade80);
}

.dashboard-shell .stat-card:nth-child(4) {
  background: linear-gradient(135deg, #c4b5fd, #f0abfc);
}

.dashboard-live .panel:nth-child(1) {
  background: linear-gradient(135deg, #fff3a0, #ffd166);
}

.dashboard-live .panel:nth-child(2) {
  background: linear-gradient(135deg, #bde0fe, #7dd3fc);
}

.dashboard-live .panel:nth-child(3) {
  background: linear-gradient(135deg, #ffc2d1, #ff8fab);
}

.dashboard-live .list-item {
  background: rgba(255, 255, 255, 0.38);
  border-color: rgba(0, 0, 0, 0.08);
  color: #101010;
  box-shadow: none;
}

.dashboard-live .back-link {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.12);
}

.btn,
.icon-btn,
.fab,
.quiz-btn.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--gold);
  color: #111;
  border: 1px solid rgba(212, 175, 55, 0.55);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.14);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.btn:hover,
.icon-btn:hover,
.fab:hover,
.quiz-btn.primary:hover {
  background: var(--gold-light);
  border-color: rgba(229, 193, 74, 0.8);
  box-shadow: 0 14px 34px rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

.btn.ghost,
.quiz-btn.secondary,
.quiz-dashboard-btn {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  border: 1px solid rgba(212, 175, 55, 0.24);
  box-shadow: none;
}

.btn.ghost:hover,
.quiz-btn.secondary:hover,
.quiz-dashboard-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.5);
}

.btn.danger,
.quiz-btn.danger {
  background: #7a252c;
  color: #fff;
  border-color: rgba(255, 120, 120, 0.32);
}

.btn.danger:hover,
.quiz-btn.danger:hover {
  background: #a8323c;
}

input,
textarea,
select,
.question-option-row input[type="text"] {
  padding: 13px 15px;
  border-radius: 14px;
  border-color: rgba(212, 175, 55, 0.18);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

select {
  color-scheme: dark;
  background-color: #101010;
}

select option {
  background: #101010;
  color: #ffffff;
}

select option:checked,
select option:hover {
  background: #2a2412;
  color: #d4af37;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(212, 175, 55, 0.62);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.tabs,
.actions,
.modal-actions,
.editor-tools,
.quiz-top-bar,
.quiz-bottom-nav,
.quiz-actions-bottom,
.quiz-library-actions,
.quiz-editor-top-actions,
.quiz-editor-bottom-actions,
.quiz-play-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.tab,
.editor-tools button {
  border-radius: 14px;
  border-color: rgba(212, 175, 55, 0.18);
}

.tab.active {
  background: var(--gold);
  color: #111;
}

.quiz-page {
  max-width: 1200px;
  padding-inline: 18px;
  padding-bottom: 70px;
}

.quiz-page a {
  text-decoration: none;
}

.quiz-layout {
  gap: 26px;
}

.quiz-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.quiz-menu-card,
.quiz-library-card,
.quiz-editor-card,
.quiz-empty-state,
.question-builder,
.draft-question {
  background: rgba(12, 12, 12, 0.94);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
}

.question-builder,
.draft-question {
  background: rgba(255, 255, 255, 0.045);
}

.quiz-empty-state {
  text-align: center;
  color: var(--muted);
}

.quiz-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.postit-list .postit {
  background: linear-gradient(180deg, rgba(25, 25, 25, 0.98), rgba(14, 14, 14, 0.98));
  color: var(--text);
  border: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
}

.postit-list .postit strong,
.postit-list .postit p {
  color: var(--text);
}

.quiz-player {
  max-width: 860px;
  margin: 30px auto 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.quiz-player > h2,
.quiz-player > .score {
  color: var(--text);
  margin-left: 8px;
}

.quiz-player .postit {
  background: #e5d06a;
  color: #111;
  border: 0;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.quiz-player .postit *,
.quiz-player .postit h1,
.quiz-player .postit h2,
.quiz-player .postit h3,
.quiz-player .postit p,
.quiz-player .postit span,
.quiz-player .postit label {
  color: #111;
}

.quiz-player .postit h3 {
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  font-weight: 900;
  margin-top: 0;
}

.answer-option,
.quiz-answer-btn,
.quiz-self-choice-btn {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid rgba(91, 72, 18, 0.46);
  background: #f7e99b;
  color: #111;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.answer-option:hover,
.quiz-answer-btn:hover,
.quiz-self-choice-btn:hover {
  transform: translateY(-2px);
  border-color: #111;
  background: #fff3b8;
}

.answer-option.selected,
.quiz-answer-btn.selected,
.quiz-self-choice-btn.selected {
  border-color: #111;
  border-width: 3px;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.16);
  transform: scale(1.01);
}

.answer-option.is-correct {
  border-color: #1f8f4d;
  background: #c7f5d7;
  box-shadow: 0 0 0 4px rgba(31, 143, 77, 0.2);
}

.answer-option.is-wrong {
  border-color: #b92d2d;
  background: #ffd4d4;
  box-shadow: 0 0 0 4px rgba(185, 45, 45, 0.18);
}

.quiz-answer-feedback {
  min-height: 1.4em;
  margin: 0;
  font-weight: 900;
}

.quiz-answer-feedback.good {
  color: #c7f5d7;
}

.quiz-answer-feedback.bad {
  color: #ffd4d4;
}

.quiz-player textarea,
.quiz-text-answer-input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  border: 2px solid rgba(17, 17, 17, 0.45);
  background: #fff2a8;
  color: #111;
  caret-color: #111;
  font-size: 1rem;
  font-weight: 800;
  outline: none;
}

.quiz-player textarea::placeholder,
.quiz-text-answer-input::placeholder {
  color: rgba(17, 17, 17, 0.55);
}

.quiz-player textarea:focus,
.quiz-text-answer-input:focus {
  border-color: #111;
  background: #fff7bf;
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.12);
}

.correction-box,
.quiz-correction-panel {
  display: grid;
  gap: 16px;
  background: #f7e99b;
  border: 2px solid rgba(91, 72, 18, 0.46);
  border-radius: 16px;
  padding: 16px;
}

.quiz-result-score,
.quiz-result-percent {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
}

.quiz-result-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.quiz-result-item {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.42);
}

.quiz-result-item.good { border-left: 6px solid #39b56a; }
.quiz-result-item.bad { border-left: 6px solid #d94d4d; }

@media (max-width: 768px) {
  .quiz-page { padding-inline: 10px; }
  .quiz-player .postit { padding: 18px; }
  .quiz-player h2 { font-size: 1.35rem; }
  .quiz-player .postit h3 { font-size: 1.35rem; }
  .question-editor-header,
  .quiz-library-card-top {
    align-items: flex-start;
    flex-direction: column;
  }
  .question-option-row {
    grid-template-columns: 1fr;
  }
}

/* Bigger global readability layer. */
.btn,
.icon-btn,
.fab,
.quiz-btn.primary,
.quiz-btn.secondary,
.quiz-btn.danger,
.quiz-dashboard-btn {
  min-height: 48px;
  padding: 14px 20px;
  font-size: 1.05rem;
}

input,
textarea,
select,
.question-option-row input[type="text"] {
  min-height: 50px;
  font-size: 1.05rem;
  padding: 15px 17px;
}

.panel h1,
.toolbar h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.panel h2,
.question-builder h2,
.draft-box h2 {
  font-size: 1.45rem;
}

.feature-card h2 {
  font-size: 1.65rem;
}

.feature-card p,
.list-item p,
.preview,
.score,
.hero-copy {
  font-size: 1.05rem;
}

.quiz-player .postit {
  padding: 34px;
}

.answer-option,
.quiz-answer-btn,
.quiz-self-choice-btn {
  padding: 17px 19px;
  font-size: 1.08rem;
}

.quiz-player textarea,
.quiz-text-answer-input {
  padding: 18px 19px;
  font-size: 1.08rem;
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .panel { padding: 24px; }
  .feature-card { min-height: 250px; padding: 26px; }
  .quiz-player .postit { padding: 22px; }
}

/* Color layer across the whole app. */
.shell > .panel:nth-of-type(4n + 1),
.split > .panel:nth-child(4n + 1),
.public-layout > .panel:nth-child(4n + 1),
.quiz-layout > .panel:nth-child(4n + 1),
.auth-card {
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(255, 209, 102, 0.08)),
    #121212;
}

.shell > .panel:nth-of-type(4n + 2),
.split > .panel:nth-child(4n + 2),
.public-layout > .panel:nth-child(4n + 2),
.quiz-layout > .panel:nth-child(4n + 2) {
  background:
    linear-gradient(135deg, rgba(125, 211, 252, 0.18), rgba(96, 165, 250, 0.08)),
    #121212;
}

.shell > .panel:nth-of-type(4n + 3),
.split > .panel:nth-child(4n + 3),
.public-layout > .panel:nth-child(4n + 3),
.quiz-layout > .panel:nth-child(4n + 3) {
  background:
    linear-gradient(135deg, rgba(105, 230, 177, 0.16), rgba(52, 211, 153, 0.08)),
    #121212;
}

.shell > .panel:nth-of-type(4n),
.split > .panel:nth-child(4n),
.public-layout > .panel:nth-child(4n),
.quiz-layout > .panel:nth-child(4n) {
  background:
    linear-gradient(135deg, rgba(168, 140, 255, 0.17), rgba(255, 122, 182, 0.08)),
    #121212;
}

.list .list-item:nth-child(5n + 1),
.postit-list .postit:nth-child(5n + 1),
.draft-question:nth-child(5n + 1) {
  border-color: rgba(212, 175, 55, 0.36);
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.13), rgba(255, 209, 102, 0.06)),
    #151515;
}

.list .list-item:nth-child(5n + 2),
.postit-list .postit:nth-child(5n + 2),
.draft-question:nth-child(5n + 2) {
  border-color: rgba(125, 211, 252, 0.36);
  background:
    linear-gradient(135deg, rgba(125, 211, 252, 0.14), rgba(96, 165, 250, 0.06)),
    #151515;
}

.list .list-item:nth-child(5n + 3),
.postit-list .postit:nth-child(5n + 3),
.draft-question:nth-child(5n + 3) {
  border-color: rgba(105, 230, 177, 0.36);
  background:
    linear-gradient(135deg, rgba(105, 230, 177, 0.13), rgba(52, 211, 153, 0.06)),
    #151515;
}

.list .list-item:nth-child(5n + 4),
.postit-list .postit:nth-child(5n + 4),
.draft-question:nth-child(5n + 4) {
  border-color: rgba(168, 140, 255, 0.36);
  background:
    linear-gradient(135deg, rgba(168, 140, 255, 0.14), rgba(255, 122, 182, 0.06)),
    #151515;
}

.list .list-item:nth-child(5n),
.postit-list .postit:nth-child(5n),
.draft-question:nth-child(5n) {
  border-color: rgba(255, 122, 102, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 122, 102, 0.13), rgba(255, 122, 182, 0.06)),
    #151515;
}

.calendar {
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(125, 211, 252, 0.08)),
    #111;
}

.day {
  color: #101010;
  border-color: rgba(0, 0, 0, 0.12);
}

.day .date-number {
  color: #101010;
}

.day,
.day:nth-child(5n + 1),
.day:nth-child(5n + 2),
.day:nth-child(5n + 3),
.day:nth-child(5n + 4),
.day:nth-child(5n) {
  background: #bde0fe;
}

.day.muted {
  color: rgba(16, 16, 16, 0.46);
  opacity: 0.72;
}

.day.muted .date-number {
  color: rgba(16, 16, 16, 0.46);
}

.day.today {
  outline: 3px solid #111;
  outline-offset: -4px;
}

.storage-card,
.question-builder,
.draft-box,
.editor,
.modal-card,
.report-box,
.file-reader-card {
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(125, 211, 252, 0.06), rgba(255, 122, 182, 0.05)),
    #121212;
}

.auth-brand h1,
.resume-reader-page h1,
.panel h1 {
  background: linear-gradient(90deg, #ffffff, #ffd166, #7dd3fc, #ff7ab6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tab:nth-child(2n),
.editor-tools button:nth-child(2n),
.btn.ghost:nth-child(2n) {
  border-color: rgba(125, 211, 252, 0.28);
}

.tab:nth-child(3n),
.editor-tools button:nth-child(3n),
.btn.ghost:nth-child(3n) {
  border-color: rgba(255, 122, 182, 0.28);
}

/* Section identity colors matching dashboard cards. */
.section-calendar {
  --section-main: #f4a261;
  --section-soft: #ffd166;
  --section-dark: rgba(244, 162, 97, 0.16);
}

.section-resumes {
  --section-main: #60a5fa;
  --section-soft: #bde0fe;
  --section-dark: rgba(96, 165, 250, 0.16);
}

.section-quiz {
  --section-main: #34d399;
  --section-soft: #c8f7dc;
  --section-dark: rgba(52, 211, 153, 0.16);
}

.section-public {
  --section-main: #c4b5fd;
  --section-soft: #ffc2d1;
  --section-dark: rgba(196, 181, 253, 0.16);
}

.section-calendar,
.section-resumes,
.section-quiz,
.section-public {
  background:
    radial-gradient(circle at 16% 0%, var(--section-dark), transparent 32%),
    radial-gradient(circle at 92% 18%, rgba(212, 175, 55, 0.08), transparent 24%),
    var(--bg);
}

.section-calendar .logo,
.section-calendar .eyebrow,
.section-calendar label,
.section-resumes .logo,
.section-resumes .eyebrow,
.section-resumes label,
.section-quiz .logo,
.section-quiz .eyebrow,
.section-quiz label,
.section-public .logo,
.section-public .eyebrow,
.section-public label {
  color: var(--section-main);
}

.section-calendar .panel,
.section-calendar .calendar,
.section-calendar .modal-card,
.section-resumes .panel,
.section-resumes .modal-card,
.section-quiz .panel,
.section-quiz .modal-card,
.section-public .panel,
.section-public .modal-card {
  border-color: color-mix(in srgb, var(--section-main) 45%, transparent);
  background:
    linear-gradient(135deg, var(--section-dark), rgba(255, 255, 255, 0.025)),
    #121212;
}

.section-calendar .btn:not(.ghost):not(.danger),
.section-calendar .icon-btn,
.section-calendar .fab,
.section-resumes .btn:not(.ghost):not(.danger),
.section-resumes .icon-btn,
.section-resumes .fab,
.section-quiz .btn:not(.ghost):not(.danger),
.section-quiz .icon-btn,
.section-quiz .fab,
.section-public .btn:not(.ghost):not(.danger),
.section-public .icon-btn,
.section-public .fab {
  background: var(--section-soft);
  border-color: var(--section-main);
  color: #101010;
}

.section-calendar .btn:not(.ghost):not(.danger):hover,
.section-calendar .icon-btn:hover,
.section-calendar .fab:hover,
.section-resumes .btn:not(.ghost):not(.danger):hover,
.section-resumes .icon-btn:hover,
.section-resumes .fab:hover,
.section-quiz .btn:not(.ghost):not(.danger):hover,
.section-quiz .icon-btn:hover,
.section-quiz .fab:hover,
.section-public .btn:not(.ghost):not(.danger):hover,
.section-public .icon-btn:hover,
.section-public .fab:hover {
  background: var(--section-main);
}

.section-calendar .btn.ghost,
.section-calendar .back-link,
.section-calendar .nav a:hover,
.section-resumes .btn.ghost,
.section-resumes .back-link,
.section-resumes .nav a:hover,
.section-quiz .btn.ghost,
.section-quiz .back-link,
.section-quiz .nav a:hover,
.section-public .btn.ghost,
.section-public .back-link,
.section-public .nav a:hover {
  border-color: color-mix(in srgb, var(--section-main) 44%, transparent);
  background: color-mix(in srgb, var(--section-main) 12%, transparent);
}

.section-calendar input:focus,
.section-calendar textarea:focus,
.section-calendar select:focus,
.section-resumes input:focus,
.section-resumes textarea:focus,
.section-resumes select:focus,
.section-quiz input:focus,
.section-quiz textarea:focus,
.section-quiz select:focus,
.section-public input:focus,
.section-public textarea:focus,
.section-public select:focus {
  border-color: var(--section-main);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--section-main) 20%, transparent);
}

.section-calendar .list-item,
.section-calendar .storage-card,
.section-resumes .list-item,
.section-resumes .storage-card,
.section-quiz .list-item,
.section-quiz .question-builder,
.section-quiz .draft-question,
.section-public .list-item {
  border-color: color-mix(in srgb, var(--section-main) 38%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--section-main) 18%, transparent), rgba(255, 255, 255, 0.035)),
    #151515;
}

.section-calendar .day,
.section-calendar .day:nth-child(5n + 1),
.section-calendar .day:nth-child(5n + 2),
.section-calendar .day:nth-child(5n + 3),
.section-calendar .day:nth-child(5n + 4),
.section-calendar .day:nth-child(5n) {
  background: #ffd166;
}

.section-resumes .storage-bar span {
  background: linear-gradient(90deg, #bde0fe, #60a5fa);
}

.section-quiz .quiz-player .postit {
  background: #c8f7dc;
}

.section-public .feed-panel .list-item {
  background:
    linear-gradient(135deg, rgba(196, 181, 253, 0.2), rgba(255, 194, 209, 0.1)),
    #151515;
}

/* Final section color correction: match dashboard colors exactly. */
body.section-calendar {
  --section-main: #f4a261;
  --section-soft: #ffd166;
  --section-dark: rgba(244, 162, 97, 0.2);
}

body.section-resumes {
  --section-main: #60a5fa;
  --section-soft: #bde0fe;
  --section-dark: rgba(96, 165, 250, 0.2);
}

body.section-quiz {
  --section-main: #34d399;
  --section-soft: #c8f7dc;
  --section-dark: rgba(52, 211, 153, 0.2);
}

body.section-public {
  --section-main: #a78bfa;
  --section-soft: #ddd6fe;
  --section-dark: rgba(167, 139, 250, 0.22);
}

body.section-calendar,
body.section-resumes,
body.section-quiz,
body.section-public {
  background:
    radial-gradient(circle at 18% 0%, var(--section-dark), transparent 34%),
    radial-gradient(circle at 88% 16%, rgba(255, 255, 255, 0.045), transparent 25%),
    var(--bg);
}

body.section-calendar .panel,
body.section-calendar .calendar,
body.section-calendar .modal-card,
body.section-calendar .list-item {
  border-color: rgba(244, 162, 97, 0.45);
  background:
    linear-gradient(135deg, rgba(244, 162, 97, 0.24), rgba(255, 209, 102, 0.08)),
    #121212;
}

body.section-resumes .panel,
body.section-resumes .modal-card,
body.section-resumes .list-item,
body.section-resumes .storage-card,
body.section-resumes .resume-reader-page,
body.section-resumes .file-reader-card {
  border-color: rgba(96, 165, 250, 0.45);
  background:
    linear-gradient(135deg, rgba(96, 165, 250, 0.24), rgba(189, 224, 254, 0.08)),
    #121212;
}

body.section-quiz .panel,
body.section-quiz .modal-card,
body.section-quiz .list-item,
body.section-quiz .question-builder,
body.section-quiz .draft-question,
body.section-quiz .postit-list .postit {
  border-color: rgba(52, 211, 153, 0.45);
  background:
    linear-gradient(135deg, rgba(52, 211, 153, 0.22), rgba(200, 247, 220, 0.08)),
    #121212;
}

body.section-public .panel,
body.section-public .modal-card,
body.section-public .list-item,
body.section-public .feed-panel .list-item {
  border-color: rgba(167, 139, 250, 0.48);
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.26), rgba(255, 194, 209, 0.08)),
    #121212;
}

body.section-calendar .btn:not(.ghost):not(.danger),
body.section-calendar .icon-btn,
body.section-calendar .fab {
  background: #ffd166;
  border-color: #f4a261;
  color: #101010;
}

body.section-resumes .btn:not(.ghost):not(.danger),
body.section-resumes .icon-btn,
body.section-resumes .fab {
  background: #bde0fe;
  border-color: #60a5fa;
  color: #101010;
}

body.section-quiz .btn:not(.ghost):not(.danger),
body.section-quiz .icon-btn,
body.section-quiz .fab {
  background: #c8f7dc;
  border-color: #34d399;
  color: #101010;
}

body.section-public .btn:not(.ghost):not(.danger),
body.section-public .icon-btn,
body.section-public .fab {
  background: #ddd6fe;
  border-color: #a78bfa;
  color: #101010;
}

body.section-calendar .day,
body.section-calendar .day:nth-child(5n + 1),
body.section-calendar .day:nth-child(5n + 2),
body.section-calendar .day:nth-child(5n + 3),
body.section-calendar .day:nth-child(5n + 4),
body.section-calendar .day:nth-child(5n) {
  background: #ffd166;
}

body.section-quiz .quiz-player .postit {
  background: #e5d06a;
  color: #111111;
}

body.section-quiz .quiz-player .postit *,
body.section-quiz .quiz-player .postit h1,
body.section-quiz .quiz-player .postit h2,
body.section-quiz .quiz-player .postit h3,
body.section-quiz .quiz-player .postit p,
body.section-quiz .quiz-player .postit span,
body.section-quiz .quiz-player .postit label {
  color: #111111;
}

/* Hard final theme override: no orange bleed between sections. */
body.section-calendar {
  --section-main: #ffd166;
  --section-soft: #fff3a0;
  --section-dark: rgba(255, 209, 102, 0.2);
}

body.section-calendar .panel,
body.section-calendar .calendar,
body.section-calendar .modal-card,
body.section-calendar .list-item {
  border-color: rgba(255, 209, 102, 0.5) !important;
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.2), rgba(255, 243, 160, 0.08)),
    #121212 !important;
}

body.section-calendar .day,
body.section-calendar .day:nth-child(5n + 1),
body.section-calendar .day:nth-child(5n + 2),
body.section-calendar .day:nth-child(5n + 3),
body.section-calendar .day:nth-child(5n + 4),
body.section-calendar .day:nth-child(5n) {
  background: #fff3a0 !important;
}

body.section-calendar .btn:not(.ghost):not(.danger),
body.section-calendar .icon-btn,
body.section-calendar .fab {
  background: #fff3a0 !important;
  border-color: #ffd166 !important;
}

body.section-resumes .panel,
body.section-resumes .modal-card,
body.section-resumes .list-item,
body.section-resumes .storage-card,
body.section-resumes .resume-reader-page,
body.section-resumes .file-reader-card {
  border-color: rgba(96, 165, 250, 0.55) !important;
  background:
    linear-gradient(135deg, rgba(96, 165, 250, 0.26), rgba(189, 224, 254, 0.1)),
    #121212 !important;
}

body.section-resumes .btn:not(.ghost):not(.danger),
body.section-resumes .icon-btn,
body.section-resumes .fab {
  background: #bde0fe !important;
  border-color: #60a5fa !important;
}

body.section-quiz .panel,
body.section-quiz .modal-card,
body.section-quiz .list-item,
body.section-quiz .question-builder,
body.section-quiz .draft-question,
body.section-quiz .postit-list .postit {
  border-color: rgba(52, 211, 153, 0.55) !important;
  background:
    linear-gradient(135deg, rgba(52, 211, 153, 0.26), rgba(200, 247, 220, 0.1)),
    #121212 !important;
}

body.section-quiz .btn:not(.ghost):not(.danger),
body.section-quiz .icon-btn,
body.section-quiz .fab {
  background: #c8f7dc !important;
  border-color: #34d399 !important;
}

body.section-quiz .quiz-player .postit {
  background: #e5d06a !important;
}

body.section-public .panel,
body.section-public .modal-card,
body.section-public .list-item,
body.section-public .feed-panel .list-item {
  border-color: rgba(167, 139, 250, 0.58) !important;
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.3), rgba(255, 194, 209, 0.1)),
    #121212 !important;
}

body.section-public .btn:not(.ghost):not(.danger),
body.section-public .icon-btn,
body.section-public .fab {
  background: #ddd6fe !important;
  border-color: #a78bfa !important;
}

.dashboard-grid .feature-card:nth-child(1),
.dashboard-shell .stat-card:nth-child(1),
.dashboard-live .panel:nth-child(1) {
  background: linear-gradient(135deg, #fff3a0, #ffd166) !important;
}

.public-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.public-category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  padding: 12px;
  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.public-category-bar .tab {
  padding: 11px 16px;
}

.public-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

.publish-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 22px;
}

.publish-choice .tab {
  min-width: 150px;
  justify-content: center;
}

.public-tabs .tab {
  min-height: 50px;
  padding: 14px 20px;
}

.public-view {
  margin-bottom: 22px;
}

.public-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.public-header-row h1 {
  margin: 0 0 8px;
}

.public-search {
  min-width: min(360px, 100%);
}

.public-feed-list {
  max-height: none;
}

.public-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.public-profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.public-author-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.94rem;
}

.public-author-line .badge-row {
  display: inline-flex;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.24), rgba(105, 230, 177, 0.16));
  border: 1px solid var(--line);
  color: var(--gold-light);
  font-weight: 900;
}

.badge-row,
.admin-badge-editor {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  color: #0b0b0b;
}

.badge-neutral { background: rgba(255, 255, 255, 0.76); }
.badge-danger { background: #ff7a66; }
.badge-gold { background: #ffd166; }
.badge-mint { background: #69e6b1; }
.badge-blue { background: #7dd3fc; }
.badge-violet { background: #c8b6ff; }

.admin-badge-editor {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.badge-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
}

.badge-toggle input {
  width: 16px;
  height: 16px;
}

.public-card {
  display: grid;
  gap: 12px;
}

body.section-public .public-card.public-card-resume {
  border-color: rgba(52, 211, 153, 0.88) !important;
  border-left: 8px solid #34d399 !important;
  background:
    linear-gradient(135deg, rgba(52, 211, 153, 0.28), rgba(199, 245, 215, 0.08)),
    #121212 !important;
}

body.section-public .public-card.public-card-quiz {
  border-color: rgba(251, 191, 36, 0.9) !important;
  border-left: 8px solid #fbbf24 !important;
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.26), rgba(251, 146, 60, 0.08)),
    #121212 !important;
}

.question-card {
  border-left: 8px solid #a78bfa !important;
}

.question-answers {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.answer-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.answer-card p {
  margin: 0;
  color: var(--text);
}

.answer-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.answer-form {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.question-create-form {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

/* Admin is intentionally harsher than the student UI. */
.admin-body {
  min-height: 100vh;
  padding: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 0, 64, 0.22), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(255, 209, 102, 0.12), transparent 26%),
    #050505;
  color: #fff;
}

.admin-body .admin-shell {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.admin-body .panel,
.admin-body .stat-card,
.admin-body .list-item {
  background: linear-gradient(135deg, rgba(120, 0, 20, 0.24), rgba(16, 16, 16, 0.98));
  border: 1px solid rgba(255, 50, 75, 0.38);
  box-shadow: 0 20px 60px rgba(255, 0, 50, 0.1), 0 18px 50px rgba(0, 0, 0, 0.5);
}

.admin-body .logo,
.admin-body .panel h1,
.admin-body .panel h2,
.admin-body .list-item h3 {
  color: #ff3b5c;
  text-shadow: 0 0 18px rgba(255, 59, 92, 0.25);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

.admin-body .stat-grid,
.admin-log-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.admin-log-grid {
  display: grid;
  gap: 14px;
  margin: 16px 0 20px;
}

.admin-body .tab.active,
.admin-body .btn:not(.ghost):not(.danger) {
  background: #ff3b5c;
  border-color: #ff3b5c;
  color: #fff;
}

.admin-body .btn.danger {
  background: #b00020;
  border-color: #ff3b5c;
  color: #fff;
}

.admin-body .btn.ghost,
.admin-body .tab {
  border-color: rgba(255, 59, 92, 0.4);
  background: rgba(255, 59, 92, 0.08);
  color: #fff;
}

.admin-user-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(255, 59, 92, 0.28);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
}

.admin-user-meta strong {
  color: #ffd166;
}

.admin-user-meta span {
  color: rgba(255, 255, 255, 0.84);
  overflow-wrap: anywhere;
}

.admin-user-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-user-headline h3,
.admin-user-headline p {
  margin: 0;
}

.admin-user-headline p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.74);
  overflow-wrap: anywhere;
}

.admin-user-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.admin-user-stats span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(255, 59, 92, 0.22);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.admin-user-stats strong {
  color: #ffd166;
  font-size: 1.18rem;
}

.admin-user-details {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 59, 92, 0.24);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
}

.admin-user-details summary {
  cursor: pointer;
  color: #ffd166;
  font-weight: 900;
}

.admin-ip-list,
.admin-user-activity {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.admin-ip-row,
.admin-user-activity article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-ip-row div,
.admin-user-activity article {
  min-width: 0;
}

.admin-ip-row strong,
.admin-ip-row span,
.admin-user-activity strong,
.admin-user-activity span,
.admin-user-activity p {
  display: block;
  overflow-wrap: anywhere;
}

.admin-ip-row span,
.admin-user-activity span,
.admin-user-activity p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.admin-user-activity article {
  align-items: flex-start;
  flex-direction: column;
}

.admin-user-activity p {
  margin: 2px 0 0;
}


.report-admin-card {
  border-left: 8px solid #ff3b5c !important;
}

.admin-log-card {
  border-left: 8px solid #ffd166 !important;
}

.blocked-user {
  border-color: rgba(255, 209, 102, 0.7) !important;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.18), rgba(120, 0, 20, 0.22)), #111 !important;
}

.public-quiz-player {
  margin-top: 24px;
}

.public-quiz-player .postit {
  background: #e5d06a !important;
  color: #111 !important;
}

.public-quiz-player .postit * {
  color: #111 !important;
}

.profile-shell,
.search-shell,
.support-shell {
  max-width: 1120px;
}

.profile-title {
  text-align: left;
}

.profile-title h1 {
  margin-left: 0;
}

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

.profile-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.theme-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.theme-choice-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--text);
  padding: 12px 16px;
  font-weight: 800;
  box-shadow: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.theme-choice-btn:hover {
  transform: translateY(-1px);
}

.theme-choice-btn[data-theme-choice="dark"] {
  background: linear-gradient(135deg, #111827, #24212d);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.theme-choice-btn[data-theme-choice="light"] {
  background: linear-gradient(135deg, #ffffff, #dff4ff 48%, #ffe2ef);
  border-color: rgba(125, 139, 168, 0.28);
  color: #1f2937;
}

.theme-choice-btn.active {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.14);
}

.progress-card,
.danger-zone,
.search-panel,
.support-page-card {
  grid-column: 1 / -1;
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mini-stat {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.mini-stat strong {
  display: block;
  color: var(--gold-light);
  font-size: 1.8rem;
}

.mini-stat span {
  color: var(--muted);
}

.compact-profile-list {
  max-height: 360px;
}

.danger-zone {
  border-color: rgba(255, 122, 102, 0.48);
}

.danger-zone p {
  color: var(--muted);
  line-height: 1.6;
}

.search-panel {
  display: grid;
  gap: 18px;
}

.search-result-card {
  border-left: 6px solid var(--blue);
}

.support-page-card {
  display: grid;
  gap: 18px;
  padding: clamp(28px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.16), rgba(125, 211, 252, 0.08), rgba(105, 230, 177, 0.1)),
    #121212;
}

.support-page-card h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.05;
}

.support-page-card p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.support-use-grid,
.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.support-use-grid article {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.support-use-grid strong {
  color: var(--gold-light);
}

.support-use-grid span {
  color: var(--muted);
}


.support-popup {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 30;
  width: min(420px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.17), rgba(125, 211, 252, 0.11), rgba(255, 122, 182, 0.12)),
    var(--panel);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.48);
  animation: supportPopupIn 220ms ease-out;
}

.support-popup.is-closing {
  opacity: 0;
  transform: translateY(10px);
  transition: 180ms ease;
}

.support-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
}

.support-popup-kicker {
  margin: 0 0 8px;
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.support-popup h2 {
  margin: 0 36px 10px 0;
  font-size: 1.35rem;
  line-height: 1.18;
}

.support-popup p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.support-popup-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.support-popup-actions .btn {
  min-height: 42px;
  padding: 10px 14px;
}

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

@media (max-width: 560px) {
  .support-popup {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 20px;
  }

  .support-popup-actions .btn {
    flex: 1 1 150px;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .public-header-row {
    flex-direction: column;
  }
  .public-search {
    width: 100%;
  }
  .public-filter-grid,
  .resume-library-filters,
  .profile-grid,
  .profile-stat-grid,
  .support-use-grid,
  .admin-overview-grid {
    grid-template-columns: 1fr;
  }
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #e9eef5;
  --panel: #f8fafc;
  --panel-soft: #dfe7f0;
  --gold: #9a7618;
  --gold-light: #b6891d;
  --mint: #33b88c;
  --violet: #7f6bd8;
  --sun: #d99b22;
  --coral: #df6f5e;
  --blue: #2f8fc9;
  --pink: #c9568d;
  --text: #172033;
  --muted: rgba(23, 32, 51, 0.66);
  --line: rgba(42, 56, 82, 0.14);
  --shadow: 0 16px 36px rgba(24, 39, 75, 0.12);
}

html[data-theme="light"] body {
  background:
    linear-gradient(180deg, #eef3f8 0%, #e4ebf3 48%, #edf1f6 100%);
}

html[data-theme="light"] ::-webkit-scrollbar-track {
  background: #e6edf4;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--blue), var(--gold-light));
}

html[data-theme="light"] .topbar {
  background: rgba(248, 250, 252, 0.9);
  border-bottom-color: rgba(42, 56, 82, 0.16);
  box-shadow: 0 10px 30px rgba(24, 39, 75, 0.08);
}

html[data-theme="light"] .logo {
  color: #162033;
  text-shadow: none;
}

html[data-theme="light"] .logo::first-letter {
  color: var(--gold);
}

html[data-theme="light"] .topbar-contact {
  color: #896712;
}

html[data-theme="light"] .nav a,
html[data-theme="light"] .back-link {
  color: rgba(23, 32, 51, 0.68);
}

html[data-theme="light"] .topbar-shortcut,
html[data-theme="light"] .btn.ghost,
html[data-theme="light"] .quiz-btn.secondary,
html[data-theme="light"] .quiz-dashboard-btn {
  background: rgba(255, 255, 255, 0.74);
  color: #172033;
  border-color: rgba(42, 56, 82, 0.18);
  box-shadow: none;
}

html[data-theme="light"] .theme-toggle {
  background: linear-gradient(135deg, #172033, #2c3a55);
  color: #ffffff;
  border-color: rgba(23, 32, 51, 0.22);
}

html[data-theme="light"] .nav a:hover,
html[data-theme="light"] .back-link:hover,
html[data-theme="light"] .topbar-shortcut:hover,
html[data-theme="light"] .btn.ghost:hover,
html[data-theme="light"] .quiz-btn.secondary:hover,
html[data-theme="light"] .quiz-dashboard-btn:hover {
  color: #14233a;
  background: rgba(47, 143, 201, 0.1);
  border-color: rgba(47, 143, 201, 0.28);
}

html[data-theme="light"] .dashboard-hero,
html[data-theme="light"] .auth-page {
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(225, 234, 243, 0.92)),
    linear-gradient(135deg, rgba(182, 137, 29, 0.16), rgba(47, 143, 201, 0.12));
}

html[data-theme="light"] .dashboard-hero,
html[data-theme="light"] .panel,
html[data-theme="light"] .calendar,
html[data-theme="light"] .feature-card,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .list-item,
html[data-theme="light"] .modal-card,
html[data-theme="light"] .support-popup {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(42, 56, 82, 0.16);
  box-shadow: var(--shadow);
}

html[data-theme="light"] .feature-card:hover,
html[data-theme="light"] .list-item:hover,
html[data-theme="light"] .stat-card:hover {
  border-color: rgba(47, 143, 201, 0.26);
}

html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select,
html[data-theme="light"] .question-option-row input[type="text"],
html[data-theme="light"] .tab,
html[data-theme="light"] .editor-tools button,
html[data-theme="light"] .editor,
html[data-theme="light"] .day {
  background: #f8fafc;
  color: var(--text);
  border-color: rgba(42, 56, 82, 0.18);
}

html[data-theme="light"] select {
  color-scheme: light;
  background-color: #f8fafc;
}

html[data-theme="light"] select option {
  background: #f8fafc;
  color: var(--text);
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: rgba(23, 32, 51, 0.4);
}

html[data-theme="light"] input:focus,
html[data-theme="light"] textarea:focus,
html[data-theme="light"] select:focus {
  background: #ffffff;
  border-color: rgba(47, 143, 201, 0.48);
  box-shadow: 0 0 0 4px rgba(47, 143, 201, 0.14);
}

html[data-theme="light"] .day.muted {
  background: #dce5ee;
  color: rgba(23, 32, 51, 0.42);
}

html[data-theme="light"] .support-card,
html[data-theme="light"] .support-page-card,
html[data-theme="light"] .dashboard-support-card {
  background:
    linear-gradient(135deg, rgba(182, 137, 29, 0.13), rgba(47, 143, 201, 0.08)),
    #f8fafc;
}

html[data-theme="light"] .warning-card {
  background:
    linear-gradient(135deg, rgba(223, 111, 94, 0.12), rgba(255, 255, 255, 0.94)),
    #f8fafc;
}

html[data-theme="light"] .mini-stat,
html[data-theme="light"] .support-use-grid article,
html[data-theme="light"] .dashboard-live .list-item,
html[data-theme="light"] .guest-note {
  background: rgba(239, 244, 249, 0.92);
  border-color: rgba(42, 56, 82, 0.14);
}

html[data-theme="light"] .pulse-orbit {
  background: linear-gradient(135deg, rgba(182, 137, 29, 0.16), rgba(47, 143, 201, 0.12));
  border-color: rgba(42, 56, 82, 0.12);
}

html[data-theme="light"] .theme-choice-btn.active {
  border-color: rgba(47, 143, 201, 0.45);
  box-shadow: 0 0 0 4px rgba(47, 143, 201, 0.14);
}

