html,
body {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--theme-white);
  color: var(--theme-text);
}

#root {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}

.app-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  line-height: 1.1;
}

.bottom-nav .nav-item .nav-icon {
  width: 21px;
  height: 21px;
}

.bottom-nav {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 999 !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
}

p {
  margin: 0;
  font-size: 12px;
}

/* Global theme: white, #2ea5f6 primary highlight, charcoal */
:root {
  --theme-white: #ffffff;
  --theme-blue: #2c2c2c;
  --theme-blue-dark: #1a1a1a;
  --theme-blue-light: #2ea5f6;
  --theme-blue-soft: #eaf6fe;
  --theme-yellow: #2ea5f6;
  --theme-yellow-dark: #1c8edc;
  --theme-primary: #2ea5f6;
  --theme-primary-dark: #1c8edc;
  --theme-teal: #2c2c2c;
  --theme-teal-dark: #1a1a1a;
  --theme-teal-soft: #f7f7f7;
  --theme-text: #111111;
  --theme-text-muted: #555555;
  --theme-border: #e0e0e0;
  --theme-border-teal: #dddddd;
  --theme-live: #d32f2f;
}

[class$='-page'] {
  background: var(--theme-white) !important;
  color: var(--theme-text) !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  height: auto !important;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-top: 56px;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.result-history-page {
  height: 100vh !important;
  overflow: hidden !important;
}

[class$='-topbar'],
.bottom-nav {
  background: var(--theme-white) !important;
  color: var(--theme-text) !important;
}

.nav-item {
  color: var(--theme-text-muted) !important;
}

.nav-item.active {
  background: var(--theme-yellow) !important;
  color: #ffffff !important;
}

.win-strip,
.live-strip,
.history-title,
.notice-bar {
  background: var(--theme-yellow) !important;
  color: #ffffff !important;
}

.wallet-card,
.history-card,
.addp-card,
.addp-history-card,
.market-card,
.profile-card,
.refer-table-wrap table,
.commission-table-wrap,
.notice-card,
.auth-card {
  background: var(--theme-white) !important;
}

.wallet-tab.active,
.addp-tab.active,
.history-tabs .active,
.primary-btn,
.wallet-submit,
.addp-submit-btn,
.game-action.play {
  background: var(--theme-yellow) !important;
  color: #ffffff !important;
}

.coin,
.wallet-coin,
.play-coin,
.history-coin,
.profile-coin,
.commission-coin,
.refer-coin,
.notification-coin,
.addp-coin {
  background: var(--theme-yellow) !important;
  color: #ffffff !important;
}

.balance-text strong,
.wallet-balance-text strong,
.play-balance-text strong,
.history-balance-text strong,
.profile-balance-text strong,
.commission-balance-text strong,
.refer-balance-text strong,
.notification-balance-text strong,
.addp-balance-text strong {
  color: var(--theme-yellow) !important;
}

@media (max-width: 768px) {
  .bottom-nav {
    height: 68px !important;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .bottom-nav .nav-item {
    font-size: 13px !important;
  }
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  overflow: hidden;
  height: 28px;
}

.lang-toggle button {
  border: none;
  background: transparent;
  color: #555;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  cursor: pointer;
}

.lang-toggle button.is-on {
  background: #111;
  color: #2ea5f6;
}

.lang-toggle--header {
  margin-right: 2px;
}

.auth-shell-lang,
.auth-flow-lang {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.auth-flow-lang-inline {
  justify-self: end;
}

.auth-shell-top {
  position: relative;
}

.sd-lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 4px;
}
.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding-bottom: 32px;
  box-sizing: border-box;
}

.auth-shell-top {
  width: 100%;
  background: linear-gradient(135deg, #2ea5f6 0%, #1c8edc 60%, #1573b7 100%);
  padding: 36px 20px 68px;
  text-align: center;
  position: relative;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(46, 165, 246, 0.25);
}

.auth-shell-top::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.auth-shell-top::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.auth-shell-brand-name {
  font-size: 1.45rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.auth-shell-lang {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
}

.auth-logo-wrap {
  position: absolute;
  top: -48px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #ffffff;
  padding: 4px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  z-index: 4;
}

.auth-shell-logo {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
}

.auth-shell-card {
  width: min(450px, calc(100% - 28px));
  margin: -40px auto 24px;
  border-radius: 24px !important;
  overflow: visible !important;
  background: #ffffff !important;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  position: relative;
  box-sizing: border-box;
}

.auth-welcome-title {
  padding: 60px 20px 0;
  text-align: center;
  font-size: 1.65rem !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em;
}

.auth-welcome-sub {
  text-align: center;
  color: #64748b !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  margin-top: 4px !important;
  padding: 0 20px;
}

.auth-shell-body {
  padding: 24px 22px 28px;
}

.auth-primary-btn {
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: 14px;
  font-size: 1.02rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2ea5f6 0%, #1c8edc 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(46, 165, 246, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-primary-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #3bb0ff 0%, #1a83cc 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(46, 165, 246, 0.45);
}

.auth-primary-btn:active:not(:disabled) {
  transform: translateY(0);
}

.auth-primary-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-secondary-btn {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 800;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-secondary-btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.auth-whatsapp-btn {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
  transition: all 0.2s ease;
}

.auth-whatsapp-btn:hover {
  background: linear-gradient(135deg, #28e16d 0%, #1b9b4a 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.4);
}

.auth-forgot {
  border: none;
  background: none;
  color: #2ea5f6;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 2px 4px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.auth-forgot:hover {
  color: #1c8edc;
  text-decoration: underline;
}

.auth-footer {
  text-align: center;
  margin-top: 18px;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 600;
}

.auth-footer button {
  border: none;
  background: none;
  color: #2ea5f6;
  font-weight: 800;
  font-size: inherit;
  cursor: pointer;
  margin-left: 4px;
}

.auth-footer button:hover {
  text-decoration: underline;
}

.apk-download-block {
  margin-top: 8px;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}

.apk-download-title {
  margin: 0 0 10px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.install-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.install-btn {
  border: none;
  border-radius: 12px;
  color: #ffffff;
  min-height: 46px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.install-btn-direct {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.install-btn-direct:hover {
  background: linear-gradient(135deg, #34d399 0%, #047857 100%);
  transform: translateY(-1px);
}

.install-btn-chrome {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.install-btn-chrome:hover {
  background: linear-gradient(135deg, #60a5fa 0%, #1e40af 100%);
  transform: translateY(-1px);
}

.auth-flow {
  min-height: 100vh;
  min-height: 100dvh;
  background: #f8fafc;
}

.auth-flow-bar {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  min-height: 60px;
  padding: 0 12px;
  background: linear-gradient(135deg, #2ea5f6 0%, #1c8edc 100%);
  box-shadow: 0 4px 14px rgba(46, 165, 246, 0.2);
}

.auth-flow-back {
  color: #ffffff !important;
}

.auth-flow-title {
  text-align: center;
  font-weight: 800 !important;
  color: #ffffff !important;
  font-size: 1.1rem !important;
}

.auth-flow-body {
  max-width: 440px;
  margin: 0 auto;
  padding: 32px 20px;
}

.auth-flow-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #eaf6fe;
  color: #2ea5f6;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(46, 165, 246, 0.15);
}

.auth-flow-icon .MuiSvgIcon-root {
  font-size: 42px;
}

.auth-flow-sub {
  text-align: center;
  color: #64748b !important;
  margin: 0 0 20px !important;
  font-size: 0.92rem !important;
}

.otp-boxes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.otp-boxes input {
  width: 100%;
  height: 48px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  background: #ffffff;
  color: #0f172a;
  transition: all 0.2s ease;
}

.otp-boxes input:focus {
  outline: none;
  border-color: #2ea5f6;
  box-shadow: 0 0 0 3px rgba(46, 165, 246, 0.2);
}
.profile-avatar {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}

.profile-avatar-btn {
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  border-radius: 50%;
  overflow: hidden;
  background: #eaf6fe;
  color: #1c8edc;
  cursor: pointer;
}

.profile-avatar-img,
.profile-avatar-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.profile-avatar-img {
  object-fit: cover;
}

.profile-avatar-fallback .MuiSvgIcon-root {
  font-size: 36px;
}

.profile-avatar-camera {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2ea5f6;
  color: #fff;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  cursor: pointer;
}

.profile-avatar-camera .MuiSvgIcon-root {
  font-size: 12px;
}

.profile-avatar-busy {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.55);
}

.sd-avatar-wrap .profile-avatar {
  width: 72px;
  height: 72px;
}

.sd-avatar-wrap .profile-avatar-btn {
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.sd-avatar-wrap .profile-avatar-camera {
  width: 26px;
  height: 26px;
}

.sd-avatar-wrap .profile-avatar-camera .MuiSvgIcon-root {
  font-size: 14px;
}
.sd-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1200;
  overflow: hidden;
}

.sd-overlay.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.sd-drawer {
  width: min(360px, 92vw);
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  background: #2ea5f6;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.25);
}

.sd-drawer.open {
  transform: translateX(0);
}

/* Head section - Frontend Brand Blue (#2ea5f6) */
.sd-head {
  position: relative;
  flex-shrink: 0;
  padding: 18px 16px 26px;
  background: #2ea5f6;
  color: #ffffff;
}

.sd-close {
  position: absolute !important;
  top: 10px;
  right: 10px;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.18) !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  transition: background 0.15s ease !important;
}

.sd-close:hover {
  background: rgba(255, 255, 255, 0.28) !important;
}

.sd-profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 28px;
}

.sd-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.sd-avatar {
  width: 64px !important;
  height: 64px !important;
  font-weight: 800 !important;
  background: #1c8edc !important;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sd-profile-info {
  min-width: 0;
  flex: 1;
}

.sd-profile-name {
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.25 !important;
  word-break: break-word;
}

.sd-profile-phone {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #eaf6fe !important;
  line-height: 1.35 !important;
  margin-top: 2px !important;
}

.sd-profile-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.sd-balance-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  border-radius: 9px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.15s ease, transform 0.12s ease;
}

.sd-balance-chip:hover {
  background: rgba(255, 255, 255, 0.32);
}

.sd-balance-chip:active {
  transform: scale(0.97);
}

.sd-balance-icon {
  font-size: 15px !important;
  color: #ffffff;
}

/* Customer Refer Chip */
.sd-refer-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 9px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.15s ease, transform 0.12s ease, border-color 0.15s ease;
  user-select: none;
}

.sd-refer-chip:hover {
  background: rgba(255, 255, 255, 0.32);
  border-color: #ffffff;
}

.sd-refer-chip:active {
  transform: scale(0.97);
}

.sd-refer-chip b {
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.sd-refer-icon {
  font-size: 15px !important;
  color: #ffffff;
}

.sd-copy-icon {
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.9);
  transition: transform 0.15s ease, color 0.15s ease;
}

.sd-copy-icon.is-copied {
  color: #4ade80 !important;
  transform: scale(1.25);
}

/* White body section with rounded top */
.sd-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  margin-top: -8px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Quick deposit & withdraw pill buttons */
.sd-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 14px 6px;
  flex-shrink: 0;
}

.sd-quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  border: 1px solid #e0f0fe;
  border-radius: 11px;
  background: #eaf6fe;
  color: #111111;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.sd-quick-btn .MuiSvgIcon-root {
  font-size: 18px;
  color: #1c8edc;
}

.sd-quick-btn:hover {
  background: #dbeefd;
  border-color: #2ea5f6;
}

.sd-quick-btn:active {
  transform: scale(0.98);
  background: #cae7fc;
}

/* Language toggle row */
.sd-lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 10px;
}

.sd-lang-label {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Menu list cards - frontend theme colors */
.sd-menu-list {
  padding: 4px 12px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 9px;
  box-sizing: border-box;
}

.sd-card-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 10px 14px;
  color: #111827;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  user-select: none;
}

.sd-card-item:hover {
  background: #f0f7ff;
  border-color: #2ea5f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(46, 165, 246, 0.14);
}

.sd-card-item:active {
  transform: translateY(1px);
  box-shadow: 0 1px 4px rgba(46, 165, 246, 0.1);
}

.sd-card-left {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  flex: 1;
}

/* Rounded square badge */
.sd-card-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sd-badge--teal {
  background: #00bcd4;
}

.sd-badge--orange {
  background: #ff7800;
}

.sd-badge--red {
  background: #ef4444;
}

.sd-card-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.sd-menu-block {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.sd-card-arrow {
  color: #94a3b8 !important;
  font-size: 24px !important;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.16s ease;
}

.sd-card-arrow.is-expanded {
  transform: rotate(90deg);
  color: #2ea5f6 !important;
}

.sd-card-item.is-active {
  border-color: #2ea5f6;
  background: #f0f7ff;
}

.sd-card-item:hover .sd-card-arrow {
  color: #2ea5f6 !important;
}

/* Accordion Submenu for games list */
.sd-submenu {
  margin: 6px 4px 6px 14px;
  padding: 6px;
  background: #f8fafc;
  border-radius: 12px;
  border-left: 3px solid #2ea5f6;
  border-top: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 280px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: sdSubmenuFade 0.2s ease-out;
}

@keyframes sdSubmenuFade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sd-submenu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  user-select: none;
}

.sd-submenu-item:hover {
  background: #eaf6fe;
  border-color: #2ea5f6;
  transform: translateX(3px);
}

.sd-submenu-item:active {
  transform: scale(0.98);
}

.sd-submenu-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ea5f6;
  flex-shrink: 0;
}

.sd-submenu-dot--all {
  background: #00bcd4;
  box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.25);
}

.sd-submenu-title {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sd-submenu-arrow {
  color: #94a3b8 !important;
  font-size: 18px !important;
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}

.sd-submenu-item:hover .sd-submenu-arrow {
  color: #2ea5f6 !important;
  transform: translateX(2px);
}

/* Custom tile for Terms & Conditions "T" icon */
.sd-t-icon-box {
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sd-t-icon-box span {
  font-size: 13px;
  font-weight: 900;
  color: #00bcd4;
  line-height: 1;
}

/* WhatsApp Icon */
.sd-whatsapp-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

@media (max-width: 768px) {
  .sd-drawer {
    width: min(340px, 92vw);
  }

  .sd-card-item {
    padding: 9px 12px;
  }

  .sd-card-badge {
    width: 36px;
    height: 36px;
  }

  .sd-card-title {
    font-size: 0.93rem;
  }
}
.app-header {
  background: #2ea5f6 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  border-bottom: none;
}

.app-header-toolbar {
  min-height: 60px !important;
  height: 60px;
  padding: 0 10px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.app-header-left {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  z-index: 2;
}

.app-header-icon-btn,
.app-header-bell-btn {
  width: 40px !important;
  height: 40px !important;
  color: #ffffff !important;
  background: transparent !important;
}

.app-header-title {
  margin: 0 !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.app-header-logo {
  width: 46px !important;
  height: 46px !important;
  background-color: #ffffff !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.app-header-logo img {
  object-fit: contain;
}

.app-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 1;
  z-index: 2;
}

.app-header-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: all 0.16s ease;
  user-select: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.app-header-help-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: #ffffff;
  transform: translateY(-1px);
}

.app-header-help-btn:active {
  transform: translateY(1px);
  background: rgba(255, 255, 255, 0.18);
}

.app-header-help-icon {
  font-size: 16px !important;
  color: #25d366 !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.app-header-badge .MuiBadge-badge {
  background: #e53935;
  color: #fff;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  font-size: 0.62rem;
  top: 4px;
  right: 4px;
}

@media (max-width: 380px) {
  .app-header-actions {
    gap: 3px;
  }

  .app-header-help-btn {
    padding: 0 6px;
    font-size: 0.68rem;
    gap: 2px;
  }

  .app-header-help-icon {
    font-size: 13px !important;
  }
}

.chat-fab-container {
  position: fixed;
  bottom: 74px;
  right: 18px;
  z-index: 1200;
}

.chat-fab-nav {
  position: relative;
  z-index: 2;
  margin-top: -22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-fab-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ea5f6 0%, #1c8edc 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 24px rgba(46, 165, 246, 0.45), 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fabPulse 2.5s infinite;
}

.chat-fab-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 28px rgba(46, 165, 246, 0.6), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.chat-fab-btn:active {
  transform: scale(0.95);
}

.chat-fab-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.chat-fab-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.chat-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  animation: bounceIn 0.3s ease;
}

.chat-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background-color: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

@keyframes fabPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 165, 246, 0.5), 0 8px 24px rgba(46, 165, 246, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(46, 165, 246, 0), 0 8px 24px rgba(46, 165, 246, 0.4);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 165, 246, 0), 0 8px 24px rgba(46, 165, 246, 0.4);
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
  }
  60% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
.chat-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1300;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  animation: fadeIn 0.2s ease-out;
}

.chat-drawer-container {
  width: 100%;
  max-width: 420px;
  height: 85vh;
  max-height: 680px;
  background: #111827;
  color: #f9fafb;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  .chat-drawer-container {
    margin-right: 20px;
    margin-bottom: 20px;
    border-radius: 20px;
    height: 600px;
  }
}

.chat-header {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #374151;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.chat-header-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.chat-header-status {
  font-size: 12px;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.chat-close-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s;
}

.chat-close-btn:hover {
  color: #fff;
  background: #374151;
}

.chat-quick-actions {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  background: #111827;
  border-bottom: 1px solid #1f2937;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chat-quick-actions::-webkit-scrollbar {
  display: none;
}

.chat-quick-chip {
  background: #1f2937;
  color: #f3f4f6;
  border: 1px solid #374151;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  width: auto;
  height: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  user-select: none;
}

.chat-quick-chip:hover,
.chat-quick-chip:active {
  background: linear-gradient(135deg, #2ea5f6 0%, #1c8edc 100%);
  color: #ffffff;
  border-color: #2ea5f6;
  box-shadow: 0 4px 12px rgba(46, 165, 246, 0.4);
}

.chat-messages-area {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #0f172a;
}

.message-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.45;
  word-break: break-word;
  position: relative;
  animation: fadeInMsg 0.25s ease-out;
}

.message-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.message-admin {
  align-self: flex-start;
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #334155;
  border-bottom-left-radius: 4px;
}

.message-bot {
  align-self: flex-start;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #e0e7ff;
  border: 1px solid #4338ca;
  border-bottom-left-radius: 4px;
}

.message-broadcast {
  align-self: center;
  width: 92%;
  background: linear-gradient(135deg, #7c2d12 0%, #9a3412 100%);
  color: #ffedd5;
  border: 1px solid #ea580c;
  border-radius: 12px;
  text-align: center;
}

.broadcast-badge {
  display: inline-block;
  background: #ea580c;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.message-time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  text-align: right;
}

.message-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 4px;
}

.message-meta .message-time {
  margin-top: 0;
}

.message-more-btn {
  border: none;
  background: transparent;
  color: inherit;
  opacity: 0.75;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
}

.message-action-menu {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 110px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  overflow: hidden;
  z-index: 5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.message-user .message-action-menu {
  right: auto;
  left: 8px;
}

.message-admin .message-action-menu,
.message-bot .message-action-menu {
  left: auto;
  right: 8px;
}

.message-action-menu button {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  color: #e2e8f0;
  text-align: left;
  padding: 9px 12px;
  font-size: 13px;
  cursor: pointer;
}

.message-action-menu button:hover {
  background: #1e293b;
}

.message-action-menu .message-action-delete {
  color: #fca5a5;
}

.message-reply-quote {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  margin-bottom: 6px;
  border-left: 3px solid #38bdf8;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.35);
}

.message-user .message-reply-quote {
  background: rgba(255, 255, 255, 0.12);
  border-left-color: #fde68a;
}

.message-reply-label {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.9;
}

.message-reply-text {
  font-size: 12px;
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-reply-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #1e293b;
  border-top: 1px solid #334155;
}

.chat-reply-preview-body {
  flex: 1;
  min-width: 0;
  border-left: 3px solid #10b981;
  padding-left: 10px;
}

.chat-reply-preview-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
}

.chat-reply-preview-text {
  display: block;
  font-size: 12px;
  color: #cbd5e1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-reply-preview-close {
  border: none;
  background: #334155;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.message-img {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 6px;
  display: block;
}

.typing-indicator {
  align-self: flex-start;
  font-size: 12px;
  color: #94a3b8;
  font-style: italic;
  padding: 4px 10px;
}

.chat-input-area {
  padding: 12px;
  background: #1e293b;
  border-top: 1px solid #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-input {
  flex: 1;
  background: #0f172a;
  border: 1px solid #334155;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input:focus {
  border-color: #10b981;
}

.chat-send-btn {
  background: #10b981;
  color: #ffffff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-send-btn:hover {
  background: #059669;
  transform: scale(1.05);
}

.message-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  margin-top: 6px;
}

.message-audio {
  display: block;
  width: min(240px, 100%);
  margin-top: 6px;
  border-radius: 10px;
}

.chat-record-error {
  padding: 6px 12px;
  font-size: 12px;
  color: #fecaca;
  background: #1e293b;
  border-top: 1px solid #334155;
}

.chat-record-bar {
  padding: 12px;
  background: #1e293b;
  border-top: 1px solid #334155;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-record-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  animation: chatRecordPulse 1s ease-in-out infinite;
}

.chat-record-label {
  flex: 1;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 600;
}

.chat-record-cancel,
.chat-record-send {
  border: none;
  border-radius: 16px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.chat-record-cancel {
  background: #334155;
  color: #e2e8f0;
}

.chat-record-send {
  background: #10b981;
  color: #ffffff;
}

@keyframes chatRecordPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.chat-attach-btn {
  background: transparent;
  color: #94a3b8;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
}

.chat-attach-btn:hover {
  color: #38bdf8;
  background: #334155;
}

.chat-attach-btn:disabled,
.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-camera-overlay {
  position: absolute;
  inset: 0;
  background: #000000;
  z-index: 20;
  display: flex;
  flex-direction: column;
}

.chat-camera-video {
  flex: 1;
  width: 100%;
  object-fit: cover;
  background: #000000;
}

.chat-camera-actions {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.35));
}

.chat-camera-shutter {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.chat-camera-shutter span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
}

.chat-camera-close,
.chat-camera-flip {
  background: transparent;
  border: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.chat-camera-flip {
  justify-self: end;
}

.chat-camera-error {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  color: #ffffff;
  text-align: center;
}

.chat-camera-error .chat-camera-close {
  background: #10b981;
  border-radius: 20px;
  padding: 8px 18px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.app-bottom-nav {
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  border-radius: 0 !important;
  overflow: visible !important;
  padding-bottom: env(safe-area-inset-bottom);
  background: #ffffff !important;
  border-top: 1px solid rgba(46, 165, 246, 0.15);
  box-shadow: 0 -6px 24px rgba(46, 165, 246, 0.12) !important;
}

.app-bottom-nav-bar {
  height: 70px !important;
  background: #ffffff !important;
  overflow: visible !important;
  padding-top: 4px;
}

.app-bottom-nav-bar .MuiBottomNavigationAction-root {
  color: #64748b;
  min-width: 0;
  padding: 4px 0;
  flex: 1;
  overflow: visible;
  transition: all 0.2s ease;
}

.app-bottom-nav-bar .MuiBottomNavigationAction-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 2px;
  transition: color 0.2s ease, font-weight 0.2s ease;
}

.app-bottom-nav-bar .Mui-selected .MuiBottomNavigationAction-label {
  font-size: 0.74rem !important;
  font-weight: 900 !important;
  color: #2ea5f6 !important;
}

/* Theme-matched Icon Box (#2ea5f6) */
.nav-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(46, 165, 246, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2ea5f6;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 2px;
}

.nav-icon-box svg {
  font-size: 22px;
  color: #2ea5f6;
  transition: color 0.2s ease;
}

.nav-icon-box.is-selected {
  background: linear-gradient(135deg, #2ea5f6 0%, #1c8edc 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(46, 165, 246, 0.45);
  transform: scale(1.1);
  border-radius: 14px;
}

.nav-icon-box.is-selected svg {
  color: #ffffff;
}

/* Chat Fab Button */
.app-bottom-nav-fab-action {
  overflow: visible !important;
}

.app-bottom-nav-fab-action .MuiBottomNavigationAction-wrapper,
.app-bottom-nav-fab-action .MuiBottomNavigationAction-label {
  overflow: visible;
}

.app-bottom-nav-fab-action .chat-fab-btn {
  width: 52px;
  height: 52px;
  pointer-events: none;
  border: 4px solid #ffffff;
  background: linear-gradient(135deg, #2ea5f6 0%, #1c8edc 100%);
  box-shadow: 0 4px 16px rgba(46, 165, 246, 0.45);
}

.app-bottom-nav-fab-action .chat-fab-icon {
  width: 26px;
  height: 26px;
  color: #ffffff;
}
.wallet-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.wallet-hero-balance {
  min-width: 0;
}

.wallet-hero-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #8a8a8a;
}

.wallet-hero-amount {
  display: block;
  margin-top: 4px;
  font-size: 1.45rem;
  font-weight: 800;
  color: #111111;
  line-height: 1.15;
}

.wallet-hero-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.wallet-hero-action {
  width: 72px;
  min-height: 64px;
  border-radius: 12px;
  border: 1.5px solid #2ea5f6;
  background: #2ea5f6;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 4px;
}

.wallet-hero-action.is-outline {
  background: #ffffff;
  color: #2ea5f6;
}

.wallet-hero-action .MuiSvgIcon-root {
  font-size: 20px;
}

.wallet-hero-action span {
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.app-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: #f6f6f6;
  padding-top: 56px;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.app-page-body {
  background: linear-gradient(#2ea5f6 0 92px, #f6f6f6 92px);
  padding: 12px 12px 16px;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .app-page-body {
    max-width: 720px;
    margin: 0 auto;
  }
}
.wallet-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.wallet-hero-balance {
  min-width: 0;
}

.wallet-hero-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #8a8a8a;
}

.wallet-hero-amount {
  display: block;
  margin-top: 4px;
  font-size: 1.45rem;
  font-weight: 800;
  color: #111111;
  line-height: 1.15;
}

.wallet-hero-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.wallet-hero-action {
  width: 72px;
  min-height: 64px;
  border-radius: 12px;
  border: 1.5px solid #2ea5f6;
  background: #2ea5f6;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 4px;
}

.wallet-hero-action.is-outline {
  background: #ffffff;
  color: #2ea5f6;
}

.wallet-hero-action .MuiSvgIcon-root {
  font-size: 20px;
}

.wallet-hero-action span {
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.app-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: #f6f6f6;
  padding-top: 56px;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.app-page-body {
  background: linear-gradient(#2ea5f6 0 92px, #f6f6f6 92px);
  padding: 12px 12px 16px;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .app-page-body {
    max-width: 720px;
    margin: 0 auto;
  }
}

.home-page {
  background: #e3f2fd;
  min-height: 100vh;
  padding-bottom: 84px;
}

/* Marquee Header Banner */

.home-marquee-banner {
  background: #2ea5f6;
  color: #ffffff;
  padding: 10px 14px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(46, 165, 246, 0.25);
}

.home-marquee-content {
  display: inline-block;
  padding-left: 100%;
  animation: marqueeAnim 22s linear infinite;
}

@keyframes marqueeAnim {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* Big White Featured Game Card */

.home-featured-card-wrapper {
  padding: 20px 16px 12px;
}

.home-featured-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 32px 20px;
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.05);
}

.home-featured-time {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #111111 !important;
  margin-bottom: 8px !important;
  letter-spacing: 0.02em;
}

.home-featured-title {
  font-size: 2.2rem !important;
  font-weight: 900 !important;
  color: #2ea5f6 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  margin-bottom: 8px !important;
  line-height: 1.1 !important;
}

.home-featured-result {
  font-size: 4.5rem !important;
  font-weight: 900 !important;
  color: #2ea5f6 !important;
  line-height: 1 !important;
  letter-spacing: 0.05em !important;
}

/* Horizontal Scroll Container for Game Cards */

.home-horizontal-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 12px;
  padding: 12px 16px 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.home-horizontal-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Pastel Game Card */

.home-pastel-card {
  flex: 0 0 auto;
  width: 135px;
  height: 130px;
  border-radius: 18px;
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: transform 0.15s ease;
  user-select: none;
}

.home-pastel-card:active {
  transform: scale(0.95);
}

/* Pastel Colors matching user screenshot */

.pastel-pink {
  background: #fcd5ce;
}

.pastel-purple {
  background: #d8d2e7;
}

.pastel-green {
  background: #c8e6c9;
}

.pastel-tan {
  background: #e8d8b8;
}

.pastel-blue {
  background: #c1d3fe;
}

.pastel-result {
  font-size: 2.1rem !important;
  font-weight: 900 !important;
  color: #000000 !important;
  line-height: 1 !important;
  margin-bottom: 6px !important;
}

.pastel-name {
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  color: #1d70b8 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  line-height: 1.2 !important;
  margin-bottom: 4px !important;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pastel-time {
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  color: #000000 !important;
}

/* Refresh Button */

.home-refresh-wrapper {
  display: flex;
  justify-content: center;
  margin: 8px 0 24px;
}

.home-floating-refresh-btn {
  background: #475569;
  color: #ffffff;
  border: none;
  border-radius: 30px;
  padding: 12px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(71, 85, 105, 0.3);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.home-floating-refresh-btn:active {
  transform: scale(0.95);
  background: #334155;
}

.home-floating-refresh-btn .MuiSvgIcon-root {
  font-size: 20px;
  transition: transform 0.5s ease;
}

.home-floating-refresh-btn.is-spinning .MuiSvgIcon-root {
  animation: spinIcon 0.8s linear infinite;
}

@keyframes spinIcon {
  100% { transform: rotate(360deg); }
}
.play-page {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100vw;
  background: #ffffff;
  color: var(--theme-text);
  position: relative;
  padding-top: 76px;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  overflow-x: hidden;
}

.play-content {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 10px 20px;
  box-sizing: border-box;
}

.play-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 14px;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: none;
}

.play-hero-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}

.play-hero-sub {
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.92;
}

.play-stats-pill {
  text-align: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: #2ea5f6;
  border: 1px solid #1c8edc;
  flex-shrink: 0;
  color: #ffffff;
}

.play-stats-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.play-stats-value {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.play-game-list,
.play-game-card,
.play-empty-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.play-game-card {
  border-radius: 16px !important;
  border: 1px solid #e0e0e0;
  background: #fff !important;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-game-card--active:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.play-game-card--closed {
  opacity: 0.88;
}

.play-game-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #f5f5f5;
  color: #2c2c2c;
}

.play-game-card--closed .play-game-icon {
  background: #eef2f6;
  color: #8899aa;
}

.play-game-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #111111;
  line-height: 1.25;
  word-break: break-word;
}

.play-game-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: #555555;
}

.play-status-open {
  height: 22px !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  background: #eaf6fe !important;
  color: #111111 !important;
  border: 1px solid #2ea5f6 !important;
}

.play-status-closed {
  height: 22px !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  background: #f3f4f6 !important;
  color: #667788 !important;
  border: 1px solid #ccd6e0 !important;
}

.play-game-card--active {
  background: #2ea5f6 !important;
  border-color: #1c8edc !important;
}

.play-action-btn {
  min-width: 84px !important;
  height: 38px !important;
  border-radius: 10px !important;
  text-transform: none !important;
  font-weight: 800 !important;
  font-size: 0.78rem !important;
  box-shadow: none !important;
  background: #111111 !important;
  color: #fff !important;
}

.play-action-btn:hover {
  background: #000000 !important;
}

.play-action-btn--disabled {
  background: #b8c4d0 !important;
  color: #fff !important;
}

.play-empty-card {
  border-radius: 16px !important;
  border: 1px dashed #e0e0e0 !important;
  background: #fff !important;
}

@media (min-width: 769px) {
  .play-content {
    max-width: 720px;
    padding: 12px 16px 24px;
  }

  .play-hero-title {
    font-size: 1.35rem;
  }

  .play-game-name {
    font-size: 1.05rem;
  }
}

@media (max-width: 768px) {
  .play-page {
    padding-top: 68px;
  }

  .play-content {
    padding: 8px 8px 16px;
  }

  .play-action-btn {
    min-width: 72px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .play-action-btn .MuiButton-startIcon {
    margin-right: 2px !important;
  }
}

@media (max-width: 380px) {
  .play-game-icon {
    width: 44px;
    height: 44px;
  }

  .play-action-btn {
    min-width: 64px !important;
    font-size: 0.72rem !important;
  }
}
.md-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  z-index: 999;
}

.md-dialog {
  width: min(420px, calc(100% - 24px));
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--theme-border);
}

.md-title {
  margin: 0 0 8px;
  font-size: 22px;
}

.md-title.success {
  color: var(--theme-teal-dark);
}

.md-title.error {
  color: #cc3333;
}

.md-message {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--theme-text);
}

.md-btn {
  margin-top: 14px;
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 8px;
  background: var(--theme-blue);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
/* Market Play Page - Fixed contrast & Mobile Optimized (Zero-scroll & responsive on all devices) */
.market-play-page {
  min-height: 100vh !important;
  min-height: 100dvh !important;
  width: 100% !important;
  max-width: 100vw !important;
  background: #f4f6fa !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  padding-top: 0 !important;
  padding-bottom: calc(75px + env(safe-area-inset-bottom)) !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

/* Sticky Topbar */
.mp-topbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  background: #2ea5f6 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(46, 165, 246, 0.25);
  box-sizing: border-box;
}

.mp-topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.mp-topbar-back {
  background: transparent;
  border: none;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  cursor: pointer;
  padding: 4px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s ease;
}

.mp-topbar-back:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mp-topbar-title {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-topbar-subtitle {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  color: #eaf6fe !important;
  -webkit-text-fill-color: #eaf6fe !important;
  margin-top: 1px;
}

.mp-topbar-balance {
  background: rgba(255, 255, 255, 0.22) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Tabs Bar */
.mp-tabs-bar {
  background: #ffffff !important;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: sticky;
  top: 52px;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.mp-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 4px;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #475569 !important;
  -webkit-text-fill-color: #475569 !important;
  cursor: pointer;
  text-align: center;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.mp-tab-btn.is-active {
  color: #2ea5f6 !important;
  -webkit-text-fill-color: #2ea5f6 !important;
  border-bottom-color: #2ea5f6 !important;
  font-weight: 900 !important;
}

/* Main Container - Optimized for Mobile */
.mp-container {
  width: 100% !important;
  max-width: 680px;
  margin: 0 auto;
  padding: 8px 6px 72px;
  box-sizing: border-box;
}

/* ==========================================================
   RESPONSIVE 10x10 JANTRI GRID
   Comfortable box sizes, crisp typography & touch targets
   ========================================================== */
.mp-jantri-grid {
  display: grid !important;
  grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
  background: #ffffff !important;
  border: 1.5px solid #94a3b8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.mp-jantri-cell {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 60px;
  min-height: 60px;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 4px 2px 5px !important;
  transition: background-color 0.12s ease, border-color 0.12s ease;
  background-color: #ffffff !important;
  box-sizing: border-box !important;
  cursor: pointer;
}

.mp-jantri-cell:nth-child(10n) {
  border-right: none;
}

.mp-jantri-cell:nth-last-child(-n+10) {
  border-bottom: none;
}

.mp-jantri-cell:hover {
  background-color: #f8fafc !important;
}

.mp-jantri-cell.is-filled {
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%) !important;
  border-color: #93c5fd;
}

.mp-cell-num {
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  user-select: none;
  pointer-events: none;
  margin-top: 1px;
  letter-spacing: -0.01em;
}

.mp-jantri-cell.is-filled .mp-cell-num {
  color: #1d4ed8 !important;
  -webkit-text-fill-color: #1d4ed8 !important;
  font-weight: 900 !important;
}

.mp-cell-input {
  width: calc(100% - 4px) !important;
  height: 25px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  outline: none !important;
  background-color: #f8fafc !important;
  text-align: center !important;
  font-weight: 800 !important;
  font-size: 0.92rem !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  padding: 0 !important;
  margin: 0 !important;
  caret-color: #2ea5f6;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.mp-cell-input:focus {
  background-color: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.22) !important;
}

.mp-jantri-cell.is-filled .mp-cell-input {
  background-color: #ffffff !important;
  border-color: #3b82f6 !important;
  color: #1d4ed8 !important;
  -webkit-text-fill-color: #1d4ed8 !important;
  font-weight: 900 !important;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.15) !important;
}

/* Direct Open Haruf Section below Jantri */
.mp-haruf-section {
  margin-top: 14px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 10-Column Haruf Single-Row Grid */
.mp-haruf-grid {
  display: grid !important;
  grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1;
  border-top: none;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.mp-haruf-grid .mp-jantri-cell {
  height: 60px;
  min-height: 60px;
  border-bottom: none;
}

.mp-haruf-grid .mp-jantri-cell:last-child {
  border-right: none;
}

/* Section Header Bars (DHAI / OPEN / अंदर & HARUP / CLOSE / बाहर) */
.mp-section-bar {
  background: #2ea5f6 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 0.84rem !important;
  text-align: center;
  padding: 8px 10px !important;
  margin-top: 10px;
  border-radius: 10px 10px 0 0;
  letter-spacing: 0.02em;
  box-sizing: border-box;
}

/* Legacy Table Support */
.mp-table-card {
  width: 100% !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.mp-grid-row-header {
  display: grid !important;
  grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
  background-color: #1e293b !important;
  border-bottom: 1px solid #334155;
  box-sizing: border-box;
}

.mp-grid-col-num {
  background-color: #1e293b !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-align: center;
  font-weight: 800 !important;
  font-size: 0.7rem !important;
  padding: 4px 0 !important;
  border-right: 1px solid #334155;
  user-select: none;
  box-sizing: border-box;
}

.mp-grid-col-num:last-child {
  border-right: none;
}

.mp-grid-row-inputs {
  display: grid !important;
  grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid #e2e8f0;
  box-sizing: border-box;
}

.mp-grid-row-inputs:last-child {
  border-bottom: none;
}

.mp-grid-input-cell {
  background-color: #ffffff !important;
  border-right: 1px solid #e2e8f0;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  box-sizing: border-box;
  padding: 0;
}

.mp-grid-input-cell:last-child {
  border-right: none;
}

.mp-grid-input-cell.is-filled {
  background-color: #eaf6fe !important;
}

.mp-grid-input-cell input {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  outline: none !important;
  background-color: transparent !important;
  text-align: center !important;
  font-weight: 800 !important;
  font-size: 0.78rem !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  caret-color: #2ea5f6;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.mp-grid-input-cell input:focus {
  background-color: #ffffff !important;
  box-shadow: inset 0 0 0 2px #2ea5f6 !important;
}

/* Non-Jantri Tabs (Crossing & No-To-No) */
.mp-tab-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mp-form-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mp-form-group {
  margin-bottom: 12px;
}

.mp-form-label {
  display: block;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  margin-bottom: 5px;
}

.mp-form-input {
  width: 100% !important;
  height: 42px;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px;
  padding: 0 12px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  background-color: #ffffff !important;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s ease;
}

.mp-form-input::placeholder {
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8 !important;
}

.mp-form-input:focus {
  border-color: #2ea5f6 !important;
  box-shadow: 0 0 0 3px rgba(46, 165, 246, 0.18);
}

.mp-radio-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 10px 0;
}

.mp-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  cursor: pointer;
}

.mp-add-bets-btn {
  width: 100%;
  height: 42px;
  background: #2ea5f6 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: none;
  border-radius: 8px;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mp-add-bets-btn:hover {
  background: #1c8edc !important;
}

/* Bet Slip Table */
.mp-slip-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mp-slip-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 40px;
  padding: 10px 12px;
  background: #eaf6fe !important;
  color: #1c8edc !important;
  -webkit-text-fill-color: #1c8edc !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
}

.mp-slip-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 40px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

.mp-slip-del-btn {
  background: transparent;
  border: none;
  color: #ef4444 !important;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fixed Bottom Bar */
.mp-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff !important;
  border-top: 1px solid #cbd5e1;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.mp-footer-inner {
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 12px;
  align-items: center;
  box-sizing: border-box;
}

.mp-total-box {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  user-select: none;
}

.mp-play-game-btn {
  background: #2ea5f6 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: none;
  border-radius: 10px;
  height: 48px;
  font-size: 1rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(46, 165, 246, 0.35);
  transition: all 0.18s ease;
  user-select: none;
}

.mp-play-game-btn:hover {
  background: #1c8edc !important;
}

.mp-play-game-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(46, 165, 246, 0.3);
}

.mp-play-game-btn:disabled {
  background: #94a3b8 !important;
  cursor: not-allowed;
  box-shadow: none;
}

/* Mobile Responsiveness for all screen sizes */
@media (max-width: 600px) {
  .mp-container {
    padding: 6px 4px 68px;
  }

  .mp-jantri-cell,
  .mp-haruf-grid .mp-jantri-cell {
    height: 56px !important;
    min-height: 56px !important;
    padding: 3px 2px 4px !important;
  }

  .mp-cell-num {
    font-size: 0.82rem !important;
  }

  .mp-cell-input {
    font-size: 0.88rem !important;
    height: 24px !important;
  }

  .mp-footer-inner {
    grid-template-columns: 105px 1fr;
    gap: 10px;
  }

  .mp-total-box {
    height: 44px;
    font-size: 1rem !important;
  }

  .mp-play-game-btn {
    height: 44px;
    font-size: 0.95rem !important;
  }
}

@media (max-width: 420px) {
  .mp-topbar {
    padding: 8px 10px;
  }

  .mp-topbar-title {
    font-size: 1rem !important;
  }

  .mp-tabs-bar {
    top: 48px;
  }

  .mp-tab-btn {
    font-size: 0.82rem !important;
    padding: 10px 2px;
  }

  .mp-container {
    padding: 6px 3px 64px;
  }

  .mp-jantri-cell,
  .mp-haruf-grid .mp-jantri-cell {
    height: 54px;
    min-height: 54px;
    padding: 3px 1.5px 4px !important;
  }

  .mp-cell-num {
    font-size: 0.8rem !important;
    margin-top: 1px;
    margin-bottom: 2px;
  }

  .mp-cell-input {
    font-size: 0.86rem !important;
    height: 23px !important;
    border-radius: 5px !important;
  }

  .mp-section-bar {
    font-size: 0.78rem !important;
    padding: 6px 4px !important;
    margin-top: 8px;
  }

  .mp-footer {
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  }

  .mp-footer-inner {
    grid-template-columns: 95px 1fr;
    gap: 8px;
  }

  .mp-total-box {
    font-size: 0.95rem !important;
    height: 42px;
  }

  .mp-play-game-btn {
    font-size: 0.92rem !important;
    height: 42px;
  }
}

@media (max-width: 360px) {
  .mp-jantri-cell,
  .mp-haruf-grid .mp-jantri-cell {
    height: 50px;
    min-height: 50px;
    padding: 2px 1px 3px !important;
  }

  .mp-cell-num {
    font-size: 0.74rem !important;
    margin-bottom: 1px;
  }

  .mp-cell-input {
    font-size: 0.8rem !important;
    height: 22px !important;
    border-radius: 4px !important;
  }

  .mp-tab-btn {
    font-size: 0.76rem !important;
    padding: 8px 1px;
  }
}
.wallet-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.wallet-hero-balance {
  min-width: 0;
}

.wallet-hero-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #8a8a8a;
}

.wallet-hero-amount {
  display: block;
  margin-top: 4px;
  font-size: 1.45rem;
  font-weight: 800;
  color: #111111;
  line-height: 1.15;
}

.wallet-hero-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.wallet-hero-action {
  width: 72px;
  min-height: 64px;
  border-radius: 12px;
  border: 1.5px solid #2ea5f6;
  background: #2ea5f6;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 4px;
}

.wallet-hero-action.is-outline {
  background: #ffffff;
  color: #2ea5f6;
}

.wallet-hero-action .MuiSvgIcon-root {
  font-size: 20px;
}

.wallet-hero-action span {
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.app-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: #f6f6f6;
  padding-top: 56px;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.app-page-body {
  background: linear-gradient(#2ea5f6 0 92px, #f6f6f6 92px);
  padding: 12px 12px 16px;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .app-page-body {
    max-width: 720px;
    margin: 0 auto;
  }
}

.wallet-page {
  background: #f6f6f6;
}

.wallet-content {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  box-sizing: border-box;
}

.wallet-balance-banner {
  margin-bottom: 12px;
  border-radius: 16px !important;
  border: 1px solid #e0e0e0;
  background: #2c2c2c !important;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.wallet-balance-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  flex-shrink: 0;
}

.wallet-balance-label {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  opacity: 0.88;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wallet-balance-amount {
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: #2ea5f6 !important;
}

.wallet-balance-chip {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  font-weight: 700 !important;
}

.wallet-balance-chip .MuiChip-icon {
  color: #2ea5f6 !important;
}

.wallet-form-card,
.wallet-history-card {
  border-radius: 16px !important;
  border: 1px solid #e0e0e0;
  background: #fff !important;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.wallet-form-card {
  margin-top: 14px;
  margin-bottom: 12px;
}

.wallet-main-tabs {
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}

.wallet-main-tabs .MuiTab-root {
  min-height: 52px;
  font-weight: 700;
  text-transform: none;
  color: #555555;
  font-size: 0.88rem;
}

.wallet-main-tabs .Mui-selected {
  color: #111111 !important;
}

.wallet-main-tabs .MuiTabs-indicator {
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #2ea5f6;
}

.wallet-amount-field .MuiOutlinedInput-root {
  border-radius: 12px;
  background: #f5f5f5;
  font-size: 1.1rem;
  font-weight: 700;
}

.wallet-amount-field .MuiOutlinedInput-notchedOutline {
  border-color: #e0e0e0;
}

.wallet-amount-field .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline {
  border-color: #2ea5f6;
}

.wallet-amount-field .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: #2c2c2c;
  border-width: 2px;
}

.wallet-primary-btn {
  height: 48px !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  text-transform: none !important;
  background: #2ea5f6 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.wallet-primary-btn:hover {
  background: #1c8edc !important;
}

.wallet-primary-btn--withdraw {
  background: #2ea5f6 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12) !important;
}

.wallet-primary-btn--withdraw:hover {
  background: #1c8edc !important;
}

.wallet-pay-btn {
  height: 42px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  box-shadow: none !important;
}

.wallet-pay-btn--bhim {
  background: #f47b20 !important;
}

.wallet-pay-btn--other {
  background: #2c2c2c !important;
}

.wallet-mode-toggle {
  margin-bottom: 4px;
}

.wallet-mode-toggle .MuiToggleButton-root {
  flex: 1;
  text-transform: none;
  font-weight: 700;
  border-color: #e0e0e0 !important;
  color: #555555;
  border-radius: 10px !important;
}

.wallet-mode-toggle .MuiToggleButton-root.Mui-selected {
  background: #2c2c2c !important;
  color: #fff !important;
  border-color: #2c2c2c !important;
}

.wallet-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  background: #fff;
  color: #111;
}

.wallet-history-header h3 {
  margin: 0;
  flex: 1;
  font-size: 1rem;
  font-weight: 800;
}

.wallet-download-chip {
  background: #2ea5f6 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
}

.wallet-txn-list {
  padding: 0 8px 8px;
}

.wallet-txn-row {
  display: grid;
  grid-template-columns: 36px 1fr auto 16px;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  border-top: 1px solid #f0f0f0;
}

.wallet-txn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.wallet-txn-icon.is-in {
  background: #e8f8ee;
  color: #1b8a3a;
}

.wallet-txn-icon.is-out {
  background: #fdecee;
  color: #d32f2f;
}

.wallet-txn-info strong,
.wallet-txn-info span,
.wallet-txn-meta strong,
.wallet-txn-meta small {
  display: block;
}

.wallet-txn-info strong {
  font-size: 0.86rem;
}

.wallet-txn-info span,
.wallet-txn-meta small {
  color: #8a8a8a;
  font-size: 0.7rem;
  margin-top: 2px;
}

.wallet-txn-meta {
  text-align: right;
}

.wallet-txn-meta strong.is-in,
.wallet-summary .is-in {
  color: #1b8a3a;
}

.wallet-txn-meta strong.is-out,
.wallet-summary .is-out {
  color: #d32f2f;
}

.wallet-txn-meta small {
  color: #1b8a3a;
  font-weight: 700;
}

.wallet-txn-arrow {
  color: #c8c8c8 !important;
  font-size: 18px !important;
}

.wallet-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 10px;
  background: #eaf6fe;
  border-top: 1px solid #d4eefe;
}

.wallet-summary div {
  text-align: center;
}

.wallet-summary span {
  display: block;
  font-size: 0.64rem;
  color: #666;
  font-weight: 700;
}

.wallet-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 800;
}

.wallet-history-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.wallet-history-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.wallet-history-table th,
.wallet-history-table td {
  padding: 10px 12px;
  font-size: 0.78rem;
  text-align: left;
  border-bottom: 1px solid #f5f5f5;
  white-space: nowrap;
}

.wallet-history-table th {
  background: #f5f5f5;
  color: #111111;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1;
}

.wallet-history-table tbody tr:hover {
  background: #eaf6fe;
}

.wallet-cell-amount {
  color: #2c2c2c;
  font-weight: 800;
}

.wallet-status-chip {
  background: #eaf6fe !important;
  color: #111111 !important;
  font-weight: 700 !important;
  font-size: 0.68rem !important;
}

.wallet-empty-row {
  text-align: center !important;
  color: #888888;
  font-weight: 600;
  padding: 24px 12px !important;
}

@media (max-width: 768px) {
  .wallet-content {
    padding-left: 0;
    padding-right: 0;
  }

  .wallet-balance-amount {
    font-size: 1.45rem !important;
  }

  .wallet-main-tabs .MuiTab-root {
    min-height: 48px;
    font-size: 0.8rem;
    padding-left: 8px;
    padding-right: 8px;
  }

  .wallet-history-table {
    min-width: 480px;
  }

  .wallet-history-table th,
  .wallet-history-table td {
    padding: 8px 10px;
    font-size: 0.72rem;
  }
}

@media (max-width: 380px) {
  .wallet-balance-chip {
    display: none;
  }

  .wallet-main-tabs .MuiTab-root .MuiTab-iconWrapper {
    display: none;
  }
}
.add-point-page {
  min-height: 100vh;
  background: var(--theme-blue-soft);
  padding-top: 76px;
  padding-bottom: 72px;
}

.addp-topbar {
  height: 76px;
  background: var(--theme-blue);
  color: #fff;
  display: grid;
  grid-template-columns: 42px 24px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 0 10px;
  box-sizing: border-box;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 8;
}

.addp-icon-btn {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 28px;
}

.addp-bell {
  font-size: 24px;
  cursor: pointer;
}

.addp-logo {
  width: 62px;
  height: 62px;
  object-fit: cover;
  justify-self: center;
}

.addp-balance-card {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  padding: 4px 8px;
}

.addp-coin {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--theme-yellow);
  color: var(--theme-text);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.addp-balance-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.addp-balance-text small {
  font-size: 12px;
}

.addp-balance-text strong {
  font-size: 28px;
  color: var(--theme-yellow);
}

.addp-win-strip {
  margin-top: 8px;
  background: var(--theme-blue);
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  padding: 8px;
}

.addp-win-strip span {
  color: var(--theme-yellow);
  margin-left: 8px;
}

.addp-content {
  padding: 8px 0;
}

.state-text {
  margin: 10px;
  font-size: 13px;
  color: var(--theme-text);
}

.state-text.error {
  color: #cc3333;
}

.addp-card,
.addp-history-card {
  background: var(--theme-blue-soft);
  border: 1px solid var(--theme-border);
  border-radius: 6px;
  padding: 6px;
  margin: 0 2px 10px;
}

.addp-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 6px;
}

.addp-tab {
  border: none;
  height: 42px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  background: transparent;
  color: var(--theme-text);
}

.addp-tab.active {
  background: var(--theme-blue);
  color: #fff;
}

.addp-input-wrap {
  border: 2px solid var(--theme-blue-dark);
  border-radius: 14px;
  background: var(--theme-white);
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  min-height: 48px;
}

.addp-input-icon {
  padding: 0 10px;
  font-size: 18px;
}

.addp-input-wrap input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 20px;
  width: 100%;
  color: var(--theme-text-muted);
}

.addp-submit-btn {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 8px;
  background: var(--theme-blue);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.addp-gateway-wrap {
  margin: 6px 0 10px;
}

.addp-gateway-wrap label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--theme-text);
  margin-bottom: 4px;
}

.addp-gateway-wrap select {
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--theme-border);
  background: #fff;
  padding: 0 10px;
  font-size: 14px;
}

.addp-history-card h3 {
  margin: -8px -8px 0;
  background: var(--theme-blue);
  color: #fff;
  padding: 12px 10px;
  font-size: 16px;
  font-weight: 500;
}

.addp-history-card table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.addp-history-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.addp-history-card th,
.addp-history-card td {
  border: 1px solid var(--theme-border);
  padding: 8px 10px;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}

.addp-history-card th {
  background: var(--theme-blue);
  color: #fff;
  font-weight: 500;
}

.addp-history-card td.success {
  color: var(--theme-teal-dark);
  font-weight: 700;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--theme-blue);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-item {
  border: none;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  font-size: 15px;
  font-weight: 500;
}

.nav-item.active {
  color: var(--theme-text);
  background: var(--theme-white);
  border-radius: 8px;
  margin: 4px;
}

@media (max-width: 768px) {
  .addp-topbar {
    height: 68px;
    grid-template-columns: 34px 22px 1fr auto;
    gap: 8px;
    padding: 0 8px;
  }

  .add-point-page {
    padding-top: 68px;
  }

  .addp-logo {
    width: 52px;
    height: 52px;
  }

  .addp-balance-card {
    gap: 4px;
    padding: 3px 6px;
  }

  .addp-balance-text small {
    font-size: 10px;
  }

  .addp-balance-text strong {
    font-size: 18px;
  }

  .addp-coin {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .addp-win-strip {
    font-size: 13px;
    padding: 6px;
  }

  .addp-content {
    padding: 6px 0 0;
  }

  .addp-card,
  .addp-history-card {
    margin: 0 4px 10px;
  }

  .addp-tab {
    font-size: 13px;
    height: 38px;
  }

  .addp-input-wrap input {
    font-size: 14px;
  }

  .addp-submit-btn {
    font-size: 14px;
    height: 40px;
  }

  .addp-gateway-wrap select {
    height: 36px;
    font-size: 13px;
  }

  .addp-history-card h3 {
    font-size: 13px;
    padding: 10px 8px;
  }

  .addp-history-card table {
    min-width: 620px;
  }

  .addp-history-card th,
  .addp-history-card td {
    font-size: 11px;
    padding: 7px 8px;
  }
}

@media (max-width: 480px) {
  .addp-topbar {
    grid-template-columns: 30px 20px 1fr auto;
    gap: 6px;
  }

  .addp-icon-btn {
    font-size: 22px;
  }

  .addp-bell {
    font-size: 18px;
  }

  .addp-balance-text strong {
    font-size: 16px;
  }

  .addp-tab {
    font-size: 12px;
    height: 36px;
  }

  .addp-input-wrap {
    min-height: 42px;
  }

  .addp-input-icon {
    font-size: 15px;
    padding: 0 8px;
  }

  .addp-history-card table {
    min-width: 560px;
  }
}
.mygame-page-root {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  background: #f4f6fa;
  color: var(--theme-text, #111111);
  position: relative;
  box-sizing: border-box;
  overflow-x: hidden;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

.mygame-container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Header matching the frontend theme (#2ea5f6) and keeping structure (← All Games) */
.mygame-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #2ea5f6;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  box-shadow: 0 2px 10px rgba(46, 165, 246, 0.25);
  box-sizing: border-box;
}

.mygame-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mygame-back-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 4px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s ease, transform 0.15s ease;
}

.mygame-back-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.mygame-back-btn:active {
  transform: scale(0.92);
}

.mygame-header-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
  user-select: none;
}

/* Games Card List - Structure intact, frontend light theme colors */
.mygame-list {
  padding: 14px 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-sizing: border-box;
}

.mygame-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(46, 165, 246, 0.18);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 3px 12px rgba(46, 165, 246, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-sizing: border-box;
}

.mygame-card:hover {
  transform: translateY(-2px);
  border-color: #2ea5f6;
  box-shadow: 0 6px 18px rgba(46, 165, 246, 0.16);
}

.mygame-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.mygame-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  text-transform: uppercase;
}

.mygame-card-time {
  font-size: 0.83rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

/* "PLAY NOW" Button with double triangle icon - styled with frontend primary color */
.mygame-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #2ea5f6;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(46, 165, 246, 0.35);
  transition: all 0.18s ease;
  user-select: none;
}

.mygame-play-btn:hover {
  background: #1c8edc;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(28, 142, 220, 0.45);
}

.mygame-play-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(46, 165, 246, 0.3);
}

.mygame-play-icon {
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Skeletons */
.mygame-skeleton-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #eef2f6;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mygame-skeleton-line {
  background: #e2e8f0;
  border-radius: 4px;
  animation: mygame-pulse 1.5s infinite ease-in-out;
}

.mygame-skeleton-btn {
  background: rgba(46, 165, 246, 0.25);
  border-radius: 8px;
  width: 110px;
  height: 36px;
  animation: mygame-pulse 1.5s infinite ease-in-out;
}

@keyframes mygame-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.4; }
}

/* Empty / Error state */
.mygame-empty-state {
  text-align: center;
  padding: 48px 16px;
  color: #64748b;
  font-size: 0.95rem;
}

.mygame-retry-btn {
  margin-top: 16px;
  background: #2ea5f6;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: 700;
  cursor: pointer;
}
.wallet-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.wallet-hero-balance {
  min-width: 0;
}

.wallet-hero-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #8a8a8a;
}

.wallet-hero-amount {
  display: block;
  margin-top: 4px;
  font-size: 1.45rem;
  font-weight: 800;
  color: #111111;
  line-height: 1.15;
}

.wallet-hero-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.wallet-hero-action {
  width: 72px;
  min-height: 64px;
  border-radius: 12px;
  border: 1.5px solid #2ea5f6;
  background: #2ea5f6;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 4px;
}

.wallet-hero-action.is-outline {
  background: #ffffff;
  color: #2ea5f6;
}

.wallet-hero-action .MuiSvgIcon-root {
  font-size: 20px;
}

.wallet-hero-action span {
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.app-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: #f6f6f6;
  padding-top: 56px;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.app-page-body {
  background: linear-gradient(#2ea5f6 0 92px, #f6f6f6 92px);
  padding: 12px 12px 16px;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .app-page-body {
    max-width: 720px;
    margin: 0 auto;
  }
}

.profile-page {
  background: #f6f6f6;
}

.pf-user-card,
.pf-card {
  width: 100%;
  margin-top: 14px;
  border: none;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  text-align: left;
}

.pf-user-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.pf-user-main {
  display: grid;
  grid-template-columns: 1fr 18px;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.pf-avatar-wrap {
  position: relative;
}

.pf-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #eaf6fe;
  color: #1c8edc;
  display: grid;
  place-items: center;
}

.pf-avatar .MuiSvgIcon-root {
  font-size: 36px;
}

.pf-camera {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2ea5f6;
  color: #fff;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}

.pf-camera .MuiSvgIcon-root {
  font-size: 12px;
}

.pf-user-info p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  color: #555;
  font-size: 0.78rem;
  font-weight: 600;
}

.pf-user-info .MuiSvgIcon-root {
  font-size: 14px;
  color: #1c8edc;
}

.pf-user-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pf-user-name strong {
  font-size: 1rem;
}

.pf-verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 12px;
  background: #eaf6fe;
  color: #1c8edc;
  font-size: 0.64rem;
  font-weight: 800;
}

.pf-verified .MuiSvgIcon-root {
  font-size: 12px;
}

.pf-card {
  padding: 8px 6px 6px;
}

.pf-card h3 {
  margin: 6px 10px 4px;
  font-size: 0.78rem;
  color: #8a8a8a;
}

.pf-row {
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.pf-row:disabled {
  cursor: default;
}

.pf-row-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eaf6fe;
  color: #1c8edc;
  display: grid;
  place-items: center;
}

.pf-row-copy {
  text-align: left;
}

.pf-row-copy strong {
  display: block;
  font-size: 0.88rem;
  color: #111;
}

.pf-row-value {
  color: #8a8a8a;
  font-size: 0.74rem;
  font-weight: 600;
  text-align: right;
  max-width: 46vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-row-arrow {
  color: #c8c8c8 !important;
  font-size: 20px !important;
}
.commission-page {
  min-height: 100vh;
  background: var(--theme-blue-soft);
  padding-top: 76px;
  padding-bottom: 72px;
}

.commission-topbar {
  height: 76px;
  background: var(--theme-blue);
  color: #fff;
  display: grid;
  grid-template-columns: 42px 24px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 0 10px;
  box-sizing: border-box;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 8;
}

.commission-icon-btn {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 28px;
}

.commission-bell {
  font-size: 24px;
}

.commission-logo {
  width: 62px;
  height: 62px;
  object-fit: cover;
  justify-self: center;
}

.commission-balance-card {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  padding: 4px 8px;
}

.commission-coin {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--theme-yellow);
  color: var(--theme-text);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.commission-balance-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.commission-balance-text small {
  font-size: 12px;
}

.commission-balance-text strong {
  font-size: 22px;
  color: var(--theme-yellow);
}

.commission-content {
  padding: 10px 4px;
}

.commission-title {
  margin: 0 0 8px;
  height: 52px;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, var(--theme-blue), var(--theme-teal));
  color: #fff;
  font-size: 35px;
}

.commission-table-wrap {
  overflow-x: auto;
}

.commission-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.commission-table-wrap th,
.commission-table-wrap td {
  border: 1px solid var(--theme-border);
  padding: 6px 8px;
  white-space: nowrap;
  font-size: 14px;
}

.commission-table-wrap th {
  background: var(--theme-teal);
  color: #fff;
}

.commission-table-wrap td {
  background: var(--theme-white);
  font-weight: 600;
}

.empty-row {
  text-align: center;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--theme-blue);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-item {
  border: none;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  font-size: 15px;
  font-weight: 500;
}

.nav-item.active {
  color: var(--theme-text);
  background: var(--theme-white);
  border-radius: 8px;
  margin: 4px;
}

@media (max-width: 768px) {
  .commission-balance-text strong {
    font-size: 18px;
  }

  .commission-title {
    font-size: 34px;
  }
}
.wallet-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.wallet-hero-balance {
  min-width: 0;
}

.wallet-hero-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #8a8a8a;
}

.wallet-hero-amount {
  display: block;
  margin-top: 4px;
  font-size: 1.45rem;
  font-weight: 800;
  color: #111111;
  line-height: 1.15;
}

.wallet-hero-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.wallet-hero-action {
  width: 72px;
  min-height: 64px;
  border-radius: 12px;
  border: 1.5px solid #2ea5f6;
  background: #2ea5f6;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 4px;
}

.wallet-hero-action.is-outline {
  background: #ffffff;
  color: #2ea5f6;
}

.wallet-hero-action .MuiSvgIcon-root {
  font-size: 20px;
}

.wallet-hero-action span {
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.app-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: #f6f6f6;
  padding-top: 56px;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.app-page-body {
  background: linear-gradient(#2ea5f6 0 92px, #f6f6f6 92px);
  padding: 12px 12px 16px;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .app-page-body {
    max-width: 720px;
    margin: 0 auto;
  }
}

.history-page {
  background: #f6f6f6 !important;
  min-height: 100vh !important;
  padding-top: 60px !important;
  padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important;
  box-sizing: border-box !important;
}

.history-content {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 12px 14px 24px;
  box-sizing: border-box;
}

/* Card matching website theme */

.gh-card {
  margin-top: 14px;
  padding: 14px 0 8px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid #edf2f7;
}

/* History Tabs: All Biddings vs Winning List */

.gh-tabs {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  gap: 6px;
  margin: 0 14px 12px;
}

.gh-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.gh-tab:hover {
  color: #0f172a;
}

.gh-tab.active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gh-tab.active.is-winnings {
  color: #16a34a;
}

.gh-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 14px 12px;
}

.gh-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.gh-head-left h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gh-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.gh-filter-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.gh-filter-select {
  appearance: none;
  -webkit-appearance: none;
  background: #eaf6fe;
  color: #1c8edc;
  border: 1px solid #2ea5f6;
  border-radius: 14px;
  min-height: 28px;
  padding: 0 24px 0 10px;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  outline: none;
  max-width: 140px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  transition: all 0.15s ease;
}

.gh-filter-select:focus {
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(46, 165, 246, 0.3);
}

.gh-select-arrow {
  position: absolute;
  right: 6px;
  pointer-events: none;
  color: #1c8edc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gh-show-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #2ea5f6;
  border-radius: 14px;
  min-height: 28px;
  padding: 0 10px;
  background: #eaf6fe;
  color: #1c8edc;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.gh-show-all-btn:hover {
  background: #2ea5f6;
  color: #ffffff;
}

/* 6 Column Header: Date | Game | No. | Type | Coins | Win Amt */

.gh-cols {
  display: grid;
  grid-template-columns: minmax(62px, 1fr) minmax(78px, 1.25fr) minmax(36px, 0.6fr) minmax(56px, 0.85fr) minmax(44px, 0.7fr) minmax(58px, 0.9fr);
  gap: 5px;
  align-items: center;
  padding: 10px 12px;
  background: #eaf6fe;
  color: #1c8edc;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-top: 1px solid #e0f2fe;
  border-bottom: 1px solid #e0f2fe;
}

.gh-cols .text-center {
  text-align: center;
}

.gh-cols .text-right {
  text-align: right;
  padding-right: 4px;
}

/* Table Row - Clean, high contrast */

.gh-row {
  display: grid;
  grid-template-columns: minmax(62px, 1fr) minmax(78px, 1.25fr) minmax(36px, 0.6fr) minmax(56px, 0.85fr) minmax(44px, 0.7fr) minmax(58px, 0.9fr);
  align-items: center;
  gap: 5px;
  padding: 11px 12px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  transition: background 0.15s ease;
}

.gh-row:nth-child(even) {
  background: #fafcff;
}

.gh-row:hover {
  background: #eaf6fe;
}

/* Column 1: Date & Time in 2 lines */

.gh-cell-date {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.25;
}

.gh-date-val {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.01em;
}

.gh-time-val {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 1px;
}

/* Column 2: Game */

.gh-cell-game {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 4px;
  line-height: 1.25;
}

.gh-game-val {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  word-break: break-word;
}

/* Column 3: Number */

.gh-cell-num {
  text-align: center;
  font-size: 0.92rem;
  font-weight: 800;
  color: #1c8edc;
}

/* Column 4: Type */

.gh-cell-type {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

/* Column 5: Coins */

.gh-cell-coins {
  text-align: center;
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f172a;
}

/* Column 6: Win Amount */

.gh-cell-win {
  text-align: center;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.gh-win-amt {
  display: inline-block;
  font-weight: 800;
}

.gh-win-amt.is-win {
  color: #16a34a;
}

.gh-win-amt.is-loss {
  color: #94a3b8;
}

.gh-win-amt.is-pending {
  color: #d97706;
  font-size: 0.72rem;
  font-weight: 700;
}

/* State texts */

.gh-state {
  text-align: center;
  color: #64748b;
  font-weight: 600;
  padding: 28px 14px;
  font-size: 0.88rem;
}

.gh-state.error {
  color: #ef4444;
}

.gh-loading-spinner {
  display: inline-block;
  width: 26px;
  height: 26px;
  border: 3px solid rgba(46, 165, 246, 0.2);
  border-radius: 50%;
  border-top-color: #2ea5f6;
  animation: gh-spin 0.8s linear infinite;
  margin-bottom: 8px;
}

@keyframes gh-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 420px) {
  .history-content {
    padding: 10px 6px 20px;
  }

  .gh-cols,
  .gh-row {
    grid-template-columns: minmax(56px, 1fr) minmax(70px, 1.2fr) minmax(30px, 0.5fr) minmax(48px, 0.8fr) minmax(38px, 0.65fr) minmax(52px, 0.9fr);
    padding: 8px 6px;
    gap: 3px;
  }

  .gh-cols {
    font-size: 0.64rem;
  }

  .gh-date-val {
    font-size: 0.74rem;
  }

  .gh-time-val {
    font-size: 0.64rem;
  }

  .gh-game-val {
    font-size: 0.72rem;
  }

  .gh-cell-num {
    font-size: 0.86rem;
  }

  .gh-cell-type {
    font-size: 0.72rem;
  }

  .gh-cell-coins {
    font-size: 0.8rem;
  }

  .gh-cell-win {
    font-size: 0.76rem;
  }
}
.result-history-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--theme-blue-soft);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.rh-topbar {
  height: 62px;
  padding: 0 12px;
  background: #2c2c2c;
  color: #fff;
  display: grid;
  grid-template-columns: auto 1fr 40px;
  align-items: center;
  gap: 8px;
  border-bottom: 3px solid #2ea5f6;
}

.rh-topbar h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  color: #fff;
}

.rh-back-btn,
.rh-refresh-btn {
  height: 36px;
  border: none;
  border-radius: 8px;
  background: #2ea5f6;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.rh-back-btn {
  width: auto;
  min-width: 36px;
  padding: 0 10px;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
}

.rh-back-btn .app-icon,
.rh-refresh-btn .app-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.rh-refresh-btn {
  width: 36px;
}

.rh-state {
  margin: 8px 12px;
  font-size: 13px;
  color: var(--theme-text);
}

.rh-state.error {
  color: #cc3333;
}

.rh-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 12px 0;
}

.rh-controls input {
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--theme-border);
  padding: 0 10px;
  font-size: 14px;
}

.rh-controls button {
  height: 40px;
  border: none;
  border-radius: 8px;
  background: var(--theme-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 0 12px;
}

.rh-table-wrap {
  flex: 1;
  min-height: 0;
  background: #fff;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  overflow: auto;
  margin-top: 6px;
  -webkit-overflow-scrolling: touch;
}

.rh-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.rh-table th,
.rh-table td {
  border: 1px solid var(--theme-border);
  padding: 8px 10px;
  white-space: nowrap;
  font-size: 12px;
  text-align: center;
}

.rh-table th {
  background: var(--theme-blue-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}

@media (max-width: 768px) {
  .rh-topbar h1 {
    font-size: 16px;
  }

  .rh-controls {
    grid-template-columns: 1fr;
  }
}
.terms-page {
  min-height: 100vh;
  background: var(--theme-blue-soft, #f0f4f8);
  padding-top: 76px;
  padding-bottom: 72px;
}

.terms-content {
  padding: 12px 10px 24px;
  max-width: 600px;
  margin: 0 auto;
}

/* Card Outer Container matching image frame */
.terms-card-wrapper {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  border: 3px solid #004d25;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 1. Header Banner */
.terms-header-banner {
  background: linear-gradient(180deg, #004d25 0%, #003619 100%);
  border-radius: 12px;
  padding: 12px 8px 10px;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.terms-header-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.crown-icon {
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.terms-main-title {
  margin: 0;
  font-size: 36px;
  font-weight: 900;
  color: #ffe500;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.5px;
  font-family: system-ui, -apple-system, sans-serif;
}

.terms-header-subtitle-pill {
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  padding: 4px 20px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.2);
}

/* 2. Hero Notice Box */
.terms-hero-alert {
  background: #fff9e6;
  border: 1px solid #ffe082;
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.terms-hero-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 800;
  color: #0d47a1;
}

.fire-emoji {
  font-size: 22px;
}

.terms-hero-text {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
}

.terms-hero-warning {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #c62828;
  line-height: 1.3;
}

/* 3. Game List Rows */
.terms-game-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.terms-game-row {
  display: grid;
  grid-template-columns: 140px auto 1fr;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid transparent;
}

.terms-game-name {
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.terms-game-time-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1.5px solid #333;
  font-size: 14px;
  font-weight: 800;
  color: #111;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.clock-svg {
  width: 16px;
  height: 16px;
  color: #111;
}

.terms-game-note {
  font-size: 13px;
  font-weight: 700;
  color: #222;
  text-align: right;
  line-height: 1.25;
}

/* Game Row Color Themes */
/* Disawar - Red */
.terms-game-row.theme-red {
  background-color: #fde8e8;
  border-color: #ffcdd2;
}
.terms-game-row.theme-red .terms-game-name {
  color: #c62828;
}

/* Gali - Green */
.terms-game-row.theme-green {
  background-color: #e8f5e9;
  border-color: #c8e6c9;
}
.terms-game-row.theme-green .terms-game-name {
  color: #2e7d32;
}

/* Gaziabad - Blue */
.terms-game-row.theme-blue {
  background-color: #e3f2fd;
  border-color: #bbdefb;
}
.terms-game-row.theme-blue .terms-game-name {
  color: #1565c0;
}

/* Faridabad - Orange */
.terms-game-row.theme-orange {
  background-color: #fff3e0;
  border-color: #ffe0b2;
}
.terms-game-row.theme-orange .terms-game-name {
  color: #d84315;
}

/* Delhi Bazar - Pink */
.terms-game-row.theme-pink {
  background-color: #fce4ec;
  border-color: #f8bbd0;
}
.terms-game-row.theme-pink .terms-game-name {
  color: #c2185b;
}

/* Shree Ganesh - Purple */
.terms-game-row.theme-purple {
  background-color: #f3e5f5;
  border-color: #e1bee7;
}
.terms-game-row.theme-purple .terms-game-name {
  color: #6a1b9a;
}

/* 4. Important Rules Box */
.terms-rules-box {
  background: #e8f8f2;
  border: 1px solid #a5d6a7;
  border-radius: 12px;
  overflow: hidden;
}

.terms-pill-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-bottom-right-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.terms-pill-header.green-pill {
  background: #004d25;
}

.terms-pill-header.red-pill {
  background: #d32f2f;
}

.pill-icon {
  font-size: 18px;
}

.terms-rules-content {
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.terms-rule-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: #1b5e20;
  line-height: 1.35;
}

.bullet-dot {
  font-size: 18px;
  line-height: 1;
}

/* 5. Note Box */
.terms-note-box {
  background: #ffebee;
  border: 1px solid #ffcdd2;
  border-radius: 12px;
  overflow: hidden;
}

.terms-note-content {
  padding: 10px 14px 12px;
}

.terms-note-content p {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: #b71c1c;
  line-height: 1.4;
}

/* 6. Footer Banner */
.terms-footer-banner {
  background: linear-gradient(180deg, #004d25 0%, #003619 100%);
  border-radius: 12px;
  padding: 8px 16px;
  text-align: center;
  color: #ffe500;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.terms-footer-text {
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* Responsive Styles */
@media (max-width: 480px) {
  .terms-card-wrapper {
    padding: 8px;
    gap: 10px;
    border-width: 2px;
  }

  .terms-main-title {
    font-size: 28px;
  }

  .crown-icon {
    font-size: 26px;
  }

  .terms-header-subtitle-pill {
    font-size: 14px;
    padding: 3px 14px;
  }

  .terms-hero-heading {
    font-size: 16px;
  }

  .terms-hero-text,
  .terms-hero-warning {
    font-size: 13px;
  }

  .terms-game-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 8px 10px;
    text-align: center;
  }

  .terms-game-name {
    font-size: 17px;
    text-align: center;
  }

  .terms-game-time-badge {
    justify-content: center;
    align-self: center;
    width: fit-content;
    margin: 0 auto;
    font-size: 13.5px;
  }

  .terms-game-note {
    text-align: center;
    font-size: 12.5px;
  }

  .terms-rule-item {
    font-size: 13px;
  }

  .terms-note-content p {
    font-size: 13px;
  }

  .terms-footer-banner {
    font-size: 17px;
    padding: 6px 12px;
  }
}
.refer-page {
  min-height: 100vh;
  background: var(--theme-blue-soft);
  padding-top: 76px;
  padding-bottom: 72px;
}

.refer-topbar {
  height: 76px;
  background: var(--theme-blue);
  color: #fff;
  display: grid;
  grid-template-columns: 42px 24px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 0 10px;
  box-sizing: border-box;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 8;
}

.refer-icon-btn {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 28px;
}

.refer-bell {
  font-size: 24px;
}

.refer-logo {
  width: 62px;
  height: 62px;
  object-fit: cover;
  justify-self: center;
}

.refer-balance-card {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  padding: 4px 8px;
}

.refer-coin {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--theme-yellow);
  color: var(--theme-text);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.refer-balance-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.refer-balance-text small {
  font-size: 12px;
}

.refer-balance-text strong {
  font-size: 28px;
  color: var(--theme-yellow);
}

.refer-content {
  padding: 10px 8px;
  max-width: 600px;
  margin: 0 auto;
}

.refer-banner-container {
  width: 100%;
  margin: 0 auto 14px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: 2px solid #e0e0e0;
  background: #ffffff;
}

.refer-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.refer-title {
  margin: 0 0 8px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--theme-blue);
  color: #fff;
  font-size: 35px;
}

.refer-table-wrap {
  overflow-x: auto;
}

.refer-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.refer-table-wrap th,
.refer-table-wrap td {
  border: 1px solid var(--theme-border);
  padding: 6px 8px;
  white-space: nowrap;
  font-size: 14px;
}

.refer-table-wrap th {
  background: var(--theme-text-muted);
  color: #fff;
}

.refer-table-wrap td {
  background: var(--theme-white);
  font-weight: 600;
}

.empty-row {
  text-align: center;
}

@media (max-width: 768px) {
  .refer-balance-text strong {
    font-size: 24px;
  }

  .refer-title {
    font-size: 26px;
  }
}
.refer-share-page {
  min-height: 100vh;
  background: var(--theme-blue-soft);
  padding-top: 76px;
  padding-bottom: 72px;
}

.refer-share-topbar {
  height: 76px;
  background: var(--theme-blue);
  color: #fff;
  display: grid;
  grid-template-columns: 42px 24px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 0 10px;
  box-sizing: border-box;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 8;
}

.refer-share-icon-btn,
.refer-share-bell {
  border: none;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
}

.refer-share-icon-btn .app-icon {
  width: 24px;
  height: 24px;
}

.refer-share-bell .app-icon {
  width: 22px;
  height: 22px;
}

.refer-share-logo {
  width: 62px;
  height: 62px;
  object-fit: cover;
  justify-self: center;
}

.refer-share-balance-card {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  padding: 4px 8px;
}

.refer-share-coin {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--theme-yellow);
  color: var(--theme-text);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.refer-share-balance-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.refer-share-balance-text small {
  font-size: 12px;
}

.refer-share-balance-text strong {
  font-size: 34px;
  color: var(--theme-yellow);
}

.refer-share-content {
  padding: 14px 12px;
  max-width: 600px;
  margin: 0 auto;
}

.refer-share-content h2 {
  margin: 6px 0 12px;
  text-align: center;
  font-size: 44px;
  color: var(--theme-text);
}

.refer-share-content p {
  margin: 0 0 14px;
  font-size: 42px;
  line-height: 1.55;
  color: var(--theme-text-muted);
  font-weight: 600;
}

.refer-share-content p:last-of-type {
  color: var(--theme-text);
  font-weight: 700;
}

.refer-share-btn {
  width: 100%;
  max-width: 900px;
  margin: 8px auto 0;
  display: block;
  height: 56px;
  border-radius: 8px;
  border: 1px solid var(--theme-teal);
  background: var(--theme-blue-soft);
  color: var(--theme-text);
  font-size: 31px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .refer-share-content h2 {
    font-size: 20px;
  }

  .refer-share-content p {
    font-size: 14px;
  }

  .refer-share-btn {
    font-size: 16px;
    height: 46px;
  }

  .refer-share-balance-text strong {
    font-size: 24px;
  }
}
.wallet-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.wallet-hero-balance {
  min-width: 0;
}

.wallet-hero-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #8a8a8a;
}

.wallet-hero-amount {
  display: block;
  margin-top: 4px;
  font-size: 1.45rem;
  font-weight: 800;
  color: #111111;
  line-height: 1.15;
}

.wallet-hero-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.wallet-hero-action {
  width: 72px;
  min-height: 64px;
  border-radius: 12px;
  border: 1.5px solid #2ea5f6;
  background: #2ea5f6;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 4px;
}

.wallet-hero-action.is-outline {
  background: #ffffff;
  color: #2ea5f6;
}

.wallet-hero-action .MuiSvgIcon-root {
  font-size: 20px;
}

.wallet-hero-action span {
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.app-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: #f6f6f6;
  padding-top: 56px;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.app-page-body {
  background: linear-gradient(#2ea5f6 0 92px, #f6f6f6 92px);
  padding: 12px 12px 16px;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .app-page-body {
    max-width: 720px;
    margin: 0 auto;
  }
}

.transactions-page {
  background: #f6f6f6 !important;
  min-height: 100vh !important;
  padding-top: 60px !important;
  padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important;
  box-sizing: border-box !important;
}

.txn-content {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 12px 14px 24px;
  box-sizing: border-box;
}

/* 3 Column Stats Summary Bar */

.txn-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.txn-stat-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  border: 1px solid #edf2f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.txn-stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.txn-stat-icon.is-deposit {
  background: #e6f9ed;
  color: #16a34a;
}

.txn-stat-icon.is-withdraw {
  background: #fee2e2;
  color: #dc2626;
}

.txn-stat-icon.is-referral {
  background: #eaf6fe;
  color: #1c8edc;
}

.txn-stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.txn-stat-amount {
  font-size: 0.96rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.txn-stat-amount.is-deposit {
  color: #16a34a;
}

.txn-stat-amount.is-withdraw {
  color: #dc2626;
}

.txn-stat-amount.is-referral {
  color: #1c8edc;
}

/* Filter Tabs Bar */

.txn-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.txn-filter-bar::-webkit-scrollbar {
  display: none;
}

.txn-filter-btn {
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 6px 14px;
  background: #ffffff;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.txn-filter-btn:hover {
  background: #f8fafc;
  color: #0f172a;
}

.txn-filter-btn.is-active {
  background: #2ea5f6;
  color: #ffffff;
  border-color: #2ea5f6;
  box-shadow: 0 2px 8px rgba(46, 165, 246, 0.3);
}

.txn-filter-count {
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.06);
  font-weight: 700;
}

.txn-filter-btn.is-active .txn-filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Transactions Main Card */

.txn-main-card {
  margin-top: 14px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid #edf2f7;
}

.txn-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f1f5f9;
}

.txn-card-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.txn-count-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 12px;
}

/* Transactions List */

.txn-list {
  display: flex;
  flex-direction: column;
}

.txn-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.txn-row:nth-child(even) {
  background: #fafcff;
}

.txn-row:hover {
  background: #eaf6fe;
}

.txn-type-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.txn-type-icon.is-deposit {
  background: #e6f9ed;
  color: #16a34a;
}

.txn-type-icon.is-withdraw {
  background: #fee2e2;
  color: #dc2626;
}

.txn-type-icon.is-referral {
  background: #eaf6fe;
  color: #1c8edc;
}

.txn-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.txn-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.txn-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.txn-type-tag {
  font-size: 0.64rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.txn-type-tag.is-deposit {
  background: #e6f9ed;
  color: #16a34a;
}

.txn-type-tag.is-withdraw {
  background: #fee2e2;
  color: #dc2626;
}

.txn-type-tag.is-referral {
  background: #eaf6fe;
  color: #1c8edc;
}

.txn-subtext {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.txn-ref {
  color: #94a3b8;
  font-family: monospace;
  font-size: 0.7rem;
}

.txn-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.txn-amount {
  font-size: 0.94rem;
  font-weight: 800;
  white-space: nowrap;
}

.txn-amount.is-deposit {
  color: #16a34a;
}

.txn-amount.is-withdraw {
  color: #dc2626;
}

.txn-amount.is-referral {
  color: #1c8edc;
}

.txn-status-badge {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.txn-status-badge.is-success,
.txn-status-badge.is-paid,
.txn-status-badge.is-approved {
  background: #e6f9ed;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.txn-status-badge.is-pending {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.txn-status-badge.is-failed,
.txn-status-badge.is-rejected {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* State texts */

.txn-state {
  text-align: center;
  color: #64748b;
  font-weight: 600;
  padding: 36px 14px;
  font-size: 0.88rem;
}

.txn-state.error {
  color: #ef4444;
}

.txn-loading-spinner {
  display: inline-block;
  width: 26px;
  height: 26px;
  border: 3px solid rgba(46, 165, 246, 0.2);
  border-radius: 50%;
  border-top-color: #2ea5f6;
  animation: txn-spin 0.8s linear infinite;
  margin-bottom: 8px;
}

@keyframes txn-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 420px) {
  .txn-content {
    padding: 10px 8px 20px;
  }

  .txn-stats-grid {
    gap: 6px;
  }

  .txn-stat-card {
    padding: 10px 6px;
  }

  .txn-stat-label {
    font-size: 0.64rem;
  }

  .txn-stat-amount {
    font-size: 0.86rem;
  }

  .txn-row {
    padding: 12px 10px;
    gap: 10px;
  }

  .txn-title {
    font-size: 0.82rem;
  }

  .txn-amount {
    font-size: 0.88rem;
  }
}
.notification-page {
  min-height: 100vh;
  background: var(--theme-blue-soft);
  padding-top: 76px;
  padding-bottom: 72px;
}

.notification-topbar {
  height: 76px;
  background: var(--theme-blue);
  color: #fff;
  display: grid;
  grid-template-columns: 42px 24px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 0 10px;
  box-sizing: border-box;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 8;
}

.notification-icon-btn {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 28px;
}

.notification-bell {
  font-size: 24px;
}

.notification-logo {
  width: 62px;
  height: 62px;
  object-fit: cover;
  justify-self: center;
}

.notification-balance-card {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  padding: 4px 8px;
}

.notification-coin {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--theme-yellow);
  color: var(--theme-text);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.notification-balance-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.notification-balance-text small {
  font-size: 12px;
}

.notification-balance-text strong {
  font-size: 28px;
  color: var(--theme-yellow);
}

.notification-content {
  padding: 12px 4px;
}

.notice-card {
  background: var(--theme-white);
  border: 2px solid var(--theme-blue);
  border-radius: 10px;
  overflow: hidden;
}

.notice-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: var(--theme-blue);
  color: #fff;
  padding: 10px 12px;
}

.notice-head h3 {
  margin: 0;
  font-size: 20px;
}

.notice-head span {
  font-size: 16px;
}

.notice-card p {
  margin: 0;
  padding: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--theme-text);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .notification-balance-text strong {
    font-size: 24px;
  }

  .notice-head h3 {
    font-size: 14px;
  }

  .notice-head span {
    font-size: 12px;
  }

  .notice-card p {
    font-size: 14px;
  }
}
.admin-chat-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #0f172a;
  color: #f8fafc;
  font-family: system-ui, -apple-system, sans-serif;
}

.admin-chat-header {
  background: #1e293b;
  padding: 16px 24px;
  border-bottom: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-chat-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-broadcast-btn {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.4);
  transition: all 0.2s;
}

.admin-broadcast-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.6);
}

.admin-chat-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.admin-user-sidebar {
  width: 320px;
  background: #1e293b;
  border-right: 1px solid #334155;
  display: flex;
  flex-direction: column;
}

.admin-search-box {
  padding: 14px;
  border-bottom: 1px solid #334155;
}

.admin-search-input {
  width: 100%;
  background: #0f172a;
  border: 1px solid #334155;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
}

.admin-user-list {
  flex: 1;
  overflow-y: auto;
}

.admin-user-item {
  padding: 14px;
  border-bottom: 1px solid #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.2s;
}

.admin-user-item:hover {
  background: #334155;
}

.admin-user-item.active {
  background: #0284c7;
}

.admin-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #3b82f6;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.admin-user-info {
  flex: 1;
  overflow: hidden;
}

.admin-user-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-sub {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.admin-unread-count {
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.admin-chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0f172a;
}

.admin-main-header {
  padding: 14px 20px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-messages-area {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-msg-bubble {
  max-width: 65%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.admin-msg-sent {
  align-self: flex-end;
  background: #0284c7;
  color: #ffffff;
}

.admin-msg-recv {
  align-self: flex-start;
  background: #334155;
  color: #f8fafc;
}

.admin-input-area {
  padding: 16px;
  background: #1e293b;
  border-top: 1px solid #334155;
  display: flex;
  gap: 12px;
}

.admin-chat-input {
  flex: 1;
  background: #0f172a;
  border: 1px solid #334155;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.admin-send-btn {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.admin-send-btn:hover {
  background: #059669;
}

/* Modal for Broadcast */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-box {
  background: #1e293b;
  border: 1px solid #334155;
  width: 90%;
  max-width: 520px;
  border-radius: 16px;
  padding: 24px;
  color: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ea580c;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #cbd5e1;
}

.form-control {
  width: 100%;
  background: #0f172a;
  border: 1px solid #334155;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.form-control:focus {
  border-color: #ea580c;
}

.target-select-group {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
}

.user-checkbox-list {
  max-height: 120px;
  overflow-y: auto;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 4px 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.btn-cancel {
  background: #475569;
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
}

.btn-submit {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.rl-page {
  background: #eaf6fe;
  min-height: 100vh;
  padding-bottom: 76px;
  display: flex;
  flex-direction: column;
  font-family: 'Outfit', 'Inter', 'Roboto', sans-serif;
}

/* 1. WEBSITE THEME TOP HEADER */
.rl-theme-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: linear-gradient(135deg, #2ea5f6 0%, #1b8fd8 100%);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(46, 165, 246, 0.25);
}

.rl-header-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.rl-header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.rl-header-icon-btn:active {
  transform: scale(0.92);
}

.rl-header-title {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: 0.02em;
}

.rl-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rl-header-timer-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 17px;
  font-variant-numeric: tabular-nums;
}

.rl-header-timer-text {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.03em;
}

.rl-wallet-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 17px;
}

.rl-coin-icon {
  font-size: 0.95rem;
}

.rl-coin-text {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
}

/* MAIN BODY */
.rl-body {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* UPPER BET TIMER CARD */
.rl-top-timer-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1.5px solid rgba(46, 165, 246, 0.35);
  box-shadow: 0 4px 14px rgba(46, 165, 246, 0.1);
  transition: all 0.3s ease;
}

.rl-top-timer-card.is-open {
  border-color: rgba(34, 197, 94, 0.45);
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.12);
}

.rl-top-timer-card.is-locked {
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.12);
}

.rl-top-timer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rl-timer-live-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: timerPulseGreen 1.8s infinite;
  flex-shrink: 0;
}

.rl-top-timer-card.is-locked .rl-timer-live-dot {
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: timerPulseRed 1.2s infinite;
}

@keyframes timerPulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@keyframes timerPulseRed {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.rl-timer-info {
  display: flex;
  flex-direction: column;
}

.rl-timer-status-title {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #15803d;
  text-transform: uppercase;
}

.rl-top-timer-card.is-locked .rl-timer-status-title {
  color: #b91c1c;
}

.rl-timer-status-subtitle {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
}

.rl-top-timer-countdown {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  padding: 5px 12px;
  border-radius: 12px;
  border: 1.5px solid rgba(46, 165, 246, 0.3);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.rl-top-timer-card.is-open .rl-top-timer-countdown {
  border-color: rgba(34, 197, 94, 0.4);
}

.rl-top-timer-card.is-locked .rl-top-timer-countdown {
  border-color: rgba(239, 68, 68, 0.4);
}

.rl-timer-clock-icon {
  font-size: 0.95rem;
}

.rl-timer-digits {
  font-size: 1.28rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #0f172a;
}

.rl-top-timer-card.is-open .rl-timer-digits {
  color: #15803d;
}

.rl-top-timer-card.is-locked .rl-timer-digits {
  color: #dc2626;
}

/* 2. ROULETTE WHEEL CARD */
.rl-wheel-card {
  position: relative;
  background: #09232f;
  background: radial-gradient(circle at 50% 30%, #15455a 0%, #0a2331 100%);
  border-radius: 26px;
  padding: 22px 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(10, 35, 49, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(46, 165, 246, 0.3);
  overflow: hidden;
}

/* White Triangle Pointer at top 12 o'clock */
.rl-pointer {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 17px solid #ffffff;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}

.rl-canvas-wrap {
  width: 280px;
  height: 280px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.rl-canvas {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  display: block;
}

/* 3. RECENT RESULTS ROW */
.rl-recent-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
}

.rl-recent-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.rl-recent-list {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.rl-recent-list::-webkit-scrollbar {
  display: none;
}

.rl-recent-chip {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.rl-recent-chip.is-green {
  background: #15803d;
  border: 1.5px solid #22c55e;
}

.rl-recent-chip.is-red {
  background: #881337;
  border: 1.5px solid #f43f5e;
}

.rl-recent-chip.is-black {
  background: #18181b;
  border: 1.5px solid #52525b;
}

.rl-recent-chip.is-latest {
  transform: scale(1.12);
  box-shadow: 0 0 10px rgba(46, 165, 246, 0.6);
}

/* 4. 10-NUMBER BETTING GRID (0 to 9) */
.rl-bet-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
}

.rl-num-btn {
  height: 48px;
  border-radius: 10px;
  border: none;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.14s ease;
  padding: 0;
}

.rl-num-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.rl-num-btn:active {
  transform: scale(0.95);
}

.rl-num-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.rl-num-btn.is-green {
  background: #15803d;
  border: 1.5px solid #16a34a;
}

.rl-num-btn.is-maroon {
  background: #881337;
  border: 1.5px solid #9f1239;
}

.rl-num-btn.is-black {
  background: #18181b;
  border: 1.5px solid #3f3f46;
}

/* Floating Bet Chip Badge on Numbers */
.rl-bet-chip {
  position: absolute;
  top: -7px;
  right: -5px;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #0f172a;
  font-size: 0.58rem;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid #fef08a;
  white-space: nowrap;
  pointer-events: none;
  animation: popBadge 0.2s ease;
}

@keyframes popBadge {
  0% { transform: scale(0.5); }
  100% { transform: scale(1); }
}

/* 5. BET AMOUNT INPUT SECTION */
.rl-price-input-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 16px;
  border: 1.5px solid rgba(46, 165, 246, 0.35);
  box-shadow: 0 3px 10px rgba(46, 165, 246, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rl-price-input-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rl-price-input-label {
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

.rl-price-input-sub {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  color: #2ea5f6 !important;
}

.rl-price-input-wrap {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 12px;
  height: 46px;
  transition: all 0.15s ease;
}

.rl-price-input-wrap:focus-within {
  border-color: #2ea5f6;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(46, 165, 246, 0.18);
}

.rl-price-currency {
  font-size: 1.15rem;
  font-weight: 900;
  color: #2ea5f6;
  margin-right: 8px;
}

.rl-price-field {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.15rem;
  font-weight: 900;
  color: #0f172a;
}

/* 6. STATS & CONTROL BAR */
.rl-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rl-stats-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.rl-stat-box {
  flex: 1;
  background: #ffffff;
  border: 1px solid rgba(46, 165, 246, 0.25);
  border-radius: 12px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(46, 165, 246, 0.05);
}

.rl-stat-label {
  font-size: 0.6rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rl-stat-val {
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.1;
  margin-top: 1px;
}

.rl-stat-val.is-blue {
  color: #0284c7;
}

.rl-stat-val.is-dark {
  color: #0f172a;
}

.rl-stat-val.is-green {
  color: #16a34a;
}

.rl-actions-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rl-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(46, 165, 246, 0.3);
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.14s ease;
  padding: 0;
}

.rl-action-btn:hover:not(:disabled) {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #2ea5f6;
}

.rl-action-btn:active:not(:disabled) {
  transform: scale(0.93);
}

.rl-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  color: #94a3b8;
  border-color: #e2e8f0;
}

/* 7. PLACE BET BUTTON */
.rl-place-btn {
  width: 100%;
  height: 48px;
  border-radius: 16px;
  border: none;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  box-shadow: 0 4px 14px rgba(46, 165, 246, 0.35);
}

.rl-place-btn.is-ready {
  background: linear-gradient(135deg, #2ea5f6 0%, #0284c7 100%);
  color: #ffffff;
}

.rl-place-btn.is-ready:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0369a1 100%);
  box-shadow: 0 6px 18px rgba(46, 165, 246, 0.45);
  transform: translateY(-1px);
}

.rl-place-btn.is-ready:active {
  transform: translateY(1px);
}

.rl-place-btn.is-disabled {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
}



@media (max-width: 360px) {
  .rl-bet-grid {
    gap: 3px;
  }
  .rl-num-btn {
    height: 42px;
    font-size: 0.9rem;
  }
}
/* ==========================================================================
   POK (PLAY ONLINE KHAIWAL) LANDING PAGE - ULTRA-PREMIUM MODERN THEME
   ========================================================================== */

:root {
  --pok-bg-dark: #070b14;
  --pok-bg-surface: #0e1626;
  --pok-bg-surface-elevated: #152238;
  --pok-card-border: rgba(245, 158, 11, 0.22);
  --pok-card-border-subtle: rgba(255, 255, 255, 0.08);

  --pok-gold-primary: #f59e0b;
  --pok-gold-light: #fbbf24;
  --pok-gold-dark: #b45309;
  --pok-gold-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);

  --pok-emerald-primary: #10b981;
  --pok-emerald-glow: rgba(16, 185, 129, 0.35);

  --pok-ruby-primary: #ef4444;
  --pok-ruby-glow: rgba(239, 68, 68, 0.35);
  --pok-ruby-gradient: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);

  --pok-telegram: #0ea5e9;
  --pok-whatsapp: #22c55e;

  --pok-text-main: #f8fafc;
  --pok-text-muted: #94a3b8;
  --pok-text-dim: #64748b;

  --pok-radius-sm: 8px;
  --pok-radius-md: 14px;
  --pok-radius-lg: 20px;
  --pok-radius-full: 9999px;

  --pok-shadow-gold: 0 10px 30px -10px rgba(245, 158, 11, 0.35);
  --pok-shadow-card: 0 15px 35px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--pok-card-border-subtle);
}

.pok-landing-root {
  min-height: 100vh;
  background-color: var(--pok-bg-dark);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 10% 30%, rgba(239, 68, 68, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 90% 70%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  color: var(--pok-text-main);
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

.pok-container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ==========================================================================
   TOP NOTICE STRIP & NAVBAR
   ========================================================================== */
.pok-navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--pok-card-border-subtle);
}

.pok-top-notice-strip {
  background: linear-gradient(90deg, #1e1b4b 0%, #311042 50%, #1e1b4b 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  padding: 6px 0;
  font-size: 0.78rem;
  font-weight: 600;
}

.pok-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pok-badge-pulse {
  background: var(--pok-ruby-primary);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--pok-radius-full);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  animation: pokPulse 1.8s infinite;
  white-space: nowrap;
}

.pok-strip-text {
  color: #f1f5f9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  text-align: center;
}

.pok-strip-wa {
  color: var(--pok-gold-light);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s;
}

.pok-strip-wa:hover {
  color: #fff;
}

.pok-main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.pok-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.pok-crown-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.5));
  animation: pokFloat 3s ease-in-out infinite;
}

.pok-brand-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fff;
  line-height: 1.1;
}

.pok-gold-text {
  background: var(--pok-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.pok-brand-tagline {
  font-size: 0.68rem;
  letter-spacing: 2px;
  color: var(--pok-gold-primary);
  font-weight: 700;
}

.pok-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pok-nav-links a {
  color: var(--pok-text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  padding: 6px 10px;
  border-radius: var(--pok-radius-sm);
}

.pok-nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.pok-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pok-btn-download-pulse {
  background: var(--pok-gold-gradient);
  color: #0f172a;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: var(--pok-radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
  transition: all 0.25s ease;
}

.pok-btn-download-pulse:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
}

.pok-nav-btn-mobile {
  display: none;
}

.pok-hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.pok-bar {
  display: block;
  width: 24px;
  height: 2.5px;
  margin: 5px 0;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* ==========================================================================
   BREAKING TICKER RIBBON
   ========================================================================== */
.pok-ticker-container {
  display: flex;
  align-items: center;
  background: var(--pok-ruby-gradient);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
  overflow: hidden;
  height: 38px;
}

.pok-ticker-label {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #7f1d1d;
  color: #fff;
  padding: 0 16px;
  font-weight: 900;
  font-size: 0.78rem;
  height: 100%;
  white-space: nowrap;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3);
}

.pok-ticker-marquee-wrapper {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.pok-ticker-marquee {
  display: inline-block;
  padding-left: 100%;
  animation: pokMarquee 26s linear infinite;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.pok-ticker-spacer {
  margin: 0 14px;
  color: var(--pok-gold-light);
}

/* ==========================================================================
   JODI DHAMAKA SECTION (Screenshot 1)
   ========================================================================== */
.pok-dhamaka-section {
  padding-top: 24px;
  padding-bottom: 12px;
}

.pok-dhamaka-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(14, 30, 24, 0.95) 100%);
  border: 2px solid var(--pok-gold-primary);
  border-radius: var(--pok-radius-lg);
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.18);
  position: relative;
  overflow: hidden;
}

.pok-dhamaka-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--pok-gold-gradient);
}

.pok-dhamaka-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--pok-gold-primary);
  color: var(--pok-gold-light);
  padding: 4px 14px;
  border-radius: var(--pok-radius-full);
  font-weight: 800;
  font-size: 0.8rem;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.pok-dhamaka-title {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 900;
  margin: 0 0 12px;
  background: var(--pok-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.pok-dhamaka-markets {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.pok-dhamaka-no-advance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.pok-gold-badge {
  background: var(--pok-gold-primary);
  color: #0f172a;
  padding: 3px 10px;
  border-radius: var(--pok-radius-sm);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.pok-advance-text {
  font-weight: 800;
  color: var(--pok-emerald-primary);
  font-size: 0.95rem;
}

.pok-dhamaka-subtext {
  font-size: 0.88rem;
  color: var(--pok-text-muted);
  max-width: 650px;
  margin: 0 auto 20px;
}

.pok-dhamaka-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pok-btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--pok-radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  transition: all 0.25s ease;
}

.pok-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.6);
}

.pok-btn-whatsapp {
  background: #15803d;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--pok-radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.35);
  transition: all 0.25s ease;
}

.pok-btn-whatsapp:hover {
  background: #16a34a;
  transform: translateY(-2px);
}

/* ==========================================================================
   LIVE RESULT BOX (Screenshot 1 bottom)
   ========================================================================== */
.pok-live-box-section {
  padding-top: 12px;
  padding-bottom: 16px;
}

.pok-live-box-card {
  background: linear-gradient(180deg, #131c2e 0%, #0c121e 100%);
  border: 2px solid rgba(239, 68, 68, 0.6);
  border-radius: var(--pok-radius-lg);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.pok-live-header {
  background: rgba(239, 68, 68, 0.12);
  border-bottom: 1px solid rgba(239, 68, 68, 0.3);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.pok-live-badge-glow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pok-red-dot-pulse {
  width: 10px;
  height: 10px;
  background: var(--pok-ruby-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--pok-ruby-primary);
  animation: pokPulseDot 1.4s infinite;
}

.pok-live-tag {
  color: var(--pok-ruby-primary);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.pok-live-clock {
  font-size: 0.82rem;
  color: var(--pok-text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pok-clock-divider {
  color: var(--pok-text-dim);
}

.pok-live-body {
  padding: 24px 16px;
  text-align: center;
}

.pok-live-heading-hi {
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  font-weight: 900;
  color: #ef4444;
  margin: 0 0 4px;
  letter-spacing: 0.5px;
}

.pok-live-heading-en {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--pok-text-dim);
  margin: 0 0 16px;
}

.pok-live-market-name {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.pok-live-result-display {
  display: inline-block;
  min-width: 180px;
  padding: 12px 28px;
  border-radius: var(--pok-radius-md);
  margin-bottom: 18px;
}

.pok-live-wait {
  background: rgba(245, 158, 11, 0.12);
  border: 2px dashed var(--pok-gold-primary);
  color: var(--pok-gold-light);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.2);
}

.pok-wait-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pok-wait-word {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 3px;
  animation: pokWaitBlink 1.5s infinite;
}

.pok-wait-spinner {
  font-size: 1.8rem;
  animation: pokSpin 2s linear infinite;
}

.pok-live-declared {
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--pok-emerald-primary);
  box-shadow: 0 0 30px var(--pok-emerald-glow);
}

.pok-declared-number {
  font-size: 3.2rem;
  font-weight: 900;
  color: #10b981;
  letter-spacing: 2px;
}

.pok-status-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--pok-radius-full);
  font-weight: 700;
  font-size: 0.8rem;
}

.pok-badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--pok-gold-light);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.pok-badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   APP DOWNLOAD PROMO HERO (Screenshot 2 top)
   ========================================================================== */
.pok-download-promo-section {
  padding-top: 12px;
  padding-bottom: 16px;
}

.pok-download-promo-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  border: 2px solid var(--pok-gold-primary);
  border-radius: var(--pok-radius-lg);
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.2);
}

.pok-promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--pok-gold-primary);
  color: var(--pok-gold-light);
  padding: 4px 12px;
  border-radius: var(--pok-radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.pok-promo-heading {
  font-size: clamp(1.15rem, 3.5vw, 1.55rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 8px;
}

.pok-promo-subtext {
  font-size: 0.9rem;
  color: var(--pok-gold-light);
  font-weight: 600;
  margin: 0 0 18px;
}

.pok-promo-features-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.pok-feature-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: var(--pok-radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: #f1f5f9;
}

.pok-btn-download-hero {
  background: var(--pok-gold-gradient);
  color: #0f172a;
  text-decoration: none;
  padding: 14px 34px;
  border-radius: var(--pok-radius-full);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
  transition: all 0.25s ease;
}

.pok-btn-download-hero:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.65);
}

.pok-hero-icon {
  font-size: 1.6rem;
}

.pok-hero-text {
  text-align: left;
}

.pok-hero-main {
  display: block;
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.1;
}

.pok-hero-sub {
  display: block;
  font-weight: 700;
  font-size: 0.72rem;
  opacity: 0.85;
}

/* ==========================================================================
   GAME RULES & TIMINGS CARD (Screenshot 2 middle)
   ========================================================================== */
.pok-rules-section {
  padding-top: 12px;
  padding-bottom: 16px;
}

.pok-rules-card {
  background: #0f1c18;
  border: 2px solid #10b981;
  border-radius: var(--pok-radius-lg);
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.15);
}

.pok-rules-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #34d399;
  padding: 3px 12px;
  border-radius: var(--pok-radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.pok-rules-title {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 18px;
}

.pok-timings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px 16px;
  max-width: 800px;
  margin: 0 auto 20px;
  text-align: left;
}

.pok-timing-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  border-radius: var(--pok-radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
}

.pok-timing-name {
  color: #f1f5f9;
  min-width: 110px;
}

.pok-timing-dots {
  color: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  letter-spacing: 2px;
  flex: 1;
  text-align: center;
}

.pok-timing-time {
  color: var(--pok-gold-light);
  font-weight: 800;
  white-space: nowrap;
}

.pok-rates-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.pok-rate-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--pok-gold-primary);
  border-radius: var(--pok-radius-md);
  padding: 12px 20px;
  min-width: 200px;
}

.pok-rate-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--pok-gold-light);
  margin-bottom: 4px;
}

.pok-rate-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
}

.pok-rate-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--pok-text-muted);
}

.pok-btn-whatsapp-large {
  background: #16a34a;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  padding: 12px 30px;
  border-radius: var(--pok-radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
  transition: all 0.25s ease;
}

.pok-btn-whatsapp-large:hover {
  background: #15803d;
  transform: translateY(-2px);
}

/* ==========================================================================
   MARKET RESULTS GRID (Screenshots 2 & 3 core)
   ========================================================================== */
.pok-results-grid-section {
  padding-top: 16px;
  padding-bottom: 24px;
}

.pok-results-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
  background: var(--pok-bg-surface);
  border: 1px solid var(--pok-card-border-subtle);
  padding: 14px 18px;
  border-radius: var(--pok-radius-md);
}

.pok-results-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.15);
  color: var(--pok-ruby-primary);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: var(--pok-radius-full);
  margin-bottom: 4px;
}

.pok-pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--pok-ruby-primary);
  border-radius: 50%;
  animation: pokPulseDot 1.2s infinite;
}

.pok-results-heading {
  font-size: clamp(1rem, 2.8vw, 1.35rem);
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.pok-results-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pok-search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--pok-radius-sm);
  padding: 6px 12px;
  gap: 8px;
}

.pok-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.85rem;
  width: 170px;
}

.pok-search-input::placeholder {
  color: var(--pok-text-dim);
}

.pok-search-clear {
  background: transparent;
  border: none;
  color: var(--pok-text-dim);
  cursor: pointer;
  font-size: 0.8rem;
}

.pok-btn-refresh {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: var(--pok-radius-sm);
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.pok-btn-refresh:hover {
  background: rgba(255, 255, 255, 0.15);
}

.pok-refresh-spin span {
  display: inline-block;
  animation: pokSpin 1s linear infinite;
}

.pok-market-cards-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.pok-market-card {
  background: linear-gradient(180deg, #121c2e 0%, #0c1422 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--pok-radius-md);
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.pok-market-card:hover {
  border-color: var(--pok-gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
}

.pok-market-card-highlight {
  grid-column: 1 / -1;
  background: linear-gradient(90deg, #3b0707 0%, #1e1b4b 50%, #3b0707 100%);
  border: 2px solid #ef4444;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.25);
}

.pok-market-card-highlight .pok-market-name {
  font-size: 1.3rem;
  color: #fef08a;
}

.pok-market-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.pok-market-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pok-market-name {
  font-weight: 900;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pok-market-time-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pok-gold-light);
  background: rgba(245, 158, 11, 0.12);
  padding: 2px 8px;
  border-radius: var(--pok-radius-full);
}

.pok-pill-pass {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 2px 8px;
  border-radius: var(--pok-radius-full);
  font-size: 0.7rem;
  font-weight: 800;
}

.pok-pill-wait {
  background: rgba(245, 158, 11, 0.15);
  color: var(--pok-gold-light);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 2px 8px;
  border-radius: var(--pok-radius-full);
  font-size: 0.7rem;
  font-weight: 800;
}

.pok-market-labels-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--pok-text-muted);
}

.pok-label-kal {
  color: #cbd5e1;
}

.pok-label-separator {
  font-size: 0.6rem;
}

.pok-label-aaj {
  color: var(--pok-gold-light);
}

.pok-market-result-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pok-res-box {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--pok-radius-sm);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.pok-res-yesterday {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
}

.pok-res-yesterday .pok-brace {
  color: #94a3b8;
  font-weight: 600;
  margin: 0 2px;
}

.pok-arrow-icon {
  color: var(--pok-gold-primary);
  font-size: 1.1rem;
  font-weight: 900;
}

.pok-res-today {
  min-width: 72px;
  justify-content: center;
}

.pok-today-declared {
  background: rgba(16, 185, 129, 0.18);
  border: 1.5px solid #10b981;
  color: #34d399;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
}

.pok-today-waiting {
  background: rgba(239, 68, 68, 0.12);
  border: 1.5px dashed rgba(239, 68, 68, 0.5);
  color: #f87171;
}

.pok-bracket {
  color: inherit;
  font-weight: 700;
  margin: 0 2px;
}

.pok-wait-text {
  font-size: 0.85rem;
  letter-spacing: 1px;
  animation: pokWaitBlink 1.4s infinite;
}

.pok-no-markets-found {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px;
  background: var(--pok-bg-surface);
  border-radius: var(--pok-radius-md);
  color: var(--pok-text-muted);
}

/* ==========================================================================
   WARNING & DISCLAIMER BOX (Screenshot 4)
   ========================================================================== */
.pok-warning-section {
  padding-top: 12px;
  padding-bottom: 20px;
}

.pok-warning-card {
  background: rgba(220, 38, 38, 0.08);
  border: 2px solid var(--pok-ruby-primary);
  border-radius: var(--pok-radius-md);
  padding: 18px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.15);
}

.pok-warning-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.pok-warning-icon {
  font-size: 1.3rem;
}

.pok-warning-title {
  color: var(--pok-ruby-primary);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 1px;
  margin: 0;
}

.pok-warning-text {
  color: #fca5a5;
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto 12px;
  font-weight: 600;
}

.pok-warning-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--pok-text-dim);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   RECORD CHART TABLE (Screenshots 4 & 5)
   ========================================================================== */
.pok-record-chart-section {
  padding-top: 12px;
  padding-bottom: 40px;
}

.pok-record-card {
  background: var(--pok-bg-surface);
  border: 2px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--pok-radius-lg);
  overflow: hidden;
  box-shadow: var(--pok-shadow-card);
}

.pok-record-header {
  background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
  border-bottom: 2px solid var(--pok-gold-primary);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.pok-record-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--pok-gold-primary);
  color: var(--pok-gold-light);
  padding: 2px 10px;
  border-radius: var(--pok-radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.pok-record-title {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 4px;
}

.pok-record-subtitle {
  font-size: 0.8rem;
  color: var(--pok-text-muted);
  margin: 0;
}

.pok-record-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pok-month-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pok-select-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pok-text-muted);
}

.pok-month-select {
  background: #1e293b;
  border: 1px solid var(--pok-gold-primary);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--pok-radius-sm);
  font-size: 0.85rem;
  font-weight: 800;
  outline: none;
  cursor: pointer;
}

.pok-table-search-input {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--pok-radius-sm);
  font-size: 0.82rem;
  outline: none;
  width: 140px;
}

.pok-table-search-input::placeholder {
  color: var(--pok-text-dim);
}

.pok-chart-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--pok-gold-light);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pok-chart-table-wrapper {
  overflow-x: auto;
  max-height: 580px;
  position: relative;
}

.pok-chart-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.82rem;
  white-space: nowrap;
}

.pok-chart-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #1e293b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.pok-th-sticky-date,
.pok-td-sticky-date {
  position: sticky;
  left: 0;
  z-index: 5;
  background: #172033;
  width: 90px;
  min-width: 90px;
}

.pok-chart-table thead .pok-th-sticky-date {
  z-index: 15;
  background: #1e293b;
}

.pok-chart-table th {
  padding: 10px 14px;
  font-weight: 900;
  color: #f8fafc;
  border: 1px solid #334155;
  letter-spacing: 0.5px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.pok-chart-table td {
  padding: 8px 12px;
  border: 1px solid #1e293b;
  font-weight: 700;
  color: #cbd5e1;
}

.pok-chart-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.pok-chart-table tbody tr:hover {
  background: rgba(245, 158, 11, 0.08);
}

.pok-row-today {
  background: rgba(245, 158, 11, 0.12) !important;
}

.pok-date-badge {
  font-weight: 800;
  color: var(--pok-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.pok-today-indicator {
  background: var(--pok-ruby-primary);
  color: #fff;
  font-size: 0.6rem;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 900;
}

.pok-chart-number-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 2px 8px;
  border-radius: var(--pok-radius-sm);
  font-weight: 900;
  font-size: 0.95rem;
  min-width: 32px;
}

.pok-chart-empty {
  color: #475569;
}

.pok-record-footer {
  padding: 10px 16px;
  background: #0b1322;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pok-text-muted);
}

/* ==========================================================================
   FLOATING ACTION BUTTONS
   ========================================================================== */
.pok-floating-wrapper {
  position: fixed;
  bottom: 24px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 99;
}

.pok-fab-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  border: none;
  cursor: pointer;
}

.pok-fab-btn:hover {
  transform: translateY(-4px) scale(1.08);
}

.pok-fab-telegram {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

.pok-fab-whatsapp {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
  animation: pokBounceSoft 2.5s infinite;
}

.pok-fab-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--pok-ruby-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.pok-fab-top {
  background: #1e293b;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1rem;
}

.pok-fab-icon {
  font-size: 1.4rem;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.pok-footer {
  background: #04070d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 16px 80px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--pok-text-dim);
}

.pok-footer-brand {
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
}

.pok-footer-copy {
  margin: 0;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes pokMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@keyframes pokPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.05); }
}

@keyframes pokPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

@keyframes pokFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes pokWaitBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes pokSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pokBounceSoft {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  60% { transform: translateY(-3px); }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 840px) {
  .pok-market-cards-container {
    grid-template-columns: 1fr;
  }

  .pok-strip-text {
    display: none;
  }

  .pok-nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: #090e1a;
    border-bottom: 2px solid var(--pok-gold-primary);
    flex-direction: column;
    padding: 20px;
    gap: 12px;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 90;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  }

  .pok-nav-links.pok-nav-open {
    transform: translateY(0);
  }

  .pok-nav-btn-mobile {
    display: inline-flex;
    background: var(--pok-gold-gradient);
    color: #0f172a;
    padding: 10px 20px;
    border-radius: var(--pok-radius-full);
    font-weight: 800;
    margin-top: 8px;
  }

  .pok-btn-download-pulse {
    display: none;
  }

  .pok-hamburger-btn {
    display: block;
  }
}

@media (max-width: 480px) {
  .pok-res-box {
    font-size: 1.15rem;
    padding: 3px 6px;
  }

  .pok-market-name {
    font-size: 0.95rem;
  }

  .pok-rate-box {
    min-width: 140px;
    padding: 10px 14px;
  }

  .pok-rate-value {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   FOOTER SECTION (Matches user screenshot: Red Pill Buttons, SEO Links, Copyright)
   ========================================================================== */
.pok-footer-section {
  background: #000000;
  border-top: 2px solid rgba(245, 158, 11, 0.35);
  padding: 36px 16px 28px;
  position: relative;
  z-index: 10;
  color: #ffffff;
  text-align: center;
}

/* 1. Policy Pill Buttons (Disclaimer, Privacy Policy, Sitemap) */
.pok-footer-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.pok-footer-pill-btn {
  background: linear-gradient(180deg, #d64545 0%, #b32a2a 100%);
  color: #ffffff;
  border: 1px solid #eb5e5e;
  border-radius: 6px;
  padding: 8px 24px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(179, 42, 42, 0.4);
}

.pok-footer-pill-btn:hover {
  background: linear-gradient(180deg, #e65151 0%, #c43232 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(230, 81, 81, 0.6);
  border-color: #ff8585;
}

.pok-footer-pill-btn:active {
  transform: translateY(0);
}

/* 2. SEO Archive Links Row */
.pok-footer-archive-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  max-width: 1200px;
  margin: 0 auto 24px;
  padding: 0 10px;
}

.pok-footer-archive-link {
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.pok-footer-archive-link:hover {
  color: var(--pok-gold-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 3. Divider Line */
.pok-footer-divider {
  width: 100%;
  max-width: 1300px;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 auto 20px;
}

/* 4. Copyright Row */
.pok-footer-copyright {
  font-size: 0.88rem;
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   MODAL POPUP STYLES (For Disclaimer, Privacy Policy, Sitemap)
   ========================================================================== */
.pok-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  animation: pokFadeIn 0.25s ease-out;
}

.pok-modal-card {
  background: #0f172a;
  border: 2px solid var(--pok-gold-primary);
  border-radius: var(--pok-radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(245, 158, 11, 0.25);
  width: 100%;
  max-width: 580px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: pokModalSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pokModalSlide {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.pok-modal-header {
  padding: 16px 20px;
  background: rgba(245, 158, 11, 0.12);
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pok-modal-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--pok-gold-light);
  letter-spacing: 0.5px;
}

.pok-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.pok-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.pok-modal-body {
  padding: 20px;
  overflow-y: auto;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.7;
}

.pok-modal-text p {
  margin: 0 0 14px;
}

.pok-modal-text strong {
  color: #ffffff;
}

.pok-sitemap-list ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pok-sitemap-list li a {
  display: block;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.pok-sitemap-list li a:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--pok-gold-primary);
  color: var(--pok-gold-light);
  transform: translateX(4px);
}

.pok-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.3);
}

.ptr-root {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

.ptr-indicator {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translate3d(-50%, -65px, 0);
  z-index: 99999;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
  pointer-events: none;
}

.ptr-indicator.is-refreshing {
  transition: transform 0.25s ease;
}

.ptr-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(46, 165, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(46, 165, 246, 0.35);
}
