/* HasanBet: flat yellow, neutral surfaces, and a persistent light/dark palette. */
:root {
  color-scheme: light;
  --primary: #fbdf12;
  --primary-hover: #e4cb10;
  --on-primary: #1f1f1d;
  --page: #f0f0f0;
  --surface: #ffffff;
  --surface-alt: #f5f5f3;
  --surface-hover: #e9e9e7;
  --text: #1f1f1d;
  --muted: #646461;
  --border: #dcdcd8;
  --accent-text: #695e08;
  --accent-soft: #fffce7;
  --success: #23753c;
  --danger: #bb3030;
  --warning: #855100;
  --info: #216abb;
  --scrim: rgb(0 0 0 / 45%);
  --shadow: 0 8px 28px rgb(0 0 0 / 7%);
  --header-bg: var(--surface);
  --sidebar-bg: var(--surface);
  --gold-plain: var(--text);
  --color-muted: var(--muted);
  --icon-filter: brightness(0) saturate(100%);
  --top-height: 76px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #181818;
  --surface: #232323;
  --surface-alt: #222222;
  --surface-hover: #383838;
  --text: #f5f5f3;
  --muted: #b2b2ad;
  --border: #41413d;
  --accent-text: #fbdf12;
  --accent-soft: #36331c;
  --success: #85c333;
  --danger: #ff8080;
  --warning: #feb032;
  --info: #6fb4fa;
  --scrim: rgb(0 0 0 / 68%);
  --shadow: 0 8px 28px rgb(0 0 0 / 20%);
  --icon-filter: brightness(0) invert(1);
}
body { background: var(--page); color: var(--text); line-height: 1.5; }
.body_overlay { display: none; }
* { scrollbar-color: var(--border) transparent; }
::selection { background: var(--primary); color: var(--on-primary); }
a { color: inherit; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4, h5, h6 { color: var(--text); font-family: "Anek Bangla", 'LiKaiumKabboo', sans-serif; font-weight: 600; line-height: 1.3; }
button, a, input, select, textarea, [tabindex] { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent-text) !important; outline-offset: 3px; }
input, select, textarea { color: var(--text); accent-color: var(--primary); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
button:disabled, input:disabled, select:disabled { opacity: .55; cursor: not-allowed; }
.gold_text, .gold_text.animate, .input_group label, .amount_section .amount_grid button {
  background: none; -webkit-text-fill-color: currentColor; background-clip: border-box; animation: none; text-shadow: none;
}
.gold_text_plain { color: var(--text) !important; }
.gold_bg, .gold_bg.vertical, .gold_bg_plain { background: var(--primary) !important; animation: none !important; }
.gold_border { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 12px; transition: background .18s, border-color .18s; }
.gold_border::before, .gold_border_top::before, .gold_border_bottom::after,
.gold_border_left::before, .gold_border_right::after, .profile_sidebar::before,
.profile_sidebar::after, .dropdown_content::before, .modal>.content::before,
.mobile_menu .button-container::before, .mobile_menu .button-container .button.active::before { content: none; }
.btn { font-family: inherit; font-weight: 600; min-height: 40px; }
.btn:hover, .tab-btn:hover { background: var(--surface-hover); }
.btn.red, .btn.purple, .btn.success, .btn.login-btn, .btn.ajaxsubmit,
.btn.depositBtn, .btn.withdrawBtn, .btn.active, .tab-btn.active,
.payment_method .method:has(input:checked), .amount_section .amount_grid button.active {
  background: var(--primary); border-color: var(--primary); color: var(--on-primary);
}
.btn.red:hover, .btn.login-btn:hover, .btn.ajaxsubmit:hover { background: var(--primary-hover); }
.btn .gold_text { color: inherit; }
.btn.secondary { background: #1f1f1d; color: #fff; border-color: #727272; }
.btn.secondary:hover { background: #383838; }
.gold_border.danger { color: var(--danger); }
.gold_border.danger.withdrawBtn { color: var(--on-primary); }
header, header.on-scroll { background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: none; gap: 12px; }
header>div { min-width: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions :is(.btn, .theme-toggle) { display: inline-flex; align-items: center; justify-content: center; height: 40px; min-height: 40px; padding-block: 8px; line-height: 1.2; white-space: nowrap; }
.header-actions .hidden { display: none; }
.logo-text { font-family: "Agbalumo", system-ui; font-size: 28px; color: var(--text); white-space: nowrap; margin: -5px 0 0; letter-spacing: -.8px; }
.logo-text:hover { transform: none; }
.logo-text::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 4px; background: var(--primary); border-radius: 2px; }
.toggleBtn { flex-shrink: 0; background: none; border: 0; padding: 7px 3px; width: 30px; }
.toggleBtn>div { height: 2px; margin: 4px 0; background: var(--text) !important; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-alt); color: var(--text); padding: 8px 11px; min-width: 40px; height: 40px; cursor: pointer; font: 600 13px/1 system-ui, sans-serif; }
.theme-toggle:hover { background: var(--surface-hover); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.theme-toggle .theme-sun { display: none; }
[data-theme="dark"] .theme-toggle .theme-sun { display: block; }
[data-theme="dark"] .theme-toggle .theme-moon { display: none; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); box-shadow: none; }
.sidebar_menu { display: block; padding: 16px 12px 28px; }
.sidebar_menu .menu, .sidebar_menu .others { display: grid; gap: 4px; }
.sidebar_menu .others { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.sidebar_menu .menu .menu_item, .sidebar_menu .others .menu_item {
  display: flex; flex-direction: row; justify-content: flex-start; width: 100%; min-height: 44px; height: auto;
  gap: 12px; margin: 0; padding: 11px 12px; border: 1px solid transparent; background: transparent; text-align: left; font-size: 15px; line-height: 1.3; border-radius: 8px;
}
.sidebar_menu .menu .menu_item:hover, .sidebar_menu .others .menu_item:hover { background: var(--surface-alt); }
.sidebar_menu .menu .menu_item.red, .sidebar_menu .others .menu_item.red,
.sidebar_menu .menu .menu_item.active { background: var(--primary); color: var(--on-primary); }
.sidebar_menu .menu .menu_item .menu_badge { position: static; margin-left: auto; padding: 3px 5px; border-radius: 4px; background: var(--primary); color: var(--on-primary); font: 600 9px system-ui; }
.ui-icon { display: inline-flex; align-items: center; justify-content: center; width: 25px; min-width: 25px; height: 25px; font-size: 20px; vertical-align: middle; }
.category_slider .ui-icon { margin: 0 auto 6px; }
.profiledivsp .ui-icon { width: 56px; height: 56px; margin: 0 auto 12px; background: var(--accent-soft); color: var(--accent-text); border-radius: 16px; font-size: 26px; }
.container { max-width: 1320px; padding: 24px 28px; }
.marquee { color: var(--text); font-size: 14px; }
.category_slider .swiper-slide.btn { padding: 14px 12px; border-radius: 10px; background: var(--surface); }
.category_slider .swiper-slide.btn:hover { border-color: var(--accent-text); }
.game-section { margin-top: 24px; }
.game-section .section-header h2 { font-size: 23px; border-left: 4px solid var(--primary); padding-left: 12px; }
.game_card { background: var(--surface); border-radius: 10px; }
.game_card_name { color: var(--text); padding: 5px 8px; font-weight: 600; }
.game_card_image { border-radius: 10px; border: 1px solid #72727247; }
.game_grid { gap: 12px; }
.game_card:focus-within .card_btns { opacity: 1; transform: scale(1); }
.provider_wrapper { background: var(--surface); border: 1px solid var(--border); }
.provider_wrapper .swiper-button-prev, .provider_wrapper .swiper-button-next,
.game-section .section-header .slider_btns .swiper-button-prev,
.game-section .section-header .slider_btns .swiper-button-next,
.no_slider_nav_btn_prev, .no_slider_nav_btn_next { background: var(--surface-alt); color: var(--text); border: 1px solid var(--border); }
.modal, .drawer { background: var(--scrim); }
.modal>.content { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: 18px; padding: 28px; max-height: calc(100dvh - 56px); overflow-y: auto; }
.modal .content .close { z-index: 99; position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; background: var(--surface-alt); color: var(--text); }
.modal .content h2 { margin-bottom: 18px; }
.modal .input-group, .input_group, .input-group, .search_field { border-color: var(--border); background: var(--surface-alt); color: var(--text); }
.modal .input-group:focus-within, .input_group:focus-within, .input-group:focus-within, .search_field:focus-within { border-color: var(--accent-text); box-shadow: 0 0 0 2px var(--accent-soft); }
.modal .input-group input, .input_group input, .input-group input { color: var(--text); font-weight: 400; min-width: 0; }
.modal_sub_title, .options, .limit { color: var(--muted); }
.drawer>.content, .drawer>.content>.head, .dropdown_content, .footer-support-container { background: var(--surface); color: var(--text); }
.dropdown_content { border: 1px solid var(--border); box-shadow: var(--shadow); animation: none; }
.vip_card, .profile_home_menu .menu_item, .wallet-box, .content .note, .leaderboard, .inviteModal_trophy { background: var(--surface-alt); border: 1px solid var(--border); }
.vip_card .value { color: var(--text); font-variant-numeric: tabular-nums; }
.vip_card .vip_badge { background: var(--primary); color: var(--on-primary); }
.vip_card .grid { background: var(--primary); color: var(--on-primary); border-color: var(--primary); flex-wrap: wrap; line-height: 1.3; }
.vip_card .grid > div { min-width: 0; max-width: 100%; }
.vip_card .grid .value { color: var(--on-primary); overflow-wrap: anywhere; }
.vip_card .progress-text { color: var(--accent-text); }
.vip_card .progress-bar { background: var(--primary); }
.vip_card .progress-container { background: var(--border); }
.payment_method .method { background: var(--surface-alt); border-color: var(--border); padding: 8px 12px; border-radius: 8px; }
.amount_section .amount_grid button { color: var(--text); border-color: var(--border); background: var(--surface-alt); }
.amount_section .amount_grid button:hover { border-color: var(--accent-text); }
.table_wrapper { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.table_wrapper .table { border: 0; border-collapse: collapse; color: var(--text); }
.table_wrapper .table thead th { background: var(--surface-alt); color: var(--muted); font-size: 13px; font-weight: 600; padding: 12px; }
.table_wrapper .table tbody tr td { background: var(--surface); color: var(--text); padding: 12px; border-color: var(--border); }
.table_wrapper .table tbody tr:nth-child(even) td { background: var(--surface-alt); }
.pagination { background: var(--surface); border-color: var(--border); box-shadow: none; }
.pagination li, .pagination li span { color: var(--text); border-color: var(--border); }
.pagination li:hover, .pagination li.active, .pagination li span.active { background: var(--primary); color: var(--on-primary); }
.message, .support-reply-container { background: var(--surface-alt); color: var(--text); }
.user-msg { background: var(--primary); color: var(--on-primary); }
.message_btn { background: var(--primary); color: var(--on-primary); }
.errnotediv, .alert-danger { color: var(--danger); }
.alert-success { color: var(--success); }
.mobile_menu .button-container { background: var(--surface); border-top: 1px solid var(--border); border-radius: 0; animation: none; padding: 5px 0 max(5px, env(safe-area-inset-bottom)); }
.mobile_menu .button-container .button { color: var(--text); border-radius: 8px; }
.mobile_menu .button-container .button.active { background: var(--primary); color: var(--on-primary); transform: none; border-radius: 10px; animation: none; }
.footer_mobile_menu .active p { display: block; }
.footer_mobile_menu .ui-icon { margin: auto; font-size: 20px; }
.footer_mobile_menu p { font-size: 11px; line-height: 1.3; }
.share-icons .icon { color: #fff; }
@media (max-width: 900px) {
  :root { --top-height: 68px; }
  .theme-toggle span { display: none; }
  .header-actions .dropdown_button { display: none; }
  header { padding-inline: 12px; }
  .header-actions { gap: 6px; }
  header .btn { padding-inline: 10px; }
  header .balance-btn { min-width: 0; max-width: 140px; }
  header .balance-btn > span { display: flex; align-items: center; gap: 4px; min-width: 0; }
  header .current-balance { white-space: normal; overflow-wrap: anywhere; line-height: 1.2; font-variant-numeric: tabular-nums; }
}
@media (max-width: 600px) {
  :root { --top-height: 62px; }
  header { padding: 0 10px; gap: 6px; }
  header>div { gap: 6px !important; }
  .logo-text { font-size: 22px; letter-spacing: -1px; }
  .logo-text::after { width: 5px; height: 5px; margin-left: 2px; }
  header .btn { padding: 7px 8px; font-size: 13px; }
  .theme-toggle { width: 34px; min-width: 34px; height: 36px; padding: 7px; }
  .toggleBtn { width: 24px; }
  .container { padding: 16px 12px; }
  .content_body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .game_grid { gap: 8px; }
  .game-section .section-header h2 { font-size: 20px; }
}
@media (max-width: 360px) {
  header { padding: 0 6px; }
  header>div { gap: 4px !important; }
  .logo-text { font-size: 19px; }
  header .btn { font-size: 12px; padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee-content { padding-left: 0; white-space: normal; }
}

/* Brand assets and flat accent artwork. */
.logo-text::after { content: none; }
.logo-text { display: inline-flex; margin: 0; flex-shrink: 0; }
.logo-text img { width: 176px; height: auto; border-radius: 0; }
.logo-text .brand-dark { display: none; }
[data-theme="dark"] .logo-text .brand-light { display: none; }
[data-theme="dark"] .logo-text .brand-dark { display: block; }
.gift-accent { font-size: 64px; color: var(--accent-text); padding: 20px; }
.social_media a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.bulb-ring { background: var(--surface-alt); border: 2px solid var(--border); box-shadow: none; }
.bulb { background: var(--primary); box-shadow: none; animation: none; }
.center-boss { background: var(--primary); border: 3px solid #1f1f1d; box-shadow: none; }
canvas#wheel { box-shadow: none; }
.spin-btn, .spin-btn:hover, #closeBtn { background: var(--primary); color: var(--on-primary); box-shadow: none; text-shadow: none; font-family: inherit; }
.result-badge { color: var(--accent-text); }
@media (max-width: 600px) { .logo-text img { width: 132px; } }
@media (max-width: 360px) { .logo-text img { width: 116px; } }

.bonus-launcher { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 14px; background: var(--primary); color: var(--on-primary); font-size: 23px; cursor: pointer; box-shadow: var(--shadow); }
.offer-more:hover { background: var(--surface-hover); color: var(--text); }
#ajaxresults .success { color: var(--success); background: var(--surface); border-color: var(--success); }
#ajaxresults .danger { color: var(--danger); background: var(--surface); border-color: var(--danger); }
#ajaxresults .warning { color: var(--warning); background: var(--surface); border-color: var(--warning); }
#ajaxresults .info { color: var(--info); background: var(--surface); border-color: var(--info); }

.modal-header { background: var(--surface-alt); color: var(--text); }
.messenger_wrapper .messenger { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 14px; background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow); cursor: pointer; }

.btn.gold_border:is(.red, .purple, .success, .login-btn, .ajaxsubmit, .depositBtn, .withdrawBtn, .active) { color: var(--on-primary); }
.payment_method .method:has(input:checked) .radio { border-color: var(--on-primary); }
.payment_method .method:has(input:checked) .radio::after { background: var(--on-primary); }
.amount_section .amount_grid button span { background: var(--primary); color: var(--on-primary); }

.vip_card .user_image { display: grid; place-items: center; width: 60px; height: 60px; padding: 0; margin: 0 0 18px; border-radius: 16px; background: var(--primary); color: var(--on-primary); box-shadow: none; }
.vip_card .user_image .ui-icon { font-size: 28px; }
.amount_section .amount_grid button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: auto; min-height: 48px; padding: 5px; }
.amount_section .amount_grid button span { position: static; padding: 0 5px; border-radius: 3px; }
@media (max-width: 600px) {
  header .dropdown_button { display: none; }
  header>div:first-child { flex-shrink: 0; }
  header .balance-btn { min-width: 0; max-width: 140px; }
  header .balance-btn>span { display: flex; align-items: center; gap: 4px; }
  header .current-balance { white-space: normal; overflow-wrap: anywhere; line-height: 1.2; font-variant-numeric: tabular-nums; }
  .profile .profile_sidebar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile_sidebar .tab-btn { min-width: 0; white-space: normal; }
}
@media (max-width: 380px) { .profile .profile_sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

#wheelModal .multiplier-table { max-width: 100%; }
#wheelModal .bulb-ring { flex-shrink: 0; }
@media (max-width: 360px) { #wheelModal .bulb-ring { transform: scale(.84); margin-block: -18px; } }

/* Full-width artwork stays uncropped, with navigation over the image edges. */
.home-banners { margin: 16px 0 20px; min-width: 0; }
.home-banner-slider { width: 100%; border-radius: 12px; background: #151510; }
.home-banner-slider .swiper-slide { display: block; height: auto; }
.home-banner-slider img { width: 100%; aspect-ratio: 3 / 1; object-fit: contain; border-radius: 0; }
.home-banner-slider :is(.banner-prev, .banner-next) { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgb(255 255 255 / 45%); border-radius: 50%; background: rgb(31 31 29 / 70%); color: #fff; cursor: pointer; }
.home-banner-slider .banner-prev { left: 10px; }
.home-banner-slider .banner-next { right: 10px; }
.home-banner-slider :is(.banner-prev, .banner-next):hover { background: #1f1f1d; }
@media (max-width: 600px) {
  .home-banner-slider :is(.banner-prev, .banner-next) { width: 32px; height: 32px; }
  .home-banner-slider .banner-prev { left: 6px; }
  .home-banner-slider .banner-next { right: 6px; }
}
.swiper.provider_slider .btn { min-height: inherit; }
.footer-logo { margin-bottom: 10px; }
.footer .footer-logo img { width: 200px; }
.footer_bottom { color: var(--muted); font-size: 14px; line-height: 1.6; }
@media (min-width: 769px) { footer .container { padding-top: 50px; } }
@media (max-width: 600px) {
  .header-actions :is(.btn, .theme-toggle) { height: 36px; min-height: 36px; padding-block: 7px; }
  .header-actions :is(.deposit, .withdraw, .dropdown_button) { display: none; }
  .swiper.provider_slider .btn { padding: 8px 10px; }
  .game-section .section-header { gap: 8px; }
  .game-section .section-header h2 { font-size: clamp(17px, 4.5vw, 20px); min-width: 0; }
  .game-section .section-header .slider_btns { flex-shrink: 0; }
  .modal .content h2, .profile .content h2 { font-size: clamp(22px, 6vw, 28px); }
  .vip_card .grid { padding: 14px; gap: 14px; }
  .vip_card .value { font-size: 21px; }
  .footer { margin-top: 28px; }
  .footer .top-section { gap: 24px; }
  .footer .right-column { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .footer .menu-group h3 { font-size: 17px; }
  .footer .menu-group a { font-size: 14px; }
  .home-banners { margin-top: 12px; }
}
