

:root {
  /* Primary - Navy Blue */
  --navy: #008bdb;
  --navy-dark: #1e2d5a;
  --navy-light: #3b5998;
  
  /* Background */
  --bg: #47c0f8;
  --bg-soft: #f1f5f9;
  --surface: #ffffff;
  
  /* Border */
  --line: #000000;
  --line-soft: #090d12;
  
  /* Teks */
  --text: #040506;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* Status Colors - Pastel */
  --pink-bg: #fce7f3;
  --pink-text: #be185d;
  --pink-border: #fbcfe8;
  
  --green-bg: #dcfce7;
  --green-text: #15803d;
  --green-border: #bbf7d0;
  
  --blue-bg: #dbeafe;
  --blue-text: #1d4ed8;
  --blue-border: #bfdbfe;
  
  --gold: #d97706;
  --gold-bg: #fef3c7;
  --gold-text: #92400e;
  --gold-border: #fde68a;
  
  --purple: #7c3aed;
  --purple-bg: #ede9fe;
  --purple-text: #5b21b6;
  --purple-border: #ddd6fe;
  
  --cyan: #0891b2;
  --cyan-bg: #cffafe;
  --cyan-text: #0e7490;
  --cyan-border: #a5f3fc;
  
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap { width: min(1200px, calc(100% - 40px)); margin: auto; }

/* ===== TICKER ===== */
.ticker {
  height: 32px;
  overflow: hidden;
  background: rgb(137, 233, 252);
  color: #000000;
  font-size: 10px;
  letter-spacing: 1px;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.ticker-track { min-width: max-content; animation: ticker 40s linear infinite; }
@keyframes ticker { to { transform: translateX(-45%); } }

/* ===== HEADER ===== */
.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand { display: inline-flex; gap: 10px; align-items: center; flex-shrink: 0; }

.brand-mark-logo {
  height: 40px; width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.brand-mark-logo:hover { transform: scale(1.03); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav .active { color: var(--navy); font-weight: 600; }
.main-nav .active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 14px; }

.live-pill {
  color: black;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background: var(--green-bg);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--green-border);
}
.live-pill i, .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-text);
  display: inline-block;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== BUTTONS ===== */
.button {
  min-height: 40px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.button:hover { transform: translateY(-1px); }

.button-gold {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.2);
}
.button-gold:hover {
  background: var(--navy-dark);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.button-outline {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}
.button-outline:hover {
  background: var(--bg-soft);
  border-color: var(--navy);
  color: var(--navy);
}

.button.small { min-height: 36px; padding: 0 16px; font-size: 12px; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
}


/* ===== FIX BANNER KOBE4D 1920 x 600 ===== */

.hero-slider {
  position: relative;
  width: 100%;
  min-height: 0;
  height: auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  margin-top: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.slider-wrapper {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 600;
  max-height: none;
  overflow: hidden;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.slider-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--surface);
}

.slide-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

/* Panah slider tetap berada di dalam banner */
.slider-arrow {
  top: 50%;
  z-index: 10;
}

.slider-prev {
  left: 12px;
}

.slider-next {
  right: 12px;
}

/* Indikator tidak menutupi bagian utama banner */
.slider-dots {
  bottom: 12px;
}

/* Tampilan responsif */
@media (max-width: 900px) {
  .slider-wrapper {
    aspect-ratio: 1920 / 600;
    max-height: none;
  }

  .slider-slide {
    min-height: 0;
  }
}

@media (max-width: 650px) {
  .slider-wrapper {
    aspect-ratio: 1920 / 600;
    max-height: none;
  }

  .slider-slide {
    min-height: 0;
  }

  .hero-slider .hero-bottom {
    bottom: 0;
    height: 22px;
    padding: 0 8px;
    font-size: 8px;
  }

  .slider-dots {
    bottom: 25px;
  }
}


.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.slider-dot:hover { background: var(--text-light); }
.slider-dot.active {
  background: var(--navy);
  width: 28px;
  border-radius: 5px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.slider-arrow:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.slider-prev { left: 16px; }
.slider-next { right: 16px; }

.slider-progress {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--line-soft);
  z-index: 10;
}

.slider-progress-bar {
  height: 100%;
  background: var(--navy);
  width: 0%;
  transition: width 0.1s linear;
}

.hero-slider .hero-bottom {
  position: absolute;
  z-index: 5;
  left: 0; right: 0; bottom: 12px;
  height: 30px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: black;
  font-size: 10px;
  letter-spacing: 0.5px;
}
.hero-slider .hero-bottom b { color: black; font-weight: 700; }

/* ===== SECTION KICKER ===== */
.section-kicker {
  color: black;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.section-kicker small {
  color: rgb(255, 8, 8);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.section-kicker span { color: black; }

/* ===== MARKET STRIP ===== */
.market-strip {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

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

.strip-item {
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.strip-item:last-child { border-right: 0; }
.strip-item strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.strip-item small {
  display: block;
  color: var(--text-muted);
  font-size: 10px;
  margin-top: 4px;
}

.status-tag {
  display: inline-block;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 600;
  background: var(--green-bg);
  color: black;
  border: 1px solid var(--green-border);
}
.status-tag.closed {
  background: var(--pink-bg);
  color: black;
  border-color: var(--pink-border);
}

/* ===== PANEL & NEXT DRAW ===== */
.panel {
  margin-top: 20px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 16px;
}

.next-icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-size: 22px;
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  flex-shrink: 0;
}

.next-copy { min-width: 0; flex: 1; }
.next-copy h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 3px 0 2px;
  color: black;
}
.next-copy p { color: var(--text-muted); font-size: 11px; margin: 0; }

.countdown { display: flex; align-items: center; gap: 10px; margin: 0 16px; }
.countdown > div {
  width: 56px; height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
}
.countdown strong {
  font: 700 22px 'Poppins', sans-serif;
  color: var(--navy);
  line-height: 1;
}
.countdown small {
  font-size: 9px;
  letter-spacing: 0.5px;
  color: var(--text-light);
  margin-top: 4px;
  font-weight: 500;
}
.countdown > b { color: var(--text-light); font-size: 20px; }

/* ===== CONTENT SECTION ===== */
.content-section { margin-top: 40px; }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 6px 0 4px;
  color: var(--text-dark);
}
.section-heading h2 em {
  font-style: normal;
  color: var(--navy);
}
.section-heading p { margin: 0; color: var(--text-muted); font-size: 12px; }

.data-status {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 5px;
  font-weight: 500;
}

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.filter-chip {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-chip:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.filter-chip.selected {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ===== RESULTS GRID ===== */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.result-card {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  transition: all 0.2s ease;
}
.result-card:hover {
  border-color: var(--navy);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.08);
}

.result-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.market-icon {
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--blue-bg);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.result-head div:nth-child(2) { flex: 1; min-width: 0; }
.result-head h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result-head p { font-size: 10px; color: var(--text-muted); margin: 2px 0 0; }

.source-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--green-bg);
  color: var(--green-text);
  border: 1px solid var(--green-border);
}
.source-pill.manual {
  background: var(--gold-bg);
  color: var(--gold-text);
  border-color: var(--gold-border);
}

.digit-label {
  color: black;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 12px 0 8px;
  text-transform: uppercase;
}

.number-row { display: flex; flex-wrap: wrap; gap: 6px; }

.digit {
  min-width: 28px; height: 32px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--text-dark);
  font: 700 12px 'Poppins', sans-serif;
}

.number-row.secondary .digit {
  background: var(--purple-bg);
  border-color: var(--purple-border);
  color: var(--purple-text);
}
.number-row.tertiary .digit {
  background: var(--cyan-bg);
  border-color: var(--cyan-border);
  color: var(--cyan-text);
}

.result-main {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--navy);
  margin: 8px 0 2px;
}

.result-meta {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.result-meta span:last-child { text-align: right; }

.empty-state {
  grid-column: 1/-1;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  background: var(--bg-soft);
}

.disclaimer {
  font-size: 11px;
  color: var(--text-light);
  margin: 14px 0 0;
  line-height: 1.6;
}

/* ===== SCHEDULE TABLE ===== */
.schedule-section { margin-top: 40px; }

.table-note {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  padding-bottom: 7px;
  font-weight: 500;
}

.schedule-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.schedule-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 700px;
  text-align: left;
}

.schedule-table th {
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  text-transform: uppercase;
}

.schedule-table td {
  border-top: 1px solid var(--line-soft);
  padding: 14px 16px;
  font-size: 12px;
  color: var(--text);
}

.schedule-table td:first-child {
  font-weight: 600;
  color: var(--text-dark);
}

.schedule-table td .time {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--pink-text);
  background: var(--pink-bg);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--pink-border);
  display: inline-block;
  font-size: 12px;
}

.schedule-table td .result-time {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--green-text);
  background: var(--green-bg);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--green-border);
  display: inline-block;
  font-size: 12px;
}

/* ===== NOTICE ROW ===== */
.notice-row {
  display: flex;
  gap: 14px;
  margin: 30px 0 40px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.notice-icon {
  height: 28px; width: 28px;
  flex-shrink: 0;
  border: 1px solid var(--navy);
  color: var(--navy);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  background: var(--blue-bg);
}

.notice-row strong { font-size: 12px; color: var(--text-dark); font-weight: 600; }
.notice-row p {
  font-size: 11px;
  color: var(--text-muted);
  margin: 4px 0 0;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  margin-top: 40px;
}

.footer-inner {
  min-height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-brand .brand-mark { height: 28px; width: 28px; font-size: 11px; }
.footer-brand .brand-word { font-size: 14px; color: #000000; }
.footer-inner p { font-size: 11px; color: var(--text-light); }
.admin-link { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.loading-line { font-size: 12px; color: var(--text-muted); padding: 5px; }

/* ===== MOBILE NAV ===== */
.mobile-nav-open .main-nav {
  display: flex;
  position: absolute;
  z-index: 10;
  top: 72px;
  left: 20px;
  right: 20px;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.mobile-nav-open .main-nav a {
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
}

/* ==========================================
   PREDICTION / ANALITIK SECTION
   SERAGAM DENGAN TEMA NAVY & WHITE
   ========================================== */

.prediction-section {
  margin-top: 40px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

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

.prediction-heading h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin: 6px 0 5px;
  font-weight: 700;
  color: var(--text-dark);
}
.prediction-heading h2 em {
  font-style: normal;
  color: var(--navy);
}

.prediction-heading p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.prediction-live {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green-text);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  padding-bottom: 4px;
  background: var(--green-bg);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--green-border);
}

.prediction-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.prediction-date-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.prediction-date-icon {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  color: var(--navy);
  font-size: 16px;
}

.prediction-date-box small,
.prediction-source-note small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.8px;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
}

.prediction-date-box strong,
.prediction-source-note strong {
  display: block;
  font-size: 12px;
  color: var(--text-dark);
  line-height: 1.4;
  font-weight: 600;
}

.prediction-source-note { text-align: right; flex-shrink: 0; }

.prediction-filters { margin: 0 0 16px; }

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

.prediction-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}
.prediction-card:hover {
  border-color: var(--navy);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.08);
}

.pred-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 6px;
  min-width: 0;
}

.pred-market-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.pred-icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.pred-market-name {
  margin: 0;
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pred-time {
  font-size: 10px;
  color: var(--text-muted);
  margin: 2px 0 0;
  white-space: nowrap;
  font-weight: 500;
}

.pred-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  min-height: 32px;
}

.pred-label {
  font-size: 10px;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  flex-shrink: 0;
  font-weight: 600;
  text-transform: uppercase;
}

.pred-numbers {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.num-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 26px;
  padding: 0 6px;
  border-radius: 6px;
  font: 700 11px 'Poppins', sans-serif;
  letter-spacing: 0.3px;
}

.num-box.bbfs {
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  color: var(--navy);
}

.num-box.amcb {
  background: var(--purple-bg);
  border: 1px solid var(--purple-border);
  color: var(--purple-text);
}

.num-box.top2d {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green-text);
}

.pred-shio {
  display: inline-block;
  max-width: 65%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gold-text);
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.pred-placeholder {
  color: var(--text-light);
  font-size: 10px;
  text-align: right;
}

.pred-card-meta {
  font-size: 10px;
  color: var(--text-light);
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-weight: 500;
}

.pred-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  margin-top: 12px;
  padding: 8px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #fff;
  font: 600 11px 'Poppins', sans-serif;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pred-view-btn:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

/* ==========================================
   PREDIKSI CONTAINER (LEGACY)
   SERAGAM NAVY & WHITE
   ========================================== */

.prediksi-container {
  max-width: 1200px;
  margin: 40px auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 24px;
}

.prediksi-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.prediksi-badge-update {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.prediksi-top-bar h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
}

.prediksi-sub { color: var(--text-muted); font-size: 13px; }

.btn-salin-prediksi {
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
}
.btn-salin-prediksi:hover {
  background: var(--navy);
  color: #fff;
}

.pasaran-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.pasaran-tab-btn {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 12px;
}
.pasaran-tab-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.pasaran-tab-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.live-pasaran-box {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text);
  border: 1px solid var(--line);
}

.live-pasaran-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.live-pasaran-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pasaran-badge-sin {
  background: var(--navy);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
}

.live-pasaran-header h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
  font-family: 'Poppins', sans-serif;
}
.live-pasaran-header small { color: var(--text-muted); font-size: 12px; }

.btn-pasang-nomor {
  background: var(--navy);
  color: #fff;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-size: 13px;
}
.btn-pasang-nomor:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
}

.angka-grid-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.angka-card-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.box-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.box-digits {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 4px;
  font-family: 'Poppins', sans-serif;
}

.shio-colok-flex { display: flex; gap: 12px; align-items: center; }

.shio-badge-box {
  background: var(--gold-bg);
  color: var(--gold-text);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--gold-border);
}

.colok-badge-box {
  background: var(--green-bg);
  color: var(--green-text);
  border: 1px solid var(--green-border);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
}

.angka-panas-bar {
  background: var(--navy);
  color: #fff;
  padding: 16px 24px;
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.angka-panas-bar:hover { background: var(--navy-dark); }

.angka-panas-digits {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
}

.top-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.top-result-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.top-result-header {
  background: var(--bg-soft);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.top-result-header span:first-child {
  color: var(--navy);
  font-weight: 600;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
}

.line-count {
  background: var(--blue-bg);
  color: var(--navy);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.top-result-body { padding: 16px; }

.line-item-prediksi {
  background: var(--bg-soft);
  padding: 12px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 2px;
  font-size: 14px;
  border: 1px solid var(--line);
  font-family: 'Poppins', sans-serif;
}
.line-item-prediksi:last-child { margin-bottom: 0; }

.btn-action-pasang-bawah {
  display: block;
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 16px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  font-family: 'Poppins', sans-serif;
  border: none;
  cursor: pointer;
}
.btn-action-pasang-bawah:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-soft); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: var(--text-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .main-nav { gap: 16px; }
  .strip-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 12px;
  }
  .strip-item:nth-child(4) { border-right: 0; }
  .strip-item:nth-child(5),
  .strip-item:nth-child(6),
  .strip-item:nth-child(7),
  .strip-item:nth-child(8) {
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }
  .panel { flex-wrap: wrap; }
  .next-copy { flex: 1; }
  .countdown { margin: 0 auto 0 57px; }
  .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prediction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-slider, .slider-wrapper, .slider-track, .slider-slide { min-height: 360px; }
  .slide-content { padding: 30px; max-width: 60%; }
}

@media (max-width: 768px) {
  .prediksi-top-bar { flex-direction: column; }
  .prediksi-top-bar h3 { font-size: 20px; }
  .angka-grid-row { grid-template-columns: 1fr; }
  .top-results-grid { grid-template-columns: 1fr; }
  .box-digits { font-size: 22px; }
}

@media (max-width: 650px) {
  .wrap { width: min(100% - 24px, 540px); }
  .site-header { height: 64px; gap: 12px; padding: 0 12px; }
  .brand-mark-logo { height: 50px; }
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .header-actions .live-pill { display: none; }
  .header-actions .button { font-size: 11px; padding: 0 12px; min-height: 34px; }
  .menu-toggle { display: block; }
  
  .hero-slider, .slider-wrapper, .slider-track, .slider-slide { min-height: 420px; border-radius: var(--radius); }
  .slide-overlay {
    background: linear-gradient(
      180deg,
      rgba(248, 250, 252, 0.3) 0%,
      rgba(248, 250, 252, 0.85) 40%,
      rgba(248, 250, 252, 0.95) 100%
    );
  }
  .slide-content { max-width: 100%; padding: 24px 20px 50px; align-self: flex-end; }
  .slide-content h1 { font-size: 26px; }
  .slide-content p { font-size: 12px; }
  .slider-arrow { width: 36px; height: 36px; font-size: 18px; }
  .slider-prev { left: 10px; }
  .slider-next { right: 10px; }
  .slider-dots { bottom: 55px; }
  .hero-slider .hero-bottom { padding: 0 13px; font-size: 9px; }
  .hero-slider .hero-bottom span { max-width: 48%; line-height: 1.2; }
  
  .market-strip { padding: 14px; }
  .strip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 0;
  }
  .strip-item { padding: 10px 8px; border-bottom: 1px solid var(--line); }
  .strip-item:nth-child(2n) { border-right: 0; }
  .strip-item:nth-child(5),
  .strip-item:nth-child(6),
  .strip-item:nth-child(7),
  .strip-item:nth-child(8) { border-top: 0; padding-top: 10px; }
  
  .panel { padding: 16px; gap: 12px; }
  .next-icon { height: 40px; width: 40px; }
  .next-copy h2 { font-size: 13px; }
  .countdown { order: 3; width: 100%; justify-content: center; margin: 8px 0; }
  .countdown > div { flex: 1; max-width: 72px; height: 52px; }
  .panel > .button { margin-left: auto; }
  
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .section-heading h2 { font-size: 20px; }
  .data-status { padding: 0; }
  .results-grid { grid-template-columns: 1fr; }
  .result-card { padding: 14px; }
  .result-main { font-size: 22px; }
  .content-section { margin-top: 32px; }
  
  .prediction-section { padding: 16px; margin-top: 32px; }
  .prediction-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .prediction-live { padding: 6px 12px; }
  .prediction-toolbar { padding: 12px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .prediction-grid { grid-template-columns: 1fr; }
  .prediction-card { padding: 14px; }
  
  .footer-inner { padding: 16px 0; flex-wrap: wrap; }
  .footer-inner p { order: 3; width: 100%; margin: 0; }
  .footer-inner .admin-link { margin-left: auto; }
}
/* ==========================================
   TOP HEADER BAR (BRANDING BAR)
   ========================================== */

.top-header-bar {
  margin: 20px 0;
  padding: 0 20px;
}

.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 24px;
  box-shadow: var(--shadow-sm);
}

.top-header .left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger {
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 20px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.hamburger:hover {
  background: var(--bg-soft);
  border-color: var(--navy);
}

.logo-header {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.production-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.prod-text {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.prod-symbol {
  color: var(--gold);
  font-size: 14px;
}

.brand-seo {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.5px;
}

.prod-logo {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gold-bg);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--gold-border);
}

.user-info span {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-text);
}

.user-avatar {
  height: 20px;
  width: auto;
  object-fit: contain;
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
  .top-header {
    flex-wrap: wrap;
    padding: 14px 16px;
    gap: 12px;
  }
  
  .top-header .left {
    flex: 1;
  }
  
  .production-badge {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  
  .user-info {
    order: 2;
  }
  
  .logo-header {
    height: 35px;
  }
  
  .prod-logo {
    height: 20px;
  }
  
  .user-avatar {
    height: 24px;
  }
}

@media (max-width: 650px) {
  .top-header-bar {
    padding: 0 12px;
    margin: 16px 0;
  }
  
  .top-header {
    padding: 12px 14px;
  }
  
  .hamburger {
    padding: 5px 8px;
    font-size: 18px;
  }
  
  .logo-header {
    height: 32px;
  }
  
  .production-badge {
    padding: 6px 12px;
    flex-wrap: wrap;
  }
  
  .prod-text, .brand-seo {
    font-size: 10px;
  }
  
  .user-info span {
    font-size: 11px;
  }
  
  .user-avatar {
    height: 22px;
  }
}