/* ═══════════════════════════════════════════════════════════════
   СічВовк — козацький мілітарі-фолк / кіберпанк
   Нічний степ · коване залізо · вишивка · Дніпро
   ═══════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;
  --bg: #121417;
  --bg-2: #181A1B;
  --panel: #1E2226;
  --panel-2: #24282D;
  --wood: #2A2118;
  --text: #F3F4F6;
  --muted: #9CA3AF;
  --gold: #F5B800;
  --gold-bright: #FFD700;
  --uk-blue: #0057B7;
  --uk-blue-bright: #2F6FE0;
  --crimson: #9E1B1B;
  --crimson-bright: #C1272D;
  --danger: #ff5d73;
  --success: #4ade80;
  --line: rgba(245, 184, 0, 0.18);
  --line-soft: rgba(255, 255, 255, 0.07);
}

* { box-sizing: border-box; }

/* ─── Прапор-смуга ─── */
.flag-strip {
  height: 6px;
  background: linear-gradient(90deg,
    var(--uk-blue) 0%, var(--uk-blue-bright) 49.6%,
    var(--gold) 50.4%, var(--gold-bright) 100%);
  box-shadow: 0 1px 8px rgba(245,184,0,.35);
}

body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    /* Дерев'яна текстура: тонкі вертикальні волокна */
    repeating-linear-gradient(90deg,
      rgba(0,0,0,.14) 0px, rgba(0,0,0,.14) 1px,
      transparent 1px, transparent 7px),
    /* Ковальські вкраплення */
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.14), transparent 60%),
    radial-gradient(1px 1px at 78% 8%, rgba(245,184,0,.16), transparent 60%),
    radial-gradient(1.5px 1.5px at 45% 60%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(1px 1px at 90% 45%, rgba(245,184,0,.12), transparent 60%),
    /* Небо над степом: захід сонця */
    radial-gradient(1200px 500px at 50% -8%, rgba(245,184,0,.10), transparent 55%),
    radial-gradient(900px 600px at 88% 30%, rgba(0,87,183,.20), transparent 60%),
    radial-gradient(800px 500px at 8% 80%, rgba(158,27,27,.10), transparent 60%),
    linear-gradient(180deg, #0C0E10 0%, var(--bg) 40%, #0A0B0C 100%);
  min-height: 100vh;
  letter-spacing: .1px;
}

a { color: var(--uk-blue-bright); text-decoration: none; }
a:hover { color: var(--gold); }
code {
  background: rgba(0, 87, 183, .25);
  color: #cfe0ff;
  border: 1px solid rgba(47, 111, 224, .35);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: .92em;
}

/* ─── Вишиваний розділювач (орнамент) ─── */
.ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  opacity: .85;
  user-select: none;
}
.ornament::before, .ornament::after {
  content: "";
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg,
    var(--gold) 0 8px, transparent 8px 14px);
  opacity: .5;
}
.ornament::before { transform: scaleX(-1); }

/* ─── Шапка ─── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: linear-gradient(180deg, rgba(24,26,27,.92), rgba(18,20,23,.88));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 -2px 0 rgba(245,184,0,.15);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Oswald", "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(245,184,0,.35);
}
.brand:hover { color: var(--gold-bright); }
.brand .wolf-mark { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 0 6px rgba(245,184,0,.5)); }
.user-box { display: flex; align-items: center; gap: 12px; }
.user-name { color: var(--gold); font-weight: 600; text-decoration: none; }
.user-name:hover { color: var(--gold-bright); text-decoration: underline; }
.container { max-width: 1100px; margin: 32px auto; padding: 0 20px; }

/* ─── Картки: коване залізо / темне дерево ─── */
.card, .login-card {
  position: relative;
  background:
    /* Дерев'яні волокна */
    repeating-linear-gradient(0deg,
      rgba(255,255,255,.015) 0 2px, transparent 2px 6px),
    /* Ковальський градієнт */
    linear-gradient(160deg, var(--panel-2) 0%, var(--panel) 55%, #1A1D20 100%);
  border: 1px solid rgba(245, 184, 0, 0.16);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 0 -1px 0 rgba(0,0,0,.4);
}
/* Золотий кант картки — як окантовка щита */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 18px; right: 18px;
  height: 3px;
  background: linear-gradient(90deg,
    transparent, rgba(245,184,0,.9) 25%,
    var(--gold-bright) 50%, rgba(245,184,0,.9) 75%, transparent);
  opacity: .8;
}
.card::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(245,184,0,.07);
  border-radius: 10px;
  pointer-events: none;
}
.login-card { max-width: 520px; margin: 60px auto; text-align: center; }
.login-card::before, .login-card::after { display: none; }

h1, h2, h3 {
  font-family: "Oswald", "Montserrat", sans-serif;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
h1 {
  font-size: 30px;
  margin-top: 0;
  color: var(--gold-bright);
  text-shadow: 0 2px 14px rgba(0,0,0,.6), 0 0 30px rgba(245,184,0,.15);
}
h2 {
  font-size: 19px;
  margin-top: 0;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.muted { color: var(--muted); }
.empty {
  padding: 32px;
  text-align: center;
  color: var(--muted);
  background: var(--panel);
  border: 1px dashed rgba(245,184,0,.25);
  border-radius: 14px;
}

.stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background:
    linear-gradient(135deg, rgba(0,87,183,.18), rgba(245,184,0,.07)),
    var(--panel);
  border: 1px solid rgba(245, 184, 0, 0.3);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 0 1px rgba(0,87,183,.15), 0 12px 40px rgba(0,0,0,.4);
}
.stat-card span { color: var(--muted); }
.stat-card strong {
  font-family: "Oswald", sans-serif;
  font-size: 22px;
  color: var(--gold);
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stats .stat-card { margin-bottom: 0; }

.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; border: 1px solid; }
.alert.success { background: rgba(74, 222, 128, .10); color: var(--success); border-color: rgba(74,222,128,.3); }
.alert.error { background: rgba(248, 113, 113, .10); color: var(--danger); border-color: rgba(248,113,113,.3); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.table th {
  color: var(--muted);
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.table tr:hover td { background: rgba(245,184,0,.04); }

.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }

/* ─── Кнопки: ковані таблички з золотим сяйвом ─── */
.button, button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(245, 184, 0, 0.5);
  border-radius: 8px;
  padding: 10px 18px;
  background:
    linear-gradient(180deg, rgba(245,184,0,.16), rgba(0,0,0,.25)),
    linear-gradient(135deg, var(--crimson) 0%, #6E1212 100%);
  color: var(--gold-bright);
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 4px 14px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -2px 0 rgba(0,0,0,.35);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.button:hover, button:hover, .btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold-bright);
  color: #fff;
  box-shadow:
    0 8px 24px rgba(245,184,0,.35),
    0 0 18px rgba(245,184,0,.25),
    inset 0 1px 0 rgba(255,255,255,.15);
}
.button:active, button:active, .btn:active { transform: translateY(0); }
.button.small, button.small, .btn.small { padding: 6px 12px; font-size: 12px; }
.button.primary, button.primary {
  background: linear-gradient(180deg, rgba(47,111,224,.3), rgba(0,40,90,.4)),
              linear-gradient(135deg, var(--uk-blue) 0%, #003a7a 100%);
  color: #fff;
  border-color: rgba(47,111,224,.6);
}
.button.danger, button.danger {
  background: linear-gradient(180deg, rgba(193,39,45,.3), rgba(90,10,12,.45)),
              linear-gradient(135deg, var(--crimson-bright) 0%, #5A0A0C 100%);
  color: #ffd9db;
  border-color: rgba(193,39,45,.6);
}
button:disabled, .button:disabled, .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

select, input[type="text"], input[type="number"], input[type="search"], textarea {
  background: rgba(10, 12, 14, .85);
  color: var(--text);
  border: 1px solid rgba(245, 184, 0, 0.22);
  border-radius: 8px;
  padding: 9px 12px;
  font-family: inherit;
}
select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,184,0,.15);
}
.warn-list { padding-left: 20px; }
.warn-list li { margin-bottom: 8px; }
.telegram-login { margin-top: 18px; }

/* ─── Навігація ─── */
.nav { display: flex; gap: 16px; align-items: center; }
.nav a {
  color: var(--muted);
  font-family: "Oswald", sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ─── Герой-сторінка ─── */
.about-hero {
  text-align: center;
  overflow: hidden;
  border-color: rgba(245, 184, 0, .4);
  background:
    /* Захід сонця над Дніпром */
    radial-gradient(700px 320px at 50% -10%, rgba(245,184,0,.22), transparent 65%),
    radial-gradient(900px 400px at 50% 115%, rgba(0,87,183,.35), transparent 70%),
    linear-gradient(180deg, rgba(18,20,23,.4), rgba(18,20,23,.92)),
    var(--panel);
}
.about-hero h1 { font-size: 36px; letter-spacing: 2px; }
.about-hero p { max-width: 820px; margin-left: auto; margin-right: auto; }
.hero-ornament {
  color: var(--gold);
  font-size: 26px;
  letter-spacing: 10px;
  opacity: .9;
  margin: 6px 0 14px;
  text-shadow: 0 0 20px rgba(245,184,0,.5);
}

/* ─── Hero-арт: вовк-козак над Січчю ─── */
.hero-art {
  position: relative;
  margin: -24px -24px 20px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  line-height: 0;
}
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-caption {
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

.creator-card { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.creator-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  background: linear-gradient(135deg, var(--crimson), var(--gold));
  border: 2px solid rgba(245,184,0,.6);
  box-shadow: 0 0 24px rgba(245,184,0,.4), inset 0 2px 6px rgba(0,0,0,.4);
  flex: none;
}
.creator-info { flex: 1; min-width: 220px; }
.creator-id { color: var(--muted); font-size: 13px; }

.rp-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--panel-2);
  border: 1px solid rgba(0, 87, 183, .4);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}
.rp-chip.solo { border-color: rgba(245, 184, 0, .5); }
.rp-chip.adult { border-color: rgba(248, 113, 113, .55); background: rgba(248, 113, 113, .07); }
.rp-chip.adult em { color: #f87171; }
.rp-chip em { color: var(--gold); font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }

.neon-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(245, 184, 0, .4);
}
.neon-card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(245,184,0,.16), transparent 70%);
  pointer-events: none;
}
.neon-card::after {
  content: "🐺⚔️";
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 22px;
  opacity: .8;
}

.lang-dashboard { display: flex; gap: 18px; align-items: center; }
.lang-score {
  min-width: 96px;
  font-family: "Oswald", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(245,184,0,.5);
}
.lang-score::after { content: " 🇺🇦"; }

/* ─── Допоміжні сітки (каталог тощо) ─── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.badge {
  display: inline-block;
  background: rgba(0,87,183,.25);
  border: 1px solid rgba(47,111,224,.4);
  color: #bcd4ff;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  margin: 2px 4px 2px 0;
}
.grid .card { display: block; color: var(--text); margin-bottom: 0; transition: transform .15s, border-color .15s; }
.grid .card:hover { transform: translateY(-3px); border-color: rgba(245,184,0,.45); }
.grid .card strong { color: var(--gold-bright); font-family: "Oswald", sans-serif; letter-spacing: .5px; }

/* ─── Команди (довідник) ─── */
.cmd-search { margin-bottom: 16px; }
.cmd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cmd-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px 16px; }
.cmd-card h3 { margin: 0 0 6px; font-size: 16px; color: var(--gold); }
.cmd-names { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.cmd-syntax { font-family: ui-monospace, monospace; font-size: 12.5px; color: #cfe0ff; background: rgba(0,87,183,.15); padding: 6px 8px; border-radius: 6px; display: inline-block; margin-bottom: 6px; }
.cmd-desc { font-size: 13.5px; margin: 6px 0; }
.cmd-examples { font-size: 12.5px; color: var(--muted); }
.cmd-notes { font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line-soft); padding-top: 6px; margin-top: 8px; }
.cmd-section { margin-bottom: 26px; }
.cmd-section > h2 { margin-bottom: 12px; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cat-nav a {
  font-family: "Oswald", sans-serif; font-size: 13px; letter-spacing: .5px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
}
.cat-nav a:hover, .cat-nav a.active { color: var(--gold); border-color: var(--gold); background: rgba(245,184,0,.08); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.faq-item { border-bottom: 1px solid var(--line-soft); padding: 10px 0; }
.login-tg { margin-top: 14px; }

@keyframes uk-pulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(245,184,0,.4)); }
  50% { filter: drop-shadow(0 0 14px rgba(245,184,0,.7)); }
}
.brand { animation: uk-pulse 3.6s ease-in-out infinite; }

@media (max-width: 720px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nav { flex-wrap: wrap; }
  .about-hero h1 { font-size: 26px; }
  .cmd-grid { grid-template-columns: 1fr; }
}

/* ─── Центрування кнопки Telegram-логіну ─── */
.login-card .telegram-login,
.login-card .tg-auth-button,
.login-card [id^="telegram-login"],
.login-card div:has(> .tg-auth-button),
.login-card div:has(iframe) {
  display: flex;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}
.login-card .tg-auth-button { margin: 18px auto 0; }
.login-card script + .tg-auth-button,
.login-card .telegram-login-widget { margin-left: auto; margin-right: auto; }

/* ─── Футер ─── */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10,11,12,.6), rgba(6,7,8,.9));
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-brand .wolf-mark { width: 22px; height: 22px; }
.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-nav a {
  color: var(--muted);
  font-size: 13.5px;
  padding: 4px 2px;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.footer-nav a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.footer-copy {
  width: 100%;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  opacity: .75;
}

/* ─── Кнопка-примара ─── */
.button.ghost {
  background: transparent;
  border-color: rgba(245, 184, 0, .3);
  color: var(--muted);
  box-shadow: none;
}
.button.ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  box-shadow: 0 0 14px rgba(245,184,0,.15);
}

/* ─── Поява карток при скролі ─── */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.card, .stat-card, .grid .card {
  animation: rise-in .5s ease both;
}
.card:nth-of-type(2), .stat-card:nth-child(2) { animation-delay: .05s; }
.card:nth-of-type(3), .stat-card:nth-child(3) { animation-delay: .1s; }
.card:nth-of-type(4), .stat-card:nth-child(4) { animation-delay: .15s; }

/* ─── Блоки коду ─── */
.code-block {
  background: rgba(10, 12, 14, .7);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: .92rem;
  line-height: 1.55;
  white-space: pre-wrap;
  color: #dbe8ff;
}

/* ─── Головна: живі цифри, телефони, кроки, FAQ ─── */
.live-stats { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: center; margin-top: 22px; }
.live-stat { text-align: center; }
.live-stat strong { display: block; font-size: 1.5rem; color: var(--gold); }
.live-stat span { color: var(--muted); font-size: .82rem; }

.phones { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; margin: 18px 0; }
.phone {
  width: 220px; border-radius: 26px; padding: 10px;
  background: linear-gradient(145deg, #2a2d33, #15171b);
  border: 1px solid var(--line-soft);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.phone-screen {
  border-radius: 18px; background: var(--bg, #0d0f12);
  padding: 16px 14px; min-height: 340px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: .78rem;
}
.ph-top { font-weight: 700; color: var(--gold); text-align: center; padding-bottom: 6px; border-bottom: 1px solid var(--line-soft); }
.ph-avatar { font-size: 2.6rem; text-align: center; }
.ph-name { text-align: center; font-weight: 700; }
.ph-sub { text-align: center; color: var(--muted); font-size: .7rem; }
.ph-balance { text-align: center; margin-top: 6px; }
.ph-balance b { color: var(--gold); font-size: 1.2rem; }
.ph-coins { text-align: center; color: var(--muted); font-size: .72rem; }
.ph-card {
  margin-top: auto; background: rgba(124,92,255,.08);
  border: 1px solid var(--line-soft); border-radius: 10px;
  padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; font-size: .72rem;
}
.ph-pair { text-align: center; font-weight: 700; margin: 4px 0; }
.ph-hpbar { height: 10px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.ph-hpbar div { height: 100%; background: linear-gradient(90deg, #e05252, #f0a35e, #7ee08a); border-radius: 6px; }
.ph-hpinfo { text-align: center; font-size: .68rem; color: var(--muted); }
.ph-gestures { display: flex; justify-content: space-around; font-size: 1.1rem; margin-top: 6px; }
.ph-entry { background: rgba(255,255,255,.04); border: 1px solid var(--line-soft); border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; }
.ph-entry span { color: var(--muted); font-size: .66rem; }
.ph-btn {
  margin-top: auto; text-align: center; padding: 7px; border-radius: 9px;
  background: linear-gradient(135deg, #7c5cff, #4a7dff); color: #fff; font-weight: 600;
}

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px; }
.step { text-align: center; padding: 18px 14px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(255,255,255,.03); }
.step-num {
  width: 42px; height: 42px; margin: 0 auto 10px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; color: #0d0f12;
  background: linear-gradient(135deg, var(--gold), #f0a35e);
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: .85rem; color: var(--muted); }

.faq-item { border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { margin-top: 8px; font-size: .9rem; color: var(--muted); }

/* ─── Світла тема ─── */
[data-theme="light"] {
  color-scheme: light;
  --bg: #f2eee1;
  --bg-2: #eae5d5;
  --panel: #fffdf6;
  --panel-2: #f6f1e2;
  --wood: #e7dfc9;
  --text: #23262b;
  --muted: #5d6570;
  --line: rgba(140, 100, 10, 0.22);
  --line-soft: rgba(0, 0, 0, 0.09);
  --danger: #b3261e;
  --success: #1e7e34;
}
[data-theme="light"] body {
  background:
    repeating-linear-gradient(90deg,
      rgba(0,0,0,.02) 0px, rgba(0,0,0,.02) 1px,
      transparent 1px, transparent 7px),
    radial-gradient(1200px 500px at 50% -8%, rgba(245,184,0,.14), transparent 55%),
    linear-gradient(180deg, #faf7ec 0%, var(--bg) 45%, #e9e4d2 100%);
}
[data-theme="light"] .topbar {
  background: rgba(255, 253, 246, .92);
  box-shadow: 0 8px 24px rgba(60, 50, 10, .12), inset 0 -2px 0 rgba(245,184,0,.2);
}
[data-theme="light"] .brand { text-shadow: none; }
[data-theme="light"] .brand .wolf-mark,
[data-theme="light"] .footer-brand .wolf-mark { filter: none; }
[data-theme="light"] .card, [data-theme="light"] .login-card {
  background: linear-gradient(160deg, #fffef9 0%, var(--panel) 60%, #f4efdd 100%);
  border-color: rgba(150, 110, 10, 0.28);
  box-shadow: 0 12px 34px rgba(60, 50, 10, .12),
    inset 0 1px 0 rgba(255,255,255,.8),
    inset 0 -1px 0 rgba(0,0,0,.05);
}
[data-theme="light"] .card::after { border-color: rgba(150,110,10,.12); }
[data-theme="light"] h1 {
  color: #8a6500;
  text-shadow: none;
}
[data-theme="light"] h2 { color: var(--text); }
[data-theme="light"] .stat-card {
  background: linear-gradient(135deg, rgba(0,87,183,.06), rgba(245,184,0,.08)), var(--panel);
  box-shadow: 0 8px 24px rgba(60,50,10,.1);
}
[data-theme="light"] .table tr:hover td { background: rgba(0,0,0,.03); }
[data-theme="light"] .empty { background: var(--panel); }
[data-theme="light"] .site-footer {
  background: linear-gradient(180deg, #efeadd, #e6e0cc);
  border-top-color: var(--line);
}
[data-theme="light"] select,
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="number"],
[data-theme="light"] input[type="search"],
[data-theme="light"] textarea {
  background: #fffef9;
  border-color: rgba(150, 110, 10, 0.3);
}
[data-theme="light"] .code-block {
  background: #f6f1e2;
  color: #33302a;
  border-color: rgba(150,110,10,.25);
}
[data-theme="light"] .cmd-card { background: var(--panel); border-color: rgba(150,110,10,.2); }
[data-theme="light"] .cmd-card h3 { color: var(--text); }
[data-theme="light"] .phone {
  background: linear-gradient(145deg, #d8d2bd, #b7b096);
}
[data-theme="light"] .phone-screen { background: #f7f3e6; }
[data-theme="light"] .step { background: rgba(255,255,255,.6); }
[data-theme="light"] .alert.success { background: rgba(30,126,52,.08); }
[data-theme="light"] .alert.error { background: rgba(179,38,30,.08); }

.theme-toggle {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 15px;
  cursor: pointer;
  box-shadow: none;
  color: var(--text);
}
.theme-toggle:hover { border-color: var(--gold); transform: none; box-shadow: none; }

/* ─── Світла тема: контрастність тексту ─── */
[data-theme="light"] {
  --gold-text: #8a6500;
  --gold-bright-text: #a57600;
}
[data-theme="light"] .brand,
[data-theme="light"] .footer-brand,
[data-theme="light"] .user-name,
[data-theme="light"] .stat-card strong,
[data-theme="light"] .live-stat strong,
[data-theme="light"] .ph-top,
[data-theme="light"] .footer-nav a:hover,
[data-theme="light"] .nav a:hover { color: var(--gold-text); }
[data-theme="light"] .user-name:hover,
[data-theme="light"] .brand:hover { color: var(--gold-bright-text); }
[data-theme="light"] h1 { color: var(--gold-text); }
[data-theme="light"] .button, [data-theme="light"] button, [data-theme="light"] .btn {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
[data-theme="light"] .button.ghost { color: var(--muted); text-shadow: none; }
[data-theme="light"] .button.ghost:hover { color: var(--gold-text); }
[data-theme="light"] .empty { color: var(--muted); }
[data-theme="light"] code {
  background: rgba(138,101,0,.1);
  color: #6b4e00;
  padding: 1px 6px;
  border-radius: 5px;
}
[data-theme="light"] .lang-score { color: var(--gold-text); }
[data-theme="light"] .hp-bar-fill, [data-theme="light"] .lang-bar-fill { filter: none; }
/* Темні «острівці» в світлій темі — прибираємо інверсію */
[data-theme="light"] .cmd-card { background: #fffdf6; border-color: rgba(150,110,10,.2); }
[data-theme="light"] .cmd-card h3 { color: var(--text); }
[data-theme="light"] .cmd-card .muted, [data-theme="light"] .cmd-card p { color: var(--muted); }
[data-theme="light"] .cmd-search { background: #fffdf6; color: var(--text); border-color: rgba(150,110,10,.3); }
[data-theme="light"] .cat-nav a { color: var(--muted); border-color: var(--line-soft); }
[data-theme="light"] .cat-nav a:hover { color: var(--gold-text); border-color: var(--gold-text); }
[data-theme="light"] .rp-chip { background: #fffdf6; border-color: rgba(150,110,10,.25); color: var(--text); }
[data-theme="light"] .table th { color: var(--muted); }
[data-theme="light"] .table td code { background: rgba(138,101,0,.1); color: #6b4e00; }
[data-theme="light"] .news-body a, [data-theme="light"] .card a:not(.button):not(.btn) { color: #1d5fbf; }
[data-theme="light"] .news-body code { background: rgba(138,101,0,.1); color: #6b4e00; padding: 1px 6px; border-radius: 5px; }
[data-theme="light"] .phone-screen { color: var(--text); }
[data-theme="light"] .phone-screen .muted, [data-theme="light"] .ph-sub, [data-theme="light"] .ph-hpinfo, [data-theme="light"] .ph-coins { color: #6b7280; }
[data-theme="light"] .ph-card { background: rgba(138,101,0,.07); border-color: rgba(150,110,10,.2); }
[data-theme="light"] .ph-entry { background: rgba(0,0,0,.03); }
[data-theme="light"] mark, [data-theme="light"] .highlight { background: rgba(245,184,0,.35); color: inherit; }

/* Світла тема: залишкові темні елементи */
[data-theme="light"] .cmd-search { background: #fffdf6 !important; color: var(--text) !important; border-color: rgba(150,110,10,.3) !important; }
[data-theme="light"] .cat-nav a { background: #fffdf6 !important; border-color: rgba(150,110,10,.25) !important; }
[data-theme="light"] .cmd-card { background: #fffdf6 !important; border-color: rgba(150,110,10,.2) !important; }
[data-theme="light"] .cmd-section > h2 { border-bottom-color: rgba(150,110,10,.2) !important; }
[data-theme="light"] .badge { background: rgba(138,101,0,.12) !important; color: #6b4e00 !important; }
[data-theme="light"] [style*="#f87171"], [data-theme="light"] [style*="#ff6b6b"] { color: #b3261e !important; }
[data-theme="light"] .growth-badge, [data-theme="light"] .delta-pos { color: #1e7e34 !important; }
[data-theme="light"] .delta-neg { color: #b3261e !important; }

/* ═══════════════════════════════════════════════════════════════
   Сторінка чату — modern glass UI (2025+)
   ═══════════════════════════════════════════════════════════════ */

/* ── Скляні групи налаштувань ── */
.sec-group {
  position: relative;
  border-radius: 18px;
  padding: 18px 20px 16px;
  margin: 14px 0;
  background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.015) 60%);
  border: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 8px 32px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.07);
  transition: border-color .25s, box-shadow .25s;
}
.sec-group:hover { border-color: rgba(245,184,0,.22); }
details.sec-group { padding-top: 14px; }
details.sec-group[open] {
  border-color: rgba(245,184,0,.28);
  box-shadow: 0 8px 32px rgba(0,0,0,.35), 0 0 24px rgba(245,184,0,.07),
              inset 0 1px 0 rgba(255,255,255,.07);
}
.sec-group-title {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 14px;
}
.sec-group-title::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), #b8860b);
  box-shadow: 0 0 8px rgba(245,184,0,.6);
  flex: 0 0 auto;
}
.sec-group-title::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.12), transparent);
}
.sec-group-body { display: flex; flex-direction: column; gap: 8px; }
.sec-note { margin: 2px 0 0; font-size: 13px; }

/* ── Рядок-перемикач ── */
.sw-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 9px 12px; margin: 0 -12px; border-radius: 12px;
  cursor: pointer; transition: background .18s;
}
.sw-row:hover { background: rgba(255,255,255,.045); }
.sw-input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.sw-ui {
  flex: 0 0 auto; width: 44px; height: 25px; border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  position: relative; transition: all .25s cubic-bezier(.4,0,.2,1);
  margin-top: 1px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.35);
}
.sw-ui::after {
  content: ""; position: absolute; top: 2.5px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #d4d0c4);
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), background .25s;
  box-shadow: 0 2px 6px rgba(0,0,0,.45);
}
.sw-input:checked ~ .sw-ui {
  background: linear-gradient(135deg, #ffd34d 0%, #f5b800 55%, #e8960a 100%);
  border-color: rgba(255,215,0,.7);
  box-shadow: 0 0 14px rgba(245,184,0,.4), inset 0 1px 0 rgba(255,255,255,.35);
}
.sw-input:checked ~ .sw-ui::after {
  transform: translateX(19px);
  background: linear-gradient(180deg, #fffbe8, #ffe9a8);
}
.sw-ui-sm { width: 38px; height: 22px; }
.sw-ui-sm::after { width: 15px; height: 15px; top: 3px; left: 3px; }
.sw-input:checked ~ .sw-ui-sm::after { transform: translateX(16px); }
.sw-ui-static { cursor: default; opacity: .45; }
.sw-text { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.sw-text b { font-weight: 600; letter-spacing: .1px; transition: color .18s; }
.sw-text small { opacity: .58; font-size: 12px; line-height: 1.45; }
.sw-row:hover .sw-text b { color: var(--gold-bright); }

/* ── Підпараметри ── */
.sw-sub { padding-left: 58px; }
.inline-fields { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.field {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; opacity: .7;
}
.field input, .am-select {
  padding: 7px 11px; font-size: 13px; border-radius: 10px;
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.1);
  color: var(--text); transition: all .2s; outline: none;
}
.field input { width: 80px; }
.field input:focus, .am-select:focus {
  border-color: rgba(245,184,0,.55);
  box-shadow: 0 0 0 3px rgba(245,184,0,.12), 0 0 14px rgba(245,184,0,.12);
}
.sw-subcheck { display: inline-flex; align-items: center; cursor: pointer; }

/* ── Сегмент-контрол ── */
.seg {
  display: inline-flex; margin-top: 10px; padding: 4px;
  border-radius: 13px; gap: 3px;
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.09);
}
.seg-item { position: relative; }
.seg-item input { position: absolute; opacity: 0; }
.seg-item span {
  display: block; padding: 7px 16px; font-size: 12px; font-weight: 600;
  letter-spacing: .04em; color: var(--muted); cursor: pointer;
  border-radius: 9px; transition: all .2s;
}
.seg-item span:hover { color: var(--text); background: rgba(255,255,255,.06); }
.seg-item input:checked + span {
  background: linear-gradient(135deg, rgba(255,211,77,.95), rgba(245,184,0,.9));
  color: #231a02; font-weight: 700;
  box-shadow: 0 2px 10px rgba(245,184,0,.35);
}

/* ── Модулі: пігулки ── */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 10px; margin: 14px 0 18px;
}
.mod-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; border-radius: 14px; cursor: pointer;
  font-size: 13.5px; font-weight: 500;
  border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.01));
  backdrop-filter: blur(8px);
  transition: all .22s cubic-bezier(.4,0,.2,1);
}
.mod-item:hover {
  border-color: rgba(245,184,0,.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.4), 0 0 16px rgba(245,184,0,.1);
}
.mod-item:has(.sw-input:checked) {
  border-color: rgba(255,211,77,.5);
  background: linear-gradient(135deg, rgba(245,184,0,.14), rgba(245,184,0,.05));
  box-shadow: 0 4px 16px rgba(245,184,0,.14);
}
.mod-item:has(.sw-input:checked) span:last-child {
  background: linear-gradient(135deg, var(--gold-bright), #e8960a);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mod-item .sw-ui { width: 36px; height: 21px; }
.mod-item .sw-ui::after { width: 14px; height: 14px; top: 3px; left: 3px; }
.mod-item .sw-input:checked ~ .sw-ui::after { transform: translateX(15px); }

/* ── Автомод: згортані групи ── */
details.sec-group > summary.am-summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 10px;
}
details.sec-group > summary.am-summary::-webkit-details-marker { display: none; }
details.sec-group > summary.am-summary::after { display: none; }
details.sec-group > summary.am-summary > .chev {
  content: ""; width: 8px; height: 8px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(45deg); transition: transform .22s; margin-left: auto;
}
details.sec-group[open] > summary.am-summary > .chev { transform: rotate(225deg); }
.am-block { margin: 8px 0 4px; padding: 12px 14px; border-radius: 14px;
  background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.07); }
.am-block-title { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.am-block-desc { font-size: 12px; opacity: .6; margin-bottom: 8px; }
.am-area {
  width: 100%; padding: 11px 13px; font-size: 13px; font-family: inherit;
  background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; color: var(--text); resize: vertical;
  transition: all .2s; outline: none;
}
.am-area:focus { border-color: rgba(245,184,0,.5); box-shadow: 0 0 0 3px rgba(245,184,0,.1); }
.am-select { padding: 7px 11px; font-size: 13px; }

/* ── Кнопки сабміту — акцент ── */
form[action$="/security"] button[type="submit"],
form[action$="/modules"] button[type="submit"],
form[action$="/automod"] button[type="submit"],
form[action$="/decor"] button[type="submit"] {
  margin-top: 16px; border-radius: 12px;
}

/* ── Світла тема ── */
[data-theme="light"] .sec-group {
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,253,246,.85));
  border-color: rgba(150,110,10,.18);
  box-shadow: 0 8px 28px rgba(120,90,20,.1), inset 0 1px 0 rgba(255,255,255,.6);
}
[data-theme="light"] .sw-ui { background: rgba(0,0,0,.14); border-color: rgba(0,0,0,.12); }
[data-theme="light"] .sw-ui::after { background: linear-gradient(180deg, #fff, #c8c4b4); }
[data-theme="light"] .sw-row:hover { background: rgba(0,0,0,.04); }
[data-theme="light"] .mod-item {
  background: #fffdf6; border-color: rgba(150,110,10,.16);
  backdrop-filter: none;
}
[data-theme="light"] .am-block { background: rgba(0,0,0,.04); }
[data-theme="light"] .field input, [data-theme="light"] .am-area,
[data-theme="light"] .am-select { background: #fffdf6; color: var(--text); border-color: rgba(150,110,10,.22); }
[data-theme="light"] .seg { background: rgba(0,0,0,.05); }
[data-theme="light"] .seg-item input:checked + span { color: #231a02; }

/* ─── Альбом карток ─── */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.album-card {
  background: var(--panel, #16181f);
  border: 1px solid var(--line, #2a2d38);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .15s, border-color .15s;
}
.album-card:hover { transform: translateY(-2px); border-color: var(--gold, #d4af37); }
.album-card.locked img { filter: grayscale(1) brightness(.45); }
.album-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.album-info {
  padding: 6px 8px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.album-num { color: var(--muted, #8a8578); font-size: 10px; }
.album-name { font-weight: 600; }
.album-count { color: var(--gold, #d4af37); }
.rarity { font-size: 10px; }
.r-common { color: #9aa0a6; }
.r-rare { color: #60a5fa; }
.r-epic { color: #c084fc; }
.r-legendary { color: #fbbf24; }

/* ── Історія транзакцій ── */
.tx-list { display: flex; flex-direction: column; }
.tx-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.tx-row:last-child { border-bottom: none; }
.tx-label { font-size: 14px; }
.tx-date { font-size: 12px; }
.tx-amt { font-weight: 700; white-space: nowrap; }
.tx-amt.pos { color: var(--success); }
.tx-amt.neg { color: var(--danger); }

/* ── Косметичний ефект імені ── */
.fx-name { padding: 1px 8px 2px; border-radius: 8px; font-weight: 700; }
.fx-rainbow {
  background: linear-gradient(90deg,#f87171,#fbbf24,#4ade80,#22d3ee,#a78bfa,#f472b6,#f87171);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent !important;
  animation: fx-rainbow-move 4s linear infinite;
  filter: drop-shadow(0 0 6px rgba(244,114,182,.45));
}
@keyframes fx-rainbow-move { to { background-position: 200% 0; } }

/* ── Подарунки в профілі ── */
.gift-row { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin: 8px 0 4px; }
.gift-ico { font-size:20px; filter: drop-shadow(0 0 4px rgba(245,184,0,.4)); }
.gift-bonus { font-size:12px; color:var(--gold); font-weight:700; margin-left:4px; }
