:root{
  --gold-1:#FFD700; --gold-2:#C99700;
  --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}

/* Hapus margin atas elemen pertama di <main> agar header tabel nempel tepat di bawah marquee */
.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:#FFD700; 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(255,215,0,.35);
  padding:10px 16px;
}
.mobile-menu a{
  display:block; padding:12px 6px; margin:4px 0;
  color:#ffe08a; text-decoration:none; font-weight:800; letter-spacing:.3px;
  border-radius:8px;
}
.mobile-menu a:active{background:rgba(255,215,0,.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(255,215,0,.25);
  z-index:10005; overflow:hidden;
}
.ticker{flex:1; overflow:hidden}

/* >>> ini yang diperbaiki <<< */
.ticker-track{
  display:flex; gap:48px; white-space:nowrap; will-change:transform;
  color:#ffe08a; font-weight:700; pointer-events:none;

  /* pisahkan properti animasi biar gampang override speed */
  animation-name: marquee;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: var(--marquee-speed);
  animation-fill-mode: both;            /* frame pertama nempel */

  /* mulai dari luar kanan dulu */
  transform: translateX(100%);
}
/* >>> keyframes diperbaiki supaya start dari kanan <<< */
@keyframes marquee{
  from { transform: translateX(100%); }  /* mulai di luar kanan */
  to   { transform: translateX(-50%); }  /* geser melewati duplikat konten */
}

/* ================== Titles ================== */
.section-title{
  text-align:center; margin:18px 0 16px; letter-spacing:.5px; font-weight:800;
  background:linear-gradient(180deg, rgba(255,215,0,.18), rgba(201,151,0,.05)),
             linear-gradient(90deg,#111,#1a1a1a);
  border:1px solid rgba(255,215,0,.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 (single table, thead sticky) ====== */
.table-wrap{
  background:#0e0e0e;
  border:1px solid rgba(255,215,0,.15);
  border-radius:12px;
  overflow:visible;                /* biar sticky bekerja relatif ke page */
  box-shadow:0 0 0 1px rgba(255,215,0,.05) inset;
}

.table-full{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  table-layout:fixed;
}

/* header menempel tepat di bawah header+marquee */
.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 }

/* responsif kecil */
@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(255,215,0,.14), rgba(201,151,0,.05)),
             linear-gradient(90deg,#1a1a1a,#0f0f0f);
  border:1px solid rgba(255,215,0,.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,#C99700,#171717,#C99700);
  border-top:1px solid rgba(255,215,0,.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:#ffe08a; 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 ================== */
.about-box{
  background: linear-gradient(180deg, rgba(255,215,0,.08), rgba(201,151,0,.03)),
              linear-gradient(90deg,#111,#1a1a1a);
  border:1px solid rgba(255,215,0,.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:#ffe08a}

/* ================== Contact ================== */
.contact-box{
  background: linear-gradient(180deg, rgba(255,215,0,.08), rgba(201,151,0,.03)),
              linear-gradient(90deg,#111,#1a1a1a);
  border:1px solid rgba(255,215,0,.15);
  border-radius:12px;
  padding:24px; margin:20px 0 40px; font-size:15px; line-height:1.7;
}
.contact-list{margin:0 0 20px 20px; padding:0}
.contact-list li{margin-bottom:8px; list-style:none}
.contact-list a{color:#ffe08a; 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:#ffe08a}
.contact-form input,
.contact-form textarea{
  background:#111; border:1px solid rgba(255,215,0,.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(255,215,0,.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:background .3s ease;
}
.btn-send:hover{background:linear-gradient(90deg, var(--gold-2), var(--gold-1))}

/* ================== 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(255,215,0,.08), rgba(201,151,0,.03)),
             linear-gradient(90deg,#101010,#161616);
  border:1px solid rgba(255,215,0,.18);
  box-shadow:0 6px 18px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,215,0,.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(255,215,0,.22);
}
.badge-label{font-size:12px; color:#ffe08a; font-weight:800; letter-spacing:.3px}
.badge-value{font-size:12px; color:#f5f5f5}

.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(255,215,0,.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 #c99700; border-radius:6px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.35),
              inset 0 -1px 2px rgba(0,0,0,.25),
              0 1px 2px rgba(0,0,0,.35);
}

@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(255,215,0,.06), rgba(201,151,0,.02)), #0f0f0f;
  border:1px solid rgba(255,215,0,.24);
  border-radius:14px; padding:12px 14px;
  box-shadow:0 0 0 1px rgba(255,215,0,.05) inset;
}
.last-head{
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom:10px; font-weight:800; color:#ffe08a;
}
.last-head .lbl{letter-spacing:.4px}
.last-head .date{
  font-size:12px; opacity:.95; background:#121212;
  border:1px solid rgba(255,215,0,.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,#ffd700,#c99700);
  color:#111; font-weight:900; font-size:26px;
  box-shadow:0 1px 0 rgba(0,0,0,.4), 0 1px 0 rgba(255,215,0,.35) inset;
}
@media (max-width:540px){
  .last-card .digits .d{width:42px; height:42px; font-size:20px}
}

/* Efek detak untuk digit yang akan segera freeze */
.digit.tick {
  animation: ld-pulse .6s ease-in-out infinite;
  will-change: transform;
}
@keyframes ld-pulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.08); }
}

/* Pastikan digit bisa punya shadow glow */
.digit {
  position: relative;
  will-change: box-shadow, transform, filter;
}

/* Pulse neon sekali (saat berhenti) */
.neon-once {
  animation: neonGoldPulse 0.8s ease-out 1 forwards; /* lebih cepat, 800ms */
}

@keyframes neonGoldPulse {
  0% {
    box-shadow: 0 0 0 rgba(255,215,0,0);
    filter: drop-shadow(0 0 0 rgba(255,215,0,0));
  }
  25% {
    box-shadow:
      0 0 14px rgba(255,215,0,.85),
      0 0 24px rgba(255,215,0,.7),
      0 0 34px rgba(201,151,0,.65),
      inset 0 0 8px rgba(255,215,0,.55);
    filter: drop-shadow(0 0 14px rgba(255,215,0,.55));
  }
  60% {
    box-shadow:
      0 0 10px rgba(255,215,0,.5),
      0 0 18px rgba(255,215,0,.4),
      0 0 24px rgba(201,151,0,.35),
      inset 0 0 6px rgba(255,215,0,.3);
    filter: drop-shadow(0 0 10px rgba(255,215,0,.3));
  }
  100% {
    box-shadow:
      0 0 6px rgba(255,215,0,.3),
      0 0 12px rgba(201,151,0,.22),
      inset 0 0 4px rgba(255,215,0,.2);
    filter: drop-shadow(0 0 6px rgba(255,215,0,.22));
  }
}

/* Soft glow permanen setelah pulse */
.neon-soft {
  animation: neonSoftGlow 1.2s ease-in-out infinite; /* glow lebih cepat (1.2s loop) */
}

@keyframes neonSoftGlow {
  0% {
    box-shadow:
      0 0 6px rgba(255,215,0,.3),
      0 0 12px rgba(201,151,0,.22),
      inset 0 0 4px rgba(255,215,0,.2);
    filter: drop-shadow(0 0 6px rgba(255,215,0,.22));
  }
  50% {
    box-shadow:
      0 0 12px rgba(255,215,0,.55),
      0 0 20px rgba(201,151,0,.4),
      inset 0 0 6px rgba(255,215,0,.35);
    filter: drop-shadow(0 0 12px rgba(255,215,0,.4));
  }
  100% {
    box-shadow:
      0 0 6px rgba(255,215,0,.3),
      0 0 12px rgba(201,151,0,.22),
      inset 0 0 4px rgba(255,215,0,.2);
    filter: drop-shadow(0 0 6px rgba(255,215,0,.22));
  }
}
/* khusus link all result */
.last-footer {
  text-align: left;
  margin-top: 10px;
}

.last-footer .all-result-link {
  color: #fff;              /* putih biar jelas */
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.last-footer .all-result-link:hover {
  color: #ffd700;           /* kuning emas pas hover */
  text-decoration: underline;
}

.banner-slot {
  display: flex;
  justify-content: center;   /* biar tengah */
  align-items: center;
  margin: 15px 0;
}

.banner-slot .banner-img {
  max-width: 100%;
  height: auto;             /* fleksibel */
  border-radius: 6px;       /* opsional, biar ada sudut lembut */
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}



