:root {
  --bg: #07111f;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --muted: #94a3b8;
  --gold: #f6c453;
  --gold-dark: #b7791f;
  --cyan: #38bdf8;
  --danger: #fb7185;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

body::selection {
  background: var(--gold);
  color: #111827;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at top left, rgba(246, 196, 83, 0.22), transparent 32%),
    radial-gradient(circle at 85% 12%, rgba(56, 189, 248, 0.18), transparent 26%),
    linear-gradient(135deg, #050914 0%, #07111f 48%, #101827 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent 85%);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 17, 31, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #111827;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(145deg, #fff2bc, var(--gold));
  box-shadow: 0 12px 34px rgba(246, 196, 83, 0.28);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-links a:hover {
  color: #111827;
  background: var(--gold);
}

.hero {
  min-height: 480px;
  display: grid;
  grid-template-columns: 1.45fr 0.7fr;
  gap: 28px;
  align-items: center;
  padding: 72px 0 44px;
}

.hero-copy {
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.035));
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.hero-text,
.muted {
  color: #cbd5e1;
  line-height: 1.7;
}

code {
  color: #111827;
  background: var(--gold);
  border-radius: 8px;
  padding: 2px 7px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.primary-btn,
.secondary-btn,
.small-btn {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(145deg, #fff2bc, var(--gold));
  box-shadow: 0 18px 42px rgba(246, 196, 83, 0.28);
}

.secondary-btn,
.small-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.primary-btn:hover,
.secondary-btn:hover,
.small-btn:hover {
  transform: translateY(-2px);
}

.hero-panel,
.schedule-card,
.generator-card,
.partners {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-panel {
  padding: 28px;
}

.hero-panel div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: #dbeafe;
  font-weight: 800;
}

.hero-panel strong {
  display: block;
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1.1;
}

.hero-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.pulse {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.75);
  animation: pulse 1.7s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 13px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.section-block {
  padding: 28px 0 56px;
}

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

.section-head.compact {
  align-items: center;
}

.tools {
  display: flex;
  gap: 10px;
}

input[type="search"] {
  width: min(340px, 48vw);
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

input[type="search"]::placeholder {
  color: var(--muted);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.result-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255,255,255,0.11), rgba(255,255,255,0.045));
  box-shadow: 0 18px 56px rgba(0,0,0,0.28);
}

.result-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--market-image);
  background-repeat: no-repeat;
  background-size: 180px auto;
  background-position: right 28px center;
  opacity: 0.16;
  z-index: -2;
}

.card-top,
.card-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.card-top {
  align-items: flex-start;
  margin-bottom: 28px;
}

.market-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #111827;
  background: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.market-title {
  margin: 16px 0 8px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.market-site {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.open-time {
  text-align: right;
  color: #dbeafe;
  font-weight: 900;
}

.open-time small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-weight: 600;
}

.number-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;

  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  width: fit-content;
}

.result-number {
  position: relative;
  width: 54px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;

  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.02em;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04)),
    linear-gradient(145deg, #1e293b, #0f172a);

  border: 1px solid rgba(255,255,255,0.10);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -10px 18px rgba(0,0,0,0.35),
    0 10px 20px rgba(0,0,0,0.28),
    0 0 12px rgba(246, 196, 83, 0.08);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-number::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 62%;
  height: 22%;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}

.result-number:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -10px 18px rgba(0,0,0,0.35),
    0 14px 26px rgba(0,0,0,0.32),
    0 0 18px rgba(246, 196, 83, 0.18);
}

.card-bottom {
  align-items: end;
  margin-top: 24px;
}

.date-label {
  margin: 0;
  color: #cbd5e1;
  font-weight: 700;
}

.detail-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 900;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
}

.split-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.schedule-card,
.generator-card,
.partners {
  padding: 24px;
}

.schedule-list {
  display: grid;
  gap: 10px;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
}

.schedule-item strong {
  color: #e2e8f0;
}

.schedule-item span {
  color: var(--gold);
  font-weight: 900;
}

.generator-card .muted {
  margin: 14px 0 22px;
}

.generator-slots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.generator-slots span {
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #111827;
  font-size: 25px;
  font-weight: 950;
  background: linear-gradient(145deg, #e0f2fe, #38bdf8);
  box-shadow: inset 0 -5px 12px rgba(0,0,0,0.2);
}

.generator-slots span.rolling {
  transform: translateY(-4px) scale(1.04);
  color: var(--gold);
  background: linear-gradient(145deg, #fff7d6, #f6c453);
}

.full {
  width: 100%;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.partner-grid a {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fef3c7;
  text-decoration: none;
  font-weight: 900;
  background: rgba(255,255,255,0.06);
  transition: 0.2s ease;
}

.partner-grid a:hover {
  color: #111827;
  border-color: transparent;
  background: var(--gold);
  transform: translateY(-2px);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,0.2);
}

.footer-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.footer-inner strong {
  color: var(--gold);
}

@media (max-width: 900px) {
  .header-inner,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 30px;
  }

  .result-grid,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .tools {
    width: 100%;
  }

  input[type="search"] {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .hero {
    padding-top: 34px;
  }

  .hero-copy,
  .hero-panel,
  .result-card,
  .schedule-card,
  .generator-card,
  .partners {
    border-radius: 22px;
    padding: 20px;
  }

  .result-number {
    width: 42px;
    height: 50px;
    font-size: 22px;
  }

  .open-time {
    text-align: left;
  }

  .card-top,
  .card-bottom {
    flex-direction: column;
  }
}
/* ===============================
   BACKGROUND GAMBAR PER PASARAN
   TEMPEL PALING BAWAH STYLE.CSS
================================ */

.result-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(
    --market-bg,
    linear-gradient(145deg, rgba(255,255,255,0.11), rgba(255,255,255,0.045))
  );
}

/* background gambar */
.result-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background-image: var(--market-image);
  background-repeat: no-repeat;
  background-size: 200px auto;
  background-position: right 24px center;

  opacity: 2;
  z-index: 0;
}

/* overlay gelap */
.result-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background:
    linear-gradient(135deg, rgba(7,17,31,0.72), rgba(7,17,31,0.28)),
    radial-gradient(circle at top right, var(--accent, rgba(246,196,83,0.18)), transparent 42%);

  z-index: 1;
}

/* isi card harus di atas gambar */
.result-card > * {
  position: relative;
  z-index: 2;
}

/* gambar background masing-masing pasaran */
.market-cambodia {
  --market-image: url("cambodia.png");
  --market-bg: linear-gradient(135deg, #2b0909, #111827);
}

.market-sydney {
  --market-image: url("sydney.png");
  --market-bg: linear-gradient(135deg, #2b1605, #111827);
}

.market-singapore {
  --market-image: url("singapore.png");
  --market-bg: linear-gradient(135deg, #061b2b, #111827);
}

.market-hongkong {
  --market-image: url("hongkong.png");
  --market-bg: linear-gradient(135deg, #2b0923, #111827);
}

.market-taiwan {
  --market-image: url("taiwan.png");
  --market-bg: linear-gradient(135deg, #2b2306, #111827);
}

.market-china {
  --market-image: url("china.png");
  --market-bg: linear-gradient(135deg, #112b09, #111827);
}

.market-japan {
  --market-image: url("japan.png");
  --market-bg: linear-gradient(135deg, #252525, #111827);
}

.market-totomacau {
  --market-image: url("totomacau.png");
  --market-bg: linear-gradient(135deg, #2b1806, #111827);
}

.market-shanghai {
  --market-image: url("shanghai.png");
  --market-bg: linear-gradient(135deg, #2b1806, #111827);
}
/* ===============================
   FIX RESULT 6 DIGIT
   Sydney / Hongkong agar tidak menutupi background
================================ */

.market-sydney .number-row,
.market-hongkong .number-row {
  gap: 8px;
  padding: 10px 12px;
}

.market-sydney .result-number,
.market-hongkong .result-number {
  width: 42px;
  height: 50px;
  font-size: 23px;
  border-radius: 16px;
}

/* geser background khusus 6 digit */
.market-sydney::before {
  background-size: 250px auto;
  background-position: right -20px center;
  opacity: 0.62;
}

.market-hongkong::before {
  background-size: 250px auto;
  background-position: right -35px center;
  opacity: 1;
}
/* ===============================
   RESULT NUMBER STYLE PREMIUM
================================ */

.number-row {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: 9px;
  align-items: center;
  width: fit-content;
  padding: 0;
  background: none;
  border: none;
  backdrop-filter: none;
}

.result-number {
  position: relative;
  width: 48px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 15px;

  color: #ffffff;
  font-size: 27px;
  font-weight: 950;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04)),
    linear-gradient(145deg, #263445, #101827);

  border: 1px solid rgba(255,255,255,0.16);

  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.20),
    inset 0 -8px 14px rgba(0,0,0,0.35),
    0 8px 18px rgba(0,0,0,0.32);
}

.result-number::before {
  content: "";
  position: absolute;
  top: 7px;
  width: 58%;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
}

/* ===============================
   BACKGROUND LOGO LEBIH RAPI
================================ */

.result-card::before {
  background-repeat: no-repeat;
  background-size: 230px auto;
  background-position: right 18px center;
  opacity: 2;
}

.result-card::after {
  background:
    linear-gradient(90deg, rgba(7,17,31,0.82) 0%, rgba(7,17,31,0.55) 48%, rgba(7,17,31,0.20) 100%),
    radial-gradient(circle at top right, var(--accent, rgba(246,196,83,0.14)), transparent 42%);
}

/* khusus 6 digit */
.market-sydney .result-number,
.market-hongkong .result-number {
  width: 43px;
  height: 52px;
  font-size: 25px;
}

.market-sydney .number-row,
.market-hongkong .number-row {
  gap: 8px;
}

/* logo khusus 6 digit jangan terlalu masuk ke tengah */
.market-sydney::before,
.market-hongkong::before {
  background-size: 220px auto;
  background-position: right 22px center;
  opacity: 0.42;
}
/* Sydney dibuat lebih terang */
.market-sydney::before {
  background-size: 220px auto;
  background-position: right 22px center;
  opacity: 1;
  filter: brightness(1.08) contrast(1.05) saturate(1.05);
}

/* overlay card Sydney dibuat lebih tipis */
.market-sydney::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      rgba(7,17,31,0.90) 0%,
      rgba(7,17,31,0.68) 48%,
      rgba(7,17,31,0.30) 100%
    ),
    radial-gradient(circle at top right, rgba(255, 170, 40, 0.14), transparent 42%);
  z-index: 1;
}
/* ===============================
   HONGKONG WARNA SAMA SEPERTI PASARAN LAIN
================================ */

.market-hongkong::before {
  background-size: 220px auto !important;
  background-position: right 22px center !important;
  opacity: 1 !important;
  filter: none !important;
}

.market-hongkong::after {
  background:
    linear-gradient(
      90deg,
      rgba(7,17,31,0.82) 0%,
      rgba(7,17,31,0.55) 48%,
      rgba(7,17,31,0.20) 100%
    ),
    radial-gradient(circle at top right, var(--accent, rgba(246,196,83,0.14)), transparent 42%) !important;
}
.market-totomacau1315,
.market-totomacau1600,
.market-totomacau1915,
.market-totomacau2200,
.market-totomacau2300,
.market-totomacau0015 {
  --market-image: url("totomacau.png");
  --market-bg: linear-gradient(135deg, #2b1806, #111827);
}