﻿/* ============================================================
   RainyDLC — тёмная тема с лавандовым акцентом.
   Атмосферно, мягко, по-настоящему дорого.
   ============================================================ */
:root {
  --bg: #08070d;
  --panel: rgba(22, 19, 33, 0.55);
  --panel-solid: #12101a;
  --line: #241f36;
  --line-bright: #3a3355;
  --text: #efeef7;
  --muted: #a09ab5;
  --dim: #66607c;
  --acc: #5b87ff;
  --acc-deep: #3b62e0;
  --ok: #86cf9e;
  --warn: #d9c07a;
  --bad: #e08484;
  --r: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1000px 520px at 50% -12%, rgba(64, 110, 235, 0.16), transparent 62%),
    radial-gradient(800px 500px at 90% 10%, rgba(35, 60, 145, 0.10), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.65 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
}
::selection { background: var(--acc); color: #0a1224; }

/* ---------- Фоновый дождь ---------- */
#bg-rain {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: -1; pointer-events: none; opacity: .8;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

a {
  color: var(--text); text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}
a:hover { color: var(--acc); }

/* ---------- Плавающая навигация ---------- */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
}
/* на внутренних страницах контент не заезжает под навигацию */
body { padding-top: 92px; }
body.home { padding-top: 0; }
.nav-in {
  display: flex; align-items: center; gap: 22px;
  height: 60px; padding: 0 18px;
  max-width: 1080px; margin: 0 auto;
  background: rgba(16, 13, 25, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.brand:hover { opacity: .85; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand b { color: var(--acc); font-weight: 800; }
.nav-links { display: flex; gap: 2px; flex: 1; justify-content: center; }
.nav-links a {
  color: var(--muted); padding: 8px 14px; border-radius: 10px;
  font-weight: 600; font-size: 13.5px;
  transition: color .2s ease, background-color .2s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(91, 135, 255, 0.08); }
.nav-links a.on { color: var(--text); background: rgba(91, 135, 255, 0.13); }
.nav-auth { display: flex; gap: 9px; align-items: center; }
.coin-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px;
  border: 1px solid rgba(217, 192, 122, 0.35); color: var(--warn);
  transition: border-color .2s ease;
}
.coin-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); display: inline-block; flex-shrink: 0; }
.lot-price .coin-dot { width: 13px; height: 13px; margin-right: 4px; }
.coin-chip:hover { border-color: var(--warn); }
.role-badge { padding: 5px 11px; border-radius: 999px; font-weight: 800; font-size: 11px; letter-spacing: .8px; }
.role-free { border: 1px solid var(--line-bright); color: var(--muted); }
.role-beta { background: var(--acc); color: #0a1224; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: 14px; font-family: inherit;
  border: 1px solid var(--line-bright); background: rgba(255, 255, 255, 0.03); color: var(--text);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
  user-select: none;
}
.btn:hover { background: rgba(91, 135, 255, 0.1); border-color: var(--acc-deep); }
.btn-primary {
  background: var(--acc); color: #0a1224; border-color: var(--acc);
}
.btn-primary:hover { background: #8fb0ff; border-color: #8fb0ff; color: #0a1224; }
.btn-danger { color: var(--bad); }
.btn-danger:hover { border-color: var(--bad); background: rgba(224, 132, 132, 0.08); }
.btn-sm { padding: 8px 15px; font-size: 13px; }
.btn[disabled], .btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ---------- Карточки ---------- */
.card {
  background: var(--panel);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  transition: border-color .25s ease;
}
.card:hover { border-color: var(--line-bright); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  border: 1px solid var(--line-bright); color: var(--muted);
  transition: color .2s ease, border-color .2s ease;
}
.chip:hover { color: var(--text); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); transition: background-color .2s; }
.chip.live .dot { background: var(--acc); box-shadow: 0 0 8px var(--acc); }

.section-title { font-size: 30px; font-weight: 800; letter-spacing: -.4px; margin: 0 0 8px; }
.section-sub { color: var(--muted); margin: 0 0 30px; max-width: 640px; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Формы ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; letter-spacing: .3px; }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 15px; border-radius: 12px;
  border: 1px solid var(--line-bright); background: rgba(10, 8, 16, 0.7);
  color: var(--text); font: inherit; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus { border-color: var(--acc-deep); box-shadow: 0 0 0 3px rgba(59, 98, 224, 0.18); }
textarea.input { resize: vertical; min-height: 84px; }
.hint { font-size: 12px; color: var(--dim); margin-top: 5px; }

/* ---------- Сообщения ---------- */
.msg { border-radius: 12px; padding: 11px 15px; font-size: 13.5px; font-weight: 600; display: none; }
.msg.show { display: block; }
.msg-ok { background: rgba(134, 207, 158, 0.09); color: var(--ok); border: 1px solid rgba(134, 207, 158, 0.25); }
.msg-err { background: rgba(224, 132, 132, 0.09); color: var(--bad); border: 1px solid rgba(224, 132, 132, 0.25); }

/* ---------- Модалки ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(5, 4, 10, 0.75); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 20px;
}
.overlay.open { display: flex; }
.modal {
  width: 100%; max-width: 480px;
  background: var(--panel-solid);
  border: 1px solid var(--line-bright); border-radius: 20px; padding: 26px;
}
.modal h3 { margin: 0 0 16px; font-size: 19px; }

/* ---------- Рулетка ---------- */
.wheel-zone { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.wheel-holder { position: relative; width: min(340px, 84vw); aspect-ratio: 1; }
.wheel-pointer {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent;
  border-top: 20px solid var(--acc); z-index: 3;
}
#wheel {
  width: 100%; height: 100%; border-radius: 50%;
  border: 1px solid var(--line-bright);
  transition: transform 5s cubic-bezier(.12,.77,.08,1);
}
.wheel-btn-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2; }
.spin-center {
  width: 92px; height: 92px; border-radius: 50%;
  background: rgba(10, 8, 16, 0.85); border: 1px solid var(--acc-deep);
  color: var(--acc); font-weight: 800; font-size: 14px; cursor: pointer; font-family: inherit;
  transition: background-color .2s ease, color .2s ease;
}
.spin-center:hover:not([disabled]) { background: var(--acc); color: #0a1224; }
.spin-center[disabled] { opacity: .5; cursor: wait; }

/* ---------- Маркетплейс ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tab {
  padding: 8px 18px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 13.5px;
  background: transparent; border: 1px solid var(--line-bright); color: var(--muted); font-family: inherit;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.tab:hover { color: var(--text); }
.tab.on { color: #0a1224; background: var(--acc); border-color: var(--acc); }

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

.lot-type { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; padding: 4px 10px; border-radius: 999px; }
.lot-config { border: 1px solid var(--line-bright); color: var(--muted); }
.lot-sub { background: var(--acc); color: #0a1224; }
.lot-price { font-size: 21px; font-weight: 800; color: var(--warn); }

.empty { text-align: center; color: var(--dim); padding: 60px 20px; border: 1px dashed var(--line-bright); border-radius: var(--r); }

/* ---------- Лендинг ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 120px;
  background: url('/assets/les.jpg') center / cover no-repeat fixed #0a0d0c;
}
/* затемнение поверх фото для читаемости текста */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg,
      rgba(8, 7, 13, 0.72) 0%,
      rgba(8, 7, 13, 0.45) 40%,
      rgba(8, 7, 13, 0.55) 70%,
      rgba(8, 7, 13, 0.88) 100%);
}
/* плавный переход фото в фон сайта у нижней кромки экрана */
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 26vh; z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero > * { position: relative; z-index: 2; }
.hero-center { text-align: center; max-width: 860px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 3.5px;
  color: var(--muted); text-transform: uppercase; margin-bottom: 26px;
}
.hero-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); }
.h1 { font-size: clamp(42px, 6.4vw, 72px); line-height: 1.04; font-weight: 900; letter-spacing: -1.5px; margin: 0 0 22px; }
.h1 em { font-style: normal; color: var(--acc); }
.lead { color: var(--muted); font-size: 16.5px; max-width: 480px; margin: 0 auto 32px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.mini-feats {
  display: flex; gap: 28px; justify-content: center; flex-wrap: wrap;
  margin-top: 34px; color: var(--muted); font-size: 13px; font-weight: 600;
}
.mini-feats span::before { content: "◆ "; color: var(--acc-deep); }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 64px; }
.stat-card { padding: 18px; text-align: center; }
.stat-card .v { font-size: 26px; font-weight: 900; letter-spacing: -.5px; color: var(--acc); }
.stat-card .k { color: var(--dim); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }

section.features { padding: 40px 0 10px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat-num {
  display: inline-block; font-size: 11px; font-weight: 800; color: var(--acc); letter-spacing: 2px;
  border: 1px solid rgba(59, 98, 224, 0.45); border-radius: 999px;
  padding: 3px 10px; margin-bottom: 16px;
}
.feat h3 { margin: 0 0 6px; font-size: 16.5px; }
.feat p { margin: 0; color: var(--muted); font-size: 13.8px; }

details.faq {
  border: 1px solid var(--line); border-radius: 14px; padding: 17px 20px; margin-bottom: 10px;
  background: var(--panel); backdrop-filter: blur(8px);
  transition: border-color .25s ease;
}
details.faq:hover { border-color: var(--line-bright); }
details.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "+ "; color: var(--acc); font-weight: 900; }
details.faq[open] summary::before { content: "− "; }
details.faq p { color: var(--muted); margin: 10px 0 0; }

/* ---------- Профиль ---------- */
.p-avatar { width: 56px; height: 56px; border-radius: 14px; display: block; }

/* ---------- Футер ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 90px; padding: 36px 0 46px; color: var(--dim); font-size: 13.5px; }
.footer-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-in .brand b { color: var(--acc); }

/* ---------- Техработы ---------- */
.maint-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 580px) {
  .feat-grid, .stat-strip { grid-template-columns: 1fr; }
  .h1 { font-size: 38px; }
}

/* ---------- Ветки регистрации ---------- */
.branch-card {
  display: flex; flex-direction: column; gap: 7px;
  padding: 15px 16px; border-radius: 14px; cursor: pointer;
  background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line);
  color: var(--muted); text-align: left; font: inherit;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.branch-card b { font-size: 14.5px; color: var(--text); }
.branch-card span { font-size: 11.5px; line-height: 1.5; }
.branch-card em { color: var(--acc); font-style: normal; font-weight: 700; }
.branch-card:hover { border-color: var(--line-bright); }
.branch-card.on {
  border-color: var(--acc); background: rgba(91, 135, 255, 0.09); color: var(--text);
}