/* «Лайкобмен» — orbit design system.
   Deep-space observatory: void navy, ion-teal telemetry, amber star rewards. */

:root {
  color-scheme: dark;

  --surface: #070b1a;
  --surface-deep: #040712;
  --panel: rgba(15, 24, 47, 0.78);
  --panel-solid: #0f182f;
  --panel-soft: rgba(33, 49, 83, 0.55);
  --ink: #e9eefb;
  --ink-soft: #aab8d6;
  --ink-faint: #8b9aba;
  --primary: #57d9cb;
  --primary-strong: #3fc4b7;
  --on-primary: #070b1a;
  --accent: #f2b857;
  --on-accent: #070b1a;
  --yt: #ff6b62;
  --vk: #6e9bff;
  --line: rgba(151, 181, 255, 0.14);
  --line-strong: rgba(151, 181, 255, 0.28);
  --danger: #ff7a70;
  --success: #63e6a8;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow-sm: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 34px -28px rgba(0, 0, 0, 0.9);
  --shadow-lg: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 80px -50px rgba(0, 0, 0, 0.95);
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  --shell: 1260px;
  --gap: 20px;
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--surface);
  background-image:
    radial-gradient(1100px 620px at 76% -14%, rgba(87, 217, 203, 0.10), transparent 62%),
    radial-gradient(920px 560px at 4% 6%, rgba(110, 155, 255, 0.10), transparent 60%),
    radial-gradient(1200px 760px at 50% 112%, rgba(242, 184, 87, 0.05), transparent 66%);
  background-attachment: fixed;
  min-height: 100vh;
}

::selection {
  background: rgba(87, 217, 203, 0.32);
  color: var(--ink);
}

/* ---------- Cosmic atmosphere ---------- */

.cosmos {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 0%, #0b1430 0%, #070b1a 55%, #040712 100%);
}

.cosmos__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  transform: scale(1.2);
  opacity: 0.55;
  filter: saturate(1.1) contrast(1.02);
}

.cosmos__stars {
  position: absolute;
  inset: -14%;
  opacity: 0.7;
  background-image:
    radial-gradient(1.6px 1.6px at 18% 24%, rgba(233, 238, 251, 0.9), transparent 100%),
    radial-gradient(1.2px 1.2px at 72% 16%, rgba(233, 238, 251, 0.7), transparent 100%),
    radial-gradient(1px 1px at 44% 68%, rgba(233, 238, 251, 0.6), transparent 100%),
    radial-gradient(1.5px 1.5px at 86% 54%, rgba(242, 184, 87, 0.55), transparent 100%),
    radial-gradient(1px 1px at 8% 82%, rgba(151, 181, 255, 0.7), transparent 100%);
  background-size: 520px 520px, 380px 380px, 460px 460px, 640px 640px, 300px 300px;
  background-repeat: repeat;
  animation: star-drift 260s linear infinite;
  will-change: transform;
}

.cosmos__aura {
  position: absolute;
  left: 50%;
  top: -26vh;
  width: min(1200px, 140vw);
  height: 72vh;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(87, 217, 203, 0.18), rgba(110, 155, 255, 0.09) 55%, transparent 72%);
  filter: blur(18px);
}

.cosmos__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 7, 18, 0.28) 0%, rgba(4, 7, 18, 0.5) 48%, rgba(4, 7, 18, 0.88) 100%);
}

@keyframes star-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-120px, 60px, 0);
  }
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #8af0e5;
}

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

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

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

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.shell {
  width: min(100% - 40px, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: var(--surface);
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  z-index: 200;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Brand ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
  filter: drop-shadow(0 0 9px rgba(87, 217, 203, 0.28));
}

.brand-word {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-word small {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 4px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}

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

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.btn-primary {
  background: linear-gradient(180deg, #6fe6da, #41c6b9);
  color: var(--on-primary);
  box-shadow: 0 12px 30px -16px rgba(87, 217, 203, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #8af0e5, #4dd3c5);
  color: var(--on-primary);
  box-shadow: 0 16px 38px -16px rgba(87, 217, 203, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-accent {
  background: linear-gradient(180deg, #f8c873, #e5a53f);
  color: var(--on-accent);
  box-shadow: 0 12px 30px -16px rgba(242, 184, 87, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-accent:hover {
  background: linear-gradient(180deg, #ffd68d, #f0b352);
  color: var(--on-accent);
  box-shadow: 0 16px 38px -16px rgba(242, 184, 87, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-ghost {
  background: rgba(12, 20, 40, 0.35);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: rgba(87, 217, 203, 0.55);
  color: var(--primary);
  background: rgba(87, 217, 203, 0.08);
}

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
}

.btn-quiet:hover {
  background: rgba(233, 238, 251, 0.07);
  color: var(--ink);
}

.btn-sm {
  padding: 8px 13px;
  font-size: 13.5px;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
}

.btn-danger {
  background: transparent;
  border-color: rgba(255, 122, 112, 0.42);
  color: var(--danger);
}

.btn-danger:hover {
  background: rgba(255, 122, 112, 0.1);
  color: var(--danger);
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(15, 24, 47, 0.7);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.icon-btn:hover {
  border-color: rgba(87, 217, 203, 0.55);
  color: var(--primary);
  box-shadow: 0 0 22px -8px rgba(87, 217, 203, 0.5);
}

.icon-btn svg,
.btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn .dot {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--mono);
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(242, 184, 87, 0.55);
}

/* ---------- Chips and tags ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 24, 47, 0.7);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-faint);
}

.chip--youtube::before {
  background: var(--yt);
  box-shadow: 0 0 8px rgba(255, 107, 98, 0.7);
}

.chip--vk::before {
  background: var(--vk);
  box-shadow: 0 0 8px rgba(110, 155, 255, 0.7);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  white-space: nowrap;
}

.tag--review {
  border-color: rgba(242, 184, 87, 0.5);
  color: var(--accent);
  background: rgba(242, 184, 87, 0.12);
}

.tag--demo {
  border-color: var(--line-strong);
  color: var(--ink-faint);
}

.tag--vip {
  border-color: rgba(242, 184, 87, 0.5);
  color: var(--accent);
  background: rgba(242, 184, 87, 0.14);
  box-shadow: inset 0 0 14px rgba(242, 184, 87, 0.08);
}

.tag--ok {
  border-color: rgba(99, 230, 168, 0.35);
  color: var(--success);
  background: rgba(99, 230, 168, 0.09);
}

.tag--bad {
  border-color: rgba(255, 122, 112, 0.35);
  color: var(--danger);
  background: rgba(255, 122, 112, 0.09);
}

.tag--warn {
  border-color: rgba(242, 184, 87, 0.5);
  color: var(--accent);
  background: rgba(242, 184, 87, 0.12);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(7, 12, 28, 0.92), rgba(7, 12, 28, 0.72));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(87, 217, 203, 0.06);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 72px;
}

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

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.16s ease;
}

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

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

.menu-toggle {
  display: none;
  margin-left: auto;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  padding-block: clamp(40px, 6vw, 84px) clamp(30px, 4vw, 54px);
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10% 0 auto;
  height: 90%;
  background: radial-gradient(60% 60% at 70% 30%, rgba(87, 217, 203, 0.1), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}

.eyebrow::before,
.kicker::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: linear-gradient(90deg, transparent, currentColor);
  opacity: 0.8;
}

.hero h1 {
  font-size: clamp(36px, 5.2vw, 68px);
  letter-spacing: -0.035em;
  text-shadow: 0 0 60px rgba(87, 217, 203, 0.12);
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
  text-shadow: 0 0 34px rgba(87, 217, 203, 0.45);
}

.hero h1 .mark {
  position: relative;
  white-space: nowrap;
}

.hero h1 .mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  height: 0.12em;
  background: var(--accent);
  opacity: 0.5;
  border-radius: 999px;
  z-index: -1;
}

.lede {
  margin-top: 22px;
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--ink-soft);
  max-width: 56ch;
}

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

.hero-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-faint);
}

.fact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.fact {
  min-width: 96px;
}

.fact b {
  display: block;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.fact span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Exchange board ---------- */

.board {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(87, 217, 203, 0.14), transparent 55%),
    radial-gradient(90% 70% at 82% 112%, rgba(110, 155, 255, 0.12), transparent 62%),
    linear-gradient(160deg, rgba(18, 29, 55, 0.94), rgba(8, 13, 29, 0.97) 70%);
  box-shadow: var(--shadow-lg), 0 0 70px -34px rgba(87, 217, 203, 0.55);
  padding: 22px;
}

.board::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px dashed rgba(151, 181, 255, 0.16);
  border-radius: 20px;
  pointer-events: none;
}

.board::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 22% 18%, rgba(233, 238, 251, 0.65), transparent 100%),
    radial-gradient(1px 1px at 68% 8%, rgba(233, 238, 251, 0.45), transparent 100%),
    radial-gradient(1.2px 1.2px at 88% 62%, rgba(242, 184, 87, 0.5), transparent 100%),
    radial-gradient(1px 1px at 12% 78%, rgba(151, 181, 255, 0.55), transparent 100%);
  background-size: 240px 240px, 180px 180px, 300px 300px, 210px 210px;
  opacity: 0.7;
}

.board-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
}

.live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(87, 217, 203, 0.14), 0 0 12px rgba(87, 217, 203, 0.8);
  animation: live-pulse 2.6s ease-in-out infinite;
}

@keyframes live-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(87, 217, 203, 0.14), 0 0 10px rgba(87, 217, 203, 0.6);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(87, 217, 203, 0.08), 0 0 16px rgba(87, 217, 203, 0.9);
  }
}

/* ---------- Signature ring ---------- */

.ring {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding-block: 6px;
}

.ring svg {
  width: min(100%, 320px);
  height: auto;
  overflow: visible;
}

.ring--sm svg {
  width: 210px;
}

.ring--xs svg {
  width: 168px;
}

.ring-orbit {
  fill: none;
  stroke: rgba(151, 181, 255, 0.14);
  stroke-width: 1;
  stroke-dasharray: 1 7;
}

.ring-orbit--far {
  stroke: rgba(151, 181, 255, 0.1);
  stroke-dasharray: 2 12;
  transform-origin: 120px 120px;
  animation: orbit-spin 120s linear infinite;
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

.ring-track {
  fill: none;
  stroke: rgba(151, 181, 255, 0.2);
  stroke-width: 5;
  stroke-dasharray: 2 9;
  stroke-linecap: round;
}

.ring-vk {
  fill: none;
  stroke: var(--vk);
  stroke-width: 8;
  stroke-linecap: round;
  opacity: 0.9;
  filter: drop-shadow(0 0 6px rgba(110, 155, 255, 0.6));
  transition: stroke-dasharray 0.6s ease;
}

.ring-yt {
  fill: none;
  stroke: var(--yt);
  stroke-width: 8;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(255, 107, 98, 0.55));
  transition: stroke-dasharray 0.6s ease;
}

.ring-tick {
  stroke: rgba(151, 181, 255, 0.32);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke 0.35s ease, stroke-width 0.35s ease;
}

.ring-tick.on {
  stroke: var(--accent);
  stroke-width: 8;
  filter: drop-shadow(0 0 6px rgba(242, 184, 87, 0.85));
}

.ring-value {
  font-family: var(--mono);
  font-size: 46px;
  font-weight: 700;
  fill: var(--ink);
  letter-spacing: -0.03em;
}

.ring-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--ink-faint);
}

.ring-caption {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-top: 2px;
}

.ring--xs .ring-value {
  font-size: 40px;
}

.split {
  margin-top: 14px;
  display: grid;
  gap: 6px;
}

.split-bar {
  height: 7px;
  border-radius: 999px;
  background: var(--vk);
  overflow: hidden;
  box-shadow: 0 0 14px -4px rgba(110, 155, 255, 0.55);
}

.split-bar span {
  display: block;
  height: 100%;
  background: var(--yt);
  border-radius: 999px;
  box-shadow: 0 0 14px -2px rgba(255, 107, 98, 0.6);
}

.split-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-faint);
}

.split-labels b {
  color: var(--ink);
  font-weight: 600;
}

.board-preview {
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

/* ---------- Ticker ---------- */

.ticker {
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(11, 17, 35, 0.92), rgba(18, 29, 55, 0.86), rgba(11, 17, 35, 0.92));
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 40px;
  width: max-content;
  padding-block: 11px;
  animation: ticker 34s linear infinite;
}

.ticker-track span {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.ticker-track span b {
  color: var(--primary);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

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

.section {
  padding-block: clamp(44px, 6vw, 78px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 40px);
}

.section-head p {
  color: var(--ink-soft);
  max-width: 46ch;
  margin-top: 8px;
}

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

/* ---------- Cards ---------- */

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(19, 30, 56, 0.88), rgba(10, 16, 33, 0.92));
  box-shadow: var(--shadow-sm);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 12% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(151, 181, 255, 0.35), transparent);
  pointer-events: none;
}

.panel {
  padding: 22px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.panel-head h3 {
  font-size: 16px;
  letter-spacing: -0.01em;
  font-family: var(--body);
  font-weight: 700;
}

.panel-head .mono-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 29, 55, 0.72), rgba(10, 16, 33, 0.9));
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.steps li::after {
  content: "";
  position: absolute;
  right: -46px;
  top: -46px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(87, 217, 203, 0.12), transparent 68%);
  pointer-events: none;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.steps h3 {
  font-family: var(--body);
  font-size: 18px;
  margin: 10px 0 8px;
  font-weight: 700;
}

.steps p {
  color: var(--ink-soft);
  font-size: 14.5px;
}

/* ---------- Feed ---------- */

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

.feed-grid--preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.task-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 29, 55, 0.78), rgba(10, 16, 33, 0.92));
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  container-type: inline-size;
  overflow: hidden;
}

.task-card::before {
  content: "";
  position: absolute;
  right: -44px;
  top: -44px;
  width: 128px;
  height: 128px;
  background: radial-gradient(circle, rgba(87, 217, 203, 0.13), transparent 68%);
  pointer-events: none;
}

.task-card:hover {
  border-color: rgba(87, 217, 203, 0.42);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm), 0 0 34px -18px rgba(87, 217, 203, 0.5);
}

.task-card.is-done {
  opacity: 0.72;
}

.task-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.task-reward {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(242, 184, 87, 0.12);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

.task-card h3 {
  font-family: var(--body);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 2px 0 0;
}

.task-url {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-url:hover {
  color: var(--primary);
  text-decoration: underline;
}

.task-owner {
  font-size: 12.5px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.task-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.task-actions .btn-act {
  flex: 1;
}

.task-actions .icon-btn {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
}

.btn.is-loading {
  position: relative;
  padding-right: 36px;
  pointer-events: none;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  margin-top: -8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}

[hidden] {
  display: none !important;
}

.task-card.is-hidden {
  display: none;
}

.chart-wrap {
  height: 260px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.task-card.is-loading-card {
  border-color: rgba(242, 184, 87, 0.6);
  box-shadow: var(--shadow-sm), 0 0 34px -18px rgba(242, 184, 87, 0.6);
}

.empty-feed,
.empty-note {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(13, 21, 42, 0.6);
}

.empty-feed h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.empty-feed p {
  color: var(--ink-soft);
  max-width: 62ch;
}

.demo-card {
  margin-top: 16px;
  border-style: solid;
  border-color: rgba(242, 184, 87, 0.45);
  background: linear-gradient(180deg, rgba(48, 38, 18, 0.5), rgba(20, 17, 12, 0.6));
}

.demo-card .tag {
  border-color: rgba(242, 184, 87, 0.55);
}

/* ---------- App shell ---------- */

.app-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(7, 12, 28, 0.94), rgba(7, 12, 28, 0.76));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(87, 217, 203, 0.06);
}

.app-header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 70px;
}

.app-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 24, 47, 0.7);
}

.app-tabs button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.app-tabs button[aria-selected="true"] {
  background: rgba(87, 217, 203, 0.16);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(87, 217, 203, 0.35);
}

.app-balance {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.balance-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 24, 47, 0.75);
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.balance-chip b {
  font-weight: 700;
}

.balance-chip--diamond svg {
  color: var(--accent);
  filter: drop-shadow(0 0 6px rgba(242, 184, 87, 0.6));
}

.balance-chip svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.app-shell {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr) 300px;
  gap: var(--gap);
  align-items: start;
  padding-block: 24px 90px;
}

.rail,
.side {
  display: grid;
  gap: var(--gap);
  position: sticky;
  top: 94px;
}

.workspace {
  min-width: 0;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
  animation: panel-in 0.28s ease both;
}

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

.panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filters {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 24, 47, 0.7);
}

.filters button {
  border: 0;
  background: transparent;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.filters button[aria-pressed="true"] {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 0 20px -6px rgba(87, 217, 203, 0.65);
}

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

.section-title h2 {
  font-size: 22px;
}

.section-title .mono-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.rail .ring {
  margin-block: 4px 2px;
}

.limit-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-soft);
}

.limit-line b {
  color: var(--ink);
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--panel-soft);
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(242, 184, 87, 0.45);
  transition: width 0.5s ease;
}

.progress--primary > span {
  background: linear-gradient(90deg, #3fc4b7, var(--primary));
  box-shadow: 0 0 14px rgba(87, 217, 203, 0.45);
}

/* ---------- KPI ---------- */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: var(--gap);
}

.kpi {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 29, 55, 0.78), rgba(10, 16, 33, 0.9));
  padding: 15px 16px;
  overflow: hidden;
}

.kpi::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 96px;
  height: 96px;
  background: radial-gradient(circle, rgba(87, 217, 203, 0.1), transparent 68%);
  pointer-events: none;
}

.kpi span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.kpi b {
  display: block;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.kpi small {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--ink-faint);
}

.chart-wrap {
  position: relative;
  min-height: 220px;
}

.chart-wrap canvas {
  max-width: 100%;
}

.demo-note {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(242, 184, 87, 0.1);
  border: 1px dashed rgba(242, 184, 87, 0.5);
  border-radius: 8px;
  padding: 7px 10px;
  display: inline-block;
}

/* ---------- Tables ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 27, 51, 0.86), rgba(9, 15, 31, 0.92));
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  vertical-align: middle;
}

.data-table th {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  background: rgba(151, 181, 255, 0.06);
  white-space: nowrap;
}

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

.data-table tbody tr:hover {
  background: rgba(87, 217, 203, 0.045);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table td.num,
.data-table th.num {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.rank {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--ink-faint);
}

.rank.is-top {
  color: var(--accent);
  text-shadow: 0 0 14px rgba(242, 184, 87, 0.5);
}

.table-note {
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-top: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.status-pill--confirmed {
  border-color: rgba(99, 230, 168, 0.35);
  color: var(--success);
  background: rgba(99, 230, 168, 0.09);
}

.status-pill--pending {
  border-color: rgba(242, 184, 87, 0.45);
  color: var(--accent);
  background: rgba(242, 184, 87, 0.11);
}

.status-pill--rejected {
  border-color: rgba(255, 122, 112, 0.35);
  color: var(--danger);
  background: rgba(255, 122, 112, 0.09);
}

.status-pill--disputed {
  border-color: var(--line-strong);
  color: var(--ink-soft);
}

/* ---------- Profile ---------- */

.account-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 27, 51, 0.74), rgba(9, 15, 31, 0.88));
  padding: 16px;
  display: grid;
  gap: 10px;
  overflow: hidden;
}

.account-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -38px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(110, 155, 255, 0.12), transparent 68%);
  pointer-events: none;
}

.account-card h4 {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.reason-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--ink-soft);
  display: grid;
  gap: 4px;
}

.referral-box {
  display: flex;
  gap: 8px;
}

.referral-box input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(7, 12, 28, 0.7);
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}

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

/* ---------- Forms ---------- */

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.field label {
  font-size: 13.5px;
  font-weight: 600;
}

.field .hint {
  font-size: 12px;
  color: var(--ink-faint);
}

.input,
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="url"],
.field input[type="number"],
.field select,
.field textarea,
select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"] {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(7, 12, 28, 0.7);
  padding: 11px 13px;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(139, 154, 186, 0.85);
}

select option {
  background: var(--panel-solid);
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
select:focus,
textarea:focus,
input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(9, 16, 34, 0.9);
  box-shadow: 0 0 0 3px rgba(87, 217, 203, 0.18), 0 0 24px -10px rgba(87, 217, 203, 0.55);
}

.field.has-error input {
  border-color: var(--danger);
}

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

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(9, 15, 30, 0.55);
  margin-bottom: 16px;
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex: none;
}

.form-card {
  max-width: 560px;
  margin-inline: auto;
  margin-block: clamp(30px, 6vw, 64px) 80px;
  padding: clamp(22px, 4vw, 34px);
}

.form-card h1 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 8px;
}

.form-card .lede {
  margin-top: 8px;
  font-size: 14.5px;
  margin-bottom: 24px;
}

.form-foot {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-faint);
  text-align: center;
}

.alert {
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-size: 13.5px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: rgba(13, 21, 42, 0.7);
}

.alert--error {
  border-color: rgba(255, 122, 112, 0.42);
  background: rgba(255, 122, 112, 0.09);
  color: #ffb4ae;
}

.alert--info {
  border-color: rgba(87, 217, 203, 0.32);
  background: rgba(87, 217, 203, 0.07);
  color: #9df0e7;
}

.alert--success {
  border-color: rgba(99, 230, 168, 0.35);
  background: rgba(99, 230, 168, 0.08);
  color: var(--success);
}

.alert ul {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

/* ---------- Toasts ---------- */

.toast-stack {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: grid;
  gap: 8px;
  width: min(92vw, 460px);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(18, 29, 55, 0.97);
  color: var(--ink);
  font-size: 13.5px;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: toast-in 0.24s ease both;
}

.toast--success {
  border-color: rgba(99, 230, 168, 0.55);
}

.toast--error {
  border-color: rgba(255, 122, 112, 0.65);
  background: rgba(58, 14, 14, 0.97);
}

.toast--info {
  border-color: rgba(242, 184, 87, 0.55);
  background: rgba(48, 36, 16, 0.97);
}

.toast-close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  padding: 0 2px;
}

.toast-retry {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: inherit;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

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

/* ---------- Drawer / notifications ---------- */

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(86vw, 340px);
  background: linear-gradient(180deg, #0d1730, #070d1e);
  border-left: 1px solid var(--line);
  z-index: 120;
  padding: 22px;
  transform: translateX(100%);
  transition: transform 0.24s ease;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow-y: auto;
  box-shadow: -30px 0 80px -40px rgba(0, 0, 0, 0.9);
}

.drawer.is-open {
  transform: none;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 10, 0.62);
  backdrop-filter: blur(2px);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer a,
.drawer button.drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.drawer a:hover,
.drawer button.drawer-link:hover {
  background: rgba(87, 217, 203, 0.08);
  color: var(--primary);
}

.drawer-divider {
  height: 1px;
  background: var(--line);
  margin-block: 8px;
}

.notif-wrap {
  position: relative;
}

.notif-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(90vw, 380px);
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #101b36, #0a1122);
  box-shadow: var(--shadow-lg), 0 0 40px -24px rgba(87, 217, 203, 0.4);
  padding: 8px;
  z-index: 130;
}

.notif-item {
  padding: 11px 12px;
  border-radius: var(--radius-xs);
  border-bottom: 1px solid var(--line);
}

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

.notif-item.is-unread {
  background: rgba(242, 184, 87, 0.08);
}

.notif-item b {
  display: block;
  font-size: 13.5px;
}

.notif-item span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-soft);
}

.notif-item time {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
}

/* ---------- Bottom nav ---------- */

.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(8, 13, 28, 0.97);
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  backdrop-filter: blur(12px);
}

.bottom-nav button {
  flex: 1;
  border: 0;
  background: transparent;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 7px 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-faint);
  cursor: pointer;
}

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

.bottom-nav button[aria-selected="true"] {
  color: var(--primary);
}

/* ---------- Modal / dialog ---------- */

dialog.modal {
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: linear-gradient(180deg, #101b36, #080e1f);
  color: var(--ink);
  padding: 0;
  width: min(94vw, 560px);
  box-shadow: var(--shadow-lg), 0 0 80px -40px rgba(87, 217, 203, 0.5);
}

dialog.modal::backdrop {
  background: rgba(2, 4, 10, 0.72);
  backdrop-filter: blur(4px);
}

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

.modal-head h3 {
  font-family: var(--body);
  font-size: 17px;
  font-weight: 700;
}

.modal-body {
  padding: 18px 20px;
}

.modal-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

/* ---------- Ad player ---------- */

.ad-stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #040712;
  color: #f4f7f5;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
}

.ad-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #02040b;
}

.ad-creative {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  background:
    radial-gradient(460px 260px at 20% 15%, rgba(242, 184, 87, 0.24), transparent 60%),
    radial-gradient(420px 300px at 85% 90%, rgba(87, 217, 203, 0.35), transparent 65%),
    radial-gradient(1.4px 1.4px at 30% 70%, rgba(233, 238, 251, 0.7), transparent 100%),
    #050a18;
}

.ad-creative .ad-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(233, 238, 251, 0.66);
}

.ad-creative strong {
  font-family: var(--display);
  font-size: clamp(20px, 4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

.ad-creative .ad-sub {
  font-size: 13px;
  color: rgba(233, 238, 251, 0.72);
  max-width: 36ch;
}

.ad-bars {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.ad-bars i {
  width: 14px;
  height: 26px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.35;
  animation: ad-bar 1.4s ease-in-out infinite;
}

.ad-bars i:nth-child(2) {
  animation-delay: 0.15s;
}
.ad-bars i:nth-child(3) {
  animation-delay: 0.3s;
}
.ad-bars i:nth-child(4) {
  animation-delay: 0.45s;
}

@keyframes ad-bar {
  0%,
  100% {
    opacity: 0.25;
    transform: scaleY(0.6);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

.ad-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--panel-soft);
  overflow: hidden;
  margin: 16px 0 12px;
}

.ad-progress > div {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(87, 217, 203, 0.5);
  transition: width 0.2s linear;
}

.ad-error {
  position: absolute;
  inset: auto 14px 14px;
  background: rgba(48, 12, 12, 0.94);
  border: 1px solid rgba(242, 184, 87, 0.5);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.ad-error button {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: inherit;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}

/* ---------- Admin ---------- */

.admin-header {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 12, 28, 0.94), rgba(7, 12, 28, 0.78));
  backdrop-filter: blur(14px);
}

.admin-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.admin-badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid rgba(87, 217, 203, 0.3);
  background: rgba(87, 217, 203, 0.07);
  border-radius: 6px;
  padding: 4px 8px;
}

.admin-main {
  padding-block: 26px 90px;
  display: grid;
  gap: var(--gap);
}

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

.admin-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 27, 51, 0.8), rgba(9, 15, 31, 0.9));
  padding: 20px;
  min-width: 0;
}

.admin-section h2 {
  font-family: var(--body);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.admin-section .admin-sub {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-bottom: 16px;
}

.admin-section form .field {
  margin-bottom: 12px;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px auto;
  gap: 8px;
  align-items: end;
}

.complaint-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
  background: rgba(13, 21, 42, 0.62);
}

.complaint-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.complaint-card p {
  font-size: 13px;
  color: var(--ink-soft);
}

.empty-slot {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 22px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 13.5px;
  background: rgba(9, 15, 30, 0.55);
}

.admin-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
}

.admin-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  font-size: 13px;
  flex-wrap: wrap;
  background: rgba(13, 21, 42, 0.42);
}

.admin-row .grow {
  flex: 1;
  min-width: 120px;
}

.admin-row b {
  font-weight: 600;
}

.admin-row small {
  display: block;
  color: var(--ink-faint);
  font-size: 11.5px;
}

/* ---------- Quality / blocked ---------- */

.state-page {
  width: min(100% - 40px, 680px);
  margin: clamp(40px, 8vw, 90px) auto;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background:
    radial-gradient(110% 80% at 50% -10%, rgba(87, 217, 203, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(18, 29, 55, 0.9), rgba(8, 13, 29, 0.95));
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-lg), 0 0 70px -36px rgba(87, 217, 203, 0.55);
}

.state-page h1 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 10px;
}

.state-page .lede {
  margin-top: 0;
  margin-bottom: 20px;
}

.state-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(242, 184, 87, 0.16);
  color: var(--accent);
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px rgba(242, 184, 87, 0.3);
}

.state-icon--danger {
  background: rgba(255, 122, 112, 0.1);
  color: var(--danger);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 112, 0.3);
}

.state-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* ---------- Legal ---------- */

.legal {
  width: min(100% - 40px, 760px);
  margin: 40px auto 80px;
}

.legal h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 18px;
}

.legal h2 {
  font-size: 19px;
  margin: 26px 0 8px;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  font-size: 14.5px;
}

.legal ul {
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 26px 40px;
  background: linear-gradient(180deg, rgba(7, 12, 28, 0.55), rgba(5, 8, 18, 0.95));
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--ink-faint);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-left: auto;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
}

/* ---------- Responsive ---------- */

/* ---------- Registration captcha and anti-spam ---------- */

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.captcha-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.captcha-image {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  line-height: 0;
  flex: none;
}

.captcha-image svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.captcha-row input {
  flex: 1;
  min-width: 140px;
  max-width: 220px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--mono);
}

.chip--tiktok::before {
  background: #25f4ee;
  box-shadow: 0 0 8px rgba(37, 244, 238, 0.7);
}

.chip--rutube::before {
  background: #7fe36b;
  box-shadow: 0 0 8px rgba(127, 227, 107, 0.7);
}

/* ---------- Feed videos ---------- */

.panel-actions-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.video-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 27, 51, 0.78), rgba(9, 15, 31, 0.9));
  overflow: hidden;
  display: grid;
}

.video-stage {
  aspect-ratio: 16 / 9;
  background: #02040b;
  display: grid;
}

.video-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #02040b;
}

.video-meta {
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}

.video-meta h3 {
  font-family: var(--body);
  font-size: 16px;
  margin: 0;
}

.video-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Mini chat ---------- */

.chat-card {
  display: grid;
  gap: 14px;
}

.chat-rules {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid rgba(87, 217, 203, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(87, 217, 203, 0.07);
  font-size: 13px;
  color: var(--ink-soft);
}

.chat-rules svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex: none;
  margin-top: 2px;
}

.chat-feed {
  min-height: 320px;
  max-height: 520px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px 4px;
  scroll-behavior: smooth;
}

.chat-message {
  align-self: flex-start;
  max-width: min(78%, 560px);
  border: 1px solid var(--line);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  background: rgba(17, 27, 51, 0.72);
  padding: 9px 12px;
  display: grid;
  gap: 5px;
}

.chat-message.is-mine {
  align-self: flex-end;
  border-color: rgba(87, 217, 203, 0.38);
  background: rgba(87, 217, 203, 0.1);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 4px;
}

.chat-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-faint);
}

.chat-meta b {
  font-family: var(--body);
  font-size: 12.5px;
  color: var(--primary);
}

.chat-message p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-message img {
  max-width: 100%;
  max-height: 280px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
}

.chat-empty {
  margin: auto;
  color: var(--ink-faint);
  font-size: 13.5px;
}

.chat-compose {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(7, 12, 28, 0.7);
  padding: 10px;
}

.chat-compose textarea {
  border: none;
  background: transparent;
  padding: 4px 6px;
  min-height: 54px;
  resize: vertical;
}

.chat-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chat-file {
  cursor: pointer;
}

.chat-file-name {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-faint);
  flex: 1;
  min-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-counter {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
}

/* ---------- CoinDrop card (bot message in the chat) ---------- */

.tag--bot {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border: 1px solid rgba(229, 57, 53, 0.55);
  border-radius: 999px;
  background: rgba(229, 57, 53, 0.16);
  color: #ff9b93;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-message.is-bot {
  max-width: min(100%, 560px);
  border-color: rgba(229, 57, 53, 0.32);
  background: linear-gradient(160deg, rgba(46, 17, 27, 0.9), rgba(12, 20, 38, 0.94));
}

.chat-message.is-bot > p {
  color: var(--ink-soft);
}

.coindrop {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 14px;
  border: 1px solid rgba(229, 57, 53, 0.38);
  border-radius: 14px;
  background:
    radial-gradient(120% 100% at 12% 0%, rgba(229, 57, 53, 0.18), transparent 55%),
    rgba(9, 15, 30, 0.72);
}

.coindrop[data-drop-state="closed"] {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(9, 15, 30, 0.55);
}

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

.coindrop-bag {
  width: 54px;
  height: 54px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(229, 57, 53, 0.28), rgba(229, 57, 53, 0.04));
  filter: drop-shadow(0 6px 12px rgba(229, 57, 53, 0.3));
}

.coindrop-bag-svg {
  width: 48px;
  height: 48px;
  display: block;
}

.coindrop-bag-svg .bag-body {
  fill: #e53935;
  stroke: #8f1111;
  stroke-width: 1.6;
}

.coindrop-bag-svg .bag-tie {
  fill: #a31212;
}

.coindrop-bag-svg .bag-string {
  fill: none;
  stroke: #ffb3a8;
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0.85;
}

.coindrop-bag-svg .bag-coin {
  fill: #ffc94d;
  stroke: #c98b0d;
  stroke-width: 2;
}

.coindrop-bag-svg .bag-gem {
  fill: #8ff3e8;
}

.coindrop-heading {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.coindrop-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff9b93;
}

.coindrop-heading strong {
  font-family: var(--body);
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.coindrop-badge {
  margin-left: auto;
  align-self: flex-start;
  padding: 4px 9px;
  border: 1px solid rgba(229, 57, 53, 0.5);
  border-radius: 999px;
  background: rgba(229, 57, 53, 0.12);
  color: #ff9b93;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.coindrop[data-drop-state="closed"] .coindrop-badge {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-faint);
}

.coindrop-sub {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.coindrop-stats {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-soft);
}

.coindrop-stats b {
  color: #ffd166;
  font-size: 13px;
}

.coindrop-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.coindrop-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #e53935, #ff8a65 60%, #ffd166);
  transition: width 0.45s ease;
}

.coindrop-claim {
  justify-self: start;
}

.coindrop-claim[hidden],
.coindrop-result[hidden] {
  display: none;
}

.coindrop-result {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #9ff3d9;
}

.coindrop-result.is-claimed {
  color: #ffd166;
}

.coindrop-result.is-closed {
  color: var(--ink-faint);
  font-weight: 500;
}

.referral-list {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.contact-link {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}

.contact-link input {
  flex: 1;
  min-width: 180px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(7, 12, 28, 0.7);
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}

@media (max-width: 767px) {
  .video-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .chat-message {
    max-width: 92%;
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 290px minmax(0, 1fr);
  }

  .side {
    display: none;
  }

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-board {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }

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

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

  .feed-grid--preview {
    grid-template-columns: 1fr;
  }

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

  .rail {
    position: static;
  }
}

@media (max-width: 767px) {
  body {
    background-attachment: scroll;
    background-image:
      radial-gradient(700px 340px at 88% -6%, rgba(87, 217, 203, 0.1), transparent 65%),
      radial-gradient(520px 300px at 0% 10%, rgba(110, 155, 255, 0.08), transparent 60%);
  }

  .cosmos__image {
    opacity: 0.4;
  }

  .cosmos__stars {
    opacity: 0.45;
  }

  .shell {
    width: calc(100% - 28px);
  }

  .site-nav,
  .header-actions,
  .app-tabs,
  .app-balance .balance-chip--points,
  .app-balance .btn-accent {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header-inner,
  .app-header-inner {
    min-height: 62px;
    gap: 12px;
  }

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

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .hero {
    padding-block: 28px 18px;
    gap: 24px;
  }

  .hero h1 {
    font-size: clamp(30px, 9vw, 42px);
  }

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

  .fact-line {
    gap: 16px;
    margin-top: 24px;
  }

  .fact b {
    font-size: 20px;
  }

  .board {
    padding: 16px;
    border-radius: 20px;
  }

  .board::after {
    border-radius: 20px;
  }

  .ring svg {
    width: min(100%, 230px);
  }

  .section {
    padding-block: 34px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .task-actions {
    flex-wrap: wrap;
  }

  .task-actions .btn-act {
    flex: 1 1 100%;
    width: 100%;
  }

  .task-actions .btn-act + .btn-act {
    margin-left: 0;
  }

  .task-actions .icon-btn {
    width: 100%;
    border-radius: 10px;
    height: 40px;
  }

  .panel-actions {
    align-items: stretch;
  }

  .panel-actions .filters {
    flex: 1;
    justify-content: space-between;
  }

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

  .app-shell {
    padding-block: 14px 92px;
    gap: 14px;
  }

  .workspace {
    order: 2;
  }

  .rail {
    order: 1;
  }

  .rail .ring svg {
    width: 176px;
  }

  .app-balance {
    gap: 6px;
  }

  .balance-chip {
    padding: 6px 10px;
    font-size: 12px;
  }

  .bottom-nav {
    display: flex;
  }

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

  .rail .panel {
    padding: 16px;
  }

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

  .kpi b {
    font-size: 22px;
  }

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

  .data-table {
    min-width: 620px;
  }

  .data-table th:first-child,
  .data-table td:first-child {
    position: sticky;
    left: 0;
    background: var(--panel-solid);
    z-index: 1;
  }

  .data-table th:first-child {
    background: #111c36;
  }

  .form-card {
    margin-block: 18px 50px;
  }

  .modal-foot .btn {
    width: 100%;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    margin-left: 0;
  }

  .toast-stack {
    top: 10px;
    width: calc(100vw - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .ticker-track,
  .cosmos__stars {
    transform: none !important;
  }
}
