/* ============================================================
   Neng4d — Portal Informasi iGaming (neng4d.games)
   Sistem desain: tema kasino gelap, neon multi-warna, bersih.
   Struktur file mengikuti konvensi tema WordPress (style.css).
   ============================================================ */

:root {
  --bg: #0d0a14;
  --bg-2: #14101f;
  --bg-3: #1c1630;
  --card: #181226;
  --card-2: #201838;
  --line: rgba(255, 255, 255, .09);
  --txt: #f3efff;
  --txt-2: #b9b0d4;
  --txt-3: #8d84ab;
  --gold: #fbbf24;
  --gold-2: #f59e0b;
  --pink: #ec4899;
  --red: #ef4444;
  --green: #22c55e;
  --blue: #3b82f6;
  --violet: #7c3aed;
  --violet-2: #a855f7;
  --radius: 14px;
  --radius-s: 9px;
  --shadow: 0 10px 34px rgba(0, 0, 0, .45);
  --grad-gold: linear-gradient(135deg, #fde68a 0%, #fbbf24 45%, #d97706 100%);
  --grad-pink: linear-gradient(135deg, #f9a8d4 0%, #ec4899 50%, #be185d 100%);
  --grad-violet: linear-gradient(135deg, #c4b5fd 0%, #7c3aed 55%, #4c1d95 100%);
  --grad-green: linear-gradient(135deg, #86efac 0%, #22c55e 55%, #15803d 100%);
  --max: 1180px;
}

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

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

body {
  background: var(--bg);
  color: var(--txt);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #fde68a; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { line-height: 1.3; font-weight: 800; letter-spacing: .2px; }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.7rem); }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); margin-bottom: 18px; }
h3 { font-size: 1.15rem; }

p { color: var(--txt-2); margin-bottom: 14px; }
strong { color: var(--txt); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(13, 10, 20, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-in {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 20px; max-width: var(--max); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 42px; height: 42px; }
.brand-name {
  font-size: 1.35rem; font-weight: 900; letter-spacing: .5px;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-name small {
  display: block; font-size: .62rem; font-weight: 600;
  color: var(--txt-3); -webkit-text-fill-color: var(--txt-3); letter-spacing: 2px;
}
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; align-items: center; flex-wrap: wrap; }
.main-nav a {
  display: block; padding: 8px 13px; border-radius: 8px;
  color: var(--txt-2); font-size: .92rem; font-weight: 600;
}
.main-nav a:hover, .main-nav a.active { color: var(--txt); background: rgba(124, 58, 237, .22); }
.nav-cta {
  background: var(--grad-pink) !important; color: #fff !important;
  font-weight: 800 !important; box-shadow: 0 4px 16px rgba(236, 72, 153, .35);
}
.nav-toggle {
  display: none; margin-left: auto; background: var(--card-2);
  border: 1px solid var(--line); color: var(--txt); border-radius: 8px;
  padding: 8px 12px; font-size: 1.1rem; cursor: pointer;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: .82rem; color: var(--txt-3);
  padding: 14px 0 0;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li::after { content: "›"; margin-left: 6px; color: var(--txt-3); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--txt-3); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current] { color: var(--txt-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .5;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,10,20,.35) 0%, rgba(13,10,20,.88) 78%, var(--bg) 100%);
}
.hero-in { position: relative; padding: 84px 20px 64px; text-align: center; }
.hero h1 { max-width: 820px; margin: 0 auto 16px; }
.hero h1 .hl {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { max-width: 720px; margin: 0 auto 26px; font-size: 1.06rem; color: var(--txt-2); }
.hero-badges { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: .8rem; font-weight: 700; color: var(--txt-2);
  background: rgba(24, 18, 38, .75);
}
.badge.b18 { border-color: var(--red); color: #fca5a5; }
.badge.bgreen { border-color: rgba(34,197,94,.5); color: #86efac; }
.badge.bblue { border-color: rgba(59,130,246,.5); color: #93c5fd; }

.btn {
  display: inline-block; padding: 13px 30px; border-radius: 12px;
  font-weight: 800; font-size: 1rem; letter-spacing: .3px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--grad-gold); color: #231303; box-shadow: 0 8px 24px rgba(251, 191, 36, .3); }
.btn-gold:hover { color: #231303; box-shadow: 0 12px 30px rgba(251, 191, 36, .45); }
.btn-ghost { border: 1px solid var(--line); color: var(--txt); background: rgba(24,18,38,.6); }
.btn-ghost:hover { border-color: var(--violet-2); color: #fff; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section.block { padding: 58px 0; }
section.block:nth-of-type(even) { background: var(--bg-2); }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.sec-head .kicker {
  display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--violet-2); margin-bottom: 10px;
}
.sec-head p { margin-bottom: 0; }

.grid { display: grid; gap: 18px; }
.grid.g2 { grid-template-columns: repeat(2, 1fr); }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(168, 85, 247, .45); }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; margin-bottom: 14px;
  background: var(--grad-violet); box-shadow: 0 6px 18px rgba(124, 58, 237, .35);
}
.card .ic.gold { background: var(--grad-gold); box-shadow: 0 6px 18px rgba(251,191,36,.3); }
.card .ic.pink { background: var(--grad-pink); box-shadow: 0 6px 18px rgba(236,72,153,.3); }
.card .ic.green { background: var(--grad-green); box-shadow: 0 6px 18px rgba(34,197,94,.3); }
.card .ic.blue { background: linear-gradient(135deg, #93c5fd, #3b82f6 55%, #1e40af); box-shadow: 0 6px 18px rgba(59,130,246,.3); }
.card .ic.red { background: linear-gradient(135deg, #fca5a5, #ef4444 55%, #991b1b); box-shadow: 0 6px 18px rgba(239,68,68,.3); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .92rem; margin-bottom: 0; }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table.tbl { width: 100%; border-collapse: collapse; min-width: 620px; background: var(--card); }
.tbl th, .tbl td { padding: 13px 16px; text-align: left; font-size: .9rem; border-bottom: 1px solid var(--line); }
.tbl th { background: var(--card-2); color: var(--gold); font-weight: 800; white-space: nowrap; }
.tbl td { color: var(--txt-2); }
.tbl tr:last-child td { border-bottom: none; }
.tbl .yes { color: #4ade80; font-weight: 700; }
.tbl .no { color: #f87171; font-weight: 700; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
}
.step::before {
  counter-increment: step; content: counter(step);
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.05rem; color: #231303;
  background: var(--grad-gold);
}
.step h3 { margin-bottom: 4px; }
.step p { margin-bottom: 0; font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 0;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 20px;
  font-weight: 700; color: var(--txt); display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.2rem; font-weight: 900; flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 16px; margin: 0; font-size: .92rem; }

/* ---------- Tag cloud & search ---------- */
.tagcloud { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.tagcloud a {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 15px; font-size: .83rem; color: var(--txt-2);
  background: var(--card);
}
.tagcloud a:hover { border-color: var(--gold); color: var(--gold); }
.searchbar { display: flex; gap: 10px; max-width: 560px; margin: 0 auto 22px; }
.searchbar input {
  flex: 1; min-width: 0; padding: 13px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card);
  color: var(--txt); font-size: .95rem; outline: none;
}
.searchbar input:focus { border-color: var(--violet-2); }
.searchbar button {
  padding: 13px 22px; border: none; border-radius: 12px; cursor: pointer;
  background: var(--grad-violet); color: #fff; font-weight: 800; font-size: .95rem;
}
.search-hint { text-align: center; font-size: .82rem; color: var(--txt-3); margin-top: 10px; }

/* ---------- Game cards ---------- */
.game-card { padding: 0; overflow: hidden; }
.game-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.game-card .gc-body { padding: 20px 22px 24px; }
.game-card .gc-tag {
  display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--violet-2); margin-bottom: 8px;
}
.game-card h3 { margin-bottom: 8px; }
.game-card p { font-size: .9rem; margin-bottom: 14px; }
.game-card .more { font-size: .88rem; font-weight: 700; }

/* ---------- Article ---------- */
.article-hero {
  border-radius: var(--radius); overflow: hidden; margin: 22px 0 30px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.article-body { max-width: 800px; margin: 0 auto; }
.article-body h2 { margin-top: 38px; }
.article-body h3 { margin: 26px 0 10px; color: var(--txt); }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; color: var(--txt-2); }
.article-body li { margin-bottom: 8px; }
.article-meta { font-size: .82rem; color: var(--txt-3); margin-bottom: 8px; }
.callout {
  border-left: 4px solid var(--gold); background: rgba(251, 191, 36, .07);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding: 16px 20px; margin: 22px 0; font-size: .92rem; color: var(--txt-2);
}
.callout.warn { border-color: var(--red); background: rgba(239, 68, 68, .07); }
.callout.ok { border-color: var(--green); background: rgba(34, 197, 94, .07); }
.callout strong { color: var(--txt); }

/* ---------- Promo terms ---------- */
.terms {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; margin-top: 18px;
}
.terms h3 { color: var(--gold); margin-bottom: 12px; }
.terms ul { margin-left: 20px; color: var(--txt-2); font-size: .9rem; }
.terms li { margin-bottom: 7px; }

/* ---------- Auth pages ---------- */
.auth-box {
  max-width: 480px; margin: 40px auto; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow);
}
.auth-box h1 { font-size: 1.5rem; margin-bottom: 6px; text-align: center; }
.auth-box .sub { text-align: center; font-size: .88rem; margin-bottom: 24px; }
.auth-box label { display: block; font-size: .85rem; font-weight: 700; margin: 14px 0 6px; color: var(--txt-2); }
.auth-box input {
  width: 100%; padding: 12px 15px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-3);
  color: var(--txt); font-size: .95rem; outline: none;
}
.auth-box input:focus { border-color: var(--gold); }
.auth-box .btn { width: 100%; margin-top: 22px; border: none; cursor: pointer; }
.auth-note { font-size: .8rem; color: var(--txt-3); text-align: center; margin-top: 16px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: .88rem; color: var(--txt-2); }

/* ---------- Floating CTA (slot style) ---------- */
.float-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: flex; gap: 12px; justify-content: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(13,10,20,0) 0%, rgba(13,10,20,.92) 40%);
  pointer-events: none;
}
.float-cta a { pointer-events: auto; }
.slot-btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; font-weight: 900;
  font-size: .98rem; letter-spacing: .5px; overflow: hidden;
  transition: transform .15s ease;
}
.slot-btn:hover { transform: translateY(-3px) scale(1.03); }
.slot-btn.daftar {
  background: var(--grad-gold); color: #231303;
  box-shadow: 0 8px 26px rgba(251, 191, 36, .45);
  animation: pulseGold 2.2s ease-in-out infinite;
}
.slot-btn.masuk {
  background: var(--grad-pink); color: #fff;
  box-shadow: 0 8px 26px rgba(236, 72, 153, .4);
}
.slot-btn .coin { font-size: 1.15rem; display: inline-block; animation: coinSpin 2.6s linear infinite; }
.slot-btn.daftar::after {
  content: ""; position: absolute; top: 0; left: -80%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.55), transparent);
  animation: shine 2.8s ease-in-out infinite;
}
@keyframes shine { 0% { left: -80%; } 55% { left: 130%; } 100% { left: 130%; } }
@keyframes coinSpin { 0% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }
@keyframes pulseGold {
  0%, 100% { box-shadow: 0 8px 26px rgba(251,191,36,.45); }
  50% { box-shadow: 0 8px 38px rgba(251,191,36,.75); }
}
@media (prefers-reduced-motion: reduce) {
  .slot-btn.daftar, .slot-btn .coin, .slot-btn.daftar::after { animation: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-2); border-top: 1px solid var(--line);
  padding: 52px 0 120px; margin-top: 20px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { font-size: .95rem; margin-bottom: 14px; color: var(--gold); }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--txt-2); font-size: .88rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand p { font-size: .86rem; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-legal {
  border-top: 1px solid var(--line); margin-top: 36px; padding-top: 22px;
  font-size: .8rem; color: var(--txt-3);
}
.footer-legal p { font-size: .8rem; color: var(--txt-3); margin-bottom: 10px; }
.age-row { display: flex; align-items: center; gap: 12px; margin: 14px 0; flex-wrap: wrap; }
.age-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--red); color: #fca5a5; font-weight: 900; font-size: .95rem;
}
.tg-link { color: #7dd3fc !important; font-weight: 700; }

/* ---------- Misc ---------- */
.notice-strip {
  background: linear-gradient(90deg, rgba(239,68,68,.14), rgba(251,191,36,.12));
  border: 1px solid rgba(239, 68, 68, .35);
  border-radius: var(--radius-s); padding: 12px 18px;
  font-size: .84rem; color: #fecaca; text-align: center; margin: 18px 0 0;
}
.text-center { text-align: center; }
.mt-30 { margin-top: 30px; }
.divider { height: 1px; background: var(--line); margin: 40px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid.g4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .grid.g3 { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 10px 20px 16px; margin-left: 0;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 11px 14px; }
  .hero-in { padding: 60px 20px 48px; }
  section.block { padding: 44px 0; }
}
@media (max-width: 560px) {
  .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .step { flex-direction: column; }
  .float-cta { gap: 8px; padding-left: 10px; padding-right: 10px; }
  .slot-btn { padding: 12px 18px; font-size: .9rem; flex: 1; justify-content: center; max-width: 220px; }
  .auth-box { margin: 24px auto; padding: 26px 20px; }
  .searchbar { flex-direction: column; }
  .searchbar button { width: 100%; }
}
