/* =========================================================
   МАЯК — независимый каталог каналов MAX
   Editorial "beacon" system: paper, ink, signal orange, deep teal.
   ========================================================= */

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/unbounded-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/unbounded-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f2eee4;
  --paper-2: #e9e2d3;
  --paper-3: #fbf8f1;
  --white: #fffdf8;
  --ink: #111a2c;
  --ink-2: #29344b;
  --muted: #5d6678;
  --line: #d7cfbf;
  --line-2: #c3b9a5;
  --teal: #0d4b48;
  --teal-deep: #072f2d;
  --teal-soft: #dbe9e3;
  --orange: #ef6034;
  --orange-deep: #ce4a24;
  --amber: #f5bd4f;
  --lime: #cbe86d;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 46px rgba(17, 26, 44, 0.11);
  --font-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure {
  margin: 0;
}

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

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

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

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

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

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: min(1240px, calc(100% - 72px));
  margin-inline: auto;
}

.muted {
  color: var(--muted);
}

.up {
  color: #187a58;
}

.down {
  color: var(--orange-deep);
}

/* ---------- Typography ---------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.99;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.65rem, 5.1vw, 4.9rem);
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 3.35rem);
}

h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.12;
}

p {
  text-wrap: pretty;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow .icon {
  width: 17px;
  height: 17px;
}

.eyebrow-light {
  color: rgba(255, 253, 248, 0.70);
}

.section-lead,
.page-lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.65;
}

.page-lead {
  max-width: 58ch;
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}

.text-link:hover {
  color: var(--orange-deep);
  border-color: currentColor;
  gap: 12px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(239, 96, 52, 0.16);
  flex: 0 0 auto;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

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

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

.btn .icon {
  width: 17px;
  height: 17px;
}

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

.btn-ink:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(239, 96, 52, 0.24);
}

.btn-light {
  background: var(--paper-3);
  color: var(--ink);
  border-color: var(--paper-3);
}

.btn-light:hover {
  background: var(--amber);
  border-color: var(--amber);
}

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

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 253, 248, 0.28);
  color: var(--paper);
}

.btn-outline-light:hover {
  background: rgba(255, 253, 248, 0.10);
  border-color: rgba(255, 253, 248, 0.6);
}

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

.btn-ghost:hover,
.btn-quiet:hover {
  background: rgba(17, 26, 44, 0.06);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.76rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(195, 185, 165, 0.55);
  background: rgba(242, 238, 228, 0.86);
  backdrop-filter: blur(14px);
}

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

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

.brand-mark {
  width: 35px;
  height: 35px;
  color: var(--ink);
  transition: transform 0.25s ease, color 0.25s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-8deg);
  color: var(--orange);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

.main-nav > a {
  position: relative;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav > a:hover,
.main-nav > a.is-active {
  color: var(--ink);
  background: rgba(17, 26, 44, 0.06);
}

.main-nav > a.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  transform: translateX(-50%);
}

.main-nav .mobile-only {
  display: none;
}

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

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-3);
  font-size: 0.78rem;
  font-weight: 800;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.account-chip:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.8rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  padding: 12px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  height: 1.7px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(6.7px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-6.7px) rotate(-45deg);
}

/* ---------- Avatars & badges ---------- */

.avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 253, 248, 0.7), transparent 34%),
    hsl(var(--h) 56% 82%);
  color: hsl(var(--h) 42% 23%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.05em;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(17, 26, 44, 0.08);
}

.avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 55%, rgba(17, 26, 44, 0.10));
  pointer-events: none;
}

.avatar-xs { width: 32px; height: 32px; border-radius: 9px; font-size: 0.68rem; }
.avatar-sm { width: 40px; height: 40px; border-radius: 11px; font-size: 0.8rem; }
.avatar-md { width: 48px; height: 48px; }
.avatar-lg { width: 66px; height: 66px; border-radius: 18px; font-size: 1.3rem; }
.avatar-xl { width: 104px; height: 104px; border-radius: 26px; font-size: 2.2rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge .icon {
  width: 11px;
  height: 11px;
  stroke-width: 2.2;
}

.badge-vip {
  background: var(--amber);
  color: #3d2a05;
}

.badge-verified {
  background: var(--teal-soft);
  color: var(--teal);
}

.badge-verified .icon {
  width: 12px;
  height: 12px;
}

.badge-soft {
  background: rgba(17, 26, 44, 0.07);
  color: var(--ink-2);
}

.badge-kind {
  background: rgba(13, 75, 72, 0.10);
  color: var(--teal);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.chip-icon {
  width: 13px;
  height: 13px;
  stroke-width: 1.7;
}

.chip-category {
  background: var(--teal-soft);
  color: var(--teal-deep);
  transition: background 0.2s ease;
}

a.chip-category:hover {
  background: var(--lime);
}

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

.channel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 255px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-3);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.channel-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}

.channel-card.is-vip {
  border-color: rgba(239, 96, 52, 0.46);
  box-shadow: inset 0 3px 0 var(--orange);
}

.card-rank {
  position: absolute;
  top: 18px;
  right: 20px;
  color: var(--line-2);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
}

.card-top {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.card-identity {
  min-width: 0;
}

.card-identity h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-size: 1.03rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.card-identity h3 a:hover {
  color: var(--orange-deep);
}

.card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
  color: var(--muted);
}

.card-meta strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.card-meta .up,
.card-meta .down {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 800;
}

.card-meta .icon {
  width: 12px;
  height: 12px;
}

.card-link {
  position: absolute;
  right: 18px;
  bottom: 58px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.card-link .icon {
  width: 15px;
  height: 15px;
}

.channel-card:hover .card-link {
  opacity: 1;
  transform: translateY(0);
}

.channel-card:hover .card-link:hover {
  background: var(--orange);
}

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

.hero {
  position: relative;
  padding: 26px 0 0;
  overflow: clip;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(17, 26, 44, 0.14) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 82%);
  opacity: 0.55;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  gap: 42px;
  align-items: center;
  min-height: min(760px, calc(100vh - 114px));
  padding-block: 30px 46px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  max-width: 12ch;
}

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

.hero-copy h1 em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  height: 0.10em;
  background: var(--amber);
  z-index: -1;
  transform: skewX(-8deg);
}

.hero-lead {
  max-width: 47ch;
  margin-top: 25px;
  color: var(--muted);
  font-size: clamp(1rem, 1.22vw, 1.12rem);
  line-height: 1.65;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 590px;
  margin-top: 32px;
  padding: 7px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--paper-3);
  box-shadow: 0 10px 30px rgba(17, 26, 44, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search:focus-within {
  border-color: var(--ink);
  box-shadow: 0 12px 32px rgba(17, 26, 44, 0.11);
}

.search-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--muted);
  flex: 0 0 auto;
}

.search-icon .icon {
  width: 19px;
  height: 19px;
}

.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  padding: 11px 6px;
  font-size: 0.92rem;
  outline: none;
}

.hero-search input::placeholder {
  color: #8a8f9b;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.72rem;
}

.hero-tags a {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-tags a:hover {
  background: var(--paper-3);
  border-color: var(--ink);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stats dt {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.hero-stats dd {
  max-width: 14ch;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.35;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
}

.stage-grid {
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background-image: radial-gradient(rgba(17, 26, 44, 0.18) 1px, transparent 1.4px);
  background-size: 17px 17px;
  mask-image: radial-gradient(circle, #000 25%, transparent 70%);
}

.stage-orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(17, 26, 44, 0.24);
  stroke-width: 1;
}

.stage-orbit .beam {
  fill: rgba(239, 96, 52, 0.16);
  stroke: rgba(239, 96, 52, 0.36);
}

.stage-orbit .dot {
  fill: var(--orange);
  stroke: none;
}

.stage-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 154px;
  height: 154px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 40px rgba(17, 26, 44, 0.25);
}

.stage-core .brand-mark {
  width: 44px;
  height: 44px;
  color: var(--amber);
}

.stage-core span {
  margin-top: 7px;
  color: rgba(255, 253, 248, 0.72);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.stage-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 196px;
  padding: 9px 12px 9px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(251, 248, 241, 0.94);
  box-shadow: 0 10px 26px rgba(17, 26, 44, 0.08);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stage-chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(17, 26, 44, 0.14);
}

.stage-chip strong {
  display: block;
  max-width: 150px;
  overflow: hidden;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-chip small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.59rem;
}

.stage-chip-1 { top: 8%; left: -2%; }
.stage-chip-2 { top: 34%; right: -4%; }
.stage-chip-3 { bottom: 9%; left: 4%; }

.stage-note {
  position: absolute;
  right: 3%;
  bottom: 2%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-3);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
}

.hero-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 38px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-bottom p {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-bottom .icon {
  width: 16px;
  height: 16px;
  color: var(--teal);
}

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

.section {
  padding-block: clamp(62px, 7.4vw, 100px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: clamp(28px, 3.6vw, 44px);
}

.section-head > div:first-child {
  max-width: 72ch;
}

.section-head h2 {
  max-width: 24ch;
}

.section-head .section-lead {
  margin-top: 14px;
}

.section-head .text-link {
  flex: 0 0 auto;
  margin-bottom: 6px;
}

/* ---------- Rank board ---------- */

.top-section {
  padding-top: 70px;
}

.rank-board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-3);
  overflow: hidden;
}

.rank-head,
.rank-row {
  display: grid;
  grid-template-columns: 46px 40px minmax(0, 1fr) 138px 92px 68px 24px;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
}

.rank-head {
  min-height: 38px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rank-head span:nth-child(5),
.rank-head span:nth-child(6) {
  text-align: right;
}

.rank-row {
  position: relative;
  min-height: 74px;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s ease;
}

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

.rank-row:hover {
  background: var(--paper);
}

.rank-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
}

.rank-row.is-vip::before {
  background: var(--orange);
}

.rank-number {
  color: var(--line-2);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
}

.rank-row.is-vip .rank-number {
  color: var(--orange-deep);
}

.rank-main {
  min-width: 0;
}

.rank-name {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  font-size: 0.86rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-name .badge {
  flex: 0 0 auto;
}

.rank-desc {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-category {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-subs {
  color: var(--ink-2);
  font-size: 0.79rem;
  font-weight: 800;
  text-align: right;
}

.rank-growth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  font-size: 0.72rem;
  font-weight: 800;
}

.rank-growth .icon {
  width: 11px;
  height: 11px;
}

.rank-arrow {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.18s ease, transform 0.18s ease;
}

.rank-arrow .icon {
  width: 14px;
  height: 14px;
}

.rank-row:hover .rank-arrow {
  background: var(--ink);
  color: var(--paper);
  transform: translateX(2px);
}

.board-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.72rem;
}

.board-foot p {
  display: flex;
  align-items: center;
  gap: 7px;
}

.board-foot .icon {
  width: 15px;
  height: 15px;
}

.board-foot .btn {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.72rem;
  border-color: var(--line);
}

/* ---------- How ---------- */

.how-section {
  border-top: 1px solid var(--line);
}

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

.how-card {
  position: relative;
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-3);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.how-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.how-number {
  position: absolute;
  top: 22px;
  right: 24px;
  color: var(--line-2);
  font-family: var(--font-display);
  font-size: 0.75rem;
}

.how-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 42px;
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal);
}

.how-icon .icon {
  width: 22px;
  height: 22px;
}

.how-card:nth-child(2) .how-icon {
  background: rgba(239, 96, 52, 0.14);
  color: var(--orange-deep);
}

.how-card:nth-child(3) .how-icon {
  background: rgba(245, 189, 79, 0.22);
  color: #7a5307;
}

.how-card h3 {
  margin-bottom: 8px;
  font-size: 1.03rem;
}

.how-card p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

/* ---------- VIP band ---------- */

.vip-band {
  padding-block: clamp(62px, 7vw, 92px);
  background: var(--teal);
  color: var(--paper);
  overflow: clip;
}

.vip-band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 54px;
  align-items: center;
}

.vip-band h2 {
  max-width: 13ch;
  color: var(--paper-3);
}

.vip-band p {
  max-width: 51ch;
  margin-top: 18px;
  color: rgba(255, 253, 248, 0.76);
  font-size: 0.98rem;
  line-height: 1.7;
}

.check-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: rgba(255, 253, 248, 0.88);
  font-size: 0.85rem;
  line-height: 1.45;
}

.check-list .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--amber);
}

.check-list-dark li {
  color: var(--ink-2);
}

.check-list-dark .icon {
  color: var(--teal);
}

.vip-band .button-row {
  margin-top: 30px;
}

.vip-card-stack {
  position: relative;
  min-height: 360px;
}

.vip-sample {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  width: 220px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-3);
  color: var(--ink);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.vip-sample span:not(.badge):not(.avatar) {
  font-size: 0.82rem;
  font-weight: 800;
}

.vip-sample em {
  color: var(--muted);
  font-size: 0.64rem;
  font-style: normal;
}

.vip-sample-back {
  top: 20px;
  right: 8%;
  transform: rotate(7deg);
  opacity: 0.82;
}

.vip-sample-front {
  bottom: 20px;
  left: 4%;
  transform: rotate(-4deg);
}

.vip-sample-front .badge {
  margin-bottom: 4px;
}

.vip-sample .avatar {
  margin-top: 6px;
}

/* ---------- Stars ---------- */

.stars-section {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

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

.star-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 295px;
  padding: 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--paper-3);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.star-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

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

.star-flag,
.plan-flag {
  position: absolute;
  top: -12px;
  left: 18px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.star-name {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.star-card.is-featured .star-name {
  color: rgba(255, 253, 248, 0.6);
}

.star-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.star-amount .icon {
  width: 22px;
  height: 22px;
  color: var(--amber);
  fill: var(--amber);
  stroke: var(--amber);
}

.star-amount small {
  color: var(--teal);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0;
}

.star-card.is-featured .star-amount small {
  color: var(--lime);
}

.star-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.star-card.is-featured .star-note {
  color: rgba(255, 253, 248, 0.68);
}

.star-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding-top: 20px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.star-price span {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0;
}

.star-card.is-featured .star-price span {
  color: rgba(255, 253, 248, 0.55);
}

.star-card .btn {
  margin-top: 14px;
}

.star-card.is-featured .btn-outline {
  background: var(--paper-3);
  border-color: var(--paper-3);
  color: var(--ink);
}

.star-card.is-featured .btn-outline:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

.star-card.is-featured .btn-ink {
  background: var(--paper-3);
  border-color: var(--paper-3);
  color: var(--ink);
}

.star-card.is-featured .btn-ink:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

.micro-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.micro-note .icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
}

/* ---------- Categories ---------- */

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

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.category-card:hover {
  background: var(--paper-3);
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.category-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal);
  transition: background 0.2s ease, color 0.2s ease;
}

.category-icon .icon {
  width: 19px;
  height: 19px;
}

.category-card:hover .category-icon {
  background: var(--orange);
  color: var(--white);
}

.category-name {
  margin-top: 18px;
  font-size: 0.82rem;
  font-weight: 800;
}

.category-count {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.64rem;
}

.category-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 16px;
  height: 16px;
  color: var(--line-2);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.category-card:hover .category-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--orange);
}

/* ---------- Exchange section ---------- */

.exchange-section {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

.exchange-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: center;
}

.exchange-copy h2 {
  max-width: 13ch;
}

.exchange-copy > p:not(.eyebrow) {
  max-width: 50ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.exchange-copy .btn {
  margin-top: 28px;
}

.exchange-list {
  display: grid;
  gap: 8px;
}

.exchange-mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-3);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.exchange-mini:hover {
  transform: translateX(3px);
  border-color: var(--ink);
}

.exchange-mini-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.exchange-mini strong {
  font-size: 0.9rem;
}

.exchange-mini > span:last-child {
  color: var(--muted);
  font-size: 0.68rem;
}

/* ---------- Blog ---------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-3);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.post-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 10;
  padding: 16px;
  background: var(--teal);
  overflow: hidden;
}

.post-visual::before,
.post-visual::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.post-visual span {
  position: relative;
  z-index: 2;
  padding: 4px 8px;
  border: 1px solid rgba(255, 253, 248, 0.38);
  border-radius: 999px;
  color: var(--paper);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-visual-grid {
  background-image:
    linear-gradient(rgba(255, 253, 248, 0.17) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 253, 248, 0.17) 1px, transparent 1px);
  background-size: 28px 28px;
}

.post-visual-stars::before {
  content: '★';
  top: -18px;
  right: 14px;
  color: rgba(245, 189, 79, 0.75);
  font-size: 150px;
  line-height: 1;
}

.post-visual-signal::before {
  inset: 30% -10% -30% 35%;
  border: 26px solid rgba(239, 96, 52, 0.7);
  border-radius: 50%;
}

.post-visual-signal::after {
  inset: 42% 10% -25% 50%;
  border: 1px solid rgba(255, 253, 248, 0.45);
  border-radius: 50%;
}

.post-visual-type {
  background: var(--ink);
}

.post-visual-type::before {
  content: 'Aa';
  top: -30px;
  right: 12px;
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 170px;
  line-height: 1;
  letter-spacing: -0.1em;
  opacity: 0.9;
}

.post-visual-chart {
  background: var(--paper-2);
}

.post-visual-chart::before {
  inset: 30% 12% 18% 12%;
  background: repeating-linear-gradient(90deg, var(--ink) 0 12px, transparent 12px 28px);
  clip-path: polygon(0 70%, 16% 55%, 32% 62%, 48% 30%, 64% 45%, 80% 15%, 100% 25%, 100% 100%, 0 100%);
}

.post-visual-chart span {
  border-color: var(--ink);
  color: var(--ink);
}

.post-visual-beacon {
  background: var(--orange);
}

.post-visual-beacon::before {
  content: '';
  inset: -20% 25% 20%;
  border: 1px solid rgba(255, 253, 248, 0.45);
  transform: rotate(45deg);
}

.post-visual-beacon::after {
  content: '';
  inset: 10% 38% 30%;
  border: 1px solid rgba(255, 253, 248, 0.55);
  transform: rotate(45deg);
}

.post-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.post-meta {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
}

.post-meta span {
  color: var(--line-2);
}

.post-body h3,
.post-body h2 {
  margin-top: 10px;
  font-size: 1.02rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.post-body h3 a:hover,
.post-body h2 a:hover {
  color: var(--orange-deep);
}

.post-body p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.post-body .text-link {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.76rem;
}

/* ---------- Final CTA ---------- */

.final-cta {
  padding-block: clamp(54px, 6vw, 76px);
  background: var(--ink);
  color: var(--paper);
}

.final-grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
}

.final-grid h2 {
  max-width: 19ch;
  color: var(--paper-3);
}

.final-grid p:not(.eyebrow) {
  max-width: 58ch;
  margin-top: 16px;
  color: rgba(255, 253, 248, 0.68);
  font-size: 0.92rem;
  line-height: 1.65;
}

.final-grid .button-row {
  flex: 0 0 auto;
}

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

.site-footer {
  padding-top: 58px;
  background: var(--teal-deep);
  color: rgba(255, 253, 248, 0.74);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 0.7fr);
  gap: 36px;
  padding-bottom: 46px;
}

.brand-footer .brand-mark,
.brand-footer .brand-text strong {
  color: var(--paper);
}

.brand-footer .brand-text small {
  color: rgba(255, 253, 248, 0.5);
}

.footer-brand p {
  max-width: 38ch;
  margin-top: 16px;
  font-size: 0.8rem;
  line-height: 1.6;
}

.footer-demo {
  color: rgba(255, 253, 248, 0.45) !important;
  font-size: 0.68rem !important;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-col h3 {
  margin-bottom: 5px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-col a {
  color: rgba(255, 253, 248, 0.64);
  font-size: 0.78rem;
  transition: color 0.18s ease;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
  border-top: 1px solid rgba(255, 253, 248, 0.13);
  color: rgba(255, 253, 248, 0.42);
  font-size: 0.65rem;
}

/* ---------- Listing head ---------- */

.listing-head {
  padding: 28px 0 12px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 0.68rem;
}

.breadcrumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs span[aria-hidden] {
  color: var(--line-2);
}

.listing-head-grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
}

.listing-head h1 {
  max-width: 16ch;
  font-size: clamp(2.5rem, 4.6vw, 4.25rem);
}

.listing-head .page-lead {
  margin-top: 18px;
}

.listing-head-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  flex: 0 0 210px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.listing-head-note .live-dot {
  margin-top: 4px;
}

/* ---------- Catalog ---------- */

.catalog-section {
  padding-top: 34px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 15px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-3);
}

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

.filter-head h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.filter-head .icon {
  width: 16px;
  height: 16px;
}

.filter-reset {
  color: var(--muted);
  font-size: 0.64rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.filter-reset:hover {
  color: var(--orange-deep);
}

.filter-toggle {
  display: none;
  margin-bottom: 2px;
}

@media (max-width: 760px) {
  .filter-toggle { display: inline-flex; }
  .filters.is-collapsed .field,
  .filters.is-collapsed .switch-field,
  .filters.is-collapsed > .btn:not(.filter-toggle) {
    display: none;
  }
  .filters.is-collapsed > .btn.filter-toggle {
    display: inline-flex;
  }
  .filters.is-collapsed {
    padding-bottom: 16px;
  }
}

.field {
  display: grid;
  gap: 6px;
}

.field > span:first-child {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.field textarea {
  min-height: 102px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  background: var(--white);
}

.input-with-icon {
  position: relative;
  display: block;
}

.input-with-icon .icon {
  position: absolute;
  top: 50%;
  left: 11px;
  width: 15px;
  height: 15px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 33px;
}

.switch-field {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.switch-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--line);
  transition: background 0.18s ease;
}

.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.18s ease;
}

.switch-field input:checked + .switch {
  background: var(--teal);
}

.switch-field input:checked + .switch::after {
  transform: translateX(14px);
}

.switch-field input:focus-visible + .switch {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

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

.catalog-toolbar > p {
  color: var(--muted);
  font-size: 0.74rem;
}

.catalog-toolbar strong {
  color: var(--ink);
}

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-sort label {
  color: var(--muted);
  font-size: 0.66rem;
}

.catalog-sort select {
  min-height: 36px;
  padding: 6px 26px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-3);
  font-size: 0.7rem;
  font-weight: 700;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--paper-3);
  font-size: 0.65rem;
  font-weight: 700;
}

.active-filter span {
  color: var(--orange);
  font-size: 0.9rem;
  line-height: 1;
}

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

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 32px;
}

.page-btn {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding-inline: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper-3);
  font-size: 0.72rem;
  font-weight: 800;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.page-btn:hover,
.page-btn.is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

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

.page-next .icon {
  transform: rotate(180deg);
}

.catalog-seo {
  max-width: 78ch;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.catalog-seo h2 {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.catalog-seo p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.7;
}

.catalog-seo a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 48px 34px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: var(--paper-3);
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--muted);
}

.empty-state h2 {
  font-size: 1.5rem;
}

.empty-state p {
  max-width: 52ch;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.84rem;
}

.empty-state .btn {
  margin-top: 20px;
}

/* ---------- Category ---------- */

.category-head {
  padding-bottom: 20px;
}

.category-hero {
  display: flex;
  align-items: center;
  gap: 22px;
}

.category-hero-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 82px;
  height: 82px;
  border-radius: 22px;
  background: var(--teal);
  color: var(--paper);
}

.category-hero-icon .icon {
  width: 36px;
  height: 36px;
}

.category-hero > div {
  min-width: 0;
}

.category-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  padding-left: 26px;
  border-left: 1px solid var(--line);
  text-align: right;
}

.category-hero-stat strong {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.category-hero-stat span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.4;
}

.category-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-3);
}

.category-cta p {
  color: var(--muted);
  font-size: 0.8rem;
}

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

.profile-head {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-3);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 38px;
  align-items: end;
}

.profile-title-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.profile-title-row h1 {
  max-width: 18ch;
  font-size: clamp(2rem, 3.8vw, 3.5rem);
}

.profile-handle {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.7rem;
}

.profile-desc {
  max-width: 66ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.profile-actions .btn {
  min-height: 42px;
  padding: 9px 16px;
  font-size: 0.76rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
  overflow: hidden;
}

.stat-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 82px;
  padding: 15px;
  background: var(--paper-3);
}

.stat-block span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-block small {
  color: var(--muted);
  font-size: 0.6rem;
  line-height: 1.3;
}

.profile-body {
  padding-top: 44px;
}

.profile-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  align-items: start;
}

.profile-article > h2 {
  margin-top: 34px;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.profile-article > h2:first-child {
  margin-top: 0;
}

.profile-article > p {
  max-width: 70ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.topic-pill {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal-deep);
  font-size: 0.68rem;
  font-weight: 700;
}

.profile-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 26px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-3);
}

.profile-note > span {
  color: var(--teal);
}

.profile-note p {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.similar-grid .channel-card {
  min-height: 230px;
  padding: 18px;
}

.similar-grid .card-desc {
  -webkit-line-clamp: 2;
}

.side-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-3);
}

.side-card + .side-card {
  margin-top: 14px;
}

.side-card-accent {
  background: var(--teal);
  color: var(--paper);
  border-color: var(--teal);
}

.side-card h2,
.side-card h3 {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

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

.side-card .btn {
  margin-top: 16px;
}

.side-card-accent .eyebrow,
.side-card-accent p {
  color: rgba(255, 253, 248, 0.7);
}

.side-card-accent h2,
.side-card-accent h3 {
  color: var(--paper-3);
}

.side-card-accent .btn-ink {
  background: var(--paper-3);
  color: var(--ink);
  border-color: var(--paper-3);
}

.side-card-accent .btn-ink:hover {
  background: var(--amber);
  border-color: var(--amber);
}

.side-card-muted {
  background: var(--paper-2);
}

/* ---------- Product hero (stars / VIP) ---------- */

.product-hero {
  padding: 26px 0 clamp(50px, 6vw, 74px);
  background: var(--teal);
  color: var(--paper);
  overflow: clip;
}

.stars-hero {
  background: var(--teal-deep);
}

.vip-product-hero {
  background: var(--ink);
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 44px;
  align-items: center;
  min-height: 560px;
  padding-top: 18px;
}

.product-hero .breadcrumbs,
.product-hero .breadcrumbs a,
.product-hero .breadcrumbs span {
  color: rgba(255, 253, 248, 0.52);
}

.product-hero h1 {
  max-width: 14ch;
  color: var(--paper-3);
  font-size: clamp(2.5rem, 4.6vw, 4.5rem);
}

.product-hero .page-lead {
  max-width: 54ch;
  margin-top: 20px;
  color: rgba(255, 253, 248, 0.73);
}

.product-hero .button-row {
  margin-top: 28px;
}

.product-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 253, 248, 0.16);
}

.product-facts span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 253, 248, 0.62);
  font-size: 0.68rem;
  font-weight: 700;
}

.product-facts .icon {
  width: 15px;
  height: 15px;
  color: var(--amber);
}

.stars-visual {
  position: relative;
  width: 100%;
  max-width: 470px;
  aspect-ratio: 1;
  margin-left: auto;
}

.star-orbit {
  position: absolute;
  border: 1px solid rgba(245, 189, 79, 0.33);
  border-radius: 50%;
}

.star-orbit-1 { inset: 4%; }
.star-orbit-2 { inset: 17%; border-color: rgba(255, 253, 248, 0.18); }
.star-orbit-3 { inset: 30%; border-color: rgba(255, 253, 248, 0.13); }

.star-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 134px;
  height: 134px;
  border-radius: 50%;
  background: var(--amber);
  color: #3d2a05;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 18px rgba(245, 189, 79, 0.08), 0 24px 50px rgba(0, 0, 0, 0.25);
}

.star-core .icon {
  width: 58px;
  height: 58px;
  fill: currentColor;
  stroke: currentColor;
}

.star-float {
  position: absolute;
  padding: 7px 11px;
  border: 1px solid rgba(255, 253, 248, 0.26);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.08);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: -0.02em;
  backdrop-filter: blur(8px);
}

.star-float-1 { top: 4%; left: 24%; }
.star-float-2 { top: 37%; right: -2%; }
.star-float-3 { bottom: 10%; right: 17%; }
.star-float-4 { bottom: 26%; left: -2%; }

.vip-product-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 390px;
}

.vip-ticket {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(320px, 85%);
  padding: 24px;
  border-radius: 18px;
  background: var(--amber);
  color: #2f2308;
  transform: rotate(-4deg);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

.vip-ticket-top {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.vip-ticket strong {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1;
}

.vip-ticket-line {
  display: block;
  margin: 20px 0;
  border-top: 1px dashed rgba(47, 35, 8, 0.45);
}

.vip-ticket small {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vip-ticket-code {
  margin-top: 20px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.vip-ticket-shadow {
  position: absolute;
  z-index: 1;
  width: min(300px, 80%);
  height: 350px;
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: 18px;
  transform: rotate(7deg) translate(22px, 4px);
}

/* ---------- Star grid wide ---------- */

.star-grid-wide {
  gap: 18px;
}

.star-grid-wide .star-card {
  min-height: 330px;
}

/* ---------- Split section ---------- */

.split-section {
  border-top: 1px solid var(--line);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 54px;
  align-items: start;
}

.split-grid h2 {
  max-width: 16ch;
  margin-bottom: 16px;
}

.split-grid .section-lead {
  margin-bottom: 28px;
}

.steps-list {
  display: grid;
  gap: 1px;
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
  overflow: hidden;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: var(--paper-3);
}

.step > span {
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
}

.step h3 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
}

.step p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.rules-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}

.rules-card h3 {
  color: var(--paper-3);
  font-size: 1.3rem;
}

.rules-card dl {
  margin-top: 20px;
}

.rules-card dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-block: 10px;
  border-bottom: 1px solid rgba(255, 253, 248, 0.12);
}

.rules-card dt {
  color: rgba(255, 253, 248, 0.58);
  font-size: 0.71rem;
}

.rules-card dd {
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: right;
}

.rules-card p {
  margin-top: 20px;
  color: rgba(255, 253, 248, 0.55);
  font-size: 0.72rem;
  line-height: 1.6;
}

/* ---------- FAQ ---------- */

.faq-section {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

.narrow {
  max-width: 850px;
}

.narrow h2 {
  margin-bottom: 24px;
}

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '+';
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.faq p {
  max-width: 75ch;
  padding-bottom: 20px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

/* ---------- VIP plans ---------- */

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

.vip-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-3);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.vip-plan:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.vip-plan.is-featured {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--paper);
}

.plan-name {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vip-plan.is-featured .plan-name {
  color: rgba(255, 253, 248, 0.6);
}

.plan-days {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 700;
}

.vip-plan.is-featured .plan-days {
  color: rgba(255, 253, 248, 0.7);
}

.plan-price {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.plan-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.vip-plan.is-featured .plan-note {
  color: rgba(255, 253, 248, 0.65);
}

.plan-list {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.vip-plan.is-featured .plan-list {
  border-color: rgba(255, 253, 248, 0.16);
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
}

.vip-plan.is-featured .plan-list li {
  color: rgba(255, 253, 248, 0.75);
}

.plan-list .icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: var(--teal);
}

.vip-plan.is-featured .plan-list .icon {
  color: var(--amber);
}

.vip-plan .btn {
  margin-top: 24px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 26px;
}

.benefit {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-3);
}

.benefit > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 9px;
  background: var(--teal-soft);
  color: var(--teal);
}

.benefit h3 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
}

.benefit p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.compare-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-3);
}

.compare-card h3 {
  font-size: 1.25rem;
}

.compare-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 0.74rem;
}

.compare-table th,
.compare-table td {
  padding: 10px 7px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compare-table tbody th {
  color: var(--muted);
  font-weight: 600;
}

.compare-table td:nth-child(3) {
  color: var(--teal);
  font-weight: 700;
}

.compare-card > p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.6;
}

/* ---------- Exchange page ---------- */

.exchange-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.exchange-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.field-inline {
  display: flex;
  align-items: center;
  gap: 7px;
}

.field-inline span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.field-inline select {
  min-height: 38px;
  padding: 7px 28px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-3);
  font-size: 0.72rem;
}

.exchange-grid-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.listing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.listing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.listing-flag {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--amber);
  color: #3d2a05;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.listing-top {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-right: 66px;
}

.listing-top h2 {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
}

.listing-top h2 a:hover {
  color: var(--orange-deep);
}

.listing-top p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.64rem;
}

.listing-card > h3 {
  margin-top: 20px;
  font-size: 1rem;
}

.listing-desc {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.listing-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 20px;
}

.listing-bottom > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.listing-format {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.listing-bottom strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.listing-bottom .btn {
  min-height: 40px;
  padding: 8px 13px;
  font-size: 0.7rem;
}

.exchange-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.exchange-info h2 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.exchange-info p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

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

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 42px;
  align-items: start;
}

.form-card {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-3);
}

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

.field-wide {
  grid-column: 1 / -1;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.check-row input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--teal);
  flex: 0 0 auto;
}

.check-row a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-card > .btn {
  margin-top: 22px;
}

.form-hint {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.form-hint a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-aside {
  padding-top: 10px;
}

.form-aside h2 {
  margin-bottom: 14px;
  font-size: 1.3rem;
}

.form-aside > p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.form-aside > p a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-aside .faq {
  margin-top: 4px;
}

.form-aside .faq summary {
  font-size: 0.76rem;
  padding: 13px 0;
}

.form-aside .faq p {
  font-size: 0.73rem;
}

.number-list {
  display: grid;
  gap: 14px;
}

.number-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.number-list span {
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.6;
}

.number-list p {
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.55;
}

.aside-note {
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.55;
}

.aside-note .icon {
  width: 14px;
  height: 14px;
  margin-right: 5px;
  vertical-align: -2px;
  color: var(--teal);
}

/* ---------- Auth ---------- */

.auth-page {
  padding: 28px 0 78px;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.72fr);
  gap: 56px;
  align-items: start;
}

.auth-copy h1 {
  max-width: 15ch;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 4vw, 3.8rem);
}

.auth-tabs {
  display: flex;
  gap: 4px;
  margin-top: 28px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  width: fit-content;
}

.auth-tabs a {
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.auth-tabs a.is-active {
  background: var(--paper-3);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(17, 26, 44, 0.08);
}

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

.auth-form .field + .field {
  margin-top: 12px;
}

.demo-credentials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.68rem;
}

.demo-credentials p {
  margin-right: 4px;
}

.demo-credentials code {
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 0.68rem;
}

.auth-aside {
  position: sticky;
  top: 100px;
}

.auth-beacon {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--paper);
}

.beacon-illustration {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 26px;
}

.beacon-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--amber);
  transform: translate(-50%, -50%);
}

.beacon-ring {
  position: absolute;
  inset: 22%;
  border: 1px solid rgba(255, 253, 248, 0.35);
  border-radius: 50%;
}

.beacon-ring-2 { inset: 8%; border-color: rgba(255, 253, 248, 0.22); }
.beacon-ring-3 { inset: -8%; border-color: rgba(255, 253, 248, 0.12); }

.auth-beacon h2 {
  color: var(--paper-3);
  font-size: 1.6rem;
}

.auth-beacon .check-list {
  margin-top: 18px;
}

.auth-beacon .aside-note {
  border-color: rgba(255, 253, 248, 0.16);
  color: rgba(255, 253, 248, 0.55);
}

/* ---------- Account ---------- */

.account-head {
  padding: 28px 0 26px;
  background: var(--paper-3);
  border-bottom: 1px solid var(--line);
}

.account-title {
  display: flex;
  align-items: center;
  gap: 18px;
}

.account-big-avatar {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: var(--teal);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
}

.account-title h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.9rem);
}

.account-title p {
  margin-top: 2px;
  font-size: 0.7rem;
}

.account-title > .btn {
  margin-left: auto;
}

.account-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 26px;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-3);
}

.metric span {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.metric small {
  color: var(--muted);
  font-size: 0.62rem;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-3);
}

.panel + .panel {
  margin-top: 18px;
}

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

.panel-head h2 {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.panel-head .text-link {
  font-size: 0.72rem;
}

.orders-table {
  border-top: 1px solid var(--line);
}

.orders-head,
.order-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.7fr 0.8fr 0.7fr;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.orders-head {
  color: var(--muted);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-row {
  font-size: 0.74rem;
}

.order-row > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.order-row small {
  color: var(--muted);
  font-size: 0.62rem;
}

.status {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-paid,
.status-published {
  background: var(--teal-soft);
  color: var(--teal);
}

.status-pending {
  background: rgba(245, 189, 79, 0.22);
  color: #6c4a06;
}

.status-rejected {
  background: rgba(239, 96, 52, 0.14);
  color: var(--orange-deep);
}

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

.my-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.my-channel:hover {
  border-color: var(--ink);
  background: var(--paper);
}

.my-channel > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.my-channel small {
  color: var(--muted);
  font-size: 0.62rem;
}

.my-channel > .icon {
  margin-left: auto;
  width: 15px;
  height: 15px;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.admin-row > div:first-child {
  min-width: 0;
}

.admin-row strong {
  display: block;
  font-size: 0.84rem;
}

.admin-row small {
  display: block;
  color: var(--muted);
  font-size: 0.63rem;
}

.admin-row p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.admin-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

/* ---------- Account cabinet ---------- */

[hidden] {
  display: none !important;
}

.account-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
}

.account-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.account-hero .page-lead {
  margin-top: 12px;
}

.account-profile-card {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 390px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-3);
}

.account-profile-card .account-big-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 1.25rem;
}

.account-profile-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.account-profile-info strong {
  font-size: 0.82rem;
}

.account-profile-info > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 5px;
}

.account-profile-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
}

.account-profile-meta .icon {
  width: 11px;
  height: 11px;
}

.account-profile-card > .btn {
  margin-left: auto;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.64rem;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  margin-bottom: 16px;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper-3);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.quick-action:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  box-shadow: 0 12px 28px rgba(17, 26, 44, 0.08);
}

.quick-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal);
}

.quick-action:nth-child(2) .quick-icon {
  background: rgba(239, 96, 52, 0.13);
  color: var(--orange-deep);
}

.quick-action:nth-child(3) .quick-icon {
  background: rgba(245, 189, 79, 0.25);
  color: #73500a;
}

.quick-action:nth-child(4) .quick-icon {
  background: rgba(13, 75, 72, 0.10);
  color: var(--teal);
}

.quick-icon .icon {
  width: 18px;
  height: 18px;
}

.quick-action > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.quick-action strong {
  font-size: 0.76rem;
}

.quick-action small {
  color: var(--muted);
  font-size: 0.6rem;
}

.quick-arrow {
  width: 15px;
  height: 15px;
  margin-left: auto;
  color: var(--line-2);
}

.partner-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 0;
  border-radius: 14px;
  background: var(--teal);
  color: var(--paper);
  text-align: left;
  transition: background 0.2s ease, transform 0.2s ease;
}

.partner-banner:hover {
  background: var(--teal-deep);
  transform: translateY(-1px);
}

.partner-banner-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.10);
  color: var(--amber);
  flex: 0 0 auto;
}

.partner-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.partner-banner-text strong {
  font-size: 0.82rem;
}

.partner-banner-text small {
  color: rgba(255, 253, 248, 0.66);
  font-size: 0.63rem;
}

.partner-banner .btn {
  margin-left: auto;
  min-height: 34px;
  padding: 7px 13px;
  font-size: 0.64rem;
}

.account-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.account-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 13px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.71rem;
  font-weight: 800;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.account-tab .icon {
  width: 14px;
  height: 14px;
}

.account-tab span {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding-inline: 4px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 0.56rem;
}

.account-tab:hover {
  color: var(--ink);
}

.account-tab.is-active {
  border-color: var(--orange);
  color: var(--ink);
}

.account-tab.is-active span {
  background: var(--orange);
  color: var(--white);
}

.account-panels {
  padding-top: 20px;
}

.account-panel {
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-3);
}

.account-panel .panel-head {
  margin-top: 0;
}

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

.account-metrics.compact {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 16px;
}

.account-metrics.compact .metric {
  padding: 13px 14px;
}


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

.owner-channel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.owner-channel-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.owner-channel-info {
  min-width: 0;
}

.owner-channel-info h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0;
}

.owner-channel-info h3 a:hover {
  color: var(--orange-deep);
}

.owner-channel-info p {
  color: var(--muted);
  font-size: 0.62rem;
}

.owner-channel-main .status {
  margin-left: auto;
}

.owner-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.owner-stats div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.owner-stats strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.owner-stats small {
  color: var(--muted);
  font-size: 0.56rem;
}

.owner-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 48px;
  margin-top: 12px;
}

.owner-chart span {
  flex: 1;
  height: var(--bar);
  min-height: 4px;
  border-radius: 3px 3px 0 0;
  background: var(--teal-soft);
}

.owner-chart span:nth-last-child(-n + 2) {
  background: var(--teal);
}

.owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.owner-actions .btn {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 0.66rem;
}

.favorite-toggle.is-active {
  background: rgba(239, 96, 52, 0.10);
  color: var(--orange-deep);
}

.favorite-toggle.is-active .icon {
  fill: var(--orange);
  stroke: var(--orange);
}

.exchange-my-list {
  display: grid;
  gap: 8px;
}

.exchange-my-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.exchange-my-item:hover {
  border-color: var(--ink);
  transform: translateX(2px);
}

.exchange-my-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.exchange-my-main strong {
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exchange-my-main small {
  color: var(--muted);
  font-size: 0.62rem;
}

.exchange-my-item > .status {
  margin-left: auto;
}

.exchange-my-item > .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.referral-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.referral-box > div {
  min-width: 0;
}

.referral-box .eyebrow {
  margin-bottom: 6px;
}

.referral-box code {
  display: block;
  overflow: hidden;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referral-box small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.6rem;
}

.referral-box .btn {
  margin-left: auto;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.68rem;
}

.partner-table {
  margin-top: 0;
}

.partner-table th,
.partner-table td {
  font-size: 0.72rem;
}

.account-panel > .muted.small {
  margin-top: 14px;
  font-size: 0.66rem;
  line-height: 1.6;
}

.small {
  font-size: 0.7rem;
}

/* ---------- Article ---------- */

.article-head {
  padding-top: 30px;
}

.article-head h1 {
  max-width: 20ch;
  margin-top: 10px;
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
}

.article-lead {
  max-width: 65ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 54px;
  align-items: start;
  padding-block: 42px 80px;
}

.article-body {
  max-width: 70ch;
}

.article-body h2 {
  margin-top: 34px;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.article-body p {
  margin-top: 13px;
  color: var(--ink-2);
  font-size: 0.93rem;
  line-height: 1.8;
}

.article-body ul {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-left: 18px;
  list-style: disc;
}

.article-body li {
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.7;
}

.article-body a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.aside-post {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
}

.aside-post:last-child {
  border-bottom: 0;
}

.aside-post strong {
  font-size: 0.76rem;
  line-height: 1.4;
}

.aside-post:hover strong {
  color: var(--orange-deep);
}

.aside-post span {
  color: var(--muted);
  font-size: 0.6rem;
}

/* ---------- About / contacts / legal ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 54px;
  align-items: start;
}

.about-copy h2 {
  margin-top: 32px;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.about-copy h2:first-child {
  margin-top: 0;
}

.about-copy p {
  max-width: 68ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.about-quote {
  margin-top: 32px;
  padding: 24px;
  border-left: 3px solid var(--orange);
  background: var(--paper-3);
}

.about-quote p {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.45;
  letter-spacing: -0.03em;
}

.about-quote span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.66rem;
}

.about-side {
  display: grid;
  gap: 10px;
}

.about-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-3);
}

.about-card span {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.about-card small {
  color: var(--muted);
  font-size: 0.65rem;
}

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

.legal-body h2 {
  margin-top: 30px;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  max-width: 72ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.75;
}

.legal-body a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-aside {
  position: sticky;
  top: 100px;
}

/* ---------- 404 ---------- */

.not-found {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 380px);
  padding-block: 80px;
}

.not-found h1 {
  max-width: 13ch;
  margin-top: 12px;
}

.not-found .page-lead {
  margin-top: 20px;
}

.not-found .button-row {
  margin-top: 28px;
}

/* ---------- Dialog ---------- */

.buy-dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--paper-3);
  color: var(--ink);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.32);
  overflow: auto;
}

.buy-dialog::backdrop {
  background: rgba(7, 22, 21, 0.58);
  backdrop-filter: blur(4px);
}

.dialog-shell {
  position: relative;
  padding: 28px;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  transition: background 0.18s ease, border-color 0.18s ease;
}

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

.dialog-close .icon {
  width: 16px;
  height: 16px;
}

.buy-head {
  padding-right: 36px;
}

.buy-head .eyebrow {
  margin-bottom: 10px;
}

.buy-head h2 {
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.buy-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.buy-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.buy-summary span {
  color: var(--muted);
  font-size: 0.7rem;
}

.buy-summary strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.buy-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.buy-form .field {
  gap: 5px;
}

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

.buy-steps {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}

.buy-steps span {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: var(--line);
}

.buy-steps span.is-active {
  background: var(--orange);
}

.buy-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 8px;
}

.buy-success-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--paper);
}

.buy-success-icon .icon {
  width: 26px;
  height: 26px;
}

.buy-success h2 {
  margin-top: 16px;
  font-size: 1.5rem;
}

.buy-success p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.buy-success .btn {
  margin-top: 20px;
}

.buy-error {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  background: rgba(239, 96, 52, 0.12);
  color: var(--orange-deep);
  font-size: 0.72rem;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  max-width: min(380px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.78rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

/* ---------- Entrance motion ---------- */

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

[data-enter] > * {
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

[data-enter] > *:nth-child(1) { animation-delay: 0.04s; }
[data-enter] > *:nth-child(2) { animation-delay: 0.10s; }
[data-enter] > *:nth-child(3) { animation-delay: 0.16s; }
[data-enter] > *:nth-child(4) { animation-delay: 0.22s; }
[data-enter] > *:nth-child(5) { animation-delay: 0.28s; }
[data-enter] > *:nth-child(6) { animation-delay: 0.34s; }
[data-enter] > *:nth-child(7) { animation-delay: 0.40s; }
[data-enter] > *:nth-child(8) { animation-delay: 0.46s; }

.hero-visual[data-enter] {
  animation: rise 0.9s 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

@media (max-width: 1120px) {
  .wrap { width: calc(100% - 48px); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr); gap: 28px; }
  .hero-copy h1 { font-size: clamp(2.5rem, 5.8vw, 4.2rem); }
  .channel-grid { grid-template-columns: repeat(2, 1fr); }
  .star-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-stats { max-width: 520px; }
  .profile-body-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 30px; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 36px; }
}

@media (max-width: 960px) {
  .header-add { display: none; }
  .main-nav > a:not(.mobile-only) { padding: 9px 10px; font-size: 0.76rem; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding-block: 12px 40px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { max-width: 560px; margin: 4px auto 0; }
  .hero-stage { max-width: 500px; }
  .hero-stats { max-width: 620px; }
  .vip-band-grid { grid-template-columns: 1fr; gap: 36px; }
  .vip-card-stack { min-height: 300px; max-width: 500px; }
  .exchange-grid { grid-template-columns: 1fr; gap: 34px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid-all .post-card:last-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 0.7fr); gap: 24px; }
  .catalog-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
  .channel-grid { gap: 12px; }
  .channel-card { padding: 18px; min-height: 240px; }
  .product-hero-grid { grid-template-columns: 1fr; min-height: auto; padding-block: 10px 24px; }
  .stars-visual { max-width: 360px; margin: 10px auto 0; }
  .vip-product-visual { min-height: 330px; }
  .split-grid { grid-template-columns: 1fr; gap: 34px; }
  .vip-plan-grid { gap: 12px; }
  .form-layout { grid-template-columns: 1fr; gap: 30px; }
  .form-aside { max-width: 680px; }
  .auth-grid { grid-template-columns: 1fr; gap: 34px; }
  .auth-aside { position: static; max-width: 640px; }
  .account-grid { grid-template-columns: 1fr; }
  .account-side { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .account-side .side-card + .side-card { margin-top: 0; }
  .about-grid, .legal-layout { grid-template-columns: 1fr; gap: 30px; }
  .about-side, .legal-aside { position: static; max-width: 600px; }
  .article-layout { grid-template-columns: 1fr; gap: 30px; }
  .article-aside { max-width: 640px; }
  .profile-body-grid { grid-template-columns: 1fr; }
  .profile-side { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .profile-side .side-card + .side-card { margin-top: 0; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { backdrop-filter: blur(10px); }
  .header-inner { min-height: 66px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-text strong { font-size: 1.05rem; }
  .brand-text small { font-size: 0.48rem; }
  .main-nav {
    position: fixed;
    inset: 66px 0 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    height: calc(100dvh - 66px);
    padding: 18px 16px 30px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav > a { padding: 16px 12px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav > a.is-active::after { display: none; }
  .main-nav .mobile-only { display: block; margin-top: 10px; border: 0; color: var(--orange-deep); }
  .header-actions .btn-quiet,
  .header-actions .account-chip { display: none; }
  .menu-toggle { display: flex; }
  .hero { padding-top: 8px; }
  .hero-grid { padding-block: 10px 30px; gap: 24px; }
  .hero-copy h1 { max-width: 100%; font-size: clamp(2.35rem, 10.5vw, 3.7rem); }
  .hero-lead { margin-top: 18px; font-size: 0.98rem; }
  .hero-search { margin-top: 24px; }
  .hero-search .btn { padding-inline: 16px; }
  .hero-stats { gap: 22px; margin-top: 28px; }
  .hero-stats dt { font-size: 1.3rem; }
  .hero-stage { max-width: 430px; }
  .stage-chip { min-width: 168px; padding: 7px 9px; }
  .stage-chip strong { font-size: 0.64rem; max-width: 124px; }
  .stage-chip small { font-size: 0.54rem; }
  .stage-chip-1 { left: -2%; }
  .stage-chip-2 { right: -2%; }
  .stage-core { width: 124px; height: 124px; }
  .stage-core .brand-mark { width: 34px; height: 34px; }
  .hero-bottom { gap: 12px 22px; padding-block: 14px; }
  .hero-bottom p { font-size: 0.58rem; }
  .section-head { display: block; }
  .section-head .text-link { margin-top: 16px; }
  .rank-head { display: none; }
  .rank-row {
    grid-template-columns: 32px 36px minmax(0, 1fr) 58px 20px;
    gap: 8px;
    padding: 11px 12px;
  }
  .rank-row .rank-category,
  .rank-row .rank-growth { display: none; }
  .rank-subs { font-size: 0.7rem; }
  .rank-desc { max-width: 46ch; }
  .board-foot { align-items: flex-start; flex-direction: column; gap: 12px; }
  .how-grid { grid-template-columns: 1fr; }
  .how-card { min-height: 0; }
  .how-icon { margin-bottom: 24px; }
  .vip-card-stack { min-height: 280px; }
  .vip-sample { width: 195px; }
  .vip-sample-back { right: 0; }
  .star-grid { grid-template-columns: 1fr 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .category-card { min-height: 135px; padding: 16px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-grid-all .post-card:last-child { grid-column: auto; }
  .final-grid { display: block; }
  .final-grid .button-row { margin-top: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: 6px; }
  .listing-head { padding-top: 20px; }
  .listing-head-grid { display: block; }
  .listing-head h1 { font-size: clamp(2.1rem, 8.4vw, 3.2rem); }
  .listing-head-note { margin-top: 20px; max-width: 250px; }
  .breadcrumbs { margin-bottom: 24px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .catalog-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .channel-grid { grid-template-columns: 1fr; }
  .pagination { flex-wrap: wrap; }
  .category-hero { align-items: flex-start; flex-wrap: wrap; }
  .category-hero-icon { width: 60px; height: 60px; border-radius: 16px; }
  .category-hero-icon .icon { width: 27px; height: 27px; }
  .category-hero-stat { margin-left: 0; padding-left: 0; border-left: 0; align-items: flex-start; width: 100%; flex-direction: row; gap: 8px; margin-top: 10px; }
  .category-hero-stat strong { font-size: 1.4rem; }
  .category-cta { align-items: flex-start; flex-direction: column; }
  .profile-title-row { gap: 14px; }
  .avatar-xl { width: 74px; height: 74px; border-radius: 20px; font-size: 1.6rem; }
  .profile-stats { grid-template-columns: 1fr 1fr; }
  .profile-side { grid-template-columns: 1fr; }
  .profile-side .side-card + .side-card { margin-top: 12px; }
  .similar-grid { grid-template-columns: 1fr; }
  .star-grid-wide { grid-template-columns: 1fr 1fr; }
  .star-card { min-height: 280px; }
  .vip-plan-grid { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .compare-card { overflow-x: auto; }
  .exchange-toolbar { display: block; }
  .exchange-filters { margin-bottom: 14px; }
  .exchange-grid-cards { grid-template-columns: 1fr; }
  .exchange-info { grid-template-columns: 1fr; gap: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .account-metrics { grid-template-columns: 1fr 1fr; }
  .account-title { flex-wrap: wrap; }
  .account-title > .btn { margin-left: 0; }
  .account-side { grid-template-columns: 1fr; }
  .account-side .side-card + .side-card { margin-top: 12px; }
  .orders-head { display: none; }
  .order-row { grid-template-columns: 1.4fr 0.8fr 0.7fr; gap: 8px; font-size: 0.7rem; }
  .order-row > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .order-row > span:nth-child(5) { display: none; }
  .admin-row { flex-direction: column; gap: 12px; }
  .article-body h2 { font-size: 1.35rem; }
  .about-copy h2, .legal-body h2 { font-size: 1.3rem; }
  .dialog-shell { padding: 22px; }
  .product-facts { gap: 9px 14px; }
  .star-float { font-size: 0.6rem; padding: 6px 9px; }
}

@media (max-width: 460px) {
  .wrap { width: calc(100% - 28px); }
  .hero-copy h1 { font-size: clamp(2.1rem, 12vw, 3rem); }
  .hero-search { border-radius: 16px; padding: 6px; flex-wrap: wrap; }
  .hero-search input { width: calc(100% - 52px); flex: none; }
  .hero-search .btn { width: 100%; }
  .hero-tags { font-size: 0.66rem; }
  .hero-stats { gap: 16px 22px; }
  .hero-stats div { flex: 1 1 40%; }
  .hero-stage { max-width: 340px; }
  .stage-chip { min-width: 148px; }
  .stage-chip strong { max-width: 105px; }
  .stage-chip-1 { top: 5%; left: -1%; }
  .stage-chip-2 { top: 40%; right: -1%; }
  .stage-chip-3 { bottom: 4%; left: 0; }
  .stage-note { display: none; }
  .stage-core { width: 104px; height: 104px; }
  .stage-core span { font-size: 0.46rem; }
  .rank-row { grid-template-columns: 26px 32px minmax(0, 1fr) 20px; }
  .rank-subs { display: none; }
  .star-grid, .star-grid-wide { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 108px; }
  .category-name { margin-top: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .account-metrics { grid-template-columns: 1fr 1fr; }
  .account-title { gap: 12px; }
  .account-big-avatar { width: 58px; height: 58px; border-radius: 16px; font-size: 1.4rem; }
  .benefit-grid { grid-template-columns: 1fr; }
  .vip-sample { width: 170px; padding: 14px; }
  .vip-sample-back { right: -4%; }
  .vip-sample-front { left: 0; }
  .vip-card-stack { min-height: 250px; }
  .brand-text small { display: none; }
  .header-actions { gap: 4px; }
  .buy-dialog { width: calc(100vw - 20px); }
  .order-row { grid-template-columns: 1.4fr 0.8fr; }
  .order-row > span:nth-child(3) { display: none; }
}

@media (max-width: 960px) {
  .account-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }
  .account-profile-card {
    flex: 0 1 auto;
  }
  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .account-hero h1 {
    font-size: clamp(2rem, 8vw, 2.7rem);
  }
  .account-profile-card {
    flex-wrap: wrap;
  }
  .account-profile-card > .btn {
    margin-left: 0;
  }
  .quick-action {
    min-height: 72px;
    padding: 12px;
  }
  .partner-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .partner-banner .btn {
    margin-left: 52px;
  }
  .account-panel {
    padding: 16px;
  }
  .account-panel .channel-grid {
    grid-template-columns: 1fr;
  }
  .account-metrics.compact {
    grid-template-columns: 1fr 1fr;
  }
  .owner-stats {
    grid-template-columns: 1fr 1fr;
  }
  .referral-box {
    align-items: flex-start;
    flex-direction: column;
  }
  .referral-box .btn {
    margin-left: 0;
  }
  .exchange-my-item {
    align-items: flex-start;
  }
  .exchange-my-item > .status {
    display: none;
  }
}

@media (max-width: 460px) {
  .quick-actions {
    grid-template-columns: 1fr;
  }
  .account-profile-card {
    align-items: flex-start;
  }
  .account-profile-card .account-big-avatar {
    width: 44px;
    height: 44px;
  }
  .account-tab {
    padding: 12px 10px;
    font-size: 0.66rem;
  }
  .account-tab .icon {
    display: none;
  }
  .account-metrics.compact {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }
}
