:root{
  --bg:#090b0f;
  --bg-soft:#0d1016;
  --surface:#12161e;
  --surface-2:#171b23;
  --border:#292e39;
  --border-soft:#20252f;
  --gold:#e8c65f;
  --gold-soft:#f1d97f;
  --text:#f5f6f8;
  --muted:#9aa1ae;
  --green:#54d98b;
  --max:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--bg)}
body{margin:0;background:radial-gradient(circle at 50% -15%,#191810 0,#090b0f 38%);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;line-height:1.55;min-width:320px}
a{color:inherit;text-decoration:none}
button{font:inherit}

.brand-logo {
  display: block;
  width: 220px;
  height: auto;
  max-width: 100%;
}
@media (max-width: 720px) {
  .brand-logo {
    width: 150px;
  }
}
.site-header{position:sticky;top:0;z-index:20;background:rgba(9,11,15,.94);border-bottom:1px solid rgba(255,255,255,.07);backdrop-filter:blur(16px)}
.header-inner{width:min(var(--max),100%);min-height:76px;margin:auto;padding:0 22px;display:flex;align-items:center;gap:30px}
.brand{display:flex;align-items:center;gap:12px;font-weight:850;letter-spacing:.2px}
.brand-mark{width:44px;height:44px;border:1px solid #6d5c2d;border-radius:13px;display:grid;place-items:center;color:var(--gold-soft);font-size:20px;font-weight:900;background:linear-gradient(145deg,#191a18,#0e1014);box-shadow:inset 0 0 0 1px rgba(232,198,95,.05)}
.brand-text{font-size:17px;white-space:nowrap}.brand-text span{color:var(--gold)}
.desktop-nav{margin-left:auto;display:flex;align-items:center;gap:30px;color:#a5abb6;font-size:13px;font-weight:600}
.desktop-nav a{transition:color .2s ease}.desktop-nav a:hover,.desktop-nav a.active{color:#fff}.mobile-nav{display:none}
.header-cta{background:var(--gold);color:#101116;font-weight:850;padding:11px 17px;border-radius:10px;box-shadow:0 8px 24px rgba(232,198,95,.09);white-space:nowrap}

.hero,.results-section,.markets-section,.info-card,.status-card{width:min(var(--max),100%);margin-left:auto;margin-right:auto}
.hero{padding:86px 22px 46px}.hero-inner{max-width:900px}
.eyebrow{color:var(--gold);font-size:12px;font-weight:850;letter-spacing:1.8px;margin-bottom:11px}
h1{font-size:clamp(44px,6vw,72px);line-height:1.04;letter-spacing:-3px;margin:0 0 21px;max-width:900px}
h2{font-size:clamp(30px,4vw,44px);line-height:1.08;letter-spacing:-1.5px;margin:0 0 18px}
.hero-copy{max-width:710px;color:var(--muted);font-size:17px;margin:0 0 29px}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:10px;padding:11px 17px;border:1px solid var(--border);font-size:14px;font-weight:750;cursor:pointer;transition:transform .15s ease,border-color .15s ease,background .15s ease;appearance:none}
.button:hover{transform:translateY(-1px)}.button:disabled{opacity:.65;cursor:wait;transform:none}
.button-primary{background:var(--gold);border-color:var(--gold);color:#101116}.button-secondary{background:#12151c;color:#e8eaf0}

.status-card{margin-top:7px;padding:31px 25px;border:1px solid #51472d;border-radius:18px;background:linear-gradient(120deg,rgba(35,32,23,.95),rgba(15,18,23,.98));box-shadow:0 20px 55px rgba(0,0,0,.14)}
.status-label{display:flex;align-items:center;gap:9px;color:var(--green);font-size:12px;font-weight:850;letter-spacing:.4px}.status-dot{width:9px;height:9px;border-radius:50%;background:var(--green);box-shadow:0 0 0 6px rgba(84,217,139,.11)}
.status-date{font-size:27px;font-weight:850;margin-top:17px}.status-updated{font-size:12px;color:var(--muted);margin-top:4px}

.results-section{padding:91px 22px 48px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px}.refresh-btn{white-space:nowrap}.result-count{color:var(--muted);font-size:13px;margin:0 0 17px}
.result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.result-card{min-width:0;padding:20px 18px 18px;border:1px solid var(--border);border-radius:16px;background:linear-gradient(150deg,#171b24,#101319);box-shadow:0 8px 24px rgba(0,0,0,.08)}
.card-top{display:flex;justify-content:space-between;gap:12px}.card-title-wrap{min-width:0}.market-name{font-size:16px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.market-slug{font-size:11px;color:#858d9b;margin-top:2px}.market-date{font-size:11px;color:#858d9b;white-space:nowrap}
.numbers{display:flex;justify-content:center;gap:7px;margin:27px 0 18px;flex-wrap:wrap}.number-ball{width:35px;height:35px;border:1px solid #66572f;border-radius:50%;display:grid;place-items:center;color:var(--gold-soft);font-size:15px;font-weight:850;background:#0c0f14;box-shadow:inset 0 0 10px rgba(232,198,95,.025)}
.empty-result{color:#858d9b;font-size:12px}.card-note{text-align:center;color:#858d9b;font-size:10px}
.error{grid-column:1/-1;padding:20px;border:1px solid #593838;border-radius:14px;color:#ffb1b1;background:#1a1212;font-size:13px}.error strong{color:#fff0f0}

.markets-section{padding:39px 22px 95px}.market-list{display:flex;flex-wrap:wrap;gap:8px}.market-pill{border:1px solid var(--border);background:#11141b;color:#9ea4b2;border-radius:999px;padding:9px 13px;font-size:12px;transition:border-color .2s ease,color .2s ease,background .2s ease}.market-pill:hover{border-color:#61562f;color:#eee;background:#17181a}
.info-card{margin-bottom:78px;padding:37px 28px;border:1px solid var(--border);border-radius:18px;background:#12151d}.info-card p{max-width:850px;color:var(--muted);font-size:16px;margin:0}
.site-footer{border-top:1px solid #1d2028;max-width:none;padding:31px max(22px,calc((100vw - var(--max))/2 + 22px));display:flex;justify-content:space-between;gap:30px;color:#8e95a4;font-size:12px}.footer-brand{display:flex;flex-direction:column;gap:2px}.footer-brand strong{color:#e7e9ee}

.mobile-menu-toggle{display:none}

@media(max-width:900px){.result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .header-inner{min-height:64px;padding:0 14px;gap:10px;position:relative}.brand{gap:9px}.brand-mark{width:39px;height:39px;border-radius:11px;font-size:18px}.brand-text{font-size:15px}.desktop-nav{display:none}.header-cta{margin-left:auto;padding:10px 14px;font-size:13px}.mobile-menu-toggle{display:flex;width:40px;height:40px;flex:0 0 40px;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:0;border:1px solid var(--border);border-radius:10px;background:#11141b;color:#fff;cursor:pointer}.mobile-menu-toggle span{display:block;width:18px;height:2px;border-radius:2px;background:#e8eaf0;transition:transform .2s ease,opacity .2s ease}.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}.mobile-nav{display:flex;position:absolute;left:0;right:0;top:100%;flex-direction:column;gap:4px;padding:10px 14px 13px;border-top:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.08);background:rgba(9,11,15,.98);backdrop-filter:blur(16px);box-shadow:0 14px 28px rgba(0,0,0,.25);opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .18s ease,transform .18s ease,visibility .18s ease}.mobile-nav.is-open{opacity:1;visibility:visible;transform:translateY(0)}.mobile-nav a{width:100%;padding:10px 12px;border:1px solid transparent;border-radius:9px;color:#9da4b1;font-size:13px;font-weight:650}.mobile-nav a.active,.mobile-nav a:hover{color:#fff;border-color:#51472d;background:#151713}
  .hero{padding:61px 20px 30px}.hero-inner{max-width:none}h1{font-size:42px;letter-spacing:-2px;line-height:1.05}.desktop-only{display:none}.hero-copy{font-size:16px;line-height:1.6}.hero-actions{gap:9px}.button{min-height:43px;padding:10px 15px}
  .status-card{margin:10px 14px 0;width:auto;padding:27px 21px;border-radius:17px}.status-date{font-size:25px}
  .results-section{padding:78px 14px 39px}.section-heading{display:block}.section-heading .refresh-btn{margin:2px 0 14px}.result-grid{grid-template-columns:1fr;gap:13px}.result-card{padding:21px 17px}.market-name{font-size:17px}.numbers{margin:28px 0 20px;gap:8px}.number-ball{width:38px;height:38px;font-size:16px}
  .markets-section{padding:38px 20px 77px}.market-list{gap:8px}.market-pill{font-size:12px;padding:9px 12px}
  .info-card{width:auto;margin:0 14px 57px;padding:33px 22px}.info-card p{font-size:15px}.site-footer{padding:29px 20px 55px;display:block}.site-footer>span{display:block;margin-top:24px}
}

/* Result detail pages */
.detail-hero,.detail-card,.detail-info,.related-section{width:min(var(--max),100%);margin-left:auto;margin-right:auto}
.detail-hero{padding:86px 22px 34px}.detail-hero h1{max-width:850px}.detail-copy{max-width:760px;color:var(--muted);font-size:17px;margin:0}
.detail-card{margin-top:10px;padding:30px 25px 28px;border:1px solid #51472d;border-radius:18px;background:linear-gradient(140deg,#171713,#101319)}
.detail-market-name{font-size:20px}.detail-numbers{margin:40px 0 22px;gap:10px}.detail-numbers .number-ball{width:50px;height:50px;font-size:20px}.detail-status{text-align:center;color:var(--muted);font-size:12px}
.detail-info{margin-top:70px;padding:34px 26px;border:1px solid var(--border);border-radius:18px;background:#12151d}.detail-info p{max-width:820px;color:var(--muted);font-size:16px;margin:0}
.related-section{padding:70px 22px 90px}
@media(max-width:760px){.detail-hero{padding:60px 20px 28px}.detail-hero h1{font-size:40px}.detail-copy{font-size:16px}.detail-card{width:auto;margin:10px 14px 0;padding:26px 20px}.detail-market-name{font-size:18px}.detail-numbers{margin:34px 0 20px}.detail-numbers .number-ball{width:43px;height:43px;font-size:17px}.detail-info{width:auto;margin:55px 14px 0;padding:31px 21px}.detail-info p{font-size:15px}.related-section{padding:55px 20px 70px}}

/* v4.4 result detail enhancements */
.breadcrumb{display:flex;align-items:center;gap:8px;margin:0 0 24px;color:var(--muted);font-size:12px;flex-wrap:wrap}.breadcrumb a{color:#b9aa72;text-decoration:none}.breadcrumb a:hover{text-decoration:underline}.detail-actions{display:flex;justify-content:center;margin-top:2px}.detail-actions .refresh-btn{margin:0}.refresh-btn:disabled{opacity:.55;cursor:wait}.detail-status{min-height:18px}
@media(max-width:760px){.breadcrumb{margin-bottom:20px;font-size:11px}.detail-actions{margin-top:0}.detail-actions .refresh-btn{width:100%;max-width:180px}}


/* v4.5 pasaran hub */
.hub-hero,.hub-section{width:min(var(--max),100%);margin-left:auto;margin-right:auto}
.hub-hero{padding:86px 22px 38px}
.hub-hero h1{max-width:850px}
.hub-copy{max-width:760px;color:var(--muted);font-size:17px;line-height:1.65;margin:0}
.hub-section{padding:30px 22px 72px}
.pasaran-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:28px}
.pasaran-card{display:flex;align-items:center;gap:13px;min-height:76px;padding:15px 16px;border:1px solid var(--border);border-radius:15px;background:#12151d;color:#e9ebef;text-decoration:none;transition:transform .18s ease,border-color .18s ease,background .18s ease}
.pasaran-card:hover{transform:translateY(-2px);border-color:#51472d;background:#161816}
.pasaran-card-index{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border:1px solid #665b3a;border-radius:11px;color:#cdbb7b;font-size:11px;font-weight:750}
.pasaran-card-content{display:flex;flex-direction:column;gap:4px;min-width:0}
.pasaran-card-content strong{font-size:14px;line-height:1.3}
.pasaran-card-content small{color:#777f8e;font-size:11px}
.pasaran-card-arrow{margin-left:auto;color:#cdbb7b;font-size:18px}
.hub-info{margin-bottom:70px}
@media(max-width:900px){.pasaran-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .hub-hero{padding:60px 20px 28px}.hub-hero h1{font-size:40px}.hub-copy{font-size:16px}
  .hub-section{padding:26px 14px 58px}.hub-section .section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:14px}.hub-section .section-heading .button{white-space:nowrap}
  .pasaran-grid{grid-template-columns:1fr;gap:10px;margin-top:22px}.pasaran-card{min-height:68px;padding:13px 14px}
  .hub-info{margin:0 14px 55px}
}


/* Content pages */
.content-page{width:min(var(--max),100%);margin:0 auto;padding:78px 22px 100px}
.content-inner{max-width:900px}
.content-page h1{font-size:clamp(40px,6vw,64px);letter-spacing:-2.5px}
.content-page .lead{max-width:760px;color:var(--muted);font-size:18px;margin:0 0 34px}
.content-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0 0 14px}
.content-card{padding:25px;border:1px solid var(--border);border-radius:16px;background:linear-gradient(150deg,#171b24,#101319);margin-bottom:14px}
.content-card h2{font-size:24px;letter-spacing:-.7px;margin:0 0 10px}
.content-card p{color:var(--muted);font-size:14px;margin:0 0 16px}
.footer-links{display:flex;gap:16px;justify-content:center;margin:0 0 10px;color:#a5abb6;font-size:12px}
.footer-links a:hover{color:#fff}

@media (max-width: 767px){
  .content-page{padding:55px 18px 75px}
  .content-page .lead{font-size:16px}
  .content-grid{grid-template-columns:1fr}
  .footer-links{gap:12px;flex-wrap:wrap}
}

/* SEO content sections */
.content-section,.faq-section{width:min(var(--max),100%);margin:34px auto 0;padding-left:22px;padding-right:22px}
.content-section p,.section-intro{max-width:900px;line-height:1.8}
.section-footer{margin-top:22px;display:flex;justify-content:flex-start}
.faq-list{display:grid;gap:12px;margin-top:20px}
.faq-item{border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.025);overflow:hidden}
.faq-item summary{cursor:pointer;list-style:none;padding:18px 20px;font-weight:700}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:'+';float:right;font-size:20px;opacity:.7}
.faq-item[open] summary::after{content:'−'}
.faq-answer{padding:0 20px 18px}
.faq-answer p{margin:0;color:var(--muted);line-height:1.75}
@media(max-width:760px){
  .content-section,.faq-section{margin-top:24px;padding-left:20px;padding-right:20px}
  .section-footer{width:100%}
  .section-footer .button{width:100%;text-align:center}
}


/* Accessibility & rendering hardening */
:focus-visible{
  outline:2px solid var(--gold-soft);
  outline-offset:3px;
}
img{
  max-width:100%;
}
.result-card,
.pasaran-card,
.content-card,
.info-card,
.detail-card,
.detail-info{
  overflow-wrap:anywhere;
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,
  *::before,
  *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
}
/* =========================================================
   PREDICTION PAGES
========================================================= */

.prediction-main{
  padding-top:18px;
}

.prediction-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:28px;
}

.prediction-card{
  min-width:0;
  padding:24px 20px;
  border:1px solid var(--border);
  border-radius:16px;
  background:linear-gradient(150deg,#171b24,#101319);
  box-shadow:0 8px 24px rgba(0,0,0,.08);
}

.prediction-card h3{
  margin:0 0 18px;
  font-size:18px;
  line-height:1.3;
}

.prediction-card-wide{
  grid-column:1/-1;
}


/* =========================================================
   PREDICTION ITEMS
========================================================= */

.prediction-item{
  padding:16px 0;
  border-bottom:1px solid var(--border-soft);
}

.prediction-item:first-child{
  padding-top:0;
}

.prediction-item:last-child{
  padding-bottom:0;
  border-bottom:0;
}

.prediction-label{
  margin-bottom:7px;
  color:var(--muted);
  font-size:11px;
  font-weight:750;
  letter-spacing:.5px;
  line-height:1.3;
  text-transform:uppercase;
}

.prediction-value{
  color:var(--gold-soft);
  font-size:27px;
  line-height:1.2;
  font-weight:850;
  letter-spacing:.5px;
  word-break:break-word;
}

.prediction-value-small{
  font-size:20px;
  line-height:1.5;
}

.prediction-value-highlight{
  font-size:30px;
  letter-spacing:1px;
}


/* =========================================================
   RESULT SOURCE
========================================================= */

.prediction-source-card{
  position:relative;
}

.prediction-source-card .market-slug{
  color:var(--gold);
}


/* =========================================================
   2D BOLAK-BALIK
========================================================= */

.prediction-card-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.prediction-card-heading h3{
  margin:0;
}

.prediction-subtitle{
  margin-top:5px;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}

.prediction-two-d{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:8px 0 18px;
}

.prediction-two-d-item{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:52px;
}

.prediction-two-d-number{
  display:inline-grid;
  place-items:center;
  min-width:58px;
  height:44px;
  padding:0 12px;
  border:1px solid #51472d;
  border-radius:12px;
  background:#171713;
  color:var(--gold-soft);
  font-size:17px;
  font-weight:850;
  letter-spacing:.5px;
}

.prediction-two-d-reverse{
  color:#d8dbe2;
  border-color:var(--border);
  background:#12151d;
}

.prediction-two-d-separator{
  color:#777f8e;
  font-size:12px;
  font-weight:700;
}

.prediction-two-d + .prediction-note{
  margin-top:14px;
}


/* =========================================================
   DISCLAIMER
========================================================= */

.prediction-disclaimer{
  margin-top:28px;
  padding:18px 20px;
  border:1px solid #66552a;
  border-radius:14px;
  background:rgba(232,198,95,.07);
  color:#d8dbe2;
  font-size:13px;
  line-height:1.7;
}

.prediction-disclaimer strong{
  color:var(--gold-soft);
}


/* =========================================================
   ABOUT / EXPLANATION
========================================================= */

.prediction-about{
  margin-top:70px;
}

.prediction-about p{
  max-width:820px;
}

.prediction-explain{
  padding-top:16px;
}

.prediction-explain .prediction-card{
  height:100%;
}

.prediction-explain .prediction-item:last-child{
  margin-bottom:0;
}


/* =========================================================
   ARCHIVE
========================================================= */

.prediction-archive-section{
  padding-top:18px;
}

.prediction-archive{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:22px;
}

.prediction-archive-item{
  position:relative;
  display:block;
  padding:15px 16px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#12151d;
  text-decoration:none;
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.prediction-archive-item:hover{
  transform:translateY(-2px);
  border-color:#51472d;
  background:#161816;
}

.prediction-archive-item span{
  display:block;
  margin-bottom:4px;
  color:#777f8e;
  font-size:11px;
}

.prediction-archive-item strong{
  display:block;
  color:#e9ebef;
  font-size:13px;
  line-height:1.4;
}

.prediction-archive-item small{
  display:block;
  margin-top:8px;
  color:#777f8e;
  font-size:10px;
}

.prediction-archive-item:hover small{
  color:#cdbb7b;
}


/* =========================================================
   NAVIGATION
========================================================= */

.prediction-nav{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:20px;
}

.prediction-nav .button{
  width:100%;
  text-align:center;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.prediction-empty{
  margin-top:28px;
  padding:22px;
  border:1px solid var(--border);
  border-radius:15px;
  background:#12151d;
  color:var(--muted);
}


/* =========================================================
   FAQ
========================================================= */

.prediction-faq{
  margin-top:0;
  padding:0 22px 90px;
}

.prediction-faq h2{
  margin-top:8px;
}

.prediction-faq .faq-list{
  max-width:100%;
  margin-top:20px;
}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:900px){

  .prediction-two-d{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
  }

  .prediction-two-d-item{
    justify-content:center;
  }

}


@media(max-width:760px){

  .prediction-main{
    padding-top:6px;
  }

  .prediction-grid{
    grid-template-columns:1fr;
    gap:12px;
    margin-top:22px;
  }

  .prediction-card{
    padding:21px 17px;
  }

  .prediction-card-wide{
    grid-column:auto;
  }

  .prediction-value{
    font-size:24px;
  }

  .prediction-value-highlight{
    font-size:27px;
  }

  .prediction-value-small{
    font-size:18px;
  }

  .prediction-archive{
    grid-template-columns:1fr;
  }

  .prediction-nav{
    grid-template-columns:1fr;
  }

  .prediction-card-heading{
    display:block;
  }

  .prediction-faq{
    padding:0 20px 70px;
  }

  .prediction-two-d{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }

  .prediction-two-d-item{
    min-height:52px;
  }

  .prediction-two-d-number{
    min-width:34px;
    height:34px;
    padding:0 9px;
    font-size:13px;
  }

}


@media(max-width:420px){

  .prediction-two-d{
    grid-template-columns:1fr;
  }

  .prediction-two-d-item{
    justify-content:flex-start;
    padding-left:12px;
  }

}