/* ============================================================
   Xeron — Minecraft client landing
   Design replicated from the Triada/Minced template.
   Change brand color in one place: --accent-color below.
   ============================================================ */

:root {
  /* === Brand accent (single source of truth) === */
  --accent-color: #7768a2;

  /* === Fonts === */
  --font-main: "Inter", "Segoe UI", sans-serif;
  --font-display: "Inter Tight", "Inter", "Segoe UI", sans-serif;

  /* === Metrics === */
  --header-height: 66px;

  /* === Text === */
  --text-main: #f6f8ff;
  --text-soft: rgba(233, 238, 255, 0.72);
  --text-muted: rgba(226, 231, 255, 0.62);
  --text-dim: rgba(223, 227, 241, 0.58);

  /* === Background === */
  --background-solid: color-mix(in srgb, var(--accent-color) 4%, #070811);
  --bg-top: color-mix(in srgb, var(--accent-color) 22%, #0c0d18);
  --bg-middle: color-mix(in srgb, var(--accent-color) 8%, #08090f);
  --bg-bottom: #06070d;
  --bg-vignette-soft: color-mix(in srgb, var(--accent-color) 10%, rgba(0, 0, 0, 0));
  --bg-vignette-deep: rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html, body, #root, #__next {
  width: 100%;
}
html {
  scroll-behavior: smooth;
  /* Clip horizontal overflow WITHOUT turning the root into a scroll-container.
     (overflow-x:hidden + min-height:100% here previously killed vertical wheel-scroll.)
     `clip` keeps overflow-y:visible, so the viewport scrolls normally. */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text-main);
  background: var(--background-solid);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

a { color: inherit; text-decoration: none; }
svg { display: block; }

.container {
  width: min(100% - 2.4rem, 1180px);
  margin: 0 auto;
}

::selection { background: color-mix(in srgb, var(--accent-color) 60%, #fff); color: #0b0c16; }

/* ===== Background layers ===== */
.background-layer {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(160% 90% at 50% -10%, var(--bg-top) 0%, var(--bg-middle) 46%, var(--bg-bottom) 100%);
}
.background-rings {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.52;
}
.background-rings::before {
  content: ""; position: absolute; inset: -12%;
  background:
    radial-gradient(40% 36% at 50% 30%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(36% 32% at 66% 50%, color-mix(in srgb, var(--accent-color) 40%, transparent) 0%, rgba(255, 255, 255, 0) 74%),
    radial-gradient(34% 30% at 34% 56%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 74%);
  filter: blur(26px); opacity: 0.6;
}
.background-vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(80% 55% at 50% 12%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.4) 100%),
    radial-gradient(65% 45% at 50% 92%, var(--bg-vignette-soft), var(--bg-vignette-deep));
}

main, .header-wrap { position: relative; z-index: 1; }

/* ===== Header ===== */
.header-wrap {
  position: fixed; top: 1rem; left: 50%; transform: translateX(-50%);
  z-index: 20; width: min(100% - 2.4rem, 983px); pointer-events: auto;
}
.header {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-height);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 0.7rem 0.9rem 0.7rem 1rem;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 11, 20, 0.42);
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.header.is-scrolled { background: rgba(8, 9, 16, 0.72); border-color: rgba(255, 255, 255, 0.09); }

.header-brand {
  display: flex; align-items: center; gap: 0.55rem;
  color: var(--text-main); font-weight: 600; font-size: 1.03rem; letter-spacing: 0.01em;
}
.brand-logo { width: 1.6rem; height: 1.6rem; color: color-mix(in srgb, var(--accent-color) 55%, #fff); }
.brand-logo svg { width: 100%; height: 100%; }
.brand-name { font-family: var(--font-display); }

.header-nav { display: flex; align-items: center; gap: 1.2rem; }
.header-nav-link {
  color: color-mix(in srgb, var(--accent-color) 12%, #d8dcee);
  font-size: 0.95rem; font-weight: 400; cursor: pointer; white-space: nowrap;
  transition: color 0.25s ease;
}
.header-nav-link:hover { color: color-mix(in srgb, var(--accent-color) 25%, #ffffff); }

.header-actions { display: flex; align-items: center; }
.header-cta {
  display: inline-flex; justify-content: center; align-items: center;
  min-width: 88px; min-height: 44px; padding: 0.55rem 1.15rem;
  border-radius: 12px; border: 1px solid #ffffff; background: #ffffff; color: #0e1020;
  font-size: 0.95rem; font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.header-cta:hover { background: #e9edf4; border-color: #e9edf4; transform: translateY(-1px); }
.header-cta--ghost { margin-left: 0.5rem; background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.22); }
.header-cta--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); }
.header-mobile-actions .header-cta--ghost { margin-left: 0; margin-top: 0.5rem; }

.header-burger {
  display: none; flex-direction: column; justify-content: center; gap: 0.28rem;
  width: 2.35rem; height: 2.35rem; border: 0; border-radius: 10px; background: transparent;
  cursor: pointer; position: relative;
}
.header-burger span {
  position: absolute; left: 50%; width: 1.05rem; height: 2px; background: #fff; border-radius: 999px;
  transform: translateX(-50%); transition: transform 0.22s ease, opacity 0.2s ease, top 0.22s ease;
}
.header-burger span:nth-child(1) { top: 0.78rem; }
.header-burger span:nth-child(2) { top: 1.15rem; }
.header-burger span:nth-child(3) { top: 1.52rem; }
.header-burger.is-open span:nth-child(1) { top: 1.15rem; transform: translateX(-50%) rotate(45deg); }
.header-burger.is-open span:nth-child(2) { opacity: 0; }
.header-burger.is-open span:nth-child(3) { top: 1.15rem; transform: translateX(-50%) rotate(-45deg); }

.header-mobile-menu {
  grid-area: menu; width: 100%; display: none; flex-direction: column; gap: 0.85rem;
  max-height: 0; margin-top: 0; opacity: 0; visibility: hidden; pointer-events: none; overflow: hidden;
  transition: max-height 0.28s ease, margin-top 0.22s ease, opacity 0.2s ease, visibility 0.2s ease;
}
.header-mobile-menu.is-open { max-height: 20rem; margin-top: 0.65rem; opacity: 1; visibility: visible; pointer-events: auto; }
.header-mobile-nav { display: flex; flex-direction: column; gap: 0.7rem; }
.header-mobile-nav .header-nav-link { padding: 0.25rem 0.1rem; }
.header-mobile-actions .header-cta { width: 100%; }

/* ===== Home / reveal ===== */
.home-page {
  display: flex; flex-direction: column; align-items: center;
  min-height: calc(100vh - var(--header-height)); padding-bottom: 6rem;
}
.home-hero, .advantages, .statistics, .how-start, .overview, .products {
  scroll-margin-top: calc(var(--header-height) + 1.6rem);
}
/* Hidden state applies ONLY when JS is available (html.js). Without JS, content stays visible. */
.js [data-reveal] {
  opacity: 0; filter: blur(20px); transform: translateY(22px) scale(1.02);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; filter: blur(0); transform: none; }

/* ===== Hero ===== */
.home-hero {
  width: 100%; max-width: 1060px; margin: clamp(7.5rem, 16vh, 10.5rem) auto 0;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.4rem;
  padding-inline: 1.2rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; background: #ffffff;
  padding: 0.38rem 0.78rem;
  box-shadow: inset 0 1px 0 rgba(218, 223, 232, 0.86), inset 0 -1px 0 rgba(0, 0, 0, 0.08), 0 8px 18px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(199, 206, 219, 0.34);
}
.badge-icon { display: inline-flex; color: #121212; }
.badge-icon svg { width: 1rem; height: 1rem; }
.badge-text { font-size: 0.92rem; color: #121212; font-weight: 500; }

.home-hero h1 {
  max-width: 1020px; margin: 0; font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.8vw, 3.95rem); line-height: 1.03; letter-spacing: -0.025em; font-weight: 500;
  color: color-mix(in srgb, var(--accent-color) 15%, #ffffff); text-wrap: balance;
}
.home-hero h1 span { display: block; }
.home-hero h1 span:last-child { margin-top: 0.2em; }

.hero-subtitle {
  max-width: 780px; margin: -0.2rem 0 0; color: var(--text-soft);
  font-size: clamp(0.9rem, 1.45vw, 1.06rem); line-height: 1.5;
}

.hero-actions { display: flex; align-items: center; justify-content: center; gap: 0.7rem; margin-top: 0.4rem; flex-wrap: wrap; }
.hero-action {
  display: inline-flex; justify-content: center; align-items: center;
  min-width: 130px; min-height: 50px; border-radius: 12px; padding: 0.75rem 1.2rem;
  font-size: 1rem; font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.hero-action.primary { color: #121427; background: #ffffff; border: 1px solid #ffffff; }
.hero-action.primary:hover { background: #e9edf4; border-color: #e9edf4; transform: translateY(-2px); }
.hero-action.secondary {
  color: var(--text-soft);
  background: color-mix(in srgb, var(--accent-color) 9%, rgba(14, 15, 26, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.13);
}
.hero-action.secondary:hover {
  color: var(--text-main);
  border-color: color-mix(in srgb, var(--accent-color) 36%, rgba(255, 255, 255, 0.15));
  background: color-mix(in srgb, var(--accent-color) 18%, rgba(14, 15, 26, 0.9));
  transform: translateY(-2px);
}

/* ===== Marquee ===== */
.marquee {
  width: 100%; max-width: 1400px; margin-top: clamp(3rem, 7vh, 5rem);
  overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: inline-flex; align-items: center; gap: 1.6rem; white-space: nowrap; animation: marquee 28s linear infinite; }
.marquee-item { color: var(--text-muted); font-size: 0.98rem; font-weight: 500; }
.marquee-dot { width: 5px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--accent-color) 60%, #fff); opacity: 0.7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Section headings ===== */
.advantages, .statistics, .how-start, .overview, .products {
  width: 100%; max-width: 1220px; padding: 0 0.4rem;
}
.advantages { margin-top: clamp(5.5rem, 10vh, 8rem); }
.statistics { margin-top: clamp(5.25rem, 10vh, 7rem); }
.how-start { margin-top: clamp(5rem, 9vh, 6.8rem); }
.overview { margin-top: clamp(5rem, 9vh, 6.8rem); }
.products { margin-top: clamp(5rem, 9vh, 6.8rem); }

.advantages h2, .statistics h2, .how-start h2, .overview h2, .products h2 {
  margin: 0; text-align: center; font-family: var(--font-display); font-weight: 600;
  letter-spacing: -0.02em; color: color-mix(in srgb, var(--accent-color) 13%, #ffffff);
  font-size: clamp(1.9rem, 4.8vw, 3rem); text-wrap: balance;
}
.advantages-subtitle, .statistics-subtitle, .how-start-subtitle, .overview-subtitle, .products-subtitle {
  margin: 0.7rem auto 0; text-align: center; max-width: 860px; color: var(--text-soft);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
}

/* ===== Advantages ===== */
.advantages-grid {
  margin-top: 2.6rem; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.86fr); gap: 0.85rem;
}
.advantages-column { display: flex; flex-direction: column; gap: 0.85rem; }
.advantage-card {
  border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 16px;
  background: rgba(255, 255, 255, 0.028); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 1.3rem 1.2rem; text-align: center; display: flex; flex-direction: column; gap: 0.62rem;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease, opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.advantage-card:hover { border-color: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.045); transform: translateY(-3px); }
.advantage-card.tall { min-height: 248px; justify-content: flex-start; }
.advantage-card.short { min-height: 178px; }
.advantage-card h3 { margin: 0; color: rgba(255, 255, 255, 0.92); font-size: clamp(1.05rem, 1.8vw, 1.32rem); font-weight: 500; }
.advantage-card p { margin: 0; color: rgba(226, 231, 245, 0.82); font-size: clamp(0.86rem, 1.15vw, 0.95rem); line-height: 1.45; }
.advantage-icon {
  width: 2.1rem; height: 2.1rem; display: inline-flex; justify-content: center; align-items: center;
  color: rgba(255, 255, 255, 0.85); margin: 0 auto 0.1rem; transition: color 0.25s ease;
}
.advantage-icon svg { width: 100%; height: 100%; }
.advantage-card:hover .advantage-icon { color: color-mix(in srgb, #ffffff 55%, var(--accent-color) 45%); }

/* ===== Statistics ===== */
.stats-grid { margin-top: 2.6rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.85rem; max-width: 1120px; margin-left: auto; margin-right: auto; }
.stat-card {
  border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 16px;
  background: rgba(255, 255, 255, 0.028); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 1.7rem 1.5rem; text-align: center; display: flex; flex-direction: column; gap: 0.45rem;
  transition: border-color 0.3s ease, transform 0.3s ease, opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.stat-card:hover { border-color: rgba(255, 255, 255, 0.12); transform: translateY(-3px); }
.stat-value {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: color-mix(in srgb, var(--accent-color) 30%, #ffffff);
}
.stat-label { font-size: 1.05rem; font-weight: 500; color: rgba(255, 255, 255, 0.9); }
.stat-desc { margin: 0.3rem 0 0; color: var(--text-soft); font-size: 0.92rem; line-height: 1.45; }

/* ===== How to start ===== */
.steps { margin-top: 2.6rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; }
.step-card {
  position: relative; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 16px;
  background: rgba(255, 255, 255, 0.028); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 1.6rem 1.4rem; display: flex; flex-direction: column; gap: 0.55rem;
  transition: border-color 0.3s ease, transform 0.3s ease, opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.step-card:hover { border-color: rgba(255, 255, 255, 0.12); transform: translateY(-3px); }
.step-num {
  width: 2.4rem; height: 2.4rem; border-radius: 12px; display: inline-flex; justify-content: center; align-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-bottom: 0.3rem;
  color: color-mix(in srgb, var(--accent-color) 40%, #fff);
  background: color-mix(in srgb, var(--accent-color) 16%, rgba(255, 255, 255, 0.03));
  border: 1px solid color-mix(in srgb, var(--accent-color) 30%, rgba(255, 255, 255, 0.1));
}
.step-card h3 { margin: 0; font-size: 1.18rem; font-weight: 500; color: rgba(255, 255, 255, 0.92); }
.step-card p { margin: 0; color: var(--text-soft); font-size: 0.94rem; line-height: 1.45; }

/* ===== Overview / video ===== */
.overview-video {
  position: relative; margin: 2.6rem auto 0; max-width: 920px; aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px; overflow: hidden;
  background:
    radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--accent-color) 30%, transparent), transparent 60%),
    linear-gradient(180deg, #14151f, #0a0b12);
  display: grid; place-items: center;
}
.overview-video::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 38px 38px; mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent 75%);
}
.video-play {
  position: relative; width: 80px; height: 80px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #14151f;
  background: #ffffff; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease;
}
.video-play svg { width: 30px; height: 30px; margin-left: 3px; }
.video-play::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent-color) 50%, #fff); opacity: 0.5; animation: pulse 2.4s ease-out infinite;
}
.video-play:hover { transform: scale(1.06); }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.5); opacity: 0; } }
.video-label {
  position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%);
  padding: 0.45rem 0.95rem; border-radius: 999px; font-size: 0.85rem; color: var(--text-soft);
  background: rgba(8, 9, 16, 0.6); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(8px); white-space: nowrap;
}

/* ===== Products ===== */
.products-grid {
  margin-top: 2.6rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem;
}
.product-card {
  position: relative; display: flex; flex-direction: column; gap: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 18px;
  background: rgba(255, 255, 255, 0.028); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 1.6rem 1.4rem; transition: border-color 0.3s ease, transform 0.3s ease, opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover { border-color: rgba(255, 255, 255, 0.13); transform: translateY(-4px); }
.product-card.featured {
  border-color: color-mix(in srgb, var(--accent-color) 45%, rgba(255, 255, 255, 0.15));
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-color) 12%, rgba(255,255,255,.02)), rgba(255, 255, 255, 0.02));
}
.product-badge {
  align-self: flex-start; padding: 0.32rem 0.7rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  color: #fff; background: color-mix(in srgb, var(--accent-color) 70%, #2a2150);
  border: 1px solid color-mix(in srgb, var(--accent-color) 60%, #fff);
}
.product-name { margin: 0.2rem 0 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: #fff; }
.product-price {
  font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; letter-spacing: -0.02em;
  color: color-mix(in srgb, var(--accent-color) 22%, #ffffff); display: flex; align-items: baseline; gap: 0.4rem;
}
.product-price span { font-family: var(--font-main); font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }
.product-features-label {
  margin-top: 0.6rem; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim);
}
.product-features { list-style: none; margin: 0.2rem 0 1.2rem; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.product-features li { position: relative; padding-left: 1.6rem; color: var(--text-soft); font-size: 0.92rem; line-height: 1.4; }
.product-features li::before {
  content: ""; position: absolute; left: 0; top: 0.36em; width: 0.7rem; height: 0.42rem;
  border-left: 2px solid color-mix(in srgb, var(--accent-color) 60%, #fff);
  border-bottom: 2px solid color-mix(in srgb, var(--accent-color) 60%, #fff); transform: rotate(-45deg);
}
.product-buy {
  display: inline-flex; justify-content: center; align-items: center; min-height: 48px; border-radius: 12px;
  font-size: 0.96rem; font-weight: 500; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
  color: var(--text-main);
  background: color-mix(in srgb, var(--accent-color) 9%, rgba(14, 15, 26, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.13);
}
.product-buy:hover {
  border-color: color-mix(in srgb, var(--accent-color) 40%, rgba(255, 255, 255, 0.2));
  background: color-mix(in srgb, var(--accent-color) 18%, rgba(14, 15, 26, 0.85)); transform: translateY(-2px);
}
.product-buy.filled { color: #121427; background: #ffffff; border-color: #ffffff; }
.product-buy.filled:hover { background: #e9edf4; border-color: #e9edf4; }

/* ===== Footer ===== */
.site-footer {
  position: relative; z-index: 1; width: 100%;
  margin-top: clamp(4.4rem, 10vh, 6.8rem);
  padding: clamp(2.6rem, 5vw, 3.8rem) 0 clamp(2rem, 4vw, 2.8rem);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.site-footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: clamp(1.5rem, 3vw, 2.8rem); }
.site-footer-column h3 {
  margin: 0; color: #fff; font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem); font-weight: 600; letter-spacing: -0.015em;
}
.site-footer-links { margin-top: 0.95rem; display: flex; flex-direction: column; gap: 0.52rem; }
.site-footer-links a { color: rgba(221, 227, 242, 0.68); font-size: 0.95rem; line-height: 1.32; width: fit-content; transition: color 0.2s ease; }
.site-footer-links a:hover { color: rgba(255, 255, 255, 0.92); }
.footer-about { margin: 0; color: rgba(221, 227, 242, 0.66); font-size: 0.92rem; line-height: 1.5; max-width: 32ch; }

.site-footer-contact { margin-top: 1.1rem; display: flex; align-items: center; gap: 0.7rem; }
.social-link {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  color: var(--text-soft); background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.social-link svg { width: 20px; height: 20px; }
.social-link:hover { transform: translateY(-2px); color: #fff; border-color: color-mix(in srgb, var(--accent-color) 50%, #fff); background: color-mix(in srgb, var(--accent-color) 14%, transparent); }

.site-footer-divider { margin-top: clamp(2.2rem, 4vw, 2.9rem); width: 100%; height: 1px; background: rgba(255, 255, 255, 0.08); }
.site-footer-bottom { margin-top: clamp(1.35rem, 3.4vw, 2.1rem); display: flex; justify-content: space-between; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.site-footer-meta p { margin: 0; color: rgba(216, 222, 238, 0.6); font-size: 0.85rem; line-height: 1.5; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .advantages-grid { grid-template-columns: 1fr 1fr; }
  .advantages-column { gap: 0.85rem; }
  .site-footer-main { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; max-width: 640px; }
}

@media (max-width: 768px) {
  .header {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand burger" "menu menu"; align-items: center;
    padding: 0.7rem 0.7rem 0.7rem 0.9rem;
  }
  .header-nav, .header-actions { display: none; }
  .header-brand { grid-area: brand; }
  .header-burger { grid-area: burger; display: flex; }
  .header-mobile-menu { display: flex; }

  .stats-grid, .steps, .products-grid { grid-template-columns: 1fr; }
  .advantage-card.tall, .advantage-card.short { min-height: 0; }
}

@media (max-width: 560px) {
  .advantages-grid { grid-template-columns: 1fr; }
  .home-hero h1 span { display: inline; }
  .hero-actions { width: 100%; }
  .hero-action { flex: 1; }
  .site-footer-main { grid-template-columns: 1fr; }
}

/* ============================================================
   Auth pages (auth.html) — Sign In / Create Account
   ============================================================ */
.auth-page {
  position: relative; z-index: 1; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--header-height) + 3.5rem) 1.2rem 4rem;
}
.auth-card {
  width: 100%; max-width: 420px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  animation: authIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.auth-card[hidden] { display: none; }
@keyframes authIn {
  from { opacity: 0; transform: translateY(18px) scale(1.01); filter: blur(18px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

.auth-icon {
  width: 2.1rem; height: 2.1rem; color: rgba(255, 255, 255, 0.92);
  display: grid; place-items: center; margin-bottom: 0.75rem;
}
.auth-icon svg { width: 100%; height: 100%; }

.auth-title {
  margin: 0; font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.35rem); font-weight: 700; letter-spacing: -0.02em;
  color: color-mix(in srgb, var(--accent-color) 12%, #ffffff);
}
.auth-subtitle {
  margin: 0.5rem 0 0; max-width: 340px; color: var(--text-soft);
  font-size: 0.96rem; line-height: 1.45;
}

.auth-form { width: 100%; margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.6rem; }
.auth-input {
  width: 100%; padding: 0.85rem 1rem; border-radius: 11px;
  background: color-mix(in srgb, var(--accent-color) 5%, rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.09); color: var(--text-main);
  font-family: inherit; font-size: 0.96rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.auth-input::placeholder { color: rgba(226, 231, 255, 0.5); }
.auth-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent-color) 55%, rgba(255, 255, 255, 0.2));
  background: color-mix(in srgb, var(--accent-color) 10%, rgba(255, 255, 255, 0.03));
}

.auth-check {
  display: flex; align-items: flex-start; gap: 0.55rem; margin: 0.25rem 0;
  color: var(--text-soft); font-size: 0.9rem; line-height: 1.4; text-align: left; cursor: pointer;
}
.auth-check input { width: 1rem; height: 1rem; margin-top: 0.12rem; accent-color: var(--accent-color); cursor: pointer; flex-shrink: 0; }

.auth-link { color: color-mix(in srgb, var(--accent-color) 45%, #ffffff); font-weight: 600; }
.auth-link:hover { color: #ffffff; }

/* ALTCHA-style widget */
.altcha {
  width: 100%; margin: 0.4rem 0 0.2rem; padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 11px;
  background: rgba(255, 255, 255, 0.025); display: flex; flex-direction: column; gap: 0.3rem;
}
.altcha-row { display: flex; align-items: center; gap: 0.65rem; }
.altcha-box {
  position: relative; width: 1.55rem; height: 1.55rem; border-radius: 6px; flex-shrink: 0; padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.28); background: transparent;
  display: grid; place-items: center; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease;
}
.altcha-check { width: 1rem; height: 1rem; opacity: 0; transition: opacity 0.2s ease; }
.altcha.is-verified .altcha-box { background: #2ec16a; border-color: #2ec16a; cursor: default; }
.altcha.is-verified .altcha-check { opacity: 1; }
.altcha-spinner {
  position: absolute; width: 0.95rem; height: 0.95rem; display: none;
  border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.altcha.is-verifying .altcha-box { cursor: default; }
.altcha.is-verifying .altcha-spinner { display: block; }
.altcha-label { color: var(--text-main); font-size: 0.95rem; font-weight: 500; }
.altcha-logo { margin-left: auto; width: 1.3rem; height: 1.3rem; color: rgba(255, 255, 255, 0.4); }
.altcha-logo svg { width: 100%; height: 100%; }
.altcha-footer { align-self: flex-end; color: var(--text-dim); font-size: 0.72rem; letter-spacing: 0.02em; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth-submit {
  width: 100%; min-height: 50px; margin-top: 0.5rem; border-radius: 12px;
  background: #ffffff; color: #121427; border: 1px solid #ffffff;
  font-family: inherit; font-size: 1rem; font-weight: 500; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.auth-submit:hover { background: #e9edf4; transform: translateY(-1px); }

.auth-status { margin: 0.3rem 0 0; font-size: 0.85rem; min-height: 1.1em; line-height: 1.35; }
.auth-status.error { color: #ff8d8d; }
.auth-status.ok { color: #7fe0a3; }

.auth-switch { margin: 1.2rem 0 0; color: var(--text-soft); font-size: 0.92rem; }

/* Language stub (bottom-left) */
.language-stub { position: fixed; bottom: 1rem; left: 1rem; z-index: 20; }
.language-stub-btn {
  width: 52px; height: 52px; border-radius: 15px; padding: 0; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: grid; place-items: center; transition: border-color 0.2s ease, background 0.2s ease;
}
.language-stub-btn:hover { border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.05); }
.language-stub-flag { width: 28px; height: 19px; border-radius: 4px; overflow: hidden; display: block; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16); }
.language-stub-flag svg { width: 100%; height: 100%; display: block; }

@media (max-width: 480px) {
  .language-stub { bottom: 0.8rem; left: 0.8rem; }
  .language-stub-btn { width: 46px; height: 46px; border-radius: 13px; }
}

/* ============================================================
   Personal cabinet (cabinet.html)
   ============================================================ */
.profile-card {
  display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap;
  padding: 1.5rem 1.6rem; margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-color) 11%, rgba(255, 255, 255, 0.02)), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.profile-avatar {
  position: relative; width: 92px; height: 92px; border-radius: 50%; flex-shrink: 0; cursor: pointer;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent-color) 78%, #ffffff), color-mix(in srgb, var(--accent-color) 32%, #14151f));
  background-size: cover; background-position: center;
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 10px 30px rgba(0, 0, 0, 0.35);
}
.avatar-initials { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: #fff; user-select: none; }
.profile-avatar.has-img .avatar-initials { display: none; }
.avatar-edit {
  position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--background-solid); background: #ffffff; color: #14151f;
  display: grid; place-items: center; transition: transform 0.2s ease;
}
.profile-avatar:hover .avatar-edit { transform: scale(1.08); }
.avatar-edit svg { width: 15px; height: 15px; }

.profile-meta { display: flex; flex-direction: column; gap: 0.4rem; }
.profile-name { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; color: #fff; line-height: 1; }
.profile-sub { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }
.profile-uid { color: var(--text-muted); font-size: 0.95rem; }
.role-badge {
  display: inline-flex; align-items: center; padding: 0.25rem 0.65rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; color: #ffffff;
  background: color-mix(in srgb, var(--accent-color) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-color) 60%, #ffffff);
}

.cabinet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; align-items: start; }
.info-card {
  border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 16px; padding: 1.4rem 1.4rem 1.5rem;
  background: rgba(255, 255, 255, 0.028); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.info-card:hover { border-color: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.045); transform: translateY(-3px); }
.profile-card { transition: border-color 0.3s ease, transform 0.3s ease; }
.profile-card:hover { border-color: color-mix(in srgb, var(--accent-color) 30%, rgba(255, 255, 255, 0.15)); transform: translateY(-2px); }
.info-card-title { margin: 0 0 0.9rem; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: #fff; }
.info-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.65rem 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.info-row:first-of-type { border-top: 0; padding-top: 0.2rem; }
.info-label { color: var(--text-muted); font-size: 0.9rem; }
.info-value { color: var(--text-main); font-size: 0.94rem; font-weight: 500; text-align: right; word-break: break-word; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.02em; }

.hwid-badge { margin-left: 0.4rem; padding: 0.14rem 0.5rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600; white-space: nowrap; }
.hwid-badge.on { color: #7fe0a3; background: rgba(46, 193, 106, 0.12); border: 1px solid rgba(46, 193, 106, 0.32); }
.hwid-badge.off { color: var(--text-dim); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); }
.hwid-hint { margin: 0.6rem 0 0; color: var(--text-dim); font-size: 0.82rem; line-height: 1.4; }

.ghost-btn {
  margin-top: 0.9rem; width: 100%; min-height: 42px; border-radius: 10px; cursor: pointer;
  color: var(--text-soft); background: color-mix(in srgb, var(--accent-color) 8%, rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12); font-family: inherit; font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.ghost-btn:hover { color: #fff; border-color: color-mix(in srgb, var(--accent-color) 40%, rgba(255, 255, 255, 0.2)); }

.cab-form { display: flex; flex-direction: column; gap: 0.6rem; }
.cab-btn {
  width: 100%; min-height: 46px; border-radius: 11px; cursor: pointer;
  background: #ffffff; color: #121427; border: 1px solid #ffffff; font-family: inherit; font-size: 0.95rem; font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cab-btn:hover { background: #e9edf4; transform: translateY(-1px); }
.cab-msg { margin: 0.55rem 0 0; font-size: 0.85rem; min-height: 1em; line-height: 1.35; }
.cab-msg:empty { display: none; }
.cab-msg.error { color: #ff8d8d; }
.cab-msg.ok { color: #7fe0a3; }
.license-status { margin: 0 0 0.8rem; font-size: 0.9rem; color: var(--text-soft); }
.license-status.active { color: #7fe0a3; }

/* Admin access banner (cabinet → admin panel, admins only) */
.admin-access[hidden] { display: none; }
.admin-access {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem;
  padding: 1.05rem 1.3rem; border-radius: 16px; text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--accent-color) 45%, rgba(255, 255, 255, 0.12));
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-color) 14%, rgba(255, 255, 255, 0.02)), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.admin-access:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent-color) 70%, #fff); }
.admin-access-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; background: color-mix(in srgb, var(--accent-color) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-color) 60%, #fff);
}
.admin-access-icon svg { width: 22px; height: 22px; }
.admin-access-text { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; }
.admin-access-text strong { color: #fff; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.admin-access-text span { color: var(--text-soft); font-size: 0.88rem; }
.admin-access-arrow { flex-shrink: 0; color: var(--text-soft); transition: transform 0.25s ease, color 0.25s ease; }
.admin-access-arrow svg { width: 22px; height: 22px; display: block; }
.admin-access:hover .admin-access-arrow { color: #fff; transform: translateX(4px); }

@media (max-width: 560px) {
  .profile-card { flex-direction: column; text-align: center; }
  .profile-meta { align-items: center; }
}

/* ============================================================
   Legal pages (terms.html / privacy.html / consent.html)
   ============================================================ */
.legal-page { position: relative; z-index: 1; min-height: 100vh; padding: calc(var(--header-height) + 3rem) 0 3rem; }
.legal-wrap { width: min(100% - 2.4rem, 880px); margin: 0 auto; }
.legal-head { text-align: center; margin-bottom: 1.8rem; }
.legal-head h1 {
  margin: 0; font-family: var(--font-display); font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  font-weight: 700; letter-spacing: -0.02em; color: color-mix(in srgb, var(--accent-color) 12%, #ffffff);
}
.legal-meta { margin: 0.7rem 0 0; display: flex; gap: 0.3rem 1.2rem; justify-content: center; flex-wrap: wrap; color: var(--text-dim); font-size: 0.85rem; }
.legal-nav { margin: 1.5rem auto 0; display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.legal-nav a {
  padding: 0.45rem 0.95rem; border-radius: 999px; font-size: 0.88rem; color: var(--text-soft);
  border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.025);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.legal-nav a:hover { color: #fff; border-color: color-mix(in srgb, var(--accent-color) 40%, rgba(255, 255, 255, 0.2)); }
.legal-nav a.active { color: #121427; background: #ffffff; border-color: #ffffff; font-weight: 500; }

.legal-doc {
  border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 18px; background: rgba(255, 255, 255, 0.022);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: clamp(1.5rem, 4vw, 2.6rem);
}
.legal-intro { color: var(--text-soft); font-size: 1rem; line-height: 1.6; margin: 0 0 1.6rem; }
.legal-doc h2 {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: #ffffff;
  letter-spacing: -0.01em; margin: 1.9rem 0 0.7rem;
}
.legal-doc h2:first-of-type { margin-top: 0; }
.legal-doc p { color: var(--text-soft); font-size: 0.95rem; line-height: 1.62; margin: 0 0 0.85rem; }
.legal-doc ul { margin: 0 0 1rem; padding-left: 1.25rem; color: var(--text-soft); font-size: 0.95rem; line-height: 1.6; }
.legal-doc li { margin-bottom: 0.45rem; }
.legal-doc li::marker { color: color-mix(in srgb, var(--accent-color) 60%, #fff); }
.legal-doc a { color: color-mix(in srgb, var(--accent-color) 45%, #ffffff); font-weight: 500; }
.legal-doc a:hover { color: #fff; }
.legal-doc strong { color: var(--text-main); font-weight: 600; }

/* ============================================================
   Admin panel (admin.html)
   ============================================================ */
.admin-shell { position: relative; z-index: 1; display: grid; grid-template-columns: 258px 1fr; min-height: 100vh; }

.admin-sidebar {
  position: sticky; top: 0; align-self: start; height: 100vh; display: flex; flex-direction: column; gap: 1.1rem;
  padding: 1.4rem 1rem; border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(9, 10, 18, 0.55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.admin-brand { display: flex; align-items: center; gap: 0.55rem; padding: 0.3rem 0.5rem; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.admin-brand .brand-logo { width: 1.7rem; height: 1.7rem; color: color-mix(in srgb, var(--accent-color) 55%, #fff); }
.admin-tag { font-family: var(--font-main); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--accent-color) 40%, #fff); border: 1px solid color-mix(in srgb, var(--accent-color) 45%, rgba(255, 255, 255, 0.2)); padding: 0.1rem 0.4rem; border-radius: 6px; }

.admin-nav { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.admin-nav-link {
  display: flex; align-items: center; gap: 0.7rem; width: 100%; text-align: left;
  padding: 0.65rem 0.75rem; border-radius: 10px; border: 0; background: transparent;
  color: var(--text-soft); font-family: inherit; font-size: 0.93rem; cursor: pointer; text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.admin-nav-link svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; opacity: 0.85; }
.admin-nav-link:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.admin-nav-link.active { background: color-mix(in srgb, var(--accent-color) 20%, rgba(255, 255, 255, 0.03)); color: #fff; }
.admin-sidebar-foot { display: flex; flex-direction: column; gap: 0.25rem; border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 0.8rem; }

.admin-overlay { display: none; position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(2px); }
.admin-overlay.is-open { display: block; }

.admin-main { padding: 1.8rem clamp(1rem, 3vw, 2.4rem) 3rem; min-width: 0; }
.admin-topbar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.admin-title { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.admin-subtitle { margin: 0.15rem 0 0; color: var(--text-muted); font-size: 0.9rem; }
.admin-chip { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.7rem; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px; background: rgba(255, 255, 255, 0.025); }
.admin-chip-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: #fff; background: linear-gradient(140deg, color-mix(in srgb, var(--accent-color) 78%, #fff), color-mix(in srgb, var(--accent-color) 35%, #14151f)); }
.admin-chip div { display: flex; flex-direction: column; line-height: 1.2; }
.admin-chip strong { font-size: 0.85rem; color: #fff; }
.admin-chip span { font-size: 0.74rem; color: var(--text-dim); }

.admin-burger { display: none; flex-direction: column; justify-content: center; gap: 0.28rem; width: 2.4rem; height: 2.4rem; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; background: rgba(255, 255, 255, 0.03); cursor: pointer; }
.admin-burger span { display: block; width: 1.1rem; height: 2px; margin: 0 auto; background: #fff; border-radius: 999px; }

.admin-panel[hidden] { display: none; }
.admin-card { border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 16px; background: rgba(255, 255, 255, 0.028); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 1.3rem; transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease; }
.admin-card:hover { border-color: rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.045); transform: translateY(-3px); }
.admin-card-title { margin: 0 0 1rem; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: #fff; }

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; margin-bottom: 0.85rem; }
.admin-stat { display: flex; flex-direction: column; }
.admin-stat-label { color: var(--text-muted); font-size: 0.85rem; }
.admin-stat-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 1.95rem); color: #fff; margin-top: 0.4rem; letter-spacing: -0.02em; }
.admin-stat-trend { font-size: 0.78rem; color: #7fe0a3; margin-top: 0.3rem; }
.admin-stat-trend.live { color: color-mix(in srgb, var(--accent-color) 40%, #fff); }

.admin-2col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 0.85rem; }

.admin-chart { display: flex; align-items: flex-end; gap: 0.6rem; height: 180px; padding-bottom: 1.4rem; }
.admin-bar { flex: 1; height: var(--h); border-radius: 7px 7px 0 0; position: relative; transform-origin: bottom; animation: barGrow 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; background: linear-gradient(180deg, color-mix(in srgb, var(--accent-color) 72%, #fff), color-mix(in srgb, var(--accent-color) 38%, transparent)); }
.admin-bar span { position: absolute; bottom: -1.4rem; left: 0; right: 0; text-align: center; font-size: 0.72rem; color: var(--text-dim); }
@keyframes barGrow { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }

.admin-activity { display: flex; flex-direction: column; gap: 0.85rem; }
.admin-activity-item { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.88rem; color: var(--text-soft); }
.admin-activity-item strong { color: #fff; font-weight: 600; }
.admin-activity-dot { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--accent-color) 60%, #fff); margin-top: 0.45rem; flex-shrink: 0; }
.admin-activity-item .time { color: var(--text-dim); font-size: 0.76rem; margin-top: 0.1rem; }

.admin-toolbar { display: flex; gap: 0.7rem; margin-bottom: 0.85rem; flex-wrap: wrap; }
.admin-search { flex: 1; min-width: 200px; padding: 0.7rem 0.9rem; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.09); color: var(--text-main); font-family: inherit; font-size: 0.92rem; }
.admin-search:focus { outline: none; border-color: color-mix(in srgb, var(--accent-color) 50%, rgba(255, 255, 255, 0.2)); }

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 620px; }
.admin-table th { text-align: left; padding: 0.7rem 0.8rem; color: var(--text-muted); font-weight: 500; font-size: 0.8rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); white-space: nowrap; }
.admin-table td { padding: 0.75rem 0.8rem; border-bottom: 1px solid rgba(255, 255, 255, 0.04); color: var(--text-soft); white-space: nowrap; }
.admin-table tbody tr { transition: background 0.15s ease; }
.admin-table tbody tr:hover td { background: rgba(255, 255, 255, 0.018); }
.admin-user-cell { display: flex; align-items: center; gap: 0.6rem; color: #fff; }
.admin-user-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 0.78rem; font-weight: 700; color: #fff; flex-shrink: 0; background: linear-gradient(140deg, color-mix(in srgb, var(--accent-color) 70%, #fff), color-mix(in srgb, var(--accent-color) 35%, #14151f)); }
.admin-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.85rem; }

.tag { display: inline-flex; align-items: center; padding: 0.16rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.tag-role { color: color-mix(in srgb, var(--accent-color) 28%, #fff); background: color-mix(in srgb, var(--accent-color) 18%, transparent); border: 1px solid color-mix(in srgb, var(--accent-color) 32%, rgba(255, 255, 255, 0.2)); }
.tag-mod { color: #9ad0ff; background: rgba(80, 160, 255, 0.12); border: 1px solid rgba(80, 160, 255, 0.32); }
.tag-on { color: #7fe0a3; background: rgba(46, 193, 106, 0.12); border: 1px solid rgba(46, 193, 106, 0.32); }
.tag-off { color: var(--text-dim); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); }

.admin-act-cell { display: flex; gap: 0.3rem; }
.icon-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03); color: var(--text-soft); cursor: pointer; display: grid; place-items: center; transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover { color: #fff; border-color: color-mix(in srgb, var(--accent-color) 40%, rgba(255, 255, 255, 0.2)); background: color-mix(in srgb, var(--accent-color) 12%, transparent); }
.icon-btn.danger:hover { color: #ff8d8d; border-color: rgba(255, 120, 120, 0.4); background: rgba(255, 90, 90, 0.1); }

.admin-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.7rem; align-items: end; }
.admin-field label { display: block; color: var(--text-muted); font-size: 0.82rem; margin-bottom: 0.35rem; }
.admin-select, .admin-input { width: 100%; padding: 0.65rem 0.8rem; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.09); color: var(--text-main); font-family: inherit; font-size: 0.9rem; }
.admin-select:focus, .admin-input:focus { outline: none; border-color: color-mix(in srgb, var(--accent-color) 50%, rgba(255, 255, 255, 0.2)); }
.admin-select option { background: #14151f; color: #fff; }
.admin-btn { padding: 0.7rem 1.1rem; min-height: 44px; border-radius: 10px; background: #fff; color: #121427; border: 1px solid #fff; font-family: inherit; font-weight: 500; font-size: 0.92rem; cursor: pointer; white-space: nowrap; transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.admin-btn:hover { background: #e9edf4; transform: translateY(-1px); }
.admin-btn.ghost { background: color-mix(in srgb, var(--accent-color) 8%, rgba(255, 255, 255, 0.02)); color: var(--text-soft); border-color: rgba(255, 255, 255, 0.12); }
.admin-btn.ghost:hover { color: #fff; border-color: color-mix(in srgb, var(--accent-color) 40%, rgba(255, 255, 255, 0.2)); }
.admin-msg { margin: 0.8rem 0 0; font-size: 0.85rem; min-height: 1em; }
.admin-msg:empty { display: none; }
.admin-msg.ok { color: #7fe0a3; }
.admin-msg.error { color: #ff8d8d; }

.admin-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.85rem; }
.admin-product { display: flex; flex-direction: column; gap: 0.6rem; }
.admin-product h3 { margin: 0 0 0.4rem; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: #fff; }
.admin-product-price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: color-mix(in srgb, var(--accent-color) 22%, #fff); margin-top: auto; }
.admin-product-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.admin-product-head h3 { margin: 0; }
.admin-product-note { font-family: var(--font-main); font-size: 0.82rem; font-weight: 400; color: var(--text-muted); margin-left: 0.35rem; }
.admin-product-actions { display: flex; gap: 0.5rem; margin-top: 0.4rem; }
.admin-product-actions .admin-btn { flex: 1; padding: 0.55rem 0.6rem; min-height: 40px; font-size: 0.86rem; }
.admin-btn.ghost.danger { color: #ff9d9d; }
.admin-btn.ghost.danger:hover { color: #fff; border-color: rgba(255, 120, 120, 0.5); background: rgba(255, 90, 90, 0.12); }

/* ===== Modal (product editor) ===== */
.admin-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1.2rem; }
.admin-modal[hidden] { display: none; }
.admin-modal-backdrop { position: absolute; inset: 0; background: rgba(6, 7, 14, 0.66); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: modalFade 0.2s ease both; }
.admin-modal-card {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 2.4rem); overflow-y: auto;
  border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #181a26, #121420);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); animation: modalPop 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.admin-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem 0.9rem; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.admin-modal-title { margin: 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: #fff; }
.admin-modal-x { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; cursor: pointer; color: var(--text-soft); background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.admin-modal-x svg { width: 17px; height: 17px; }
.admin-modal-x:hover { color: #fff; border-color: color-mix(in srgb, var(--accent-color) 40%, rgba(255, 255, 255, 0.2)); background: color-mix(in srgb, var(--accent-color) 12%, transparent); }
.admin-modal-body { display: flex; flex-direction: column; gap: 0.85rem; padding: 1.2rem 1.4rem 1.4rem; }
.admin-textarea { resize: vertical; min-height: 96px; line-height: 1.45; font-family: inherit; }
.admin-check { display: flex; align-items: center; gap: 0.55rem; color: var(--text-soft); font-size: 0.9rem; cursor: pointer; }
.admin-check input { width: 18px; height: 18px; accent-color: var(--accent-color); cursor: pointer; }
.admin-modal-foot { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 0.3rem; }
.admin-modal-foot .admin-btn { min-width: 120px; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

/* Blur-in entrance for panels and their cards (re-runs on panel switch) */
@keyframes adminBlurUp { from { opacity: 0; filter: blur(18px); transform: translateY(16px); } to { opacity: 1; filter: blur(0); transform: none; } }
.admin-panel:not([hidden]) > *,
.admin-panel:not([hidden]) .admin-stats > *,
.admin-panel:not([hidden]) .admin-products > * {
  animation: adminBlurUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.admin-panel:not([hidden]) .admin-stats > *:nth-child(2) { animation-delay: 0.06s; }
.admin-panel:not([hidden]) .admin-stats > *:nth-child(3) { animation-delay: 0.12s; }
.admin-panel:not([hidden]) .admin-stats > *:nth-child(4) { animation-delay: 0.18s; }
.admin-panel:not([hidden]) .admin-2col > *:nth-child(2) { animation-delay: 0.1s; }
.admin-panel:not([hidden]) .admin-products > *:nth-child(2) { animation-delay: 0.05s; }
.admin-panel:not([hidden]) .admin-products > *:nth-child(3) { animation-delay: 0.1s; }
.admin-panel:not([hidden]) .admin-products > *:nth-child(4) { animation-delay: 0.15s; }
.admin-panel:not([hidden]) .admin-products > *:nth-child(5) { animation-delay: 0.2s; }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; left: 0; top: 0; width: 256px; z-index: 40; transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
  .admin-sidebar.is-open { transform: none; }
  .admin-burger { display: flex; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-2col { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .admin-stats { grid-template-columns: 1fr; }
  .admin-chip { display: none; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; filter: none !important; transform: none !important; }
}

/* ============================================================
   Media program (cabinet: «Стать медиа» + «Медиа»)
   ============================================================ */
:root { --accent-bright: #5eead4; }

.media-accent { color: var(--accent-bright); }

.media-head { margin-bottom: 1.3rem; }
.media-head h2 {
  margin: 0; display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 700;
  color: var(--accent-bright); letter-spacing: -0.01em;
}
.media-head-icon { font-size: 1.4rem; line-height: 1; }
.media-head p { margin: 0.5rem 0 0; color: var(--text-soft); font-size: 0.98rem; }

.media-apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
@media (max-width: 900px) { .media-apply-grid { grid-template-columns: 1fr; } }

.media-field-label { color: #fff; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.55rem; }

.media-platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.media-platform {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 1.1rem 0.8rem;
  border-radius: 14px; cursor: pointer; font-family: inherit; font-size: 0.95rem; font-weight: 600; color: var(--text-soft);
  background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.media-platform:hover { border-color: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }
.media-platform.is-active {
  color: #fff; border-color: var(--accent-bright);
  background: color-mix(in srgb, var(--accent-bright) 12%, rgba(0, 0, 0, 0.28));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-bright) 40%, transparent) inset;
}
.media-platform-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: rgba(0, 0, 0, 0.4); }
.media-platform-icon svg { width: 24px; height: 24px; }
.media-platform-icon.yt { color: #ff3d3d; }
.media-platform-icon.tt { color: #fff; }

.media-how h3 {
  margin: 0 0 1rem; display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: #fff;
}
.media-how-spark {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; font-size: 0.95rem;
  color: var(--accent-bright); background: color-mix(in srgb, var(--accent-bright) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-bright) 30%, transparent);
}
.media-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.media-steps li { display: flex; gap: 0.85rem; padding-left: 0.2rem; border-left: 2px solid rgba(255, 255, 255, 0.07); padding-bottom: 0.2rem; }
.media-steps li:last-child { border-left-color: transparent; }
.media-step-n {
  flex-shrink: 0; width: 26px; height: 26px; margin-left: -14px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.82rem; font-weight: 700; color: #07130f;
  background: var(--accent-bright);
}
.media-steps strong { display: block; color: #fff; font-size: 0.95rem; margin-bottom: 0.2rem; }
.media-steps p { margin: 0; color: var(--text-soft); font-size: 0.88rem; line-height: 1.5; }
.media-note {
  margin: 1.1rem 0 0; padding-top: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-dim); font-size: 0.82rem; line-height: 1.5;
}

.media-apply-pending { margin-bottom: 1rem; border-color: color-mix(in srgb, var(--accent-bright) 30%, rgba(255, 255, 255, 0.1)); }
.media-apply-pending h3 { margin: 0 0 0.4rem; font-family: var(--font-display); font-size: 1.1rem; color: #fff; }
.media-apply-pending p { margin: 0; color: var(--text-soft); font-size: 0.92rem; line-height: 1.5; }

/* Cabinet store grid reuses landing product cards but constrained to the panel width */
#panel-store .products-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ===== Admin: media panel additions ===== */
.admin-role-select {
  height: 30px; padding: 0 0.4rem; font-size: 0.78rem; border-radius: 7px; margin-right: 0.3rem;
  background: rgba(0,0,0,0.3); color: var(--text-main); border: 1px solid rgba(255,255,255,0.12);
}
.admin-count {
  margin-left: 0.4rem; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600;
  color: var(--text-dim); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); vertical-align: middle;
}
.admin-count.hot { color: #ffd27f; background: rgba(255,180,60,0.14); border-color: rgba(255,180,60,0.4); }
.admin-nav-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 0.4rem; border-radius: 999px;
  display: inline-grid; place-items: center; font-size: 0.7rem; font-weight: 700; color: #07130f;
  background: var(--accent-bright);
}
.admin-nav-badge[hidden] { display: none; }
.tag-admin { color: #ffb3b3; background: rgba(255,80,80,0.12); border: 1px solid rgba(255,80,80,0.32); }
.tag-media { color: var(--accent-bright); background: color-mix(in srgb, var(--accent-bright) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent-bright) 32%, transparent); }
.admin-act-cell .admin-btn.ghost { padding: 0.35rem 0.6rem; font-size: 0.78rem; }
.admin-msg.ok { color: #7fe0a3; }
.admin-msg.error { color: #ff8d8d; }

/* ============================================================
   Cabinet — home-style shell (floating header + hero + page)
   ============================================================ */
.header-wrap--cab { width: min(100% - 2.4rem, 1200px); }
.header--cab { overflow: visible; gap: 1rem; }
/* `.header-cta`/`.admin-nav-link` set an explicit display, which would otherwise
   override the [hidden] attribute the JS toggles — force hidden to win. */
.header--cab [hidden] { display: none !important; }

/* display:contents lets nav + actions sit as direct flex children of the
   header on desktop (brand · nav · actions), and become a dropdown on mobile. */
.cab-collapse { display: contents; }

.cab-nav { gap: 0.3rem; }
/* Own class (NOT .admin-nav-link): the admin sidebar's rules set width:100% /
   text-align:left, which silently leaked into the cabinet header tabs. */
.header-nav-link.cab-nav-link {
  padding: 0.5rem 0.78rem; border-radius: 10px; border: 0; background: transparent;
  font-family: inherit; font-size: 0.92rem; cursor: pointer;
}
.header-nav-link.cab-nav-link:hover { background: rgba(255, 255, 255, 0.05); }
.header-nav-link.cab-nav-link.active {
  color: #fff;
  background: color-mix(in srgb, var(--accent-color) 22%, rgba(255, 255, 255, 0.04));
}

.cab-actions { gap: 0.55rem; }
.cab-chip {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.28rem 0.7rem 0.28rem 0.35rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03);
}
.cab-chip-av {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: #fff;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent-color) 78%, #fff), color-mix(in srgb, var(--accent-color) 35%, #14151f));
}
.cab-chip div { display: flex; flex-direction: column; line-height: 1.15; }
.cab-chip strong { font-size: 0.82rem; color: #fff; }
.cab-chip span { font-size: 0.7rem; color: var(--text-dim); }
.header-cta.cab-cta { min-width: auto; min-height: 38px; padding: 0.4rem 0.85rem; font-size: 0.88rem; }

/* Page + hero */
.cabinet-page {
  position: relative; z-index: 1;
  width: min(100% - 2.4rem, 1100px); margin: 0 auto;
  padding-top: calc(var(--header-height) + 3rem); padding-bottom: 5rem;
}
.cab-hero {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.85rem;
  margin: clamp(1.4rem, 5vh, 3rem) 0 2.4rem;
}
.cab-hero h1 {
  margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em;
  font-size: clamp(1.85rem, 4.2vw, 2.9rem); color: color-mix(in srgb, var(--accent-color) 14%, #ffffff);
  text-wrap: balance;
}
.cab-hero .hero-subtitle { margin: 0; }

/* Mobile / narrow: collapse nav + actions into a dropdown under the pill.
   Breakpoint is generous so the desktop row never crowds (admins get an extra link). */
@media (max-width: 1080px) {
  .header-burger { display: flex; }
  .cab-collapse {
    display: none; position: absolute; top: calc(100% + 0.6rem); left: 0; right: 0;
    flex-direction: column; gap: 0.7rem; padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px;
    background: rgba(8, 9, 16, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  }
  .header--cab.nav-open .cab-collapse { display: flex; }
  /* Re-enable display (the home header's mobile rule sets .header-nav/.header-actions
     to display:none at narrow widths; these higher-specificity rules win). */
  .header--cab.nav-open .cab-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .header--cab.nav-open .cab-actions { display: flex; flex-direction: column; align-items: stretch; gap: 0.55rem; border-top: 1px solid rgba(255, 255, 255, 0.07); padding-top: 0.7rem; }
  /* .header-cta--ghost carries margin-left for the desktop row — kill it in the column */
  .header--cab.nav-open .cab-actions .header-cta { margin-left: 0; }
  .header-nav-link.cab-nav-link { padding: 0.7rem 0.8rem; text-align: left; }
  .cab-chip { justify-content: flex-start; }
  .header-cta.cab-cta { width: 100%; min-height: 44px; }
}

/* ============================================================
   Cabinet — panels in the home-page design language
   (no admin-panel/admin-card/admin-table reuse)
   ============================================================ */
.cab-panel[hidden] { display: none; }

/* Blur-in entrance, same curve as the home reveal; re-runs on tab switch. */
@keyframes cabBlurUp { from { opacity: 0; filter: blur(18px); transform: translateY(16px); } to { opacity: 1; filter: blur(0); transform: none; } }
.cab-panel:not([hidden]) > *,
.cab-panel:not([hidden]) .cabinet-grid > *,
.cab-panel:not([hidden]) .products-grid > *,
.cab-panel:not([hidden]) .owned-list > * {
  animation: cabBlurUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.cab-panel:not([hidden]) .cabinet-grid > *:nth-child(2),
.cab-panel:not([hidden]) .products-grid > *:nth-child(2),
.cab-panel:not([hidden]) .owned-list > *:nth-child(2) { animation-delay: 0.06s; }
.cab-panel:not([hidden]) .cabinet-grid > *:nth-child(3),
.cab-panel:not([hidden]) .products-grid > *:nth-child(3),
.cab-panel:not([hidden]) .owned-list > *:nth-child(3) { animation-delay: 0.12s; }
.cab-panel:not([hidden]) .cabinet-grid > *:nth-child(4),
.cab-panel:not([hidden]) .products-grid > *:nth-child(4) { animation-delay: 0.18s; }
.cab-panel:not([hidden]) .cabinet-grid > *:nth-child(5),
.cab-panel:not([hidden]) .products-grid > *:nth-child(5) { animation-delay: 0.24s; }

/* Muted description line inside an info-card (loader hint, 2FA hint, ...). */
.info-card-desc { margin: 0 0 0.8rem; color: var(--text-dim); font-size: 0.85rem; line-height: 1.45; }

/* Centered intro note above the store grid (hero already carries the title). */
.cab-note {
  margin: 0 auto 1.8rem; max-width: 760px; text-align: center;
  color: var(--text-soft); font-size: 0.95rem; line-height: 1.55;
}

/* Owned subscriptions — cards in the product/advantage-card language. */
.owned-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; }
.owned-card {
  display: flex; align-items: center; gap: 1rem; padding: 1.3rem 1.4rem;
  border: 1px solid color-mix(in srgb, var(--accent-color) 30%, rgba(255, 255, 255, 0.1));
  border-radius: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-color) 11%, rgba(255, 255, 255, 0.02)), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.owned-card:hover { border-color: color-mix(in srgb, var(--accent-color) 55%, rgba(255, 255, 255, 0.15)); transform: translateY(-3px); }
.owned-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  color: #fff; background: color-mix(in srgb, var(--accent-color) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-color) 60%, #fff);
}
.owned-icon svg { width: 22px; height: 22px; }
.owned-main { display: flex; flex-direction: column; gap: 0.3rem; flex: 1; min-width: 0; }
.owned-main h3 { margin: 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: #fff; }
.owned-key { color: var(--text-muted); font-size: 0.88rem; letter-spacing: 0.03em; word-break: break-all; }

/* Empty state — dashed card with a shortcut into the store tab. */
.owned-empty {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 0.9rem; padding: 2.6rem 1.4rem;
  border: 1px dashed rgba(255, 255, 255, 0.14); border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
}
.owned-empty-icon { width: 46px; height: 46px; display: grid; place-items: center; color: var(--text-muted); }
.owned-empty-icon svg { width: 100%; height: 100%; }
.owned-empty p { margin: 0; color: var(--text-soft); font-size: 0.95rem; line-height: 1.5; max-width: 42ch; }
.owned-empty .cab-btn { width: auto; padding: 0 1.4rem; }
