/* SARDENTOTO | V5.8 - one footer appearance across every mobile page.
   Loaded by the shared mobile/include/footer.php AFTER page-level CSS.
   Works with Theme Manager custom icons and old cached mobile.css versions.
   Does not alter any page body, gameplay, jackpot, or payment UI. */

/* Uniform width/height and centering for Home, RTP, Promo and Hubungi. */
.bottom-nav > .bottom-nav__item:not(.bottom-nav__item--center) > img {
  display: block !important;
  flex: 0 0 auto;
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  margin: 0 0 1px !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* Center profile icon is full-size without a second CSS ring/circle.
   Any ring already embedded in the selected PNG/WebP artwork is retained. */
.bottom-nav > .bottom-nav__item--center {
  overflow: visible !important;
}
.bottom-nav > .bottom-nav__item--center > .bottom-nav__emblem {
  position: absolute !important;
  left: 50% !important;
  bottom: 15px !important;
  transform: translateX(-50%) !important;
  display: grid !important;
  place-items: center !important;
  box-sizing: border-box !important;
  width: 82px !important;
  height: 82px !important;
  min-width: 82px !important;
  min-height: 82px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  font-size: 25px;
}
.bottom-nav > .bottom-nav__item--center > .bottom-nav__emblem > img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
}
/* Preserve any legacy markup which renders the profile artwork as direct IMG. */
.bottom-nav > .bottom-nav__item--center > img {
  position: absolute;
  left: 50%;
  bottom: 15px;
  transform: translateX(-50%);
  width: 82px !important;
  height: 82px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
}
.bottom-nav > .bottom-nav__item--center > span:last-child {
  position: relative;
  z-index: 2;
}

/* On Hubungi Kami, use the same actual icon file as the footer LiveChat icon. */
.contact-link__icon .st-contact-livechat-img {
  display: block;
  width: 23px;
  height: 23px;
  max-width: none;
  object-fit: contain;
  /* Darken gold artwork so it stays legible against the existing gold button. */
  filter: brightness(.22);
}

@media(max-width:365px) {
  .bottom-nav > .bottom-nav__item--center > .bottom-nav__emblem {
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    min-height: 76px !important;
  }
  .bottom-nav > .bottom-nav__item--center > img {
    width: 76px !important;
    height: 76px !important;
  }
}

/* MATADEWATOTO V8.9 - Global palette unification for member-facing UI.
   All colors derive from Setting Tema Pro. No logo/banner/QR artwork, balance,
   game/settlement or Togel invoice behavior is changed by this stylesheet.
   Loaded after existing CSS through the unified footer (cache version by mtime). */
.mobile-shell {
  --mdt-stroke: var(--st-theme-stroke, var(--gold-border, #54d8d2));
  --mdt-accent: var(--st-theme-accent, var(--gold, #50e1d8));
  --mdt-glow: var(--st-theme-glow, #12beb8);
  --mdt-button: var(--st-button-color, #40d5cd);
  --mdt-text: var(--st-text-color, #eaf8f8);
  --mdt-button-ink: #12292e;
  --mdt-button-light: color-mix(in srgb, var(--mdt-button) 72%, white);
  --mdt-button-dark: color-mix(in srgb, var(--mdt-button) 87%, #132629);
  --mdt-soft-glow: color-mix(in srgb, var(--mdt-glow) 30%, transparent);
}

/* Interactive text and dividers follow a single accent color. */
.mobile-shell :is(.page-title,.auth-page__title,.contact-panel__title,
  .promo-page__heading h1,.catalogue-title,.st-game-provider-name,
  .rtp-heading,.deposit-page__heading) {
  color: var(--mdt-accent);
}
.mobile-shell :is(.auth-page__switch a,.promo-detail__back,.promo-empty a,
  .st-catalogue-back a,.st-game-pagination a,.rtp-pages a,
  .deposit-fee,.deposit-history__detail summary) {
  color: var(--mdt-accent);
}
.mobile-shell .catalogue-title::after { background-color: var(--mdt-stroke); }
.mobile-shell :is(.category-shortcuts__item.is-active,.news-ticker__icon,
  .card-carousel__arrow,.category-shortcuts__arrow,.rtp-chooser__arrow,
  .auth-field__hash,.auth-field .login-field__reveal,
  .st-game-toolbar .st-game-search button,.st-catalogue-game-grid .st-search-symbol) {
  color: var(--mdt-accent);
}
.mobile-shell :is(.category-shortcuts__line span,.rtp-chooser__track span) {
  background: var(--mdt-accent);
}
.mobile-shell .category-shortcuts__item img {
  /* Icon art remains unchanged: only the outer glow is theme-colored. */
  filter: drop-shadow(0 0 5px var(--mdt-soft-glow));
}
.mobile-shell :is(.card-carousel__arrow,.category-shortcuts__arrow,.rtp-chooser__arrow) {
  text-shadow: 0 0 7px var(--mdt-soft-glow);
}
.mobile-shell .bottom-nav { border-top-color: var(--mdt-stroke); }
.mobile-shell .partner-grid__cell { border-color: var(--mdt-stroke); }
.mobile-shell .bottom-nav__item.is-active::after {
  background: var(--mdt-accent);
  box-shadow: 0 0 9px var(--mdt-soft-glow);
}

/* All primary CTAs use the same mint/gold theme setting and glossy geometry. */
.mobile-shell :is(.gold-button,.auth-submit,.deposit-submit,.contact-link,
  .promo-list__button,.login-required-dialog__action,.deposit-pending__refresh,
  .rtp-pattern__title,.drawer-login__actions > a) {
  border-color: var(--mdt-stroke);
  background: var(--mdt-button);
  background: linear-gradient(180deg, var(--mdt-button-light) 0%,
    var(--mdt-button) 52%, var(--mdt-button-dark) 100%);
  box-shadow: inset 0 1px 3px #ffffff6e, 0 2px 10px var(--mdt-soft-glow);
  color: var(--mdt-button-ink);
  text-shadow: none;
}
.mobile-shell .gold-button--login {
  border-color: var(--mdt-stroke);
  color: var(--mdt-button-ink);
  text-shadow: none;
}
.mobile-shell :is(.gold-button,.auth-submit,.deposit-submit,
  .contact-link,.promo-list__button,.login-required-dialog__action,
  .deposit-pending__refresh,.rtp-pattern__title):focus-visible {
  outline: 2px solid var(--mdt-accent);
  outline-offset: 2px;
}
.mobile-shell .deposit-submit:disabled,
.mobile-shell .auth-submit:disabled {
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
}
/* Inactive AUTO/BANK should stay dark, but use the same border and radius. */
.mobile-shell .deposit-modes__item {
  border-color: color-mix(in srgb, var(--mdt-stroke) 66%, #eeeeee);
  background: #101516d9;
  color: #f5fbfa;
}
.mobile-shell .deposit-modes__item.is-active {
  border-color: var(--mdt-stroke);
  background: linear-gradient(180deg, var(--mdt-button-light), var(--mdt-button-dark));
  color: var(--mdt-button-ink);
  box-shadow: 0 0 11px var(--mdt-soft-glow);
}

/* Form stroke consistency: guest forms, login/register, deposit/withdraw. */
.mobile-shell :is(.login-field,.auth-field .login-field,
  .deposit-control,.deposit-pending,.deposit-pending__destination,
  .login-required-dialog,.st-game-toolbar .st-game-search,
  .st-game-search input,.st-game-pagination a,
  .promo-empty,.promo-list__picture--empty,
  .rtp-empty,.rtp-pages a) {
  border-color: var(--mdt-stroke);
}
.mobile-shell .login-field:focus-within,
.mobile-shell .deposit-control:focus-within,
.mobile-shell .st-game-toolbar .st-game-search:focus-within {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--mdt-stroke) 27%, transparent);
}
.mobile-shell :is(.auth-form__status,.deposit-form__message,
  .deposit-pending__status) {
  border-color: var(--mdt-stroke);
  color: var(--mdt-accent);
}
.mobile-shell .deposit-control__copy {
  border-left-color: var(--mdt-stroke);
  color: var(--mdt-accent);
}
.mobile-shell .deposit-control__copy:active {
  background-color: color-mix(in srgb, var(--mdt-stroke) 20%, #171719);
}
.mobile-shell .deposit-control input[type="file"]::file-selector-button {
  background: var(--mdt-button);
  border-color: var(--mdt-stroke);
  color: var(--mdt-button-ink);
}
.mobile-shell .deposit-pending__copy {
  border-color: var(--mdt-stroke);
  color: var(--mdt-accent);
}
.mobile-shell :is(.deposit-pending__top h2,.deposit-pending__amount,
  .deposit-pending__label,.deposit-pending__account b,
  .deposit-pending__countdown strong,.deposit-history__detail summary) {
  color: var(--mdt-accent);
}
/* Maintain status meanings: green SUCCESS, red FAILED/CANCELLED remain semantic. */

/* Member quick-action cards and provider catalogue chrome. */
.mobile-shell .member-actions > a {
  border-color: var(--mdt-stroke);
  background: color-mix(in srgb, var(--mdt-button) 10%, #1d1c1d);
}
.mobile-shell .game-section__heading {
  border-left-color: var(--mdt-stroke);
  border-right-color: var(--mdt-stroke);
  color: var(--mdt-accent);
  box-shadow: 0 0 12px var(--mdt-soft-glow);
}
.mobile-shell .st-game-toolbar .st-game-search {
  border-color: var(--mdt-stroke);
}
.mobile-shell :is(.st-catalogue-game-grid .st-game-card--link,
 .rtp-provider,.rtp-game) {
  /* Do not put a fake colored frame around the original game artwork. */
  box-shadow: 0 2px 9px #0008;
}
.mobile-shell :is(.st-catalogue-game-grid .st-game-card--link:focus-visible,
  .st-catalogue-game-grid .st-game-card--link:hover,
  .st-catalogue-game-grid .st-game-launch-trigger:focus-visible,
  .rtp-game__launch:focus-visible) {
  outline-color: var(--mdt-stroke);
}
.mobile-shell :is(.st-game-pagination a,.rtp-pages a) {
  border-color: var(--mdt-stroke);
}

/* RTP: selected provider and POLA bar should no longer remain gold. */
.mobile-shell .rtp-provider.is-active {
  border-color: var(--mdt-stroke);
  box-shadow: 0 0 0 1px var(--mdt-stroke), 0 0 10px var(--mdt-soft-glow);
}
.mobile-shell .rtp-game__fill {
  background: repeating-linear-gradient(45deg,#ffffff25 0,#ffffff25 4px,transparent 4px,transparent 9px),
    linear-gradient(180deg, var(--mdt-button-light), var(--mdt-stroke));
}
.mobile-shell .rtp-pattern {
  background: color-mix(in srgb, var(--mdt-button) 12%, #1a1b1e);
}

/* Contact and download strip: same accent even without image replacements. */
.mobile-shell .app-banner {
  border-bottom-color: var(--mdt-stroke);
  background: linear-gradient(110deg, #132124,
    color-mix(in srgb, var(--mdt-button) 19%, #142126) 48%, #132124);
  box-shadow: inset 0 0 17px var(--mdt-soft-glow);
}
.mobile-shell .app-banner__symbol {
  border-color: var(--mdt-stroke);
  box-shadow: 0 0 11px var(--mdt-soft-glow);
}
.mobile-shell .app-banner__copy strong { color: var(--mdt-accent); }
.mobile-shell .app-banner__copy small { color: var(--mdt-text); }
.mobile-shell .contact-panel {
  background: radial-gradient(circle at 6% 72%, var(--mdt-soft-glow), transparent 30%),
    radial-gradient(circle at 95% 71%, var(--mdt-soft-glow), transparent 30%),
    linear-gradient(#00000018,#00000020);
}
.mobile-shell .contact-link__icon img { filter: brightness(.28); }
.mobile-shell .promo-list__button { color: var(--mdt-button-ink); }
.mobile-shell .site-toast { border-color: var(--mdt-stroke); }

/* Do not recolor uploaded PNG/WebP assets, logos, banners, provider images,
   jackpot artwork, or any special Togel invoice/bet controls. */


/* MATADEWATOTO V9.0: single visual layer applied AFTER page-specific styles.
 * This is presentation-only. Keep uploaded imagery, payment/status semantics,
 * PHP forms, data bindings, and lottery calculation logic unchanged.
 * Theme Manager values still flow through --st-theme-* variables. */
.mobile-shell {
  /* Legacy --gold names are retained because many old selectors still use them. */
  --gold: var(--st-theme-accent, #50e1d8);
  --gold-border: var(--st-theme-stroke, #54d8d2);
  --cream: #d6f7f4;
  --mdt-deep: #071c20;
  --mdt-panel: #10272b;
  --mdt-panel-soft: #163239;
  --mdt-line: #315359;
  --mdt-silver: #d9f2f1;
  color: var(--mdt-text);
  background-color: var(--mdt-deep);
}
.mobile-shell .mobile-header {
  background: var(--st-nav-bg, #10272b); /* setting tema tetap bisa mengatur header */
  border-color: var(--mdt-line);
}
.mobile-shell .bottom-nav {
  background: linear-gradient(180deg, #153238, #0b2024);
  border-color: var(--mdt-line);
}
.mobile-shell .mobile-drawer,
.mobile-shell .member-drawer,
.mobile-shell .member-sidebar {
  background: var(--mdt-panel);
  border-color: var(--mdt-stroke);
  color: var(--mdt-text);
}
.mobile-shell .mobile-drawer__top,
.mobile-shell .member-drawer__top { color: var(--mdt-accent); border-color: var(--mdt-line); }
.mobile-shell .mobile-drawer__links a,
.mobile-shell .member-drawer-nav__item { border-color: var(--mdt-line); }
.mobile-shell .mobile-drawer__links a:hover,
.mobile-shell .member-drawer-nav__item:hover { background: var(--mdt-panel-soft); }
.mobile-shell .member-wallet { background: #143139; border: 1px solid var(--mdt-line); }
.mobile-shell .member-wallet span { border-right-color: var(--mdt-line); }
.mobile-shell .member-wallet b { background: var(--mdt-button); color: #093034; }
.mobile-shell .news-ticker { background: var(--mdt-panel); border-color: var(--mdt-line); }
.mobile-shell .category-shortcuts {
  background: linear-gradient(180deg, #071c20c9, #09292bb0);
}
.mobile-shell .hero-carousel { background: #061b20; }
.mobile-shell .guest-login {
  background: radial-gradient(ellipse at 7% 71%, #12c6bd24, transparent 43%),
              radial-gradient(ellipse at 95% 70%, #8cebe326, transparent 40%);
}
.mobile-shell .login-field {
  background: linear-gradient(180deg, #1b3338, #0b1b1e 68%);
  border-color: var(--mdt-stroke);
}
.mobile-shell .game-section__heading {
  background: linear-gradient(180deg, #243a3d, #0c2226);
}
.mobile-shell .partner-grid__cell { background: #0b2929a8; }
.mobile-shell .site-toast,
.mobile-shell .st-popup,
.mobile-shell .st-card,
.mobile-shell .st-catalogue-empty {
  background-color: var(--mdt-panel);
  border-color: var(--mdt-stroke);
  color: var(--mdt-text);
}
.mobile-shell .st-provider-db-fallback,
.mobile-shell .st-game-image-fallback { background: linear-gradient(145deg,#1d4446,#071d21); }
.mobile-shell .st-provider-db-fallback,
.mobile-shell .st-provider-db-meta,
.mobile-shell .st-catalogue-back a { border-color: var(--mdt-stroke); }
.mobile-shell .st-game-provider-name,
.mobile-shell .st-game-count,
.mobile-shell .st-catalogue-back a,
.mobile-shell .st-provider-db-meta small { color: var(--mdt-accent); }
.mobile-shell .st-game-toolbar .st-game-search,
.mobile-shell .st-game-search input { background-color: #0b2024d9; border-color: var(--mdt-stroke); }
.mobile-shell .st-game-toolbar .st-game-search button { color: var(--mdt-accent); }
.mobile-shell .st-default-banner {
  background: radial-gradient(circle at 50% 20%,#1c595a,#102529 55%,#061b20);
  border-color: var(--mdt-stroke);
  color: var(--mdt-silver);
}
.mobile-shell :is(.st-provider-db-card:hover,.st-provider-db-card:focus-visible,
  .st-catalogue-game-grid .st-game-card--link:hover,
  .st-catalogue-game-grid .st-game-card--link:focus-visible) { outline-color: var(--mdt-stroke); }
/* Buttons and optional native form controls must share the brand accent. */
.mobile-shell :is(input[type="checkbox"],input[type="radio"],input[type="range"]) { accent-color: var(--mdt-accent); }
.mobile-shell :is(button,a,input,select,textarea):focus-visible { outline-color: var(--mdt-accent); }
.mobile-shell .app-banner { background: linear-gradient(105deg,#0c2428,#154345 50%,#0b2124); }
.mobile-shell .app-banner__symbol { background: linear-gradient(135deg,#1e4a4c,#071b20); }
/* Preserve success/error/warning status colors and the colors embedded in image files. */

body:has(.mobile-shell) { background-color: #061619; color: #eaf8f8; }
