/* ============================================================
   Koko5000 Theme — style.css
   Casino theme: dark navy + red/gold/green/blue accents
   Mobile-first responsive
   ============================================================ */
:root {
  --bg: #0b0f1f;
  --bg-2: #111831;
  --bg-3: #182142;
  --card: #141c38;
  --line: #26315c;
  --red: #e63946;
  --red-dark: #b3242f;
  --gold: #f4c542;
  --gold-dark: #c99a1e;
  --green: #2ecc71;
  --blue: #3b82f6;
  --yellow: #ffd23f;
  --text: #f5f7fa;
  --muted: #a7b0c8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  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: #ffe08a; }
h1, h2, h3, h4 { line-height: 1.3; font-weight: 800; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* ---------- Top bar ---------- */
.topbar {
  background: linear-gradient(90deg, var(--red-dark), var(--red), var(--red-dark));
  color: #fff; font-size: 13px; text-align: center; padding: 6px 12px;
}
.topbar strong { color: var(--yellow); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(11, 15, 31, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 10px; padding: 10px 12px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; }
.brand-name { font-size: 22px; font-weight: 900; letter-spacing: .5px; color: #fff; }
.brand-name span { color: var(--gold); }
.header-search { flex: 1; display: none; }
.header-search input {
  width: 100%; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font-size: 14px; outline: none;
}
.header-actions { display: flex; gap: 8px; margin-left: auto; }
.btn {
  display: inline-block; padding: 10px 20px; border-radius: 999px; font-weight: 700;
  font-size: 14px; cursor: pointer; border: none; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-login { background: transparent; border: 2px solid var(--gold); color: var(--gold); }
.btn-login:hover { background: var(--gold); color: #1a1a1a; }
.btn-register {
  background: linear-gradient(135deg, var(--red), #ff6b35); color: #fff;
  box-shadow: 0 4px 14px rgba(230, 57, 70, .4);
}
.btn-register:hover { color: #fff; box-shadow: 0 6px 20px rgba(230, 57, 70, .6); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #ffdf7e); color: #1a1a1a; }
.btn-gold:hover { color: #000; }
.btn-green { background: linear-gradient(135deg, var(--green), #58d68d); color: #06281a; }
.btn-green:hover { color: #000; }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; padding: 9px;
}
.nav-toggle span { display: block; height: 2px; background: var(--gold); border-radius: 2px; }

/* ---------- Main nav ---------- */
.main-nav {
  background: var(--bg-2); border-bottom: 1px solid var(--line);
  position: sticky; top: 65px; z-index: 800;
}
.main-nav ul { display: flex; list-style: none; overflow-x: auto; max-width: var(--maxw); margin: 0 auto; padding: 0 8px; scrollbar-width: none; }
.main-nav ul::-webkit-scrollbar { display: none; }
.main-nav a {
  display: block; padding: 12px 16px; color: var(--text); font-weight: 600; font-size: 14px;
  white-space: nowrap; border-bottom: 3px solid transparent;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); border-bottom-color: var(--red); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(5, 8, 18, .98);
  padding: 24px; overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu .close-menu {
  background: none; border: none; color: var(--gold); font-size: 32px; float: right; cursor: pointer;
}
.mobile-menu ul { list-style: none; margin-top: 60px; }
.mobile-menu a { display: block; padding: 14px 8px; color: var(--text); font-size: 18px; font-weight: 700; border-bottom: 1px solid var(--line); }
.mobile-menu .menu-cta { display: flex; gap: 12px; margin-top: 24px; }
.mobile-menu .menu-cta .btn { flex: 1; padding: 14px; font-size: 16px; }

/* ---------- Hero slider ---------- */
.hero { position: relative; overflow: hidden; }
.hero-slides { display: flex; transition: transform .6s ease; }
.hero-slide { min-width: 100%; position: relative; }
.hero-slide img { width: 100%; aspect-ratio: 21/9; object-fit: cover; min-height: 220px; }
.hero-caption {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 24px 6%; background: linear-gradient(90deg, rgba(11,15,31,.88) 0%, rgba(11,15,31,.45) 55%, transparent 100%);
  max-width: 100%;
}
.hero-caption h1, .hero-caption h2 { font-size: clamp(20px, 4vw, 40px); color: #fff; max-width: 560px; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hero-caption h1 span, .hero-caption h2 span { color: var(--gold); }
.hero-caption p { color: #dbe2f2; margin: 10px 0 18px; max-width: 480px; font-size: clamp(13px, 1.6vw, 16px); }
.hero-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.35); cursor: pointer; }
.hero-dots button.active { background: var(--gold); width: 26px; border-radius: 6px; }

/* ---------- Ticker ---------- */
.ticker { background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.ticker-inner { display: flex; align-items: center; gap: 12px; max-width: var(--maxw); margin: 0 auto; padding: 8px 16px; }
.ticker-label { background: var(--red); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 6px; flex-shrink: 0; }
.ticker-text { white-space: nowrap; color: var(--muted); font-size: 13px; animation: ticker 28s linear infinite; }
@keyframes ticker { from { transform: translateX(100%);} to { transform: translateX(-100%);} }

/* ---------- Sections ---------- */
.section { padding: 44px 0; }
.section:nth-of-type(even) { background: var(--bg-2); }
.section-title { text-align: center; margin-bottom: 8px; font-size: clamp(22px, 3vw, 30px); }
.section-title span { color: var(--gold); }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 30px; font-size: 15px; }

/* ---------- Game lobby grid ---------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.game-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.game-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold); }
.game-card img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.game-card .game-info { padding: 10px 12px 14px; }
.game-card h3 { font-size: 14px; color: #fff; margin-bottom: 2px; }
.game-card .provider { font-size: 11px; color: var(--muted); display: block; margin-bottom: 8px; }
.game-card .btn { width: 100%; padding: 8px; font-size: 13px; }

/* ---------- Feature cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.f-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: transform .2s ease, border-color .2s ease;
}
.f-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.f-card .icon {
  width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 14px; background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
}
.f-card h3 { font-size: 17px; margin-bottom: 8px; color: #fff; }
.f-card p { font-size: 14px; color: var(--muted); }

/* ---------- Payment logos ---------- */
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.pay-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 10px; text-align: center; font-weight: 800; font-size: 15px; color: #fff;
}
.pay-item small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); margin-top: 4px; }
.pay-item.bank { border-top: 3px solid var(--blue); }
.pay-item.ewallet { border-top: 3px solid var(--green); }
.pay-item.qris { border-top: 3px solid var(--red); }

/* ---------- Compare table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); -webkit-overflow-scrolling: touch; max-width: 100%; }
table.compare { width: 100%; border-collapse: collapse; background: var(--card); }
@media (max-width: 640px) {
  table.compare { min-width: 520px; }
  table.compare th, table.compare td { padding: 10px 12px; font-size: 13px; }
}
table.compare th, table.compare td { padding: 14px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--bg-3); color: var(--gold); font-size: 14px; }
table.compare tbody tr:hover { background: rgba(244, 197, 66, .05); }
.check { color: var(--green); font-weight: 900; }
.cross { color: var(--red); font-weight: 900; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: step; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 20px; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #ff6b35); color: #fff; font-weight: 900;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(230,57,70,.5);
}
.step h3 { font-size: 16px; margin: 8px 0 6px; color: #fff; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- Promo cards ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.promo-card {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--bg-3), var(--card)); position: relative;
}
.promo-card .promo-badge {
  position: absolute; top: 12px; right: 12px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
}
.promo-card .promo-body { padding: 22px; }
.promo-card h3, .promo-card .promo-h { color: var(--gold); font-size: 18px; margin-bottom: 6px; }
.promo-card .promo-value { font-size: 30px; font-weight: 900; color: #fff; margin-bottom: 8px; }
.promo-card p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.promo-card .btn { width: 100%; }

/* ---------- Article ---------- */
.article { max-width: 860px; margin: 0 auto; }
.article h1 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 14px; color: #fff; }
.article h1 span { color: var(--gold); }
.article h2 { font-size: clamp(19px, 2.4vw, 24px); margin: 34px 0 12px; color: var(--gold); }
.article h2.article-lead { font-size: clamp(24px, 3.4vw, 34px); color: #fff; margin: 0 0 14px; }
.article h3 { font-size: 17px; margin: 22px 0 8px; color: #fff; }
.article p { margin-bottom: 14px; color: #d5dbea; font-size: 15.5px; }
.article ul, .article ol { margin: 0 0 14px 22px; color: #d5dbea; font-size: 15px; }
.article li { margin-bottom: 6px; }
.article img.featured { border-radius: var(--radius); margin: 20px 0; border: 1px solid var(--line); }
.article-meta { color: var(--muted); font-size: 13px; margin-bottom: 18px; display: flex; gap: 16px; flex-wrap: wrap; }
.article-cta {
  background: linear-gradient(135deg, var(--bg-3), var(--card)); border: 1px solid var(--gold);
  border-radius: var(--radius); padding: 28px; text-align: center; margin: 34px 0;
}
.article-cta h3 { color: var(--gold); font-size: 20px; margin-bottom: 8px; }
.article-cta p { color: var(--muted); margin-bottom: 16px; }

/* ---------- FAQ ---------- */
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: #fff; font-weight: 700;
  font-size: 15px; padding: 16px 18px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq-q::after { content: "+"; color: var(--gold); font-size: 22px; flex-shrink: 0; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { display: none; padding: 0 18px 16px; color: var(--muted); font-size: 14px; }
.faq-item.open .faq-a { display: block; }

/* ---------- Tag cloud ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag-cloud a {
  background: var(--bg-3); border: 1px solid var(--line); color: var(--text);
  padding: 7px 16px; border-radius: 999px; font-size: 13px; transition: all .15s ease;
}
.tag-cloud a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.tag-cloud a.hot { border-color: var(--gold); color: var(--gold); }
.tag-cloud a.hot:hover { background: var(--gold); color: #1a1a1a; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 14px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { margin: 0 8px; color: var(--line); }
.breadcrumb .current { color: var(--gold); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2)); border-bottom: 1px solid var(--line);
  padding: 34px 0 28px; text-align: center;
}
.page-hero h1 { font-size: clamp(24px, 3.4vw, 36px); color: #fff; }
.page-hero h1 span { color: var(--gold); }
.page-hero p { color: var(--muted); max-width: 640px; margin: 10px auto 0; font-size: 15px; }

/* ---------- Auth pages ---------- */
.auth-wrap { max-width: 460px; margin: 40px auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); }
.auth-wrap h1 { text-align: center; font-size: 24px; margin-bottom: 6px; }
.auth-wrap h1 span { color: var(--gold); }
.auth-wrap .auth-sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font-size: 15px; outline: none;
}
.form-group input:focus { border-color: var(--gold); }
.auth-wrap .btn { width: 100%; padding: 14px; font-size: 16px; margin-top: 8px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; }

/* ---------- Terms table (promo detail) ---------- */
table.terms { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
table.terms th, table.terms td { padding: 13px 16px; font-size: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.terms th { width: 38%; color: var(--gold); background: var(--bg-3); }

/* ---------- Footer ---------- */
.site-footer { background: #080c1a; border-top: 1px solid var(--line); padding: 44px 0 0; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.footer-col h4, .footer-col .footer-h { color: var(--gold); font-size: 15px; margin-bottom: 14px; font-weight: 800; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--muted); font-size: 13.5px; }
.footer-col a:hover { color: var(--gold); }
.footer-col p { color: var(--muted); font-size: 13.5px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 40px; height: 40px; }
.footer-bottom {
  border-top: 1px solid var(--line); margin-top: 34px; padding: 18px 0 90px;
  text-align: center; color: var(--muted); font-size: 12.5px;
}
.age-badge {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 3px solid var(--red); border-radius: 50%; color: var(--red); font-weight: 900; font-size: 15px;
  margin-right: 10px; vertical-align: middle;
}
.responsible-line { margin-top: 10px; }

/* ---------- Floating bottom CTA (slot machine style) ---------- */
.float-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  background: linear-gradient(180deg, rgba(17,24,49,.92), rgba(11,15,31,.98));
  border-top: 2px solid var(--gold);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  backdrop-filter: blur(10px);
}
.float-cta-inner { max-width: 640px; margin: 0 auto; display: flex; gap: 12px; align-items: center; }
.slot-reel {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 12px;
  background: linear-gradient(135deg, #1c2650, #0d1330); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
}
.slot-reel .reel-symbols {
  display: flex; flex-direction: column; animation: reel 1.6s cubic-bezier(.6,.05,.3,1) infinite;
  font-size: 26px; line-height: 52px; text-align: center;
}
@keyframes reel { 0% { transform: translateY(0);} 100% { transform: translateY(-156px);} }
.float-cta .cta-btns { display: flex; gap: 10px; flex: 1; }
.float-btn {
  flex: 1; position: relative; overflow: hidden; padding: 13px 10px; border-radius: 12px;
  font-weight: 900; font-size: 16px; text-align: center; letter-spacing: 1px;
  text-transform: uppercase;
}
.float-btn.daftar {
  background: linear-gradient(135deg, var(--red), #ff6b35); color: #fff;
  box-shadow: 0 0 18px rgba(230, 57, 70, .55);
  animation: pulse-red 1.8s ease-in-out infinite;
}
.float-btn.masuk {
  background: linear-gradient(135deg, var(--gold), #ffdf7e); color: #1a1a1a;
  box-shadow: 0 0 18px rgba(244, 197, 66, .45);
}
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 12px rgba(230,57,70,.4); }
  50% { box-shadow: 0 0 26px rgba(230,57,70,.85); }
}
.float-btn:hover { color: inherit; transform: scale(1.03); }
/* coin burst particles */
.coin-particle {
  position: fixed; bottom: 60px; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe98a, var(--gold) 55%, var(--gold-dark));
  box-shadow: 0 0 8px rgba(244,197,66,.8); z-index: 960; pointer-events: none;
  animation: coin-fly 1.1s ease-out forwards;
}
@keyframes coin-fly {
  0% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translateY(-140px) scale(.4) rotate(340deg); }
}

/* ---------- Search results ---------- */
.search-results { max-width: 860px; margin: 0 auto; }
.search-hit {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; margin-bottom: 12px;
}
.search-hit:hover { border-color: var(--gold); }
.search-hit h3 { color: var(--gold); font-size: 16px; margin-bottom: 4px; }
.search-hit p { color: var(--muted); font-size: 13.5px; }

/* ---------- Notice bar ---------- */
.notice-18 {
  background: rgba(230, 57, 70, .12); border: 1px solid rgba(230, 57, 70, .5);
  border-radius: 12px; padding: 14px 18px; color: #f2b8bd; font-size: 13.5px;
  max-width: 860px; margin: 24px auto 0; text-align: center;
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .header-search { display: block; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
@media (max-width: 767px) {
  .main-nav { top: 64px; }
  .brand-name { font-size: 19px; }
  .brand img { width: 36px; height: 36px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding: 8px 12px; font-size: 12px; }
  .nav-toggle { width: 38px; height: 38px; }
  .hero-caption { padding: 16px 5%; }
  .section { padding: 34px 0; }
  .float-btn { font-size: 14px; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 16px; }
  .header-actions .btn { padding: 7px 9px; font-size: 11px; }
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
}
@media (max-width: 1023px) {
  .main-nav { display: none; }
}
