/* ============================================================
   SUNGAITOTO — luxury gold / navy skin layer
   #ffd700 family + #1a2a6c family.  Colours, gradients, glows and
   shading only: no box is moved, resized or restructured.
   ============================================================ */
:root {
  --g-50:  #fffdf2;
  --g-100: #fff9d9;
  --g-200: #ffef9f;
  --g-300: #ffe470;
  --g-400: #ffd700;
  --g-500: #e8bf16;
  --g-600: #c9a012;
  --g-700: #a37c0b;
  --n-900: #050a1c;
  --n-800: #0b1233;
  --n-700: #101a44;
  --n-600: #1a2a6c;
  --n-500: #24377f;
  --n-400: #34499a;
  --gold-line: linear-gradient(90deg, rgba(255,215,0,0), #ffd700 18%, #fff3b0 50%, #ffd700 82%, rgba(255,215,0,0));
  --gold-face: linear-gradient(180deg, #fff8d6 0%, #ffe680 18%, #ffd700 44%, #dcae12 68%, #f6d55c 88%, #fff3b0 100%);
  --gold-soft: linear-gradient(135deg, rgba(255,215,0,.20), rgba(255,215,0,.04) 55%, rgba(26,42,108,.35));
  --navy-glass: radial-gradient(120% 140% at 50% -20%, rgba(52,73,154,.55), rgba(11,18,51,.92) 60%, #050a1c 100%);
  --lift: 0 10px 26px rgba(0,0,0,.55), 0 0 0 1px rgba(255,215,0,.14);
}

/* ---------- page shell ---------- */
html, body {
  background-color: var(--n-900) !important;
  background-image:
    radial-gradient(1100px 620px at 50% -8%, rgba(26,42,108,.75), rgba(5,10,28,0) 70%),
    radial-gradient(760px 520px at 108% 12%, rgba(255,215,0,.10), rgba(5,10,28,0) 68%),
    radial-gradient(700px 480px at -8% 42%, rgba(26,42,108,.55), rgba(5,10,28,0) 72%) !important;
  background-attachment: fixed, fixed, fixed;
  color: #e7edff;
}

#goldSparks {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 3; opacity: .85; mix-blend-mode: screen;
}

/* thin gold hairline that separates the stacked sections */
.topbar, .navbar, .header, .site-header {
  background-image: linear-gradient(180deg, rgba(11,18,51,.96), rgba(16,26,68,.92)) !important;
  box-shadow: 0 1px 0 rgba(255,215,0,.35), 0 12px 30px rgba(0,0,0,.55) !important;
}

/* ---------- top bar ---------- */
.topbar-item, .language_selector, .topbar-item a { color: #cbd6f5 !important; }
.topbar-item:hover, .topbar-item a:hover { color: var(--g-400) !important; }
.topbar .icon, .topbar-item i { filter: drop-shadow(0 0 6px rgba(255,215,0,.35)); }

/* ---------- logo / brand ---------- */
a.logo { background-image: none !important; }
a.logo img, .logo img {
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.65)) drop-shadow(0 0 12px rgba(255,215,0,.28));
}

/* ---------- main navigation ---------- */
.menu-list .menu-item, .navbar-nav > li > a, .main-menu a, .menu-item a {
  color: #dfe7fb !important;
  transition: color .25s ease, text-shadow .25s ease;
}
.menu-list .menu-item:hover, .navbar-nav > li > a:hover, .main-menu a:hover,
.menu-item:hover a, .menu-item.active a, .navbar-nav > .active > a {
  color: var(--g-400) !important;
  text-shadow: 0 0 12px rgba(255,215,0,.55);
}
.menu-item.active, .navbar-nav > .active > a {
  background-image: linear-gradient(180deg, rgba(255,215,0,.16), rgba(255,215,0,.02)) !important;
  box-shadow: inset 0 -2px 0 var(--g-400), 0 0 18px rgba(255,215,0,.18) !important;
}
.menu-item .menu-icon, .navbar-nav img, .menu-icon i {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.6));
}
.menu-item.active .menu-icon, .menu-item:hover .menu-icon {
  filter: drop-shadow(0 0 7px rgba(255,215,0,.75)) saturate(1.05);
}

/* ---------- hero / banner slider ---------- */
.banner, .banner-carousel, #banner_carousel, .carousel, .slider {
  box-shadow: inset 0 0 90px rgba(5,10,28,.85), var(--lift);
}
.carousel .slick-dots li button, .slick-dots li button {
  background: rgba(255,215,0,.35) !important;
  box-shadow: 0 0 8px rgba(255,215,0,.35);
}
.slick-dots li.slick-active button {
  background: var(--gold-face) !important;
  box-shadow: 0 0 14px rgba(255,215,0,.85);
}
.slick-prev, .slick-next, .carousel-control, .nav-btn, .banner-nav {
  background-image: var(--gold-face) !important;
  border: 1px solid #a37c0b !important;
  color: var(--n-700) !important;
  box-shadow: 0 4px 14px rgba(255,215,0,.35), inset 0 1px 0 rgba(255,255,255,.7) !important;
}

/* ---------- notifications / announcement ticker ---------- */
.pemberitahuan, .announcement, .announcement-list, .info-ticker, [data-section="announcements"] {
  color: #d8e2fb;
}
.announcement-list li { color: #cfdaf6 !important; }
.notice-title, .pemberitahuan strong { color: var(--g-400) !important; }
.announcement-container, .notification-bar {
  background-image: linear-gradient(180deg, rgba(26,42,108,.55), rgba(11,18,51,.75)) !important;
  border: 1px solid rgba(255,215,0,.22) !important;
  box-shadow: inset 0 1px 0 rgba(255,215,0,.10), 0 8px 22px rgba(0,0,0,.45) !important;
}

/* ---------- jackpot panel ---------- */
.jackpot-container, .progressive-jackpot, #progressive_jackpot {
  background-image:
    radial-gradient(120% 160% at 50% -30%, rgba(255,215,0,.20), rgba(11,18,51,0) 60%),
    linear-gradient(180deg, rgba(16,26,68,.95), rgba(5,10,28,.98)) !important;
  border: 1px solid rgba(255,215,0,.38) !important;
  box-shadow: 0 0 0 1px rgba(255,215,0,.10), 0 0 30px rgba(255,215,0,.12),
              inset 0 0 40px rgba(255,215,0,.06), 0 14px 34px rgba(0,0,0,.6) !important;
}
.jackpot-amount, .jackpot-value, .jackpot-container .amount, #progressive_jackpot .value {
  background-image: var(--gold-face);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent !important;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)) drop-shadow(0 0 14px rgba(255,215,0,.45));
}
.jackpot-container .track, .jackpot-ring {
  border-color: rgba(255,215,0,.35) !important;
  box-shadow: inset 0 0 24px rgba(255,215,0,.20), 0 0 18px rgba(255,215,0,.18);
}

/* ---------- tabs ---------- */
.tab-pane, .popular-game-list { background: transparent; }
.nav-tabs, .provider-tabs, .game-tabs { border-bottom: 1px solid rgba(255,215,0,.22) !important; }
.nav-tabs > li > a, .game-tabs a, .provider-tab {
  color: #cdd8f4 !important;
  border: 1px solid transparent !important;
  transition: color .2s ease, box-shadow .2s ease;
}
.nav-tabs > li > a:hover, .provider-tab:hover { color: var(--g-300) !important; }
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus,
.game-tabs a.active, .provider-tab.active {
  color: var(--g-200) !important;
  background-image: linear-gradient(180deg, rgba(255,215,0,.18), rgba(255,215,0,.03) 70%, rgba(26,42,108,.35)) !important;
  border: 1px solid rgba(255,215,0,.42) !important;
  box-shadow: 0 0 18px rgba(255,215,0,.22), inset 0 1px 0 rgba(255,255,255,.18) !important;
}

/* ---------- game cards ---------- */
.game-item .game-wrapper, .game-item .link-container {
  border-radius: inherit;
  box-shadow: 0 6px 16px rgba(0,0,0,.55);
  transition: box-shadow .25s ease, transform .25s ease;
}
.game-item:hover .game-wrapper, .game-item:hover .link-container {
  box-shadow: 0 0 0 1px rgba(255,215,0,.55), 0 10px 26px rgba(0,0,0,.6), 0 0 24px rgba(255,215,0,.28) !important;
}
.game-name { color: var(--g-100) !important; }
.game-item .play-now, .play-now {
  color: var(--n-700) !important;
  background-image: var(--gold-face) !important;
  border: 1px solid #a37c0b !important;
  box-shadow: 0 3px 10px rgba(255,215,0,.35), inset 0 1px 0 rgba(255,255,255,.7) !important;
}
.game-item .animated-image, .animated-image { filter: saturate(1.03); }

/* ---------- section titles with the gold rule ---------- */
.section-title, .title-bar, h3.title, .footer-section-title, .site-info-title {
  color: var(--g-300) !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.6), 0 0 14px rgba(255,215,0,.28);
}
.title-bar::after, .section-title::after { background-image: var(--gold-line) !important; }

/* ---------- footer cards / info blocks ---------- */
.site-info-container, .site-info, .footer-section, .footer-container {
  background-image: var(--navy-glass) !important;
  border: 1px solid rgba(255,215,0,.16) !important;
  box-shadow: var(--lift) !important;
}
.site-info h4, .site-info-description, .site-info p { color: #cfd9f4 !important; }
.site-info-container a, .footer a, .site-description a { color: var(--g-400) !important; }
.site-description h1, .site-description h2 { color: var(--g-200) !important; text-shadow: 0 0 16px rgba(255,215,0,.25); }
.site-description p { color: #ccd7f4 !important; line-height: 1.75; }
hr { border-color: rgba(255,215,0,.20) !important; background: none !important; }
.footer-separator { border-top-color: rgba(255,215,0,.45) !important; background: none !important; }

/* ---------- provider strip ---------- */
.provider-container, .provider-logos, .popular-providers, .games-group {
  background-image: linear-gradient(180deg, rgba(26,42,108,.35), rgba(5,10,28,.55)) !important;
  border: 1px solid rgba(255,215,0,.14) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 20px rgba(0,0,0,.45) !important;
}
.provider-container img, .provider-logos img { filter: grayscale(.08) brightness(1.03) contrast(1.03); }

/* ---------- winner / live info ---------- */
.winner-info, .winner-amount { color: #e9efff !important; }
.winner-amount { color: var(--g-300) !important; text-shadow: 0 0 10px rgba(255,215,0,.35); }

/* ---------- buttons ---------- */
.btn-primary, .standard-button-group .btn-primary, .btn-login, .btn-register {
  color: var(--n-700) !important;
  background-image: var(--gold-face) !important;
  border: 1px solid #a37c0b !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 5px 16px rgba(255,215,0,.30) !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-image: linear-gradient(180deg, #fffdf2, #ffeaa0 24%, #ffe066 55%, #e0b312 80%, #fff3b0) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 0 22px rgba(255,215,0,.55) !important;
}
.standard-secondary-button, .btn-default, .btn-secondary {
  color: var(--g-300) !important;
  background-color: transparent !important;
  background-image: linear-gradient(180deg, rgba(255,215,0,.14), rgba(255,215,0,.03)) !important;
  border: 1px solid rgba(255,215,0,.45) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12) !important;
}
.standard-secondary-button:hover, .btn-default:hover {
  color: var(--g-100) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 16px rgba(255,215,0,.35) !important;
}
a, a:hover, a:focus { text-decoration-color: rgba(255,215,0,.55); }

/* ---------- forms ---------- */
.form-control, .standard-inline-form-group [data-section="input"] {
  background-color: rgba(5,10,28,.72) !important;
  border: 1px solid rgba(255,215,0,.28) !important;
  color: #eef2ff !important;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.55) !important;
}
.form-control:focus {
  border-color: var(--g-400) !important;
  box-shadow: 0 0 0 1px rgba(255,215,0,.35), 0 0 18px rgba(255,215,0,.25) !important;
}
::placeholder { color: rgba(214,224,250,.55) !important; }

/* ---------- modals: always closable, always themed ---------- */
.modal-backdrop.in { opacity: .78; background: #03040d; }
.modal-content {
  background-image:
    radial-gradient(140% 120% at 50% -20%, rgba(52,73,154,.55), rgba(11,18,51,.98) 62%, #050a1c 100%) !important;
  border: 1px solid rgba(255,215,0,.45) !important;
  box-shadow: 0 0 0 1px rgba(255,215,0,.14), 0 0 46px rgba(255,215,0,.18), 0 24px 60px rgba(0,0,0,.75) !important;
  color: #e7edff;
}
.modal-header { border-bottom: 1px solid rgba(255,215,0,.25) !important; }
.modal-title, .modal h4, .modal h3 { color: var(--g-300) !important; letter-spacing: .5px; }
.modal-footer { border-top: 1px solid rgba(255,215,0,.2) !important; }
.modal .close, .popup-close, .modal-close {
  position: absolute; top: 10px; right: 12px;
  width: 34px; height: 34px; line-height: 1; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: #2a1c00 !important; opacity: 1 !important;
  background-image: radial-gradient(circle at 34% 28%, #fffbe6, #ffd700 46%, #d3a613 78%, #a37c0b);
  border: 1px solid #fff0a8;
  box-shadow: 0 2px 10px rgba(0,0,0,.55), 0 0 16px rgba(255,215,0,.55);
  text-shadow: none;
  z-index: 6;
}
.modal .close:hover, .modal .close:focus,
.popup-close:hover, .modal-close:hover {
  background-image: radial-gradient(circle at 34% 28%, #ffffff, #ffe680 46%, #e8bf16 78%, #b8860b);
  box-shadow: 0 0 22px rgba(255,215,0,.85);
}
.modal .close span { font-size: 20px; font-weight: 700; }
.modal-dialog { position: relative; }
.modal-header { padding-right: 46px; }

/* ---------- download-apk block ---------- */
.download-apk, #download_apk {
  background-image:
    radial-gradient(120% 150% at 20% -20%, rgba(255,215,0,.16), rgba(11,18,51,0) 60%),
    linear-gradient(180deg, rgba(26,42,108,.55), rgba(5,10,28,.85)) !important;
  border: 1px solid rgba(255,215,0,.28) !important;
  box-shadow: var(--lift) !important;
}

/* ---------- telegram banner: colours only, artwork untouched ---------- */
.telegram-banner, .telegram, .telegram-promo, a[href*="t.me"] {
  filter: drop-shadow(0 6px 16px rgba(255,215,0,.20));
}

/* ---------- scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #060a1c; }
::-webkit-scrollbar-thumb {
  background-image: linear-gradient(180deg, #ffe680, #d9a900 60%, #a37c0b);
  border-radius: 8px; border: 1px solid #050a1c;
}

/* keep the sparkle canvas from covering the modal layer */
.modal { z-index: 1050; }
.modal-backdrop { z-index: 1040; }

/* ---------- hand-made welcome layer (kept, just themed + closable) ---------- */
.sg-welcome { isolation: isolate; }
.sg-welcome-close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; line-height: 1;
  color: #2a1c00; cursor: pointer; z-index: 10000;
  background-image: radial-gradient(circle at 34% 28%, #fffbe6, #ffd700 46%, #d3a613 78%, #a37c0b);
  border: 1px solid #fff0a8;
  box-shadow: 0 3px 12px rgba(0,0,0,.6), 0 0 18px rgba(255,215,0,.6);
}
.sg-welcome-close:hover, .sg-welcome-close:focus {
  background-image: radial-gradient(circle at 34% 28%, #ffffff, #ffe680 46%, #e8bf16 78%, #b8860b);
  box-shadow: 0 0 26px rgba(255,215,0,.9);
}
.sg-welcome img { filter: drop-shadow(0 8px 22px rgba(0,0,0,.6)); }

/* ---------- apk section: the old striped artwork becomes a navy+gold wash ---------- */
.download-apk-container {
  background-image:
    radial-gradient(120% 130% at 15% 0%, rgba(255,215,0,.18), rgba(11,18,51,0) 58%),
    radial-gradient(90% 120% at 100% 100%, rgba(52,73,154,.55), rgba(5,10,28,0) 62%),
    linear-gradient(160deg, #101a44 0%, #0b1233 45%, #050a1c 100%) !important;
  background-size: cover !important;
  background-position: center !important;
  box-shadow: inset 0 0 80px rgba(5,10,28,.85), inset 0 1px 0 rgba(255,215,0,.18) !important;
}
.download-apk .h2, .download-apk .h3, .download-apk strong { color: var(--g-200) !important; }
.download-apk-detail { color: #cfd9f4 !important; }
.download-apk-info a, .download-apk a { color: var(--g-400) !important; }

/* ---------- centre the modal dialog ----------
   the template pins .modal-dialog with left:50% but its own .modal.in rule
   resets the transform, pushing every dialog half a screen to the right. */
.modal.fade .modal-dialog { transform: translate(-50%, -25%) !important; }
.modal.in .modal-dialog,
.modal.show .modal-dialog { transform: translate(-50%, 0) !important; }
.modal .modal-dialog {
  margin-left: 0 !important; margin-right: 0 !important;
  max-width: calc(100vw - 24px);
}

/* ---------- topbar CTAs ---------- */
.login-button, .register-button {
  border: 1px solid #a37c0b !important;
  font-weight: 700;
  letter-spacing: .3px;
  transition: box-shadow .2s ease, transform .15s ease;
}
.login-button {
  color: var(--g-200) !important;
  background-image: linear-gradient(180deg, rgba(255,215,0,.18), rgba(26,42,108,.55)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 4px 12px rgba(0,0,0,.45) !important;
}
.login-button:hover, .login-button:focus {
  color: var(--g-50) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 0 18px rgba(255,215,0,.45) !important;
}
.register-button {
  color: #101a44 !important;
  background-image: var(--gold-face) !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 4px 14px rgba(255,215,0,.35) !important;
}
.register-button:hover, .register-button:focus {
  background-image: linear-gradient(180deg, #fffdf2, #ffeaa0 24%, #ffe066 55%, #e0b312 80%, #fff3b0) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 0 22px rgba(255,215,0,.6) !important;
}
