@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap");
:root {
  --text: rgba(255, 255, 255, 0.95);
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.14);
  --gold: #ffce00;
  --gold2: #ffe680;
  --green: #00df52;
  --red1: #f60000;
  --red2: #470000;
  --blue: #58a6ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.62);
  --btn-bg: linear-gradient(to bottom, #f60000, #470000);
  --btn-color: #fff;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  max-width: 100%;
  overflow-x: hidden;
  font-family: "Poppins", system-ui, sans-serif;
  background:
    radial-gradient(
      900px 460px at 50% -12%,
      rgba(246, 0, 0, 0.24),
      transparent 64%
    ),
    radial-gradient(
      720px 380px at 10% 10%,
      rgba(246, 0, 0, 0.12),
      transparent 58%
    ),
    #000;
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.66)),
    url("https://photoku.io/images/2026/06/02/bg-kuis-pialadunia.jpeg");
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background: linear-gradient(
    120deg,
    transparent 0 12%,
    rgba(246, 0, 0, 0.09) 12.2% 13%,
    transparent 13.2% 85%,
    rgba(246, 0, 0, 0.08) 85.2% 86%,
    transparent 86.2%
  );
}
.page {
  position: relative;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 14px 94px;
}
/* ── Sticky Header ── */
.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 10px 0;
  margin-left: -14px;
  margin-right: -14px;
  padding-left: 14px;
  padding-right: 14px;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
}
.logo {
  width: 46px;
  height: 46px;
  border-radius: 5px;
  overflow: hidden;
  display: grid;
  place-items: center;
  /* background: linear-gradient(145deg, var(--gold2), var(--gold)); */
  color: #090909;
  font-weight: 1000;
  box-shadow: 0 8px 24px rgba(246, 0, 0, 0.23);
  flex: 0 0 auto;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.brand-text h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1;
  font-weight: 1000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.navlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  font-weight: 900;
  font-size: 13px;
}
.hdr-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 13px;
  transition: 0.15s;
  white-space: nowrap;
  text-decoration: none;
  background: var(--btn-bg);
  color: var(--btn-color);
  border: 2px solid var(--red1);
  box-shadow: 0 4px 14px rgba(246, 0, 0, 0.3);
  font-family: "Poppins", sans-serif;
}
.hdr-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.hdr-wa,
.hdr-tg,
.hdr-login {
}
.hdr-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  border: 2px solid var(--red1);
  background: var(--btn-bg);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(246, 0, 0, 0.3);
}
.hdr-burger span {
  display: block;
  width: 16px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.hdr-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hdr-burger.is-open span:nth-child(2) {
  opacity: 0;
}
.hdr-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.hdr-mob-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: #111;
  border: 1px solid rgba(246, 0, 0, 0.25);
  border-radius: 16px;
  padding: 8px;
  gap: 6px;
  flex-direction: column;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  z-index: 9999;
}
.hdr-mob-menu.open {
  display: flex;
}
.hdr-mob-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-radius: 11px;
  font-weight: 900;
  font-size: 14px;
  text-decoration: none;
  transition: 0.15s;
  background: linear-gradient(to bottom, #f60000, #470000);
  color: #fff;
  border: 2px solid #f60000;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 4px 12px rgba(246, 0, 0, 0.25);
}
.hdr-mob-item:hover {
  filter: brightness(1.08);
}
@media (max-width: 900px) {
  .hdr-desk {
    display: none !important;
  }
  .hdr-burger {
    display: flex;
  }
  .hdr-btn span {
    display: none;
  }
  .hdr-btn {
    width: 40px;
    padding: 0;
    justify-content: center;
  }
  .hdr-btn svg {
    flex-shrink: 0;
  }
  .top-actions {
    position: relative;
    flex-shrink: 0;
  }
  /* 2-baris: logo | tombol di atas, judul di bawah full-width */
  .brand-text {
    order: 2;
    flex: 1;
    min-width: 0;
    padding: 0;
    border-top: none;
    margin-top: 0;
  }
  .brand-text h1 {
    font-size: 11px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.04em;
  }
  .brand {
    order: 1;
    flex-shrink: 0;
  }
  .top-actions {
    order: 3;
    flex-shrink: 0;
    margin-left: 0;
  }
}
@media (max-width: 480px) {
  .topbar {
    gap: 6px;
  }
  .page {
    padding-top: 0;
  }
}

/* ── Mobile order: banner → gif → pilih promo → countdown → promo ── */
@media (max-width: 1023px) {
  .page {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .topbar {
    order: 0;
  }
  #js-top-right {
    order: 1;
  }
  #js-right-banner {
    order: 2;
  }
  .sidebar-left {
    order: 3;
  }
  #js-countdown {
    order: 4;
  }
  #promo {
    order: 5;
  }
  .footer {
    order: 6;
  }
}
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.035) 40%,
      rgba(246, 0, 0, 0.065)
    ),
    rgba(0, 0, 0, 0.72);
  box-shadow: var(--shadow);
  min-height: 250px;
}
.hero:before {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  background: radial-gradient(
    760px 220px at 26% 0%,
    rgba(246, 0, 0, 0.26),
    transparent 68%
  );
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 5px 10px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h2 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 6vw, 45px);
  text-align: center;
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 1000;
  text-transform: uppercase;
}
.hero h2 span {
  color: var(--gold);
  text-shadow: 0 0 34px rgba(246, 0, 0, 0.35);
}
.hero p {
  margin: 0;
  color: var(--muted);
  text-align: center;
  line-height: 1.65;
  font-size: 15px;
}
.hero-gif-slot {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(246, 0, 0, 0.22);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  line-height: 0;
}
.hero-gif-slot img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 70px;
  object-fit: cover;
  object-position: center;
  background: #050505;
}
.hero-statbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
  max-width: 100%;
}
.hero-stat {
  background: linear-gradient(to bottom, #f60000, #470000);
  border: 3px solid #ffce00;
  border-radius: 18px;
  padding: 13px 14px;
  box-shadow: 0 4px 16px rgba(246, 0, 0, 0.28);
  text-align: center;
}
.hero-stat b {
  display: block;
  font-size: 22px;
  color: rgba(0, 0, 0, 0.9);
  font-weight: 1000;
}
.hero-stat span {
  display: block;
  color: rgba(0, 0, 0, 0.7);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3px;
}
.category-tabs {
  text-align: center;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px auto 0;
  max-width: 520px;
}
.category-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 37px;
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-color);
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  border: 2px solid var(--red1);
  padding: 4px 10px;
  font-family: "Poppins", sans-serif;
}
.category-tab.active {
  filter: brightness(0.78);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35);
}
.category-tab:hover {
  filter: brightness(1.08);
}
.tab-icon {
  flex-shrink: 0;
  pointer-events: none;
}
.gold-particle {
  position: absolute;
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.8) 0%,
    rgba(212, 175, 55, 0.4) 100%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  animation: floatGold 10s infinite ease-in-out;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}
@keyframes floatGold {
  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-120px) translateX(40px);
    opacity: 0;
  }
}
/* ── Hero Slider ── */
.hero-slider {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(246, 0, 0, 0.22);
  background: #050505;
  line-height: 0;
  margin: 16px auto 0;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}
.hero-slide {
  display: none;
  width: 100%;
}
.hero-slide.active {
  display: block;
}
.hero-slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: 0.2s;
}
.slider-dot.active {
  background: #ffce00;
  width: 22px;
  border-radius: 4px;
}
.section-head {
  margin: 12px 0 14px;
}
#promo .section-head {
  margin-top: 8px;
}
.section-head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.section-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.promo-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.promo-wide-card {
  border-radius: 24px;
  border: 1px solid rgba(246, 0, 0, 0.2);
  background: linear-gradient(180deg, #161616 0%, #111 60%);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(246, 0, 0, 0.07);
  overflow: hidden;
}
.promo-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px 14px;
  background: linear-gradient(
    135deg,
    rgba(246, 0, 0, 0.07) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 16px;
}
.promo-head-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.promo-head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.promo-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    145deg,
    rgba(246, 0, 0, 0.18),
    rgba(246, 0, 0, 0.1)
  );
  border: 1px solid rgba(246, 0, 0, 0.3);
  color: var(--gold2);
  flex: 0 0 auto;
  box-shadow: 0 4px 14px rgba(246, 0, 0, 0.15);
}
.promo-icon svg {
  display: block;
}
.official-badge {
  display: inline-flex;
  border-radius: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.55);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-badge {
  display: inline-flex;
  border-radius: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.55);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status-badge.is-open {
  border-color: rgba(105, 240, 155, 0.42);
  color: var(--green);
  background: rgba(105, 240, 155, 0.1);
}
.status-badge.is-soon {
  border-color: rgba(255,255,255,.18);
  color: rgba(255, 251, 0, 0.72);
  background: rgba(217, 221, 0, 0.1);
}
.status-badge.is-closed {
  border-color: rgba(255, 118, 118, 0.38);
  color: var(--red1);
  background: rgba(255, 118, 118, 0.09);
}
.status-badge.is-promo {
  border-color: rgba(246, 0, 0, 0.35);
  color: var(--gold2);
  background: rgba(246, 0, 0, 0.1);
}
.promo-title-block h3 {
  margin: 0 0 6px;
  font-size: clamp(17px, 1.8vw, 24px);
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-weight: 1000;
  text-transform: uppercase;
}
.promo-title-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.promo-body {
  padding: 0 20px 20px;
}
.promo-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.promo-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.promo-match {
  margin: 0 0 15px;
  border-radius: 18px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.promo-match-title {
  color: var(--text);
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
/* Shared match card — dipakai di index.php & quiz.php */
.qmatch-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.qmatch-team {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.qmatch-flag {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
.qmatch-name {
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.qmatch-vs {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  background: none;
  box-shadow: none;
  border-radius: 0;
}
.qmatch-vs span {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.671);
  letter-spacing: 0.1em;
  text-transform: lowercase;
}
/* ── Promo media (image always visible) ── */
.promo-media {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #050505;
  line-height: 0;
}
.promo-media img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top center;
}
.media-fallback {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  color: var(--gold2);
  font-weight: 1000;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  background: repeating-linear-gradient(
    45deg,
    #1a0000,
    #1a0000 14px,
    #240202 14px,
    #240202 28px
  );
  border: 2px dashed rgba(246, 0, 0, 0.45);
}
/* ── Rules drawer (expand below image) ── */
.rules-drawer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.rules-drawer.open {
  max-height: 800px;
}
.rules-drawer-inner {
  padding: 14px 0 2px;
}
.rules-box {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(246, 0, 0, 0.18);
  background:
    radial-gradient(
      600px 180px at 50% 0%,
      rgba(246, 0, 0, 0.12),
      transparent 70%
    ),
    rgba(0, 0, 0, 0.45);
  padding: 18px;
}
.rules-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.rules-head strong {
  display: block;
  font-size: 22px;
  line-height: 1;
  font-weight: 1000;
  text-transform: uppercase;
  color: var(--red1);
  letter-spacing: -0.04em;
}
.rules-head span {
  display: inline-flex;
  border: 1px solid rgba(246, 0, 0, 0.3);
  background: rgba(246, 0, 0, 0.1);
  color: var(--red1);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.rules-rich {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.58;
  font-size: 14px;
  font-family: inherit;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.rules-rich p {
  margin: 0.35em 0 0.75em;
}
.rules-rich strong {
  color: #fff;
  font-weight: 1000;
}
.rules-rich a {
  color: var(--gold2);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 900;
}
.rules-rich ul,
.rules-rich ol {
  margin: 0.35em 0 0.75em 1.25em;
  padding: 0;
}
.rules-rich li {
  margin: 0.28em 0;
}
/* ── Terms button active state ── */
.terms-btn.is-active {
  background: rgba(246, 0, 0, 0.12);
  color: var(--gold2);
  border-color: rgba(246, 0, 0, 0.3);
}
.promo-bottom {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  align-items: end;
  margin-top: 16px;
}
.mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.meta-chip {
  flex: 1 1 0;
  min-width: 110px;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 2px 18px;
}
.meta-chip + .meta-chip {
  border-left: 1px solid var(--line);
}
.meta-chip span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}
.meta-chip b {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}
.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 13px 18px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--red1), var(--red2));
  color: #fff !important;
  font-weight: 1000;
  border: 0;
  box-shadow: 0 18px 48px rgba(246, 0, 0, 0.23);
  transition: 0.18s ease;
  cursor: pointer;
  text-align: center;
  text-shadow: none;
}
.btn.secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-weight: 900;
  letter-spacing: 0.03em;
}
.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #fff;
}
.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.btn.disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}
.card-actions .btn {
  min-height: 48px;
  padding: 13px 20px;
  font-size: 14px;
  min-width: 160px;
}
.card-actions .btn.secondary {
  min-width: 150px;
}
.terms-btn.is-active {
  background: rgba(246, 0, 0, 0.12);
  color: var(--gold2);
  border-color: rgba(246, 0, 0, 0.35);
}
.activity-wrap {
  margin-top: 16px;
}
.info-panel {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.66);
  border-radius: 26px;
  padding: 20px;
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.45);
}
.info-panel h3 {
  margin: 0 0 12px;
  font-size: 20px;
}
.tablebox {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}
th,
td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  text-align: left;
}
th {
  color: var(--gold2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.045);
}
tr:last-child td {
  border-bottom: 0;
}
td {
  color: var(--muted);
}
td strong {
  color: var(--text);
}
.empty {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 24px;
  padding: 34px;
  text-align: center;
  color: var(--muted);
}
.footer {
  margin: 22px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
}
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 15;
  width: min(620px, calc(100% - 22px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(22, 22, 24, 0.5);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border-radius: 26px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.bottom-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 13px;
  background: rgba(255, 0, 0, 0.39);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: 0.15s;
}
.bottom-nav a:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}
.bottom-nav a.active {
  background: rgba(246, 0, 0, 0.18);
  border-color: rgba(246, 0, 0, 0.45);
  color: #fff;
}
.alert {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}
.alert-success {
  background: rgba(105, 240, 155, 0.12);
  border: 1px solid rgba(105, 240, 155, 0.3);
  color: var(--green);
}
.alert-error {
  background: rgba(255, 118, 118, 0.1);
  border: 1px solid rgba(255, 118, 118, 0.28);
  color: var(--red1);
}
.alert-info {
  background: rgba(88, 166, 255, 0.1);
  border: 1px solid rgba(88, 166, 255, 0.26);
  color: var(--blue);
}
@media (max-width: 980px) {
  .promo-bottom {
    grid-template-columns: 1fr;
  }
  .card-actions {
    justify-content: flex-start;
  }
  .mini-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .page {
    padding-left: 10px;
    padding-right: 10px;
  }
  .navlink {
    display: none;
  }
  .hero {
    border-radius: 24px;
  }
  .hero-statbar {
    grid-template-columns: repeat(3, 1fr);
  }
  /* Card layout */
  .promo-wide-card {
    border-radius: 20px;
  }
  .promo-card-head {
    padding: 14px 14px 12px;
  }
  .promo-body {
    padding: 0 14px 14px;
  }
  .official-badge {
    display: none;
  }
  .promo-card-head {
    margin-bottom: 10px;
  }
  .promo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .promo-icon svg {
    width: 18px;
    height: 18px;
  }
  .promo-head-left {
    gap: 10px;
  }
  .promo-title-block h3 {
    font-size: 18px;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
  }
  .promo-title-block p {
    font-size: 13px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* Match box */
  .promo-match {
    padding: 8px;
    gap: 8px;
    margin-bottom: 12px;
  }
  .qmatch-card {
    padding: 12px 10px;
    gap: 10px;
  }
  .qmatch-flag {
    width: 52px;
    height: 36px;
  }
  .qmatch-name {
    font-size: 12px;
  }
  .qmatch-vs {
    width: auto;
    height: auto;
    padding: 0 4px;
  }
  .qmatch-vs span {
    font-size: 12px;
  }
  /* Pills */
  .promo-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 12px;
  }
  .promo-pill {
    font-size: 11px;
    padding: 7px 6px;
    justify-content: center;
    text-align: center;
  }
  /* Bottom */
  .promo-bottom {
    margin-top: 10px;
  }
  .mini-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .meta-chip {
    flex: 1 1 40%;
    padding: 6px 0;
  }
  .meta-chip + .meta-chip {
    border-left: 0;
  }
  .meta-chip span {
    font-size: 10px;
  }
  .meta-chip b {
    font-size: 13px;
  }
  .card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .card-actions .btn {
    width: 100%;
    min-width: 0;
  }
  table {
    min-width: 80px !important;
  }
  .category-tabs {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 7px;
    margin-top: 14px;
    max-width: 100% !important;
    width: 100% !important;
  }
  .category-tab {
    min-height: 48px;
    font-size: 13px;
    border-radius: 13px;
    padding: 0 16px;
    overflow: hidden;
    gap: 10px !important;
    justify-content: flex-start !important;
    text-transform: none !important;
    font-weight: 700;
    letter-spacing: 0.01em;
    width: 100% !important;
  }
  .category-tab span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
  }
  .category-tab svg.tab-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
  .bottom-nav {
    width: calc(100% - 18px);
    bottom: 8px;
    border-radius: 19px;
    gap: 6px;
    padding: 7px;
  }
  .bottom-nav a {
    min-height: 40px;
    font-size: 11px;
  }
}
@media (max-width: 460px) {
  .hero-statbar {
    grid-template-columns: 1fr;
  }
  .promo-title-block h3 {
    font-size: 16px;
  }
  .promo-title-block p {
    -webkit-line-clamp: 2;
  }
}
@media (max-width: 380px) {
  .category-tab {
    min-height: 44px;
    font-size: 12px;
  }
}

/* ── Aktivitas Terbaru Card ──────────────────────────────── */
.act-card {
  background: linear-gradient(180deg, #0e0e0e, #111);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.act-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: linear-gradient(
    135deg,
    rgba(246, 0, 0, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
}
.act-head svg {
  color: var(--gold);
  flex-shrink: 0;
}
.act-body {
  padding: 10px;
}
.act-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: visible;
}
.act-list::-webkit-scrollbar {
  width: 3px;
}
.act-list::-webkit-scrollbar-thumb {
  background: rgba(246, 0, 0, 0.25);
  border-radius: 3px;
}
.act-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.act-user {
  font-weight: 800;
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
}
.act-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.act-ans {
  color: var(--text);
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.act-promo {
  color: rgba(255, 255, 255, 0.3);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.act-time {
  color: rgba(255, 255, 255, 0.28);
  font-size: 10px;
  white-space: nowrap;
}
.act-empty {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 16px 0;
  margin: 0;
}

/* ── Banner Ticker Bar (dalam #js-top-right) ─────────────── */
#js-top-right {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(246, 0, 0, 0.25);
  background: #050505;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  line-height: 0;
  display: flex;
  flex-direction: column;
}
.banner-ticker-bar {
  display: flex;
  align-items: stretch;
  line-height: 1;
  background: #0e0e00;
  border-bottom: 2px solid rgba(246, 0, 0, 0.35);
  overflow: hidden;
}
.banner-ticker-label {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ffce00, #f60000);
  color: #080808;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 14px;
  white-space: nowrap;
  border-right: 1px solid rgba(0, 0, 0, 0.2);
}
.banner-ticker-text {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 16px;
  min-width: 0;
}
.banner-ticker-text .ticker-track {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  animation: tickerScroll 28s linear infinite;
  display: inline-block;
  white-space: nowrap;
}
.banner-slider-wrap {
  line-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.banner-slider-wrap .hero-slider {
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  flex: 1;
}
.banner-slider-wrap .hero-slide {
  height: 100%;
}
.banner-slider-wrap .hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Desktop sidebar layout ──────────────────────────────── */
@media (min-width: 1024px) {
  /* Grid: sidebar kiri 260px + konten kanan */
  .page {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 16px;
    align-items: start;
    padding-bottom: 94px;
  }
  .topbar {
    grid-column: 1/-1;
    margin-bottom: 0;
  }

  /* Sidebar kiri: wrapper untuk Pilih Promo + Aktivitas (row 2 saja) */
  .sidebar-left {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-self: stretch;
  }
  #js-activity {
    display: flex;
    flex-direction: column;
  }
  #js-activity .act-card {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  #js-activity .act-body {
    flex: 1;
  }

  /* Pilih Promo card */
  #js-hero {
    grid-column: unset;
    grid-row: unset;
  }
  .hero {
    min-height: 0 !important;
    background: linear-gradient(180deg, #0d0d0d 0%, #111 100%) !important;
    border: 1px solid rgba(246, 0, 0, 0.2) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
  }
  .hero:before {
    display: none;
  }
  .hero-copy {
    padding: 20px 16px !important;
  }

  /* Heading label kecil sidebar */
  .hero h2 {
    font-size: 11px !important;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-align: left !important;
    color: rgba(255, 255, 255, 0.32) !important;
    text-shadow: none !important;
    margin: 0 0 12px !important;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-transform: uppercase;
  }
  .hero h2 span {
    color: rgba(255, 255, 255, 0.32) !important;
    text-shadow: none !important;
  }

  /* Category tabs vertikal */
  .category-tabs {
    display: flex !important;
    flex-direction: column;
    gap: 7px;
    max-width: 100% !important;
    margin: 0 0 14px !important;
  }
  .category-tab {
    justify-content: flex-start !important;
    gap: 10px;
    padding: 0 14px !important;
    min-height: 50px !important;
    border-radius: 14px !important;
    font-size: 12px !important;
    font-weight: 700;
    text-transform: none !important;
    letter-spacing: 0.01em;
    font-family: "Poppins", system-ui, sans-serif;
    background: var(--btn-bg) !important;
    color: var(--btn-color) !important;
    border: 2px solid var(--red1) !important;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3) !important;
    filter: none !important;
    overflow: hidden !important;
  }
  .category-tab span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
  }
  .category-tab:hover {
    filter: brightness(1.08) !important;
    transform: none;
  }
  .category-tab.active {
    filter: brightness(0.78) !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3) !important;
  }
  .category-tab .tab-icon {
    flex-shrink: 0;
    opacity: 0.75;
    transition: opacity 0.15s;
  }
  .category-tab:hover .tab-icon,
  .category-tab.active .tab-icon {
    opacity: 1;
  }

  /* Stats compact */
  .hero-statbar {
    margin-top: 0 !important;
    border-radius: 14px !important;
  }
  .hero-stat {
    padding: 10px 6px !important;
  }
  .hero-stat b {
    font-size: 18px !important;
  }
  .hero-stat span {
    font-size: 9px !important;
  }

  /* Kanan baris 2: combined ticker + banner — stretch sejajar sidebar-left */
  #js-top-right {
    grid-column: 2;
    grid-row: 2;
    align-self: stretch;
  }

  /* Full-width baris 3: GIF spans kedua kolom */
  #js-right-banner {
    grid-column: 1/-1;
    grid-row: 3;
    align-self: start;
  }
  #js-right-banner .hero-gif-slot {
    max-width: 100%;
    margin: 0;
  }

  /* Full-width baris 4: countdown */
  #js-countdown {
    grid-column: 1/-1;
    grid-row: 4;
    align-self: start;
  }

  /* Full-width baris 5: promo cards */
  #promo {
    grid-column: 1/-1;
    grid-row: 5;
    align-self: start;
  }

  .footer {
    grid-column: 1/-1;
  }
  .wc-countdown-section {
    min-height: 200px;
  }
  #promo .section-head {
    margin-top: 0;
  }
}
