:root {
  --bg: #050505;
  --panel: rgba(12, 12, 12, 0.94);
  --panel-2: rgba(22, 22, 22, 0.96);
  --text: #f5f5f5;
  --muted: #b9b9b9;
  --gold: #f3c969;
  --gold-2: #d89900;
  --line: rgba(255,255,255,.08);
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --green: #25d366;
  --blue: #0b5cff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
}

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

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

.glass {
  background: rgba(8, 8, 8, 0.9);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    linear-gradient(rgba(0,0,0,.78), rgba(0,0,0,.86)),
    var(--bg-main);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.site-shell > * {
  position: relative;
  z-index: 1;
}

/* =========================
   HEADER
========================= */
.main-header {
  position: relative;
  z-index: 40;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: #111;
  padding: 4px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 700;
  color: #f3f3f3;
  white-space: nowrap;
}

.topbar-left a {
  color: #f3f3f3;
}

.topbar-right-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.topbar-clock {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  background: #17b51f;
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #161616;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.nav-logo img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-menu a {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  text-transform: uppercase;
}

.nav-menu a.active {
  color: #ffd400;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  color: #fff;
  line-height: 1;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  width: 42px;
  height: 42px;
}

.mobile-menu {
  display: none;
  background: rgba(10,10,10,.98);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 0 0 14px;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-top {
  background: #0f0f0f;
  padding-bottom: 14px;
}

.mobile-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  background: #16b61d;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.mobile-top-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 14px 12px 10px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.mobile-brand {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}

.mobile-brand img {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.mobile-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}

.mobile-menu-grid a {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: linear-gradient(180deg, #3b3b3b, #181818);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

/* =========================
   MAIN
========================= */
.main-content {
  padding: 10px 0 40px;
}

/* =========================
   HOME DESKTOP
========================= */
.hero-desktop-wrap {
  display: block;
}

.info-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #050505;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 6px 10px;
  margin-bottom: 8px;
  min-height: 38px;
  font-size: 12px;
  font-weight: 700;
  color: #f1f1f1;
}

.info-bar-icon {
  flex: 0 0 auto;
}

.info-bar-text {
  flex: 1;
  overflow: hidden;
}

.info-bar marquee {
  display: block;
  width: 100%;
}

.hero-desktop {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(280px, .95fr);
  gap: 10px;
  margin-bottom: 8px;
  align-items: stretch;
}

.hero-left,
.hero-right {
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0,0,0,.92);
}

.hero-left {
  padding: 8px;
}

.hero-right {
  padding: 8px;
}

.slider-wrap {
  border-radius: 8px;
  background: #000;
  overflow: hidden;
}

.slider {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.slide {
  display: none;
  width: 100%;
}

.slide.active {
  display: block;
}

.hero-main-slider .slide img,
.hero-desktop .slide img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  object-position: center;
  background: #000;
  border-radius: 6px;
}

.hero-right-link {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-right-image {
  width: 100%;
  height: 360px;
  object-fit: contain;
  object-position: center;
  background: #000;
  border-radius: 6px;
  display: block;
}

.hero-right-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 360px;
  color: #999;
  background: #0b0b0b;
  border-radius: 6px;
}

.hero-cta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.hero-cta-btn {
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 4px;
  background: linear-gradient(180deg, #2e2e2e, #111);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.hero-cta-btn.blue {
  background: linear-gradient(180deg, #2e7cff, #0b5cff);
}

.desktop-bottom-row {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(280px, .95fr);
  gap: 10px;
  align-items: stretch;
  margin-bottom: 14px;
}

.desktop-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.desktop-shortcut-btn {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 4px;
  background: linear-gradient(180deg, #3b3b3b, #1b1b1b);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.desktop-shortcut-btn.active {
  background: linear-gradient(180deg, #2e7cff, #0b5cff);
}

.desktop-winner-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  min-height: 38px;
}

.desktop-winner-badge {
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.08);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.desktop-winner-text {
  font-size: 12px;
  font-weight: 700;
  color: #f1f1f1;
  line-height: 1.3;
}

.hero-mobile {
  display: none;
}

/* =========================
   MOBILE HOME
========================= */
.mobile-home-card {
  padding: 10px;
  border-radius: 10px;
}

.mobile-home-mini-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #e7e7e7;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
}

.mobile-slider-wrap .slide img {
  width: 100%;
  height: auto;
  min-height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 8px;
  background: #000;
}

.mobile-winner-box {
  margin-top: 8px;
  padding: 8px;
  border-radius: 6px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-winner-badge {
  flex: 0 0 auto;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  padding: 5px 7px;
  font-size: 11px;
  font-weight: 700;
}

.mobile-winner-text {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}

.mobile-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.mobile-shortcut-btn {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 4px;
  background: linear-gradient(180deg, #3b3b3b, #1b1b1b);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.mobile-shortcut-btn.active {
  background: linear-gradient(180deg, #2e7cff, #0b5cff);
}

/* =========================
   COMMON BUTTONS
========================= */
.btn,
.big-btn,
.action-btn {
  border: 1px solid rgba(243,201,105,.22);
  background: linear-gradient(180deg, #2f2f2f, #111);
  color: #fff;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .25s ease;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 8px 20px rgba(0,0,0,.22);
}

.btn:hover,
.big-btn:hover,
.action-btn:hover,
.hero-cta-btn:hover,
.desktop-shortcut-btn:hover,
.mobile-shortcut-btn:hover {
  transform: translateY(-2px);
}

/* =========================
   SECTION TITLE
========================= */
.section-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: .5px;
}

/* =========================
   MARKET GRID
========================= */
.market-grid-section {
  margin-top: 14px;
}

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

.market-card {
  position: relative;
  border-radius: 18px;
  padding: 14px;
  text-align: center;
  background: linear-gradient(180deg, rgba(36,36,36,.92), rgba(10,10,10,.98));
  box-shadow:
    0 10px 24px rgba(0,0,0,.3),
    inset 0 1px 0 rgba(255,255,255,.04);
  transition: transform .25s ease, box-shadow .25s ease;
}

.market-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 24px rgba(247,203,77,.18),
    0 14px 28px rgba(0,0,0,.35);
}

.market-logo {
  width: 100%;
  max-width: 145px;
  height: 74px;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  padding: 6px;
  margin: 0 auto 8px;
  background: rgba(255,255,255,.03);
}

.market-card h3 {
  margin: 4px 0 10px;
  font-size: 19px;
  line-height: 1.25;
  color: #fff;
}

.result-box {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 62px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(180deg, #050505, #111);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 10px 8px;
  margin: 8px 0 10px;
  box-shadow: inset 0 0 10px rgba(255,255,255,.06);
}

.result-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 60%;
  height: 100%;
  transform: skewX(-22deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.05),
    rgba(247,203,77,.16),
    rgba(255,255,255,.05),
    transparent
  );
  animation: resultShine 3.2s linear infinite;
}

@keyframes resultShine {
  0% { left: -130%; }
  100% { left: 160%; }
}

.result-date {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  min-height: 34px;
  line-height: 1.4;
}

.card-actions,
.card-actions.stacked {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-btn {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
}

.action-btn.small {
  padding: 10px 14px;
  font-size: 13px;
}

.action-btn:hover {
  background: linear-gradient(180deg, #ffd54a, #d89c00);
  color: #111;
}

/* =========================
   FORM / INPUT
========================= */
.select-box,
input,
textarea {
  width: 100%;
  background: #0c0c0c;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* =========================
   PAGE BLOCK
========================= */
.inner-page,
.detail-block,
.page-block {
  margin-top: 24px;
  margin-bottom: 40px;
  border-radius: 20px;
  padding: 20px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================
   PREDICTION LIST
========================= */
.prediction-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.prediction-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 14px;
}

.prediction-item img {
  width: 120px;
  height: 72px;
  object-fit: contain;
  object-position: center;
  background: rgba(255,255,255,.03);
  padding: 6px;
  border-radius: 10px;
  margin: 0 auto;
}

.prediction-content h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

/* =========================
   PREDICTION DETAIL
========================= */
.prediction-detail-page {
  padding-top: 20px;
  padding-bottom: 40px;
}

.prediction-hero {
  padding: 22px;
  border-radius: 24px;
  margin-bottom: 18px;
}

.prediction-hero-top {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 18px;
}

.back-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #353535, #161616);
  border: 1px solid rgba(243,201,105,.28);
  color: #f8e7b0;
  font-weight: 700;
}

.prediction-hero-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: center;
}

.prediction-hero-logo {
  display: flex;
  justify-content: center;
}

.detail-logo {
  width: 170px;
  height: 96px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  padding: 10px;
}

.prediction-badge {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7cb4d, #d89800);
  color: #111;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .7px;
  margin-bottom: 10px;
}

.prediction-hero-text h1 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.1;
}

.prediction-subtitle {
  margin: 0;
  color: #d1d5db;
  font-size: 15px;
  line-height: 1.7;
}

.prediction-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 320px;
  gap: 18px;
  margin-bottom: 20px;
}

.prediction-main-left,
.prediction-main-right {
  padding: 20px;
  border-radius: 22px;
}

.main-number-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,203,77,.18), rgba(216,152,0,.08));
  border: 1px solid rgba(247,203,77,.22);
  margin-bottom: 18px;
  text-align: center;
}

.main-number-label {
  display: block;
  font-size: 13px;
  color: #f5d887;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.main-number-value {
  display: block;
  font-size: 54px;
  line-height: 1;
  font-weight: 900;
  color: #fff;
  letter-spacing: 4px;
}

.prediction-detail-list.premium {
  display: grid;
  gap: 12px;
}

.card-row {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}

.card-row span {
  display: block;
  font-size: 14px;
  color: #d1d5db;
  margin-bottom: 8px;
}

.card-row strong {
  display: block;
  font-size: 24px;
  line-height: 1.5;
  color: #fff;
  word-break: break-word;
}

.shio-row strong {
  color: var(--gold);
}

.side-box {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}

.side-box + .side-box {
  margin-top: 12px;
}

.side-label {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.side-value {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  word-break: break-word;
}

.side-value.accent {
  color: var(--gold);
}

.history-strip {
  padding: 22px;
  border-radius: 24px;
  margin-top: 24px;
}

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.history-head h2 {
  margin: 0;
  font-size: 24px;
}

.history-head span {
  color: #9ca3af;
  font-size: 13px;
}

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

.history-card {
  border-radius: 16px;
  padding: 14px;
}

.history-date {
  color: #9ca3af;
  margin-bottom: 10px;
  font-size: 13px;
}

.history-number {
  display: block;
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 8px;
}

.history-shio {
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
}

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

/* =========================
   RESULT DETAIL
========================= */
.result-detail-box {
  padding: 24px;
  border-radius: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.result-detail-head {
  text-align: center;
  margin-bottom: 18px;
}

.result-detail-head h1 {
  margin: 14px 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

.result-subtitle {
  margin: 0;
  color: #c9c9c9;
}

.table-wrap {
  overflow-x: auto;
}

.premium-table {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0,0,0,.22);
}

.result-table,
.admin-table table,
.result-history-table table {
  width: 100%;
  border-collapse: collapse;
}

.result-table th,
.result-table td,
.admin-table th,
.admin-table td,
.result-history-table th,
.result-history-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: center;
}

.result-table thead th,
.admin-table thead th,
.result-history-table thead th {
  background: linear-gradient(180deg, rgba(247,203,77,.28), rgba(216,152,0,.12));
  color: #fff;
  font-weight: 800;
}

.big-num {
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
}

.empty-row {
  text-align: center;
  color: #b9b9b9;
  padding: 22px;
}

/* =========================
   MODAL
========================= */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal.show {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.75);
}

.modal-card {
  position: relative;
  width: min(520px, calc(100% - 20px));
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  background: #111;
  border: 1px solid rgba(255,255,255,.1);
}

.modal-logo {
  width: 120px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 16px;
}

.modal-date {
  padding: 14px;
  border: 1px solid var(--line);
  margin: 16px 0;
  border-radius: 12px;
}

.modal-prize-row {
  margin-top: 16px;
  font-size: 28px;
  font-weight: 900;
  background: #0a0a0a;
  padding: 18px;
  border: 1px solid rgba(243,201,105,.75);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: 0;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.site-footer {
  padding: 0;
  text-align: center;
  color: transparent;
}

/* =========================
   ADMIN
========================= */
.admin-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100vh;
  background: #080808;
}

.admin-sidebar {
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: #0b0b0b;
}

.admin-brand {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 18px;
}

.admin-sidebar nav {
  display: grid;
  gap: 10px;
}

.admin-sidebar a {
  padding: 12px 14px;
  border-radius: 12px;
  background: #121212;
  border: 1px solid var(--line);
}

.admin-main {
  padding: 24px;
}

.admin-section {
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 16px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 18px;
  border-radius: 14px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
}

.stat-card strong {
  font-size: 28px;
}

.admin-form {
  display: grid;
  gap: 12px;
  margin: 12px 0 18px;
}

.admin-form label {
  display: grid;
  gap: 8px;
}

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

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

.span-2,
.full {
  grid-column: 1 / -1;
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-list-item {
  padding: 14px;
  border-radius: 14px;
  display: grid;
  gap: 10px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 150px;
  gap: 10px;
  align-items: center;
}

.img-preview img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.img-preview.large img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 8px;
  margin-top: 10px;
}

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

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.danger {
  border-color: rgba(239,68,68,.4);
}

.admin-block {
  border-radius: 16px;
  padding: 16px;
  margin-top: 16px;
}

.admin-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, #232323, #050505);
}

.admin-login {
  width: min(420px, calc(100% - 24px));
  border-radius: 18px;
  padding: 24px;
}

.admin-login label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.alert {
  background: rgba(239,68,68,.18);
  border: 1px solid rgba(239,68,68,.32);
  color: #fecaca;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.wide {
  width: 100%;
}

.muted {
  color: var(--muted);
}

.admin-quick {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.quick-btn {
  padding: 12px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #caa43b, #f5d77a);
  color: #000;
  text-decoration: none;
  font-weight: 700;
}

.quick-btn:hover {
  transform: translateY(-2px);
}

.result-admin-list {
  display: grid;
  gap: 18px;
}

.result-admin-row {
  padding: 18px;
  border-radius: 18px;
}

.result-admin-market {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.result-admin-logo {
  width: 70px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  padding: 4px;
}

.result-admin-name {
  font-size: 18px;
  font-weight: 800;
}

.result-admin-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.result-admin-input input,
.result-admin-date input,
.result-admin-time input {
  width: 100%;
  background: #0c0c0c;
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
}

.result-admin-input input {
  text-transform: uppercase;
}

.result-admin-action .action-btn {
  min-width: 190px;
  height: 50px;
}

.history-market-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.history-market-logo {
  width: 48px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  padding: 2px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {
  .market-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .history-cards,
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

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

  .result-admin-action .action-btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 920px) {
  .prediction-hero-body {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .prediction-main-grid {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .topbar {
    display: none;
  }

  .navbar {
    background: transparent;
    border-bottom: none;
    padding: 10px 12px;
  }

  .nav-logo img {
    height: 36px;
  }

  .hero-desktop-wrap {
    display: none;
  }

  .hero-mobile {
    display: block;
    margin-bottom: 14px;
  }
}

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

  .prediction-item {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .prediction-item img {
    width: 140px;
    height: 84px;
    margin: 0 auto 10px;
  }

  .prediction-content {
    text-align: center;
    width: 100%;
  }

  .prediction-content h3,
  .prediction-content p {
    text-align: center;
  }

  .prediction-item .action-btn {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }

  .grid-2,
  .grid-3,
  .inline-form,
  .market-edit,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-main {
    padding: 16px;
  }

  .mobile-hero-cta-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
  }

  .mobile-hero-cta-row .hero-cta-btn {
    min-height: 34px;
    font-size: 12px;
    padding: 8px 6px;
    border-radius: 4px;
  }
}

@media (max-width: 640px) {
  .result-admin-row {
    padding: 14px;
  }

  .result-admin-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .result-admin-market {
    gap: 10px;
  }

  .result-admin-name {
    font-size: 16px;
  }
}

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

  .nav-logo img {
    height: 42px;
  }

  .mobile-menu-grid a {
    font-size: 13px;
    min-height: 48px;
  }

  .market-grid {
    gap: 10px;
  }

  .market-card {
    padding: 10px;
  }

  .market-logo {
    width: 100%;
    height: 62px;
  }

  .market-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .result-box {
    font-size: 24px;
    padding: 8px;
    min-height: 52px;
  }

  .result-date {
    font-size: 12px;
    min-height: 30px;
  }

  .action-btn {
    font-size: 12px;
    padding: 9px 10px;
    border-radius: 10px;
  }

  .prediction-hero-text h1 {
    font-size: 28px;
  }

  .main-number-value {
    font-size: 40px;
    letter-spacing: 2px;
  }

  .card-row strong {
    font-size: 20px;
  }

  .side-value {
    font-size: 18px;
  }

  .history-number {
    font-size: 24px;
  }

  .history-cards,
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .modal-prize-row {
    font-size: 20px;
    flex-direction: column;
  }
}
/* ===== HEADER POLISH FINAL ===== */
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 4px 0;
}

.nav-label {
  display: block;
}

.nav-item.has-badge {
  padding-top: 14px;
}

.nav-badge {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 16px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}

.nav-badge.hot {
  background: #ff4d6d;
}

.nav-badge.new {
  background: #ff5b5b;
}

.nav-menu a.active .nav-label {
  color: #ffd400;
}

@media (max-width: 920px) {
  .nav-badge {
    display: none;
  }
}
/* ===== MOBILE HEADER FIX - BUANG BAR ATAS ===== */
@media (max-width: 920px) {
  .main-header {
    background: transparent;
  }

  /* buang bar logo + tombol hamburger */
  .navbar {
    display: none !important;
  }

  /* mobile menu langsung tampil, ga pakai toggle */
  .mobile-menu {
    display: block !important;
    border-top: none;
    padding-top: 0;
  }

  /* topbar desktop tetap hilang */
  .topbar {
    display: none !important;
  }

  /* rapihin bagian atas mobile */
  .mobile-menu-top {
    padding-top: 0;
    background: #0f0f0f;
  }

  .mobile-wa-btn {
    min-height: 32px;
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-top-links {
    padding: 12px 10px 8px;
    font-size: 11px;
    line-height: 1.6;
  }

  .mobile-brand {
    padding: 6px 0 10px;
  }

  .mobile-brand img {
    height: 52px;
    margin: 0 auto;
  }

  .mobile-menu-grid {
    padding: 10px 12px 12px;
    gap: 8px;
  }

  .mobile-menu-grid a {
    min-height: 42px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
  }
}
/* =========================
   DESKTOP FINAL RAPIIH
========================= */
@media (min-width: 921px) {
  .container {
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto;
  }

  .main-content {
    padding-top: 12px;
  }

  /* HEADER */
  .topbar {
    padding: 4px 18px !important;
    min-height: 34px;
    align-items: center !important;
  }

  .topbar-left {
    font-size: 11px !important;
    gap: 8px !important;
    line-height: 1 !important;
  }

  .topbar-right-stack {
    gap: 2px !important;
  }

  .wa-btn {
    min-height: 28px !important;
    padding: 4px 14px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
  }

  .topbar-clock {
    font-size: 11px !important;
    line-height: 1 !important;
  }

  .navbar {
    padding: 8px 18px !important;
    min-height: 52px;
    align-items: center;
  }

  .nav-logo {
    flex: 0 0 auto;
  }

  .nav-logo img {
    height: 34px !important;
  }

  .nav-menu {
    gap: 14px !important;
    flex-wrap: nowrap !important;
  }

  .nav-item {
    min-height: 28px !important;
    padding: 2px 0 !important;
  }

  .nav-item.has-badge {
    padding-top: 12px !important;
  }

  .nav-label {
    font-size: 11px !important;
    line-height: 1.1 !important;
    white-space: nowrap;
  }

  .nav-badge {
    top: -4px !important;
    min-width: 30px !important;
    height: 14px !important;
    font-size: 8px !important;
    padding: 0 6px !important;
  }

  /* INFO BAR */
  .info-bar {
    min-height: 32px !important;
    padding: 5px 10px !important;
    margin-bottom: 10px !important;
    font-size: 11px !important;
    border-radius: 0 !important;
  }

  .info-bar-icon {
    font-size: 12px;
  }

  /* HERO */
  .hero-desktop-wrap {
    margin-top: 0;
  }

  .hero-desktop {
    grid-template-columns: minmax(0, 2.25fr) minmax(300px, 0.95fr) !important;
    gap: 10px !important;
    margin-bottom: 8px !important;
    align-items: stretch !important;
  }

  .hero-left,
  .hero-right {
    border-radius: 8px !important;
    background: rgba(0,0,0,.94) !important;
    border: 1px solid rgba(255,255,255,.05) !important;
  }

  .hero-left {
    padding: 8px !important;
  }

  .hero-right {
    padding: 8px !important;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
  }

  .slider-wrap {
    border-radius: 6px !important;
    background: #000 !important;
    box-shadow: none !important;
  }

  .slider,
  .hero-main-slider {
    border-radius: 6px !important;
    background: #000 !important;
  }

  .hero-desktop .slide img,
  .hero-main-slider .slide img {
    width: 100% !important;
    height: 340px !important;
    min-height: 340px !important;
    max-height: 340px !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #000 !important;
    border-radius: 4px !important;
  }

  .hero-right-link {
    width: 100%;
    display: flex;
  }

  .hero-right-image {
    width: 100% !important;
    height: 340px !important;
    min-height: 340px !important;
    max-height: 340px !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #000 !important;
    border-radius: 4px !important;
  }

  .hero-right-empty {
    height: 340px !important;
    border-radius: 4px !important;
  }

  /* BUTTON BAWAH SLIDER */
  .hero-cta-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-top: 6px !important;
  }

  .hero-cta-btn {
    min-height: 34px !important;
    padding: 7px 10px !important;
    font-size: 11px !important;
    border-radius: 3px !important;
    line-height: 1 !important;
    background: linear-gradient(180deg, #313131, #151515) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
  }

  .hero-cta-btn.blue {
    background: linear-gradient(180deg, #2e7cff, #0b5cff) !important;
  }

  /* SHORTCUT + WINNER */
  .desktop-bottom-row {
    grid-template-columns: minmax(0, 2.25fr) minmax(300px, 0.95fr) !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
    align-items: stretch !important;
  }

  .desktop-shortcuts {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .desktop-shortcut-btn {
    min-height: 36px !important;
    padding: 8px 10px !important;
    border-radius: 3px !important;
    font-size: 11px !important;
    line-height: 1 !important;
  }

  .desktop-winner-box {
    min-height: 36px !important;
    border-radius: 3px !important;
    padding: 6px 8px !important;
    gap: 8px !important;
    background: rgba(0,0,0,.94) !important;
    border: 1px solid rgba(255,255,255,.06) !important;
  }

  .desktop-winner-badge {
    padding: 5px 8px !important;
    font-size: 10px !important;
    border-radius: 3px !important;
    white-space: nowrap;
  }

  .desktop-winner-text {
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  /* TITLE */
  .section-title {
    margin-top: 8px !important;
    font-size: 18px !important;
    line-height: 1.1 !important;
  }

  /* GRID RESULT */
  .market-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }

  .market-card {
    border-radius: 8px !important;
    padding: 14px 12px !important;
  }

  .market-logo {
    max-width: 150px !important;
    height: 78px !important;
  }

  .market-card h3 {
    font-size: 17px !important;
    margin: 4px 0 10px !important;
  }

  .result-box {
    min-height: 58px !important;
    font-size: 28px !important;
    border-radius: 8px !important;
  }
}
/* =========================
   HEADER DESKTOP RAPIIH
========================= */
@media (min-width: 921px) {
  .main-header {
    background: #111;
    border-bottom: 1px solid rgba(255,255,255,.05);
  }

  .topbar {
    display: grid !important;
    grid-template-columns: 1fr auto;
    align-items: center !important;
    padding: 6px 18px 4px !important;
    min-height: 34px !important;
    background: #111 !important;
    border-bottom: 1px solid rgba(255,255,255,.04);
  }

  .topbar-left {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #fff !important;
    white-space: nowrap !important;
    line-height: 1 !important;
  }

  .topbar-left a {
    color: #fff !important;
  }

  .topbar-right {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
  }

  .topbar-right-stack {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 4px !important;
  }

  .wa-btn {
    min-height: 28px !important;
    padding: 4px 18px !important;
    border-radius: 3px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    background: #14b61a !important;
  }

  .topbar-clock {
    font-size: 11px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .navbar {
    display: grid !important;
    grid-template-columns: 150px 1fr;
    align-items: center !important;
    padding: 10px 18px !important;
    min-height: 56px !important;
    background: #161616 !important;
    border-bottom: 1px solid rgba(255,255,255,.04) !important;
    gap: 24px !important;
  }

  .nav-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .nav-logo img {
    height: 33px !important;
    width: auto !important;
    object-fit: contain !important;
  }

  .nav-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 20px !important;
    flex-wrap: nowrap !important;
  }

  .nav-item {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 24px !important;
    padding: 0 !important;
  }

  .nav-item.has-badge {
    padding-top: 10px !important;
  }

  .nav-label {
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    color: #fff !important;
  }

  .nav-item.active .nav-label {
    color: #ffd400 !important;
  }

  .nav-badge {
    top: -7px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    min-width: 30px !important;
    height: 14px !important;
    padding: 0 7px !important;
    border-radius: 999px !important;
    font-size: 8px !important;
    font-weight: 900 !important;
    line-height: 14px !important;
  }

  .nav-badge.hot {
    background: #ff556d !important;
  }

  .nav-badge.new {
    background: #ff5b5b !important;
  }
}
/* =========================
   NAVBAR AUTO FIT WIDTH
========================= */
@media (min-width: 921px) {

  .navbar {
    grid-template-columns: auto 1fr !important;
  }

  .nav-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    /* 🔥 ini kunci utama */
    gap: clamp(10px, 1.2vw, 18px) !important;
  }

  .nav-item {
    flex: 0 0 auto !important;
  }

  .nav-label {
    font-size: clamp(10px, 0.8vw, 12px) !important;
    letter-spacing: 0.3px;
  }

  /* biar ga turun ke bawah */
  .nav-menu a {
    white-space: nowrap !important;
  }

  /* kalau layar agak kecil, otomatis ngecil */
  @media (max-width: 1200px) {
    .nav-label {
      font-size: 10px !important;
    }
  }

  /* kalau makin kecil lagi */
  @media (max-width: 1050px) {
    .nav-menu {
      gap: 10px !important;
    }

    .nav-label {
      font-size: 9.5px !important;
    }
  }

  /* badge ikut kecil */
  .nav-badge {
    transform: translateX(-50%) scale(0.9);
  }
}
/* =========================
   FIX BACKGROUND BIAR PREMIUM
========================= */
@media (min-width: 921px){

  /* BIARKAN BACKGROUND KELIHATAN */
  .site-shell {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  /* AREA TENGAH SAJA YANG GELAP */
  .main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px;
  }

  .hero-desktop-wrap,
  .market-grid-section {
    background: rgba(0,0,0,0.88);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.05);
  }

}
/* =========================
   FIX BANNER KANAN SEJAJAR
========================= */
@media (min-width: 921px) {
  .hero-desktop {
    grid-template-columns: minmax(0, 2.05fr) minmax(360px, 1fr) !important;
    align-items: stretch !important;
  }

  .hero-left,
  .hero-right {
    display: flex;
    flex-direction: column;
  }

  .hero-right {
    padding: 8px !important;
    background: rgba(0,0,0,.96) !important;
  }

  .hero-right-link {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    flex: 1 1 auto !important;
  }

  .hero-right-image {
    width: 100% !important;
    height: 100% !important;
    min-height: 340px !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: 4px !important;
    background: #000 !important;
  }

  .hero-main-slider .slide img,
  .hero-desktop .slide img {
    height: 340px !important;
    min-height: 340px !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
  }
}
/* =========================
   AREA TENGAH NYATU HITAM
========================= */
@media (min-width: 921px) {
  /* bungkus utama jadi 1 background hitam */
  .main-content {
    max-width: 1220px !important;
    margin: 0 auto !important;
    padding: 12px 14px 40px !important;
    background: rgba(0, 0, 0, 0.92) !important;
    border-radius: 0 !important;
    border-left: 1px solid rgba(255,255,255,.05);
    border-right: 1px solid rgba(255,255,255,.05);
  }

  /* section dalam jangan punya background kotak sendiri */
  .hero-desktop-wrap,
  .market-grid-section {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
  }

  /* hero tetap rapi */
  .hero-desktop-wrap {
    margin-bottom: 14px !important;
  }

  /* bar info */
  .info-bar {
    background: transparent !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    margin-bottom: 12px !important;
    padding: 7px 10px !important;
  }

  /* hero kiri kanan tetap panel */
  .hero-left,
  .hero-right {
    background: #050505 !important;
    border: 1px solid rgba(255,255,255,.06) !important;
  }

  /* row bawah hero */
  .desktop-shortcuts,
  .desktop-winner-box {
    background: transparent !important;
  }

  /* section title bawah */
  .section-title {
    margin: 0 0 14px !important;
    padding-top: 4px;
  }
}
/* ===== HEADER PADAT + ICON ===== */
@media (min-width: 921px) {
  .topbar {
    padding: 4px 12px !important;
    min-height: 30px !important;
  }

  .topbar-left {
    gap: 8px !important;
    font-size: 10px !important;
  }

  .wa-btn {
    min-height: 26px !important;
    padding: 3px 14px !important;
    font-size: 10px !important;
  }

  .topbar-clock {
    font-size: 10px !important;
  }

  .navbar {
    grid-template-columns: 130px 1fr !important;
    padding: 8px 12px !important;
    min-height: 48px !important;
    gap: 16px !important;
  }

  .nav-logo img {
    height: 30px !important;
  }

  .nav-menu {
    justify-content: flex-end !important;
    gap: 16px !important;
    flex-wrap: nowrap !important;
  }

  .nav-item {
    min-height: 22px !important;
    padding: 0 !important;
    gap: 4px;
  }

  .nav-item.has-badge {
    padding-top: 9px !important;
  }

  .nav-icon {
    font-size: 11px;
    line-height: 1;
    color: #ffd400;
  }

  .nav-label {
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .nav-arrow {
    font-size: 8px;
    line-height: 1;
    opacity: .9;
    margin-left: -1px;
  }

  .nav-badge {
    top: -8px !important;
    min-width: 28px !important;
    height: 13px !important;
    padding: 0 6px !important;
    font-size: 7px !important;
    line-height: 13px !important;
  }
}
