﻿:root {
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

html[data-theme="dark"] {
  --bg: #080a0e;
  --bg-soft: #0d1016;
  --surface: #11151c;
  --surface-hi: #171c25;
  --border: rgba(255, 255, 255, .08);
  --border-hi: rgba(255, 255, 255, .16);
  --text: #eef2f8;
  --muted: #8d97a8;
  --accent: #7c9cff;
  --accent-ink: #0a0d13;
  --warn: #f5a97f;
  --warn-bg: rgba(245, 169, 127, .12);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, .9);
  --glow: radial-gradient(60% 60% at 50% 0%, rgba(124, 156, 255, .18), transparent 70%);
  --art-blue: linear-gradient(140deg, #1d2b56, #2f4c9e);
  --art-amber: linear-gradient(140deg, #3a2a12, #7c5a1f);
  --art-violet: linear-gradient(140deg, #2a2050, #5b3fa8);
  --art-pink: linear-gradient(140deg, #3d1c33, #8a3465);
  --art-teal: linear-gradient(140deg, #163b34, #2f7a63);
  --art-cyan: linear-gradient(140deg, #0f3346, #1f6f8f);
  --blob-a: rgba(90, 124, 255, .42);
  --blob-b: rgba(140, 80, 230, .32);
  --blob-c: rgba(40, 180, 160, .20);
  --grid: rgba(255, 255, 255, .045);
}

html[data-theme="light"] {
  --bg: #f4f6fa;
  --bg-soft: #eef1f7;
  --surface: #ffffff;
  --surface-hi: #f8fafc;
  --border: rgba(15, 23, 42, .10);
  --border-hi: rgba(15, 23, 42, .20);
  --text: #0d1526;
  --muted: #5c6879;
  --accent: #3255e8;
  --accent-ink: #ffffff;
  --warn: #b2541f;
  --warn-bg: rgba(178, 84, 31, .09);
  --shadow: 0 22px 48px -30px rgba(15, 23, 42, .45);
  --glow: radial-gradient(60% 60% at 50% 0%, rgba(50, 85, 232, .14), transparent 70%);
  --art-blue: linear-gradient(140deg, #c9d8ff, #7f9cf5);
  --art-amber: linear-gradient(140deg, #ffe6bf, #f0b35e);
  --art-violet: linear-gradient(140deg, #ded3ff, #a58bf0);
  --art-pink: linear-gradient(140deg, #ffd7ea, #ef8ab8);
  --art-teal: linear-gradient(140deg, #c9f0e2, #7fcbb4);
  --art-cyan: linear-gradient(140deg, #c9ecff, #7bc0e0);
  --blob-a: rgba(110, 145, 255, .34);
  --blob-b: rgba(170, 110, 255, .22);
  --blob-c: rgba(60, 200, 180, .16);
  --grid: rgba(15, 23, 42, .05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

body::before { content: none; }

/* ---------- animated background ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
}

.blob-1 {
  width: 540px;
  height: 540px;
  left: -140px;
  top: -180px;
  background: radial-gradient(circle, var(--blob-a), transparent 68%);
}

.blob-2 {
  width: 460px;
  height: 460px;
  right: -150px;
  top: 40px;
  background: radial-gradient(circle, var(--blob-b), transparent 68%);
}

.blob-3 {
  width: 620px;
  height: 620px;
  left: 38%;
  top: 34%;
  opacity: .38;
  background: radial-gradient(circle, var(--blob-c), transparent 70%);
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(60px, 70px, 0) scale(1.15); }
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 78%);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 60;
  background: linear-gradient(90deg, var(--accent), #b38cff, var(--accent));
  box-shadow: 0 0 12px var(--accent);
}

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

h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.15; }

/* ---------- topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: padding .25s ease;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}

.topbar.scrolled::before {
  border-bottom-color: var(--border);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}

.topbar.scrolled { padding-top: 14px; padding-bottom: 14px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 24px -12px var(--accent);
}

.brand-mark svg { width: 20px; height: 20px; }

.brand-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
}

.topbar-right { display: flex; align-items: center; gap: 16px; }

.topbar-note {
  font-size: 13px;
  color: var(--muted);
}

.theme-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.theme-toggle:hover { border-color: var(--border-hi); transform: translateY(-1px) rotate(8deg); }
.theme-toggle svg { width: 20px; height: 20px; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.theme-toggle:hover svg { transform: rotate(35deg) scale(1.08); }

html[data-theme="dark"] .icon-sun { display: block; }
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: block; }

/* ---------- hero ---------- */

main {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px 80px;
}

.hero { padding: 46px 0 64px; max-width: 760px; }

.grad {
  background-image: linear-gradient(100deg, #8fa8ff, #c4a1ff 34%, #7ce0cf 64%, #8fa8ff);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

html[data-theme="light"] .grad {
  background-image: linear-gradient(100deg, #2f52e0, #7a3ff0 34%, #0f9e86 64%, #2f52e0);
}

@keyframes gradientShift {
  to { background-position: 220% center; }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0ms);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.kicker {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  font-weight: 760;
}

.lede {
  margin: 22px 0 0;
  max-width: 560px;
  font-size: 17px;
  color: var(--muted);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.stat { display: flex; flex-direction: column; gap: 2px; }

.stat-num {
  font-size: 26px;
  font-weight: 720;
  letter-spacing: -.03em;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
}

.stat-live .stat-num { font-variant-numeric: tabular-nums; }

.pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #4ade80;
  vertical-align: middle;
  animation: livePulse 2s ease-out infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); }
  70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* ---------- catalog ---------- */

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

.catalog-head h2 { font-size: 24px; font-weight: 700; }

.search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  height: 42px;
  width: min(300px, 100%);
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  transition: border-color .2s ease;
}

.search:focus-within { border-color: var(--accent); }
.search svg { width: 17px; height: 17px; flex: none; }

.search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.search input::placeholder { color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .28s cubic-bezier(.2, .7, .2, 1), border-color .28s ease, box-shadow .28s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .35s ease;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), var(--spot, rgba(124, 156, 255, .16)), transparent 62%);
  pointer-events: none;
}

.card:hover::before { opacity: 1; }

.card > * { position: relative; z-index: 1; }

.card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .95), 0 0 0 1px color-mix(in srgb, var(--accent) 14%, transparent);
}

html[data-theme="light"] .card:hover {
  box-shadow: 0 26px 54px -30px rgba(15, 23, 42, .45), 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent);
}

.card-art {
  height: 146px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.card-art::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%);
  transform: translateX(-80%);
  transition: transform .8s ease;
}

.card:hover .card-art::after { transform: translateX(80%); }

html[data-theme="light"] .card-art { color: rgba(13, 21, 38, .78); }

.card-art svg {
  width: 58px;
  height: 58px;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.card-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .45));
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.card-shot {
  position: relative;
  z-index: 1;
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .45));
}

.card-shot-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(18px) brightness(.55) saturate(1.15);
  transform: scale(1.2);
}

.card:hover .card-logo { transform: translateY(-3px) scale(1.08); }

.card-art.art-stub { background: #0a0c11; }
.card-art.art-stub::after { display: none; }

.fnf {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: repeating-linear-gradient(0deg, #0a0c11, #0a0c11 2px, #10141c 2px, #10141c 4px);
}

.fnf::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(150, 190, 255, .12), transparent);
  animation: fnf-sweep 2.6s linear infinite;
}

.fnf span {
  position: relative;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: #8f9aab;
  text-shadow: 0 0 8px rgba(150, 190, 255, .35);
  animation: fnf-flicker 3.4s steps(1) infinite;
}

@keyframes fnf-sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@keyframes fnf-flicker {
  0%, 90%, 100% { opacity: .85; }
  92% { opacity: .25; }
  94% { opacity: 1; }
  96% { opacity: .45; }
}

.card:hover .card-art svg { transform: translateY(-4px) scale(1.10) rotate(-2deg); }

.art-blue { background: var(--art-blue); }
.art-amber { background: var(--art-amber); }
.art-violet { background: var(--art-violet); }
.art-pink { background: var(--art-pink); }
.art-teal { background: var(--art-teal); }
.art-cyan { background: var(--art-cyan); }

.card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.card-head h3 {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 16.5px;
  font-weight: 680;
  line-height: 1.3;
}

.badge {
  flex: none;
  white-space: nowrap;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.badge-warn {
  color: var(--warn);
  border-color: color-mix(in srgb, var(--warn) 40%, transparent);
  background: var(--warn-bg);
}

.badge-link {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.desc {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--muted);
}

.meta span {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.btn {
  margin-top: auto;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 650;
  transition: filter .18s ease, transform .18s ease, box-shadow .25s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, .45) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform .6s ease;
  pointer-events: none;
}

.btn:hover::after { transform: translateX(130%); }

.btn:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -14px color-mix(in srgb, var(--accent) 80%, transparent);
}

.btn:active { transform: scale(.985); }

.btn svg { width: 18px; height: 18px; transition: transform .25s ease; }

.btn:hover svg { transform: translateY(3px); }

.btn-warn {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid color-mix(in srgb, var(--warn) 38%, transparent);
}

.fineprint {
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}

kbd {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 5px;
  border: 1px solid var(--border-hi);
  background: var(--bg-soft);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
}

.empty {
  padding: 40px 0;
  color: var(--muted);
  text-align: center;
}

/* ---------- how ---------- */

.how {
  margin-top: 84px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.how h2 { font-size: 24px; font-weight: 700; margin-bottom: 28px; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.step {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.step-num {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}

.step h3 { font-size: 16px; font-weight: 650; margin-bottom: 6px; }
.step p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- footer ---------- */

.footer {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.footer .brand-name { color: var(--text); }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--surface-hi);
  border: 1px solid var(--border-hi);
  color: var(--text);
  font-size: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 20;
  max-width: min(460px, calc(100% - 40px));
  text-align: center;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, .62);
  backdrop-filter: blur(4px);
}

html[data-theme="light"] .modal-backdrop { background: rgba(15, 23, 42, .40); }

.modal-card {
  position: relative;
  width: min(440px, 100%);
  padding: 26px;
  border-radius: 20px;
  border: 1px solid var(--border-hi);
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: modal-in .18s ease-out;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
}

.modal-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--warn-bg);
  color: var(--warn);
}

.modal-icon svg { width: 24px; height: 24px; }

.modal-card h3 { margin-bottom: 8px; font-size: 20px; }

.modal-card p {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.modal-actions .btn { margin-top: 0; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hi);
}

.btn-ghost:hover { filter: none; border-color: var(--text); }

body.modal-open { overflow: hidden; }

/* ---------- аккаунт, подробнее, комментарии ---------- */

.auth-btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}

.auth-btn:hover { border-color: var(--border-hi); }
.auth-btn.is-in { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.mini-btn {
  flex: 1;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}

.mini-btn:hover { color: var(--text); border-color: var(--border-hi); }
.mini-count { color: var(--accent); }

.auth-card { width: min(420px, 100%); text-align: left; }
.auth-hint { margin: 8px 0 18px; font-size: 13px; color: var(--muted); line-height: 1.5; }

.lang-card { width: min(460px, 100%); text-align: left; }
.lang-sub { margin: 6px 0 16px; font-size: 13px; color: var(--muted); }
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.lang-option:hover { border-color: var(--accent); }

.flag {
  width: 26px;
  height: 18px;
  flex: none;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .18);
}

.auth-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--bg-soft);
}

.auth-tab {
  flex: 1;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.auth-tab.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }

.auth-form input {
  height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.auth-form input:focus { border-color: var(--accent); }
.auth-error { min-height: 18px; margin: 0; font-size: 12.5px; color: var(--warn); }
.auth-form .btn { width: 100%; }

.link-btn {
  margin-top: 14px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.link-btn:hover { color: var(--text); }

.details-card {
  width: min(700px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  text-align: left;
}

.modal-x {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.modal-x:hover { color: var(--text); border-color: var(--border-hi); }

.details-head { display: flex; align-items: flex-start; gap: 12px; padding-right: 34px; }
.details-head h3 { font-size: 22px; }
.details-desc { margin: 10px 0 16px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.details-actions { margin: 0 0 22px; }
.details-actions .btn { width: 100%; }
.details-alt { margin: -10px 0 20px; font-size: 13px; color: var(--muted); }
.details-alt a { color: var(--accent); text-decoration: none; border-bottom: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); }
.details-alt a:hover { border-bottom-style: solid; }

.hash-line { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }
.hash-line code {
  display: block;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  font-size: 11px;
  line-height: 1.5;
  color: var(--text);
  word-break: break-all;
}
#dHashBlock .btn { width: auto; }

.vt-status { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.vt-status.is-clean { color: #35c48a; }
.vt-status.is-bad { color: var(--warn); }

.vt-progress {
  height: 6px;
  margin: 10px 0 2px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  overflow: hidden;
}

.vt-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #7ce0cf);
  transition: width .25s ease;
}
.details-section { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--border); }
.details-section h4 { margin: 0 0 10px; font-size: 15px; }
.details-steps { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }

.comments-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.comment { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--border); }
.comment-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 12.5px; }
.comment-head strong { color: var(--accent); font-weight: 650; }
.comment-head time { color: var(--muted); }
.comment-text { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.comments-empty { margin: 0 0 14px; font-size: 13px; color: var(--muted); }

.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  resize: vertical;
  outline: none;
}

.comment-form textarea:focus { border-color: var(--accent); }
.comment-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.comment-hint { font-size: 12.5px; color: var(--muted); }
.comment-actions .btn { width: auto; padding: 0 18px; height: 38px; margin-top: 0; }

/* ---------- mobile ---------- */

@media (max-width: 720px) {
  .topbar { padding: 16px 18px; }
  .topbar-note { display: none; }
  main { padding: 0 18px 56px; }
  .hero { padding: 26px 0 44px; }
  .hero-stats { gap: 26px; }
  .catalog-head { flex-direction: column; align-items: stretch; }
  .search { width: 100%; }
  .footer { flex-direction: column; align-items: flex-start; padding: 22px 18px; }
  .modal-actions .btn { flex: 1 1 auto; }
}

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