/* ============================================================
   App Pages — unified user-friendly UI (all inner pages)
   ============================================================ */

/* ---- Page shell ---- */
body.inner-page,
body.wallet-page,
body.withdraw-page,
body.win-history-page,
body.bid-history-page,
body.add-bank-page,
body.support-page,
body.play-game-page,
body.dashboard-body,
body.chart-page,
body.has-app-footer {
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0)) !important;
}

body.has-app-footer {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0)) !important;
}

.app-page-header {
  margin: 0 !important;
  padding: 0 !important;
}

.app-page-header .top-header {
  min-height: 52px;
  padding: 12px 16px !important;
}

.app-header-left {
  min-width: 0;
  flex: 1;
}

.app-header-title {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 10px !important;
}

.app-page-header .back-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
}

.app-page-header .back-link img {
  width: 18px !important;
  height: 18px !important;
}

.app-header-wallet {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: var(--glass-accent) !important;
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0 !important;
  padding: 6px 10px;
  border-radius: 20px;
  background: rgba(232, 201, 106, 0.12);
  border: 1px solid rgba(232, 201, 106, 0.3);
}

.app-header-wallet img {
  filter: brightness(0) saturate(100%) invert(79%) sepia(61%) saturate(459%) hue-rotate(6deg) brightness(105%) contrast(88%);
}

/* ---- Content area ---- */
.app-content,
.add-fund-page .container,
.add-fund-page > .container,
section.add-fund-page > .container {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.add-fund-page {
  padding: 12px 12px 28px !important;
}

/* Date filter row */
.app-filter-card,
.bl-date,
.add-fund-page div#nav-tabContent {
  background: rgba(8, 18, 36, 0.75) !important;
  border: 1px solid rgba(232, 201, 106, 0.28) !important;
  border-radius: 16px !important;
  padding: 16px 14px !important;
  margin-bottom: 16px !important;
}

.app-filter-card .price h4,
.bl-date .price h4 {
  color: #f0d78a !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.app-filter-card input[type="date"],
.bl-date input.date,
.add-fund-page .price input.date {
  min-height: 46px !important;
  font-size: 15px !important;
  padding: 10px 12px !important;
  text-align: center;
}

.app-filter-card .play-btn,
.bl-date .play-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 8px;
  text-decoration: none !important;
}

/* List / AJAX containers */
#listContainer,
#depositListContainer,
.bid-history-list-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 4px 16px;
}

#listContainer .group,
#listContainer .empty-msg,
.app-empty-state {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px dashed rgba(232, 201, 106, 0.35) !important;
  border-radius: 14px !important;
  padding: 28px 16px !important;
  text-align: center;
  color: rgba(240, 244, 248, 0.75) !important;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Bonus / rate cards */
.bonus-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(232, 201, 106, 0.25) !important;
  border-left: 4px solid #e8c96a !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
}

.bonus-box .left p:first-child {
  color: #f0f4f8 !important;
  font-size: 0.95rem !important;
}

.bonus-box .left span {
  color: #4ade80 !important;
  font-weight: 700 !important;
}

/* Bid history */
body.bid-history-page section.bid-history-content {
  background: transparent !important;
}

.bid-history-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 14px 28px;
}

.bid-history-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bid-history-filter {
  margin-bottom: 0 !important;
}

.bid-history-apply-btn {
  min-height: 48px !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 12px !important;
}

.bid-history-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 4px 2px 0;
}

.bid-history-section-title {
  color: #f0d78a !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 !important;
}

.bh-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.bh-summary-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(240, 244, 248, 0.65);
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bh-summary-total {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0a1628;
  padding: 4px 10px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f0d78a, #e8c96a);
  border: 1px solid rgba(232, 201, 106, 0.4);
}

.bid-history-list-wrap {
  padding: 0 0 16px !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bh-card {
  background: rgba(8, 18, 36, 0.82) !important;
  border: 1px solid rgba(232, 201, 106, 0.25) !important;
  border-left: 4px solid #e8c96a !important;
  border-radius: 16px !important;
  padding: 14px 16px !important;
  margin-bottom: 0 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.bh-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.bh-card-header-left {
  min-width: 0;
  flex: 1;
}

.bh-game {
  margin: 0 0 6px;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #f0f4f8 !important;
  line-height: 1.3;
  word-break: break-word;
}

.bh-type-chip {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(240, 244, 248, 0.75);
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.bh-points-pill {
  flex-shrink: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #f0d78a !important;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(232, 201, 106, 0.12);
  border: 1px solid rgba(232, 201, 106, 0.35);
  white-space: nowrap;
}

.bh-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.bh-number-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bh-number-label {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(240, 244, 248, 0.5);
  margin-bottom: 2px;
}

.bh-number-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f0d78a;
  letter-spacing: 0.04em;
}

.bh-card-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bh-datetime {
  font-size: 0.72rem;
  color: rgba(240, 244, 248, 0.55);
  flex: 1;
  min-width: 120px;
}

.bh-session-pill {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
}

.bh-session-open {
  color: #86efac !important;
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.bh-session-close {
  color: #93c5fd !important;
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.bh-bid-id {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(240, 244, 248, 0.45);
  font-family: ui-monospace, monospace;
}

.bh-loading,
.bh-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(232, 201, 106, 0.3);
  color: rgba(240, 244, 248, 0.75);
}

.bh-loading {
  flex-direction: row;
  gap: 12px;
  padding: 24px 20px;
}

.bh-loading-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(232, 201, 106, 0.25);
  border-top-color: #e8c96a;
  border-radius: 50%;
  animation: bh-spin 0.7s linear infinite;
}

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

.bh-empty-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  opacity: 0.8;
}

.bh-empty p {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f0f4f8;
}

.bh-empty-hint {
  font-size: 0.78rem;
  color: rgba(240, 244, 248, 0.5);
}

/* Legacy bid history classes (other pages) */
.bh-date,
.bh-type {
  color: rgba(240, 244, 248, 0.65) !important;
}

.bh-detail {
  color: rgba(240, 244, 248, 0.8) !important;
  background: rgba(0, 0, 0, 0.2) !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
}

.bh-points {
  color: #f0d78a !important;
  font-weight: 700 !important;
}

.bh-session-badge {
  background: rgba(74, 222, 128, 0.15) !important;
  color: #86efac !important;
  border: 1px solid rgba(74, 222, 128, 0.35) !important;
}

.bh-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.bh-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.bh-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Win history row layout */
.win-history-page .left-bx,
.win-history-page .center-bx,
.win-history-page .right-bx {
  display: inline-block;
  vertical-align: top;
  width: 32%;
}

.win-history-page .center-bx {
  text-align: center;
}

.win-history-page .right-bx {
  text-align: right;
  width: 34%;
}

.win-history-page .left-bx p,
.win-history-page .center-bx p,
.win-history-page .right-bx p {
  font-size: 0.82rem;
  color: #f0f4f8 !important;
}

.win-history-page .left-bx p:first-child,
.win-history-page .center-bx p:first-child,
.win-history-page .right-bx p:first-child {
  font-weight: 700;
  color: #f0d78a !important;
}

/* Win / withdraw history items */
.sub-box,
.item {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  margin-bottom: 10px !important;
  color: #f0f4f8 !important;
}

.sub-box p,
.item p {
  color: #f0f4f8 !important;
}

/* ---- Play game page (glass cards) ---- */
body.play-game-page {
  padding-bottom: 24px !important;
}

.play-game-container {
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 10px 24px !important;
}

.play-game-page .top-box.bl.play-game-card {
  position: relative;
  width: 100% !important;
  max-width: 180px;
  min-height: 130px;
  height: 130px !important;
  padding: 12px !important;
  margin: 6px auto !important;
  border-radius: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-end !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(232, 201, 106, 0.28) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.play-game-page .top-box.bl.play-game-card::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
  filter: drop-shadow(0 2px 6px rgba(232, 201, 106, 0.25));
}

.play-game-page .top-box.bl.play-game-card.icon-1::before { background-image: url('../img/single.png'); }
.play-game-page .top-box.bl.play-game-card.icon-2::before { background-image: url('../img/double-pana.png'); }
.play-game-page .top-box.bl.play-game-card.icon-3::before { background-image: url('../img/double.png'); }
.play-game-page .top-box.bl.play-game-card.icon-4::before { background-image: url('../img/paan2.png'); }
.play-game-page .top-box.bl.play-game-card.icon-5::before { background-image: url('../img/paan.png'); }
.play-game-page .top-box.bl.play-game-card.icon-6::before { background-image: url('../img/paan2.png'); }
.play-game-page .top-box.bl.play-game-card.icon-last::before { background-image: url('../img/tripal.png'); }

.play-game-page .top-box.bl.play-game-card .cont h6 {
  margin: 0 !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #f0d78a !important;
  line-height: 1.3;
  text-align: center;
}

.play-game-page .play-game-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.play-game-page .play-game-link:hover .top-box.bl,
.play-game-page .play-game-link:active .top-box.bl {
  border-color: rgba(232, 201, 106, 0.55) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 201, 106, 0.2) !important;
}

/* ---- Chart page ---- */
.chart-page #listContainer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0 8px 20px;
}

.chart-page #listContainer .group {
  display: flex;
  width: calc(50% - 10px);
  max-width: 340px;
  justify-content: center;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(232, 201, 106, 0.22) !important;
  border-radius: 12px !important;
  overflow: hidden;
}

.chart-page .chart-glass-group,
.chart-page .item1 {
  width: 100%;
}

.chart-page .item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.chart-page .item p {
  margin: 0;
  padding: 8px 4px;
  width: 33.33%;
  text-align: center;
  color: #f0f4f8 !important;
  font-size: 0.82rem;
}

.chart-page .day-and-date {
  color: #f0d78a !important;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 8px;
  text-align: center;
  background: rgba(232, 201, 106, 0.1);
}

.chart-page .page-heading h5 {
  color: #f0d78a !important;
}

@media (max-width: 768px) {
  .chart-page #listContainer {
    flex-direction: column;
    align-items: center;
  }

  .chart-page #listContainer .group {
    width: 100%;
    max-width: 100%;
  }
}

/* ---- Profile page ---- */
.profile-page-body {
  background: transparent !important;
}

.profile-page .profile-container {
  max-width: 540px;
  margin: 16px auto !important;
}

.profile-page .profile-container h6 {
  color: #f0d78a !important;
  font-weight: 700 !important;
}

.profile-page .text-muted {
  color: rgba(240, 244, 248, 0.6) !important;
}

.profile-page .profile-info li {
  color: #f0f4f8 !important;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-page .profile-info li strong {
  color: #f0d78a;
}

/* ---- Support ---- */
.support-content {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 14px 28px;
}

.support-lead {
  margin: 0 0 16px;
  padding: 0 4px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(240, 244, 248, 0.75);
  text-align: center;
}

.support-page .support-card {
  max-width: 100%;
  margin: 0 auto !important;
  padding: 22px 18px 20px !important;
  text-align: center;
  border: 1px solid rgba(232, 201, 106, 0.32) !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35) !important;
}

.support-card-top {
  margin-bottom: 18px;
}

.support-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: rgba(232, 201, 106, 0.14);
  border: 1px solid rgba(232, 201, 106, 0.35);
}

.support-icon-wrap img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.support-page .support-title {
  margin: 0 0 6px;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #f0d78a !important;
  letter-spacing: 0.02em;
}

.support-subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(240, 244, 248, 0.65);
}

.support-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-page .support-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  padding: 12px 16px !important;
  border-radius: 14px !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.support-btn-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
}

.support-btn-icon img {
  width: 22px !important;
  height: 22px !important;
  object-fit: contain;
}

.support-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.support-btn-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.support-btn-value {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.support-page .support-btn.call {
  color: #0a1628 !important;
  background: linear-gradient(135deg, #f0d78a 0%, #e8c96a 55%, #c8a53c 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 16px rgba(232, 201, 106, 0.28) !important;
}

.support-page .support-btn.whatsapp {
  color: #ffffff !important;
  background: linear-gradient(135deg, #34d399 0%, #25d366 45%, #128c41 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.28) !important;
}

.support-page .support-btn:active {
  transform: scale(0.98);
}

.support-footnote {
  margin: 16px 0 0;
  padding: 0 8px;
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
  color: rgba(240, 244, 248, 0.5);
}

/* ---- Withdraw ---- */
body.withdraw-page section.withdraw-content {
  background: transparent !important;
}

.withdraw-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 14px 28px;
}

.withdraw-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.withdraw-wallet-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(232, 201, 106, 0.18) 0%, rgba(232, 201, 106, 0.06) 100%);
  border: 1px solid rgba(232, 201, 106, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.withdraw-wallet-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(240, 244, 248, 0.65);
  margin-bottom: 4px;
}

.withdraw-wallet-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f0d78a !important;
  letter-spacing: 0.02em;
}

.withdraw-history-link {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #f0d78a !important;
  text-decoration: none !important;
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(232, 201, 106, 0.3);
}

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

.withdraw-info-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(8, 18, 36, 0.75);
  border: 1px solid rgba(232, 201, 106, 0.22);
  text-align: center;
}

.withdraw-info-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(240, 244, 248, 0.55);
}

.withdraw-info-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f0f4f8;
}

.withdraw-card {
  padding: 18px 16px !important;
  border-radius: 16px !important;
  background: rgba(8, 18, 36, 0.82) !important;
  border: 1px solid rgba(232, 201, 106, 0.28) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3) !important;
}

.withdraw-section-title {
  margin: 0 0 4px;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #f0d78a !important;
}

.withdraw-section-hint {
  margin: 0 0 14px;
  font-size: 0.78rem;
  color: rgba(240, 244, 248, 0.55);
}

.withdraw-method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.withdraw-method-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 88px;
  padding: 12px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.withdraw-method-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 10px;
  color: rgba(240, 244, 248, 0.7);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.withdraw-method-badge.is-saved {
  color: #0a1628;
  background: linear-gradient(135deg, #86efac, #4ade80);
  border-color: transparent;
}

.withdraw-method-item:hover,
.withdraw-method-item:focus {
  background: rgba(232, 201, 106, 0.12);
  border-color: rgba(232, 201, 106, 0.35);
  outline: none;
}

.withdraw-method-item:active {
  transform: scale(0.98);
}

.withdraw-method-item img {
  width: 36px !important;
  height: 36px !important;
  object-fit: contain;
}

.withdraw-method-item span {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(240, 244, 248, 0.85);
}

.withdraw-field {
  margin-bottom: 14px;
}

.withdraw-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(240, 244, 248, 0.85);
}

.withdraw-page .withdraw-select,
.withdraw-page .withdraw-field .form-control {
  width: 100%;
  min-height: 48px !important;
  font-size: 15px !important;
  border-radius: 12px !important;
  background-color: #0f1e38 !important;
  color: #f0f4f8 !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color-scheme: dark;
}

.withdraw-page .withdraw-amount-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.withdraw-page .withdraw-amount-wrap::before {
  color: #f0d78a !important;
  left: 14px;
}

.withdraw-page .withdraw-amount-wrap input {
  width: 100%;
  min-height: 48px;
  padding: 10px 10px 10px 36px !important;
  font-size: 1.05rem !important;
  font-weight: 700;
  color: #f0f4f8 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none;
}

.withdraw-page .withdraw-amount-wrap input::placeholder {
  color: rgba(240, 244, 248, 0.4);
  font-weight: 500;
}

.withdraw-quick-amt {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.withdraw-amt-chip {
  min-height: 40px;
  padding: 8px 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(240, 244, 248, 0.85);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.withdraw-amt-chip:hover,
.withdraw-amt-chip.active {
  color: #0a1628 !important;
  background: linear-gradient(135deg, #f0d78a, #e8c96a) !important;
  border-color: transparent !important;
}

.withdraw-submit-btn {
  min-height: 50px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  border-radius: 14px !important;
  border: none !important;
  background: linear-gradient(135deg, #f0d78a 0%, #e8c96a 55%, #c8a53c 100%) !important;
  color: #0a1628 !important;
  box-shadow: 0 4px 18px rgba(232, 201, 106, 0.35) !important;
}

.withdraw-page .withdraw-note {
  max-width: 100%;
  margin: 0 !important;
  padding: 14px 16px !important;
  border-radius: 14px !important;
  background: rgba(251, 191, 36, 0.1) !important;
  border: 1px solid rgba(251, 191, 36, 0.25) !important;
}

.withdraw-page .withdraw-note p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(240, 244, 248, 0.8) !important;
}

.withdraw-page .withdraw-note strong {
  color: #f0d78a;
}

.withdraw-modal .withdraw-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(240, 244, 248, 0.85);
  margin-bottom: 6px;
}

.withdraw-modal .withdraw-field .form-control {
  min-height: 46px;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #f0f4f8 !important;
  border-radius: 12px !important;
}

.withdraw-modal-btn {
  min-width: 200px;
  min-height: 46px;
  font-weight: 700 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #f0d78a, #e8c96a) !important;
  color: #0a1628 !important;
  border: none !important;
}

@media (max-width: 400px) {
  .withdraw-quick-amt {
    grid-template-columns: repeat(2, 1fr);
  }

  .withdraw-method-grid {
    gap: 8px;
  }

  .withdraw-method-item {
    min-height: 80px;
    padding: 10px 6px;
  }
}

/* ---- Bottom footer on inner pages ---- */
body.has-app-footer footer.fixed-bottom {
  background: linear-gradient(180deg, rgba(20, 38, 68, 0.97) 0%, rgba(10, 22, 40, 0.99) 100%) !important;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid rgba(232, 201, 106, 0.35) !important;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0)) !important;
  z-index: 1030;
}

body.has-app-footer .footer-content ul li a {
  color: rgba(232, 201, 106, 0.65) !important;
  font-size: 0.65rem;
  font-weight: 600;
}

body.has-app-footer .footer-content ul li a img {
  width: 23px !important;
  height: 23px !important;
  filter: brightness(0) saturate(100%) invert(79%) sepia(61%) saturate(459%) hue-rotate(6deg) brightness(105%) contrast(88%);
}

body.has-app-footer .footer-content ul li.active a {
  background: linear-gradient(145deg, #f9f9f9 0%, #999999 45%, #010000 100%) !important;
  border-radius: 16px !important;
  width: 60px !important;
  height: 60px !important;
  box-shadow: 0 4px 18px rgba(232, 201, 106, 0.45);
}

body.has-app-footer .footer-content ul li.active a img {
  filter: brightness(0) saturate(100%) invert(8%) sepia(20%) saturate(2000%) hue-rotate(175deg) brightness(95%) contrast(95%) !important;
}

@media (min-width: 576px) {
  .play-game-container {
    max-width: 640px;
  }

  .play-game-page .top-box.bl.play-game-card {
    max-width: 200px;
    height: 150px !important;
  }

  .play-game-page .top-box.bl.play-game-card .cont h6 {
    font-size: 0.85rem !important;
  }
}

/* Add bank form grid */
.add-bank-page .form-row-custom {
  display: flex;
  flex-wrap: wrap;
  margin-left: -8px;
  margin-right: -8px;
}

.add-bank-page .form-row-custom .form-group-col {
  flex: 0 0 50%;
  max-width: 50%;
  padding-left: 8px;
  padding-right: 8px;
  margin-bottom: 16px;
}

.add-bank-page .form-label {
  color: rgba(240, 244, 248, 0.85) !important;
  font-size: 0.82rem;
  font-weight: 600;
}

.win-history-page .section-label,
.app-section-label {
  color: #f0d78a !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  margin: 16px 0 12px;
}

@media (max-width: 576px) {
  .add-bank-page .form-row-custom .form-group-col {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 380px) {
  .app-header-title {
    font-size: 0.85rem !important;
  }

  .app-header-wallet {
    font-size: 0.78rem !important;
    padding: 5px 8px;
  }
}
