/* ==========================================================================
   Dewahoki303 — derehoki303.games — Casino info portal
   Palette: hitam/putih dasar + merah (brand) + emas + hijau + biru
   ========================================================================== */
:root {
  --bg: #0a0d14;
  --bg-2: #0e1220;
  --panel: #131a2a;
  --panel-2: #182136;
  --line: rgba(245, 196, 81, 0.14);
  --line-2: rgba(255, 255, 255, 0.08);
  --red: #e5323f;
  --red-2: #b31423;
  --gold: #f5c451;
  --gold-2: #d9a628;
  --green: #24c06a;
  --green-2: #128a4b;
  --blue: #3d8bfd;
  --ink: #f4f6fb;
  --muted: #aab3c5;
  --muted-2: #7e8aa3;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius-s: 10px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background:
    radial-gradient(1100px 500px at 85% -100px, rgba(229, 50, 63, 0.16), transparent 60%),
    radial-gradient(900px 460px at -10% 12%, rgba(245, 196, 81, 0.07), transparent 55%),
    var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.15rem; }
li { margin: 0.3rem 0; }

.container { max-width: 1180px; margin-inline: auto; padding-inline: clamp(14px, 3vw, 28px); }
section { padding: clamp(34px, 5vw, 64px) 0; }
.center { text-align: center; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.08rem, 2vw, 1.3rem); }
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(245, 196, 81, 0.1);
  border: 1px solid rgba(245, 196, 81, 0.3);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 14px;
}
.sec-head { max-width: 760px; margin: 0 auto clamp(22px, 3vw, 38px); text-align: center; }
.sec-head p { color: var(--muted); margin-top: 10px; }
.lead { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 12px;
  padding: 13px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(180deg, #ffe08a, var(--gold) 45%, var(--gold-2));
  color: #241a02;
  box-shadow: 0 10px 24px rgba(245, 196, 81, 0.28);
}
.btn-red {
  background: linear-gradient(180deg, #ff5460, var(--red) 45%, var(--red-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(229, 50, 63, 0.3);
}
.btn-green {
  background: linear-gradient(180deg, #43d98a, var(--green) 45%, var(--green-2));
  color: #04220f;
  box-shadow: 0 10px 24px rgba(36, 192, 106, 0.25);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-sm { padding: 9px 18px; font-size: 0.86rem; border-radius: 10px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 13, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.14rem; letter-spacing: 0.02em; }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo b { color: var(--gold); }
.logo span { color: #fff; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.main-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 10px;
  border-radius: 9px;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(245, 196, 81, 0.1); text-decoration: none; }
.search-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--muted);
}
.search-ico:hover { color: var(--gold); border-color: rgba(245, 196, 81, 0.5); }
.search-ico svg { width: 20px; height: 20px; }
.header-search { display: none; }
.header-search input {
  width: 170px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  color: var(--ink);
  padding: 9px 12px;
  font-size: 0.88rem;
  font-family: inherit;
}
.header-search input::placeholder { color: var(--muted-2); }
.header-search button {
  border: 0;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #241a02;
  font-weight: 800;
  padding: 0 14px;
  cursor: pointer;
  font-size: 0.88rem;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--ink);
  width: 44px;
  height: 42px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}
.header-cta { display: flex; gap: 10px; flex: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(44px, 6vw, 84px) 0 clamp(40px, 5vw, 70px); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/img/hero.jpg") center 38% / cover no-repeat;
  opacity: 0.34;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 13, 20, 0.55), rgba(10, 13, 20, 0.86) 70%, var(--bg));
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 4vw, 54px); align-items: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  background: rgba(19, 26, 42, 0.75);
  color: var(--muted);
}
.badge.red { color: #ffb3b9; border-color: rgba(229, 50, 63, 0.45); background: rgba(229, 50, 63, 0.14); }
.badge.gold { color: var(--gold); border-color: rgba(245, 196, 81, 0.4); }
.badge.green { color: #7ee2ac; border-color: rgba(36, 192, 106, 0.4); }
.hero h1 .accent { color: var(--gold); }
.hero p.lead { margin: 16px 0 24px; max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-note { font-size: 0.82rem; color: var(--muted-2); }
.hero-note a { color: var(--muted); text-decoration: underline; }

.hero-visual { position: relative; }
.hero-card {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px;
  transform: rotate(1.5deg);
}
.hero-card .hc-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.mini-tile {
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  text-align: center;
  padding: 12px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}
.mini-tile .num { display: block; font-size: 1.05rem; color: #fff; margin-bottom: 2px; }
.hero-card .hc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--line-2); padding-top: 14px; flex-wrap: wrap; }
.hero-card .hc-row span { font-size: 0.8rem; color: var(--muted); }
.chip-float {
  position: absolute;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chip-float.a { top: -16px; right: 6%; transform: rotate(-3deg); color: var(--gold); }
.chip-float.b { bottom: -14px; left: 4%; transform: rotate(2deg); color: #7ee2ac; }

/* ---------- tag cloud ---------- */
.tag-cloud { padding: 22px 0 6px; }
.tag-cloud .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(19, 26, 42, 0.55);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.tag-cloud .tc-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-right: 4px;
}
.tag-cloud a {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 5px 13px;
}
.tag-cloud a:hover { color: var(--gold); border-color: rgba(245, 196, 81, 0.5); text-decoration: none; }
.tag-cloud a.hot { color: #fff; background: rgba(229, 50, 63, 0.22); border-color: rgba(229, 50, 63, 0.55); }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: clamp(16px, 2vw, 24px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.25);
}
.card.hover:hover { border-color: var(--line); transform: translateY(-3px); transition: 0.18s ease; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.93rem; }
.icon-orb {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: rgba(229, 50, 63, 0.15);
  color: var(--red);
  border: 1px solid rgba(229, 50, 63, 0.35);
}
.icon-orb.gold { background: rgba(245, 196, 81, 0.12); color: var(--gold); border-color: rgba(245, 196, 81, 0.35); }
.icon-orb.green { background: rgba(36, 192, 106, 0.13); color: var(--green); border-color: rgba(36, 192, 106, 0.35); }
.icon-orb.blue { background: rgba(61, 139, 253, 0.13); color: var(--blue); border-color: rgba(61, 139, 253, 0.35); }
.icon-orb svg { width: 24px; height: 24px; }

/* media cards with image */
.img-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.img-card .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.img-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.img-card .thumb .ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(10, 13, 20, 0.82);
  border: 1px solid rgba(245, 196, 81, 0.5);
  color: var(--gold);
  border-radius: 999px;
  padding: 4px 12px;
}
.img-card .body { padding: clamp(16px, 2vw, 22px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.img-card .body h3 a { color: #fff; }
.img-card .body .meta { font-size: 0.78rem; color: var(--muted-2); display: flex; gap: 10px; flex-wrap: wrap; }
.img-card .body .grow { flex: 1; }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: clamp(14px, 2vw, 20px); grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: inline-block;
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--gold);
  border: 1px dashed rgba(245, 196, 81, 0.5);
  border-radius: 10px;
  padding: 4px 10px;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* ---------- payments ---------- */
.pay-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 10px;
  padding: 9px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--ink);
}
.pay i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.pay i.red { background: var(--red); }
.pay i.green { background: var(--green); }
.pay i.blue { background: var(--blue); }
.pay i.gold { background: var(--gold); }

/* ---------- testimonials ---------- */
.quote-card { position: relative; }
.quote-card .stars { color: var(--gold); letter-spacing: 3px; font-size: 0.9rem; margin-bottom: 10px; }
.quote-card blockquote { color: var(--ink); font-size: 0.95rem; margin-bottom: 16px; }
.quote-who { display: flex; align-items: center; gap: 12px; border-top: 1px dashed var(--line-2); padding-top: 14px; }
.avatar {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
  color: #241a02;
  background: linear-gradient(180deg, #ffe08a, var(--gold-2));
}
.avatar.g { background: linear-gradient(180deg, #43d98a, var(--green-2)); color: #04220f; }
.avatar.r { background: linear-gradient(180deg, #ff5460, var(--red-2)); color: #fff; }
.avatar.b { background: linear-gradient(180deg, #7cb3ff, #1f5fd0); color: #0a1d42; }
.quote-who b { display: block; font-size: 0.9rem; }
.quote-who span { font-size: 0.76rem; color: var(--muted-2); }

/* ---------- calculator (inovasi) ---------- */
.calc-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(16px, 2.5vw, 26px);
  align-items: stretch;
  background: linear-gradient(150deg, rgba(229, 50, 63, 0.12), rgba(245, 196, 81, 0.06));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(18px, 3vw, 32px);
}
.calc-form label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--muted); margin: 14px 0 6px; }
.calc-form label:first-child { margin-top: 0; }
.calc-form input, .calc-form select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--ink);
  padding: 11px 14px;
  font-size: 0.95rem;
  font-family: inherit;
}
.calc-result {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-2);
  border: 1px dashed rgba(245, 196, 81, 0.4);
  border-radius: 16px;
  padding: clamp(16px, 2.5vw, 26px);
  justify-content: center;
}
.calc-result .big { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900; color: var(--gold); }
.calc-result .row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.88rem; border-bottom: 1px dashed var(--line-2); padding-bottom: 10px; }
.calc-result .row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.calc-result .row b { color: #fff; }
.calc-note { font-size: 0.78rem; color: var(--muted-2); }

/* ---------- article / prose ---------- */
.prose { max-width: 820px; }
.prose h2 { margin: 1.6em 0 0.6em; }
.prose h3 { margin: 1.4em 0 0.5em; color: #fff; }
.prose p { color: var(--muted); margin: 0.85em 0; }
.prose ul, .prose ol { color: var(--muted); margin: 0.8em 0; }
.prose strong { color: #fff; }
.prose a { text-decoration: underline; }
.article-hero { border-radius: var(--radius); overflow: hidden; margin: 18px 0 6px; border: 1px solid var(--line); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.8rem; color: var(--muted-2); margin: 12px 0 4px; }
.article-meta .tag { color: var(--gold); font-weight: 800; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius-s); margin: 1.1em 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.9rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th { background: rgba(245, 196, 81, 0.08); color: var(--gold); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }

/* notice boxes */
.note {
  border-radius: var(--radius-s);
  padding: 14px 16px 14px 46px;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 1em 0;
  position: relative;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
}
.note::before { position: absolute; left: 15px; top: 12px; font-weight: 900; }
.note.warn { border-color: rgba(229, 50, 63, 0.4); }
.note.warn::before { content: "!"; color: var(--red); }
.note.info { border-color: rgba(61, 139, 253, 0.4); }
.note.info::before { content: "i"; color: var(--blue); font-style: italic; }
.note.safe { border-color: rgba(36, 192, 106, 0.4); }
.note.safe::before { content: "✓"; color: var(--green); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
details.faq {
  background: linear-gradient(165deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  overflow: hidden;
}
details.faq[open] { border-color: var(--line); }
details.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  font-weight: 700;
  color: #fff;
  font-size: 0.97rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold);
  transition: transform 0.2s ease;
  flex: none;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .faq-a { padding: 0 18px 16px; color: var(--muted); font-size: 0.92rem; }

/* ---------- breadcrumb ---------- */
.breadcrumb { font-size: 0.8rem; color: var(--muted-2); padding: 16px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--muted-2); }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--gold); font-weight: 700; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: clamp(28px, 4vw, 52px) 0 clamp(18px, 2.5vw, 30px); }
.page-hero h1 { margin: 10px 0 14px; }
.page-hero .lead { max-width: 68ch; }
.page-hero-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 26px; }
.page-hero-img img { width: 100%; object-fit: cover; max-height: 420px; }

/* ---------- forms ---------- */
.form-shell { max-width: 460px; margin-inline: auto; }
.form-shell.wide { max-width: 760px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.84rem; font-weight: 700; color: var(--muted); margin-bottom: 7px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="password"], .field select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--ink);
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
}
.field input:focus, .field select:focus { outline: 2px solid rgba(245, 196, 81, 0.55); border-color: var(--gold); }
.field .hint { font-size: 0.76rem; color: var(--muted-2); margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem; color: var(--muted); margin: 4px 0 16px; }
.check input { margin-top: 3px; accent-color: var(--gold); width: 16px; height: 16px; flex: none; }
.form-msg { font-size: 0.82rem; color: #ffb3b9; margin-top: 10px; min-height: 1.2em; }
.auth-alt { text-align: center; font-size: 0.88rem; color: var(--muted); margin-top: 18px; }
.auth-aside { display: grid; gap: 14px; align-content: start; }

/* ---------- search page ---------- */
.search-big { max-width: 640px; margin: 0 auto 26px; display: flex; }
.search-big input {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  padding: 13px 16px;
  color: var(--ink);
  font-size: 1rem;
  font-family: inherit;
}
.search-big button {
  border: 0;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #241a02;
  font-weight: 800;
  padding: 0 22px;
  cursor: pointer;
}
.result-list { display: grid; gap: 12px; max-width: 760px; margin-inline: auto; }
.result-item { display: block; }
.result-item .ri-u { font-size: 0.75rem; color: var(--green); }
.result-item .ri-t { font-size: 1.02rem; font-weight: 800; color: #fff; }
.result-item .ri-t a { color: #fff; }
.result-item .ri-t a:hover { color: var(--gold); }
.result-item .ri-d { font-size: 0.87rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #080b11; padding: clamp(34px, 5vw, 58px) 0 26px; margin-top: clamp(20px, 3vw, 40px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.footer-grid h3 { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin: 8px 0; }
.footer-grid a { color: var(--muted); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-about p { color: var(--muted); font-size: 0.88rem; margin: 12px 0 16px; }
.footer-legal { border-top: 1px solid var(--line-2); margin-top: clamp(24px, 3vw, 38px); padding-top: 20px; font-size: 0.78rem; color: var(--muted-2); }
.footer-legal p { margin: 6px 0; }
.badge18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--red);
  color: #ffb3b9;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-weight: 900;
  font-size: 0.82rem;
  flex: none;
}
.footer-legal-top { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* ---------- floating action bar (slot style) ---------- */
.float-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  background: linear-gradient(180deg, rgba(14, 18, 32, 0.92), rgba(8, 10, 16, 0.97));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--gold), var(--red), var(--gold)) 1;
  padding: 10px clamp(10px, 3vw, 24px) max(10px, env(safe-area-inset-bottom));
}
.float-in { max-width: 980px; margin-inline: auto; display: flex; align-items: center; gap: clamp(8px, 2vw, 18px); }
.reels { display: flex; gap: 5px; flex: none; }
.reel {
  width: 30px;
  height: 38px;
  border-radius: 7px;
  background: linear-gradient(180deg, #1d2740, #101728);
  border: 1px solid rgba(245, 196, 81, 0.45);
  overflow: hidden;
  position: relative;
}
.reel span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  animation: reelSpin 2.6s linear infinite;
}
.reel:nth-child(2) span { animation-delay: 0.35s; }
.reel:nth-child(3) span { animation-delay: 0.7s; }
@keyframes reelSpin {
  0%, 18% { transform: translateY(-100%); }
  30%, 68% { transform: translateY(0); }
  80%, 100% { transform: translateY(100%); }
}
.reel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.45));
  pointer-events: none;
}
.float-cta { flex: 1; display: flex; gap: clamp(8px, 2vw, 14px); min-width: 0; }
.float-cta .btn { flex: 1; padding: 13px 10px; font-size: 1rem; letter-spacing: 0.04em; position: relative; overflow: visible; }
.coin {
  position: absolute;
  bottom: 100%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ffe9a8, var(--gold) 55%, #9a6f14);
  border: 1px solid #b8860b;
  opacity: 0;
  animation: coinUp 2.2s ease-in infinite;
  pointer-events: none;
}
@keyframes coinUp {
  0% { transform: translateY(4px) scale(0.5); opacity: 0; }
  22% { opacity: 1; }
  100% { transform: translateY(-46px) scale(1) rotate(200deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .reel span { animation: none; }
  .coin { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .calc-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 10, 16, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 12px 18px 18px;
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; border-bottom: 1px solid var(--line-2); }
  .header-cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .search-ico { margin-left: 0; }
  .main-nav .nav-mobile-search { display: flex; margin-top: 12px; }
  .main-nav .nav-mobile-search input { flex: 1; width: auto; }
}
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-card .hc-top { grid-template-columns: repeat(2, 1fr); }
  .reels { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  table { min-width: 460px; }
  .chip-float { display: none; }
}
@media (max-width: 380px) {
  .float-cta { flex-direction: column; gap: 8px; }
  .float-bar { padding-top: 8px; }
  .float-cta .btn { padding: 10px 8px; font-size: 0.92rem; }
}
