/* ==========================================================================
   CARD DROP — общие стили сайта (лендинг + кабинет)
   Без внешних шрифтов и картинок: системные шрифты, CSS-градиенты.
   ========================================================================== */

:root {
  --bg: #07080d;
  --bg-soft: #0b0e17;
  --panel: rgba(15, 18, 30, 0.72);
  --panel-solid: #0e111b;
  --text: #eef1fa;
  --muted: #96a0b6;
  --muted-2: #6f788c;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.16);

  --violet: #a970ff;
  --violet-2: #7a3bff;
  --teal: #00e0c6;
  --gold: #ffb23e;
  --danger: #ff5f70;
  --good: #3ddc97;

  --radius: 18px;
  --radius-sm: 12px;
  --shell: 1180px;
  --font: 'Montserrat', 'Roboto', 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;

  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --glow-violet: 0 0 40px rgba(140, 90, 255, 0.25);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--bg);
}

body.site {
  background:
    radial-gradient(1000px 640px at 12% -8%, rgba(140, 80, 255, 0.20), transparent 62%),
    radial-gradient(900px 560px at 96% 4%, rgba(0, 224, 198, 0.09), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(122, 59, 255, 0.10), transparent 65%),
    var(--bg);
}

body.site::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 100%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 100%);
}

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

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

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

::selection {
  background: rgba(169, 112, 255, 0.4);
  color: #fff;
}

.container {
  width: min(var(--shell), calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--panel-solid);
  border: 1px solid var(--line);
}

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

/* ==========================================================================
   Типографика
   ========================================================================== */

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 850;
}

h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
}

h3 {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.lead {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--muted);
  max-width: 560px;
}

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

.grad {
  background: linear-gradient(100deg, #d9c2ff 0%, var(--violet) 40%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Кнопки
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.24);
}

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

.btn:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.btn--primary {
  background: linear-gradient(180deg, #9a5cff, #6f2ee6);
  border-color: rgba(169, 112, 255, 0.55);
  box-shadow: 0 10px 30px rgba(110, 60, 220, 0.34);
}

.btn--primary:hover {
  background: linear-gradient(180deg, #aa73ff, #7b3cf2);
  border-color: rgba(190, 150, 255, 0.7);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.035);
}

.btn--sm {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 9px;
}

.btn--lg {
  min-height: 50px;
  padding: 14px 22px;
  font-size: 15px;
  border-radius: 13px;
}

.btn--danger-ghost {
  color: #ff9aa4;
  border-color: rgba(255, 95, 112, 0.25);
  background: rgba(255, 95, 112, 0.05);
}

.btn--danger-ghost:hover {
  background: rgba(255, 95, 112, 0.11);
  border-color: rgba(255, 95, 112, 0.45);
}

.btn--danger {
  background: linear-gradient(180deg, #ff6b7a, #d33042);
  border-color: rgba(255, 95, 112, 0.6);
  color: #fff;
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.4);
}

.btn[hidden] {
  display: none !important;
}

/* ==========================================================================
   Навигация
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 8, 13, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: #e9e3ff;
  white-space: nowrap;
}

.brand svg {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 10px rgba(169, 112, 255, 0.6));
}

.brand:hover {
  color: #fff;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.nav__links a:hover {
  color: var(--text);
}

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

.nav__demo {
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  padding-bottom: 1px;
}

.nav__demo:hover {
  color: var(--text);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
  padding: clamp(54px, 8vw, 108px) 0 clamp(60px, 8vw, 110px);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}

.hero__copy h1 {
  max-width: 720px;
}

.hero__copy .lead {
  max-width: 540px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--muted-2);
}

.hero__meta li {
  position: relative;
  padding-left: 16px;
}

.hero__meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(0, 224, 198, 0.8);
}

.notice {
  margin: 0;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid rgba(169, 112, 255, 0.28);
  background: rgba(169, 112, 255, 0.08);
  color: #d9c8ff;
  font-size: 12.5px;
  line-height: 1.5;
  max-width: 560px;
}

.notice--error {
  border-color: rgba(255, 95, 112, 0.3);
  background: rgba(255, 95, 112, 0.08);
  color: #ffb3bb;
}

.notice[hidden] {
  display: none !important;
}

/* Артовая часть героя */

.hero__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  perspective: 1200px;
}

.glow-orb {
  position: absolute;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 80, 255, 0.34), rgba(140, 80, 255, 0) 68%);
  filter: blur(10px);
  z-index: 0;
}

.mock-card {
  position: relative;
  z-index: 2;
  width: 300px;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  background: #0a0c14;
  border: 2px solid var(--gold);
  box-shadow:
    0 0 30px rgba(255, 178, 62, 0.35),
    0 0 90px rgba(255, 178, 62, 0.18),
    0 30px 60px rgba(0, 0, 0, 0.55);
  transform: rotate(-3.5deg);
  animation: cardFloatSite 6s ease-in-out infinite alternate;
}

.mock-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mock-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 12, 0.45) 0%, transparent 22%),
    linear-gradient(180deg, transparent 48%, rgba(5, 7, 12, 0.86) 82%, rgba(5, 7, 12, 0.98) 100%);
}

.mock-card__badge {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  padding: 5px 9px;
  border-radius: 6px;
  border: 1px solid var(--gold);
  background: rgba(5, 7, 12, 0.65);
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
}

.mock-card__body {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-card__body span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.mock-card__body strong {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mock-card__body div {
  font-size: 11px;
  color: var(--muted);
}

.mock-card__body b {
  color: #e8ecf7;
  font-weight: 700;
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(10, 12, 20, 0.82);
  border: 1px solid var(--line-strong);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  font-size: 11px;
  font-weight: 600;
  color: #d7ddf0;
  animation: chipFloat 5.4s ease-in-out infinite alternate;
}

.float-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 9px rgba(0, 224, 198, 0.85);
}

.float-chip--history {
  right: 2%;
  bottom: 13%;
}

.float-chip--rarity {
  left: 0;
  top: 15%;
  color: var(--gold);
  border-color: rgba(255, 178, 62, 0.35);
  animation-delay: -2s;
}

.float-chip--rarity b {
  color: #fff;
  font-weight: 800;
}

/* ==========================================================================
   Секции
   ========================================================================== */

.section {
  padding: clamp(48px, 7vw, 86px) 0;
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 36px;
}

.section__head h2 {
  max-width: 720px;
}

.section__head p {
  margin: 0;
  color: var(--muted);
  max-width: 620px;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(169, 112, 255, 0.35);
  background: linear-gradient(180deg, rgba(169, 112, 255, 0.08), rgba(255, 255, 255, 0.012));
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  margin-bottom: 16px;
  background: rgba(169, 112, 255, 0.10);
  border: 1px solid rgba(169, 112, 255, 0.22);
  color: #c8a7ff;
}

.feature__icon svg {
  width: 21px;
  height: 21px;
}

.feature p {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px 22px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(11, 14, 23, 0.55);
  overflow: hidden;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}

.step h3 {
  margin-bottom: 8px;
  position: relative;
}

.step p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  position: relative;
}

.step__tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 224, 198, 0.08);
  border: 1px solid rgba(0, 224, 198, 0.22);
  color: #8ff3e6;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: start;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(11, 14, 23, 0.55);
  padding: 0 16px;
}

.faq details[open] {
  border-color: rgba(169, 112, 255, 0.28);
  background: rgba(169, 112, 255, 0.05);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--violet);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--muted);
}

.cta {
  padding: 50px 0 80px;
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(26px, 4vw, 44px);
  border-radius: 22px;
  border: 1px solid rgba(169, 112, 255, 0.30);
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(169, 112, 255, 0.20), transparent 60%),
    radial-gradient(70% 120% at 100% 100%, rgba(0, 224, 198, 0.10), transparent 60%),
    rgba(11, 14, 23, 0.8);
}

.cta__inner h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.cta__inner p {
  margin: 8px 0 0;
  color: var(--muted);
}

.cta__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Футер
   ========================================================================== */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 26px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: var(--muted-2);
}

.footer__inner a:hover {
  color: var(--text);
}

.footer__links {
  display: flex;
  gap: 18px;
}

/* ==========================================================================
   Кабинет
   ========================================================================== */

body.app {
  background:
    radial-gradient(900px 600px at 8% -10%, rgba(140, 80, 255, 0.16), transparent 60%),
    radial-gradient(700px 500px at 100% 0%, rgba(0, 224, 198, 0.06), transparent 60%),
    var(--bg);
}

.dash-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 8, 13, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.dash-nav__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
}

.dash-nav__user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  min-width: 0;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, #a970ff, #00e0c6);
  flex: 0 0 auto;
}

.avatar--fallback {
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #0a0c14;
  text-transform: uppercase;
}

.dash-nav__name {
  font-size: 13px;
  font-weight: 700;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash {
  padding: 38px 0 70px;
}

.dash__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.dash__head h1 {
  font-size: clamp(30px, 3.8vw, 44px);
}

.dash__head p {
  margin: 0;
  color: var(--muted);
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.dash-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.panel {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 21, 34, 0.82), rgba(9, 11, 18, 0.86));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.panel h2 {
  font-size: 17px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.panel > p {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}

.copy-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.copy-row input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(3, 5, 10, 0.7);
  color: #dfe5f2;
  font-size: 12.5px;
  outline: none;
  text-overflow: ellipsis;
}

.copy-row input:focus {
  border-color: rgba(169, 112, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(169, 112, 255, 0.14);
}

.copy-row .btn {
  flex: 0 0 auto;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hint {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted-2);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.field > span {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field select,
.field input[type="text"] {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(3, 5, 10, 0.72);
  color: var(--text);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #8c96ab 50%),
    linear-gradient(135deg, #8c96ab 50%, transparent 50%);
  background-position:
    calc(100% - 17px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.field select:focus,
.field input[type="text"]:focus {
  border-color: rgba(169, 112, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(169, 112, 255, 0.14);
}

.field select option {
  background: #0e111b;
  color: var(--text);
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin: 4px 0 16px;
}

.switch-row b {
  display: block;
  font-size: 13.5px;
}

.switch-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.45;
}

.switch-input {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  width: 42px;
  height: 24px;
  margin: 0;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.10);
  cursor: pointer;
  outline: none;
  flex: 0 0 auto;
  transition: background 0.2s ease;
}

.switch-input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d4dbeb;
  transition: transform 0.2s ease, background 0.2s ease;
}

.switch-input:checked {
  background: linear-gradient(90deg, #6f3bd9, #a970ff);
}

.switch-input:checked::after {
  transform: translateX(18px);
  background: #fff;
}

.switch-input:focus-visible {
  box-shadow: 0 0 0 3px rgba(169, 112, 255, 0.28);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.save-state {
  font-size: 12px;
  color: var(--muted);
  min-height: 18px;
}

.save-state[data-kind="ok"] { color: var(--good); }
.save-state[data-kind="error"] { color: #ff9aa4; }
.save-state[data-kind="saving"] { color: var(--gold); }
.save-state[data-kind="dirty"] { color: var(--gold); }

.btn:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.banner code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.92em;
}

/* Баннеры */

.banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.banner a {
  color: #c9a7ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.banner--violet {
  border-color: rgba(169, 112, 255, 0.28);
  background: rgba(169, 112, 255, 0.08);
  color: #d9c8ff;
}

.banner--red {
  border-color: rgba(255, 95, 112, 0.3);
  background: rgba(255, 95, 112, 0.07);
  color: #ffb3bb;
}

.banner--gold {
  border-color: rgba(255, 178, 62, 0.28);
  background: rgba(255, 178, 62, 0.07);
  color: #ffe0ad;
}

.banner[hidden] {
  display: none !important;
}

/* Превью в кабинете */

.mini-card {
  position: relative;
  width: 100%;
  max-width: 270px;
  aspect-ratio: 3 / 4;
  margin: 4px auto 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--gold);
  background: #0a0c14;
  box-shadow: 0 0 26px rgba(255, 178, 62, 0.22), 0 18px 40px rgba(0, 0, 0, 0.4);
}

.mini-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.3), transparent 30%, rgba(5, 7, 12, 0.9) 82%);
}

.mini-card__body {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px;
}

.mini-card__body span {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.mini-card__body strong {
  display: block;
  font-size: 20px;
  line-height: 1.05;
  margin-top: 3px;
}

.check-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.check-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.check-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 8px rgba(61, 220, 151, 0.7);
}

.check-list li[data-kind="bad"]::before {
  background: var(--danger);
  box-shadow: 0 0 8px rgba(255, 95, 112, 0.7);
}

.check-list li[data-kind="warn"]::before {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(255, 178, 62, 0.7);
}

.panel__headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.panel__headline h2 {
  margin-bottom: 0;
}

.linkish {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--violet);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px dashed rgba(169, 112, 255, 0.4);
  line-height: 1.3;
}

.linkish:hover {
  color: #c9a7ff;
}

.linkish:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.drop-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drop-list__empty {
  padding: 10px 4px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted-2);
}

.drop-item {
  display: grid;
  grid-template-columns: 4px 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 7px 9px 7px 7px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.drop-item__strip {
  width: 4px;
  height: 32px;
  border-radius: 2px;
  background: var(--r);
  box-shadow: 0 0 10px var(--r);
}

.drop-item__thumb {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}

.drop-item__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

.drop-item__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drop-item__name {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drop-item__meta {
  font-size: 10px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drop-item__meta b {
  color: var(--muted);
  font-weight: 600;
}

.drop-item__rarity {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel--help ol {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel--help strong {
  color: var(--text);
}

.dash-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 30px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--violet);
  animation: spin 0.8s linear infinite;
}

.dash-error {
  padding: 22px;
  border: 1px solid rgba(255, 95, 112, 0.3);
  background: rgba(255, 95, 112, 0.06);
  border-radius: var(--radius);
  color: #ffb3bb;
}

/* ==========================================================================
   Анимации
   ========================================================================== */

@keyframes cardFloatSite {
  from { transform: rotate(-3.5deg) translate3d(0, 0, 0); }
  to { transform: rotate(-2deg) translate3d(0, -14px, 0); }
}

@keyframes chipFloat {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -8px, 0); }
}

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

/* Кабинет стримера: шире, чтобы не было больших пустых полей по краям.
   Остальные страницы сайта сохраняют обычную ширину. */
/* ==========================================================================
   Адаптивность
   ========================================================================== */

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

  .hero__art {
    min-height: 440px;
    order: 2;
  }

  .hero__copy {
    order: 1;
  }

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

  .faq {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .nav__links {
    display: none;
  }

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

@media (max-width: 680px) {
  .container {
    width: min(var(--shell), calc(100% - 28px));
  }

  .nav__inner {
    height: 62px;
    gap: 12px;
  }

  .brand {
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .brand svg {
    width: 22px;
    height: 22px;
  }

  .nav__actions {
    gap: 8px;
  }

  .nav__actions .btn {
    min-height: 34px;
    padding: 8px 11px;
    font-size: 12px;
  }

  .hero__art {
    min-height: 380px;
  }

  .mock-card {
    width: 230px;
    height: 307px;
  }

  .mock-card__body strong {
    font-size: 21px;
  }

  .float-chip--history {
    right: -4px;
    bottom: 8%;
  }

  .float-chip--rarity {
    left: -6px;
    top: 9%;
  }

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

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .cta__actions .btn {
    flex: 1 1 100%;
  }

  .copy-row {
    flex-direction: column;
  }

  .copy-row .btn {
    width: 100%;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .dash-nav__name {
    max-width: 110px;
  }

  .panel {
    padding: 17px;
  }

  .dash {
    padding-top: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
