
/* HEADER LOGO */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 0, 5, .82);
  border-bottom: 1px solid rgba(255, 216, 90, .18);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(1420px, calc(100% - 28px));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  width: 210px;
  max-width: 56vw;
}

.site-logo img {
  width: 100%;
  height: auto;
  display: block;
}

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

.header-btn {
  min-width: 92px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 20px rgba(0,0,0,.22);
}

.login-btn {
  background: linear-gradient(180deg, #2d3038, #15171d);
}

.daftar-btn {
  background: linear-gradient(180deg, #ff3a3a, #a6000c);
}

:root {
  --bg: #5b0000;
  --panel: #15161d;
  --panel-2: #101118;
  --button: #25262c;
  --button-border: #35363c;
  --text: #ffffff;
  --muted: #b8bdca;
  --red: #ff2b2b;
  --gold: #ffd45a;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(rgba(22, 0, 5, .20), rgba(22, 0, 5, .42)),
    url("../img/bghoki.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
}

a {
  text-decoration: none;
}

.page-wrap {
  width: min(1420px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

/* BANNER */
.banner-area {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.banner-slider {
  position: relative;
  width: min(945px, 100%);
  border-radius: 10px;
  overflow: hidden;
  background: #18080a;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 230, 120, .18);
}

.banner-slider img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 945 / 540;
  object-fit: cover;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  align-items: center;
}

.slider-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  box-shadow: 0 0 8px rgba(0, 0, 0, .45);
}

.slider-dots .active {
  background: #ffffff;
}

/* GRID BAWAH */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 428px;
  gap: 16px;
  align-items: start;
  margin-bottom: 22px;
}

.left-panel,
.right-panel {
  background: rgba(21, 22, 29, .92);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .04);
  box-shadow: 0 16px 35px rgba(0, 0, 0, .18);
}

.left-panel {
  padding: 12px 14px 16px;
  backdrop-filter: blur(8px);
}

.market-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.market-buttons button {
  border: 1px solid var(--button-border);
  background: linear-gradient(180deg, #292a30, #202126);
  color: #eeeeee;
  padding: 12px 15px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: .18s ease;
}

.market-buttons button:hover,
.market-buttons button.active {
  border-color: rgba(255, 55, 65, .9);
  background: linear-gradient(180deg, #e91b25, #a70810);
  color: #fff;
  transform: translateY(-1px);
}

.search-box {
  margin-top: 10px;
}

.search-box input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: #11131a;
  color: #fff;
  padding: 0 16px;
  font-size: 15px;
  outline: none;
}

.search-box input:focus {
  border-color: rgba(255, 50, 60, .75);
  box-shadow: 0 0 0 3px rgba(255, 50, 60, .12);
}

.result-card {
  display: none;
  margin-top: 12px;
  padding: 16px;
  border-radius: 14px;
  background: #101118;
  border: 1px solid rgba(255,255,255,.06);
}

.result-card.show {
  display: block;
}

.result-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.result-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* PANEL KANAN */
.right-panel {
  min-height: 186px;
  padding: 28px 30px;
  background: rgba(21, 22, 29, .92);
  backdrop-filter: blur(8px);
}

.quick-menu {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.quick-menu a {
  color: #173cff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-shadow: 0 6px 16px rgba(0,0,0,.45);
}

.clock-box .time {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .4px;
  margin-bottom: 8px;
}

.clock-box .date {
  color: #b9c6d6;
  font-size: 18px;
  font-weight: 600;
}

/* CARDS */
.cards-section {
  margin-top: 8px;
}

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

.market-card {
  background: linear-gradient(180deg, #182033 0%, #101623 100%);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(255,255,255,.08);
}

.card-top h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .2px;
}

.card-top a {
  color: #d2d8e6;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 14px;
}

.prediction-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: #ff2c2c;
  color: #050505;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.card-body {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 14px;
  padding-top: 16px;
}

.card-left-col,
.card-right-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dark-box,
.info-box,
.mini-paito-box {
  background: #020813;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 16px;
  padding: 16px 14px;
}

.dark-box h4,
.mini-paito-box h4 {
  margin: 0 0 14px;
  color: #ffd11f;
  font-size: 16px;
  font-weight: 800;
}

.dark-box p {
  margin: 12px 0 0;
  font-size: 15px;
}

.number-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: #263250;
  color: #ffffff;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 1px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}

.number-pill.large {
  min-width: 70px;
  height: 46px;
  font-size: 20px;
}

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

.info-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
}

.info-box span {
  font-size: 16px;
  color: #ffffff;
}

.info-box strong {
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
}

.mini-paito-box {
  padding-bottom: 14px;
}

.paito-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
}

.paito-grid span {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
}

/* RESPONSIVE */
@media (max-width: 1260px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .right-panel {
    min-height: auto;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .page-wrap {
    width: min(100% - 20px, 1420px);
    padding-top: 18px;
  }

  .banner-slider {
    border-radius: 10px;
  }

  .banner-slider img {
    aspect-ratio: 16 / 9;
  }

  .content-grid {
    gap: 12px;
  }

  .left-panel,
  .right-panel,
  .market-card {
    border-radius: 14px;
  }

  .market-buttons {
    gap: 8px;
  }

  .market-buttons button {
    padding: 10px 11px;
    font-size: 12px;
    border-radius: 10px;
  }

  .right-panel {
    padding: 22px 20px;
  }

  .quick-menu {
    gap: 18px;
    margin-bottom: 22px;
  }

  .clock-box .time {
    font-size: 20px;
  }

  .clock-box .date {
    font-size: 16px;
  }

  .card-top {
    flex-direction: column;
    align-items: stretch;
  }

  .prediction-badge {
    width: fit-content;
  }

  .card-body {
    grid-template-columns: 1fr;
  }

  .info-box span,
  .info-box strong {
    font-size: 15px;
  }
}


/* Animasi kartu saat berganti pilihan */
.market-card {
  animation: cardFade .18s ease;
}

@keyframes cardFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* COLOK BEBAS */
.colok-box {
  padding-bottom: 16px;
}

.colok-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.colok-item {
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff3434 0%, #8f0710 100%);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 8px 18px rgba(255, 43, 43, .13);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

@media (max-width: 620px) {
  .colok-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
  }

  .colok-item {
    height: 38px;
    font-size: 18px;
    border-radius: 10px;
  }
}


/* Efek saat angka otomatis berubah */
.updated-flash {
  animation: updatedFlash .45s ease;
}

@keyframes updatedFlash {
  0% {
    box-shadow: 0 0 0 rgba(255, 43, 43, 0);
    transform: scale(1);
  }
  45% {
    box-shadow: 0 0 28px rgba(255, 43, 43, .45);
    transform: scale(1.01);
  }
  100% {
    box-shadow: 0 14px 28px rgba(0,0,0,.18);
    transform: scale(1);
  }
}





/* Tombol kategori dibuat ringkas: tampil 5 awal, sisanya lewat search */
.market-buttons {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.search-box::after {
  content: "Ketik nama kategori untuk menampilkan tombol lainnya.";
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.62);
  font-size: 13px;
}



/* SLIDER 5 GAMBAR */
.banner-slider {
  position: relative;
  width: min(945px, 100%);
  border-radius: 14px;
  overflow: hidden;
  background: #18080a;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 230, 120, .18);
}

.slide-track {
  position: relative;
  width: 100%;
  aspect-ratio: 945 / 540;
}

.slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity .45s ease, transform .75s ease;
}

.slide-img.active {
  opacity: 1;
  transform: scale(1);
}

.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(0,0,0,.48);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: .2s ease;
}

.slide-nav:hover {
  background: rgba(255, 40, 50, .82);
}

.slide-nav.prev {
  left: 14px;
}

.slide-nav.next {
  right: 14px;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  align-items: center;
}

.slider-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, .48);
  box-shadow: 0 0 8px rgba(0, 0, 0, .45);
}

.slider-dots button.active {
  width: 24px;
  border-radius: 999px;
  background: #ffffff;
}

@media (max-width: 620px) {
  .header-inner {
    min-height: 68px;
  }

  .site-logo {
    width: 165px;
  }

  .header-btn {
    min-width: 72px;
    height: 36px;
    font-size: 13px;
  }

  .slide-nav {
    width: 34px;
    height: 34px;
    font-size: 28px;
  }

  .slide-nav.prev {
    left: 8px;
  }

  .slide-nav.next {
    right: 8px;
  }
}
