/* ==========================================================================
   Gurita168 — style utama
   Palet: merah (primer), putih (dasar), hijau (aksen positif), emas (aksen),
   tinta gelap (header/footer), biru (tautan teknis).
   ========================================================================== */

:root {
  --ink: #14161a;
  --ink-2: #1e2127;
  --paper: #ffffff;
  --soft: #f6f6f8;
  --soft-2: #efeff3;
  --line: #e5e6ec;
  --red: #cf1230;
  --red-2: #a90d26;
  --red-soft: #fdeef1;
  --green: #0d7a4b;
  --green-soft: #e8f6ef;
  --gold: #f2b02c;
  --gold-2: #b97f0e;
  --blue: #1f5fa8;
  --text: #25272d;
  --muted: #5c5f67;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(20, 22, 26, 0.08);
  --shadow-lg: 0 18px 50px rgba(20, 22, 26, 0.16);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --float-h: 76px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--text);
  background: var(--paper);
  padding-bottom: calc(var(--float-h) + 16px);
  overflow-x: hidden;
}

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

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--ink);
  font-weight: 800;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

.container.narrow {
  width: min(860px, 100% - 2rem);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- tombol ---------- */
.btn {
  display: inline-block;
  font: 700 0.98rem/1.2 var(--font);
  padding: 0.78em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(180deg, var(--red) 0%, var(--red-2) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(207, 18, 48, 0.35);
}

.btn-primary:hover { box-shadow: 0 10px 26px rgba(207, 18, 48, 0.45); }

.btn-gold {
  background: linear-gradient(180deg, #ffd35c 0%, var(--gold) 55%, #e09c14 100%);
  color: #4d3503;
  box-shadow: 0 6px 16px rgba(242, 176, 44, 0.4);
}

.btn-outline {
  border-color: var(--red);
  color: var(--red);
  background: transparent;
}

.btn-outline:hover { background: var(--red-soft); }

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

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

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-lg { font-size: 1.06rem; padding: 0.9em 1.9em; }
.btn-sm { font-size: 0.9rem; padding: 0.55em 1.15em; }
.btn-sm-w { font-size: 0.92rem; padding: 0.6em 1.5em; min-width: 104px; }
.btn-block { width: 100%; }

/* ---------- lencana ---------- */
.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.28em 0.85em;
  border-radius: 999px;
  border: 1px solid transparent;
}

.badge-gold {
  background: rgba(242, 176, 44, 0.16);
  border-color: rgba(242, 176, 44, 0.55);
  color: var(--gold-2);
}

.badge-line {
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.28rem;
  color: var(--ink);
}

.brand:hover { text-decoration: none; }

.brand-name { letter-spacing: 0.01em; }
.brand-accent { color: var(--red); }

.main-nav {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.main-nav ul {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a:not(.btn) {
  display: block;
  padding: 0.45em 0.8em;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
  font-size: 0.96rem;
}

.main-nav a:not(.btn):hover {
  background: var(--soft);
  text-decoration: none;
  color: var(--red);
}

.main-nav a[aria-current="page"] {
  color: var(--red);
  background: var(--red-soft);
}

.nav-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: 0.15rem;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.search-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.5em 1.05em;
  font: 600 0.9rem var(--font);
  cursor: pointer;
  min-width: 190px;
}

.search-toggle:hover { border-color: var(--red); color: var(--red); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 24px; height: 3px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- panel pencarian ---------- */
.search-panel {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 1.1rem 0 1.3rem;
}

.search-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.search-input {
  flex: 1;
  font: 600 1rem var(--font);
  padding: 0.7em 1.1em;
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--soft);
}

.search-input:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
}

.search-results { margin-top: 0.85rem; }

.search-result {
  display: block;
  padding: 0.55em 0.4em;
  border-bottom: 1px dashed var(--line);
  color: var(--text);
}

.search-result:hover { text-decoration: none; background: var(--soft); }
.search-result strong { color: var(--red); display: block; font-size: 0.97rem; }
.search-result span { font-size: 0.85rem; color: var(--muted); }

.search-empty { color: var(--muted); font-size: 0.92rem; padding: 0.3em 0.2em; }

.tag-cloud {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.tag-cloud-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0.35rem 0 0;
}

.tag {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 0.32em 0.9em;
  border-radius: 999px;
}

.tag:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-soft);
  text-decoration: none;
}

/* ---------- breadcrumb ---------- */
.breadcrumb { padding: 1.1rem 0 0; }

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
}

.breadcrumb li + li::before {
  content: "\203A";
  margin: 0 0.45rem 0 0.15rem;
  color: var(--muted);
}

.breadcrumb a { color: var(--muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb li[aria-current] { color: var(--ink); font-weight: 700; }

.page-main { min-height: 55vh; }

/* ---------- hero beranda ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }

.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 480px at 18% 0%, rgba(207, 18, 48, 0.5), transparent 60%),
    linear-gradient(180deg, rgba(20, 22, 26, 0.5) 0%, rgba(20, 22, 26, 0.88) 78%, var(--ink) 100%);
}

.hero-inner {
  position: relative;
  padding: 4.6rem 0 4.2rem;
  max-width: 880px;
}

.hero-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.1rem; }

.hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  margin-bottom: 0.7em;
}

.hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.13rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 44em;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 1rem;
}

.hero-note {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.62);
  max-width: 46em;
}

/* ---------- strip kategori ---------- */
.cat-strip {
  background: linear-gradient(180deg, var(--ink) 0%, #17191f 100%);
  padding: 0 0 2.4rem;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cat-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.cat-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.cat-card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; }

.cat-title { font-size: 1.12rem; margin: 0; color: var(--ink); }

.cat-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  flex: 1;
}

.cat-more { color: var(--red); font-weight: 700; font-size: 0.88rem; }

/* ---------- seksi umum ---------- */
.section { padding: 3.6rem 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: #e8e9ee; }
.section-dark h2 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: 2rem; }

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.6rem;
}

.kicker-gold { color: var(--gold); }
.kicker-inline { margin-bottom: 0.35rem; }

.section-lead { color: var(--muted); font-size: 1.02rem; }
.section-dark .section-lead { color: rgba(255, 255, 255, 0.75); }

.section h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.4rem;
  align-items: start;
}

/* ---------- kartu fitur ---------- */
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  box-shadow: 0 4px 14px rgba(20, 22, 26, 0.05);
}

.feature-icon {
  font-size: 1.7rem;
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  background: var(--red-soft);
  border-radius: 14px;
  margin-bottom: 0.9rem;
}

.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }

.feature-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ---------- daftar centang ---------- */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.check-list li {
  position: relative;
  padding-left: 2.1rem;
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0; top: 0.1em;
  width: 1.5rem; height: 1.5rem;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 50%;
}

.check-light li::before {
  background: rgba(242, 176, 44, 0.18);
  color: var(--gold);
}

/* ---------- kartu catatan ---------- */
.note-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow);
}

.note-card h3 { font-size: 1.05rem; }
.note-links { margin-bottom: 0; font-size: 0.92rem; }
.note-wide { margin-top: 2rem; }

.mini-ol { margin: 0.6rem 0 0.9rem; padding-left: 1.3rem; display: grid; gap: 0.4rem; }
.mini-ol li { font-size: 0.93rem; }

/* ---------- mock ponsel ---------- */
.phone-mock { display: grid; place-items: center; }

.phone-screen {
  width: min(250px, 100%);
  background: #0c0e12;
  border: 8px solid #2a2d35;
  border-radius: 30px;
  padding: 1.1rem 0.9rem;
  box-shadow: var(--shadow-lg);
}

.pm-bar { height: 10px; border-radius: 6px; background: rgba(242, 176, 44, 0.85); margin-bottom: 0.8rem; }
.pm-title { height: 16px; border-radius: 4px; background: rgba(255, 255, 255, 0.85); width: 78%; margin-bottom: 0.75rem; }
.pm-lines { display: grid; gap: 0.45rem; margin-bottom: 0.85rem; }
.pm-lines i { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.28); }
.pm-lines i.short { width: 55%; }
.pm-chips { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.pm-chips span {
  font-size: 0.62rem;
  font-weight: 700;
  color: #ffd35c;
  border: 1px solid rgba(242, 176, 44, 0.5);
  border-radius: 999px;
  padding: 0.15em 0.7em;
}

/* ---------- ulasan ---------- */
.review-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.review-card p {
  font-size: 0.97rem;
  font-style: italic;
  color: var(--text);
  margin: 0;
  flex: 1;
}

.review-card footer {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--red);
}

/* ---------- glosarium ---------- */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}

.gloss-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
}

.gloss-item h3 {
  font-size: 0.98rem;
  color: var(--red);
  margin-bottom: 0.25rem;
}

.gloss-item p { font-size: 0.88rem; margin: 0; color: var(--muted); }

.gloss-figure { margin: 0; }

.gloss-figure img {
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}

.gloss-figure figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ---------- panel keamanan ---------- */
.security-panel {
  background: linear-gradient(160deg, #101319 0%, #1c2029 100%);
  color: #e8e9ee;
  border-radius: var(--radius);
  padding: 1.6rem 1.6rem;
  box-shadow: var(--shadow-lg);
}

.security-panel h3 { color: var(--gold); font-size: 1.1rem; }
.security-panel .muted { color: rgba(255, 255, 255, 0.6); font-size: 0.87rem; }
.security-panel a { color: var(--gold); }

/* ---------- artikel ---------- */
.article-header { margin: 1.6rem 0 1.4rem; }

.article-header h1 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); }

.article-meta { font-size: 0.86rem; color: var(--muted); margin: 0; }

.article-hero { margin: 0 0 1.6rem; }

.article-hero img {
  border-radius: var(--radius);
  width: 100%;
  max-height: 430px;
  object-fit: cover;
}

.article-hero figcaption {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 0.45rem;
}

.article-body { font-size: 1.02rem; }

.article-body p.lead, p.lead {
  font-size: 1.13rem;
  color: var(--muted);
  line-height: 1.75;
}

.article-body h2 {
  font-size: 1.32rem;
  margin: 1.7em 0 0.6em;
  padding-left: 0.75rem;
  border-left: 4px solid var(--red);
}

.article-body h3 { font-size: 1.1rem; margin: 1.4em 0 0.5em; }

.article-body a { font-weight: 600; }

.article-body ul { padding-left: 1.3rem; }

.text-link { font-weight: 700; }

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

/* ---------- kotak terkait ---------- */
.related-box {
  margin-top: 2.2rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}

.related-box h2 { font-size: 1.08rem; margin-bottom: 0.7rem; }

.related-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }

.related-box a { font-weight: 700; }

.rel-desc { color: var(--muted); font-size: 0.88rem; }

/* ---------- tabel syarat ---------- */
.terms-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 0.94rem;
}

.terms-table caption {
  caption-side: top;
  text-align: left;
  font-size: 0.85rem;
  color: var(--muted);
  padding-bottom: 0.55rem;
}

.terms-table th, .terms-table td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.terms-table tr:last-child th, .terms-table tr:last-child td { border-bottom: 0; }

.terms-table th[scope="row"] {
  width: 30%;
  background: var(--soft);
  color: var(--ink);
  font-weight: 700;
}

/* ---------- promo ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }

.promo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.promo-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

.promo-card-body { padding: 1.05rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: 0.3rem; }

.promo-card h2 { font-size: 1.08rem; margin: 0; }

.promo-card p { font-size: 0.89rem; color: var(--muted); margin: 0 0 0.4rem; }

/* ---------- auth ---------- */
.auth-container { padding-top: 1.2rem; }

.auth-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.4rem;
  align-items: start;
  margin-top: 1.4rem;
}

.auth-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.7rem 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.05rem;
}

.form-field { display: grid; gap: 0.32rem; }

.form-field label { font-weight: 700; font-size: 0.93rem; color: var(--ink); }

.form-field input[type="text"],
.form-field input[type="password"] {
  font: 600 1rem var(--font);
  padding: 0.72em 1em;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--soft);
  width: 100%;
}

.form-field input:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
}

.field-hint { font-size: 0.82rem; color: var(--muted); margin: 0; }

.form-check { display: flex; gap: 0.6rem; align-items: flex-start; }

.form-check input {
  width: 19px; height: 19px;
  margin-top: 0.28em;
  accent-color: var(--red);
  flex: none;
}

.form-check label { font-size: 0.9rem; font-weight: 500; }

.auth-alt { font-size: 0.92rem; margin-top: 1rem; }

.auth-aside img {
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 1.1rem;
}

.auth-aside h3 { font-size: 1.05rem; }

.auth-aside .muted { font-size: 0.88rem; }

/* ---------- faq ---------- */
.faq-list { display: grid; gap: 0.7rem; }

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.99rem;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  line-height: 1;
  color: var(--red);
  flex: none;
  transition: transform 0.18s ease;
}

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

.faq-answer { padding: 0 1.2rem 1.05rem; }
.faq-answer p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.2rem 0 2rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr 0.8fr;
  gap: 2.2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand { color: #fff; margin-bottom: 0.9rem; }

.footer-brand p { font-size: 0.9rem; }

.footer-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.footer-col h3 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }

.footer-col a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 500;
}

.footer-col a:hover { color: var(--gold); }

.footer-legal { padding-top: 1.6rem; font-size: 0.84rem; }

.footer-legal p { margin-bottom: 0.7rem; }

.footer-copy { color: rgba(255, 255, 255, 0.5); margin-bottom: 0; }

/* ---------- floating CTA ---------- */
.float-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  height: var(--float-h);
  background: linear-gradient(90deg, #17191f 0%, #23262e 55%, #2a1218 100%);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -12px 34px rgba(20, 22, 26, 0.45);
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0 1.2rem;
}

.float-visual {
  position: relative;
  display: flex;
  gap: 0.32rem;
  align-items: center;
  height: 44px;
  flex: none;
}

.reel {
  display: flex;
  flex-direction: column;
  height: 28px;
  overflow: hidden;
  border-radius: 6px;
  border: 1.5px solid rgba(242, 176, 44, 0.7);
  background: #0d0f13;
}

.reel span {
  display: grid;
  place-items: center;
  height: 28px;
  min-width: 26px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold);
  animation: reelspin 1.5s linear infinite;
}

.reel-2 span { animation-duration: 1.9s; animation-delay: 0.2s; }
.reel-3 span { animation-duration: 1.7s; animation-delay: 0.4s; }

@keyframes reelspin {
  from { transform: translateY(0); }
  to { transform: translateY(-200%); }
}

.coin {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a8 0%, var(--gold) 55%, #c98a12 100%);
  box-shadow: 0 2px 8px rgba(242, 176, 44, 0.55);
}

.coin-a { width: 15px; height: 15px; right: -14px; top: -4px; animation: coinbob 2.6s ease-in-out infinite; }
.coin-b { width: 10px; height: 10px; right: -22px; bottom: 2px; animation: coinbob 2.1s 0.5s ease-in-out infinite; }

@keyframes coinbob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.float-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.float-brand { color: #fff; font-size: 1.04rem; letter-spacing: 0.02em; }

.float-line { color: rgba(255, 255, 255, 0.62); font-size: 0.78rem; white-space: nowrap; }

.float-actions {
  margin-left: auto;
  display: flex;
  gap: 0.6rem;
  flex: none;
}

/* ---------- 404 ---------- */
.notfound { padding: 5rem 0 6rem; text-align: center; }
.notfound .kicker { font-size: 1.4rem; color: var(--gold-2); }
.notfound h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.notfound .hero-actions { justify-content: center; }

/* ---------- responsif ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-toggle { min-width: 150px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 0.8rem 1.25rem 1.1rem;
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0.15rem; }
  .nav-actions { margin: 0.8rem 0 0; }
  .two-col { grid-template-columns: 1fr; gap: 1.6rem; }
  .auth-wrap { grid-template-columns: 1fr; gap: 1.8rem; }
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 15.8px; }
  .container { width: min(1160px, 100% - 1.9rem); }
  .hero-inner { padding: 3.2rem 0 3rem; }
  .cat-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .glossary-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.7rem; }
  .section { padding: 2.7rem 0; }
  .search-toggle { min-width: 0; }
  .search-label { display: none; }
  .search-toggle { padding: 0.5em 0.8em; }
  :root { --float-h: 66px; }
  .float-cta { gap: 0.7rem; padding: 0 0.85rem; }
  .float-visual { height: 36px; }
  .reel { height: 22px; }
  .reel span { height: 22px; font-size: 0.8rem; }
  .float-brand { font-size: 0.95rem; }
  .float-line { display: none; }
  .btn-sm-w { min-width: 88px; padding: 0.6em 1em; }
  .terms-table th[scope="row"] { width: 38%; }
  .article-hero img { max-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reel span, .coin { animation: none; }
  .btn, .cat-card, .promo-card { transition: none; }
}
