/* JAYA9 custom styles — colors aligned with jaya9bdt.com app.css */
:root {
  --jaya-blue: #2d3487;
  --jaya-blue-dark: #2d3487;
  --jaya-orange: #f48020;
  --jaya-orange-deep: #f05724;
  --jaya-purple: #514bbe;
  --jaya-purple-btn: #514bbe;
  --jaya-download: #9584ff;
  --jaya-bg: #ffffff;
  --jaya-error: #d32f2f;
  --jaya-sidebar: #303030;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans Bengali", "Readex Pro", "Nirmala UI", "Hind Siliguri", sans-serif;
  margin: 0;
  background: var(--jaya-bg);
  overflow-x: hidden;
}

/* Mobile: full width. Desktop (769px+): 348px centered on black */
.app-shell {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--jaya-bg);
  position: relative;
  overflow-x: hidden;
  padding-bottom: 60px;
}

@media (min-width: 769px) {
  body {
    background: #000;
  }
  .app-shell {
    max-width: 348px;
  }
}

/* Hide scrollbar on category rows */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* App download section — above header */
.app-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  min-height: 52px;
  background: #f2f2f2;
  border-bottom: 1px solid #3f3f97;
  line-height: 1.15;
  position: relative;
  z-index: 51;
}
.app-banner.hidden,
.app-banner.is-installed {
  display: none !important;
}
.app-banner .app-banner-close {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  background: transparent;
  color: #666;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-banner .app-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.app-banner .app-banner-text {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.25;
}
.app-banner .app-banner-text span {
  display: block;
}
.app-banner .download-btn {
  margin-left: auto;
  flex-shrink: 0;
  background: #8f82ff;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  letter-spacing: 0.4px;
  font-family: inherit;
}
.app-banner .download-btn.is-busy {
  opacity: 0.7;
  pointer-events: none;
}

/* PWA install error popup (only when install fails) */
.pwa-error-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pwa-error-modal[hidden] {
  display: none !important;
}
.pwa-error-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.pwa-error-dialog {
  position: relative;
  width: min(320px, 100%);
  background: #fff;
  border-radius: 10px;
  padding: 18px 16px 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  border: 1px solid #e6e6ef;
}
.pwa-error-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #d32f2f;
}
.pwa-error-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #333;
}
.pwa-error-ok {
  margin-top: 14px;
  width: 100%;
  border: none;
  border-radius: 6px;
  padding: 10px 12px;
  background: #8f82ff;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

/* Header — sticky at top when scrolled */
.site-header {
  background: var(--jaya-blue);
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .menu-btn {
  position: absolute;
  left: 12px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 4px;
  display: flex;
}
.site-header .header-right {
  position: absolute;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.site-header .header-right button {
  background: none;
  border: none;
  color: #fff;
  padding: 2px;
  cursor: pointer;
  display: flex;
}
.site-header .logo {
  height: 30px;
  width: auto;
}
.site-header.auth-header .header-right {
  gap: 8px;
}
.site-header .header-balance {
  color: #f8da4f;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.site-header .header-balance-refresh {
  background: none;
  border: none;
  color: #fff;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-header .header-balance-refresh:disabled {
  opacity: 0.55;
  cursor: default;
}
.site-header .header-balance-refresh.is-spinning svg {
  animation: header-balance-spin 0.7s linear infinite;
}
@keyframes header-balance-spin {
  to { transform: rotate(360deg); }
}

/* Hero Swiper — centered with side peek, images never cropped */
.hero-swiper-wrap {
  background: #fff;
  padding: 8px 0 4px;
}

/* index.html only — darker blue band like home page1.jpeg */
.hero-swiper-wrap.hero-swiper-home {
  background: #121734;
  padding: 10px 0 8px;
}
.hero-swiper-home .slide-frame {
  background: #121734;
  box-shadow: none;
  border-radius: 8px;
}
.hero-swiper-home .swiper-slide-active .slide-frame {
  box-shadow: none;
}
.hero-swiper-home .hero-pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
}
.hero-swiper-home .hero-pagination .swiper-pagination-bullet-active {
  background: var(--jaya-orange);
  opacity: 1;
}

.hero-swiper {
  width: 100%;
  overflow: hidden;
  padding-bottom: 16px;
}
.hero-swiper .swiper-wrapper {
  align-items: stretch;
}
.hero-swiper .swiper-slide {
  width: 88%;
  height: auto;
  box-sizing: border-box;
}
.hero-swiper .slide-frame {
  width: 100%;
  /* matches slider images 828×368 */
  aspect-ratio: 828 / 368;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1f4a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.hero-swiper .slide-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-swiper .swiper-slide-active .slide-frame {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}
.hero-pagination {
  position: relative !important;
  bottom: 0 !important;
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 4px;
}
.hero-pagination .swiper-pagination-bullet {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: #2d3487;
  opacity: 0.35;
  margin: 0 !important;
}
.hero-pagination .swiper-pagination-bullet-active {
  background: var(--jaya-orange);
  opacity: 1;
  width: 22px;
}

/* Announcement ticker */
.announce-bar {
  background: var(--jaya-blue);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  overflow: hidden;
}
.announce-bar .ticker {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}
.announce-bar .ticker span {
  display: inline-block;
  animation: ticker 18s linear infinite;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Category tabs — original: orange active pill, white inactive */
.cat-tabs {
  display: flex;
  gap: 6px;
  padding: 8px 6px 10px;
  background: #fff;
  overflow-x: auto;
  border-bottom: 1px solid #eee;
}
.cat-tab {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 58px;
  padding: 7px 8px 6px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #eee;
  font-size: 10px;
  font-weight: 600;
  color: var(--jaya-orange);
  cursor: pointer;
  text-decoration: none;
  position: relative;
}
.cat-tab img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.cat-tab.active {
  background: var(--jaya-orange);
  color: #fff;
  border-color: var(--jaya-orange);
  box-shadow: 0 2px 6px rgba(244, 128, 32, 0.35);
}
.cat-tab.active img {
  filter: brightness(0) invert(1);
}

/* Game grids */
.game-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px 8px 12px;
  background: #fff;
}
.game-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 8px 12px;
}
.game-tile {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #111;
  display: block;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.game-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.game-tile .img-hot {
  position: absolute;
  top: 0;
  right: 0;
  width: 27px;
  height: auto;
  z-index: 2;
  pointer-events: none;
}
.game-tile .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #e53935;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 2px;
  z-index: 2;
}
.game-tile .badge.new,
.game-tile .img-new {
  position: absolute;
  top: 0;
  left: 0;
  width: 27px;
  height: auto;
  z-index: 2;
  background: none;
  padding: 0;
  pointer-events: none;
}
.game-tile .title-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 10px;
  padding: 4px 6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Home hot tiles: artwork already has labels */
.game-tile.home-hot .title-bar {
  display: none;
}

.catalog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px;
  color: #333;
}
.catalog-heading h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}
.catalog-heading span {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--jaya-orange);
  color: #fff;
  font-size: 10px;
  text-align: center;
}
.catalog-grid {
  transition: opacity 180ms ease;
}
.catalog-grid.is-loading {
  opacity: 0.45;
  pointer-events: none;
}
.provider-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  justify-self: stretch;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.provider-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  flex: 0 0 auto;
  box-sizing: border-box;
  border-radius: 10px;
  overflow: hidden;
  background: #232b3a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.provider-thumb img {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center center;
  padding: 14px;
  display: block;
}
.provider-name {
  display: block;
  width: 100%;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--jaya-orange);
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.catalog-grid.providers-mode {
  gap: 14px 10px;
  padding-top: 4px;
}
.game-grid-4.providers-mode {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.game-grid-2.providers-mode {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 8px 14px;
}
.catalog-pagination a {
  display: grid;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  place-items: center;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #fff;
  color: #333;
  font-size: 12px;
  text-decoration: none;
}
.catalog-pagination a.active {
  border-color: var(--jaya-orange);
  background: var(--jaya-orange);
  color: #fff;
}
.catalog-grid .games-empty {
  grid-column: 1 / -1;
}

/* Category ribbon (games page) */
.cat-ribbons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
}
.cat-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--jaya-blue);
  color: #fff;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 4px;
  position: relative;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.cat-ribbon.active {
  outline: 2px solid var(--jaya-orange);
  outline-offset: 1px;
}
.cat-ribbon .hot-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  background: #ff5722;
  border-radius: 50%;
}

/* Search */
.search-wrap {
  padding: 8px;
  background: #fff;
}
.search-wrap input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 12px 8px 36px;
  font-size: 13px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%999' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") 10px center no-repeat;
  outline: none;
}

/* Match card */
.match-section {
  padding: 8px 8px 16px;
  background: #fff;
}
.match-section .section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #333;
}
.match-section .section-head a {
  font-size: 11px;
  color: var(--jaya-orange);
  text-decoration: none;
  font-weight: 500;
}
.match-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 8px;
  border-bottom: 1px solid #e5e5e5;
}
.match-tabs button {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #777;
  cursor: pointer;
  font-family: inherit;
}
.match-tabs button.active {
  color: var(--jaya-blue);
  border-bottom-color: var(--jaya-orange);
}
.match-card {
  background: url("../imges/home/imgi_38_footballfield.webp") center/cover;
  border-radius: 8px;
  padding: 12px;
  color: #fff;
  min-height: 100px;
  position: relative;
  overflow: hidden;
}
.match-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 40, 20, 0.45);
  border-radius: 8px;
}
.match-card > * {
  position: relative;
  z-index: 1;
}
.match-card .league {
  font-size: 10px;
  opacity: 0.9;
  margin-bottom: 4px;
}
.match-card .teams {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.match-card .meta {
  font-size: 10px;
  opacity: 0.85;
  margin-bottom: 10px;
}
.match-card .odds {
  display: flex;
  gap: 8px;
}
.match-card .odds button {
  flex: 1;
  background: var(--jaya-blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
}
.match-card .odds button span {
  display: block;
  font-size: 14px;
  color: #ffce5e;
}

/* Promo banner */
.promo-banner {
  display: block;
  width: 100%;
  padding: 0 8px 12px;
}
.promo-banner img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  flex-wrap: wrap;
}
.pagination button {
  min-width: 28px;
  height: 28px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  color: #333;
}
.pagination button.active {
  background: var(--jaya-blue);
  color: #fff;
  border-color: var(--jaya-blue);
}

/* Footer */
.site-footer {
  background: #e8e8e8;
  padding: 16px 12px 20px;
  font-size: 11px;
  color: #555;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.footer-grid h4 {
  margin: 0 0 6px;
  font-size: 11px;
  color: #333;
  font-weight: 700;
}
.footer-grid .icons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.footer-grid .icons img {
  height: 22px;
  width: auto;
  max-width: 70px;
  object-fit: contain;
}
.chat-now {
  color: var(--jaya-orange);
  font-weight: 600;
  text-decoration: none;
  font-size: 11px;
}
.social-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 14px 0;
}
.social-row a img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}
.footer-links {
  text-align: center;
  margin: 10px 0;
}
.footer-links a {
  color: #1565c0;
  text-decoration: underline;
  font-size: 11px;
  margin: 0 4px;
}
.footer-logo {
  display: block;
  margin: 12px auto 8px;
  height: 28px;
}
.copyright {
  text-align: center;
  font-size: 10px;
  color: #777;
  margin-top: 8px;
}

/* SEO text */
.seo_text {
  background: #eee;
  padding: 16px 12px;
  font-size: 12px;
  line-height: 1.65;
  color: #444;
}
.seo_text h1 {
  font-size: 15px;
  color: #222;
  margin: 0 0 10px;
  font-weight: 700;
}
.seo_text h2 {
  font-size: 13px;
  color: #222;
  margin: 14px 0 8px;
  font-weight: 700;
}
.seo_text h3 {
  font-size: 12px;
  color: #333;
  margin: 12px 0 6px;
  font-weight: 700;
}
.seo_text p {
  margin: 0 0 10px;
}
.seo_text a {
  color: #1565c0;
}

/* Bottom sticky nav — matches .bottom-navigator */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  height: 60px;
  display: flex;
  z-index: 50;
  background: var(--jaya-purple);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}
@media (min-width: 769px) {
  .bottom-nav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    max-width: 348px;
  }
}

.bottom-nav .lang-btn {
  flex: 0 0 30%;
  background: #ddd;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 9px;
  color: #000;
  cursor: pointer;
  line-height: 1.2;
  padding: 4px;
  font-family: inherit;
}
.bottom-nav .lang-btn img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}
.bottom-nav .login-btn {
  flex: 1;
  background: var(--jaya-purple);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  font-family: inherit;
}
.bottom-nav .register-btn {
  flex: 1;
  background: var(--jaya-orange);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
  box-shadow: inset 0 0 3px 0 #ffdd8f;
}

/* Social FAB menu (chat toggle + stacked social icons) */
.social-fab {
  position: fixed;
  bottom: 70px;
  right: 8px;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Closed menu must not steal clicks from page content underneath */
  pointer-events: none;
}
/* Support chat composer sits under FAB otherwise — hide FAB on that page */
.support-page .social-fab {
  display: none !important;
  pointer-events: none !important;
}
@media (min-width: 769px) {
  .social-fab {
    right: max(8px, calc(50% - 174px + 8px));
  }
}

.social-fab-menu {
  position: absolute;
  right: 2px;
  bottom: calc(100% + 10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.social-fab.open .social-fab-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.social-fab-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  pointer-events: auto;
}
.social-fab-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.chat-fab {
  position: relative;
  width: 56px;
  height: 56px;
  background: transparent;
  border-radius: 50%;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(240, 87, 36, 0.35);
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  pointer-events: auto;
}
.chat-fab img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.chat-fab .fab-icon-close {
  display: none;
}
.social-fab.open .chat-fab .fab-icon-chat {
  display: none;
}
.social-fab.open .chat-fab .fab-icon-close {
  display: block;
}

/* Left floating widgets stack (JoyaTV / wheel / Aviator) */
.float-stack {
  position: fixed;
  left: 6px;
  bottom: 130px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
@media (min-width: 769px) {
  .float-stack {
    left: max(6px, calc(50% - 174px + 6px));
  }
}
.float-stack a {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  background: #111; */
}
.float-stack a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.float-stack a.round {
  border-radius: 50%;
}

/* Overlay — full screen on mobile, phone column on desktop */
.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
}
@media (min-width: 769px) {
  .overlay {
    left: max(0px, calc(50% - 174px));
    width: 348px;
  }
}
.overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Sidebar clip — only as wide as the drawer so overlay stays clickable */
.sidebar-wrap {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 70vw;
  max-width: 230px;
  overflow: hidden;
  z-index: 70;
  pointer-events: none;
}
@media (min-width: 769px) {
  .sidebar-wrap {
    left: max(0px, calc(50% - 174px));
    width: 230px;
    max-width: none;
  }
}
.sidebar-wrap.open {
  pointer-events: auto;
}

/* Sidebar */
.sidebar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f0f0f0;
  z-index: 1;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  pointer-events: auto;
}
.sidebar-wrap.open .sidebar {
  transform: translateX(0);
}
.sidebar-header {
  background: var(--jaya-sidebar);
  padding: 14px 16px;
  display: flex;
  align-items: center;
}
.sidebar-header img {
  height: 26px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--jaya-orange);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid #e5e5e5;
}
.sidebar-nav a.active {
  background: #e0e0e0;
}
.sidebar-nav a img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.sidebar-nav a svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: currentColor;
}
.sidebar-nav a.sidebar-logout {
  color: #d32f2f;
  font-weight: 700;
}
.sidebar-nav .new-tag {
  background: #4caf50;
  color: #fff;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 6px;
  text-transform: lowercase;
}

/* Modals */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: calc(100% - 32px);
  max-width: 316px;
  background: #fff;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.modal-header {
  background: var(--jaya-blue);
  color: #fff;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}
.modal-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}
.modal-body {
  padding: 16px;
}

/* Deposit important notice */
.notice-modal {
  max-width: 320px;
  max-height: min(78vh, 560px);
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f3f3;
}
.notice-modal .notice-header {
  border-radius: 0;
  flex-shrink: 0;
}
.notice-modal .notice-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff !important;
  color: var(--jaya-blue) !important;
  font-size: 18px !important;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 !important;
}
.notice-modal .notice-body {
  overflow-y: auto;
  padding: 14px 14px 18px;
  background: #f3f3f3;
  -webkit-overflow-scrolling: touch;
}
.notice-item {
  margin-bottom: 14px;
}
.notice-item:last-child {
  margin-bottom: 0;
}
.notice-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.45;
  margin-bottom: 4px;
}
.notice-item p {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: #333;
  line-height: 1.5;
}

/* Withdraw confirmation notice */
.confirm-modal {
  max-width: 300px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.confirm-modal .modal-header {
  border-radius: 0;
}
.confirm-body {
  padding: 20px 16px 16px;
  text-align: center;
}
.confirm-text {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.55;
  color: #222;
  font-weight: 500;
}
.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.confirm-btn {
  height: 38px;
  border: none;
  border-radius: 6px;
  background: var(--jaya-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 13px;
  color: #222;
  margin-bottom: 6px;
}
.form-group label .req {
  color: var(--jaya-error);
}
.input-icon {
  display: flex;
  align-items: center;
  border: 1px solid #555;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.input-icon.error {
  border-color: var(--jaya-error);
}
.input-icon .icon {
  padding: 0 10px;
  font-size: 16px;
  color: var(--jaya-orange);
}
.input-icon.error .icon {
  color: var(--jaya-error);
}
.input-icon input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 8px 10px 0;
  font-size: 13px;
  font-family: inherit;
}
.field-error {
  color: var(--jaya-error);
  font-size: 11px;
  margin-top: 4px;
  display: none;
}
.field-error.show {
  display: block;
}
.forgot-link {
  text-align: right;
  font-size: 12px;
  color: #333;
  margin: -4px 0 14px;
  cursor: pointer;
}
.forgot-link a {
  color: inherit;
  text-decoration: none;
}
.btn-login-gradient {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffca28 0%, #ff9800 100%);
  color: #111;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.modal-footer-link {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: #333;
}
.modal-footer-link a {
  color: var(--jaya-blue);
  font-weight: 600;
  text-decoration: none;
}

/* Language modal */
.lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.currency-side {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.currency-side img {
  width: 28px;
  height: 28px;
}
.lang-btns {
  display: flex;
  gap: 8px;
}
.lang-btns button {
  padding: 6px 12px;
  border: 1px solid #999;
  background: #fff;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.lang-btns button.active {
  border-color: var(--jaya-blue);
  color: var(--jaya-blue);
}

/* Register form */
.register-form {
  background: #fff;
  padding: 16px 14px;
}
.register-form .form-group input {
  width: 100%;
  border: 1px solid #999;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  background: #fafafa;
}
.register-form .form-group input.error {
  border-color: var(--jaya-error);
}
.register-form .phone-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.register-form .phone-row .phone-code {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #999;
  border-radius: 4px;
  background: #f0f0f0;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.register-form .phone-row input {
  flex: 1;
  min-width: 0;
}
.register-form .signup-error-box {
  margin-bottom: 12px;
  border-radius: 4px;
  background: #fdecea;
  border: 1px solid #f5c2c0;
  color: #b42318;
  font-size: 12px;
  line-height: 1.4;
  padding: 10px 12px;
  text-align: center;
}
.register-form .terms-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #444;
  cursor: pointer;
}
.register-form .terms-check input {
  margin-top: 2px;
  width: auto;
  flex-shrink: 0;
}
.register-form .terms-check a {
  color: var(--jaya-blue);
}
.register-form .already-login {
  text-align: center;
  margin: 14px 0 4px;
  font-size: 13px;
  color: #555;
}
.register-form .already-login button {
  background: none;
  border: none;
  color: var(--jaya-blue);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  text-decoration: underline;
}
.btn-next {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--jaya-purple);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin: 8px auto 0;
  font-family: inherit;
}
.btn-next-wrap {
  text-align: center;
}

body.modal-open {
  overflow: hidden;
}

/* ========== Funds (deposit / withdraw) ========== */
.funds-page {
  background: #f0f0f0;
}
.funds-page main {
  padding-bottom: 8px;
}
.site-header.funds-header .header-right {
  gap: 10px;
}
.site-header.funds-header .header-right a,
.site-header.funds-header .header-right button {
  color: #c5c8e8;
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  display: flex;
}

.funds-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 44px;
}
.funds-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: #c8c6e8;
  background: #2a2f6e;
}
.funds-tabs a.active {
  background: var(--jaya-orange);
  color: #fff;
}

.wallet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--jaya-blue);
  color: #fff;
  padding: 12px 14px;
  min-height: 64px;
}
.wallet-bar .wallet-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.wallet-bar .refresh-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--jaya-orange);
  background: transparent;
  color: var(--jaya-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.wallet-bar .wallet-bal {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.3px;
  font-family: "Readex Pro", "Noto Sans Bengali", "Nirmala UI", sans-serif;
}

.verify-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff8f0;
  border-bottom: 1px solid #f0d0b0;
  padding: 10px 12px;
  font-size: 12px;
  color: #333;
}
.verify-alert .warn-ico {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--jaya-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.verify-alert a {
  color: var(--jaya-orange);
  font-weight: 700;
  text-decoration: underline;
}

.funds-panel {
  background: #fff;
  margin-bottom: 8px;
  padding: 12px 12px 16px;
}
.funds-sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}
.funds-sec-title::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--jaya-blue);
  border-radius: 1px;
  flex-shrink: 0;
}

.pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 6px;
}
.pay-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 88px;
  padding: 14px 8px 10px;
  border: none;
  border-radius: 6px;
  background: #e8e8e8;
  cursor: pointer;
  font-family: inherit;
}
.pay-card.active {
  background: var(--jaya-blue);
}
.pay-card.active img {
  filter: brightness(1.05);
}
.pay-card img {
  height: 36px;
  width: auto;
  max-width: 70px;
  object-fit: contain;
}
.pay-card .thumb {
  position: absolute;
  top: -6px;
  left: -4px;
  width: 22px;
  height: 22px;
  background: var(--jaya-orange);
  border-radius: 3px 3px 3px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.pay-card .thumb::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  border: 4px solid transparent;
  border-top-color: #c45a10;
  border-right-color: #c45a10;
}
.pay-card .pct {
  position: absolute;
  top: -8px;
  right: 6px;
  background: var(--jaya-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  font-family: "Readex Pro", "Noto Sans Bengali", "Nirmala UI", sans-serif;
}
.channel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 6px;
}
.channel-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 10px 10px 8px;
  border: none;
  border-radius: 6px;
  background: #e8e8e8;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.channel-card.active {
  background: var(--jaya-blue);
  color: #fff;
}
.channel-card img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.channel-card span {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  color: inherit;
}
.channel-card .pct {
  position: absolute;
  top: -8px;
  right: 6px;
  background: var(--jaya-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: "Readex Pro", "Noto Sans Bengali", "Nirmala UI", sans-serif;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.amount-btn {
  height: 40px;
  border: none;
  border-radius: 4px;
  background: #e4e4e4;
  color: #222;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Readex Pro", "Noto Sans Bengali", "Nirmala UI", sans-serif;
}
.amount-btn.active {
  background: var(--jaya-blue);
  color: #fff;
}
.amount-input-wrap {
  display: flex;
  align-items: center;
  background: #eee;
  border-radius: 4px;
  padding: 0 10px;
  height: 44px;
}
.amount-input-wrap .prefix {
  color: #888;
  font-size: 16px;
  margin-right: 4px;
  font-family: "Readex Pro", "Noto Sans Bengali", "Nirmala UI", sans-serif;
}
.amount-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  outline: none;
  font-family: "Readex Pro", "Noto Sans Bengali", "Nirmala UI", sans-serif;
  min-width: 0;
}
.amount-input-wrap .clear-amt {
  border: none;
  background: none;
  color: #999;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.amount-hint {
  font-size: 12px;
  color: #6a8f3a;
  padding: 4px 0 10px;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 4px;
}

.bonus-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  font-family: inherit;
}
.bonus-select .arrow {
  color: var(--jaya-orange);
  font-size: 12px;
}

.mobile-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f3f3f3;
  font-size: 14px;
  color: #333;
  outline: none;
  font-family: "Readex Pro", "Noto Sans Bengali", "Nirmala UI", sans-serif;
}

.funds-submit {
  display: block;
  width: calc(100% - 24px);
  margin: 16px 12px 20px;
  height: 46px;
  border: none;
  border-radius: 6px;
  background: var(--jaya-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.funds-submit:disabled,
.funds-submit.disabled {
  background: #c8c8c8;
  color: #fff;
  cursor: not-allowed;
}

/* Logged-in bottom nav — same purple style as promotions on all pages */
.bottom-nav.auth-nav {
  background: var(--jaya-purple);
  border-top: none;
  height: 58px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}
.bottom-nav.auth-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 500;
  background: transparent;
}
.bottom-nav.auth-nav a svg {
  width: 22px;
  height: 22px;
}
.bottom-nav.auth-nav a.active {
  color: #fff;
  font-weight: 700;
}

/* ========== Promotions page ========== */
.promo-page {
  background: #f0f0f0;
}
.promo-filters {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  background: #f0f0f0;
  -webkit-overflow-scrolling: touch;
}
.promo-filter {
  flex-shrink: 0;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  background: #e4e4e4;
  color: #444;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.promo-filter.active {
  background: var(--jaya-blue);
  color: #fff;
}
.promo-list {
  padding: 0 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.promo-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}
.promo-card.is-hidden {
  display: none;
}
.promo-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #ddd;
}
.promo-card-body {
  padding: 12px 12px 14px;
}
.promo-card-body h2 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.35;
}
.promo-card-body p {
  margin: 0 0 12px;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}
.promo-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.promo-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 32px;
  padding: 0 14px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffc84a 0%, #f48020 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.promo-timer {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #888;
  margin-left: auto;
}
.promo-timer svg {
  flex-shrink: 0;
  color: #aaa;
}

/* ========== Account page ========== */
.account-page {
  background: #f0f0f0;
}
.account-hero {
  position: relative;
  background: radial-gradient(circle at 20% 40%, rgba(120, 140, 255, 0.35), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(90, 100, 220, 0.4), transparent 40%),
    linear-gradient(160deg, #3a3f9a 0%, #2d3487 55%, #252a6e 100%);
  padding: 28px 16px 22px;
  border-radius: 0 0 18px 18px;
  min-height: 110px;
}
.account-hero .close-acc {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.account-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.account-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #111;
  color: var(--jaya-orange);
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Readex Pro", "Noto Sans Bengali", "Nirmala UI", sans-serif;
  flex-shrink: 0;
}
.account-avatar.account-avatar-img {
  padding: 0;
  overflow: hidden;
  background: #ddd;
}
.account-avatar.account-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.account-user .uname {
  color: #2a2a3a;
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.acc-wallet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
}
.acc-wallet .left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--jaya-orange);
  font-size: 13px;
  font-weight: 700;
}
.acc-wallet .left button {
  background: none;
  border: none;
  color: var(--jaya-orange);
  padding: 0;
  cursor: pointer;
  display: flex;
}
.acc-wallet .bal {
  color: #999;
  font-size: 15px;
  font-weight: 600;
  font-family: "Readex Pro", "Noto Sans Bengali", "Nirmala UI", sans-serif;
}
.acc-wallet .bal.visible {
  color: #333;
}

.acc-block {
  background: #fff;
  margin-top: 8px;
}
.acc-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  border-bottom: 1px solid #eee;
}
.acc-block-title::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--jaya-blue);
  border-radius: 1px;
}
.acc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 4px;
  padding: 14px 8px 16px;
  background: #f7f7f7;
}
.acc-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #333;
  text-align: center;
}
.acc-item .ico {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jaya-orange);
}
.acc-item .ico.filled {
  background: var(--jaya-orange);
  border-color: var(--jaya-orange);
  color: #fff;
}
.acc-item .ico.social {
  background: transparent;
  border: none;
  width: 46px;
  height: 46px;
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
}
.acc-item .ico.social img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.acc-item span {
  font-size: 11px;
  line-height: 1.25;
  max-width: 72px;
}

.logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 24px);
  margin: 16px 12px 24px;
  height: 46px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  color: #222;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

/* Funds page extras (deposit / withdraw) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.pay-card-label {
  display: block;
  cursor: pointer;
}
.pay-card-label .pay-card {
  width: 100%;
  height: 100%;
}
.pay-card .badge-offer.hidden,
.badge-offer.hidden {
  display: none !important;
}
.method-label-btn {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: #666;
}
.promo-box-wrap {
  position: relative;
}
.promo-dropdown {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.promo-dropdown.show {
  display: block;
}
.promo-dropdown .promo-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: #fff;
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  border-bottom: 1px solid #f0f0f0;
}
.promo-dropdown .promo-item:hover {
  background: #f7f7f7;
}
.promo-dropdown .promo-item.muted {
  color: #999;
  cursor: default;
}
.channel-btn-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.channel-btn,
.channel-card.channel-btn {
  min-height: 44px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.channel-btn.is-active,
.channel-btn.active {
  border-color: var(--jaya-blue);
  color: var(--jaya-blue);
}
.channel-btn-enter {
  opacity: 0;
  transform: translateY(8px);
}
.channel-btn-enter-active {
  opacity: 1;
  transform: translateY(0);
}
.channel-btn-leave {
  opacity: 0;
  transform: translateY(-6px);
}
.channel-hint {
  font-size: 11px;
  color: #888;
  margin-top: 8px;
}
.funds-alert {
  margin: 8px 12px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
}
.funds-alert.warn {
  background: #fff8e6;
  border: 1px solid #f0d78c;
  color: #8a6d00;
}
.funds-alert.err {
  background: #fdecea;
  border: 1px solid #f5c2c0;
  color: #b42318;
}
.funds-alert.ok {
  background: #e8f8ef;
  border: 1px solid #b7e4c7;
  color: #1b7a3d;
}
.turnover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.turnover-grid div {
  background: #f7f7f7;
  border-radius: 6px;
  padding: 8px 10px;
}
.turnover-grid span {
  display: block;
  font-size: 11px;
  color: #777;
}
.turnover-grid strong {
  font-size: 13px;
  color: #222;
}
.wallet-option {
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
}
.wallet-option .wallet-card {
  display: block;
  width: 100%;
  box-sizing: border-box;
}
.wallet-option input:checked + .wallet-card {
  border-color: var(--jaya-blue);
  box-shadow: 0 0 0 1px var(--jaya-blue);
}
.mobile-input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fafafa;
  font-family: inherit;
}
.is-disabled-form {
  opacity: 0.55;
  pointer-events: none;
}
.funds-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,0.55);
}
.funds-modal.hidden {
  display: none;
}
.funds-modal-card {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
}
.funds-modal-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.funds-modal-card p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #555;
  line-height: 1.4;
}
.funds-modal-card button {
  width: 100%;
  border: none;
  border-radius: 6px;
  padding: 10px;
  background: var(--jaya-blue);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.games-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 12px;
  color: #888;
  font-size: 14px;
}
.hidden {
  display: none !important;
}

/* Subpage bar (account-linked pages) */
.subpage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 0 10px;
  background: var(--jaya-blue);
  color: #fff;
  position: sticky;
  top: 48px;
  z-index: 40;
}
.subpage-back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
}
.subpage-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  flex: 1;
}
.subpage-spacer {
  width: 36px;
}
.subpage-main {
  padding: 10px 0 20px;
  background: #f3f4f6;
  min-height: 50vh;
}
.subpage-main .funds-panel {
  margin-bottom: 10px;
}
.subpage-main .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.subpage-main table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: #fff;
}
.subpage-main th,
.subpage-main td {
  padding: 8px 6px;
  border-bottom: 1px solid #eee;
  text-align: left;
}
.subpage-main th {
  background: #fafafa;
  font-weight: 600;
  color: #555;
}
.subpage-tabs {
  display: flex;
  gap: 0;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}
.subpage-tabs a,
.subpage-tabs button {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #777;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.subpage-tabs a.active,
.subpage-tabs button.active {
  color: var(--jaya-blue);
  border-bottom-color: var(--jaya-blue);
}
.subpage-card {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  margin: 0 10px 10px;
  border: 1px solid #eee;
}
.subpage-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
}
.subpage-card p {
  margin: 0;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}
.subpage-form-row {
  margin-bottom: 12px;
}
.subpage-form-row label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}
.subpage-form-row input,
.subpage-form-row select,
.subpage-form-row textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  background: #fafafa;
}
.subpage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: none;
  border-radius: 6px;
  padding: 12px;
  background: var(--jaya-purple, #6c3cff);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.subpage-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.subpage-muted {
  text-align: center;
  color: #888;
  font-size: 13px;
  padding: 24px 12px;
}

/* Loss bonus — modern account theme */
.loss-bonus-page {
  background: #f4f5f7;
}
.loss-main {
  min-height: 60vh;
  padding: 12px 12px 92px;
  background:
    radial-gradient(circle at 100% 0, rgba(244, 128, 32, 0.09), transparent 180px),
    #f4f5f7;
}
.loss-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #152b4a, #233d63);
  color: #fff;
  box-shadow: 0 8px 20px rgba(17, 37, 65, 0.18);
}
.loss-hero-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: #ffb35c;
}
.loss-hero-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.loss-hero h1 {
  margin: 0 0 3px;
  font-size: 17px;
  font-weight: 700;
}
.loss-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  line-height: 1.55;
}
.loss-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 10px 0 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
}
.loss-stat {
  min-width: 0;
  padding: 12px 5px;
  text-align: center;
  border-right: 1px solid #edf0f3;
}
.loss-stat:last-child {
  border-right: 0;
}
.loss-stat span {
  display: block;
  margin-bottom: 4px;
  color: #8a9099;
  font-size: 9px;
}
.loss-stat strong {
  display: block;
  overflow: hidden;
  color: #1d2939;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.loss-stat.pending strong {
  color: #e67a12;
}
.loss-stat.claimed strong {
  color: #12945c;
}
.loss-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 14px;
  padding: 11px 12px;
  border: 1px solid;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.45;
}
.loss-alert.success {
  border-color: #a7e5c7;
  background: #ecfdf4;
  color: #087747;
}
.loss-alert.error {
  border-color: #ffc7c7;
  background: #fff1f1;
  color: #b42318;
}
.loss-alert-icon {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  place-items: center;
  border-radius: 50%;
  background: currentColor;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.loss-alert p {
  margin: 1px 0 0;
}
.loss-section {
  margin-top: 15px;
}
.loss-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 2px;
}
.loss-section-kicker {
  display: block;
  margin-bottom: 1px;
  color: var(--jaya-orange);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.loss-section-head h2 {
  margin: 0;
  color: #1f2937;
  font-size: 15px;
  font-weight: 700;
}
.loss-count {
  display: grid;
  min-width: 27px;
  height: 22px;
  padding: 0 7px;
  place-items: center;
  border-radius: 999px;
  background: #fff0df;
  color: #d86c06;
  font-size: 10px;
  font-weight: 700;
}
.loss-count.claimed {
  background: #e7f8ef;
  color: #07834d;
}
.loss-list {
  display: grid;
  gap: 9px;
}
.loss-card {
  overflow: hidden;
  border: 1px solid #e3e6ea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
}
.loss-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px 9px;
}
.loss-date-label {
  display: block;
  margin-bottom: 1px;
  color: #98a0aa;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.loss-date {
  color: #273444;
  font-size: 12px;
}
.loss-status {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}
.loss-status.pending {
  background: #fff3e4;
  color: #d96a00;
}
.loss-status.claimed {
  background: #e8f8ef;
  color: #07834d;
}
.loss-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid #edf0f3;
  border-bottom: 1px solid #edf0f3;
  background: #edf0f3;
}
.loss-details div {
  min-width: 0;
  padding: 9px 12px;
  background: #fafbfc;
}
.loss-details span,
.loss-card-action span,
.loss-history-row span,
.loss-credited span {
  display: block;
  color: #9198a1;
  font-size: 9px;
}
.loss-details strong {
  display: block;
  margin-top: 2px;
  color: #394657;
  font-size: 11px;
}
.loss-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
}
.loss-card-action strong {
  display: block;
  margin-top: 1px;
  color: var(--jaya-orange);
  font-size: 14px;
}
.loss-claim-btn {
  min-width: 88px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff9b35, var(--jaya-orange));
  color: #fff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(244, 128, 32, 0.25);
}
.loss-claim-btn:active {
  transform: translateY(1px);
}
.loss-history-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #edf0f3;
  border-bottom: 1px solid #edf0f3;
}
.loss-history-row > div {
  padding: 10px 12px;
}
.loss-history-row > div + div {
  border-left: 1px solid #edf0f3;
}
.loss-history-row strong {
  display: block;
  margin-top: 2px;
  color: #0b8b52;
  font-size: 12px;
}
.loss-credited {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  background: #fafbfc;
}
.loss-credited time {
  color: #647182;
  font-size: 9px;
}
.loss-empty {
  padding: 25px 16px;
  border: 1px dashed #d9dde3;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}
.loss-empty-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin: 0 auto 8px;
  place-items: center;
  border-radius: 50%;
  background: #fff2e4;
  color: var(--jaya-orange);
  font-size: 18px;
  font-weight: 700;
}
.loss-empty-icon.checked {
  background: #e8f8ef;
  color: #07834d;
}
.loss-empty strong {
  display: block;
  color: #3b4654;
  font-size: 12px;
}
.loss-empty p {
  margin: 4px 0 0;
  color: #9299a3;
  font-size: 10px;
}

/* Account subpages — shared modern theme (turnover, betting records, vip, personal info) */
.acct-page {
  background: #f4f5f7;
}
.acct-main {
  min-height: 60vh;
  padding: 12px 12px 92px;
  background:
    radial-gradient(circle at 100% 0, rgba(244, 128, 32, 0.09), transparent 180px),
    #f4f5f7;
}
.acct-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #152b4a, #233d63);
  color: #fff;
  box-shadow: 0 8px 20px rgba(17, 37, 65, 0.18);
}
.acct-hero-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: #ffb35c;
}
.acct-hero-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.acct-hero h1 {
  margin: 0 0 3px;
  font-size: 17px;
  font-weight: 700;
}
.acct-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  line-height: 1.55;
}
.acct-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 10px 0 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
}
.acct-stat {
  min-width: 0;
  padding: 12px 5px;
  text-align: center;
  border-right: 1px solid #edf0f3;
}
.acct-stat:last-child {
  border-right: 0;
}
.acct-stat span {
  display: block;
  margin-bottom: 4px;
  color: #8a9099;
  font-size: 9px;
}
.acct-stat strong {
  display: block;
  overflow: hidden;
  color: #1d2939;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.acct-stat.accent strong {
  color: #e67a12;
}
.acct-stat.good strong {
  color: #12945c;
}
.acct-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  padding: 5px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
}
.acct-tab {
  flex: 1;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #667085;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.acct-tab.active {
  background: linear-gradient(135deg, #ff9b35, var(--jaya-orange));
  color: #fff;
  box-shadow: 0 4px 10px rgba(244, 128, 32, 0.25);
}
.acct-section {
  margin-top: 15px;
}
.acct-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 2px;
}
.acct-kicker {
  display: block;
  margin-bottom: 1px;
  color: var(--jaya-orange);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.acct-section-head h2 {
  margin: 0;
  color: #1f2937;
  font-size: 15px;
  font-weight: 700;
}
.acct-count {
  display: grid;
  min-width: 27px;
  height: 22px;
  padding: 0 7px;
  place-items: center;
  border-radius: 999px;
  background: #fff0df;
  color: #d86c06;
  font-size: 10px;
  font-weight: 700;
}
.acct-list {
  display: grid;
  gap: 9px;
}
.acct-card {
  overflow: hidden;
  border: 1px solid #e3e6ea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
}
.acct-card-pad {
  padding: 12px;
}
.acct-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #eef1f4;
  background: #fff;
}
.acct-card .acct-row:last-child {
  border-bottom: 0;
}
.acct-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.acct-row-left > div:last-child {
  min-width: 0;
  flex: 1;
}
.acct-row-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 10px;
  background: #fff2e4;
  color: var(--jaya-orange);
}
.acct-row-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.acct-row-title {
  display: block;
  overflow: hidden;
  color: #273444;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.acct-row-sub {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  color: #98a0aa;
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.acct-row-end {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  text-align: right;
}
.acct-row-end strong {
  display: block;
  color: #273444;
  font-size: 12px;
}
.acct-row-end strong.up {
  color: #0b8b52;
}
.acct-row-end strong.down {
  color: #c02536;
}
.acct-badge {
  display: inline-block;
  margin-top: 3px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  text-transform: capitalize;
}
.acct-badge.pending {
  background: #fff3e4;
  color: #d96a00;
}
.acct-badge.good {
  background: #e8f8ef;
  color: #07834d;
}
.acct-badge.bad {
  background: #ffefef;
  color: #c02536;
}
.acct-badge.neutral {
  background: #eef1f4;
  color: #55606d;
}
.acct-badge.info {
  background: #e8f1ff;
  color: #1d5fc2;
}
.acct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 40px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff9b35, var(--jaya-orange));
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(244, 128, 32, 0.25);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.acct-btn:disabled {
  opacity: 0.5;
  cursor: default;
  box-shadow: none;
}
.acct-btn:active {
  transform: translateY(1px);
}
.acct-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
}
.acct-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 14px;
  padding: 11px 12px;
  border: 1px solid;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.45;
}
.acct-alert.success {
  border-color: #a7e5c7;
  background: #ecfdf4;
  color: #087747;
}
.acct-alert.error {
  border-color: #ffc7c7;
  background: #fff1f1;
  color: #b42318;
}
.acct-alert.notice {
  border-color: #ffd9ac;
  background: #fff8ef;
  color: #97570b;
}
.acct-alert p {
  margin: 1px 0 0;
}
.acct-empty {
  padding: 25px 16px;
  border: 1px dashed #d9dde3;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}
.acct-empty-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin: 0 auto 8px;
  place-items: center;
  border-radius: 50%;
  background: #fff2e4;
  color: var(--jaya-orange);
  font-size: 18px;
  font-weight: 700;
}
.acct-empty strong {
  display: block;
  color: #3b4654;
  font-size: 12px;
}
.acct-empty p {
  margin: 4px 0 0;
  color: #9299a3;
  font-size: 10px;
}
.acct-table-wrap {
  overflow-x: auto;
  border: 1px solid #e3e6ea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
  -webkit-overflow-scrolling: touch;
}
.acct-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 11px;
}
.acct-table th {
  padding: 10px 10px;
  border-bottom: 1px solid #edf0f3;
  background: #fafbfc;
  color: #6a7482;
  font-size: 9px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.acct-table td {
  padding: 10px;
  border-bottom: 1px solid #f1f3f6;
  color: #394657;
  vertical-align: top;
  white-space: nowrap;
}
.acct-table tr:last-child td {
  border-bottom: 0;
}
.acct-table .cell-main {
  color: #1f2937;
  font-weight: 700;
}
.acct-table .cell-sub {
  display: block;
  margin-top: 1px;
  color: #98a0aa;
  font-size: 10px;
  font-weight: 400;
}
.acct-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
}
.acct-modal-overlay.hidden {
  display: none;
}
.acct-modal {
  position: relative;
  width: 100%;
  max-width: 320px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
}
.acct-modal h3 {
  margin: 0 0 13px;
  color: #1f2937;
  font-size: 15px;
  font-weight: 700;
}
.acct-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: none;
  color: #98a0aa;
  font-size: 17px;
  cursor: pointer;
  line-height: 1;
}
.acct-input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d8dde3;
  border-radius: 9px;
  background: #fafbfc;
  color: #1f2937;
  font-family: inherit;
  font-size: 13px;
  box-sizing: border-box;
}
.acct-input:focus {
  outline: none;
  border-color: var(--jaya-orange);
  background: #fff;
}
.acct-input[readonly],
.acct-input:disabled {
  background: #f1f3f6;
  color: #7d8794;
}
.acct-label {
  display: block;
  margin-bottom: 5px;
  color: #6a7482;
  font-size: 10px;
  font-weight: 600;
}
.acct-hint {
  color: #98a0aa;
  font-size: 10px;
}
.acct-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}
.acct-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd166, #ff9b35);
  transition: width 300ms ease;
}
.acct-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  padding: 0 4px;
  color: #7d8794;
  font-size: 10px;
  line-height: 1.55;
}
.acct-note a {
  color: var(--jaya-orange);
  font-weight: 600;
}
.acct-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.acct-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #667085;
  font-size: 10px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.acct-chip.active {
  border-color: #ffd7a8;
  background: #fff5ea;
  color: #d86c06;
}
.acct-filter-sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  pointer-events: none;
  visibility: hidden;
  background: rgba(15, 23, 42, 0);
  transition: background 220ms ease, visibility 220ms ease;
}
.acct-filter-sheet.open {
  pointer-events: auto;
  visibility: visible;
  background: rgba(15, 23, 42, 0.45);
}
.acct-filter-panel {
  display: flex;
  flex-direction: column;
  width: min(100%, 380px);
  height: 100%;
  background: #f4f5f7;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
  transform: translateX(100%);
  transition: transform 240ms ease;
}
.acct-filter-sheet.open .acct-filter-panel {
  transform: translateX(0);
}
.acct-filter-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}
.acct-filter-head h2 {
  margin: 0;
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
}
.acct-filter-back {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafbfc;
  color: #55606d;
  font-size: 14px;
  cursor: pointer;
}
.acct-filter-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.acct-filter-label {
  margin: 14px 0 8px;
  color: #6a7482;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.acct-filter-label:first-child {
  margin-top: 0;
}
.acct-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.acct-filter-btn {
  padding: 10px 6px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #55606d;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.acct-filter-btn.active {
  border-color: transparent;
  background: linear-gradient(135deg, #ff9b35, var(--jaya-orange));
  color: #fff;
  box-shadow: 0 4px 10px rgba(244, 128, 32, 0.25);
}
.acct-filter-foot {
  padding: 14px 16px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

/* Support chat page */
.support-page .subpage-bar {
  background: #fff;
}
.support-main {
  display: flex;
  flex-direction: column;
}
.support-main-chat {
  padding-bottom: 120px;
  min-height: calc(100vh - 140px);
}
.support-ticket-link {
  text-decoration: none;
  color: inherit;
}
.support-ticket-link:active {
  background: #fafbfc;
}
.support-chat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.support-chat-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 42vh;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  padding: 14px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background:
    radial-gradient(circle at 0 0, rgba(244, 128, 32, 0.06), transparent 160px),
    #f7f8fa;
  -webkit-overflow-scrolling: touch;
}
.support-bubble {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.support-bubble.is-me {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: linear-gradient(135deg, #fff3e4, #ffe7c8);
  color: #1f2937;
}
.support-bubble.is-them {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  background: #fff;
  border: 1px solid #e8ebef;
  color: #1f2937;
}
.support-bubble-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}
.support-bubble-time {
  display: block;
  margin-top: 5px;
  color: #98a0aa;
  font-size: 9px;
  text-align: right;
}
.support-attach-img,
.support-attach-video {
  display: block;
  width: 100%;
  max-height: 200px;
  margin-bottom: 6px;
  border-radius: 10px;
  object-fit: cover;
}
.support-composer {
  position: sticky;
  bottom: 64px;
  z-index: 60;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.support-composer-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.support-msg-input {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.support-attach-btn,
.support-send-btn {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.support-attach-btn {
  background: #f1f3f6;
  color: #55606d;
}
.support-attach-btn svg,
.support-send-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.support-send-btn {
  background: linear-gradient(135deg, #ff9b35, var(--jaya-orange));
  color: #fff;
  box-shadow: 0 4px 10px rgba(244, 128, 32, 0.28);
}
.support-file-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #152b4a;
  color: #fff;
  font-size: 11px;
}
.support-file-preview.hidden {
  display: none !important;
}
.support-file-preview button {
  border: 0;
  background: none;
  color: #ffb4b4;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}
a.acct-chip {
  text-decoration: none;
}

.share-invite-row {
  display: flex;
  gap: 14px;
  align-items: stretch;
}
.share-qr {
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.share-qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.share-invite-fields {
  flex: 1;
  min-width: 0;
}
.share-copy-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.share-copy-row .acct-input {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.share-copy-btn {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: #fff5ea;
  color: var(--jaya-orange);
  cursor: pointer;
}
.share-copy-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.share-claim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.share-claim-amount {
  display: block;
  margin-top: 2px;
  color: #d86c06;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}
.share-help-text {
  margin: 0 0 12px;
  color: #667085;
  font-size: 11px;
  line-height: 1.6;
}
.share-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.share-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #eef1f4;
  border-radius: 10px;
  background: #fafbfc;
  color: #394657;
  font-size: 12px;
  font-weight: 600;
}
.share-steps li span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9b35, var(--jaya-orange));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.share-help-foot {
  margin: 12px 0 0;
  color: #8a9099;
  font-size: 10px;
  text-align: center;
  line-height: 1.55;
}
.share-help-foot strong {
  color: #d86c06;
}
@media (max-width: 380px) {
  .share-invite-row {
    flex-direction: column;
    align-items: center;
  }
  .share-invite-fields {
    width: 100%;
  }
}

/* Fortune Wheel / Free Spin page */
.spin-page {
  background: #f4f5f7;
}
.spin-main {
  min-height: 60vh;
  padding: 12px 12px 92px;
  background:
    radial-gradient(circle at 100% 0, rgba(244, 128, 32, 0.09), transparent 180px),
    #f4f5f7;
}
.spin-main .acct-alert {
  margin-top: 12px;
  margin-bottom: 0;
}
.spin-main .acct-stats {
  margin-top: 12px;
}
.spin-stage {
  position: relative;
  margin-top: 12px;
  overflow: visible;
  padding: 10px 8px 12px;
  border: 1px solid #e3e6ea;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 179, 82, 0.22), transparent 55%),
    linear-gradient(160deg, #1a2f4d 0%, #0f1c31 55%, #152b4a 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
}
.spin-stage::before,
.spin-stage::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.spin-stage::before {
  top: -70px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.18), transparent 70%);
}
.spin-stage::after {
  left: -80px;
  bottom: -90px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.16), transparent 70%);
}
.spin-scene {
  position: relative;
  z-index: 1;
  width: min(88vw, 360px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.35));
}
/* Outer PNG art is optically centered near 50% x / 46.7% y (banner shifts hole up). */
.spin-wheel-wrap {
  position: absolute;
  left: 50%;
  top: 46.65%;
  z-index: 1;
  width: 62.4%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
}
.spin-wheel {
  width: 100%;
  height: 100%;
  transform: rotate(var(--spin-rotation, 0deg));
  transform-origin: center center;
  transition: none;
  will-change: transform;
}
.spin-wheel.is-spinning {
  transition: transform 5.8s cubic-bezier(0.08, 0.82, 0.17, 1);
}
.spin-wheel-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.spin-outer-disk {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.spin-wheel-trigger {
  position: absolute;
  left: 50%;
  top: 46.65%;
  z-index: 3;
  display: grid;
  width: clamp(48px, 15.2%, 58px);
  height: clamp(48px, 15.2%, 58px);
  place-items: center;
  padding: 0;
  border: 2px solid #f6c453;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, #2f6b4a, #163526 70%);
  color: #ffe08a;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.35),
    inset 0 1px 3px rgba(255, 255, 255, 0.18);
  transition: filter 0.15s ease, opacity 0.2s ease, transform 0.15s ease;
}
.spin-wheel-trigger:active:not(:disabled) {
  transform: translate(-50%, -50%) scale(0.96);
}
.spin-wheel-trigger.is-spinning {
  cursor: wait;
  opacity: 0.85;
}
.spin-wheel-trigger.is-disabled,
.spin-wheel-trigger:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.72;
  color: #d7d7d7;
  border-color: rgba(215, 215, 215, 0.55);
  background: radial-gradient(circle at 30% 28%, #4a5563, #1f2937 70%);
}
.spin-hint {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  text-align: center;
  line-height: 1.5;
}
.spin-tab-panel[hidden] {
  display: none !important;
}
.spin-main .acct-tabs {
  margin-top: 14px;
}
.spin-main .acct-section {
  margin-top: 12px;
}
