/* Nexus public layout: retain theme artwork/palettes and reserve real content space. */
body[data-site-theme] {
  --layout-accent: #e4af74;
  --layout-rule: rgba(228, 175, 116, .3);
  --layout-empty-surface: #0c1b38;
}
body[data-site-theme="abu-hitam"] { --layout-accent: #d7dbe1; --layout-rule: rgba(215, 219, 225, .3); --layout-empty-surface: #26282e; }
body[data-site-theme="merah-kuning"] { --layout-accent: #fcd01c; --layout-rule: rgba(252, 208, 28, .3); --layout-empty-surface: #520f17; }
body[data-site-theme] .site-brand-name {
  display: block; max-width: 100%; font-size: clamp(18px, 3vw, 28px);
  font-weight: 800; line-height: 1.2; letter-spacing: -.03em; overflow-wrap: anywhere;
}
body[data-site-theme] .header-logo a,
body[data-site-theme] .mobile-logo a { display: block; color: #fff; text-decoration: none; }
body[data-site-theme] .header-mobile__top {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 12px; min-height: 64px; height: auto; padding: 10px 12px;
}
body[data-site-theme] .header-mobile .mobile-logo { min-width: 0; width: auto; }
body[data-site-theme] .header-mobile .mobile-button { min-width: 0; margin: 0; }
body[data-site-theme] .header-mobile__marquee {
  display: flex; align-items: center; gap: 8px; min-height: 30px; height: auto; padding: 5px 12px;
}
body[data-site-theme] .header-mobile__marquee .marquee { width: 100%; min-width: 0; line-height: 1.5; }
body[data-site-theme] .home .home__jackpot { padding-block: 16px; }
body[data-site-theme] .home .home__menu { padding-block: 24px; }
body[data-site-theme] .home .home-category-link { border-radius: 12px; }
body[data-site-theme] .home .home-category-link:focus-visible { outline: 3px solid var(--layout-accent); outline-offset: 3px; }
body[data-site-theme] .home .home-category-grid .games-name { white-space: normal; overflow-wrap: anywhere; line-height: 1.4; padding: 8px 4px; }
body[data-site-theme] .home .home__menu .menu-container .menu-right .menu-games { gap: 16px !important; }
body[data-site-theme] .home .home__menu .menu-container .menu-right .menu-slider > .row { gap: 16px; }
body[data-site-theme] .home .home__menu .menu-container .slider-cstmr,
body[data-site-theme] .home .home__menu .menu-container .slider-provider { border-radius: 12px; }
body[data-site-theme] .home .home__seo .seo-content { padding: 24px; border-radius: 12px; }
body[data-site-theme] .home .seo-content h1 { font-size: clamp(20px, 2.4vw, 30px); line-height: 1.3; margin: 0 0 12px; }
body[data-site-theme] .home .seo-content p { font-size: 14px; line-height: 1.7; margin: 0; }
body[data-site-theme] .bank-name-fallback { display: block; padding: 8px; color: #17212b; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
body[data-site-theme] .home .payment-maintenance-hint { font-size: 12px; line-height: 1.6; }
body[data-site-theme] .footer .footer__provider { padding-block: 28px; }
body[data-site-theme] .footer .footer__provider h3 { font-size: 22px; margin-bottom: 20px; }
body[data-site-theme] .footer .footer__trademark { padding: 16px; line-height: 1.6; }
body[data-site-theme] .home .mobile__category { padding: 12px 0 20px; }
body[data-site-theme] .home .mobile__category .category-container {
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important; align-items: stretch; max-width: 640px; margin-inline: auto;
}
body[data-site-theme] .home .mobile__category .category-container > a {
  width: auto !important; max-width: none !important; min-width: 0; text-decoration: none;
}
body[data-site-theme] .home .mobile__category .category-container .category-item {
  aspect-ratio: auto; width: 100% !important; height: 100% !important; min-height: 112px !important;
  padding: 10px 4px 8px; border-radius: 12px; box-shadow: none;
}
body[data-site-theme] .home .mobile__category .category-art { height: 68px; flex: 0 0 68px; }
body[data-site-theme] .home .mobile__category .category-container .category-item .name {
  font-size: 11px !important; width: 100%; line-height: 1.4; min-height: 31px; margin-top: 6px;
  overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere;
}
body[data-site-theme] .home .mobile__games { padding-block: 12px; }
body[data-site-theme] .home .mobile-download-container { gap: 10px; padding-block: 12px; }
body[data-site-theme] .home .mobile-download-container .download-title { min-width: 0; }
body[data-site-theme] .home .mobile-download-container .download-title h5 { overflow-wrap: anywhere; }
body[data-site-theme] .home .mobile__seo { padding: 24px 0 0; }
body[data-site-theme] .home .mobile__seo .seo-mobile { padding: 0; }
body[data-site-theme] .home .mobile__seo .seo-content { padding: 0 0 24px; }
body[data-site-theme] .home .home-footer-directory { padding: 0; margin-top: 0; gap: 24px; }
body[data-site-theme] .home .home-footer-directory__section { padding-top: 20px; border-top: 1px solid var(--layout-rule); }
body[data-site-theme] .home .home-footer-directory__title {
  display: block !important; visibility: visible; color: inherit; font-size: 17px; line-height: 1.4; margin: 0 0 12px;
}
body[data-site-theme] .home .home-footer-directory__item { border-radius: 10px; }
body[data-site-theme] .home .home-footer-directory__name { font-size: 12px; line-height: 1.4; }
body[data-site-theme] .home .home-footer-directory__hint { padding: 12px; font-size: 12px; line-height: 1.6; margin-top: 12px; }
body[data-site-theme] .home-empty-state { margin: 0; padding: 18px 12px; font-size: 13px; line-height: 1.6; text-align: center; }
body[data-site-theme] .mobile__games .home-empty-state { color: #f1f3f5; background: var(--layout-empty-surface); border-radius: 8px; }
body[data-site-theme] .slide-game-favorit .home-empty-state { margin-top: 24px; }
body[data-site-theme] .home .pembarayan-swiper .bank-content { min-width: 110px; }
body[data-site-theme] .home .pembarayan-swiper .bank-logo { width: 100%; min-width: 100px; }
@media (min-width: 992px) {
  body[data-site-surface="mobile"] #main-route { max-width: 960px; margin-inline: auto; }
  body[data-site-theme] .home .home__menu .menu-container { gap: 24px; grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) !important; }
  body[data-site-theme] .home .home__menu .menu-container .download-border { height: 360px !important; }
  body[data-site-theme] .home .home-category-art { height: 130px; }
  body[data-site-theme] .home .home__menu .menu-container .menu-right .menu-games { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 991.98px) {
  body[data-site-theme] { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  body[data-site-theme] .main-content.home { padding-bottom: 0 !important; }
  body[data-site-surface="dekstop"] .home .home__jackpot .jackpot-gif .jackpot-amount { left: 0 !important; width: 100%; padding-right: 0; }
  body[data-site-theme] .home .home__seo .seo-content { display: block; }
  body[data-site-theme] .footer-mobile.footer-mobile--standard {
    min-height: 66px; padding-bottom: env(safe-area-inset-bottom); border-top-width: 1px;
  }
  body[data-site-theme] .footer-mobile.footer-mobile--standard .footer-item--primary { padding-top: 8px; }
  body[data-site-theme] .footer-mobile.footer-mobile--standard .footer-item--primary::before { display: none; animation: none !important; }
  body[data-site-theme] .footer-mobile.footer-mobile--standard .footer-item--primary .footer-icon {
    position: static; width: 30px; height: 28px; min-height: 28px; border: 0; border-radius: 7px;
    transform: none; box-shadow: none; animation: none !important;
  }
  body[data-site-theme] .footer-mobile.footer-mobile--standard .footer-item--primary .footer-icon i { font-size: 18px; }
  body[data-site-theme] .footer-mobile.footer-mobile--standard .footer-title { white-space: normal; overflow: visible; line-height: 1.3; font-size: 10px; }
  body[data-site-theme] .home .home__menu .menu-container { margin-inline: 0; }
  body[data-site-theme] .home .home__menu .menu-container .menu-right { width: 100%; min-width: 0; }
  body[data-site-theme] .home .home__menu .menu-container .menu-right .menu-games {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; margin-inline: 0 !important;
  }
  body[data-site-theme] .home .home-category-art { height: 90px; }
  body[data-site-theme] .home .home-category-grid .games-name { font-size: 11px; }
  body[data-site-theme] .home .home__menu .menu-container .menu-right .menu-slider > .row { margin-inline: 0; }
}
@media (max-width: 575.98px) {
  body[data-site-theme] .home .home__menu .menu-container .menu-right .menu-games { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body[data-site-theme] .home .home__payment .payment-content { padding: 20px; min-height: 0; }
  body[data-site-theme] .home .home__payment .payment-content .payment-header .payment-title { font-size: 18px; }
}

/* ==========================================================================
   Adaptive Theme UI Tokens & Contrast Standardization
   ========================================================================== */
body[data-site-theme] {
  --ui-text: #f0f4fc;
  --ui-muted: #a0b3d6;
  --ui-surface: #0f203e;
  --ui-surface-card: #162c54;
  --ui-border: rgba(228, 175, 116, 0.25);
  --ui-accent: #e4af74;
  --ui-accent-hover: #f3cc9e;
  --ui-accent-text: #0b172d;
}

body[data-site-theme="biru-kuning"] {
  --ui-text: #f0f4fc;
  --ui-muted: #a0b3d6;
  --ui-surface: #0f203e;
  --ui-surface-card: #162c54;
  --ui-border: rgba(228, 175, 116, 0.25);
  --ui-accent: #e4af74;
  --ui-accent-hover: #f3cc9e;
  --ui-accent-text: #0b172d;
}

body[data-site-theme="abu-hitam"] {
  --ui-text: #f3f4f6;
  --ui-muted: #9ca3af;
  --ui-surface: #1f2127;
  --ui-surface-card: #282b32;
  --ui-border: rgba(255, 255, 255, 0.12);
  --ui-accent: #d7dbe1;
  --ui-accent-hover: #ffffff;
  --ui-accent-text: #111215;
}

body[data-site-theme="merah-kuning"] {
  --ui-text: #fff9e6;
  --ui-muted: #e2b8b8;
  --ui-surface: #420d14;
  --ui-surface-card: #58131d;
  --ui-border: rgba(252, 208, 28, 0.25);
  --ui-accent: #fcd01c;
  --ui-accent-hover: #ffe066;
  --ui-accent-text: #3a0a10;
}

/* --------------------------------------------------------------------------
   Public Help Center / FAQ Styles
   -------------------------------------------------------------------------- */
body[data-site-theme] .help-center-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 15px;
}
body[data-site-theme] .help-title {
  color: var(--ui-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
body[data-site-theme] .help-subtitle {
  color: var(--ui-muted);
  font-size: 0.9rem;
}
body[data-site-theme] .help-search-box {
  max-width: 480px;
  margin: 0 auto;
}
body[data-site-theme] .help-search-input {
  background: var(--ui-surface);
  color: var(--ui-text);
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  padding: 10px 14px;
}
body[data-site-theme] .help-search-input:focus {
  border-color: var(--ui-accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(228, 175, 116, 0.2);
}
body[data-site-theme] .help-cat-card {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  overflow: hidden;
  padding: 18px;
}
body[data-site-theme] .help-cat-heading {
  border-bottom: 1px solid var(--ui-border);
  padding-bottom: 10px;
}
body[data-site-theme] .help-cat-heading .cat-title {
  color: var(--ui-text);
}
body[data-site-theme] ol.help-faqs {
  padding-left: 1.25rem;
  margin-bottom: 0;
}
body[data-site-theme] .help-faq-item {
  background: var(--ui-surface-card);
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 0.2s ease;
  color: var(--ui-text);
}
body[data-site-theme] .help-faq-item::marker {
  color: var(--ui-accent);
  font-weight: bold;
}
body[data-site-theme] .help-faq-item:hover {
  border-color: var(--ui-accent);
}
body[data-site-theme] .help-faq-item summary {
  color: var(--ui-text);
  list-style: none;
  cursor: pointer;
}
body[data-site-theme] .help-faq-item summary::-webkit-details-marker {
  display: none;
}
body[data-site-theme] .help-faq-item .faq-answer {
  border-top: 1px dashed var(--ui-border);
  line-height: 1.6;
  color: var(--ui-muted);
  font-size: 0.9rem;
}
body[data-site-theme] .help-faq-item .faq-answer strong {
  color: var(--ui-text);
}

/* --------------------------------------------------------------------------
   Public News / Berita Styles
   -------------------------------------------------------------------------- */
body[data-site-theme] .news-single-wrapper,
body[data-site-theme] .news-list-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 15px;
}
body[data-site-theme] .news-back-btn {
  background: var(--ui-surface);
  color: var(--ui-text);
  border: 1px solid var(--ui-border);
  border-radius: 6px;
  padding: 6px 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
body[data-site-theme] .news-back-btn:hover {
  background: var(--ui-accent);
  color: var(--ui-accent-text);
  border-color: var(--ui-accent);
}
body[data-site-theme] .news-article-card {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  padding: 24px;
}
body[data-site-theme] .news-category-badge {
  background: var(--ui-accent);
  color: var(--ui-accent-text);
  font-weight: 700;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.75rem;
  display: inline-block;
}
body[data-site-theme] .news-date-text {
  color: var(--ui-muted);
  font-size: 0.8rem;
}
body[data-site-theme] .article-title {
  color: var(--ui-text);
  line-height: 1.4;
}
body[data-site-theme] .article-body {
  color: var(--ui-muted);
  line-height: 1.8;
  font-size: 0.95rem;
}
body[data-site-theme] .article-body strong {
  color: var(--ui-text);
}
body[data-site-theme] .news-title {
  color: var(--ui-accent);
  text-transform: uppercase;
}
body[data-site-theme] .news-subtitle {
  color: var(--ui-muted);
  font-size: 0.9rem;
}
body[data-site-theme] .news-filter-btn {
  background: var(--ui-surface);
  color: var(--ui-text);
  border: 1px solid var(--ui-border);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
body[data-site-theme] .news-filter-btn.active,
body[data-site-theme] .news-filter-btn:hover {
  background: var(--ui-accent);
  color: var(--ui-accent-text);
  border-color: var(--ui-accent);
  font-weight: 700;
}
body[data-site-theme] .news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
body[data-site-theme] .news-card {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
body[data-site-theme] .news-card:hover {
  transform: translateY(-2px);
  border-color: var(--ui-accent);
}
body[data-site-theme] .news-card-title {
  line-height: 1.4;
}
body[data-site-theme] .news-card-title a {
  color: var(--ui-text);
  text-decoration: none;
  transition: color 0.2s ease;
}
body[data-site-theme] .news-card-title a:hover {
  color: var(--ui-accent);
}
body[data-site-theme] .news-card-summary {
  color: var(--ui-muted);
  line-height: 1.5;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
body[data-site-theme] .news-read-more-btn {
  background: var(--ui-surface-card);
  color: var(--ui-accent);
  border: 1px solid var(--ui-border);
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: block;
  text-align: center;
  padding: 6px 0;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
body[data-site-theme] .news-read-more-btn:hover {
  background: var(--ui-accent);
  color: var(--ui-accent-text);
  border-color: var(--ui-accent);
}

/* --------------------------------------------------------------------------
   Public Forgot Password Styles
   -------------------------------------------------------------------------- */
body[data-site-theme] .forgot-password-wrapper {
  max-width: 480px;
  margin: 40px auto;
  padding: 20px;
}
body[data-site-theme] .forgot-password-card {
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  color: var(--ui-text);
}
body[data-site-theme] .forgot-password-icon {
  font-size: 2.5rem;
  color: var(--ui-accent);
}
body[data-site-theme] .forgot-password-title {
  color: var(--ui-text);
}
body[data-site-theme] .forgot-password-subtitle {
  color: var(--ui-muted);
}
body[data-site-theme] .forgot-password-alert-success {
  background: rgba(40, 167, 69, 0.2);
  border: 1px solid rgba(40, 167, 69, 0.4);
  color: #75b798;
  border-radius: 8px;
  padding: 12px;
}
body[data-site-theme] .forgot-password-alert-danger {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.4);
  color: #ea868f;
  border-radius: 8px;
  padding: 12px;
}
body[data-site-theme] .forgot-password-label {
  color: var(--ui-muted);
}
body[data-site-theme] .forgot-password-input {
  background: var(--ui-surface-card);
  color: var(--ui-text);
  border: 1px solid var(--ui-border);
  border-radius: 6px;
  padding: 10px 12px;
}
body[data-site-theme] .forgot-password-input:focus {
  border-color: var(--ui-accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(228, 175, 116, 0.2);
}
body[data-site-theme] .forgot-password-input:disabled {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ui-muted);
  border-color: var(--ui-border);
}
body[data-site-theme] .forgot-password-input-addon {
  background: var(--ui-surface);
  color: var(--ui-muted);
  border: 1px solid var(--ui-border);
  border-right: none;
}
body[data-site-theme] .forgot-password-submit-btn {
  background: var(--ui-accent);
  color: var(--ui-accent-text);
  padding: 10px;
  border-radius: 6px;
  border: none;
  transition: all 0.2s ease;
}
body[data-site-theme] .forgot-password-submit-btn:hover {
  background: var(--ui-accent-hover);
  color: var(--ui-accent-text);
}
body[data-site-theme] .forgot-password-footer {
  border-top: 1px solid var(--ui-border);
}
body[data-site-theme] .forgot-password-back-link {
  color: var(--ui-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
body[data-site-theme] .forgot-password-back-link:hover {
  color: var(--ui-accent);
}

