/* NAGA6DZ Portal Org — clean gold shell */

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #1a1a1a;
  --panel: #161616;
  --lime: #d4aa3e;
  --lime-2: #f5d76e;
  --lime-deep: #a67c28;
  --lime-bar: linear-gradient(180deg, #fce68e 0%, #e8c547 38%, #d4aa3e 72%, #a67c28 100%);
  --gray-btn: #3a3a3a;
  --text: #f2f2f2;
  --muted: #a8a8a8;
  --line: #2a2a2a;
  --danger: #ff4d4d;
  --font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  /* Centered frame like tarzan88id (~1140) / medannaga6d.org (1100) */
  --shell: min(1140px, calc(100% - 2rem));
  --pad: clamp(.65rem, 2.5vw, 1.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime); text-decoration: none; }
a:hover { color: #fff; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== Floating side rails (sosmed + APK QR) ===== */
.float-rail {
  position: fixed;
  left: 0;
  top: 38%;
  z-index: 9100;
  display: flex;
  align-items: stretch;
  transform: translateY(-50%);
}
.float-rail__panel {
  display: flex;
  flex-direction: column;
  gap: .42rem;
  padding: .55rem .42rem;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-left: 0;
  border-radius: 0 12px 12px 0;
  transition: transform .25s ease, opacity .25s ease;
}
.float-rail__btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff !important;
  text-decoration: none !important;
}
.float-rail__btn svg { display: block; width: 22px; height: 22px; }
.float-rail__btn--tg { background: #2aabee; }
.float-rail__btn--wa { background: #25d366; }
.float-rail__btn--fb { background: #1877f2; }
.float-rail__btn--lc { background: var(--lime-bar); color: #1a1200 !important; }
.float-rail__btn:hover { filter: brightness(1.08); transform: scale(1.06); }
.float-rail__toggle {
  width: 28px;
  flex: 0 0 28px;
  min-height: 188px;
  align-self: stretch;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0 10px 10px 0;
  background: var(--lime-bar);
  color: #1a1200;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 2px 0 10px rgba(0,0,0,.25);
}
.float-rail.is-collapsed .float-rail__panel {
  transform: translateX(calc(-100% - 2px));
  opacity: 0;
  pointer-events: none;
  position: absolute;
  left: 0;
  top: 0;
}
/* Keep toggle tall/visible when panel is absolute (collapse) */
.float-rail.is-collapsed .float-rail__toggle {
  width: 28px;
  flex: 0 0 28px;
  min-height: 188px;
}
.float-rail.is-collapsed .float-rail__toggle span {
  display: inline-block;
  transform: rotate(180deg);
}
.float-rail--right { left: auto; right: 0; }
.float-rail--right .float-rail__panel {
  border-left: 1px solid #2a2a2a;
  border-right: 0;
  border-radius: 12px 0 0 12px;
}
.float-rail--right .float-rail__toggle {
  border-radius: 10px 0 0 10px;
  min-height: 176px;
  box-shadow: -2px 0 10px rgba(0,0,0,.25);
}
.float-rail--right.is-collapsed .float-rail__panel {
  transform: translateX(calc(100% + 2px));
  left: auto;
  right: 0;
}
.float-rail--right.is-collapsed .float-rail__toggle {
  min-height: 176px;
  width: 28px;
}
.float-rail--right.is-collapsed .float-rail__toggle span { transform: rotate(180deg); }
.float-rail__panel--apk { padding: .5rem .45rem; gap: 0; }
.float-rail__apk {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  text-decoration: none !important;
  color: var(--lime) !important;
  width: 108px;
}
.float-rail__apk:hover { filter: brightness(1.08); }
.float-rail__apk-label {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.1;
  text-align: center;
}
.float-rail__apk-qr {
  width: 96px;
  height: 96px;
  object-fit: contain;
  background: #fff;
  border: 2px solid var(--lime);
  border-radius: 6px;
  padding: 3px;
  box-sizing: border-box;
}
.float-rail__apk-hint {
  font-size: .58rem;
  color: #cfcfcf;
  text-align: center;
  line-height: 1.2;
}

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus {
  left: 8px; top: 8px; z-index: 9999;
  background: var(--lime); color: #0a0a0a; padding: .5rem .75rem;
}

.tz-shell {
  width: var(--shell);
  margin-inline: auto;
}

/* ===== Header (single row like portal shells) ===== */
.tz-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #0c0c0c;
  border-bottom: 1px solid rgba(212, 170, 62, .22);
  width: 100%;
}

.tz-top {
  background:
    linear-gradient(180deg, #16120a 0%, #0c0c0c 100%);
  border-bottom: 1px solid #1f1a10;
}
.tz-top__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .75rem 1rem;
  padding: .55rem 0;
  min-height: 58px;
}
.tz-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.tz-logo img {
  height: clamp(34px, 4.5vw, 44px);
  width: auto;
  object-fit: contain;
}
.tz-top__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .4rem;
  min-width: 0;
  flex-wrap: wrap;
}
.tz-clock {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: .78rem;
  color: var(--muted);
  margin-right: .25rem;
}
.tz-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .3rem .7rem;
  border-radius: 4px;
  background: #222;
  color: var(--text) !important;
  font-weight: 600;
  font-size: .72rem;
  min-height: 34px;
}
.tz-chip--tg { background: #1e8bc4; color: #fff !important; }
.tz-chip--wa { background: #1f8f4e; color: #fff !important; }
.tz-auth {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
}

/* Hamburger — mobile only (medannaga6d.org style) */
.tz-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--lime);
  background: #111;
  cursor: pointer;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  border-radius: 4px;
}
.tz-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0;
  background: var(--lime);
  border-radius: 1px;
}
.tz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .35rem .95rem;
  border-radius: 4px;
  font-weight: 800;
  font-size: .75rem;
  letter-spacing: .02em;
  border: none;
  cursor: pointer;
  min-height: 34px;
  white-space: nowrap;
}
.tz-btn--gray {
  background: var(--gray-btn);
  color: #ddd !important;
}
.tz-btn--gray:hover { background: #4a4a4a; color: #fff !important; }
.tz-btn--lime {
  background: var(--lime-bar);
  color: #0a0a0a !important;
  box-shadow: 0 0 12px rgba(212, 170, 62, .28);
}
.tz-btn--lime:hover { filter: brightness(1.08); color: #000 !important; }

/* Mobile auth under banner — hidden on desktop */
.tz-auth-mobile { display: none; }

/* ===== Category menu — gold bar full-bleed; items stay in shell ===== */
.tz-menu {
  width: 100%;
  padding: 0;
  background:
    linear-gradient(180deg, #fff3b8 0%, #f0d060 22%, #d4aa3e 58%, #a67c28 100%);
  border-top: 1px solid #ffe9a0;
  border-bottom: 1px solid #7a5a18;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .4),
    inset 0 -1px 0 rgba(90, 60, 10, .28);
}
.tz-menu__inner {
  padding: 0;
}
.tz-menu__rail {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-height: 52px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.tz-menu__rail::-webkit-scrollbar { display: none; height: 0; }
.tz-menu__btn {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .16rem;
  padding: .38rem .12rem .36rem;
  margin: 0;
  border-radius: 0;
  color: #1a1204 !important;
  font-weight: 800;
  font-size: clamp(.58rem, .9vw, .7rem);
  letter-spacing: .03em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none !important;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
  transition: background .12s ease, color .12s ease, box-shadow .12s ease;
}
.tz-menu__btn:hover,
.tz-menu__btn:focus-visible {
  background: rgba(255, 255, 255, .35);
  color: #0c0800 !important;
  outline: none;
  z-index: 1;
}
.tz-menu__btn:active,
.tz-menu__btn.is-active {
  background: linear-gradient(180deg, #9a7018 0%, #7a5810 48%, #5a400c 100%);
  color: #fff8e0 !important;
  box-shadow: inset 0 3px 10px rgba(30, 18, 0, .45);
}
.tz-menu__btn:active .tz-menu__label,
.tz-menu__btn.is-active .tz-menu__label {
  text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
}
.tz-menu__btn:active .tz-menu__icon,
.tz-menu__btn.is-active .tz-menu__icon {
  filter: brightness(0) invert(1) drop-shadow(0 1px 0 rgba(0,0,0,.25));
}
.tz-menu__icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.3));
  pointer-events: none;
}
.tz-menu__label {
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .28);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-inline: .1rem;
  pointer-events: none;
}
.tz-menu__badge-img {
  position: absolute;
  top: 1px;
  right: 2px;
  width: 26px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.35));
}

/* ===== Banner — luxury gold frame, varied slide heights ===== */
.tz-banner {
  position: relative;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(212, 170, 62, .16), transparent 55%),
    #050505;
  width: var(--shell);
  max-width: 100%;
  margin: .35rem auto .55rem;
  overflow: hidden;
  line-height: 0;
  padding: 0;
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(212, 170, 62, .35),
    0 0 0 2px rgba(20, 12, 4, .9),
    0 10px 28px rgba(0, 0, 0, .55),
    0 0 42px rgba(212, 170, 62, .12);
}
.tz-banner--lux::before,
.tz-banner--lux::after {
  content: "";
  position: absolute;
  z-index: 3;
  width: 28px;
  height: 28px;
  pointer-events: none;
  border: 2px solid rgba(252, 230, 142, .85);
  opacity: .9;
}
.tz-banner--lux::before {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
  box-shadow: -1px -1px 0 rgba(166, 124, 40, .5);
}
.tz-banner--lux::after {
  top: 8px;
  right: 8px;
  border-left: none;
  border-bottom: none;
  box-shadow: 1px -1px 0 rgba(166, 124, 40, .5);
}
.tz-banner__frame {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(252, 230, 142, .35),
    inset 0 0 0 3px rgba(212, 170, 62, .22),
    inset 0 -18px 36px rgba(0, 0, 0, .25);
}
.tz-banner__frame::before,
.tz-banner__frame::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(252, 230, 142, .8);
}
.tz-banner__frame::before {
  left: 8px;
  bottom: 8px;
  border-right: none;
  border-top: none;
}
.tz-banner__frame::after {
  right: 8px;
  bottom: 8px;
  border-left: none;
  border-top: none;
}
.tz-banner__track {
  height: auto;
  line-height: 0;
  background: #0a0604;
}
.tz-banner__slide {
  display: none;
  height: auto;
  line-height: 0;
  animation: tzFade .5s ease;
}
.tz-banner__slide.is-active { display: block; }
.tz-banner__slide img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1600 / 560;
  object-fit: cover;
  object-position: center;
  vertical-align: top;
  background: #050505;
}
@keyframes tzFade {
  from { opacity: .25; transform: scale(1.01); }
  to { opacity: 1; transform: scale(1); }
}
.tz-banner__nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  border: 1px solid rgba(252, 230, 142, .55);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(40, 28, 8, .88), rgba(12, 8, 4, .92));
  color: var(--lime-2);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(252, 230, 142, .2);
  transition: filter .15s ease, border-color .15s ease;
}
.tz-banner__nav:hover {
  filter: brightness(1.12);
  border-color: rgba(252, 230, 142, .95);
}
.tz-banner__nav.prev { left: max(10px, 1.5vw); }
.tz-banner__nav.next { right: max(10px, 1.5vw); }
.tz-banner__dots {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; align-items: center; gap: 8px;
  z-index: 4;
  margin: 0;
  padding: 0;
  line-height: normal;
}
.tz-banner__dots button {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid rgba(252, 230, 142, .35);
  background: rgba(255, 255, 255, .22);
  cursor: pointer; padding: 0;
  transition: width .2s ease, background .2s ease, border-color .2s ease;
}
.tz-banner__dots button.is-active {
  width: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fce68e, #d4aa3e);
  border-color: rgba(252, 230, 142, .8);
  box-shadow: 0 0 10px rgba(212, 170, 62, .45);
}
@media (prefers-reduced-motion: reduce) {
  .tz-banner__slide { animation: none; }
  .tz-banner__dots button { transition: none; }
}

/* ===== Match recommendations ===== */
.tz-section {
  width: var(--shell);
  margin: 0 auto;
  padding: .55rem 0 .85rem;
  scroll-margin-top: 110px;
}
.tz-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  margin-bottom: .85rem;
}
.tz-section__head h2 {
  margin: 0;
  font-size: clamp(.92rem, 2.4vw, 1.05rem);
  letter-spacing: .04em;
  color: var(--lime);
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-shrink: 0;
}
.tz-head-marquee {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  height: 28px;
  display: flex;
  align-items: center;
  border: 1px solid #2a2410;
  border-radius: 4px;
  background: linear-gradient(180deg, #12100a 0%, #0a0906 100%);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tz-head-marquee__track {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
  animation: tz-head-marquee 48s linear infinite;
}
.tz-head-marquee:hover .tz-head-marquee__track {
  animation-play-state: paused;
}
.tz-head-marquee__item {
  color: var(--lime);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.tz-head-marquee__sep {
  color: var(--gold, #d4aa3e);
  font-size: .68rem;
  opacity: .9;
}
@keyframes tz-head-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .tz-head-marquee__track { animation-duration: 90s; }
}
.tz-section__head h2::before {
  content: "";
  width: 4px;
  height: 1.05em;
  border-radius: 2px;
  background: var(--lime-bar);
  box-shadow: 0 0 8px rgba(212, 170, 62, .45);
  flex-shrink: 0;
}
.tz-live {
  background: var(--danger);
  color: #fff !important;
  font-size: .7rem;
  font-weight: 800;
  padding: .25rem .55rem;
  border-radius: 3px;
  flex-shrink: 0;
}
.tz-live-tv {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #1a1a1a;
  border: 1px solid #333;
  color: #fff !important;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  padding: .32rem .7rem;
  border-radius: 999px;
  flex-shrink: 0;
}
.tz-live-tv i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, .25);
  animation: tz-pulse 1.4s ease-in-out infinite;
}
@keyframes tz-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

.tz-matches-wrap {
  position: relative;
}
.tz-matches-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: .3;
  padding: 0;
  transition: opacity .15s ease;
}
.tz-matches-nav:hover { opacity: 1; color: #fff; }
.tz-matches-nav.prev { left: -4px; }
.tz-matches-nav.next { right: -4px; }
.tz-matches {
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: .1rem .15rem .4rem;
}
.tz-matches::-webkit-scrollbar { display: none; }
.tz-match {
  flex: 0 0 280px;
  width: 280px;
  min-height: 156px;
  height: auto;
  max-height: 178px;
  scroll-snap-align: start;
  background: #151515;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.tz-match__head {
  display: flex;
  align-items: center;
  gap: .28rem;
  padding: .28rem .5rem;
  border-bottom: 1px solid #262626;
  background: #181818;
  min-height: 26px;
}
.tz-match__cup {
  display: grid;
  place-items: center;
  color: var(--muted);
  line-height: 1;
  flex-shrink: 0;
}
.tz-match__cup svg { width: 11px; height: 11px; }
.tz-match__head strong {
  flex: 1;
  min-width: 0;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tz-match__goto {
  color: #777 !important;
  font-size: .75rem;
  font-weight: 800;
  line-height: 1;
  padding: .05rem .1rem;
}
.tz-match__goto:hover { color: var(--lime) !important; }
.tz-match__body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .25rem;
  align-items: center;
  padding: .4rem .5rem .28rem;
  flex: 1;
}
.tz-match__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  min-width: 0;
  text-align: center;
}
.tz-match__team--right { justify-self: end; }
.tz-match__flag {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background: #0d0d0d;
}
.tz-match__team strong {
  font-size: .62rem;
  font-weight: 600;
  color: #ddd;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}
.tz-match__mid {
  display: grid;
  place-items: center;
  gap: 0;
  text-align: center;
  min-width: 44px;
}
.tz-match__mid span {
  font-size: .62rem;
  color: var(--muted);
  line-height: 1.2;
}
.tz-match__mid b {
  font-size: .68rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
}
.tz-match__markets {
  display: grid;
  gap: .18rem;
  padding: 0 .4rem .4rem;
}
.tz-match__mkt {
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}
.tz-match__mkt-label {
  display: block;
  text-align: left;
  font-size: .55rem;
  font-weight: 600;
  color: #888;
  padding: 0 0 .12rem;
  border: 0;
  background: transparent;
  letter-spacing: .02em;
}
.tz-match__cells {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .28rem;
}
.tz-match__odd {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .25rem;
  min-height: 30px;
  padding: .2rem .4rem;
  font-size: .58rem;
  border: 0;
  border-radius: 3px;
  background: #1e1e1e;
  color: #ccc;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  line-height: 1.15;
  transition: background .12s ease;
}
.tz-match__odd:hover { background: #2a2a2a; }
.tz-match__odd em {
  font-style: normal;
  color: #aaa;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tz-match__odd b {
  color: #fff;
  font-weight: 800;
  font-size: .68rem;
  flex-shrink: 0;
}

/* ===== Lottery: Hasil / Pasaran / Buku Mimpi ===== */
.tz-lottery {
  width: var(--shell);
  margin: 0 auto 1.25rem;
  scroll-margin-top: 110px;
}
.tz-lottery__tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  margin-bottom: .85rem;
}
.tz-lottery__tab {
  appearance: none;
  background: transparent;
  border: 0;
  color: #cfcfcf;
  font-weight: 900;
  font-size: clamp(.78rem, 2vw, .92rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .85rem .4rem;
  cursor: pointer;
  position: relative;
}
.tz-lottery__tab::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
}
.tz-lottery__tab.is-active {
  color: #fff;
}
.tz-lottery__tab.is-active::after {
  background: var(--lime-bar);
}
.tz-lottery__tab:hover { color: #fff; }
.tz-lottery__panel[hidden] { display: none !important; }
.tz-panel-card {
  background: var(--panel);
  border: 1px solid rgba(212, 170, 62, .22);
  border-radius: 10px;
  padding: .9rem .85rem 1rem;
}
.tz-panel-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .75rem;
}
.tz-panel-card__head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(.92rem, 2.3vw, 1.05rem);
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.tz-panel-card__head h2::before {
  content: "";
  width: 4px;
  height: 1.05em;
  border-radius: 2px;
  background: var(--lime-bar);
  flex-shrink: 0;
}
.tz-panel-card__head a {
  color: #ddd;
  font-size: .78rem;
  font-weight: 700;
}
.tz-hasil { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.tz-hasil__item {
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
}
.tz-hasil__item.is-open {
  border-color: rgba(212, 170, 62, .4);
}
.tz-hasil__header {
  display: grid;
  grid-template-columns: 40px minmax(140px, 1.4fr) minmax(140px, 1fr) auto 28px;
  gap: .45rem .7rem;
  align-items: center;
  padding: .55rem .65rem;
  cursor: pointer;
  user-select: none;
}
.tz-hasil__logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #0a0a0a;
  border: 1px solid rgba(212, 170, 62, .35);
  overflow: hidden;
  flex-shrink: 0;
  padding: 0;
}
.tz-hasil__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.tz-hasil__info { min-width: 0; }
.tz-hasil__name {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: #fff !important;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  max-width: 100%;
}
.tz-hasil__name svg { color: #888; flex-shrink: 0; }
.tz-hasil__name:hover { color: var(--lime-2) !important; }
.tz-hasil__meta-mid {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  min-width: 0;
  justify-content: flex-start;
}
.tz-hasil__period {
  color: #eee;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}
.tz-hasil__date {
  color: var(--muted);
  font-size: .72rem;
  white-space: nowrap;
}
.tz-hasil__digits {
  display: flex;
  gap: .18rem;
  justify-content: flex-end;
}
.tz-hasil__digits span {
  width: 24px;
  height: 28px;
  display: grid;
  place-items: center;
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 4px;
  color: #fff;
  font-weight: 800;
  font-size: .86rem;
}
.tz-hasil__digits--sm span {
  width: 22px;
  height: 26px;
  font-size: .75rem;
  border-radius: 4px;
}
.tz-hasil__chev {
  appearance: none;
  border: 0;
  background: transparent;
  color: #888;
  font-size: .9rem;
  cursor: pointer;
  padding: .15rem;
  line-height: 1;
  transition: transform .18s ease, color .12s ease;
  justify-self: end;
}
.tz-hasil__item.is-open .tz-hasil__chev {
  transform: rotate(180deg);
  color: var(--lime);
}
.tz-hasil__chev:hover { color: #fff; }
.tz-hasil__details {
  border-top: 1px solid #242424;
  padding: .55rem .7rem .75rem;
  background: #0e0e0e;
}
.tz-hasil__details[hidden] { display: none !important; }
.tz-hasil__history {
  list-style: none;
  margin: 0 0 .65rem;
  padding: 0;
  display: grid;
  gap: .35rem;
}
.tz-hasil__hist {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: .5rem;
  align-items: center;
  padding: .4rem .5rem;
  background: #161616;
  border-radius: 5px;
  border: 1px solid #222;
}
.tz-hasil__hist-period {
  font-size: .74rem;
  font-weight: 700;
  color: #ddd;
}
.tz-hasil__hist-date {
  font-size: .68rem;
  color: var(--muted);
}
.tz-hasil__empty {
  margin: 0 0 .55rem;
  font-size: .76rem;
  color: #777;
  text-align: center;
  padding: .35rem 0;
}
.tz-hasil__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem .75rem;
  padding-top: .35rem;
  border-top: 1px solid #222;
}
.tz-hasil__lihat {
  color: var(--lime) !important;
  font-size: .76rem;
  font-weight: 700;
}
.tz-hasil__lihat:hover { color: var(--lime-2) !important; }
.tz-hasil__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .85rem;
  flex: 1;
  min-width: 0;
  font-size: .68rem;
  color: var(--muted);
}
.tz-hasil__pasang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: .3rem .9rem;
  border-radius: 4px;
  background: var(--lime-bar);
  color: #0a0a0a !important;
  font-weight: 900;
  font-size: .72rem;
  letter-spacing: .03em;
  margin-left: auto;
}
.tz-hasil__pasang:hover { filter: brightness(1.08); color: #000 !important; }
.tz-lihat {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: .9rem auto 0;
  width: min(100%, 280px);
  min-height: 42px;
  border-radius: 999px;
  background: var(--lime-bar);
  color: #0a0a0a !important;
  font-weight: 900;
  letter-spacing: .03em;
}
.tz-pasaran {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}
.tz-pasar {
  display: grid;
  gap: .2rem;
  padding: .8rem .75rem;
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: #fff !important;
  text-decoration: none !important;
}
.tz-pasar strong { font-size: .88rem; letter-spacing: .02em; }
.tz-pasar span { color: var(--muted); font-size: .72rem; }
.tz-pasar em { font-style: normal; color: #ccc; font-size: .72rem; }
.tz-pasar b { color: var(--lime); font-size: .85rem; margin-top: .2rem; }
.tz-mimpi-search { display: block; margin-bottom: .65rem; }
.tz-mimpi-search input {
  width: 100%;
  min-height: 42px;
  border-radius: 6px;
  border: 1px solid #333;
  background: #0f0f0f;
  color: #fff;
  padding: .55rem .75rem;
  font-size: .88rem;
}
.tz-mimpi { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.tz-mimpi li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: .65rem;
  align-items: center;
  padding: .55rem .65rem;
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
}
.tz-mimpi b {
  display: grid;
  place-items: center;
  background: var(--lime-bar);
  color: #0a0a0a;
  border-radius: 4px;
  min-height: 30px;
  font-size: .85rem;
}
.tz-mimpi span { color: #ddd; font-size: .84rem; }
.tz-mimpi li[hidden] { display: none !important; }

.tz-rail-nav { display: flex; gap: .35rem; }
.tz-rail-nav button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(212, 170, 62, .45);
  background: #151515;
  color: var(--lime);
  font-size: 1.1rem;
  cursor: pointer;
}
.tz-prediksi {
  display: flex;
  gap: .7rem;
  overflow-x: auto;
  padding-bottom: .4rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tz-prediksi::-webkit-scrollbar { display: none; }
.tz-pred {
  flex: 0 0 200px;
  width: 200px;
  scroll-snap-align: start;
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.tz-pred__visual {
  position: relative;
  background: #0e0e0e;
  border-bottom: 1px solid #262626;
}
.tz-pred__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.tz-pred__logo {
  position: absolute;
  left: .55rem;
  bottom: -.7rem;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(212, 170, 62, .4);
  background: #0a0a0a;
  object-fit: contain;
}
.tz-pred__body {
  display: grid;
  gap: .2rem;
  padding: 1rem .7rem .7rem;
}
.tz-pred__body strong {
  color: #fff;
  font-size: .74rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.25;
}
.tz-pred__body span { color: var(--muted); font-size: .68rem; }
.tz-pred__body em {
  font-style: normal;
  color: var(--lime);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: .08em;
}
.tz-pred__body a {
  margin-top: .35rem;
  display: block;
  text-align: center;
  background: var(--lime-bar);
  color: #0a0a0a !important;
  font-weight: 900;
  font-size: .72rem;
  padding: .42rem;
  border-radius: 4px;
}
.tz-more {
  color: #ddd;
  font-size: .78rem;
  font-weight: 700;
}
.tz-games {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
}
.tz-game {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  background: #111;
  text-decoration: none !important;
}
.tz-game img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.tz-game span {
  position: absolute;
  left: 50%;
  bottom: .55rem;
  transform: translateX(-50%);
  background: var(--lime-bar);
  color: #0a0a0a;
  font-weight: 900;
  font-size: .68rem;
  letter-spacing: .04em;
  padding: .28rem .7rem;
  border-radius: 4px;
}

/* ===== SEO / FAQ ===== */
.tz-seo {
  width: var(--shell);
  margin: 0 auto;
  padding: 1.1rem 0 2.25rem;
  color: var(--muted);
}
.tz-seo h1 {
  color: var(--text);
  font-size: clamp(1.05rem, 2.8vw, 1.28rem);
  margin: 0 0 .7rem;
}
.tz-seo h2,
.tz-seo--cat h2 {
  color: var(--lime);
  font-size: 1rem;
  margin: 1.15rem 0 .5rem;
}
.tz-seo--cat {
  width: var(--shell);
  margin: 1.5rem auto 0;
  padding: 0 0 2rem;
}
.tz-seo--cat h1 {
  color: var(--text);
  font-size: clamp(1.05rem, 2.8vw, 1.28rem);
  margin: 1.25rem 0 .7rem;
}
.tz-seo--cat h4 {
  color: #ddd;
  font-size: .86rem;
  margin: .75rem 0 .35rem;
  font-weight: 700;
}
.tz-seo--cat h5,
.tz-seo--cat h6 {
  color: var(--muted);
  font-size: .82rem;
  margin: .55rem 0 .3rem;
}
.tz-seo--cat ul {
  margin: 0 0 .85rem 1.1rem;
  color: var(--muted);
  line-height: 1.55;
}
.tz-seo h3 {
  color: var(--text);
  font-size: .92rem;
  margin: .95rem 0 .45rem;
  font-weight: 800;
}
.tz-seo p { line-height: 1.65; margin: 0 0 .7rem; }
.tz-seo__steps {
  margin: 0 0 1rem 1.1rem;
  padding: 0;
  display: grid;
  gap: .35rem;
  color: var(--muted);
  line-height: 1.55;
}
.tz-seo__table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.tz-seo__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: .78rem;
}
.tz-seo__table th,
.tz-seo__table td {
  padding: .55rem .65rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.45;
}
.tz-seo__table th {
  color: var(--lime);
  font-weight: 800;
  background: #15120a;
  white-space: nowrap;
}
.tz-seo__table td { color: var(--muted); }
.tz-seo__table tr:last-child td { border-bottom: 0; }
.tz-faq__item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: .45rem;
  padding: .6rem .8rem;
}
.tz-faq__item summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
}
.tz-faq__item p { margin: .5rem 0 0; }
.tz-guides {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .55rem;
  margin: 0 0 1.1rem;
}
.tz-guides a {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .03em;
  color: var(--lime) !important;
  border: 1px solid #2a2410;
  background: #12100a;
  padding: .35rem .65rem;
  border-radius: 4px;
  text-decoration: none;
}
.tz-guides a:hover {
  border-color: var(--lime);
  color: #fff !important;
}
.tz-guides--full a {
  font-size: .68rem;
  max-width: 100%;
}
.tz-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  margin: 0 0 .65rem;
  font-size: .72rem;
  color: var(--muted);
}
.tz-crumb a {
  color: var(--lime) !important;
  font-weight: 700;
  text-decoration: none;
}
.tz-crumb a:hover { text-decoration: underline; }
.tz-crumb__sep { opacity: .55; }
.tz-crumb__here { color: #ddd; font-weight: 700; }
.tz-cat__hub-link {
  color: var(--lime) !important;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tz-cluster {
  margin: 1.25rem 0 1.75rem;
  padding: .9rem .85rem;
  border: 1px solid #2a2410;
  border-radius: 6px;
  background: #0e0c08;
}
.tz-cluster__title {
  margin: 0 0 .35rem;
  font-size: .92rem;
  color: var(--lime);
  letter-spacing: .03em;
}
.tz-cluster__lead {
  margin: 0 0 .65rem;
  font-size: .78rem;
  line-height: 1.5;
  color: var(--muted);
}
.tz-cluster__list {
  margin: 0 0 .7rem;
  padding: 0 0 0 1.1rem;
  display: grid;
  gap: .35rem;
}
.tz-cluster__list a {
  color: var(--lime) !important;
  font-weight: 700;
  font-size: .78rem;
  text-decoration: none;
}
.tz-cluster__list a:hover { text-decoration: underline; }
.tz-cluster__back {
  margin: 0;
  font-size: .76rem;
  color: var(--muted);
  line-height: 1.5;
}
.tz-cluster__back a {
  color: var(--lime) !important;
  font-weight: 800;
}
.tz-seo a {
  color: var(--lime);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tz-seo a:hover { color: #fff; }
.tz-entity {
  margin: .35rem auto .85rem;
  padding: .65rem .8rem;
  border: 1px solid #2a2410;
  border-radius: 6px;
  background: #0e0c08;
  font-size: .8rem;
  line-height: 1.55;
  color: var(--muted);
}
.tz-entity strong { color: var(--lime); }
.tz-entity a {
  color: var(--lime) !important;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tz-faq--cat {
  margin: 0 0 1.75rem;
}
.tz-faq--cat h2 {
  margin: 0 0 .65rem;
  font-size: .95rem;
  color: var(--lime);
  letter-spacing: .03em;
}

/* ===== Footer ===== */
.tz-footer {
  background: var(--bg-2);
  border-top: 2px solid var(--lime);
  padding: 2rem var(--pad) 1.5rem;
  width: 100%;
}
.tz-footer__grid {
  width: var(--shell);
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.tz-footer h3 {
  margin: 0 0 .65rem;
  color: var(--lime);
  font-size: .9rem;
}
.tz-footer p { margin: 0; color: var(--muted); font-size: .82rem; }
.tz-footer ul { list-style: none; margin: 0; padding: 0; }
.tz-footer li { margin-bottom: .3rem; }
.tz-footer a { color: #ccc; font-size: .82rem; }
.tz-footer a:hover { color: var(--lime); }
.tz-footer__hours { margin-top: .65rem !important; font-size: .75rem !important; }
.tz-disclaimer {
  width: var(--shell);
  margin: 0 auto .75rem;
  color: #777;
  font-size: .72rem;
  text-align: center;
}
.tz-copy {
  text-align: center;
  color: #666;
  font-size: .75rem;
  margin: 0;
}

/* Footer payment methods */
.tz-footer-pay {
  width: var(--shell);
  margin: 0 auto 1.5rem;
  padding: .85rem .75rem .7rem;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
}
.tz-footer-pay__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .65rem;
  justify-content: center;
  align-items: center;
}
.tz-footer-pay__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 44px;
  padding: .25rem .4rem;
  background: #0d0d0d;
  border: 1px solid #2e2e2e;
  border-radius: 6px;
}
.tz-footer-pay__item img {
  max-height: 32px;
  width: auto;
  max-width: 78px;
  object-fit: contain;
}
.tz-footer-pay__item--auto::before {
  content: "AUTO";
  position: absolute;
  top: -7px;
  left: 6px;
  padding: 1px 5px;
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #111;
  background: var(--lime-bar);
  border-radius: 3px;
  line-height: 1.3;
  z-index: 1;
}
.tz-footer-pay__item--auto {
  border-color: rgba(212, 170, 62, .45);
  box-shadow: inset 3px 0 0 var(--lime);
}
.tz-footer-pay__note {
  margin: .7rem 0 0 !important;
  text-align: center;
  color: #8a8a8a !important;
  font-size: .72rem !important;
}

/* Footer trust row */
.tz-footer-trust {
  width: var(--shell);
  margin: 0 auto 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid #2a2a2a;
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 1.25rem;
  align-items: start;
}
.tz-footer-trust__brand img {
  width: min(160px, 100%);
  height: auto;
  margin-bottom: .45rem;
}
.tz-footer-trust__brand p {
  margin: 0 !important;
  color: #888 !important;
  font-size: .75rem !important;
}
.tz-footer-trust__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.tz-footer-trust__title {
  margin: 0 0 .55rem !important;
  color: #fff !important;
  font-size: .8rem !important;
  font-weight: 800;
}
.tz-footer-trust__row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
}
.tz-footer-trust img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* DMCA trust badge — gold shield */
.footer-dmca {
  --dmca-border: rgba(226, 185, 58, .45);
  --dmca-bg: linear-gradient(145deg, #17140c 0%, #0c0b08 55%, #14110a 100%);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: .1rem;
  padding: .5rem .75rem .5rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--dmca-border);
  background: var(--dmca-bg);
  box-shadow: 0 0 0 1px rgba(255, 232, 154, .06) inset, 0 8px 18px rgba(0, 0, 0, .35);
  text-decoration: none !important;
  transition: border-color .2s ease, transform .2s ease;
}
.footer-dmca:hover {
  border-color: rgba(246, 226, 122, .75);
  transform: translateY(-1px);
  color: inherit;
}
.footer-dmca__shield {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(212, 160, 23, .35));
}
.footer-dmca__copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}
.footer-dmca__kicker {
  color: #f0d060;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.footer-dmca__status {
  color: #f7f1d8;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.footer-dmca__pixel {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Welcome popup */
.tz-welcome[hidden] { display: none !important; }
.tz-welcome {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.tz-welcome__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
}
.tz-welcome__box {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  background: #000;
  border: 2px solid var(--lime);
  padding: 1.35rem 1.1rem 1.1rem;
  text-align: center;
  box-shadow: 0 0 0 1px #5a4508, 0 20px 60px rgba(0,0,0,.65);
}
.tz-welcome__logo {
  width: 130px;
  margin: 0 auto .85rem;
}
.tz-welcome__box p {
  margin: 0 0 .65rem;
  color: #fff;
  font-size: .92rem;
  line-height: 1.45;
}
.tz-welcome__label {
  color: var(--lime-2) !important;
  font-weight: 800;
  letter-spacing: .06em;
  font-size: 1.05rem !important;
  margin-bottom: .45rem !important;
}
.tz-welcome__qr-link {
  display: inline-block;
  margin: .35rem auto .55rem;
  line-height: 0;
}
.tz-welcome__qr {
  width: 168px;
  height: 168px;
  margin: 0 auto;
  object-fit: contain;
  background: #fff;
  border: 3px solid var(--lime);
  border-radius: 8px;
  padding: 6px;
  box-sizing: border-box;
}
.tz-welcome__note {
  color: #eee !important;
  font-size: .84rem !important;
  margin-bottom: 1rem !important;
}
.tz-welcome__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: .35rem auto .85rem;
  padding: .65rem 1.1rem;
  min-width: 210px;
  border: 1px solid var(--lime-deep);
  background: var(--lime-bar);
  color: #1a1200 !important;
  font-size: .88rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-decoration: none !important;
}
.tz-welcome__cta:hover {
  filter: brightness(1.06);
  color: #000 !important;
}
.tz-welcome__ok {
  min-width: 88px;
  padding: .45rem 1.2rem;
  border: 0;
  background: #fff;
  color: #111;
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
}
.tz-welcome__ok:hover { background: var(--lime-2); }

/* Login-required notice */
.tz-login-notice {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.tz-login-notice__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
}
.tz-login-notice__box {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  background: #111;
  border: 1px solid var(--lime-deep);
  padding: 1.25rem 1.1rem 1rem;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0,0,0,.55);
}
.tz-login-notice__box p {
  margin: 0 0 1rem;
  color: var(--lime-2);
  font-weight: 800;
  font-size: .95rem;
  line-height: 1.45;
  letter-spacing: .02em;
}
.tz-login-notice__actions {
  display: flex;
  gap: .55rem;
  justify-content: center;
  flex-wrap: wrap;
}
.tz-login-notice__daftar,
.tz-login-notice__login,
.tz-login-notice__ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  padding: .55rem .9rem;
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .04em;
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
}
.tz-login-notice__daftar,
.tz-login-notice__login {
  background: var(--lime-bar);
  color: #111 !important;
}
.tz-login-notice__ok {
  background: #222;
  color: var(--lime);
  border: 1px solid #444;
}
.tz-login-notice__ok:hover { border-color: var(--lime); }

@media (max-width: 1100px) {
  .tz-footer-trust__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .tz-footer-trust {
    grid-template-columns: 1fr;
  }
  .tz-footer-trust__cols {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .tz-welcome__box { padding: 1.1rem .8rem .9rem; }
  .tz-welcome__qr { width: 140px; height: 140px; }
  .tz-footer-pay__item { min-width: 64px; height: 40px; }
}

/* ===== Inner pages ===== */
.page-shell, .single-shell, .archive-shell {
  width: min(820px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
}
.content-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
}
.content-card h1 { margin-top: 0; color: var(--lime); }
.entry-content a { text-decoration: underline; }
.tz-post {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.tz-post:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.tz-post__title {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
}
.tz-post__excerpt {
  margin: 0;
  color: var(--muted);
}

/* ===== Category hub pages — luxury responsive provider grid ===== */
.tz-cat {
  padding: 1.1rem 0 2.25rem;
  background:
    radial-gradient(1200px 420px at 50% -10%, rgba(212, 170, 62, .08), transparent 60%),
    #0a0a0a;
}
.tz-cat__head {
  padding: .4rem 0 1.1rem;
  border-bottom: 1px solid rgba(212, 170, 62, .18);
  margin-bottom: 1rem;
}
.tz-cat__title-row {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .35rem;
}
.tz-cat__badge {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 36px;
  filter: drop-shadow(0 0 0 #d4aa3e);
}
.tz-cat__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 900;
  color: var(--lime-2);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .45);
}
.tz-cat__lead {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  max-width: 42rem;
  line-height: 1.45;
}
.tz-cat__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .85rem;
  padding: .15rem 0 1.35rem;
  justify-items: stretch;
}
.tz-cat-tile {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
  background:
    linear-gradient(180deg, #1a160c 0%, #121212 38%, #0e0e0e 100%);
  border: 1px solid rgba(212, 170, 62, .32);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 243, 184, .12);
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.tz-cat-tile:hover {
  border-color: #f0d060;
  transform: translateY(-3px);
  color: #fff !important;
  background:
    linear-gradient(180deg, #241e10 0%, #161616 42%, #101010 100%);
}
.tz-cat-tile__media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  padding: .55rem;
  background:
    radial-gradient(circle at 50% 30%, rgba(212, 170, 62, .12), transparent 55%),
    #0a0a0a;
  border-bottom: 1px solid rgba(212, 170, 62, .16);
}
.tz-cat-tile img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
.tz-cat-tile__name {
  padding: .62rem .55rem .7rem;
  font-size: clamp(.68rem, 1.4vw, .78rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #f3e2a8;
  line-height: 1.2;
}
.tz-cat__markets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  padding: .15rem 0 1.35rem;
}
.tz-cat-market {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: .8rem;
  align-items: center;
  padding: .8rem .9rem;
  background:
    linear-gradient(180deg, #1a160c 0%, #121212 100%);
  border: 1px solid rgba(212, 170, 62, .32);
  border-radius: 10px;
  text-decoration: none !important;
  color: var(--text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 243, 184, .1);
}
.tz-cat-market:hover {
  border-color: #f0d060;
  color: #fff !important;
}
.tz-cat-market img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  background: #0a0a0a;
  border: 1px solid rgba(212, 170, 62, .22);
  padding: 4px;
  box-sizing: border-box;
}
.tz-cat-market__body {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}
.tz-cat-market__body strong {
  font-size: .9rem;
  letter-spacing: .02em;
  color: #f3e2a8;
}
.tz-cat-market__body span {
  font-size: .75rem;
  color: var(--muted);
}
.tz-cat-market__cta {
  font-size: .68rem;
  font-weight: 900;
  color: #1a1200;
  background: var(--lime-bar);
  padding: .4rem .6rem;
  border-radius: 4px;
  white-space: nowrap;
}

/* Mobile bottom dock — hidden on desktop (match medannaga6d.org) */
.tz-mobile-dock {
  display: none !important;
}

@media (max-width: 1024px) {
  .tz-mobile-dock {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10050;
    min-height: 58px;
    padding: .28rem .2rem calc(.28rem + env(safe-area-inset-bottom, 0px));
    background: var(--lime-bar);
    border-top: 1px solid rgba(255, 255, 255, .2);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .35);
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .tz-mobile-dock__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .12rem;
    color: #1a1200 !important;
    text-decoration: none !important;
    font-weight: 800;
    min-width: 0;
    padding: .15rem .1rem;
  }
  .tz-mobile-dock__item--home { color: #000 !important; }
  .tz-mobile-dock__icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
  }
  .tz-mobile-dock__icon svg { display: block; }
  .tz-mobile-dock__label {
    font-size: .58rem;
    letter-spacing: .04em;
    line-height: 1;
    white-space: nowrap;
  }
  body.tz-skin {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }
  .float-rail {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 1100px) {
  .tz-cat__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .tz-cat__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
}
@media (max-width: 640px) {
  .tz-cat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .tz-cat-tile { max-width: none; border-radius: 8px; }
  .tz-cat-tile__media { padding: .4rem; }
  .tz-cat-tile__name { font-size: .66rem; padding: .5rem .35rem .55rem; }
  .tz-cat__markets { grid-template-columns: 1fr; }
  .tz-cat-market { grid-template-columns: 56px 1fr auto; gap: .6rem; padding: .65rem .7rem; }
  .tz-cat-market img { width: 56px; height: 56px; }
}
.tz-cat__foot {
  display: flex;
  justify-content: center;
  padding: .5rem 0 0;
}
.tz-cat__foot .tz-btn {
  min-width: min(100%, 280px);
  min-height: 44px;
}
.tz-cat__promos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  padding-bottom: .25rem;
}
.tz-cat-promo {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(212, 170, 62, .28);
  background: #0a0a0a;
}
.tz-cat-promo:hover { border-color: rgba(245, 215, 110, .55); }
.tz-cat-promo img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 720px) {
  .tz-cat__promos {
    grid-template-columns: 1fr;
    gap: .55rem;
  }
}

/* ===== Breakpoints ===== */
@media (max-width: 1100px) {
  .tz-match { flex-basis: 280px; }
  .tz-games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .tz-top__inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo meta auth";
  }
  .tz-logo { grid-area: logo; }
  .tz-auth--desktop { grid-area: auth; justify-self: end; }
  .tz-top__meta {
    grid-area: meta;
    justify-content: flex-end;
    width: auto;
  }
  .tz-clock { margin-right: .15rem; }
}

@media (max-width: 900px) {
  .tz-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --shell: calc(100% - 1rem); }

  .tz-top__inner {
    padding: .5rem 0;
    gap: .45rem;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo meta toggle";
    align-items: center;
  }
  .tz-logo { grid-area: logo; }
  .tz-top__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    grid-area: meta;
    min-width: 0;
  }
  .tz-clock {
    font-size: .68rem;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tz-nav-toggle {
    grid-area: toggle;
    display: inline-flex !important;
  }
  /* Auth moves under banner on mobile */
  .tz-auth--desktop { display: none !important; }
  .tz-auth-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .45rem;
    padding: .55rem 0 .7rem;
  }
  .tz-auth-mobile .tz-btn {
    width: 100%;
    min-height: 42px;
    font-size: .85rem;
    letter-spacing: .05em;
  }

  /* Marquee fills row under title + LIVE TV on narrow screens */
  #olahraga .tz-section__head {
    flex-wrap: wrap;
  }
  #olahraga .tz-head-marquee {
    order: 3;
    flex: 1 1 100%;
    height: 26px;
  }
  #olahraga .tz-head-marquee__item {
    font-size: .68rem;
  }

  /* Hide horizontal icon bar; open as full-bleed gold dropdown */
  .tz-menu {
    display: none;
  }
  .tz-menu.is-open {
    display: block !important;
  }
  .tz-menu__inner {
    width: 100%;
    max-width: none;
  }
  .tz-menu__rail {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    overflow: visible;
  }
  .tz-menu__btn {
    flex: none;
    width: 100%;
    min-width: 0;
    flex-direction: row;
    justify-content: flex-start;
    gap: .65rem;
    padding: .78rem 1rem;
    font-size: .82rem;
    text-align: left;
    background: rgba(0, 0, 0, .12);
    margin: 1px 0;
    border-radius: 0;
  }
  .tz-menu__btn:hover,
  .tz-menu__btn:focus-visible {
    background: rgba(255, 255, 255, .28);
  }
  .tz-menu__icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
  }
  .tz-menu__label {
    white-space: normal;
    text-overflow: unset;
    overflow: visible;
  }
  .tz-menu__badge-img {
    position: static;
    width: 28px;
    margin-left: auto;
  }

  .float-rail {
    display: flex !important;
    top: auto;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    transform: none;
    z-index: 9100;
    max-height: calc(100vh - 90px);
    pointer-events: none;
  }
  .float-rail__panel,
  .float-rail__toggle { pointer-events: auto; }
  .float-rail__panel { padding: .45rem .36rem; gap: .36rem; }
  .float-rail__btn { width: 40px; height: 40px; }
  .float-rail__btn svg { width: 20px; height: 20px; }
  .float-rail__toggle,
  .float-rail.is-collapsed .float-rail__toggle {
    width: 26px;
    flex: 0 0 26px;
    min-height: 168px;
    font-size: 16px;
  }
  .float-rail--right .float-rail__toggle,
  .float-rail--right.is-collapsed .float-rail__toggle {
    min-height: 158px;
  }
  .float-rail__apk { width: 96px; gap: .3rem; }
  .float-rail__apk-label { font-size: .6rem; }
  .float-rail__apk-qr { width: 84px; height: 84px; }
  .float-rail__apk-hint { font-size: .55rem; }

  .tz-banner {
    width: 100%;
    max-width: 100%;
    margin: .2rem 0 .4rem;
    border-radius: 0;
    box-shadow:
      0 0 0 1px rgba(212, 170, 62, .28),
      0 8px 20px rgba(0, 0, 0, .4);
  }
  .tz-banner__nav {
    width: 32px;
    height: 32px;
    font-size: 1.15rem;
  }
  .tz-banner__dots { bottom: 8px; gap: 6px; }
  .tz-banner__dots button.is-active { width: 16px; }
  .tz-banner--lux::before,
  .tz-banner--lux::after,
  .tz-banner__frame::before,
  .tz-banner__frame::after {
    width: 18px;
    height: 18px;
  }

  .tz-matches {
    gap: .5rem;
    padding-bottom: .4rem;
  }
  .tz-matches-nav {
    width: 22px;
    height: 22px;
    font-size: .95rem;
  }
  .tz-matches-nav.prev { left: 0; }
  .tz-matches-nav.next { right: 0; }
  .tz-match {
    flex: 0 0 min(280px, 82vw);
    width: min(280px, 82vw);
    max-height: none;
  }

  .tz-pasaran { grid-template-columns: 1fr; }
  .tz-hasil__header {
    grid-template-columns: 36px minmax(0, 1fr) 24px;
    grid-template-areas:
      "logo info chev"
      "logo mid mid"
      "logo digits digits";
    gap: .28rem .5rem;
    padding: .55rem .6rem;
  }
  .tz-hasil__logo { grid-area: logo; width: 40px; height: 40px; }
  .tz-hasil__info { grid-area: info; }
  .tz-hasil__meta-mid {
    grid-area: mid;
    flex-wrap: wrap;
    gap: .2rem .45rem;
  }
  .tz-hasil__digits { grid-area: digits; justify-content: flex-start; }
  .tz-hasil__chev { grid-area: chev; }
  .tz-hasil__hist {
    grid-template-columns: 48px 1fr;
    grid-template-areas:
      "period date"
      "digits digits";
  }
  .tz-hasil__hist-period { grid-area: period; }
  .tz-hasil__hist-date { grid-area: date; }
  .tz-hasil__hist .tz-hasil__digits { grid-area: digits; justify-content: flex-start; margin-top: .15rem; }
  .tz-hasil__foot {
    flex-direction: column;
    align-items: stretch;
  }
  .tz-hasil__pasang {
    margin-left: 0;
    width: 100%;
  }
  .tz-pred { flex: 0 0 min(72vw, 200px); width: min(72vw, 200px); }
  .tz-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .tz-footer { padding: 1.5rem .75rem 1.25rem; }
  .tz-footer__grid { gap: 1rem; }
}

@media (max-width: 480px) {
  .tz-match { flex: 0 0 86vw; width: 86vw; }
  .tz-footer__grid { grid-template-columns: 1fr; }
  .tz-auth-mobile { gap: .35rem; padding: .5rem 0 .6rem; }
  .tz-auth-mobile .tz-btn { font-size: .8rem; min-height: 40px; }
  .tz-top__meta .tz-chip { font-size: .68rem; min-height: 32px; }
  .tz-mobile-dock__label { font-size: .52rem; }
}

@media (min-width: 721px) and (max-width: 899px) {
  .tz-match { flex: 0 0 280px; width: 280px; }
}
