/* ===========================================================================
   Maanwin Game — Design System
   Premium dark navy / deep purple, white type, violet + cyan accents.
   Mobile-first. Lightweight transitions only.
   =========================================================================== */

/* ------------------------------------------------------------- 1. Tokens */
:root {
  /* Surfaces */
  --bg-page: #070a18;
  --bg-deep: #0a0e22;
  --surface-1: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --surface-solid: #111634;
  --border-soft: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Text */
  --text: #ffffff;
  --text-muted: #b9c0da;
  --text-dim: #8b93b3;

  /* Accents */
  --violet: #7c5cff;
  --violet-soft: #a78bfa;
  --cyan: #22d3ee;
  --cyan-soft: #67e8f9;
  --red: #fb5c7d;
  --green: #34d399;
  --amber: #fbbf24;

  /* Effects */
  --grad-brand: linear-gradient(120deg, #7c5cff 0%, #22d3ee 100%);
  --grad-brand-soft: linear-gradient(120deg, rgba(124, 92, 255, 0.22), rgba(34, 211, 238, 0.16));
  --shadow-sm: 0 2px 10px rgba(3, 6, 20, 0.5);
  --shadow-md: 0 14px 34px rgba(3, 6, 20, 0.55);
  --shadow-lg: 0 26px 60px rgba(3, 6, 20, 0.62);
  --glow-violet: 0 12px 30px rgba(124, 92, 255, 0.32);

  /* Geometry */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-pill: 999px;

  --container: 1180px;
  --gutter: 18px;
  --header-h: 68px;

  --font: "Inter", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.16s var(--ease);
  --t-base: 0.24s var(--ease);
}

/* ------------------------------------------------------------ 2. Reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg-page);
  background-image:
    radial-gradient(1000px 620px at 82% -8%, rgba(124, 92, 255, 0.20), transparent 62%),
    radial-gradient(820px 520px at 6% 4%, rgba(34, 211, 238, 0.13), transparent 60%),
    radial-gradient(760px 700px at 50% 108%, rgba(99, 60, 220, 0.16), transparent 66%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

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

/* The HTML `hidden` attribute must always win, including over the
   display rules set by component classes (e.g. .session-pill). */
[hidden] { display: none !important; }
a { color: var(--cyan-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: 0.4em; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* -------------------------------------------------------- 3. Utilities */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.skip-link {
  position: absolute; top: -60px; left: 12px; z-index: 999;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--surface-solid); color: #fff;
  border: 1px solid var(--border-strong);
  transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; text-decoration: none; }

.section { padding: 62px 0; position: relative; }
.section--tight { padding: 44px 0; }
.section--alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.022), rgba(255,255,255,0));
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-muted); margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan-soft);
  background: rgba(34, 211, 238, 0.09);
  border: 1px solid rgba(34, 211, 238, 0.24);
  padding: 6px 13px; border-radius: var(--r-pill);
  margin-bottom: 15px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}

.section-title { font-size: clamp(1.5rem, 4.6vw, 2.2rem); margin-bottom: 12px; }
.lead { font-size: 1.03rem; color: var(--text-muted); }

.text-grad {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ----------------------------------------------------------- 4. Buttons */
.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px;
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  line-height: 1.2;
  color: #fff; text-align: center;
  background: var(--btn-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-base),
              background var(--t-base), border-color var(--t-base), opacity var(--t-fast);
  -webkit-tap-highlight-color: transparent;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary {
  --btn-bg: var(--grad-brand);
  border-color: transparent;
  box-shadow: var(--glow-violet);
}
.btn--primary:hover { box-shadow: 0 16px 38px rgba(124, 92, 255, 0.45); }

.btn--ghost { --btn-bg: rgba(255,255,255,0.06); }
.btn--ghost:hover { background: rgba(255,255,255,0.11); }

.btn--telegram {
  --btn-bg: linear-gradient(120deg, #229ed9 0%, #22d3ee 100%);
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(34, 158, 217, 0.3);
}
.btn--telegram:hover { box-shadow: 0 16px 38px rgba(34, 158, 217, 0.42); }

.btn--block { width: 100%; }
.btn--sm { padding: 10px 17px; font-size: 0.88rem; }
.btn--lg { padding: 15px 28px; font-size: 1rem; }

.btn-row { display: flex; flex-direction: column; gap: 12px; }

/* ------------------------------------------------------------ 5. Header */
.site-header {
  position: sticky; top: 0; z-index: 120;
  background: rgba(8, 11, 26, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base), box-shadow var(--t-base);
}
.site-header.is-scrolled,
.site-header.is-open {
  border-bottom-color: var(--border-soft);
  box-shadow: 0 6px 26px rgba(3, 6, 20, 0.5);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; min-height: var(--header-h);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 700; letter-spacing: -0.01em;
  text-decoration: none !important; flex: none;
}
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 1.02rem; }
.brand-tag { font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 11px;
  background: var(--surface-1); border: 1px solid var(--border-soft);
  border-radius: var(--r-md); cursor: pointer; flex: none;
}
.nav-toggle:hover { background: var(--surface-2); }
.nav-toggle .bar {
  display: block; height: 2px; width: 100%; border-radius: 2px;
  background: #fff; transition: transform var(--t-base), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile: slide-down panel */
.primary-nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 18px var(--gutter) 30px;
  background: rgba(9, 12, 28, 0.985);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-lg);
  transform: translateY(-14px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
}
.primary-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }

.nav-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-link {
  display: block; padding: 13px 14px;
  color: var(--text-muted); font-weight: 600; font-size: 0.97rem;
  border-radius: var(--r-md); text-decoration: none !important;
  border: 1px solid transparent;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.nav-link:hover, .nav-link.is-active {
  color: #fff; background: var(--surface-1); border-color: var(--border-soft);
}

.nav-actions { display: flex; flex-direction: column; gap: 10px; }
.nav-actions .btn { width: 100%; }

.session-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 8px 7px 14px; border-radius: var(--r-pill);
  background: var(--surface-1); border: 1px solid var(--border-soft);
  font-size: 0.86rem; color: var(--text-muted); max-width: 100%;
}
.session-pill strong { color: #fff; font-weight: 600; }
.session-pill .btn { padding: 7px 14px; font-size: 0.8rem; }
.session-name { max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --------------------------------------------------------------- 6. Hero */
.hero { position: relative; padding: 46px 0 56px; overflow: hidden; }
.hero-glow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-glow span {
  position: absolute; border-radius: 50%; filter: blur(72px); opacity: 0.5;
}
.hero-glow .g1 { width: 300px; height: 300px; background: #7c5cff; top: -90px; right: -70px; }
.hero-glow .g2 { width: 240px; height: 240px; background: #22d3ee; bottom: -110px; left: -80px; opacity: 0.32; }
.hero-glow .g3 { width: 190px; height: 190px; background: #fb5c7d; top: 42%; left: 46%; opacity: 0.16; }
.hero-glow .g4 { width: 170px; height: 170px; background: #34d399; bottom: 8%; right: 8%; opacity: 0.14; }

.hero-grid { position: relative; display: grid; gap: 38px; }

.hero h1 {
  font-size: clamp(2rem, 8vw, 3.4rem);
  letter-spacing: -0.03em; margin-bottom: 14px;
}
.hero-sub {
  font-size: clamp(1rem, 2.6vw, 1.14rem);
  color: var(--text); font-weight: 500; margin-bottom: 12px;
}
.hero-support { color: var(--text-muted); font-size: 0.97rem; max-width: 62ch; }

.hero-cta { margin-top: 26px; }
.hero-note {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 22px; padding: 13px 16px;
  background: rgba(251, 191, 36, 0.07);
  border: 1px solid rgba(251, 191, 36, 0.26);
  border-radius: var(--r-md);
  font-size: 0.85rem; color: #f7e3b4; max-width: 66ch;
}
.hero-note svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--amber); }

/* Abstract colour-band visual (no cash / cars / chips) */
.hero-visual {
  position: relative; padding: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,0.075), rgba(255,255,255,0.02));
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.hero-visual::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  padding: 1px; background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.4; pointer-events: none;
}
.visual-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 18px;
}
.visual-head h3 { font-size: 0.95rem; margin: 0; }
.visual-badge {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--r-pill);
  background: rgba(124, 92, 255, 0.18); border: 1px solid rgba(124, 92, 255, 0.34);
  color: var(--violet-soft); white-space: nowrap;
}

.color-bands { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.color-band {
  position: relative; border-radius: var(--r-lg);
  padding: 16px 15px 15px; min-height: 108px;
  border: 1px solid var(--border-soft);
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.color-band::after {
  content: ""; position: absolute; width: 96px; height: 96px; border-radius: 50%;
  right: -34px; top: -34px; filter: blur(20px); opacity: 0.55;
}
.color-band b { position: relative; z-index: 1; font-size: 0.9rem; }
.color-band small { position: relative; z-index: 1; color: var(--text-dim); font-size: 0.72rem; }
.band--violet { background: rgba(124, 92, 255, 0.13); }
.band--violet::after { background: #7c5cff; }
.band--cyan { background: rgba(34, 211, 238, 0.11); }
.band--cyan::after { background: #22d3ee; }
.band--red { background: rgba(251, 92, 125, 0.11); }
.band--red::after { background: #fb5c7d; }
.band--green { background: rgba(52, 211, 153, 0.11); }
.band--green::after { background: #34d399; }

.visual-foot {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--border-soft);
  font-size: 0.76rem; color: var(--text-dim);
}

/* --------------------------------------------------------------- 7. Cards */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  padding: 22px 20px;
  background: var(--surface-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), border-color var(--t-base), background var(--t-base);
}
.card:hover { transform: translateY(-2px); border-color: var(--border-strong); background: var(--surface-2); }
.card h3 { font-size: 1.06rem; margin-bottom: 8px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { color: var(--text-muted); font-size: 0.93rem; }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: var(--r-md);
  background: var(--grad-brand-soft);
  border: 1px solid var(--border-soft);
  color: var(--cyan-soft);
}
.icon-badge svg { width: 21px; height: 21px; }
.icon-badge--violet { color: var(--violet-soft); }
.icon-badge--red { color: var(--red); }
.icon-badge--green { color: var(--green); }

.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad-brand); color: #fff;
  font-size: 0.86rem; font-weight: 700; margin-bottom: 13px;
  box-shadow: var(--glow-violet);
}

/* ------------------------------------------------------------- 8. Notice */
.notice {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 15px 17px; border-radius: var(--r-md);
  font-size: 0.9rem; line-height: 1.6;
  margin-bottom: 16px;
}
.notice svg { width: 19px; height: 19px; flex: none; margin-top: 2px; }
.notice p:last-child { margin-bottom: 0; }
.notice strong { display: block; margin-bottom: 3px; }
.notice--info { background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.24); color: #cdf3fb; }
.notice--info svg { color: var(--cyan); }
.notice--warn { background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.26); color: #f7e6bd; }
.notice--warn svg { color: var(--amber); }
.notice--danger { background: rgba(251, 92, 125, 0.09); border: 1px solid rgba(251, 92, 125, 0.28); color: #ffd3dd; }
.notice--danger svg { color: var(--red); }
.notice--ok { background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.26); color: #c6f6e2; }
.notice--ok svg { color: var(--green); }

/* Owner-supplied placeholder chip */
.is-placeholder {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 2px 10px; border-radius: var(--r-sm);
  background: rgba(251, 191, 36, 0.12);
  border: 1px dashed rgba(251, 191, 36, 0.5);
  color: #f5d68a !important; font-style: normal;
  font-size: 0.84em; font-weight: 500;
  word-break: break-word;
}
.is-placeholder::before { content: "⚑"; font-size: 0.9em; opacity: 0.85; }

/* ------------------------------------------------------------ 9. Telegram */
.telegram-panel {
  position: relative; overflow: hidden;
  padding: 30px 22px; border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(34, 158, 217, 0.15), rgba(124, 92, 255, 0.13));
  border: 1px solid rgba(34, 211, 238, 0.26);
  box-shadow: var(--shadow-md);
}
.telegram-panel::after {
  content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%;
  background: rgba(34, 211, 238, 0.22); filter: blur(70px);
  right: -70px; top: -80px; pointer-events: none;
}
.telegram-inner { position: relative; display: grid; gap: 22px; }
.telegram-panel h2 { font-size: clamp(1.4rem, 5vw, 1.95rem); margin-bottom: 10px; }
.telegram-panel p { color: #d6defa; margin-bottom: 0; }
.telegram-actions { display: flex; flex-direction: column; gap: 12px; }
.telegram-note {
  margin-top: 18px; padding: 12px 15px;
  background: rgba(7, 10, 24, 0.5);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  font-size: 0.82rem; color: #ffe6ad;
}

/* ---------------------------------------------------------- 10. Forms */
.auth-shell {
  display: grid; gap: 28px;
  padding: 44px 0 70px;
  align-items: start;
}
.auth-card {
  padding: 26px 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.028));
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
}
.auth-card h1 { font-size: clamp(1.45rem, 5.4vw, 1.9rem); margin-bottom: 8px; }
.auth-card > p.sub { color: var(--text-muted); font-size: 0.93rem; }

.form-field { margin-bottom: 17px; }
.form-label {
  display: block; margin-bottom: 7px;
  font-size: 0.86rem; font-weight: 600; color: #e4e8f7;
}
.req { color: var(--red); }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > svg.leading {
  position: absolute; left: 14px; width: 17px; height: 17px;
  color: var(--text-dim); pointer-events: none;
}
.input, .select, textarea.input {
  width: 100%; padding: 13px 15px;
  font-family: inherit; font-size: 0.95rem; color: #fff;
  background: rgba(6, 9, 22, 0.62);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  -webkit-appearance: none; appearance: none;
}
.input-wrap > svg.leading ~ .input { padding-left: 42px; }
.input::placeholder { color: #6e7699; }
.input:hover { border-color: rgba(255,255,255,0.28); }
.input:focus, .select:focus, textarea.input:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(6, 9, 22, 0.82);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}
.input-wrap.has-toggle .input { padding-right: 82px; }

.toggle-btn {
  position: absolute; right: 7px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 11px; font-family: inherit; font-size: 0.76rem; font-weight: 700;
  color: var(--cyan-soft); background: rgba(34, 211, 238, 0.11);
  border: 1px solid rgba(34, 211, 238, 0.28); border-radius: var(--r-sm);
  cursor: pointer; transition: background var(--t-fast);
}
.toggle-btn:hover { background: rgba(34, 211, 238, 0.2); }
.toggle-btn svg { width: 13px; height: 13px; }

.hint { display: block; margin-top: 6px; font-size: 0.78rem; color: var(--text-dim); }
.field-error { display: none; margin-top: 6px; font-size: 0.79rem; color: #ffb3c2; font-weight: 500; }
.form-field.has-error .field-error { display: block; }
.form-field.has-error .input { border-color: var(--red); box-shadow: 0 0 0 3px rgba(251, 92, 125, 0.14); }

.check-row { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 16px; }
.check-row input[type="checkbox"] {
  flex: none; width: 19px; height: 19px; margin-top: 2px;
  accent-color: #7c5cff; cursor: pointer;
}
.check-row label { font-size: 0.85rem; color: var(--text-muted); cursor: pointer; line-height: 1.55; }

.form-alert {
  display: block; margin-bottom: 16px; padding: 12px 15px;
  border-radius: var(--r-md); font-size: 0.87rem; line-height: 1.55;
}
.form-alert[hidden] { display: none; }
.form-alert.is-error { background: rgba(251, 92, 125, 0.11); border: 1px solid rgba(251, 92, 125, 0.36); color: #ffd3dd; }
.form-alert.is-success { background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.34); color: #c9f7e5; }
.form-alert.is-info { background: rgba(34, 211, 238, 0.09); border: 1px solid rgba(34, 211, 238, 0.3); color: #cdf3fb; }

.form-footer { margin-top: 18px; text-align: center; font-size: 0.89rem; color: var(--text-muted); }

.inline-links {
  display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between;
  margin-bottom: 18px; font-size: 0.85rem;
}
.inline-links a { color: var(--cyan-soft); }

.pw-meter { display: block; margin-top: 6px; font-size: 0.77rem; color: var(--text-dim); }
.pw-meter[data-score="0"] { color: #ff9fb2; }
.pw-meter[data-score="1"] { color: #ffc48a; }
.pw-meter[data-score="2"] { color: #cbd5e1; }
.pw-meter[data-score="3"] { color: var(--green); }

.auth-aside { display: grid; gap: 16px; }
.aside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.aside-list li { display: flex; gap: 12px; align-items: flex-start; }
.aside-list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--cyan); }
.aside-list b { display: block; font-size: 0.92rem; }
.aside-list span { font-size: 0.85rem; color: var(--text-muted); }

/* ------------------------------------------------------- 11. Trust/legal */
.trust-grid { display: grid; gap: 16px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item .icon-badge { margin-bottom: 0; flex: none; }
.trust-item h3 { font-size: 0.99rem; margin-bottom: 4px; }
.trust-item p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0; }

.legal-card {
  padding: 24px 20px; border-radius: var(--r-lg);
  background: var(--surface-1); border: 1px solid var(--border-soft);
}
.legal-card h3 { font-size: 1.02rem; }
.legal-card p, .legal-card li { font-size: 0.9rem; color: var(--text-muted); }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--text-muted); }
.contact-list svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--violet-soft); }
.contact-list b { color: #fff; display: block; font-size: 0.88rem; }

/* ------------------------------------------------------------ 12. Footer */
.site-footer {
  margin-top: 20px;
  border-top: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  padding-top: 46px;
}
.footer-grid { display: grid; gap: 30px; }
.footer-brand p { color: var(--text-muted); font-size: 0.89rem; max-width: 42ch; }
.footer-col h4 {
  font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 14px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--text-muted); font-size: 0.89rem; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  margin-top: 38px; padding: 20px 0 30px;
  border-top: 1px solid var(--border-soft);
  display: grid; gap: 14px;
  font-size: 0.82rem; color: var(--text-dim);
}
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-legal-links a { color: var(--text-dim); }
.age-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px; border-radius: var(--r-pill);
  background: rgba(251, 92, 125, 0.12); border: 1px solid rgba(251, 92, 125, 0.34);
  color: #ffc7d3; font-weight: 700; font-size: 0.74rem; letter-spacing: 0.05em;
}

/* --------------------------------------------------- 13. Legal documents */
.doc-shell { max-width: 860px; margin-inline: auto; padding: 40px 0 66px; }
.doc-shell h1 { font-size: clamp(1.6rem, 6vw, 2.3rem); }
.doc-updated { color: var(--text-dim); font-size: 0.86rem; margin-bottom: 26px; }
.doc-shell h2 { font-size: 1.2rem; margin-top: 34px; scroll-margin-top: 90px; }
.doc-shell h3 { font-size: 1rem; margin-top: 22px; }
.doc-shell p, .doc-shell li { color: var(--text-muted); font-size: 0.94rem; }
.doc-shell strong { color: #eaf0ff; }

.toc {
  padding: 18px 20px; margin-bottom: 30px;
  background: var(--surface-1); border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
}
.toc h2 { margin-top: 0; font-size: 0.8rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-dim); }
.toc ol { margin: 0; padding-left: 1.15em; columns: 1; }
.toc li { margin-bottom: 7px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* --------------------------------------------------------- 14. Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* -------------------------------------------------------- 15. Responsive */
@media (min-width: 600px) {
  .container { padding-inline: 24px; }
  .section { padding: 76px 0; }
  .grid { gap: 20px; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .btn-row .btn { width: auto; }
  .telegram-actions { flex-direction: row; flex-wrap: wrap; }
  .auth-card { padding: 32px 30px; }
  .hero { padding: 62px 0 70px; }
  .color-bands { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 900px) {
  :root { --header-h: 74px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 46px; }
  .hero-visual { padding: 26px; }
  .auth-shell { grid-template-columns: 1.05fr 0.95fr; gap: 46px; padding: 60px 0 84px; }
  .auth-shell--single { grid-template-columns: minmax(0, 520px); justify-content: center; }
  .telegram-inner { grid-template-columns: 1.5fr 1fr; align-items: center; }
  .telegram-actions { justify-content: flex-end; }
  .telegram-panel { padding: 40px 38px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-bottom { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 961px) {
  .nav-toggle { display: none; }
  .primary-nav {
    position: static; inset: auto;
    max-height: none; overflow: visible;
    padding: 0; background: none; border: 0; box-shadow: none;
    transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    flex: 1 1 auto;
  }
  .header-inner { min-height: var(--header-h); }
  .primary-nav { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
  .nav-list { flex-direction: row; align-items: center; gap: 2px; margin: 0; }
  .nav-link {
    padding: 8px 11px; font-size: 0.85rem;
    border-radius: var(--r-md); white-space: nowrap;
  }
  .nav-actions { flex-direction: row; align-items: center; gap: 8px; flex: none; }
  .nav-actions .btn { width: auto; padding: 9px 15px; font-size: 0.85rem; white-space: nowrap; }
  .doc-shell h2 { font-size: 1.32rem; }
  .toc ol { columns: 2; column-gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .btn { display: none !important; }
  .doc-shell p, .doc-shell li { color: #333; }
}

/* ===== 16. Utility classes (extracted from former inline styles so the
   strict Content Security Policy can block all inline CSS) ===== */

.primary-nav.is-static {
  position: static; inset: auto; max-height: none; overflow: visible;
  padding: 0; background: none; border: 0; box-shadow: none;
  transform: none; opacity: 1; visibility: visible; pointer-events: auto;
  display: flex; align-items: center; justify-content: flex-end;
}

.u1 { text-align:center; }
.u2 { margin-bottom:18px; }
.u3 { max-width:52ch;margin-inline:auto;color:var(--text-muted); }
.u4 { justify-content:center;margin-top:26px; }
.u5 { border-top:0;margin-top:0; }
.u6 { margin:0; }
.u7 { margin-top:22px; }
.u8 { margin-bottom:0; }
.u9 { margin:22px 0 0;background:rgba(7,10,24,.42); }
.u10 { margin:8px 0 0; }
.u11 { margin-top:16px;margin-bottom:0; }
.u12 { margin:16px 0 0;font-size:.85rem;color:var(--text-dim); }
.u13 { margin-top:14px; }
.u14 { margin:0 0 8px; }
.u15 { margin:0;color:var(--text-dim); }
.u16 { display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between; }
.u17 { padding-bottom:34px; }
.u18 { margin-top:26px; }
.u19 { margin-bottom:26px; }

@media (min-width: 1200px) {
  .primary-nav { gap: 22px; }
  .nav-actions { gap: 10px; }
  .nav-actions .btn { padding: 10px 19px; font-size: 0.89rem; }
  .nav-link { padding: 9px 13px; font-size: 0.9rem; }
}
