/* =========================================================
   THEME: GOLD → RED  |  Cleaned & de-duped where safe
   ========================================================= */
:root{
  --gold-1:#ff3b3b;        /* merah terang (dipakai semua gradient) */
  --gold-2:#b10000;        /* merah gelap */
  --accent-rgb:255,59,59;  /* untuk rgba(...) merah */
  --text:#F5F5F5; --muted:#b7b7b7;
  --header-h:56px; --ticker-h:36px; --nav-h:64px;
}

/* ================== Base ================== */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; background:#0a0a0a; color:var(--text);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,Helvetica,sans-serif;
  line-height:1.55;
  padding-top: calc(var(--header-h) + var(--ticker-h));
  padding-bottom: var(--nav-h);
  overflow-x:hidden;
}
.container{width:min(1200px,92%); margin-inline:auto}
.main > *:first-child{ margin-top:0 !important; }

/* ================== Header (fixed) ================== */
.topbar{
  position:fixed; top:0; left:0; right:0; height:var(--header-h);
  background:linear-gradient(90deg,var(--gold-1),var(--gold-2));
  color:#111; border-bottom:1px solid rgba(0,0,0,.35);
  z-index:10010;
}
.topbar-inner{ height:100%; display:flex; align-items:center; justify-content:space-between; }
.brand{display:flex; align-items:center; gap:10px}
.brand-link{display:inline-flex; align-items:center; text-decoration:none}
.logo{ height:34px; width:auto; display:block; object-fit:contain; filter:drop-shadow(0 0 0 rgba(0,0,0,0)); }
.brand-name{font-weight:800}
.sr-only{ position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,1px,1px); white-space:nowrap; border:0; }

.nav-links{display:flex; gap:22px}
.nav-links a{ color:#111; text-decoration:none; font-weight:700; transition:.2s; }
.nav-links a:hover{color:#fff}

.menu-toggle{
  display:none; background:#111; color:var(--gold-1); border:0; border-radius:10px;
  padding:8px 12px; font-size:18px; font-weight:800;
}

.mobile-menu{
  display:none; position:fixed; left:0; right:0; top:var(--header-h);
  z-index:10008;
  background:linear-gradient(180deg, rgba(0,0,0,.92), rgba(0,0,0,.98)),
             linear-gradient(90deg, #1a1a1a, #0f0f0f);
  border-bottom:1px solid rgba(var(--accent-rgb),.35);
  padding:10px 16px;
}
.mobile-menu a{
  display:block; padding:12px 6px; margin:4px 0;
  color:#ffc2c2; text-decoration:none; font-weight:800; letter-spacing:.3px;
  border-radius:8px;
}
.mobile-menu a:active{background:rgba(var(--accent-rgb),.08)}
.mobile-menu.open{display:block}
body.menu-open .ticker-bar{display:none}

@media (max-width:768px){
  .nav-links{display:none}
  .menu-toggle{display:block}
}
@media (min-width:768px){
  :root{ --header-h:64px; --nav-h:72px }
  .logo{height:40px}
}

/* ================== Marquee (fixed) ================== */
.ticker-bar{
  position:fixed; left:0; right:0; top:var(--header-h);
  height:var(--ticker-h); display:flex; align-items:center;
  background: linear-gradient(180deg, rgba(0,0,0,.75), rgba(0,0,0,.95)),
              linear-gradient(90deg,#1a1a1a,#0f0f0f);
  border-bottom:1px solid rgba(var(--accent-rgb),.25);
  z-index:10005; overflow:hidden;
}
.ticker{flex:1; overflow:hidden}

.ticker-track{
  display:flex; gap:48px; white-space:nowrap; will-change:transform;
  color:#ffc2c2; font-weight:700; pointer-events:none;
  animation: marquee var(--marquee-speed) linear infinite both;
  transform: translateX(100%);
}
@keyframes marquee{
  from { transform: translateX(100%); }
  to   { transform: translateX(-50%); }
}

/* ================== Titles ================== */
.section-title{
  text-align:center; margin:18px 0 16px; letter-spacing:.5px; font-weight:800;
  background:linear-gradient(180deg, rgba(var(--accent-rgb),.18), rgba(var(--accent-rgb),.05)),
             linear-gradient(90deg,#111,#1a1a1a);
  border:1px solid rgba(var(--accent-rgb),.18); padding:16px 10px; border-radius:12px;
}
.g-text{
  background:linear-gradient(90deg,var(--gold-1),var(--gold-2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* ================== Tabel utama ================== */
.table-wrap{
  background:#0e0e0e;
  border:1px solid rgba(var(--accent-rgb),.15);
  border-radius:12px;
  overflow:visible;
  box-shadow:0 0 0 1px rgba(var(--accent-rgb),.05) inset;
}
.table-full{ width:100%; border-collapse:separate; border-spacing:0; table-layout:fixed; }

/* Header sticky */
.table-full thead th{
  position:sticky;
  top: calc(var(--header-h) + var(--ticker-h));
  z-index:5;
  padding:12px 10px; text-align:center; font-weight:800; color:#111;
  background:linear-gradient(90deg,var(--gold-1),var(--gold-2));
  border-bottom:1px solid rgba(0,0,0,.35);
  box-shadow: 0 2px 4px rgba(0,0,0,.35);
}
.table-full thead th + th{ border-left:1px solid rgba(0,0,0,.25) }

.table-full tbody td{
  padding:12px 10px; text-align:center;
  border-bottom:1px solid rgba(255,255,255,.06);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.table-full tbody tr:nth-child(even){ background:#0b0b0b }
.table-full tbody tr:nth-child(odd){  background:#131313 }

/* === PENTING: Hanya 2 kolom aktif (Tanggal & Jam 14:30), 50% : 50% === */
.table-full colgroup col:first-child,
.table-full colgroup col:nth-child(2){ width:50% !important; }
/* Sembunyikan kolom ke-3 jika masih ada sisa di markup lama */
.table-full thead th:nth-child(n+3),
.table-full tbody td:nth-child(n+3){ display:none !important; }

@media (max-width:600px){
  .table-full thead th, .table-full tbody td{ padding:10px; font-size:14px; }
}
@media (max-width:380px){
  .table-full thead th, .table-full tbody td{ padding:8px; font-size:13px; }
}

/* ================== Bank strip ================== */
.bank-strip{
  margin-top:22px; padding:22px;
  background: linear-gradient(180deg, rgba(var(--accent-rgb),.14), rgba(var(--accent-rgb),.05)),
             linear-gradient(90deg,#1a1a1a,#0f0f0f);
  border:1px solid rgba(var(--accent-rgb),.16); border-radius:12px;
}
.bank-title{text-align:center; margin:0 0 16px; font-weight:800}
.bank-list{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:10px 18px; list-style:none; padding:0; margin:0; font-weight:700;
}
.bank-list li::before{content:"• "; color:var(--gold-1)}

/* ================== Bottom nav (fixed) ================== */
.bottom-nav{
  position:fixed; left:0; right:0; bottom:0; height:var(--nav-h);
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.92)),
             linear-gradient(90deg,var(--gold-2),#171717,var(--gold-2));
  border-top:1px solid rgba(var(--accent-rgb),.35);
  display:flex; align-items:center; justify-content:space-around; gap:6px;
  z-index:10000; backdrop-filter:saturate(120%) blur(6px);
}
.bottom-nav a{
  text-decoration:none; color:#ffc2c2; font-weight:800; font-size:12px;
  display:flex; flex-direction:column; align-items:center; gap:4px;
}
.nav-ico{font-size:18px}

/* ================== Footer & spacing ================== */
.site-footer{
  color:#c9c9c9; font-size:12px; text-align:center; padding:12px 0;
  margin-bottom:var(--nav-h);
}
.main{ padding-bottom: calc(var(--nav-h) + 24px) }

/* ================== About / Contact ================== */
.about-box, .contact-box{
  background: linear-gradient(180deg, rgba(var(--accent-rgb),.08), rgba(var(--accent-rgb),.03)),
              linear-gradient(90deg,#111,#1a1a1a);
  border:1px solid rgba(var(--accent-rgb),.15);
  border-radius:12px; padding:24px; margin:20px 0 40px;
  line-height:1.7; font-size:15px;
}
.about-box p{margin-bottom:16px}
.about-list{margin:0 0 16px 20px; padding:0}
.about-list li{margin-bottom:8px; list-style:disc; color:var(--gold-1)}
.contact-list{margin:0 0 20px 20px; padding:0}
.contact-list li{margin-bottom:8px; list-style:none}
.contact-list a{color:#ffc2c2; text-decoration:none}
.contact-list a:hover{text-decoration:underline}
.contact-form{display:grid; gap:16px}
.contact-form .form-group{display:flex; flex-direction:column}
.contact-form label{font-weight:600; margin-bottom:6px; color:var(--gold-1)}
.contact-form input,
.contact-form textarea{
  background:#111; border:1px solid rgba(var(--accent-rgb),.3); border-radius:6px;
  padding:10px; color:#f5f5f5; font-size:14px;
}
.contact-form input:focus,
.contact-form textarea:focus{
  outline:none; border-color:var(--gold-1); box-shadow:0 0 0 2px rgba(var(--accent-rgb),.2);
}
.btn-send{
  background:linear-gradient(90deg, var(--gold-1), var(--gold-2));
  color:#111; font-weight:800; padding:10px 18px; border:none; border-radius:8px; cursor:pointer;
  transition:transform .12s ease, filter .12s ease;
}
.btn-send:hover{ transform:translateY(-1px); filter:brightness(1.05); }

/* ================== Live Draw (board) ================== */
.draw-board{margin:18px 0 26px}
.draw-title{margin:0 0 10px; text-align:center; letter-spacing:.6px}

.board{
  border-radius:12px; padding:14px 12px 16px;
  background:linear-gradient(180deg, rgba(var(--accent-rgb),.08), rgba(var(--accent-rgb),.03)),
             linear-gradient(90deg,#101010,#161616);
  border:1px solid rgba(var(--accent-rgb),.18);
  box-shadow:0 6px 18px rgba(0,0,0,.25), inset 0 0 0 1px rgba(var(--accent-rgb),.06);
}
.board-top{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.badge{
  display:flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:8px;
  background:#0e0e0e; border:1px solid rgba(var(--accent-rgb),.22);
}
.badge-label{font-size:12px; color:#ffc2c2; font-weight:800; letter-spacing:.3px}
.badge-value{font-size:12px; color:#f5f5f5}

/* Digit default (jika tidak dioverride di halaman khusus) ikut theme merah */
.digits{
  display:grid; justify-content:center;
  gap:6px; padding:10px; border-radius:10px;
  background:linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.9));
  border:1px solid rgba(var(--accent-rgb),.12);
}
.digits-tight{grid-template-columns:repeat(6, 42px)}
.digit{
  display:flex; align-items:center; justify-content:center;
  height:52px; font-size:30px; font-weight:900; color:#111;
  background:linear-gradient(90deg, var(--gold-1), var(--gold-2));
  border:1px solid var(--gold-2); border-radius:6px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.25),
              inset 0 -1px 2px rgba(0,0,0,.25),
              0 1px 2px rgba(0,0,0,.35);
  position:relative;
}
@media (max-width:520px){
  .digits-tight{grid-template-columns:repeat(6, 34px); gap:4px}
  .digit{height:44px; font-size:18px}
  .badge{padding:5px 8px}
  .badge-label, .badge-value{font-size:11px}
}

/* ================== LAST RESULT ================== */
.last-wrap{ display:grid; grid-template-columns:1fr; gap:16px; margin-top:12px; }
@media (min-width:900px){ .last-wrap{grid-template-columns:1fr 1fr} }

.last-card{
  background:linear-gradient(180deg, rgba(var(--accent-rgb),.06), rgba(var(--accent-rgb),.02)), #0f0f0f;
  border:1px solid rgba(var(--accent-rgb),.24);
  border-radius:14px; padding:12px 14px;
  box-shadow:0 0 0 1px rgba(var(--accent-rgb),.05) inset;
}
.last-head{
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom:10px; font-weight:800; color:#ffc2c2;
}
.last-head .lbl{letter-spacing:.4px}
.last-head .date{
  font-size:12px; opacity:.95; background:#121212;
  border:1px solid rgba(var(--accent-rgb),.18); border-radius:8px; padding:4px 8px;
}
.last-card .digits{ display:flex; gap:8px; flex-wrap:nowrap; }
.last-card .digits .d{
  display:inline-flex; align-items:center; justify-content:center;
  width:56px; height:56px; border-radius:10px;
  background:linear-gradient(180deg,var(--gold-1),var(--gold-2));
  color:#111; font-weight:900; font-size:26px;
  box-shadow:0 1px 0 rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.25) inset;
}
@media (max-width:540px){
  .last-card .digits .d{width:42px; height:42px; font-size:20px}
}

/* ===== small utils ===== */
.last-footer{ text-align:left; margin-top:10px; }
.last-footer .all-result-link{ color:#fff; font-weight:700; text-decoration:none; font-size:14px; transition:color .3s; }
.last-footer .all-result-link:hover{ color:var(--gold-1); text-decoration:underline; }

.banner-slot{ display:flex; justify-content:center; align-items:center; margin:15px 0; }
.banner-slot .banner-img{ max-width:100%; height:auto; border-radius:6px; box-shadow:0 2px 6px rgba(0,0,0,.4); }
