/* ============================================================
   Uang4d — Portal Informasi Casino & Slot Online (Bahasa Indonesia)
   Desain: gelap elegan + aksen emas/hijau, gaya casino informatif
   ============================================================ */

:root {
  --bg: #0c1117;
  --bg-soft: #10161e;
  --card: #151d28;
  --card-2: #1a2432;
  --line: #26313f;
  --line-soft: #1f2937;
  --text: #e9eef4;
  --muted: #a3b1c2;
  --muted-2: #7d8ca0;
  --gold: #f5b301;
  --gold-soft: #ffd166;
  --gold-dark: #c98e00;
  --green: #23c47f;
  --green-dark: #14855a;
  --red: #ef5350;
  --blue: #4da3ff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --container: 1200px;
  --header-h: 68px;
  --widget-h: 78px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: clip;
  padding-bottom: calc(var(--widget-h) + 16px);
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { border-style: none; }

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

ul, ol { padding-left: 1.3em; }
li { margin: .35em 0; }

h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; color: #fff; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); }
h3 { font-size: clamp(1.12rem, 2.4vw, 1.35rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

/* ---------- Utilitas ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--gold); font-weight: 700; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: .8rem;
}
.kicker::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); }

.section { padding: 60px 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--line-soft); }

.section-head { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.section-head p { color: var(--muted); margin-top: .6rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.5rem; border-radius: 999px; font-weight: 700;
  font-size: .95rem; line-height: 1.2; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: #201500; box-shadow: 0 6px 18px rgba(245, 179, 1, .28); }
.btn-gold:hover { box-shadow: 0 8px 24px rgba(245, 179, 1, .4); }
.btn-green { background: linear-gradient(180deg, #2ad38d, var(--green)); color: #04160d; box-shadow: 0 6px 18px rgba(35, 196, 127, .25); }
.btn-outline { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: .5rem 1.05rem; font-size: .86rem; }

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .02em;
  border-radius: 999px; padding: .22rem .7rem; border: 1px solid var(--line);
  color: var(--muted); background: rgba(255, 255, 255, .04);
}
.badge-gold { color: var(--gold); border-color: rgba(245, 179, 1, .45); background: rgba(245, 179, 1, .08); }
.badge-green { color: var(--green); border-color: rgba(35, 196, 127, .45); background: rgba(35, 196, 127, .08); }
.badge-red { color: #ff8a87; border-color: rgba(239, 83, 80, .5); background: rgba(239, 83, 80, .1); }
.badge-blue { color: var(--blue); border-color: rgba(77, 163, 255, .45); background: rgba(77, 163, 255, .08); }

.grid { display: grid; gap: 22px; }
.grid > * { min-width: 0; }
.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(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}

.icon-tile {
  width: 52px; height: 52px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 14px;
  background: rgba(245, 179, 1, .12); border: 1px solid rgba(245, 179, 1, .3);
  color: var(--gold); font-size: 1.45rem; flex: none;
}
.icon-tile.green { background: rgba(35, 196, 127, .12); border-color: rgba(35, 196, 127, .3); color: var(--green); }
.icon-tile.blue { background: rgba(77, 163, 255, .12); border-color: rgba(77, 163, 255, .3); color: var(--blue); }
.icon-tile.red { background: rgba(239, 83, 80, .12); border-color: rgba(239, 83, 80, .3); color: var(--red); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 17, 23, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: #fff; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand span b { color: var(--gold); }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--muted); font-weight: 600; font-size: .92rem;
  padding: .55rem .8rem; border-radius: 8px;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); text-decoration: none; }
.main-nav a.active { color: var(--gold); background: rgba(245, 179, 1, .1); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.search-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03); color: var(--muted); cursor: pointer;
}
.search-toggle:hover { color: var(--gold); border-color: var(--gold); }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03);
  cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 10px; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { left: 0; top: -6px; }
.nav-toggle span::after { left: 0; top: 6px; }

/* ---------- Panel pencarian (overlay) ---------- */
.search-panel {
  position: fixed; inset: 0; z-index: 70; display: none;
  background: rgba(7, 11, 15, .82); backdrop-filter: blur(6px);
  padding: 90px 1.25rem 2rem; overflow-y: auto;
}
.search-panel.open { display: block; }
.search-box {
  max-width: 720px; margin: 0 auto; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow);
}
.search-box .search-top { display: flex; gap: 10px; }
.search-box input {
  flex: 1; min-width: 0; padding: .8rem 1rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font-size: 1rem; font-family: inherit;
}
.search-box input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.search-close { align-self: flex-start; font-size: .85rem; color: var(--muted); background: none; border: none; cursor: pointer; margin-top: 2px; }
.search-close:hover { color: var(--gold); }
.search-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search-tags .tag-label { color: var(--muted-2); font-size: .82rem; margin-right: 4px; }
.tag {
  display: inline-block; padding: .3rem .85rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); font-size: .84rem;
  background: rgba(255, 255, 255, .03); cursor: pointer;
}
.tag:hover { color: var(--gold); border-color: var(--gold); text-decoration: none; }
.search-results { margin-top: 18px; display: grid; gap: 10px; }
.search-result {
  display: block; padding: 14px 16px; border: 1px solid var(--line-soft);
  border-radius: 12px; background: var(--bg-soft);
}
.search-result:hover { border-color: var(--gold); text-decoration: none; }
.search-result .sr-title { color: var(--gold); font-weight: 700; font-size: .98rem; }
.search-result .sr-desc { color: var(--muted); font-size: .86rem; margin-top: 2px; }
.search-empty { color: var(--muted); font-size: .92rem; text-align: center; padding: 10px 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumbs { padding: 16px 0 2px; font-size: .84rem; color: var(--muted-2); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; margin: 0; }
.breadcrumbs li + li::before { content: "›"; color: var(--muted-2); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs [aria-current] { color: var(--gold); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #101823 0%, #0c1117 55%, #0a1310 100%);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 18% 10%, rgba(245, 179, 1, .16), transparent 60%),
    linear-gradient(180deg, rgba(12, 17, 23, .55) 0%, rgba(12, 17, 23, .88) 62%, var(--bg) 100%);
}
.hero-inner { position: relative; padding: 76px 0 70px; max-width: 860px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.hero h1 { margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { font-size: clamp(1rem, 2.2vw, 1.15rem); color: var(--muted); max-width: 640px; margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 26px; color: var(--muted); font-size: .9rem; }
.hero-facts b { display: block; color: #fff; font-size: 1.25rem; }
.hero-facts span b em { font-style: normal; color: var(--gold); }

/* ---------- Kartu kategori ---------- */
.cat-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.cat-card .cat-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.cat-card .cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat-card:hover .cat-img img { transform: scale(1.05); }
.cat-card .cat-img .badge { position: absolute; top: 12px; left: 12px; background: rgba(12, 17, 23, .8); backdrop-filter: blur(4px); }
.cat-card .cat-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cat-card p { color: var(--muted); font-size: .93rem; }
.cat-card .cat-link { margin-top: auto; font-weight: 700; color: var(--gold); font-size: .92rem; }

/* ---------- Promo ---------- */
.promo-card { display: flex; gap: 18px; align-items: flex-start; }
.promo-card .promo-img { width: 132px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; flex: none; }
.promo-card .promo-img img { width: 100%; height: 100%; object-fit: cover; }
.promo-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.promo-card p { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.promo-terms { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 4px; }
.promo-terms li { font-size: .82rem; color: var(--muted); margin: 0; padding-left: 1.15em; position: relative; }
.promo-terms li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---------- Artikel ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.article-hero-img { border-radius: var(--radius); overflow: hidden; margin: 20px 0 26px; border: 1px solid var(--line); }
.article-body { font-size: 1.02rem; color: #d7dee7; }
.article-body h2 { margin: 1.8em 0 .6em; padding-top: .2em; }
.article-body h2::after { content: ""; display: block; width: 46px; height: 4px; border-radius: 4px; margin-top: .45em; background: linear-gradient(90deg, var(--gold), transparent); }
.article-body h3 { margin: 1.4em 0 .5em; color: var(--gold-soft); }
.article-body ul, .article-body ol { margin: 0 0 1.2em; }
.article-body li { margin: .45em 0; }
.article-body .note {
  border-left: 4px solid var(--gold); background: rgba(245, 179, 1, .07);
  padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 0 0 1.2em; font-size: .95rem;
}
.article-body .note.green { border-color: var(--green); background: rgba(35, 196, 127, .07); }
.article-body .note.red { border-color: var(--red); background: rgba(239, 83, 80, .07); }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.3em; font-size: .92rem; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.article-body th { background: var(--card-2); color: #fff; }
.article-body td { color: var(--muted); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted-2); font-size: .84rem; margin: 10px 0 0; }

.sidebar { display: grid; gap: 22px; position: sticky; top: calc(var(--header-h) + 16px); }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-card h3 { font-size: 1.02rem; margin-bottom: 12px; }
.side-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.side-links a { display: block; color: var(--muted); font-size: .92rem; font-weight: 600; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--bg-soft); }
.side-links a:hover { color: var(--gold); border-color: var(--gold); text-decoration: none; }

.cta-panel {
  background:
    radial-gradient(400px 200px at 90% 0%, rgba(35, 196, 127, .15), transparent 60%),
    linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; text-align: center; margin-top: 34px;
}
.cta-panel p { color: var(--muted); max-width: 560px; margin: .4rem auto 1.1rem; }

/* ---------- Testimoni ---------- */
.review-card { display: flex; flex-direction: column; gap: 12px; }
.review-card .review-quote { color: #d7dee7; font-size: .95rem; flex: 1; }
.review-card .review-who { display: flex; align-items: center; gap: 12px; }
.review-ava {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem; color: #201500;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
}
.review-ava.g2 { background: linear-gradient(135deg, #6fe3ae, var(--green)); color: #04160d; }
.review-ava.g3 { background: linear-gradient(135deg, #9cc9ff, var(--blue)); color: #06182d; }
.review-card .review-who b { display: block; font-size: .92rem; color: #fff; }
.review-card .review-who span { font-size: .78rem; color: var(--muted-2); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: .85rem; }

/* ---------- Kamus istilah ---------- */
.glossary { display: grid; gap: 10px; }
.glossary details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.glossary summary {
  cursor: pointer; list-style: none; padding: 14px 18px;
  font-weight: 700; color: #fff; display: flex; align-items: center; gap: 10px;
}
.glossary summary::-webkit-details-marker { display: none; }
.glossary summary::after { content: "+"; margin-left: auto; color: var(--gold); font-size: 1.2rem; font-weight: 700; }
.glossary details[open] summary::after { content: "–"; }
.glossary details[open] summary { border-bottom: 1px solid var(--line-soft); }
.glossary .glossary-body { padding: 14px 18px; color: var(--muted); font-size: .93rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 20px;
  font-weight: 700; color: #fff; display: flex; gap: 10px; align-items: baseline; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "?"; margin-left: auto; color: var(--gold); font-weight: 800; flex: none; }
.faq details[open] summary::after { content: "!"; }
.faq details[open] summary { border-bottom: 1px solid var(--line-soft); }
.faq .faq-a { padding: 14px 20px 18px; color: var(--muted); font-size: .95rem; }

/* ---------- Formulir ---------- */
.auth-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px; align-items: start; }
.form-card { padding: 30px; }
.form-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.form-card .form-sub { color: var(--muted); margin-bottom: 22px; font-size: .93rem; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: #dfe6ee; }
.form-field input[type="text"], .form-field input[type="email"], .form-field input[type="tel"], .form-field input[type="password"] {
  width: 100%; padding: .8rem 1rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font-size: .98rem; font-family: inherit;
}
.form-field input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.form-field .hint { font-size: .78rem; color: var(--muted-2); margin-top: 4px; }
.form-check { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 20px; font-size: .86rem; color: var(--muted); }
.form-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); flex: none; }
.form-note { font-size: .8rem; color: var(--muted-2); margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 10px; }
.form-side { display: grid; gap: 18px; }
.wide-btn { width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: #0a0f14; border-top: 1px solid var(--line-soft); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding: 48px 0 30px; }
.footer-brand p { color: var(--muted); font-size: .9rem; margin-top: 12px; max-width: 320px; }
.footer-h { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-links a { color: var(--muted); font-size: .9rem; }
.footer-links a:hover { color: var(--gold); }
.footer-legal { border-top: 1px solid var(--line-soft); padding: 22px 0; color: var(--muted-2); font-size: .8rem; }
.footer-legal .legal-line { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.footer-legal p { margin-bottom: 8px; max-width: 980px; }
.age-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--red); color: #ff8a87; font-weight: 800; font-size: .8rem; flex: none;
}

/* ---------- Floating widget (daftar/login) ---------- */
.float-widget {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; justify-content: center; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.float-widget-inner {
  pointer-events: auto; display: flex; align-items: center; gap: 16px;
  max-width: min(100%, 860px); width: 100%;
  background: linear-gradient(90deg, #141d16, #101820 45%, #191408);
  border: 1px solid rgba(245, 179, 1, .4); border-radius: 16px;
  padding: 8px 14px; box-shadow: 0 -6px 30px rgba(0, 0, 0, .5);
}
.widget-visual { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.widget-slot { flex: none; filter: drop-shadow(0 2px 6px rgba(245, 179, 1, .35)); }
.reel-strip { animation: reelSpin 2.6s steps(14) infinite; transform-origin: center; }
.reel-strip.r2 { animation-duration: 3.1s; animation-delay: .2s; }
.reel-strip.r3 { animation-duration: 2.2s; animation-delay: .1s; }
@keyframes reelSpin { from { transform: translateY(0); } to { transform: translateY(-84px); } }
.widget-coin { animation: coinFloat 2.4s ease-in-out infinite; }
.widget-coin.c2 { animation-delay: 1.2s; }
@keyframes coinFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.widget-copy { min-width: 0; }
.widget-copy b { display: block; color: #fff; font-size: .95rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.widget-copy span { display: block; color: var(--muted-2); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.widget-actions { display: flex; gap: 10px; flex: none; }

/* ---------- Responsif ---------- */
@media (max-width: 1080px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-soft); border-bottom: 1px solid var(--line);
    padding: 12px 16px 16px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .8rem 1rem; }
  .header-actions .btn-daftar-header { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .auth-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --widget-h: 74px; }
  body { font-size: 15px; }
  .section { padding: 42px 0; }
  .hero-inner { padding: 52px 0 48px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .promo-card { flex-direction: column; }
  .promo-card .promo-img { width: 100%; aspect-ratio: 16 / 8; }
  .widget-copy span { display: none; }
  .widget-copy b { font-size: .85rem; }
  .widget-actions { gap: 8px; }
  .widget-actions .btn { padding: .55rem 1rem; font-size: .82rem; }
  .float-widget-inner { gap: 10px; padding: 8px 10px; border-radius: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 36px 0 22px; }
  .footer-legal .legal-line { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Fokus aksesibel */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px;
}

/* ---------- Cetak ---------- */
@media print {
  .site-header, .float-widget, .search-panel, .site-footer { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
}
