/* ==========================================================================
   乐宝提高班 — brand system
   ========================================================================== */

:root {
  --ink: #172a35;
  --ink-2: #243f49;
  --ink-3: #456068;
  --muted: #6f8387;
  --paper: #fdfaf3;
  --paper-2: #f7f0e3;
  --paper-3: #f1e7d6;
  --white: #fffefa;
  --orange: #e86130;
  --orange-dark: #c94b1e;
  --orange-soft: #fbe6d9;
  --mint: #2f7d6c;
  --mint-dark: #205e50;
  --mint-soft: #e4f1eb;
  --gold: #f0bd5d;
  --gold-soft: #fcf0cf;
  --line: rgba(23, 42, 53, 0.12);
  --line-strong: rgba(23, 42, 53, 0.2);
  --danger: #b63f30;
  --danger-soft: #fbe9e6;
  --success: #2c765f;
  --success-soft: #e2f2e9;
  --warning: #95681b;
  --warning-soft: #fbf0d5;
  --shadow-sm: 0 6px 20px rgba(23, 42, 53, 0.06);
  --shadow-md: 0 18px 50px rgba(23, 42, 53, 0.1);
  --shadow-lg: 0 30px 80px rgba(23, 42, 53, 0.14);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "STSong", Georgia, serif;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

::selection {
  color: var(--white);
  background: var(--orange);
}

:focus-visible {
  outline: 3px solid rgba(232, 97, 48, 0.45);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.text-link {
  color: var(--mint-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--orange-dark);
}

.clipboard-helper {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

code {
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(23, 42, 53, 0.07);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.93em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 10px 24px rgba(201, 75, 30, 0.25);
}

.btn-primary:hover {
  background: var(--orange-dark);
  box-shadow: 0 14px 30px rgba(201, 75, 30, 0.3);
}

.btn-dark {
  color: var(--white);
  background: var(--ink);
}

.btn-dark:hover {
  background: var(--ink-2);
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: var(--white);
  border-color: var(--ink);
}

.btn-light {
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-light:hover {
  background: var(--gold-soft);
}

.btn-outline-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-sm {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  min-height: 54px;
  padding: 15px 28px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn[disabled],
.btn.is-loading {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.btn .spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn.is-loading .spinner {
  display: inline-block;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

@keyframes spin {
  to { transform: rotate(1turn); }
}

/* Shared typography -------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.section-head {
  max-width: 690px;
  margin-bottom: 46px;
}

.section-head h2 {
  margin-top: 14px;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.section-head p {
  max-width: 590px;
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 17px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .eyebrow {
  justify-content: center;
}

.section-head.center p {
  margin-inline: auto;
}

.accent {
  color: var(--orange);
}

.underline-accent {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

.underline-accent::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.06em;
  z-index: -1;
  height: 0.2em;
  border-radius: 4px;
  background: var(--gold);
  opacity: 0.55;
}

/* Header ------------------------------------------------------------------- */

.topbar {
  color: #f7e9d6;
  background: var(--ink);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 36px;
  text-align: center;
}

.topbar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(240, 189, 93, 0.13);
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 250, 243, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(23, 42, 53, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  box-shadow: 0 5px 14px rgba(232, 97, 48, 0.22);
}

.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-word strong {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-word small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transition: right 0.25s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a:hover::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.header-actions .btn {
  min-height: 42px;
  padding: 9px 18px;
  font-size: 13px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Landing hero ------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 84px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -40%;
  height: 780px;
  background:
    radial-gradient(circle at 40% 45%, rgba(240, 189, 93, 0.18), transparent 40%),
    radial-gradient(circle at 65% 50%, rgba(47, 125, 108, 0.1), transparent 38%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 34px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 20px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border: 1px solid rgba(23, 42, 53, 0.1);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.75);
  box-shadow: var(--shadow-sm);
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 700;
}

.hero-badge b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--mint);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.hero h1 {
  max-width: 680px;
  margin-top: 24px;
  font-size: clamp(46px, 5.2vw, 74px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.hero h1 .marker {
  position: relative;
  display: inline-block;
  color: var(--orange);
  font-style: normal;
}

.hero h1 .marker::after {
  content: "";
  position: absolute;
  left: 0;
  right: 2%;
  bottom: 0.04em;
  height: 0.15em;
  border-radius: 999px;
  background: var(--gold);
  opacity: 0.7;
  transform: rotate(-1.2deg);
}

.hero-lead {
  max-width: 540px;
  margin-top: 24px;
  color: var(--ink-3);
  font-size: 17px;
  line-height: 1.85;
}

.hero-lead strong {
  color: var(--ink);
  font-weight: 750;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 600;
}

.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.check-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  flex: none;
  border-radius: 50%;
  color: var(--mint-dark);
  background: var(--mint-soft);
}

.check-dot svg {
  width: 10px;
  height: 10px;
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 8px 0 28px 6px;
}

.hero-art {
  position: relative;
  margin: 0;
  animation: float-soft 7s ease-in-out infinite;
}

.hero-art img {
  width: 100%;
  filter: drop-shadow(0 26px 40px rgba(23, 42, 53, 0.08));
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float-pill {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  background: rgba(255, 254, 250, 0.92);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  backdrop-filter: blur(10px);
}

.float-pill svg {
  width: 24px;
  height: 24px;
  color: var(--mint);
}

.float-pill.one {
  top: 2%;
  right: 0;
  transform: rotate(3deg);
}

.float-pill.two {
  top: 36%;
  left: -2%;
  transform: rotate(-3deg);
}

.float-pill small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
}

.scan-card {
  position: absolute;
  z-index: 4;
  left: 2%;
  bottom: -2%;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 340px;
  padding: 12px;
  border: 1px solid rgba(23, 42, 53, 0.08);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.scan-card .qr-frame {
  width: 160px;
  height: 160px;
  flex: none;
  padding: 5px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
}

.scan-card .qr-frame img {
  width: 100%;
  height: 100%;
}

.scan-copy {
  min-width: 0;
}

.scan-copy span {
  display: block;
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.scan-copy strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.35;
}

.scan-copy small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

/* Sections ----------------------------------------------------------------- */

section[id] {
  scroll-margin-top: 94px;
}

.section {
  padding: 100px 0;
}

.section-cream {
  background:
    radial-gradient(circle at 95% 12%, rgba(240, 189, 93, 0.16), transparent 30%),
    var(--paper-2);
}

.section-tight {
  padding: 78px 0;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.value-card {
  position: relative;
  min-height: 280px;
  padding: 28px 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 254, 250, 0.72);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 97, 48, 0.3);
  box-shadow: var(--shadow-md);
}

.value-card.featured {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.value-card.featured::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -70px;
  bottom: -70px;
  border-radius: 50%;
  background: rgba(240, 189, 93, 0.12);
  box-shadow: 0 0 0 30px rgba(240, 189, 93, 0.05);
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: var(--orange-dark);
  background: var(--orange-soft);
}

.icon-tile svg {
  width: 24px;
  height: 24px;
}

.value-card.featured .icon-tile {
  color: var(--ink);
  background: var(--gold);
}

.value-card h3 {
  margin-top: 28px;
  font-size: 20px;
  line-height: 1.3;
}

.value-card p {
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.75;
}

.value-card.featured p {
  color: #bfcfd2;
}

.card-index {
  position: absolute;
  top: 26px;
  right: 24px;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 13px;
  font-style: italic;
  opacity: 0.65;
}

.value-card.featured .card-index {
  color: var(--gold);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}

.step-item {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.step-item::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.step-num {
  color: var(--orange);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.step-item h3 {
  margin-top: 18px;
  font-size: 20px;
}

.step-item p {
  margin-top: 9px;
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.75;
}

.step-tag {
  display: inline-flex;
  margin-top: 18px;
  padding: 4px 9px;
  border-radius: 6px;
  color: var(--mint-dark);
  background: var(--mint-soft);
  font-size: 10.5px;
  font-weight: 750;
}

.split-section {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: stretch;
  gap: 24px;
}

.quote-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 470px;
  padding: 46px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--paper);
  background:
    radial-gradient(circle at 85% 15%, rgba(240, 189, 93, 0.16), transparent 30%),
    var(--ink);
}

.quote-panel::after {
  content: "“";
  position: absolute;
  right: 20px;
  bottom: -60px;
  color: rgba(255, 255, 255, 0.05);
  font-family: Georgia, serif;
  font-size: 300px;
  line-height: 1;
}

.quote-mark {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 50px;
  line-height: 0.7;
}

.quote-panel blockquote {
  position: relative;
  z-index: 1;
  margin: 30px 0;
  font-size: clamp(27px, 2.4vw, 33px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.quote-panel blockquote em {
  color: var(--gold);
  font-style: normal;
}

.quote-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b8c9cb;
  font-size: 12px;
}

.quote-meta .mini-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 15px;
}

.why-panel {
  padding: 12px 0 12px 34px;
}

.why-list {
  display: grid;
  gap: 7px;
}

.why-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.why-item:last-child {
  border-bottom: 0;
}

.why-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--orange-dark);
  font-family: var(--font-serif);
  font-size: 13px;
}

.why-item h3 {
  font-size: 18px;
}

.why-item p {
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.7;
}

.subjects-band {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.subjects-label {
  flex: none;
  padding-right: 28px;
  border-right: 1px solid var(--line);
}

.subjects-label strong {
  display: block;
  font-size: 17px;
}

.subjects-label span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.subject-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subject-chips span {
  padding: 6px 13px;
  border-radius: 999px;
  color: var(--ink-3);
  background: var(--paper-2);
  font-size: 12.5px;
  font-weight: 650;
}

.join-band {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 50px;
  padding: 54px 58px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--paper);
  background:
    radial-gradient(circle at 0% 100%, rgba(232, 97, 48, 0.2), transparent 35%),
    radial-gradient(circle at 90% 20%, rgba(240, 189, 93, 0.13), transparent 30%),
    var(--ink);
}

.join-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, black, transparent 55%);
  pointer-events: none;
}

.join-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.join-copy .eyebrow {
  color: var(--gold);
}

.join-copy h2 {
  margin-top: 14px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.join-copy p {
  max-width: 520px;
  margin-top: 16px;
  color: #bdcbce;
  font-size: 15px;
}

.join-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
  color: #d9e1e1;
  font-size: 12.5px;
}

.join-points span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.join-points .check-dot {
  color: var(--ink);
  background: var(--gold);
}

.join-qr {
  position: relative;
  z-index: 1;
  width: 232px;
  padding: 16px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.join-qr img {
  width: 200px;
  height: 200px;
  max-width: 100%;
  border-radius: 8px;
}

.join-qr strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 13px;
}

.join-qr small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.faq-list {
  max-width: 850px;
  margin-inline: auto;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 750;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  position: relative;
  width: 24px;
  height: 24px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.faq-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-plus::after {
  transform: translate(-50%, -50%) rotate(0);
}

.faq-item p {
  max-width: 760px;
  padding: 0 4px 25px;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.85;
}

.parent-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 38px 44px;
  border: 1px solid rgba(47, 125, 108, 0.22);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 20%, rgba(47, 125, 108, 0.1), transparent 40%),
    var(--mint-soft);
}

.parent-cta h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.parent-cta p {
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 14px;
}

.parent-cta-side {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.parent-qr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px 9px 9px;
  border: 1px solid rgba(23, 42, 53, 0.1);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.parent-qr img {
  width: 160px;
  height: 160px;
  flex: none;
  border-radius: 5px;
}

.parent-qr strong {
  display: block;
  font-size: 12px;
}

.parent-qr small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
}

/* Footer ------------------------------------------------------------------- */

.site-footer {
  padding: 58px 0 30px;
  color: #b8c6c9;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1fr;
  gap: 40px;
}

.footer-brand .brand-word strong {
  color: var(--paper);
}

.footer-brand .brand-word small {
  color: #819397;
}

.footer-brand p {
  max-width: 320px;
  margin-top: 18px;
  color: #8fa3a7;
  font-size: 12.5px;
  line-height: 1.8;
}

.footer-col h3 {
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.footer-col ul {
  display: grid;
  gap: 11px;
  margin-top: 18px;
}

.footer-col a,
.footer-col li {
  color: #93a6aa;
  font-size: 12.5px;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-note {
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 11.5px;
  line-height: 1.8;
}

.footer-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #75888c;
  font-size: 11px;
}

.footer-bottom a {
  color: #75888c;
}

.footer-bottom a:hover {
  color: var(--paper);
}

.mobile-cta {
  display: none;
}

/* Reveal motion ------------------------------------------------------------ */

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .js .reveal.is-visible {
    animation: reveal-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .js .reveal.is-visible.reveal-delay-1 { animation-delay: 0.08s; }
  .js .reveal.is-visible.reveal-delay-2 { animation-delay: 0.16s; }
  .js .reveal.is-visible.reveal-delay-3 { animation-delay: 0.24s; }
}

/* ==========================================================================
   Form pages — teacher registration & parent booking
   ========================================================================== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(253, 250, 243, 0.92);
  backdrop-filter: blur(16px);
}

.app-header .header-inner {
  min-height: 70px;
}

.app-header .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.app-header .brand-word strong {
  font-size: 17px;
}

.header-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 650;
}

.header-back:hover {
  color: var(--orange-dark);
}

.header-back svg {
  width: 16px;
  height: 16px;
}

.header-security {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11.5px;
}

.header-security svg {
  width: 15px;
  height: 15px;
  color: var(--mint);
}

.form-page {
  position: relative;
  min-height: calc(100vh - 70px);
  padding: 34px 0 70px;
  background:
    radial-gradient(circle at 8% 0%, rgba(240, 189, 93, 0.17), transparent 25%),
    radial-gradient(circle at 98% 15%, rgba(47, 125, 108, 0.1), transparent 25%),
    var(--paper);
}

.form-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: start;
  gap: 26px;
  max-width: 1120px;
}

.form-aside {
  position: sticky;
  top: 104px;
  min-height: 630px;
  padding: 38px 36px;
  overflow: hidden;
  border-radius: 28px;
  color: var(--paper);
  background:
    radial-gradient(circle at 90% 6%, rgba(240, 189, 93, 0.19), transparent 28%),
    radial-gradient(circle at 5% 95%, rgba(232, 97, 48, 0.2), transparent 35%),
    var(--ink);
}

.form-aside::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.025), 0 0 0 80px rgba(255, 255, 255, 0.018);
}

.form-aside.mint {
  background:
    radial-gradient(circle at 87% 8%, rgba(240, 189, 93, 0.2), transparent 28%),
    radial-gradient(circle at 0% 100%, rgba(47, 125, 108, 0.42), transparent 40%),
    var(--ink);
}

.aside-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.04);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.aside-badge .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ed0a5;
  box-shadow: 0 0 0 4px rgba(126, 208, 165, 0.12);
}

.form-aside h1 {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.28;
  letter-spacing: -0.04em;
}

.form-aside h1 em {
  color: var(--gold);
  font-style: normal;
}

.form-aside > p {
  position: relative;
  z-index: 1;
  margin-top: 15px;
  color: #b8c9cb;
  font-size: 13.5px;
  line-height: 1.8;
}

.aside-benefits {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 13px;
  margin-top: 30px;
}

.aside-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #dce5e5;
  font-size: 12.5px;
  line-height: 1.55;
}

.aside-benefits .check-dot {
  width: 19px;
  height: 19px;
  margin-top: 1px;
  color: var(--ink);
  background: var(--gold);
}

.aside-quote {
  position: relative;
  z-index: 1;
  margin-top: 34px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.aside-quote p {
  color: #e2e9e9;
  font-size: 12.5px;
  line-height: 1.75;
}

.aside-person {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
}

.avatar-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.aside-person strong {
  display: block;
  color: #dce5e5;
  font-size: 10.5px;
}

.aside-person span {
  display: block;
  color: #84999d;
  font-size: 9.5px;
}

.aside-steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.aside-step {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
}

.aside-step span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 11px;
}

.aside-step strong {
  display: block;
  color: #e8eeee;
  font-size: 12.5px;
}

.aside-step small {
  display: block;
  margin-top: 2px;
  color: #8fa3a7;
  font-size: 10.5px;
  line-height: 1.5;
}

.form-card {
  padding: 38px 40px 42px;
  border: 1px solid rgba(23, 42, 53, 0.1);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.form-card-head {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.form-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-dark);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.form-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--orange);
}

.form-card-head h2 {
  margin-top: 9px;
  font-size: 27px;
  letter-spacing: -0.03em;
}

.form-card-head p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12.5px;
}

.preferred-teacher {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 20px;
  padding: 11px 13px;
  border: 1px solid rgba(47, 125, 108, 0.2);
  border-radius: 11px;
  background: var(--mint-soft);
}

.preferred-teacher-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  color: var(--white);
  background: var(--mint);
  font-size: 13px;
  font-weight: 850;
}

.preferred-teacher-copy {
  min-width: 0;
  flex: 1;
}

.preferred-teacher-copy > span {
  display: block;
  color: var(--mint-dark);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.preferred-teacher-copy strong {
  display: block;
  margin-top: 1px;
  font-size: 12px;
}

.preferred-teacher-copy small {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preferred-teacher > a {
  flex: none;
  color: var(--mint-dark);
  font-size: 9.5px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-section {
  padding: 30px 0 4px;
}

.form-section + .form-section {
  margin-top: 10px;
  border-top: 1px dashed var(--line-strong);
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 850;
}

.form-section-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: var(--orange-dark);
  background: var(--orange-soft);
  font-family: var(--font-serif);
  font-size: 11px;
}

.form-section-title small {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}

.field-grid .span-2 {
  grid-column: 1 / -1;
}

.field {
  min-width: 0;
}

.fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.fieldset legend {
  float: left;
  width: 100%;
  padding: 0;
}

.fieldset legend + * {
  clear: both;
}

.field > label,
.field-label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 750;
}

.req {
  color: var(--orange);
  font-size: 11px;
}

.optional {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 500;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #d9e1de;
  border-radius: 11px;
  background: #fcfbf6;
  font-size: 13.5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input::placeholder,
.textarea::placeholder {
  color: #a9b3b2;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: #bdcbc7;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--mint);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(47, 125, 108, 0.1);
}

.select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236f8387' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}

.textarea {
  min-height: 116px;
  resize: vertical;
  line-height: 1.7;
}

.field-hint {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}

.counter.is-near {
  color: var(--orange-dark);
}

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

.segmented label {
  position: relative;
  cursor: pointer;
}

.segmented input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.segmented span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid #d9e1de;
  border-radius: 10px;
  color: var(--ink-3);
  background: #fcfbf6;
  font-size: 12.5px;
  font-weight: 650;
  transition: all 0.18s ease;
}

.segmented input:checked + span {
  color: var(--mint-dark);
  border-color: var(--mint);
  background: var(--mint-soft);
  box-shadow: inset 0 0 0 1px var(--mint);
}

.segmented input:focus-visible + span {
  outline: 3px solid rgba(232, 97, 48, 0.35);
  outline-offset: 2px;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-chip {
  position: relative;
  cursor: pointer;
}

.choice-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choice-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid #d9e1de;
  border-radius: 9px;
  color: var(--ink-3);
  background: #fcfbf6;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.18s ease;
}

.choice-chip:hover span {
  border-color: #b5c6c1;
}

.choice-chip input:checked + span {
  color: var(--mint-dark);
  border-color: var(--mint);
  background: var(--mint-soft);
  box-shadow: inset 0 0 0 1px var(--mint);
}

.choice-chip input:checked + span::before {
  content: "✓";
  margin-right: 5px;
  font-size: 10px;
  font-weight: 900;
}

.choice-chip input:focus-visible + span {
  outline: 3px solid rgba(232, 97, 48, 0.35);
  outline-offset: 2px;
}

.input-prefix {
  position: relative;
}

.input-prefix .input {
  padding-left: 31px;
}

.input-prefix .prefix {
  position: absolute;
  left: 13px;
  top: 50%;
  color: var(--muted);
  font-size: 12px;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-suffix {
  position: relative;
}

.input-suffix .input {
  padding-right: 52px;
}

.input-suffix .suffix {
  position: absolute;
  right: 13px;
  top: 50%;
  color: var(--muted);
  font-size: 10.5px;
  transform: translateY(-50%);
  pointer-events: none;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.65;
}

.field > label.consent-row {
  align-items: flex-start;
  margin-bottom: 0;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.65;
}

.field.has-error .consent-row {
  padding: 4px;
  border-radius: 6px;
  outline: 1px solid rgba(182, 63, 48, 0.55);
}

.consent-row input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--mint);
}

.consent-row a {
  color: var(--mint-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-submit {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.form-submit .btn {
  flex: 1;
}

.submit-note {
  max-width: 185px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.55;
}

.form-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 11px 13px;
  border: 1px solid rgba(182, 63, 48, 0.2);
  border-radius: 9px;
  color: var(--danger);
  background: var(--danger-soft);
  font-size: 11.5px;
  line-height: 1.55;
}

.form-error svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 2px;
}

.field-error {
  display: none;
  margin-top: 5px;
  color: var(--danger);
  font-size: 10px;
  line-height: 1.4;
}

.field.has-error .field-error {
  display: block;
}

.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea {
  border-color: var(--danger);
  background: #fffafa;
}

.field.has-error .chip-grid,
.field.has-error .segmented {
  padding: 4px;
  border-radius: 9px;
  outline: 1px solid rgba(182, 63, 48, 0.55);
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Success state ------------------------------------------------------------ */

.success-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  padding: 30px 0;
}

.success-card {
  width: min(590px, 100%);
  padding: 44px 42px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  text-align: center;
  animation: success-in 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes success-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  color: var(--white);
  background: var(--mint);
  box-shadow: 0 0 0 12px var(--mint-soft);
}

.success-icon svg {
  width: 34px;
  height: 34px;
}

.success-card h1 {
  margin-top: 32px;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.success-card > p {
  max-width: 430px;
  margin: 12px auto 0;
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.8;
}

.success-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--warning);
  background: var(--warning-soft);
  font-size: 10.5px;
  font-weight: 750;
}

.success-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.success-status.is-auto {
  color: var(--success);
  background: var(--success-soft);
}

.success-code {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 9px 15px;
  border: 1px dashed rgba(47, 125, 108, 0.35);
  border-radius: 9px;
  color: var(--mint-dark);
  background: var(--mint-soft);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.success-code small {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: 0;
}

.success-steps {
  display: grid;
  gap: 10px;
  margin-top: 27px;
  padding: 18px;
  border-radius: 14px;
  background: var(--paper);
  text-align: left;
}

.success-steps li {
  display: flex;
  gap: 9px;
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.6;
}

.success-steps b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  color: var(--orange-dark);
  background: var(--orange-soft);
  font-size: 9px;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

/* ==========================================================================
   Public teacher directory
   ========================================================================== */

.directory-page {
  background:
    radial-gradient(circle at 92% 2%, rgba(240, 189, 93, 0.15), transparent 24%),
    var(--paper);
}

.directory-hero {
  position: relative;
  padding: 64px 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.directory-hero::before {
  content: "";
  position: absolute;
  top: -260px;
  left: -180px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(47, 125, 108, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(47, 125, 108, 0.025), 0 0 0 120px rgba(47, 125, 108, 0.018);
  pointer-events: none;
}

.directory-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 58px;
}

.directory-hero-copy h1 {
  margin-top: 15px;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.14;
  letter-spacing: -0.055em;
}

.directory-hero-copy h1 em {
  color: var(--orange);
  font-style: normal;
}

.directory-hero-copy > p {
  max-width: 560px;
  margin-top: 20px;
  color: var(--ink-3);
  font-size: 15.5px;
  line-height: 1.85;
}

.directory-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 27px;
}

.directory-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint-dark);
  font-size: 11.5px;
  font-weight: 700;
}

.directory-live i {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4aa47f;
  box-shadow: 0 0 0 4px rgba(74, 164, 127, 0.12);
}

.directory-guide {
  padding: 29px 28px;
  border: 1px solid rgba(23, 42, 53, 0.1);
  border-radius: 24px;
  background: rgba(255, 254, 250, 0.78);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.directory-guide-label {
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.directory-guide ol {
  display: grid;
  gap: 18px;
  margin-top: 21px;
}

.directory-guide li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
}

.directory-guide li b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--orange-dark);
  font-family: var(--font-serif);
  font-size: 10px;
}

.directory-guide li strong {
  display: block;
  font-size: 12.5px;
}

.directory-guide li span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.directory-guide-note {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.directory-section {
  padding: 58px 0 74px;
}

.directory-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.directory-heading h2 {
  margin-top: 11px;
  font-size: clamp(32px, 3.5vw, 44px);
  letter-spacing: -0.04em;
}

.directory-heading p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.directory-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex: none;
  padding-bottom: 5px;
}

.directory-count strong {
  color: var(--orange);
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.directory-count span {
  color: var(--muted);
  font-size: 10.5px;
}

.directory-filters {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 254, 250, 0.76);
}

.directory-filters label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 650;
}

.directory-filters .select {
  width: 150px;
  min-height: 36px;
  padding: 7px 32px 7px 10px;
  font-size: 11px;
}

.directory-refresh {
  min-height: 36px;
  margin-left: auto;
  font-size: 10px;
}

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

.teacher-public-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(23, 42, 53, 0.035);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.teacher-public-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 125, 108, 0.28);
  box-shadow: var(--shadow-md);
}

.teacher-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.teacher-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  color: var(--mint-dark);
  background: var(--mint-soft);
  font-size: 17px;
  font-weight: 900;
}

.teacher-public-card:nth-child(3n + 2) .teacher-avatar {
  color: var(--orange-dark);
  background: var(--orange-soft);
}

.teacher-public-card:nth-child(3n + 3) .teacher-avatar {
  color: var(--warning);
  background: var(--gold-soft);
}

.teacher-card-name {
  min-width: 0;
  flex: 1;
}

.teacher-card-name h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.teacher-review-badge {
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--success);
  background: var(--success-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0;
}

.teacher-review-badge.is-registered {
  color: var(--mint-dark);
  background: var(--mint-soft);
}

.teacher-card-name p {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-rate {
  flex: none;
  text-align: right;
}

.teacher-rate strong {
  color: var(--orange-dark);
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.teacher-rate span {
  color: var(--muted);
  font-size: 8.5px;
}

.teacher-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 18px;
}

.teacher-tags span {
  padding: 3px 8px;
  border-radius: 5px;
  color: var(--ink-3);
  background: var(--paper-2);
  font-size: 9.5px;
  font-weight: 650;
}

.teacher-tags span.subject {
  color: var(--mint-dark);
  background: var(--mint-soft);
}

.teacher-intro {
  display: -webkit-box;
  margin-top: 13px;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.teacher-facts {
  display: grid;
  gap: 6px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
}

.teacher-facts div {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.55;
}

.teacher-facts svg {
  width: 12px;
  height: 12px;
  flex: none;
  margin-top: 2px;
  color: var(--mint);
}

.teacher-facts b {
  color: var(--ink-3);
  font-weight: 650;
}

.teacher-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 17px;
}

.teacher-updated {
  color: var(--muted);
  font-size: 8px;
}

.teacher-card-foot .btn {
  min-height: 33px;
  padding: 7px 12px;
  font-size: 10px;
}

.teacher-skeleton {
  min-height: 300px;
  gap: 15px;
  justify-content: center;
}

.teacher-skeleton .skeleton-line {
  width: 100%;
  margin: 0;
}

.teacher-skeleton .skeleton-line.short {
  width: 62%;
}

.directory-empty {
  padding: 60px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  background: rgba(255, 254, 250, 0.65);
  text-align: center;
}

.directory-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  color: var(--mint-dark);
  background: var(--mint-soft);
}

.directory-empty-icon svg {
  width: 25px;
  height: 25px;
}

.directory-empty h3 {
  margin-top: 17px;
  font-size: 20px;
}

.directory-empty p {
  max-width: 430px;
  margin: 8px auto 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.directory-cta {
  padding: 0 0 78px;
}

.directory-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 38px 42px;
  border: 1px solid rgba(47, 125, 108, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 20%, rgba(47, 125, 108, 0.12), transparent 38%),
    var(--mint-soft);
}

.directory-cta h2 {
  margin-top: 10px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.directory-cta p {
  max-width: 620px;
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 12.5px;
}

.directory-cta .btn {
  flex: none;
}

.directory-footer {
  padding: 23px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.directory-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.directory-footer a:hover {
  color: var(--orange-dark);
}

@media (max-width: 1024px) {
  .directory-hero-grid {
    gap: 30px;
  }

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

@media (max-width: 900px) {
  .directory-hero {
    padding: 45px 0 52px;
  }

  .directory-hero-grid {
    grid-template-columns: 1fr;
  }

  .directory-guide {
    max-width: 620px;
  }

  .directory-heading {
    align-items: flex-start;
  }

  .directory-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .directory-hero {
    padding: 34px 0 42px;
  }

  .directory-hero-copy h1 {
    font-size: 39px;
  }

  .directory-hero-copy > p {
    font-size: 13.5px;
  }

  .directory-guide {
    padding: 23px 20px;
    border-radius: 19px;
  }

  .directory-section {
    padding: 42px 0 56px;
  }

  .directory-heading {
    gap: 15px;
  }

  .directory-heading h2 {
    font-size: 31px;
  }

  .directory-heading p {
    font-size: 10.5px;
  }

  .directory-count strong {
    font-size: 34px;
  }

  .directory-filters {
    gap: 10px;
  }

  .directory-filters label {
    flex: 1;
    min-width: 135px;
  }

  .directory-filters .select {
    width: 100%;
  }

  .directory-refresh {
    width: 100%;
    margin-left: 0;
  }

  .teachers-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .teacher-public-card {
    padding: 20px;
  }

  .teacher-card-foot {
    align-items: flex-end;
  }

  .directory-cta {
    padding-bottom: 55px;
  }

  .directory-cta-inner {
    padding: 27px 22px;
  }

  .directory-cta .btn {
    width: 100%;
  }

  .directory-footer .container {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

/* ==========================================================================
   Admin
   ========================================================================== */

.admin-login-page {
  background: var(--paper-3);
}

.login-screen {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  min-height: 100vh;
}

.login-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 85% 12%, rgba(240, 189, 93, 0.16), transparent 28%),
    radial-gradient(circle at 10% 90%, rgba(232, 97, 48, 0.2), transparent 35%),
    var(--ink);
}

.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 25px 25px;
  mask-image: linear-gradient(145deg, black, transparent 65%);
}

.login-visual .brand {
  position: relative;
  z-index: 1;
}

.login-visual .brand-word strong {
  color: var(--paper);
}

.login-visual .brand-word small {
  color: #8fa3a7;
}

.login-hero {
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding: 60px 0;
}

.login-hero .eyebrow {
  color: var(--gold);
}

.login-hero h1 {
  margin-top: 20px;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.login-hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.login-hero p {
  max-width: 430px;
  margin-top: 20px;
  color: #b9c8ca;
  font-size: 14px;
  line-height: 1.8;
}

.login-meta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 28px;
  color: #82969a;
  font-size: 11px;
}

.login-meta strong {
  display: block;
  color: var(--paper);
  font-size: 12px;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background:
    radial-gradient(circle at 100% 0%, rgba(240, 189, 93, 0.15), transparent 32%),
    var(--paper);
}

.login-card {
  width: min(410px, 100%);
}

.login-eyebrow {
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.login-card h2 {
  margin-top: 12px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.login-card > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.login-form .field > label {
  margin-bottom: 7px;
}

.login-form .btn {
  margin-top: 4px;
}

.login-error {
  min-height: 20px;
  color: var(--danger);
  font-size: 11px;
}

.login-help {
  margin-top: 24px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 254, 250, 0.6);
  font-size: 10.5px;
  line-height: 1.65;
}

.login-help strong {
  color: var(--ink-3);
}

.admin-page {
  background: #f3f1ea;
}

.admin-shell {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 25px 17px;
  color: #b8c7c9;
  background: var(--ink);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 9px;
}

.admin-brand .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.admin-brand strong {
  display: block;
  color: var(--paper);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.admin-brand span {
  display: block;
  margin-top: 2px;
  color: #819397;
  font-size: 8px;
  letter-spacing: 0.14em;
}

.admin-nav {
  display: grid;
  gap: 5px;
  margin-top: 40px;
}

.admin-nav-label {
  padding: 0 11px 8px;
  color: #6e8387;
  font-size: 8.5px;
  letter-spacing: 0.15em;
}

.admin-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  color: #9eb0b3;
  background: transparent;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  transition: color 0.18s ease, background 0.18s ease;
}

.admin-nav button svg {
  width: 17px;
  height: 17px;
  flex: none;
  opacity: 0.85;
}

.admin-nav button:hover {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.055);
}

.admin-nav button.is-active {
  color: var(--ink);
  background: var(--gold);
}

.admin-nav button .nav-count {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 8.5px;
}

.admin-nav button.is-active .nav-count {
  color: var(--ink);
  background: rgba(23, 42, 53, 0.13);
}

.admin-sidebar-foot {
  margin-top: auto;
  padding: 14px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
}

.sidebar-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  flex: none;
  border-radius: 9px;
  color: var(--ink);
  background: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.sidebar-user strong {
  display: block;
  color: #d4dede;
  font-size: 10.5px;
}

.sidebar-user span {
  display: block;
  color: #72878a;
  font-size: 8.5px;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 14px;
  padding: 7px 0;
  border: 0;
  color: #829699;
  background: transparent;
  font-size: 10px;
}

.sidebar-logout:hover {
  color: var(--gold);
}

.sidebar-logout svg {
  width: 13px;
  height: 13px;
}

.admin-main {
  min-width: 0;
  padding: 26px 30px 50px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.admin-topbar h1 {
  font-size: 26px;
  letter-spacing: -0.035em;
}

.admin-topbar p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.system-chip,
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
  background: rgba(255, 254, 250, 0.65);
  font-size: 9.5px;
}

.system-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #57a37f;
}

.live-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #57a37f;
  box-shadow: 0 0 0 3px rgba(87, 163, 127, 0.12);
}

.live-chip.is-reconnecting {
  color: var(--warning);
  background: var(--warning-soft);
}

.live-chip.is-reconnecting i {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 189, 93, 0.18);
}

.voice-button {
  min-height: 32px;
  padding: 6px 11px;
  font-size: 9.5px;
}

.voice-button.is-on {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold-soft);
}

.voice-button .btn-icon {
  width: 14px;
  height: 14px;
}

.edit-dialog {
  width: min(760px, calc(100vw - 32px));
}

.edit-dialog .dialog-body {
  padding-top: 20px;
}

.edit-dialog .field-grid {
  gap: 14px 16px;
}

.edit-dialog .field > label {
  font-size: 10.5px;
}

.edit-dialog .input,
.edit-dialog .select {
  min-height: 40px;
  font-size: 12px;
}

.edit-dialog .textarea {
  min-height: 90px;
  font-size: 12px;
}

.edit-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.admin-view {
  display: none;
}

.admin-view.is-active {
  display: block;
  animation: view-in 0.35s ease;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}

.stat-card {
  position: relative;
  padding: 18px 19px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
}

.stat-card.dark {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.stat-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}

.stat-card.dark .stat-label {
  color: #9fb1b4;
}

.stat-label svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.stat-value {
  margin-top: 14px;
  font-size: 34px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-card.dark .stat-value {
  color: var(--gold);
}

.stat-foot {
  margin-top: 9px;
  color: var(--muted);
  font-size: 9.5px;
}

.stat-card.dark .stat-foot {
  color: #82969a;
}

.stat-foot b {
  color: var(--orange-dark);
  font-weight: 750;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  margin-top: 14px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  overflow: hidden;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-top: 14px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-height: 152px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
}

.guide-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--orange-dark);
  background: var(--orange-soft);
  font-family: var(--font-serif);
  font-size: 10px;
  font-weight: 700;
}

.guide-card h3 {
  font-size: 13px;
}

.guide-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.guide-card .panel-link {
  margin-top: auto;
  padding: 0;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  font-size: 14px;
  letter-spacing: -0.01em;
}

.panel-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
}

.panel-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 0;
  color: var(--orange-dark);
  background: transparent;
  font-size: 9.5px;
  font-weight: 700;
}

.panel-link svg {
  width: 12px;
  height: 12px;
}

.mini-list {
  display: grid;
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px 18px;
  border: 0;
  border-bottom: 1px solid rgba(23, 42, 53, 0.07);
  color: var(--ink);
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.mini-row:hover {
  background: #fdfbf5;
}

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

.mini-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  color: var(--mint-dark);
  background: var(--mint-soft);
  font-size: 11px;
  font-weight: 850;
}

.mini-main {
  min-width: 0;
  flex: 1;
}

.mini-main strong {
  display: block;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-main span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-time {
  flex: none;
  color: var(--muted);
  font-size: 8.5px;
}

.empty-mini {
  padding: 35px 18px;
  color: var(--muted);
  font-size: 10.5px;
  text-align: center;
}

/* Toolbar / tables */

.view-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 300px;
}

.search-box svg {
  position: absolute;
  top: 50%;
  left: 11px;
  width: 14px;
  height: 14px;
  color: var(--muted);
  transform: translateY(-50%);
}

.search-box input {
  width: 100%;
  min-height: 36px;
  padding: 8px 11px 8px 33px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-size: 10.5px;
}

.tab-group {
  display: flex;
  gap: 3px;
  padding: 3px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 254, 250, 0.7);
}

.tab-group button {
  flex: none;
  min-height: 28px;
  padding: 5px 10px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 9.5px;
  font-weight: 650;
}

.tab-group button.is-active {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 2px 6px rgba(23, 42, 53, 0.08);
}

.toolbar-spacer {
  flex: 1;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.data-table th {
  padding: 11px 15px;
  color: var(--muted);
  background: #faf8f1;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
}

.data-table td {
  padding: 13px 15px;
  border-top: 1px solid rgba(23, 42, 53, 0.07);
  color: var(--ink-3);
  font-size: 11.5px;
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background 0.15s ease;
}

.data-table tbody tr:hover {
  background: #fdfbf5;
}

.data-table .cell-main {
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.data-table .cell-sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 500;
}

.cell-id {
  color: var(--muted) !important;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px !important;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 8.5px;
  font-weight: 700;
}

.badge::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.badge-pending { color: var(--warning); background: var(--warning-soft); }
.badge-approved,
.badge-matched { color: var(--success); background: var(--success-soft); }
.badge-rejected,
.badge-cancelled { color: var(--danger); background: var(--danger-soft); }
.badge-completed { color: #386780; background: #e5f0f5; }

.high-rate-mark {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--orange-dark);
  background: var(--orange-soft);
  font-size: 8px;
  font-weight: 700;
}

@keyframes row-flash {
  0%, 100% { background: transparent; }
  18%, 60% { background: rgba(240, 189, 93, 0.22); }
}

.data-table tbody tr.row-new {
  animation: row-flash 3.2s ease;
}

.row-action {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-3);
  background: var(--white);
  font-size: 9px;
  font-weight: 650;
}

.row-action:hover {
  color: var(--orange-dark);
  border-color: rgba(232, 97, 48, 0.35);
}

.table-empty {
  padding: 52px 20px !important;
  color: var(--muted) !important;
  text-align: center;
  white-space: normal;
}

.table-loading {
  padding: 50px !important;
  text-align: center;
}

.skeleton-line {
  width: 140px;
  height: 9px;
  margin: 0 auto;
  border-radius: 6px;
  background: linear-gradient(90deg, #eee9de, #f7f3e9, #eee9de);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

/* QR studio */

.qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.qr-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.qr-card-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 28px;
  background:
    radial-gradient(circle at 15% 15%, rgba(240, 189, 93, 0.24), transparent 30%),
    var(--paper-2);
}

.qr-card-visual img {
  width: 200px;
  height: 200px;
  padding: 9px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.qr-ribbon {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.qr-card-body {
  padding: 20px 22px 22px;
}

.qr-card-body h3 {
  font-size: 16px;
}

.qr-card-body p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.qr-link {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-3);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  overflow: hidden;
}

.qr-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.qr-guidance {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid rgba(47, 125, 108, 0.18);
  border-radius: 10px;
  color: var(--ink-3);
  background: var(--mint-soft);
  font-size: 10px;
  line-height: 1.7;
}

.qr-guidance svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
  color: var(--mint);
}

/* Dialog / drawer */

.detail-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(92vh, 980px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.detail-dialog::backdrop {
  background: rgba(17, 34, 42, 0.55);
  backdrop-filter: blur(4px);
}

.dialog-inner {
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 980px);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.dialog-head h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.dialog-head p {
  margin-top: 3px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
}

.dialog-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
}

.dialog-close:hover {
  color: var(--ink);
  background: var(--paper);
}

.dialog-close svg {
  width: 15px;
  height: 15px;
}

.dialog-body {
  flex: 1;
  padding: 22px 24px;
  overflow-y: auto;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}

.detail-item.span-2 {
  grid-column: 1 / -1;
}

.detail-item dt {
  color: var(--muted);
  font-size: 9px;
}

.detail-item dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.detail-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.detail-block h3 {
  font-size: 11px;
  letter-spacing: 0.04em;
}

.detail-block p {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.status-action {
  min-height: 31px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-3);
  background: var(--white);
  font-size: 9.5px;
  font-weight: 650;
}

.status-action:hover {
  border-color: var(--mint);
  color: var(--mint-dark);
  background: var(--mint-soft);
}

.status-action.is-danger:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-soft);
}

.note-area {
  width: 100%;
  min-height: 84px;
  margin-top: 8px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 11px;
  line-height: 1.65;
  resize: vertical;
}

.dialog-note {
  flex: none;
  padding: 11px 24px 0;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.dialog-note .field-label {
  margin-bottom: 6px;
  font-size: 10px;
}

.dialog-note .note-area {
  min-height: 60px;
  max-height: 92px;
  margin-top: 0;
  background: var(--paper);
}

.dialog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 24px 14px;
  background: var(--white);
}

.dialog-foot span {
  color: var(--muted);
  font-size: 9px;
}

.dialog-foot .btn {
  min-height: 36px;
  padding: 8px 16px;
  font-size: 10.5px;
}

/* Toast */

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 330px;
  padding: 11px 15px;
  border-radius: 10px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: var(--shadow-lg);
  font-size: 11px;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-error {
  background: #7e2e24;
}

.toast svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--gold);
}

.admin-empty {
  padding: 50px 20px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

/* ==========================================================================
   Poster & legal & 404
   ========================================================================== */

.poster-page {
  min-height: 100vh;
  padding: 100px 20px 50px;
  background: #e9e4da;
}

.poster-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(253, 250, 243, 0.94);
  backdrop-filter: blur(14px);
}

.poster-toolbar-copy strong {
  display: block;
  font-size: 12px;
}

.poster-toolbar-copy span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.poster-toolbar-actions {
  display: flex;
  gap: 8px;
}

.poster-stage {
  display: flex;
  justify-content: center;
}

.poster {
  position: relative;
  width: 210mm;
  min-height: 297mm;
  padding: 18mm;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 20px 60px rgba(23, 42, 53, 0.18);
}

.poster::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(240, 189, 93, 0.18);
  box-shadow: 0 0 0 50px rgba(240, 189, 93, 0.06), 0 0 0 100px rgba(240, 189, 93, 0.035);
}

.poster-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.poster-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.poster-brand img {
  width: 43px;
  height: 43px;
  border-radius: 12px;
}

.poster-brand strong {
  display: block;
  font-size: 17px;
}

.poster-brand span {
  display: block;
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.15em;
}

.poster-tag {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.poster-hero {
  position: relative;
  z-index: 1;
  margin-top: 25mm;
}

.poster-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.poster-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
}

.poster h1 {
  margin-top: 14px;
  font-size: 40px;
  line-height: 1.22;
  letter-spacing: -0.045em;
}

.poster h1 em {
  color: var(--orange);
  font-style: normal;
}

.poster-sub {
  max-width: 135mm;
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.8;
}

.poster-scan {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12mm;
  margin-top: 16mm;
  padding: 10mm;
  border-radius: 20px;
  color: var(--paper);
  background:
    radial-gradient(circle at 90% 20%, rgba(240, 189, 93, 0.16), transparent 30%),
    var(--ink);
}

.poster-scan-copy .scan-label {
  color: var(--gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.poster-scan-copy h2 {
  margin-top: 7px;
  font-size: 22px;
  line-height: 1.4;
}

.poster-scan-copy p {
  margin-top: 7px;
  color: #b9c8ca;
  font-size: 9px;
  line-height: 1.7;
}

.poster-checks {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  color: #dce5e5;
  font-size: 8.5px;
}

.poster-checks span::before {
  content: "✓";
  margin-right: 6px;
  color: var(--gold);
  font-weight: 900;
}

.poster-qr {
  padding: 4mm;
  border-radius: 14px;
  background: var(--white);
  text-align: center;
}

.poster-qr img {
  width: 60mm;
  height: 60mm;
}

.poster-qr span {
  display: block;
  margin-top: 3mm;
  color: var(--ink);
  font-size: 8px;
  font-weight: 700;
}

.poster-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7mm;
  margin-top: 14mm;
}

.poster-step {
  padding-top: 4mm;
  border-top: 1px solid var(--line-strong);
}

.poster-step b {
  color: var(--orange-dark);
  font-family: var(--font-serif);
  font-size: 10px;
}

.poster-step strong {
  display: block;
  margin-top: 3mm;
  font-size: 11px;
}

.poster-step span {
  display: block;
  margin-top: 1.5mm;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.6;
}

.poster-foot {
  position: absolute;
  left: 18mm;
  right: 18mm;
  bottom: 12mm;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4mm;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 7.5px;
}

.legal-page {
  padding: 70px 0 100px;
  background: var(--paper);
}

.legal-card {
  max-width: 820px;
  margin-inline: auto;
  padding: 48px 54px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.legal-card .eyebrow {
  color: var(--mint-dark);
}

.legal-card h1 {
  margin-top: 14px;
  font-size: 38px;
  letter-spacing: -0.04em;
}

.legal-updated {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10.5px;
}

.legal-card h2 {
  margin-top: 32px;
  font-size: 18px;
}

.legal-card p,
.legal-card li {
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.9;
}

.legal-card ul {
  padding-left: 20px;
  list-style: disc;
}

.legal-card strong {
  color: var(--ink);
}

.legal-note {
  margin-top: 32px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.8;
}

.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(240, 189, 93, 0.2), transparent 32%),
    var(--paper);
}

.error-card img {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  border-radius: 16px;
}

.error-code {
  color: var(--orange);
  font-family: var(--font-serif);
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
}

.error-card h1 {
  margin-top: 15px;
  font-size: 30px;
}

.error-card p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
}

.error-card .btn {
  margin-top: 24px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1120px) {
  .admin-topbar .system-chip {
    display: none;
  }
}

@media (max-width: 1080px) {
  .site-nav {
    gap: 22px;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  .hero-grid {
    gap: 10px;
  }

  .hero h1 {
    font-size: clamp(44px, 5.5vw, 64px);
  }

  .float-pill.one {
    right: -5px;
  }

  .scan-card {
    left: 0;
    transform: scale(0.92);
    transform-origin: left bottom;
  }

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

  .value-card {
    min-height: 240px;
  }

  .form-layout {
    grid-template-columns: 0.78fr 1.22fr;
  }

  .form-aside {
    padding: 32px 27px;
  }

  .form-card {
    padding: 34px 30px;
  }

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

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

@media (max-width: 900px) {
  .topbar-inner {
    font-size: 11px;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
    border-radius: 9px;
  }

  .site-nav a:hover {
    background: var(--paper);
  }

  .site-nav a::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .header-actions .btn {
    display: none;
  }

  .hero {
    padding: 35px 0 54px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-copy {
    padding-top: 8px;
  }

  .hero h1 {
    max-width: 700px;
    font-size: clamp(44px, 8vw, 66px);
  }

  .hero-lead {
    max-width: 620px;
  }

  .hero-visual {
    width: 100%;
    max-width: 630px;
    margin: 0 auto;
    padding: 10px 0 35px;
  }

  .float-pill.two {
    left: 0;
  }

  .scan-card {
    left: auto;
    right: 3%;
    bottom: 2%;
    transform: none;
  }

  .section {
    padding: 76px 0;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 26px;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .quote-panel {
    min-height: 390px;
  }

  .why-panel {
    padding: 12px 0;
  }

  .subjects-band {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .subjects-label {
    padding: 0 0 13px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }

  .join-band {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 38px;
  }

  .join-qr {
    width: 100%;
    max-width: 280px;
  }

  .parent-cta {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .parent-cta .btn {
    justify-self: start;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .form-layout {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .form-aside {
    position: relative;
    top: 0;
    min-height: 0;
    padding: 30px;
  }

  .form-aside h1 {
    font-size: 32px;
  }

  .aside-quote {
    display: none;
  }

  .aside-benefits {
    grid-template-columns: 1fr 1fr;
    gap: 9px 18px;
  }

  .form-aside::after {
    display: none;
  }

  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-visual {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    padding: 28px;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: sticky;
    z-index: 30;
    height: auto;
    padding: 10px 13px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    overflow: visible;
  }

  .admin-brand {
    padding: 0;
    flex: none;
    min-width: 0;
  }

  .admin-brand .brand-mark {
    width: 34px;
    height: 34px;
  }

  .admin-brand span {
    display: block;
  }

  .admin-brand strong {
    font-size: 13px;
  }

  .admin-brand span span {
    font-size: 7px;
  }

  .admin-nav-label {
    display: none;
  }

  .admin-sidebar-foot {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding: 0;
    border: 0;
  }

  .sidebar-user {
    display: none;
  }

  .sidebar-logout {
    width: auto;
    margin: 0;
    padding: 7px 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    font-size: 9.5px;
  }

  .admin-nav {
    order: 3;
    display: flex;
    flex-basis: 100%;
    width: 100%;
    gap: 4px;
    margin: 2px 0 0;
    overflow: visible;
  }

  .admin-nav button {
    flex: 1;
    justify-content: center;
    width: auto;
    min-width: 0;
    min-height: 34px;
    padding: 7px 4px;
    font-size: 11px;
    white-space: nowrap;
  }

  .admin-nav button .nav-count {
    margin-left: 3px;
    padding: 1px 5px;
  }

  .admin-nav button svg {
    display: none;
  }

  .admin-main {
    padding: 20px 20px 40px;
  }

  .admin-topbar {
    margin-bottom: 20px;
  }

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

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

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }

  .topbar-inner {
    min-height: 32px;
    gap: 8px;
    font-size: 10px;
  }

  .topbar-link {
    display: none;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
    border-radius: 12px;
  }

  .brand-word strong {
    font-size: 17px;
  }

  .brand-word small {
    font-size: 7.5px;
  }

  .hero {
    padding-top: 26px;
  }

  .hero-badge {
    font-size: 11px;
  }

  .hero h1 {
    margin-top: 20px;
    font-size: clamp(40px, 11.5vw, 55px);
    line-height: 1.13;
  }

  .hero-lead {
    margin-top: 19px;
    font-size: 14.5px;
    line-height: 1.8;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 24px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-proof {
    gap: 8px 14px;
    font-size: 10.5px;
  }

  .hero-visual {
    padding-top: 4px;
  }

  .float-pill {
    display: none;
  }

  .scan-card {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: -3px;
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .scan-card .qr-frame {
    width: 160px;
    height: 160px;
    align-self: center;
  }

  .section {
    padding: 60px 0;
  }

  .section-head h2 {
    font-size: 31px;
  }

  .section-head p {
    font-size: 14px;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .value-card {
    min-height: 0;
    padding: 23px 21px;
  }

  .value-card h3 {
    margin-top: 19px;
  }

  .card-index {
    top: 23px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .quote-panel {
    min-height: 360px;
    padding: 30px;
    border-radius: 24px;
  }

  .quote-panel blockquote {
    font-size: 27px;
  }

  .quote-panel blockquote .quote-tail {
    display: block;
  }

  .why-item {
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }

  .why-num {
    width: 36px;
    height: 36px;
  }

  .join-band {
    padding: 29px 23px;
    border-radius: 24px;
  }

  .join-copy h2 {
    font-size: 33px;
  }

  .join-qr {
    width: 100%;
    max-width: 230px;
  }

  .faq-item summary {
    font-size: 14.5px;
    padding: 20px 0;
  }

  .faq-item p {
    font-size: 12.5px;
  }

  .parent-cta {
    padding: 24px;
    border-radius: 22px;
  }

  .parent-cta .btn {
    width: 100%;
  }

  .parent-cta-side {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .parent-qr {
    width: 100%;
    max-width: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .parent-qr img {
    width: 100%;
    max-width: 160px;
    height: auto;
  }

  .site-footer {
    padding-top: 42px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-top: 32px;
  }

  body.landing {
    padding-bottom: 72px;
  }

  .mobile-cta {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 45;
    display: flex;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(23, 42, 53, 0.1);
    border-radius: 16px;
    background: rgba(255, 254, 250, 0.94);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
  }

  .js .mobile-cta {
    opacity: 0;
    pointer-events: none;
    transform: translateY(110%);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .js .mobile-cta.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-cta .btn {
    flex: 1;
    min-height: 42px;
    padding: 9px;
    font-size: 12px;
  }

  .form-page {
    padding: 18px 0 40px;
  }

  .app-header .brand-word small {
    display: none;
  }

  .app-header .header-security {
    display: none;
  }

  .header-back span {
    display: none;
  }

  .form-layout {
    width: calc(100% - 24px);
    gap: 13px;
  }

  .form-aside {
    padding: 25px 22px;
    border-radius: 22px;
  }

  .form-aside h1 {
    font-size: 28px;
  }

  .form-aside > p {
    font-size: 12px;
  }

  .aside-benefits {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .aside-steps {
    gap: 12px;
    margin-top: 23px;
  }

  .form-card {
    padding: 25px 20px 28px;
    border-radius: 22px;
  }

  .form-card-head h2 {
    font-size: 23px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .field-grid .span-2 {
    grid-column: auto;
  }

  .form-section {
    padding-top: 25px;
  }

  .form-section-title {
    margin-bottom: 17px;
  }

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

  .segmented span {
    width: 100%;
  }

  .form-submit {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .submit-note {
    max-width: none;
    text-align: center;
  }

  .success-wrap {
    width: calc(100% - 24px);
    margin-inline: auto;
    min-height: 480px;
  }

  .success-card {
    padding: 34px 22px;
    border-radius: 24px;
  }

  .success-card h1 {
    font-size: 26px;
  }

  .success-actions {
    flex-direction: column;
  }

  .success-actions .btn {
    width: 100%;
  }

  .login-panel {
    padding: 22px;
  }

  .login-card h2 {
    font-size: 29px;
  }

  .admin-main {
    padding: 16px 13px 35px;
  }

  .admin-topbar h1 {
    font-size: 22px;
  }

  .admin-topbar p {
    display: none;
  }

  .system-chip {
    display: none;
  }

  .live-chip {
    padding: 7px;
  }

  .live-chip span {
    display: none;
  }

  .voice-button {
    width: 34px;
    min-height: 34px;
    padding: 7px;
  }

  .voice-button #voice-label {
    display: none;
  }

  .stat-grid {
    gap: 8px;
  }

  .stat-card {
    padding: 14px;
  }

  .stat-value {
    font-size: 27px;
  }

  .admin-grid {
    gap: 10px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .guide-card {
    min-height: 0;
    gap: 9px;
  }

  .panel-head {
    padding: 13px 14px;
  }

  .mini-row {
    padding: 11px 14px;
  }

  .view-toolbar {
    flex-wrap: wrap;
  }

  .search-box {
    flex-basis: 100%;
    max-width: none;
  }

  .toolbar-spacer {
    display: none;
  }

  .table-wrap {
    overflow: visible;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody tr {
    padding: 12px 14px;
    border-top: 1px solid var(--line);
  }

  .data-table td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
    border: 0;
    text-align: right;
    white-space: normal;
  }

  .data-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 9px;
    font-weight: 600;
    text-align: left;
  }

  .data-table td:first-child {
    padding-top: 0;
  }

  .data-table td:last-child {
    padding-bottom: 0;
  }

  .data-table td.table-empty,
  .data-table td.table-loading {
    display: block;
    text-align: center;
  }

  .data-table td.table-empty::before,
  .data-table td.table-loading::before {
    display: none;
  }

  .data-table .cell-sub {
    text-align: right;
  }

  .qr-card-visual {
    min-height: 250px;
  }

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

  .detail-item.span-2 {
    grid-column: auto;
  }

  .dialog-head,
  .dialog-body {
    padding: 18px;
  }

  .dialog-note {
    padding: 10px 18px 0;
  }

  .dialog-foot {
    padding: 10px 18px 12px;
  }

  .poster-page {
    padding: 90px 10px 30px;
    overflow-x: hidden;
  }

  .poster-toolbar {
    padding: 10px 13px;
  }

  .poster-toolbar-copy span {
    display: none;
  }

  .poster-toolbar-actions .btn {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 10px;
  }

  .poster {
    width: 100%;
    min-height: 0;
    padding: 24px 20px 30px;
  }

  .poster-hero {
    margin-top: 35px;
  }

  .poster h1 {
    font-size: 31px;
  }

  .poster-scan {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 28px;
    padding: 20px;
  }

  .poster-qr {
    width: 170px;
  }

  .poster-qr img {
    width: 145px;
    height: 145px;
  }

  .poster-steps {
    gap: 10px;
    margin-top: 25px;
  }

  .poster-foot {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 30px;
  }

  .legal-card {
    padding: 30px 22px;
    border-radius: 18px;
  }

  .legal-card h1 {
    font-size: 30px;
  }

  .toast {
    right: 12px;
    bottom: 76px;
    left: 12px;
    max-width: none;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 38px;
  }

  .hero-badge b {
    padding: 0 7px;
  }

  .float-pill.two {
    display: none;
  }

  .admin-brand strong {
    font-size: 12px;
  }

  .admin-nav button {
    font-size: 10.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print -------------------------------------------------------------------- */

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  .poster-page {
    padding: 0;
    background: #fff;
  }

  .poster-toolbar,
  .toast {
    display: none !important;
  }

  .poster-stage {
    display: block;
  }

  .poster {
    width: 210mm;
    height: 297mm;
    min-height: 297mm;
    box-shadow: none;
    break-inside: avoid;
  }

  .poster-scan,
  .poster-qr {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
