/* GucciSkan — общий стиль */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;700;900&family=Manrope:wght@400;500;700;800&display=swap');

:root {
  --bg: #0e0720;
  --bg2: #170d33;
  --card: rgba(255, 255, 255, 0.055);
  --card-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6f1ff;
  --muted: #b5a8d6;
  --pink: #ff4fa3;
  --violet: #8b5cff;
  --lime: #c8ff4a;
  --cyan: #36e6ff;
  --orange: #ffa63d;
  --red: #ff5a6e;
  --grad: linear-gradient(110deg, var(--pink), var(--violet) 45%, var(--cyan));
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 'Manrope', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vw 40vw at 85% -5%, rgba(255, 79, 163, .35), transparent 60%),
    radial-gradient(45vw 45vw at -10% 20%, rgba(139, 92, 255, .35), transparent 60%),
    radial-gradient(35vw 35vw at 60% 110%, rgba(54, 230, 255, .22), transparent 60%);
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .logo { font-family: 'Unbounded', sans-serif; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 4.3rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
section { padding: 72px 0; }

/* ---------- Навигация ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(14, 7, 32, .72);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 68px; }
.logo { font-size: 1.35rem; font-weight: 900; margin: 0; color: var(--text); display: flex; align-items: center; gap: 10px; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: .95rem; transform: rotate(-8deg);
  box-shadow: 0 6px 22px rgba(255, 79, 163, .45);
}
.nav-links { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--text); font-weight: 700; font-size: .95rem; }
.nav-links a.active { color: var(--lime); }
.burger { display: none; margin-left: auto; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }
@media (max-width: 820px) {
  .burger { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg2); padding: 16px; border-bottom: 1px solid var(--line); gap: 12px; }
  .nav-links.open { display: flex; }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 800 .98rem 'Manrope', sans-serif; color: #140a2b; background: var(--lime);
  transition: transform .15s, box-shadow .15s; text-decoration: none !important;
  box-shadow: 0 8px 26px rgba(200, 255, 74, .25);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(200, 255, 74, .38); }
.btn.grad { background: var(--grad); color: #fff; box-shadow: 0 8px 26px rgba(255, 79, 163, .35); }
.btn.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--cyan); }
.btn.small { padding: 8px 14px; font-size: .85rem; }
.btn.danger { background: var(--red); color: #fff; box-shadow: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Карточки ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; backdrop-filter: blur(6px);
}
.grid { display: grid; gap: 20px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; background: rgba(200, 255, 74, .14); color: var(--lime);
}
.tag.pink { background: rgba(255, 79, 163, .16); color: var(--pink); }
.tag.cyan { background: rgba(54, 230, 255, .14); color: var(--cyan); }
.tag.violet { background: rgba(139, 92, 255, .2); color: #b79bff; }
.tag.orange { background: rgba(255, 166, 61, .16); color: var(--orange); }
.icon-bubble {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 14px;
}

/* ---------- Формы ---------- */
label { display: block; font-weight: 700; font-size: .9rem; margin: 0 0 6px; }
input, select {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line);
  background: rgba(0, 0, 0, .25); color: var(--text); font: 500 1rem 'Manrope', sans-serif; outline: none;
}
input:focus, select:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139, 92, 255, .2); }
.field { margin-bottom: 16px; }
.form-box { max-width: 440px; margin: 60px auto; }
.error { color: var(--red); font-weight: 700; min-height: 1.4em; font-size: .92rem; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 700; cursor: pointer; }
.check input { width: auto; }

/* ---------- Таблицы ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
code, .mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; }

/* ---------- Подвал ---------- */
footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: .88rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; }

/* ---------- Тост ---------- */
#toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(120px);
  background: var(--bg2); border: 1px solid var(--violet); padding: 12px 20px; border-radius: 14px;
  font-weight: 700; z-index: 50; transition: transform .25s; max-width: calc(100% - 32px);
}
#toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Вилка (карточка) ---------- */
.arb {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  display: grid; gap: 14px; position: relative; overflow: hidden;
}
.arb::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--grad); }
.arb-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.arb-title { font-weight: 800; font-size: 1.08rem; }
.profit-badge {
  font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 1.35rem; color: #140a2b;
  background: var(--lime); padding: 6px 14px; border-radius: 14px; white-space: nowrap;
}
.legs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.leg { background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.leg .bk { font-weight: 800; }
.leg .bk.poly { color: var(--cyan); }
.leg .odd { font-family: 'Unbounded', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--orange); }
.leg .stake { font-weight: 800; color: var(--lime); }

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

@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); display: inline-block; animation: pulse 1.4s infinite; }

/* ---------- Монеты и модальные окна ---------- */
.dot { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .62rem; font-weight: 900; color: #fff; flex: none; }
.modal-bg { position: fixed; inset: 0; background: rgba(5, 2, 15, .7); backdrop-filter: blur(6px); z-index: 40; display: grid; place-items: center; padding: 16px; }
.modal { width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.copy-row { display: flex; gap: 8px; align-items: stretch; }
.copy-row input { font-family: ui-monospace, Menlo, monospace; font-size: .92rem; }
.seg { display: inline-flex; flex-wrap: wrap; background: rgba(0,0,0,.3); border-radius: 999px; padding: 4px; border: 1px solid var(--line); }
.seg button { border: 0; background: none; color: var(--muted); font: 800 .92rem Manrope, system-ui, sans-serif; padding: 9px 18px; border-radius: 999px; cursor: pointer; }
.seg button.on { background: var(--violet); color: #fff; }
