/* ============================================================
   Victoria Dance School — Design System
   ============================================================ */

/* Fonts are loaded in base.html to avoid duplicate requests. */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:          #07070b;
  --surface:     #0f0f15;
  --surface-2:   #161620;
  --surface-3:   #1c1c28;
  --ink:         #f0f1f5;
  --ink-2:       #c8cad4;
  --muted:       #7c8096;
  --border:      rgba(255,255,255,0.08);
  --border-2:    rgba(255,255,255,0.13);
  --accent:      #c9566a;
  --accent-2:    #d4a574;
  --accent-3:    #7c6af5;
  --accent-soft: rgba(201,86,106,0.15);
  --green:       #22c55e;
  --red:         #ef4444;
  --blue:        #38bdf8;
  --glass:       rgba(255,255,255,0.03);
  --glass-2:     rgba(255,255,255,0.055);
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.35);
  --shadow:      0 8px 32px rgba(0,0,0,0.45);
  --shadow-lg:   0 24px 64px rgba(0,0,0,0.55);
  --ring:        rgba(201,86,106,0.5);
  --r-xs:        8px;
  --r-sm:        12px;
  --r-md:        16px;
  --r-lg:        22px;
  --r-xl:        28px;
  --px:          24px;
  --font:        "Manrope", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-d:      "Plus Jakarta Sans", "Manrope", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:     cubic-bezier(0.4, 0, 1, 1);
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(ellipse 110% 60% at 50% -10%, rgba(201,86,106,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 95% 5%,  rgba(212,165,116,0.07) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 5%  90%, rgba(124,106,245,0.06) 0%, transparent 50%);
  background-attachment: fixed;
}

/* ── Background decorations ─────────────────────────────── */
.bg-noise {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0.055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.bg-grid {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 10%, transparent 65%);
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-d);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 2.8vw, 2.05rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.45rem); }
h4 { font-size: 1rem; font-weight: 600; font-family: var(--font); letter-spacing: 0; }

p { line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }

a { color: var(--ink); text-decoration: none; }

strong { color: var(--ink); font-weight: 600; }

.muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }

/* ── Layout ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--px) 60px;
  position: relative;
  z-index: 1;
}

.stack   { display: flex; flex-direction: column; }
.grid    { display: grid; gap: 16px; }
.grid-2  { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3  { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4  { grid-template-columns: repeat(4, minmax(0,1fr)); }

/* legacy compat */
.grid.two   { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }

.full-bleed {
  width: calc(100% + 2 * var(--px));
  margin-left: calc(-1 * var(--px));
  margin-right: calc(-1 * var(--px));
  border-radius: var(--r-lg);
}

/* ── Topbar / Navigation ────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin: 0 0 32px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-2);
  background: rgba(10,10,16,0.75);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), var(--shadow);
  transition: background 300ms var(--ease);
}

.topbar.scrolled {
  background: rgba(8,8,14,0.92);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-d); font-weight: 700;
  font-size: 1.05rem; letter-spacing: 0;
  color: var(--ink); flex-shrink: 0;
  white-space: nowrap;
}

.brand__text { white-space: nowrap; }

.brand__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff; font-size: 1rem; font-family: var(--font-d);
  box-shadow: 0 4px 14px rgba(201,86,106,0.4);
  flex-shrink: 0;
}

.topbar__nav {
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: center;
}

.topbar__nav a {
  padding: 7px 14px;
  border-radius: var(--r-sm);
  font-size: 0.88rem; font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color 180ms, background 180ms;
}

.topbar__nav a:hover {
  color: var(--ink);
  background: rgba(255,255,255,0.06);
}

.topbar__nav a.active {
  color: var(--ink);
  background: rgba(255,255,255,0.08);
}

.topbar__actions {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}

.user-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--border-2);
  background: rgba(255,255,255,0.04);
  font-size: 0.82rem; color: var(--ink-2);
  white-space: nowrap;
}

.user-chip::before {
  content: "";
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 20px; border-radius: var(--r-sm);
  font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  border: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease), filter 160ms, box-shadow 160ms;
  text-decoration: none;
}

.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #a8404f 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(201,86,106,0.35);
}
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 6px 24px rgba(201,86,106,0.5); }

.btn-secondary {
  background: rgba(255,255,255,0.07);
  color: var(--ink);
  border: 1px solid var(--border-2);
}
.btn-secondary:hover { background: rgba(255,255,255,0.11); }

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); color: var(--ink); }

.btn-danger {
  background: rgba(239,68,68,0.15);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.3);
}
.btn-danger:hover { background: rgba(239,68,68,0.25); }

.btn-sm { padding: 6px 14px; font-size: 0.82rem; border-radius: var(--r-xs); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--r-md); }
.btn-full { width: 100%; }

/* legacy button (form default) */
button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 20px; border-radius: var(--r-sm);
  font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  border: 1px solid var(--border-2);
  background: rgba(255,255,255,0.07);
  color: var(--ink); cursor: pointer; width: 100%;
  transition: transform 160ms var(--ease), filter 160ms, background 160ms;
}
button:hover { background: rgba(255,255,255,0.11); }
button:active { transform: translateY(1px) scale(0.98); }

.btn-light {
  background: linear-gradient(135deg, var(--accent) 0%, #a8404f 100%);
  color: #fff; border: none;
  box-shadow: 0 4px 18px rgba(201,86,106,0.35);
}
.btn-light:hover { filter: brightness(1.1); }

/* ── Forms ──────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }

label {
  font-size: 0.82rem; font-weight: 600;
  color: var(--muted); letter-spacing: 0.03em; text-transform: uppercase;
}

input, textarea, select {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-2);
  background: rgba(0,0,0,0.28);
  color: var(--ink);
  font-family: var(--font); font-size: 0.95rem;
  transition: border-color 180ms, box-shadow 180ms;
  -webkit-appearance: none;
}

input::placeholder, textarea::placeholder { color: var(--muted); }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,86,106,0.2);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237c8096' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

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

/* form spacing */
form > * + * { margin-top: 10px; }
form > label { margin-top: 14px; }
form > label:first-child { margin-top: 0; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--glass-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 22px;
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  transition: transform 220ms var(--ease), box-shadow 220ms, border-color 220ms;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.07);
}

.card--glow:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,86,106,0.2), 0 0 30px rgba(201,86,106,0.08);
}

.card--flat { transition: none; }
.card--flat:hover { transform: none; box-shadow: none; }

/* ── Section ────────────────────────────────────────────── */
.section {
  padding: 24px 26px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}

.section.section-block {
  background:
    radial-gradient(circle at 8% 0%,  rgba(201,86,106,0.08) 0%, transparent 45%),
    radial-gradient(circle at 95% 15%, rgba(212,165,116,0.06) 0%, transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
  margin: 24px 0;
}

.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 18px;
}

.section__head h2, .section__head h3 { margin: 0; }

/* legacy compat */
.section__title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section__title h2 { margin: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ── KPI Cards ──────────────────────────────────────────── */
.kpi {
  border-left: 3px solid var(--accent);
  background: linear-gradient(135deg, rgba(201,86,106,0.08) 0%, rgba(255,255,255,0.02) 100%);
  padding: 18px 20px;
}

.kpi .kpi__label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }
.kpi .value { font-family: var(--font-d); font-size: 2.2rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.kpi .kpi__sub { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }

/* legacy .muted inside kpi */
.kpi > .muted { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }

/* ── Status Tags ────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em;
  white-space: nowrap;
  border: 1px solid transparent;
}

.tag-new      { background: rgba(59,130,246,0.15);  color: #93c5fd; border-color: rgba(59,130,246,0.25); }
.tag-approved { background: rgba(34,197,94,0.15);   color: #86efac; border-color: rgba(34,197,94,0.25); }
.tag-rejected { background: rgba(239,68,68,0.15);   color: #fca5a5; border-color: rgba(239,68,68,0.25); }
.tag-active   { background: rgba(34,197,94,0.15);   color: #86efac; border-color: rgba(34,197,94,0.25); }
.tag-inactive { background: rgba(107,114,128,0.15); color: #9ca3af; border-color: rgba(107,114,128,0.25); }
.tag-event    { background: rgba(212,165,116,0.15); color: #fcd9a0; border-color: rgba(212,165,116,0.25); }
.tag-news     { background: rgba(124,106,245,0.15); color: #c4b5fd; border-color: rgba(124,106,245,0.25); }

/* legacy status-tag */
.status-tag   { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.status-new      { background: rgba(59,130,246,0.15);  color: #93c5fd; border-color: rgba(59,130,246,0.25); }
.status-approved { background: rgba(34,197,94,0.15);   color: #86efac; border-color: rgba(34,197,94,0.25); }
.status-rejected { background: rgba(239,68,68,0.15);   color: #fca5a5; border-color: rgba(239,68,68,0.25); }

/* ── Flash Messages ─────────────────────────────────────── */
.flash {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-2);
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(16px);
  font-size: 0.92rem; font-weight: 500;
  animation: slideDown 300ms var(--ease);
}

.flash::before {
  content: ""; display: block; width: 8px; height: 8px;
  border-radius: 50%; flex-shrink: 0;
}

.flash--ok {
  border-color: rgba(34,197,94,0.35);
  background: rgba(34,197,94,0.08);
  color: #bbf7d0;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.06);
}
.flash--ok::before { background: var(--green); box-shadow: 0 0 8px var(--green); }

.flash--error {
  border-color: rgba(239,68,68,0.35);
  background: rgba(239,68,68,0.08);
  color: #fecaca;
  box-shadow: 0 0 0 4px rgba(239,68,68,0.06);
}
.flash--error::before { background: var(--red); box-shadow: 0 0 8px var(--red); }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Lists ──────────────────────────────────────────────── */
.list { list-style: none; }

.list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.92rem; color: var(--ink-2);
}

.list li:last-child { border-bottom: none; }

.list li form { margin: 0; }
.list li form > * { margin: 0; }
.list li button { width: auto; padding: 5px 12px; font-size: 0.8rem; }

/* ── Progress Bar ───────────────────────────────────────── */
.progress {
  height: 6px; border-radius: 999px;
  background: rgba(255,255,255,0.07); overflow: hidden;
}

.progress > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 600ms var(--ease);
}

/* ── Pill / Badge ───────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--border-2);
  background: rgba(255,255,255,0.05);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin: 0 6px 6px 0;
}

/* ── Divider ────────────────────────────────────────────── */
.divider {
  margin: 32px 0; padding: 12px 0;
  text-align: center; position: relative;
}

.divider::before, .divider::after {
  content: ""; position: absolute; top: 50%;
  width: 40%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,86,106,0.4), transparent);
}
.divider::before { left: 0; }
.divider::after  { right: 0; }

.divider span {
  display: inline-block; padding: 6px 16px;
  border-radius: 999px; border: 1px solid var(--border-2);
  background: rgba(12,12,18,0.7);
  backdrop-filter: blur(12px);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-2);
  margin-bottom: 32px;
  box-shadow: var(--shadow-lg);
}

.hero--overlay {
  min-height: min(80vh, 740px);
  display: flex; align-items: flex-end;
}

.hero__inner {
  width: 100%;
  padding: clamp(28px, 5vw, 60px) clamp(24px, 4vw, 52px);
  background: linear-gradient(180deg, transparent 0%, rgba(5,5,10,0.5) 30%, rgba(5,5,10,0.92) 100%);
  border-radius: inherit;
}

.hero__content { max-width: 660px; position: relative; z-index: 1; }

.hero__eyebrow {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.06; margin-bottom: 18px;
  color: #fff;
}

.hero__lead {
  color: rgba(240,241,245,0.85);
  font-size: 1.05rem; line-height: 1.65;
  max-width: 520px;
}

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

.hero-actions a, .hero-actions button { width: auto; }

/* ── Video Background ───────────────────────────────────── */
body.has-video-bg { background: #05050a; }

.site-video-bg {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}

.site-video-bg__video {
  position: absolute; left: 50%; top: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate3d(-50%, calc(-50% + var(--py,0px)), 0);
  object-fit: cover;
  filter: saturate(0.88) contrast(1.05) brightness(0.9);
}

.site-video-bg__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(0,0,0,0.1), transparent 50%),
    linear-gradient(180deg, rgba(5,5,10,0.35) 0%, rgba(5,5,10,0.72) 50%, rgba(4,4,8,0.92) 100%);
}

body.has-video-bg .bg-noise,
body.has-video-bg .bg-grid { z-index: 1; }
body.has-video-bg .container { z-index: 2; }
body.has-video-bg .section.section-block {
  background: rgba(8,8,14,0.75);
  backdrop-filter: blur(18px) saturate(140%);
}

@supports (-webkit-touch-callout: none) {
  .site-video-bg__video { transform: translate(-50%, -50%); }
}

/* ── Teacher / Showcase ─────────────────────────────────── */
.teacher-card {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
  overflow: hidden;
}

.showcase-split {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,0.8fr);
  gap: 24px; align-items: stretch;
}

.showcase-copy {
  display: flex; flex-direction: column; justify-content: center;
}

.showcase-copy__title { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom: 12px; }
.showcase-copy__text  { color: var(--muted); line-height: 1.7; }

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

.media-frame {
  margin: 0; padding: 10px;
  border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  min-height: 200px; overflow: hidden;
}

.media-frame img {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: min(70vh, 660px);
  object-fit: contain; object-position: center;
  border-radius: calc(var(--r-sm) - 2px);
}

.media-frame--tall { min-height: 340px; }

/* ── Program / Schedule Cards ───────────────────────────── */
.program-card {
  border-left: 3px solid var(--accent);
  background: linear-gradient(135deg, rgba(201,86,106,0.06) 0%, rgba(255,255,255,0.02) 100%);
}

.program-card .day-time {
  font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent-2); margin-bottom: 8px;
}

.program-card h4 { font-size: 1rem; margin-bottom: 4px; }
.program-card .coach { font-size: 0.82rem; color: var(--muted); margin-bottom: 14px; }

/* ── Horizontal scroll cards ────────────────────────────── */
.cards-scroll {
  display: grid; gap: 14px; margin-top: 12px;
}

.cards-scroll__item { width: auto; }

/* ── Quote / Review ─────────────────────────────────────── */
.quote {
  position: relative;
}

.quote::before {
  content: "\201C";
  position: absolute; top: 12px; left: 16px;
  font-family: var(--font-d); font-size: 3rem;
  color: var(--accent); opacity: 0.25; line-height: 1;
  pointer-events: none;
}

.quote p { padding-left: 8px; }

.stars {
  display: flex; gap: 3px; margin-bottom: 8px;
}

.star { color: var(--accent-2); font-size: 0.85rem; }
.star.empty { color: var(--border-2); }

/* ── Cabinet Header ─────────────────────────────────────── */
.cabinet-header {
  background:
    radial-gradient(circle at 0% 0%, rgba(201,86,106,0.18), transparent 45%),
    linear-gradient(130deg, #13131e, #0a0a12);
  border-radius: var(--r-xl);
  padding: 28px 30px;
  margin-bottom: 20px;
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow);
}

.cabinet-header h1 { color: #fff; margin-bottom: 6px; }
.cabinet-header p  { color: rgba(240,241,245,0.7); margin: 0; }

/* ── Signup item ────────────────────────────────────────── */
.signup-item {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
  margin-bottom: 10px;
}

.signup-item:last-child { margin-bottom: 0; }

/* ── Admin Shell ────────────────────────────────────────── */
.admin-shell {
  display: grid;
  grid-template-columns: 240px minmax(0,1fr);
  gap: 24px; align-items: start;
}

.admin-shell__aside {
  position: sticky; top: 80px; align-self: start;
  border-left: 3px solid var(--accent);
  padding: 20px 18px;
}

.admin-shell__title {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}

.admin-shell__nav { list-style: none; }

.admin-shell__nav a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: var(--r-sm);
  font-size: 0.88rem; font-weight: 600;
  color: var(--muted);
  transition: color 160ms, background 160ms;
  margin-bottom: 2px;
}

.admin-shell__nav a:hover {
  color: var(--ink); background: rgba(255,255,255,0.06);
}

.admin-shell__nav a.active {
  color: var(--ink); background: rgba(201,86,106,0.12);
  border-left: 2px solid var(--accent); padding-left: 8px;
}

.admin-shell__nav .nav-icon {
  width: 16px; height: 16px; opacity: 0.7; flex-shrink: 0;
}

.admin-shell__main { min-width: 0; }

/* ── Calendar ───────────────────────────────────────────── */
#calendar {
  background: var(--surface);
  padding: 14px; border-radius: var(--r-md);
  border: 1px solid var(--border);
}

#calendar.fc {
  --fc-border-color: rgba(255,255,255,0.08);
  --fc-page-bg-color: transparent;
  --fc-neutral-bg-color: rgba(255,255,255,0.04);
  --fc-neutral-text-color: var(--muted);
  --fc-button-text-color: var(--ink);
  --fc-button-bg-color: rgba(255,255,255,0.07);
  --fc-button-border-color: rgba(255,255,255,0.12);
  --fc-button-hover-bg-color: rgba(255,255,255,0.11);
  --fc-button-hover-border-color: rgba(255,255,255,0.18);
  --fc-today-bg-color: rgba(201,86,106,0.12);
  --fc-event-text-color: #fff;
}

/* ── Pagination ─────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0;
}

.pagination a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: var(--r-sm);
  font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--border-2);
  background: rgba(255,255,255,0.05);
  color: var(--ink-2);
  transition: background 160ms, color 160ms;
}

.pagination a:hover { background: rgba(255,255,255,0.09); color: var(--ink); }

/* ── Map skeleton ───────────────────────────────────────── */
.map-skeleton {
  height: 220px; border-radius: var(--r-md);
  border: 1px dashed rgba(255,255,255,0.14);
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.85rem;
}

/* ── Toolbar ────────────────────────────────────────────── */
.toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

.toolbar a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--r-sm);
  font-size: 0.88rem; font-weight: 600;
  color: var(--muted);
  transition: color 160ms, background 160ms;
}

.toolbar a:hover { color: var(--ink); background: rgba(255,255,255,0.06); }

.toolbar__cta {
  background: linear-gradient(135deg, var(--accent), #a8404f) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(201,86,106,0.35);
  border-radius: var(--r-sm);
}

/* ── Animations ─────────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  transition-delay: var(--d, 0ms);
}

[data-animate].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Title letter reveal */
.title-reveal { display: inline-block; }

.title-reveal .char {
  display: inline-block;
  opacity: 0; transform: translateY(12px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

[data-animate].is-in .title-reveal .char,
.cabinet-header .title-reveal .char {
  opacity: 1; transform: translateY(0);
  transition-delay: calc(var(--d, 0ms) + (var(--i, 0) * 14ms));
}

/* Fade in up utility */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in { animation: fadeInUp 500ms var(--ease) both; }

/* ── Bottom Nav (mobile) ────────────────────────────────── */
.bottom-nav { display: none; }

.bottom-nav__item {
  position: relative; user-select: none;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; padding: 10px 6px;
  border-radius: 12px;
  color: var(--muted); font-size: 0.7rem; font-weight: 600;
  background: rgba(255,255,255,0.04);
  transition: color 160ms, background 160ms;
}

.bottom-nav__item:hover { color: var(--ink); background: rgba(255,255,255,0.08); }

.bottom-nav__item svg { width: 20px; height: 20px; }

.bottom-nav__cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  color: #fff !important;
}

.bottom-nav__label {
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ── Focus styles ───────────────────────────────────────── */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-animate] { opacity: 1; transform: none; transition: none; }
  .card, button { transition: none; }
  .title-reveal .char { opacity: 1; transform: none; transition: none; }
  .site-video-bg__video { transform: translate(-50%, -50%) !important; }
  .animate-in { animation: none; }
}

/* ── Hover: no-hover devices ────────────────────────────── */
@media (hover: none) {
  .card:hover { transform: none; box-shadow: none; }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .admin-shell {
    grid-template-columns: 200px minmax(0,1fr);
  }
}

@media (max-width: 900px) {
  :root { --px: 16px; }

  .grid-2, .grid-3, .grid-4,
  .grid.two, .grid.three { grid-template-columns: 1fr; }

  .topbar__nav { display: none; }

  .topbar {
    flex-wrap: wrap;
    padding: 10px 14px;
  }

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

  .admin-shell__aside {
    position: static;
  }

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

  .teacher-photos {
    grid-template-columns: 1fr;
  }

  .media-frame--tall { min-height: 260px; }

  .hero--overlay { min-height: min(72vh, 620px); align-items: flex-end; }
  .hero__inner { padding: 24px 20px 30px; }
  .hero__content { max-width: none; }

  .hero-actions { flex-direction: column; }
  .hero-actions a, .hero-actions button { width: 100%; }

  .cabinet-header { padding: 20px 18px; }

  /* Horizontal scroll on mobile */
  .cards-scroll {
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cards-scroll::-webkit-scrollbar { display: none; }
  .cards-scroll__item { scroll-snap-align: start; }

  /* Bottom nav */
  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 10px; right: 10px; bottom: 10px;
    background: rgba(18,18,26,0.72);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px; padding: 8px; gap: 6px;
    z-index: 200;
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  }

  body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  @supports (padding: max(0px)) {
    .bottom-nav { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  }

  .container { padding: 0 var(--px) 20px; }
  .topbar { margin-bottom: 20px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.4rem; }

  .hero h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }

  .section { padding: 16px; border-radius: var(--r-md); }
  .card    { padding: 16px 18px; }

  .cabinet-header { padding: 16px; border-radius: var(--r-lg); }

  .bottom-nav { left: 8px; right: 8px; bottom: 8px; border-radius: 16px; }
}

/* ── Auth pages ─────────────────────────────────────────── */
.auth-wrap {
  min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 0;
}

.auth-card {
  width: 100%; max-width: 420px;
  background: var(--glass-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-lg);
}

.auth-card h1 { font-size: 1.8rem; margin-bottom: 6px; }
.auth-card .auth-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }
.auth-card form > * + * { margin-top: 12px; }
.auth-card .auth-footer { margin-top: 20px; text-align: center; font-size: 0.88rem; color: var(--muted); }
.auth-card .auth-footer a { color: var(--accent); font-weight: 600; }
.auth-card .auth-footer a:hover { text-decoration: underline; }

/* ── News page ──────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px; margin-top: 16px;
}

.news-card { display: flex; flex-direction: column; }
.news-card__body { flex: 1; }
.news-card__meta { font-size: 0.78rem; color: var(--muted); margin-top: 10px; }
.news-card__date { font-size: 0.78rem; color: var(--muted); }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ============================================================
   NEW ADDITIONS — v2
   ============================================================ */

/* ── Telegram button ────────────────────────────────────── */
.btn-tg {
  background: #229ED9;
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(34,158,217,0.35);
}
.btn-tg:hover { filter: brightness(1.1); box-shadow: 0 6px 22px rgba(34,158,217,0.5); }
.btn-tg svg { flex-shrink: 0; }

/* ── Stats strip ────────────────────────────────────────── */
.stats-strip {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 24px;
  margin-bottom: 24px;
}
.stats-strip__item {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 28px; gap: 4px;
}
.stats-strip__num {
  font-family: var(--font-d); font-size: 1.8rem; font-weight: 700;
  color: var(--ink); line-height: 1;
}
.stats-strip__label { font-size: 0.78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.stats-strip__sep { width: 1px; height: 40px; background: var(--border-2); }

@media (max-width: 600px) {
  .stats-strip { gap: 0; padding: 12px 8px; }
  .stats-strip__item { padding: 6px 14px; }
  .stats-strip__num { font-size: 1.4rem; }
  .stats-strip__sep { height: 30px; }
}

/* ── Schedule grid (responsive) ─────────────────────────── */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px; margin-top: 12px;
}

/* ── Reviews horizontal scroll ──────────────────────────── */
.reviews-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px; margin-top: 12px;
}

/* ── FAQ accordion ──────────────────────────────────────── */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px; margin-top: 12px;
}

.faq-item { cursor: pointer; }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__q { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); flex-shrink: 0; transition: transform 200ms; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__a { margin-top: 10px; font-size: 0.9rem; line-height: 1.65; }

/* ── Hero pills ─────────────────────────────────────────── */
.hero__pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

/* ── Auth TG block ──────────────────────────────────────── */
.auth-tg-block { margin-bottom: 20px; text-align: center; }
.auth-tg-label { font-size: 0.8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border-2); }
.auth-divider span { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }

/* ── Form hint ──────────────────────────────────────────── */
.form-hint { font-size: 0.75rem; color: var(--muted); margin-top: 3px; }

/* ── Section label ──────────────────────────────────────── */
.section-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px;
}

/* ── Empty state ────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 16px; text-align: center; gap: 6px;
}
.empty-state__icon { font-size: 2.4rem; margin-bottom: 6px; }
.empty-state p { color: var(--ink-2); font-size: 0.92rem; }

/* ── Cabinet header v2 ──────────────────────────────────── */
.cab-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.cab-header-left { display: flex; align-items: center; gap: 16px; }
.cab-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-size: 1.4rem; font-weight: 700; color: #fff;
  flex-shrink: 0; box-shadow: 0 4px 16px rgba(201,86,106,0.4);
}
.cab-header-sub { margin-top: 4px; }

/* ── TG badge ───────────────────────────────────────────── */
.tg-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(34,158,217,0.15); color: #7dd3fc;
  border: 1px solid rgba(34,158,217,0.3);
  font-size: 0.75rem; font-weight: 600;
}
.tg-badge--link { text-decoration: none; cursor: pointer; transition: background 160ms; }
.tg-badge--link:hover { background: rgba(34,158,217,0.25); }

/* ── Visits counter ─────────────────────────────────────── */
.cab-visits-counter { text-align: right; }
.cab-visits-counter__label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.cab-visits-counter__num { font-family: var(--font-d); font-size: 2.6rem; font-weight: 700; line-height: 1; color: #fff; }
.cab-visits-counter__total { font-size: 1.2rem; color: rgba(255,255,255,0.4); }
.cab-visits-counter__bar { height: 4px; border-radius: 999px; background: rgba(255,255,255,0.12); margin-top: 6px; overflow: hidden; min-width: 80px; }
.cab-visits-counter__fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; transition: width 600ms var(--ease); }

/* ── Dash tabs ──────────────────────────────────────────── */
.dash-tabs {
  display: flex; gap: 4px; flex-wrap: nowrap;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tab {
  flex: 0 0 auto;
  padding: 7px 16px; border-radius: var(--r-sm);
  font-size: 0.85rem; font-weight: 600; color: var(--muted);
  transition: color 160ms, background 160ms;
  white-space: nowrap;
  text-wrap: nowrap;
}
.dash-tab:hover { color: var(--ink); background: rgba(255,255,255,0.06); }
.dash-tab.active { color: var(--ink); background: rgba(201,86,106,0.15); }

/* ── Signup list ────────────────────────────────────────── */
.signup-list { list-style: none; }
.signup-list__item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.signup-list__item:last-child { border-bottom: none; }
.signup-list__info { display: flex; flex-direction: column; gap: 2px; }
.signup-list__info strong { font-size: 0.9rem; }
.signup-list__info span { font-size: 0.82rem; }

/* ── Chart wrap ─────────────────────────────────────────── */
.chart-wrap { position: relative; }

/* ── Achievements grid ──────────────────────────────────── */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px; margin-top: 4px;
}

.ach-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
  position: relative; overflow: hidden;
  transition: transform 220ms var(--ease), box-shadow 220ms, border-color 220ms;
}
.ach-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.ach-card--done {
  border-color: rgba(34,197,94,0.3);
  background: linear-gradient(135deg, rgba(34,197,94,0.07) 0%, rgba(255,255,255,0.02) 100%);
}
.ach-card--done::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(34,197,94,0.12), transparent 60%);
  pointer-events: none;
}

.ach-card--new {
  animation: achPop 600ms var(--ease) both;
  border-color: rgba(212,165,116,0.5);
  box-shadow: 0 0 0 2px rgba(212,165,116,0.2), 0 8px 32px rgba(212,165,116,0.15);
}

@keyframes achPop {
  0%   { transform: scale(0.88); opacity: 0; }
  60%  { transform: scale(1.04); }
  100% { transform: scale(1); opacity: 1; }
}

.ach-card__icon-wrap {
  position: relative; flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
}
.ach-card--done .ach-card__icon-wrap {
  background: rgba(34,197,94,0.12);
  border-color: rgba(34,197,94,0.25);
}
.ach-card__icon { font-size: 1.5rem; line-height: 1; }
.ach-card__check {
  position: absolute; bottom: -4px; right: -4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green); color: #fff;
  font-size: 0.6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface);
  animation: checkPop 400ms var(--ease) both;
}
@keyframes checkPop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

.ach-card__body { flex: 1; min-width: 0; }
.ach-card__title { font-weight: 700; font-size: 0.9rem; color: var(--ink); margin-bottom: 2px; }
.ach-card__desc { font-size: 0.78rem; margin-bottom: 8px; }
.ach-card__progress-wrap { display: flex; align-items: center; gap: 8px; }
.ach-card__progress {
  flex: 1; height: 5px; border-radius: 999px;
  background: rgba(255,255,255,0.07); overflow: hidden;
}
.ach-card__progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 800ms var(--ease);
}
.ach-card--done .ach-card__progress-fill {
  background: linear-gradient(90deg, var(--green), #4ade80);
}
.ach-card__value { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }

.ach-card__new-badge {
  position: absolute; top: 8px; right: 8px;
  padding: 2px 8px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff; font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  animation: badgePulse 1.5s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,165,116,0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(212,165,116,0); }
}

/* ── Achievement toasts ─────────────────────────────────── */
.ach-toasts {
  position: fixed; bottom: 90px; right: 16px; z-index: 500;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
  animation: toastIn 400ms var(--ease) both;
}
.ach-toasts--hide { animation: toastOut 400ms var(--ease) both; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

.ach-toast {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--r-md);
  background: rgba(18,18,26,0.92);
  border: 1px solid rgba(212,165,116,0.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  backdrop-filter: blur(16px);
  min-width: 220px; max-width: 280px;
}
.ach-toast__icon { font-size: 1.8rem; flex-shrink: 0; }
.ach-toast__title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-2); }
.ach-toast__name { font-size: 0.9rem; font-weight: 600; color: var(--ink); }

/* ── Burger button ──────────────────────────────────────── */
.topbar__burger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  cursor: pointer; padding: 0;
}
.topbar__burger span {
  display: block; width: 18px; height: 2px;
  background: var(--ink-2); border-radius: 2px;
  transition: transform 200ms, opacity 200ms;
}

/* ── Mobile menu ────────────────────────────────────────── */
.mobile-menu {
  display: none;
  flex-direction: column; gap: 4px;
  padding: 12px 16px 16px;
  background: rgba(12,12,20,0.96);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  margin-bottom: 16px;
  backdrop-filter: blur(20px);
}
.mobile-menu a {
  padding: 10px 12px; border-radius: var(--r-sm);
  font-size: 0.95rem; font-weight: 600; color: var(--muted);
  white-space: nowrap;
  transition: color 160ms, background 160ms;
}
.mobile-menu a:hover { color: var(--ink); background: rgba(255,255,255,0.06); }
.mobile-menu__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border); }

@media (max-width: 900px) {
  .topbar__burger { display: flex; }
  .mobile-menu.is-open { display: flex; }
}

/* ── Responsive achievements ────────────────────────────── */
@media (max-width: 600px) {
  .achievements-grid { grid-template-columns: 1fr; }
  .ach-toasts { bottom: 80px; right: 10px; left: 10px; }
  .ach-toast { max-width: none; }
  .dash-tabs { gap: 2px; padding: 4px; }
  .dash-tab { padding: 6px 10px; font-size: 0.78rem; }
  .stats-strip__item { padding: 4px 10px; }
  .cab-header-left { gap: 10px; }
  .cab-avatar { width: 42px; height: 42px; font-size: 1.1rem; }
}

/* ── Hero title — одна строка ───────────────────────────── */
.hero__title-nowrap {
  white-space: nowrap;
  text-wrap: nowrap;
  font-size: clamp(1.3rem, 3.8vw, 3.4rem);
}
@media (max-width: 480px) {
  .hero__title-nowrap {
    white-space: nowrap;
    text-wrap: nowrap;
    font-size: clamp(1.12rem, 5.3vw, 1.85rem);
  }
}

/* ── Dashboard quick board ─────────────────────────────── */
.quick-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quick-card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.03);
  padding: 14px 16px;
  min-height: 112px;
}

.quick-card h3 {
  font-size: 0.96rem;
  margin-bottom: 6px;
}

.quick-card p {
  font-size: 0.86rem;
  color: var(--ink-2);
}

.status-banner__meta {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.76rem;
  color: var(--muted);
}

.status-banner--warning {
  border-color: rgba(212,165,116,0.35);
  background: rgba(212,165,116,0.11);
}

.status-banner--danger {
  border-color: rgba(239,68,68,0.38);
  background: rgba(239,68,68,0.11);
}

.upcoming-card {
  border-color: rgba(56,189,248,0.35);
  background: rgba(56,189,248,0.09);
}

.dash-inline-divider {
  margin: 12px 0;
  border-top: 1px solid var(--border);
}

.request-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.request-chip--new {
  background: rgba(59,130,246,0.16);
  color: #93c5fd;
  border: 1px solid rgba(59,130,246,0.28);
}

.request-chip--in_progress {
  background: rgba(212,165,116,0.16);
  color: #fcd9a0;
  border: 1px solid rgba(212,165,116,0.32);
}

.request-chip--approved {
  background: rgba(34,197,94,0.16);
  color: #86efac;
  border: 1px solid rgba(34,197,94,0.28);
}

.request-chip--rejected,
.request-chip--closed {
  background: rgba(239,68,68,0.16);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.28);
}

/* ── Admin/CRM modules ─────────────────────────────────── */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-kpi-grid--compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.kpi--warn {
  border-left-color: var(--accent-2);
  background: linear-gradient(135deg, rgba(212,165,116,0.10) 0%, rgba(255,255,255,0.02) 100%);
}

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

.queue-item {
  align-items: center;
}

.queue-item .muted {
  margin-top: 2px;
}

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

.crm-mini {
  padding: 14px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}

.crm-mini__label {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.crm-mini__value {
  margin-top: 6px;
  font-family: var(--font-d);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.crm-mini__hint {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.crm-user-note {
  font-size: 0.8rem;
  margin-top: 2px;
}

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

@media (max-width: 1100px) {
  .admin-kpi-grid,
  .admin-kpi-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .quick-board,
  .queue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .quick-board,
  .admin-kpi-grid,
  .admin-kpi-grid--compact,
  .queue-grid,
  .crm-meta-grid,
  .client-metrics {
    grid-template-columns: 1fr;
  }
}
