:root {
  /* === OLD ALIASES (for backward compat) === */
  --bg: var(--bg_page);
  --panel: var(--bg_card);
  --panel2: var(--bg_card_darker);
  --gold: var(--primary);
  --gold2: var(--primary_light);
  --text: var(--text_primary);
  --muted: var(--text_secondary);
  --line: var(--border_default);
  --yellow: var(--primary);

  /* === THEME VARIABLES — GOLD (PRESET #1 DEFAULT) === */
  --primary: #ffd400;
  --primary_light: #ffe566;
  --primary_dark: #b88600;
  --accent: #61efaa;
  --accent_dark: #2d8a5e;
  --text_primary: #fff8d6;
  --text_secondary: #b8b8a0;
  --text_muted: #82958a;
  --text_disabled: #5a7060;
  --bg_page: #030806;
  --bg_page_dark: #000000;
  --bg_page_darker: #010302;
  --bg_card: #0b0b0b;
  --bg_card_darker: #090909;
  --bg_card_gradient_start: #0a1e14;
  --bg_card_gradient_end: #000000;
  --bg_input: #05100a;
  --bg_input_readonly: #080f0a;
  --bg_button: #5e5944;
  --bg_button_hover: #74736e;
  --bg_button_disabled: #244936;
  --bg_button_loading: #b88600;
  --bg_icon: #151515;
  --bg_notice: #0b0b0b;
  --bg_pending: #241d0d;
  --bg_dropdown: #1c4430;
  --bg_success: rgba(95, 232, 167, 0.1);
  --bg_warning: rgba(255, 180, 0, 0.1);
  --bg_unik_tag: rgba(255, 212, 0, 0.15);
  --bg_selected: rgba(255, 212, 0, 0.07);
  --bg_bank_logo: #ffffff;
  --bg_payment_guide: #090909;
  --bg_payment_guide_toggle: #0b0b0b;
  --bg_payment_guide_toggle_hover: #121212;
  --bg_counter_step: #1c4430;
  --border_default: #4a3d00;
  --border_hover: #7a5c00;
  --border_primary: #ffd400;
  --border_input: #1c4430;
  --border_input_focus: #ffd400;
  --border_dropdown: #1c4430;
  --border_accent: #2d5e38;
  --border_counter_step: #2d5e38;
  --border_selected: #ffd400;
  --border_bank_logo: #295640;
  --border_bank_fallback: #126a45;
  --btn_text: #171000;
  --btn_text_loading: #ffffff;
  --btn_text_disabled: #91a99d;
  --tab_text_active: #171000;
  --tab_text_inactive: #9eb9ab;
  --shadow_card: rgba(0, 0, 0, 0.32);
  --shadow_button: rgba(255, 212, 0, 0.13);
  --shadow_focus: rgba(255, 212, 0, 0.08);
  --gradient_button_start: #e4e1d5;
  --gradient_button_end: #b88600;
  --gradient_button_loading_start: #b88600;
  --gradient_button_loading_end: #7a5c00;
  --gradient_unique_start: rgba(32, 128, 82, 0.24);
  --gradient_unique_end: rgba(6, 25, 16, 0.7);
  --status_success: #5fe8a7;
  --status_warning: #ffc940;
  --status_error: #e54848;
  --status_pending: #ffc940;
  --bg_error: rgba(229, 72, 72, 0.1);
}

* { box-sizing: border-box; }

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

body { min-height: 100vh; }

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

button { font: inherit; }

.app {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: auto;
  background: linear-gradient(180deg, var(--bg_page), var(--bg_card) 55%, var(--bg_page));
  padding-bottom: 78px;
  overflow: hidden;
}

/* HEADER */
.header {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  background: var(--bg_icon);
  border-bottom: 1px solid var(--border_default);
  position: sticky;
  top: 0;
  z-index: 50;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border_default);
  border-radius: 10px;
  background: var(--bg_icon);
  color: var(--text_primary);
  display: grid;
  place-items: center;
  flex: 0 0 38px;
}

.logo {
  flex: 1;
  text-align: center;
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 17px;
  color: var(--primary_light);
  text-shadow: 0 1px 10px var(--shadow_card);
}

.auth { display: flex; gap: 6px; }

.auth a {
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--border_default);
}

.login { background: var(--bg_icon); }

.register {
  background: linear-gradient(180deg, var(--primary), var(--primary_dark));
  color: var(--btn_text) !important;
  border-color: var(--primary) !important;
}

/* NOTICE */
.notice {
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--text_secondary);
  font-size: 11px;
  border-bottom: 1px solid var(--bg_page_dark);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  margin-right: 7px;
}

/* HERO */
.hero { padding: 9px 10px 2px; }

.hero-card {
  height: 184px;
  border-radius: 13px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border_default);
  background:
    radial-gradient(circle at 75% 40%, var(--shadow_button), transparent 27%),
    linear-gradient(135deg, var(--bg_card), var(--bg_card_gradient_start) 55%, var(--bg_page_dark));
}

.hero-content {
  position: absolute;
  inset: 0;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker {
  font-size: 11px;
  color: var(--primary_light);
  letter-spacing: 2px;
  font-weight: 800;
}

.hero-title {
  font-size: 28px;
  line-height: 1.05;
  font-weight: 950;
  margin: 5px 0;
}

.hero-sub { font-size: 12px; color: var(--text_secondary); }

.hero-btn {
  width: max-content;
  margin-top: 13px;
  padding: 8px 15px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--btn_text);
  font-size: 11px;
  font-weight: 900;
}

.hero-orb {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  right: -22px;
  top: 15px;
  background: radial-gradient(circle at 38% 35%, var(--primary_light) 0%, var(--primary) 28%, var(--primary_dark) 55%, transparent 70%);
  opacity: 0.75;
}

.hero-dots {
  display: flex;
  gap: 4px;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-dots i {
  width: 5px;
  height: 5px;
  background: var(--text_secondary);
  border-radius: 50%;
}

.hero-dots i:first-child {
  background: var(--primary_light);
  width: 15px;
  border-radius: 5px;
}

/* CATEGORY */
.section { padding: 13px 10px 0; }

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

.cat {
  min-width: 0;
  height: 67px;
  border: 1px solid var(--border_default);
  border-radius: 11px;
  background: var(--bg_card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cat svg {
  width: 24px;
  height: 24px;
  stroke: var(--text_secondary);
  fill: none;
  stroke-width: 1.7;
}

.cat.active {
  border-color: var(--primary);
  background: linear-gradient(180deg, var(--bg_card_gradient_start), var(--bg_card));
}

.cat.active svg { stroke: var(--primary_light); }

.cat span {
  font-size: 9px;
  color: var(--text_secondary);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.cat.active span { color: var(--text_primary); }

/* SECTION TITLE */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 19px 3px 9px;
}

.section-head h2 { font-size: 18px; margin: 0; font-weight: 900; }

.section-head h2:after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--primary);
  border-radius: 50%;
  margin: 0 0 3px 7px;
}

.more {
  font-size: 10px;
  color: var(--text_secondary);
  border: 1px solid var(--border_hover);
  background: var(--bg_card);
  padding: 7px 9px;
  border-radius: 7px;
}

/* GAME CARDS */
.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.game { min-width: 0; }

.game-img {
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border_default);
  background: linear-gradient(145deg, var(--bg_card_darker), var(--bg_card) 60%, var(--bg_card_gradient_start));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.game-img:before {
  content: "";
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--shadow_button);
}

.game-img b {
  font-size: 10px;
  z-index: 1;
  color: var(--text_primary);
  line-height: 1.1;
}

.rtp {
  position: absolute;
  top: 5px;
  right: 5px;
  background: var(--bg_card);
  color: var(--primary);
  border: 1px solid var(--border_hover);
  border-radius: 5px;
  padding: 3px 4px;
  font-size: 8px;
  font-weight: 800;
}

.game-name {
  font-size: 10px;
  font-weight: 700;
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-meta { font-size: 9px; color: var(--primary_light); margin-top: 3px; }

/* JACKPOT / TOTO */
.toto-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }

.toto {
  border: 1px solid var(--border_default);
  border-radius: 10px;
  padding: 12px;
  background: linear-gradient(145deg, var(--bg_card_darker), var(--bg_page_dark));
}

.toto small { font-size: 9px; color: var(--text_secondary); }

.toto strong {
  display: block;
  font-size: 25px;
  margin: 8px 0;
  color: var(--text_primary);
}

.toto .balls { display: flex; gap: 4px; }

.toto i {
  font-style: normal;
  font-size: 8px;
  background: var(--bg_card_darker);
  padding: 5px 6px;
  border-radius: 4px;
  color: var(--text_secondary);
}

/* FLOAT */
.float-menu {
  position: fixed;
  right: max(12px, calc((100vw - 480px) / 2 + 10px));
  bottom: 92px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.float-menu a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg_icon);
  border: 1px solid var(--border_default);
  display: grid;
  place-items: center;
  color: var(--text_secondary);
  box-shadow: 0 5px 18px var(--shadow_card);
}

.float-menu svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

/* BOTTOM NAV */
.bottom {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 480px);
  height: 70px;
  background: var(--bg_card);
  border-top: 1px solid var(--border_default);
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr 1fr 1fr;
  z-index: 60;
  backdrop-filter: blur(12px);
}

.bottom a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--text_secondary);
  font-size: 9px;
  font-weight: 700;
}

.bottom svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.bottom .active { color: var(--primary_light); }

.bottom .center { position: relative; }

.bottom .center span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin-top: -27px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--primary), var(--primary_dark));
  color: var(--btn_text);
  border: 4px solid var(--bg_card_darker);
  box-shadow: 0 5px 20px var(--shadow_card);
}

.bottom .center span svg { width: 23px; height: 23px; }

.bottom .center label { margin-top: 0; color: var(--text_primary); font-size: 9px; }

/* DESKTOP */
@media (min-width: 700px) {
  body { padding: 25px 0; }

  .app {
    box-shadow: 0 0 45px var(--shadow_card);
    border: 1px solid var(--border_default);
    border-radius: 16px;
  }

  .header { position: relative; border-radius: 16px 16px 0 0; }

  .bottom { position: fixed; }
}

/* PROVIDER / HOME BOTTOM / SIDEBAR */
.providers-section .provider-count {
  font-size: 9px;
  color: var(--text_secondary);
  border: 1px solid var(--border_hover);
  padding: 6px 8px;
  border-radius: 7px;
}

.provider-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }

.provider-item {
  min-height: 54px;
  border: 1px solid var(--border_default);
  border-radius: 9px;
  background: var(--bg_card);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 5px;
  color: var(--text_secondary);
  font-size: 9px;
  font-weight: 800;
}

.provider-item:hover { border-color: var(--primary); }

.home-bottom { padding: 14px 10px 0; }

.home-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }

.home-benefit {
  min-height: 42px;
  border: 1px solid var(--border_default);
  border-radius: 9px;
  background: var(--bg_card);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
}

.home-benefit-icon { font-size: 15px; color: var(--primary_light); }

.home-benefit-text { font-size: 10px; color: var(--text_secondary); font-weight: 700; }

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 17px 0 10px;
  text-align: center;
}

.home-stat strong { display: block; color: var(--primary_light); font-size: 14px; }

.home-stat span { font-size: 9px; color: var(--text_secondary); }

.home-responsible {
  text-align: center;
  color: var(--text_secondary);
  font-size: 10px;
  padding: 8px 0 17px;
  border-bottom: 1px solid var(--border_default);
}

.home-section { text-align: center; padding: 18px 10px 0; }

.home-section h3 { text-transform: uppercase; font-size: 12px; margin: 0 0 10px; }

.home-section p { font-size: 10px; line-height: 1.6; color: var(--text_secondary); margin: 0 auto; max-width: 360px; }

.home-links { display: flex; flex-direction: column; gap: 9px; }

.home-links a { font-size: 10px; color: var(--text_secondary); }

.home-contact > a { font-size: 10px; color: var(--primary_light); }

.home-socials { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }

.home-socials a {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border_default);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text_primary);
  font-weight: 800;
}

@media (max-width: 360px) { .provider-grid { grid-template-columns: repeat(2, 1fr); } }

/* MAXWIN TERBARU - continuous left marquee */
.games-marquee { position: relative; overflow: hidden; width: 100%; margin: 0 -1px; padding: 0 1px; }

.games-marquee:before,
.games-marquee:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  z-index: 2;
  pointer-events: none;
}

.games-marquee:before { left: 0; background: linear-gradient(90deg, var(--bg_card), transparent); }

.games-marquee:after { right: 0; background: linear-gradient(270deg, var(--bg_card), transparent); }

.games-track { display: flex; gap: 8px; width: max-content; transform: translateX(0); }

.games-track.is-ready { animation: maxwinLeft 18s linear infinite; }

.games-track:hover { animation-play-state: paused; }

.games-track .game {
  width: calc((min(100vw, 480px) - 44px) / 4);
  min-width: 88px;
  max-width: 106px;
  flex: 0 0 auto;
}

.game-real-img { background: var(--bg_card) !important; }

.game-real-img:before { display: none; }

.game-real-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.game-provider {
  position: absolute;
  left: 5px;
  bottom: 5px;
  z-index: 2;
  background: var(--bg_card);
  border: 1px solid var(--border_default);
  color: var(--text_primary);
  border-radius: 5px;
  padding: 3px 4px;
  font-size: 7px;
  font-weight: 800;
  max-width: calc(100% - 10px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-loading { font-size: 8px; color: var(--text_secondary); letter-spacing: 1px; }

.game-error { width: 100%; padding: 35px 0; text-align: center; color: var(--text_secondary); font-size: 10px; }

@keyframes maxwinLeft {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 4px)); }
}

@media (max-width: 360px) {
  .games-track .game { min-width: 78px; }
  .games-track.is-ready { animation-duration: 16s; }
}

@media (prefers-reduced-motion: reduce) { .games-track.is-ready { animation: none; } }

/* MAXWIN TERBARU - win display */
.games-marquee .game-win {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.games-marquee .game-user {
  margin-top: 3px;
  font-size: 9px;
  line-height: 1.2;
  color: var(--text_secondary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.games-marquee .game-user::first-letter { color: var(--text_secondary); }

.games-marquee .game-provider { display: none !important; }

.games-marquee .game-meta { display: none !important; }

/* ===== MAXWIN TERBARU - FINAL POLISH ===== */
.maxwin-latest-section { overflow: hidden; }

.maxwin-latest-section .section-title { letter-spacing: 0.2px; }

.games-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 2px 0 8px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.games-marquee .games-track {
  display: flex;
  width: max-content;
  gap: 10px;
  will-change: transform;
  animation: maxwinMarquee 32s linear infinite;
  animation-play-state: running !important;
}

.games-marquee:hover .games-track,
.games-marquee .games-track:hover,
.games-marquee .games-track.is-ready {
  animation-play-state: running !important;
}

.games-marquee .game {
  flex: 0 0 112px;
  width: 112px;
  min-width: 112px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.games-marquee .game-img {
  width: 112px;
  height: 138px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bg_card);
  border: 1px solid var(--border_default);
  box-shadow: 0 5px 18px var(--shadow_card);
}

.games-marquee .game-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.games-marquee .game:hover .game-img img { transform: scale(1.035); filter: brightness(1.06); }

.games-marquee .game-name {
  margin-top: 7px;
  min-height: 28px;
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  color: var(--text_primary);
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.games-marquee .game-win {
  margin-top: 4px;
  font-size: 11px;
  line-height: 14px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  letter-spacing: 0.05px;
}

.games-marquee .game-user,
.games-marquee .game-provider,
.games-marquee .game-meta { display: none !important; }

@keyframes maxwinMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 480px) {
  .games-marquee .games-track {
    gap: 9px;
    animation-duration: 29s;
  }

  .games-marquee .game,
  .games-marquee .game-img {
    width: 108px;
    min-width: 108px;
  }

  .games-marquee .game-img { height: 134px; }

  .games-marquee .game-name { font-size: 10.5px; }

  .games-marquee .game-win { font-size: 10.5px; }
}

/* PREMIUM CATEGORY + PROVIDER VISUALS */
.cat-row {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 7px !important;
  overflow: visible !important;
}

.cat {
  min-width: 0 !important;
  height: 74px !important;
  padding: 8px 4px !important;
  border: 1px solid var(--border_default) !important;
  border-radius: 13px !important;
  background: linear-gradient(145deg, var(--bg_card), var(--bg_card_darker)) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  position: relative;
  overflow: hidden;
  transition: 0.2s ease !important;
}

.cat:before {
  content: "";
  position: absolute;
  inset: -25px;
  background: radial-gradient(circle at 50% 0, var(--shadow_button), transparent 52%);
  pointer-events: none;
}

.cat-art {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 21px;
  font-weight: 950;
  color: var(--primary_light);
  background: linear-gradient(145deg, var(--bg_icon), var(--bg_card_darker));
  border: 1px solid var(--shadow_button);
  box-shadow: 0 7px 18px var(--shadow_card), inset 0 0 13px var(--shadow_button);
}

.cat span:last-child {
  position: relative;
  font-size: 7px !important;
  font-weight: 950 !important;
  letter-spacing: 0.6px !important;
  color: var(--text_secondary) !important;
}

.cat.active,
.cat:hover {
  border-color: var(--primary) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 9px 22px var(--shadow_card), inset 0 0 20px var(--shadow_button) !important;
}

.cat.active span:last-child { color: var(--primary_light) !important; }

.cat-slots .cat-art {
  color: var(--primary_light);
  background: linear-gradient(145deg, var(--bg_icon), var(--bg_card_darker));
}

.cat-togel .cat-art {
  color: var(--primary);
  background: linear-gradient(145deg, var(--bg_card_darker), var(--bg_card_darker));
}

.cat-casino .cat-art {
  color: var(--primary_light);
  background: linear-gradient(145deg, var(--bg_card_darker), var(--bg_card_darker));
}

.cat-egame .cat-art {
  color: var(--primary_light);
  background: linear-gradient(145deg, var(--bg_card_darker), var(--bg_card_darker));
}

.cat-fishing .cat-art {
  color: var(--primary_light);
  background: linear-gradient(145deg, var(--bg_card_darker), var(--bg_card_darker));
}

.provider-grid-premium { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px !important; }

.provider-card {
  min-height: 78px !important;
  position: relative;
  justify-content: flex-start !important;
  gap: 7px !important;
  padding: 10px !important;
  text-align: left !important;
  overflow: hidden;
}

.provider-card:after {
  content: "";
  position: absolute;
  right: -25px;
  bottom: -32px;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--shadow_button), transparent 68%);
  pointer-events: none;
}

.provider-mark {
  width: 38px;
  height: 31px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--bg_card);
  border: 1px solid var(--border_default);
  flex: 0 0 38px;
  box-shadow: inset 0 0 12px var(--shadow_card);
}

.provider-mark b { font-size: 13px; font-weight: 1000; letter-spacing: -1px; }

.mark-pragmatic,
.provider-pragmatic b { color: var(--primary); }

.mark-pg,
.provider-pg b { color: var(--text_primary); }

.mark-88,
.provider-slot88 b { color: var(--primary_light); }

.mark-generic { color: var(--primary); }

.provider-label {
  font-size: 7px !important;
  font-weight: 950 !important;
  letter-spacing: 0.25px;
  color: var(--text_secondary) !important;
  line-height: 1.25;
  max-width: calc(100% - 48px);
  white-space: normal !important;
  text-align: left !important;
}

.provider-arrow { position: absolute; right: 9px; bottom: 8px; color: var(--text_secondary); font-size: 14px; line-height: 1; }

.provider-card:hover .provider-mark { border-color: var(--primary); box-shadow: 0 0 16px var(--shadow_button); }

@media (max-width: 700px) {
  .cat-row { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .provider-grid-premium { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (min-width: 1000px) {
  .cat-row { grid-template-columns: repeat(6, 1fr) !important; }
  .provider-grid-premium { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
}

.latest-game-badge {
  position: absolute;
  left: 6px;
  top: 6px;
  z-index: 4;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--bg_card);
  border: 1px solid var(--shadow_button);
  color: var(--primary_light);
  font-size: 6px;
  font-weight: 1000;
  letter-spacing: 0.6px;
  backdrop-filter: blur(4px);
}

.games-marquee .game-img { position: relative; overflow: hidden; }

.games-marquee .game-img img { transition: transform 0.25s ease; }

.games-marquee .game:hover .game-img img { transform: scale(1.04); }

/* =========================================================
   RESPONSIVE SYSTEM — keep existing structure, improve sizing
   ========================================================= */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img, video, iframe { max-width: 100%; }

.app { width: 100%; max-width: 480px; margin-inline: auto; }

.header { min-width: 0; }

.header .brand-logo { min-width: 0; }

.auth { flex: 0 0 auto; white-space: nowrap; }

.auth a { white-space: nowrap; }

.cat-row { width: 100%; min-width: 0; }

.cat { min-width: 0; }

.games,
.toto-grid,
.provider-grid,
.provider-grid-premium { width: 100%; min-width: 0; }

.game,
.game-img,
.game-name,
.game-meta { min-width: 0; }

.section-head { min-width: 0; }

.section-head h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.notice,
.notice-marquee { min-width: 0; }

.hero-card { width: 100%; max-width: 100%; }

.home-bottom { width: auto; max-width: 100%; }

/* Attractive category logo tiles without changing the existing links/layout */
.cat { position: relative; overflow: hidden; gap: 5px; padding: 6px 3px; }

.cat:before {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  top: 7px;
  opacity: 0.16;
  filter: blur(0.2px);
  background: radial-gradient(circle, var(--primary_light), transparent 68%);
}

.cat-art {
  position: relative;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 1000;
  line-height: 1;
  color: var(--primary_light);
  border: 1px solid var(--shadow_button);
  background: linear-gradient(145deg, var(--bg_icon), var(--bg_card_darker));
  box-shadow: inset 0 0 12px var(--shadow_button), 0 4px 12px var(--shadow_card);
}

.cat-top .cat-art {
  color: var(--primary_light);
  background: linear-gradient(145deg, var(--bg_icon), var(--bg_card_darker));
}

.cat-slots .cat-art {
  color: var(--primary);
  background: linear-gradient(145deg, var(--bg_icon), var(--bg_card_darker));
}

.cat-togel .cat-art {
  color: var(--primary);
  background: linear-gradient(145deg, var(--bg_card_darker), var(--bg_card_darker));
}

.cat-casino .cat-art {
  color: var(--primary_light) !important;
  background: linear-gradient(145deg, var(--bg_card_darker), var(--bg_card_darker));
}

.cat-egame .cat-art {
  color: var(--primary);
  background: linear-gradient(145deg, var(--bg_icon), var(--bg_card_darker));
}

.cat-fishing .cat-art {
  color: var(--primary_light) !important;
  background: linear-gradient(145deg, var(--bg_icon), var(--bg_card_darker));
}

.cat.active .cat-art {
  border-color: var(--shadow_button);
  box-shadow: 0 0 18px var(--shadow_button), inset 0 0 12px var(--shadow_button);
}

.cat span:last-child { position: relative; }

@media (min-width: 700px) {
  body { padding: 20px 0; background: var(--bg_page_darker); }

  .app {
    max-width: 1200px;
    min-height: calc(100vh - 40px);
    border: 1px solid var(--border_default);
    border-radius: 18px;
    box-shadow: 0 0 55px var(--shadow_card);
  }

  .header { border-radius: 17px 17px 0 0; padding-left: 18px; padding-right: 18px; }

  .hero { padding-left: 18px; padding-right: 18px; }

  .section { padding-left: 18px; padding-right: 18px; }

  .home-bottom { margin-left: 18px; margin-right: 18px; }

  .cat-row { gap: 10px; }

  .cat { height: 78px; }

  .cat-art { width: 36px; height: 36px; font-size: 19px; }

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

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

  .provider-grid,
  .provider-grid-premium { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }

  .home-benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .home-stats { max-width: 700px; margin-left: auto; margin-right: auto; }

  .float-menu { right: 20px; }

  .bottom { width: min(calc(100% - 40px), 1200px); border-radius: 0 0 18px 18px; }
}

@media (min-width: 1100px) {
  .app { max-width: 1280px; }

  .section { padding-left: 24px; padding-right: 24px; }

  .hero { padding-left: 24px; padding-right: 24px; }

  .home-bottom { margin-left: 24px; margin-right: 24px; }

  .games { gap: 12px; }

  .game-img { border-radius: 11px; }
}

@media (max-width: 700px) {
  .header { gap: 7px; padding-left: 8px; padding-right: 8px; }

  .logo {
    font-size: 15px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .auth { gap: 5px; }

  .auth a { padding-left: 9px; padding-right: 9px; font-size: 10px; }

  .hero-title { font-size: 25px; }

  .cat-row { gap: 5px; }

  .cat { height: 66px; }

  .cat-art { width: 29px; height: 29px; font-size: 15px; }

  .section { padding-left: 9px; padding-right: 9px; }

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

  .game-name { font-size: 9px; }

  .game-meta { font-size: 8px; }

  .toto-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .provider-grid,
  .provider-grid-premium { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .home-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .home-benefit-text { font-size: 10px; }
}

@media (max-width: 380px) {
  .header { padding-left: 6px; padding-right: 6px; }

  .auth a { padding-left: 7px; padding-right: 7px; font-size: 9px; }

  .cat-row { gap: 4px; }

  .cat { height: 63px; }

  .cat-art { width: 27px; height: 27px; font-size: 14px; }

  .cat span:last-child { font-size: 8px; }

  .games { gap: 6px; }

  .home-benefits { gap: 6px; }

  .home-benefit { padding: 8px; }
}

/* Final UI tuning: preserve original category layout, improve spacing */
.header { gap: 10px; }

.header .brand-logo {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 145px;
  height: 34px;
  object-fit: contain;
  margin-left: 8px;
  margin-right: auto;
}

.header .logo { flex: 1 1 auto; margin-left: 8px; margin-right: auto; }

.auth { margin-left: auto; gap: 8px; }

.auth a { flex: 0 0 auto; }

.cat-row { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 6px !important; }

.cat {
  height: 67px !important;
  border-radius: 11px !important;
  background: var(--bg_card) !important;
  border: 1px solid var(--border_default) !important;
  box-shadow: none !important;
  transform: none !important;
}

.cat:before { display: none !important; }

.cat-art {
  width: 39px !important;
  height: 39px !important;
  border-radius: 10px !important;
  font-size: 22px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.cat span:last-child {
  font-size: 9px !important;
  color: var(--text_secondary) !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

.cat.active {
  border-color: var(--primary) !important;
  background: linear-gradient(180deg, var(--bg_card_gradient_start), var(--bg_card)) !important;
}

.cat.active span:last-child { color: var(--text_primary) !important; }

.cat-top .cat-art { color: var(--primary_light); }

.cat-slots .cat-art { color: var(--primary); }

.cat-togel .cat-art { color: var(--primary); }

.cat-casino .cat-art { color: var(--primary_light); }

.cat-egame .cat-art { color: var(--primary); }

.cat-fishing .cat-art { color: var(--primary_light); }

.provider-grid-premium { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px !important; }

.provider-card { min-height: 58px !important; padding: 7px 7px !important; }

.provider-mark {
  width: 34px !important;
  height: 34px !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 34px !important;
  border-radius: 9px !important;
}

.provider-mark b { font-size: 12px !important; font-weight: 1000 !important; letter-spacing: -0.6px !important; }

.provider-label { font-size: 8px !important; line-height: 1.1 !important; }

@media (min-width: 701px) {
  .cat { height: 70px !important; }

  .cat-art { width: 42px !important; height: 42px !important; font-size: 24px !important; }

  .header .brand-logo { max-width: 155px; height: 36px; margin-left: 12px; }

  .auth { gap: 10px; }

  .auth a { padding-left: 13px; padding-right: 13px; }

  .provider-grid-premium { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
}

@media (max-width: 700px) {
  .header .brand-logo { max-width: 125px; height: 32px; margin-left: 10px; }

  .header .logo { margin-left: 10px; }

  .auth { gap: 8px; }

  .auth a { padding-left: 10px !important; padding-right: 10px !important; }

  .cat-row { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }

  .cat { height: 65px !important; }

  .cat-art { width: 34px !important; height: 34px !important; font-size: 20px !important; }

  .provider-grid-premium { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (max-width: 430px) {
  .header { gap: 6px; padding-left: 7px; padding-right: 7px; }

  .header .brand-logo { max-width: 112px; height: 30px; margin-left: 8px; }

  .auth { gap: 6px; }

  .auth a { padding-left: 8px !important; padding-right: 8px !important; font-size: 9px !important; }

  .cat-row { gap: 4px !important; }

  .cat { height: 63px !important; }

  .cat-art { width: 31px !important; height: 31px !important; font-size: 18px !important; }

  .cat span:last-child { font-size: 8px !important; }
}

/* =========================================================
   BLACK yellow THEME — visual colors/background only
   ========================================================= */
:root {
  --bg: var(--bg_page);
  --panel: var(--bg_card);
  --panel2: var(--bg_card_darker);
  --gold: var(--primary);
  --gold2: var(--primary);
  --text: var(--text_primary);
  --muted: var(--text_secondary);
  --line: var(--border_default);
  --yellow: var(--primary);
}

html, body {
  background: var(--bg_page_darker) !important;
  color: var(--text_primary) !important;
}

body {
  background-image: linear-gradient(var(--bg_card), var(--bg_card)), none !important;
  background-position: center top !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}

.app {
  background: linear-gradient(180deg, var(--bg_card), var(--bg_card) 55%, var(--bg_card)) !important;
  border-color: var(--border_default) !important;
}

.header,
.side-head {
  background: var(--bg_card) !important;
  border-color: var(--border_default) !important;
}

.icon-btn,
.search-btn,
.more,
.float-menu a,
.side-tab,
.side-promo-card,
.side-link,
.side-auth .side-login,
.provider-item,
.home-benefit,
.home-socials a,
.register-progress,
.register-note,
.games-marquee .game-provider {
  background: var(--bg_icon) !important;
  border-color: var(--border_default) !important;
}

.logo,
.bottom .active,
.home-stat strong,
.home-contact > a,
.home-links a:hover,
.side-link:hover,
.side-link.active,
.side-tab.active,
.side-icon,
.section-head h2:after,
.game-meta,
.register-login a,
.eyebrow,
.hero-kicker {
  color: var(--primary) !important;
}

.register {
  background: linear-gradient(135deg, var(--primary), var(--primary)) !important;
  border-color: var(--primary) !important;
  color: var(--btn_text) !important;
}

.login,
.head-login {
  background: var(--bg_icon) !important;
  border-color: var(--border_default) !important;
  color: var(--text_primary) !important;
}

.hero-card {
  border-color: var(--border_default) !important;
  background:
    radial-gradient(circle at 75% 40%, var(--shadow_button), transparent 28%),
    linear-gradient(135deg, var(--bg_page_dark), var(--bg_card_gradient_start) 55%, var(--bg_card)) !important;
}

.hero-orb {
  background: radial-gradient(circle at 38% 35%, var(--primary) 0%, var(--primary) 28%, var(--border_default) 55%, transparent 70%) !important;
}

.hero-btn,
.bottom .center span,
.register-submit {
  background: linear-gradient(135deg, var(--primary_light), var(--primary)) !important;
  color: var(--btn_text) !important;
  border-color: var(--primary) !important;
}

.more { color: var(--primary) !important; }

.notice { border-color: var(--border_default) !important; color: var(--text_secondary) !important; }

.dot { background: var(--primary) !important; }

.cat,
.provider-item,
.home-benefit,
.toto,
.game-img,
.side-promo-card,
.side-tab,
.side-auth .side-login {
  border-color: var(--border_default) !important;
}

.cat,
.toto,
.game-img {
  background: linear-gradient(145deg, var(--bg_card), var(--bg_page_dark)) !important;
}

.cat.active,
.side-tab.active {
  border-color: var(--primary) !important;
  background: linear-gradient(180deg, var(--bg_card_gradient_start), var(--bg_card)) !important;
}

.cat.active span,
.cat.active svg { color: var(--primary) !important; stroke: var(--primary) !important; }

.side-link:hover,
.side-link.active { background: var(--bg_icon) !important; border-color: var(--border_hover) !important; }

.side-link:hover .side-icon,
.side-link.active .side-icon { color: var(--primary) !important; }

.side-divider,
.home-responsible,
.footer-content .footerlink.version-sec {
  background-color: transparent !important;
  border-color: var(--border_default) !important;
}

.bottom { background: var(--bg_card) !important; border-color: var(--border_default) !important; }

.bottom .center span {
  border-color: var(--bg_card) !important;
  box-shadow: 0 5px 20px var(--shadow_card), 0 0 20px var(--shadow_button) !important;
}

.float-menu a { color: var(--text_secondary) !important; }

.provider-item:hover,
.home-socials a:hover { border-color: var(--primary) !important; color: var(--primary) !important; }

.home-bottom { color: var(--text_primary) !important; }

.home-responsible { color: var(--text_secondary) !important; }

.home-section h3 { color: var(--text_primary) !important; }

.home-section p,
.home-links a { color: var(--text_secondary) !important; }

.home-benefit-icon { background: var(--bg_card) !important; color: var(--primary) !important; }

.register-page {
  background: linear-gradient(var(--bg_card), var(--bg_card)), none center top / cover fixed no-repeat !important;
}

.register-card { background: linear-gradient(155deg, var(--bg_card), var(--bg_page_dark)) !important; border-color: var(--border_default) !important; }

.register-head p,
.register-card-head p,
.register-login { color: var(--text_secondary) !important; }

.register-progress { background: var(--bg_input) !important; }

.register-progress span.active { color: var(--primary) !important; }

.register-progress .active b {
  background: linear-gradient(145deg, var(--primary), var(--primary)) !important;
  color: var(--btn_text) !important;
}

.section-title { color: var(--primary) !important; }

.section-title:after { background: var(--border_default) !important; }

.field input { background: var(--bg_input) !important; border-color: var(--border_default) !important; }

/* BRAND HORN + ABOUT PATCH */
.notice-mic svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: 50% 50%;
  animation: noticeHornShake 0.72s ease-in-out infinite;
}

@keyframes noticeHornShake {
  0%, 100% { transform: rotate(0deg) translateX(0); }
  20% { transform: rotate(-7deg) translateX(-1px); }
  40% { transform: rotate(7deg) translateX(1px); }
  60% { transform: rotate(-5deg) translateX(-1px); }
  80% { transform: rotate(5deg) translateX(1px); }
}

.home-about { text-align: left !important; }

.home-about h3 { max-width: none !important; text-align: left !important; line-height: 1.45; }

.home-about h4 { margin: 22px 0 12px; color: var(--text_primary); font-size: 14px; line-height: 1.45; }

.home-about p { max-width: none !important; text-align: left !important; line-height: 1.75; }

.home-about ul { margin: 16px 0 0; padding-left: 21px; color: var(--text_secondary); font-size: 11px; line-height: 1.75; }

.home-about li { padding-left: 2px; margin: 8px 0; }

.home-about li strong,
.home-about p strong { color: var(--text_primary); }

@media (prefers-reduced-motion: reduce) { .notice-mic svg { animation: none; } }

/* END BRAND HORN + ABOUT PATCH */

/* YELLOW DARK FINAL: colors only; original layout remains untouched. */
html, body { background-color: var(--bg_page_dark) !important; }

body,
.app,
.page,
.main,
.main-content,
.content,
.content-wrapper,
.page-content { background-color: var(--bg_page_dark) !important; }

.header,
.topbar,
.top-bar,
.navbar,
.sidebar,
.side-bar,
.side-menu,
.footer,
.bottom-menu,
.home-bottom,
.mobile-bottom,
.bottom-nav { background-color: var(--bg_page_dark) !important; border-color: var(--primary) !important; }

button,
.btn,
.button,
.btn-primary,
.btn-success,
.submit,
.register,
.register-submit {
  background-color: var(--primary) !important;
  background-image: none !important;
  color: var(--btn_text) !important;
  border-color: var(--primary) !important;
}

.section-title,
.section-head h2,
.title,
.heading,
.logo,
.active,
.text-success,
.text-yellow,
.yellow,
.game-meta,
.togel-title { color: var(--primary) !important; }

.card,
.game-card,
.game,
.provider,
.category,
.cat,
.grid-item,
.menu-item,
.side-link,
.home-info-card { border-color: var(--primary) !important; }

/* YELLOW DARK FINAL COLOR OVERRIDE — layout/logic untouched */
html, body { background: var(--bg_page_dark) !important; }

body,
.app,
.page,
.main,
.content,
.main-content,
.page-content,
.mobile-page { background-color: var(--bg_page_dark) !important; }

.sidebar,
.side-panel,
.sidebar-panel,
.side-nav,
.mobile-sidebar,
.offcanvas,
.drawer,
.menu-sidebar {
  background-color: var(--bg_page_dark) !important;
  background-image: none !important;
}

.sidebar *,
.side-panel *,
.sidebar-panel *,
.side-nav *,
.mobile-sidebar *,
.offcanvas *,
.drawer *,
.menu-sidebar * { --yellow: var(--primary) !important; }

.text-success,
.text-yellow,
.yellow,
.success,
.is-yellow,
[class*="yellow"],
[class*="success"] { color: var(--primary) !important; }

/* YELLOW DARK FINAL COLOR OVERRIDE — colors only */
html, body { background-color: var(--bg_page_dark) !important; }

.sidebar,
.side-bar,
.sidebar-menu,
.offcanvas,
.drawer,
.menu-sidebar {
  background-color: var(--bg_page_dark) !important;
  background-image: none !important;
}

/* YELLOW DARK FINAL OVERRIDE — footer and navigation icons */
.bottom i,
.bottom svg,
.bottom .icon,
.bottom a,
.footer i,
.footer svg,
.footer .icon,
.footer a,
.fixed-bottom i,
.fixed-bottom svg,
.mobile-footer i,
.mobile-footer svg,
.nav-bottom i,
.nav-bottom svg { color: var(--primary) !important; }

.sidebar i,
.sidebar svg,
.side-menu i,
.side-menu svg,
.drawer i,
.drawer svg,
.game-menu i,
.game-menu svg,
.provider i,
.provider svg { color: var(--primary) !important; stroke: var(--primary) !important; }

html, body { background: var(--bg_page_dark) !important; }

/* YELLOW DARK FOOTER ICON COLOR ONLY */
.bottom svg,
.footer svg,
.fixed-bottom svg,
.mobile-footer svg,
.nav-bottom svg { color: var(--primary) !important; fill: none !important; stroke: currentColor !important; }

.bottom svg path,
.bottom svg line,
.bottom svg polyline,
.bottom svg polygon,
.bottom svg circle,
.bottom svg rect,
.footer svg path,
.footer svg line,
.footer svg polyline,
.footer svg polygon,
.footer svg circle,
.footer svg rect { fill: none !important; stroke: currentColor !important; }

/* YELLOW DARK: preserve original center footer icon visibility */
.bottom .center span svg,
.bottom .center span svg path,
.bottom .center span svg line,
.bottom .center span svg circle,
.bottom .center span svg rect,
.bottom .center span svg polyline,
.bottom .center span svg polygon {
  color: var(--btn_text) !important;
  stroke: var(--btn_text) !important;
  fill: none !important;
}

.bottom .center span svg { opacity: 1 !important; }
