:root {
  --primary: #f65e5e;      /* Premium Coral Red */
  --primary-gradient: linear-gradient(135deg, #ff6a64, #ff9485);
  --bg-color: #f5f6fa;
  --text-dark: #333333;
  --text-light: #ffffff;
  --text-muted: #999999;
  --card-bg: #ffffff;
  --border-radius: 16px;
  --nav-height: 64px;
  
  /* Color prediction constants */
  --green-btn: #00b58a;     /* Teal / Green */
  --violet-btn: #b062f6;    /* Violet */
  --red-btn: #f65e5e;       /* Red */
  --big-btn: #ffa726;       /* Warm Orange */
  --small-btn: #29b6f6;     /* Bright Blue */
  
  --border-color: #f0f0f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: #1e1e24; /* Background outer wrapper to frame the mobile view */
  color: var(--text-dark);
  -webkit-tap-highlight-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Mobile Layout Container mimicking iPhone/Android */
#root {
  width: 100%;
  max-width: 480px;
  height: 100vh;
  max-height: 920px;
  background-color: var(--bg-color);
  position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
}

@media (max-width: 480px) {
  body {
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
  #root {
    max-width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
    box-shadow: none;
    border-radius: 0;
    overflow: hidden;
  }
}

/* Admin Mode Overrides */
body.admin-mode {
  background-color: transparent;
  display: block;
}

#root.admin-mode-root {
  max-width: none;
  max-height: none;
  height: auto;
  min-height: 100vh;
  border-radius: 0;
  box-shadow: none;
  background-color: transparent;
  overflow: visible;
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.page-container {
  flex: 1;
  overflow-y: auto;
  padding-bottom: calc(var(--nav-height) + 110px);
  display: flex;
  flex-direction: column;
  scrollbar-width: none; /* Hide scrollbar for clean app feel */
}

.page-container::-webkit-scrollbar {
  display: none;
}

/* Common Header Styles */
.app-header {
  background: var(--primary-gradient);
  color: white;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.app-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.app-header .back-btn {
  cursor: pointer;
  padding: 4px;
}

/* Common Card Styles */
.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 16px;
  margin: 12px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Utilities */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

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

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

/* Button micro-interactions */
button, .clickable {
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  outline: none;
}

button:active, .clickable:active {
  transform: scale(0.96);
  opacity: 0.9;
}

/* Wingo Style Pagination styling */
.wingo-pagination-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  width: 100%;
}

.wingo-pagination-row .pag-btn {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  color: #ba8c5b; /* Gold/Brown accent */
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  cursor: pointer;
}

.wingo-pagination-row .pag-btn:disabled {
  background-color: #f1f3f7;
  color: #cbd5e1;
  border-color: #e2e8f0;
  box-shadow: none;
  cursor: not-allowed;
}

.wingo-pagination-row .pag-btn:not(:disabled):active {
  transform: scale(0.9);
}

.wingo-pagination-row .pag-indicator {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}
.home-page {
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
}

/* Logo Header */
.home-logo-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eef0f5;
  flex-shrink: 0;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-image-file {
  height: 28px;
  object-fit: contain;
  display: block;
}

.header-status-dot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #888888;
  background-color: #ffffff;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid #eef0f5;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #00b58a;
  box-shadow: 0 0 8px #00b58a;
  display: inline-block;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.5; }
}

/* Warning Marquee */
.top-marquee {
  background-color: #ffebee;
  color: #d32f2f;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 11px;
  border-bottom: 1px solid #ffd54f;
}

.marquee-icon {
  flex-shrink: 0;
}

/* Promo Banner Slider */
.promo-banner-container.slider-mode {
  padding: 12px 16px;
  position: relative;
  overflow: hidden;
  height: 204px;
  flex-shrink: 0;
}

.slides-wrapper {
  display: flex;
  width: 100%;
  height: 180px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-item {
  flex: 0 0 96%;
  margin-right: 4%;
  height: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  color: white;
  position: relative;
  overflow: hidden;
}

.slide-content-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 20px 24px;
}

.slide-left-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 10;
}

.slide-brand-badge {
  background-color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  align-self: flex-start;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.slide-left-text h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.highlight-extra {
  font-size: 20px;
  font-weight: 900;
  color: #ffd54f;
  margin-top: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slide-left-text p {
  font-size: 11px;
  opacity: 0.9;
  margin-top: 6px;
}

.slide-right-decor {
  font-size: 80px;
  opacity: 0.25;
  user-select: none;
  transform: rotate(15deg);
  margin-right: -10px;
}


.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 30;
}

.slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.slider-dots .dot.active {
  background-color: #ffffff;
  width: 16px;
  border-radius: 4px;
}

/* Quick Actions */
.quick-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 4px 16px;
}

.quick-actions-row.single-mode {
  grid-template-columns: 1fr;
}

.quick-card {
  border-radius: var(--border-radius);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}


.quick-card.vip {
  background: linear-gradient(135deg, #ff9800, #ffe082);
}

.quick-info h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
  color: #fff;
}

.quick-info span {
  font-size: 9px;
  opacity: 0.9;
  display: block;
}

.quick-icon-round {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* Category Scroll */
.category-scroll-bar {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 16px;
  scrollbar-width: none;
  flex-shrink: 0;
}

.category-scroll-bar::-webkit-scrollbar {
  display: none;
}

.category-tab-btn {
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 30px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.category-tab-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Section Header */
.section-header-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 16px 12px 16px;
}

.title-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot-indicator {
  width: 4px;
  height: 14px;
  background-color: var(--primary);
  border-radius: 2px;
}

.dot-indicator.blue {
  background-color: #0288d1;
}

.section-header-title h3 {
  font-size: 15px;
  font-weight: 600;
}

.title-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.detail-btn {
  background: none;
  font-size: 12px;
  color: #0288d1;
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 500;
}

/* High Premium Lottery Cards Grid decoration layout */
.lottery-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 16px 20px 16px;
}

.lottery-card {
  border-radius: 20px;
  padding: 16px;
  color: white;
  position: relative;
  overflow: hidden;
  height: 125px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lottery-card:active {
  transform: scale(0.96);
}

.lottery-card.wingo {
  background: linear-gradient(135deg, #ff6b8b 0%, #ff8e53 100%);
  box-shadow: 0 8px 20px rgba(255, 107, 139, 0.2);
}

.lottery-card.k3 {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  box-shadow: 0 8px 20px rgba(17, 153, 142, 0.2);
}

.lottery-card.lottery5d {
  background: linear-gradient(135deg, #fc4a1a 0%, #f7b733 100%);
  box-shadow: 0 8px 20px rgba(252, 74, 26, 0.2);
}

.lottery-card.trx {
  background: linear-gradient(135deg, #8a2387 0%, #e94057 50%, #f27121 100%);
  box-shadow: 0 8px 20px rgba(138, 35, 135, 0.2);
}

.lottery-card.luckywin {
  background: linear-gradient(135deg, #7f00ff 0%, #e100ff 100%);
  box-shadow: 0 8px 20px rgba(127, 0, 255, 0.3);
}

.lottery-card.cardnumber {
  background: linear-gradient(135deg, #d31027 0%, #ea384d 100%);
  box-shadow: 0 8px 20px rgba(211, 16, 39, 0.25);
}

.lottery-card.diamondnumber {
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
  box-shadow: 0 8px 20px rgba(0, 198, 255, 0.3);
  grid-column: span 2;
}

.wheel-badge {
  background: rgba(255, 255, 255, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  border: 0.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  width: fit-content;
}

.lottery-card h3 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.lottery-card p {
  font-size: 10px;
  opacity: 0.9;
  font-weight: 500;
  margin-top: 2px;
}

.card-decor {
  position: absolute;
  right: -8px;
  bottom: -8px;
  font-size: 64px;
  opacity: 0.12;
  transform: rotate(-10deg);
  transition: transform 0.3s ease;
}

.lottery-card:hover .card-decor {
  transform: scale(1.1) rotate(5deg);
}

.wingo-balls, .k3-dices, .five-d-box {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.ball {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ball.green { background: radial-gradient(circle at 35% 35%, #81c784 0%, #2e7d32 100%); }
.ball.violet { background: linear-gradient(135deg, #c62828 50%, #9c27b0 50%); }
.ball.red { background: radial-gradient(circle at 35% 35%, #e57373 0%, #c62828 100%); }

.dice-face {
  font-size: 22px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  line-height: 1;
}

.num-pill {
  background: rgba(255, 255, 255, 0.4);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  border: 0.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.trx-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  border: 0.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
  width: fit-content;
}

/* Mini Games Grid */
.mini-games-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 16px 16px;
}

.mini-card {
  background-color: #ffffff;
  border-radius: var(--border-radius);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #f0f0f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.mini-card-text h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.mini-card-text span {
  font-size: 9px;
  color: var(--text-muted);
  display: block;
  margin-top: 1px;
}

.mini-icon {
  font-size: 24px;
}

/* Add To Desktop floating bar */
.add-to-desktop-bar {
  position: fixed;
  bottom: calc(var(--nav-height) + 16px);
  left: 16px;
  right: 16px;
  margin: 0 auto;
  max-width: calc(480px - 32px);
  background-color: #ffffff;
  border-radius: var(--border-radius);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.8);
  z-index: 105;
  animation: slideUp 0.4s ease forwards;
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.add-to-desktop-bar .left-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-icon-placeholder {
  width: 36px;
  height: 36px;
  background: var(--primary-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.text-details h5 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
}

.text-details p {
  font-size: 10px;
  color: var(--text-muted);
}

.add-to-desktop-bar .action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-btn {
  background: var(--primary-gradient);
  color: white;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(246,94,94,0.2);
}

.close-btn {
  background: none;
  color: #999;
  padding: 4px;
}

/* Indicators */
.dot-indicator.purple { background-color: #ab47bc; }
.dot-indicator.gold { background-color: #ffb300; }
.dot-indicator.teal { background-color: #00b58a; }

/* Grid Styles for Slots, Casino, Fishing */
.slots-grid, .casino-grid, .fishing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 16px 16px;
}

/* Base Card Styling for Sections */
.slots-card, .casino-card, .fishing-card {
  border-radius: var(--border-radius);
  padding: 16px;
  color: white;
  position: relative;
  overflow: hidden;
  height: 94px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.slots-card h4, .casino-card h4, .fishing-card h4 {
  font-size: 14px;
  font-weight: 700;
}

.slots-card p, .casino-card p, .fishing-card p {
  font-size: 9px;
  opacity: 0.85;
  margin-top: 2px;
}

/* Unique Card Gradients */
.slots-card.super-ace {
  background: linear-gradient(135deg, #ffb74d, #f57c00);
}
.slots-card.gates {
  background: linear-gradient(135deg, #4fc3f7, #0288d1);
}
.casino-card.baccarat {
  background: linear-gradient(135deg, #9575cd, #5e35b1);
}
.casino-card.teen-patti {
  background: linear-gradient(135deg, #e57373, #d32f2f);
}
.fishing-card.ocean-king {
  background: linear-gradient(135deg, #4db6ac, #00796b);
}
.fishing-card.fishing-war {
  background: linear-gradient(135deg, #4dd0e1, #00acc1);
}

/* Card Decors */
.slots-decor, .casino-decor, .fishing-decor {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 32px;
  opacity: 0.25;
}

/* Premium Leaderboard Section */
.leaderboard-section {
  padding-bottom: 30px !important;
}

.leaderboard-container {
  background: linear-gradient(180deg, #ffffff 0%, #fcfdfe 100%);
  border-radius: 24px;
  padding: 20px;
  border: 1.5px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.035), inset 0 1px 0 #ffffff;
}

.leaderboard-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: rgba(0, 181, 138, 0.1);
  color: #00b58a;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  margin-left: 8px;
  letter-spacing: 0.5px;
  border: 0.5px solid rgba(0, 181, 138, 0.2);
}

/* Podium Layout */
.leaderboard-podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 24px;
  padding-top: 24px;
}

.podium-card {
  width: 32%;
  border-radius: 20px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
  color: #ffffff;
  box-sizing: border-box;
  transition: transform 0.25s ease;
}

.podium-card:hover {
  transform: translateY(-4px);
}

/* Rank 1 (Gold) */
.podium-card.rank-1 {
  height: 155px;
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  border: 2px solid #ffd700;
  z-index: 10;
  box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
  animation: gold-pulse 3s infinite alternate;
}

@keyframes gold-pulse {
  0% { box-shadow: 0 12px 35px rgba(255, 215, 0, 0.25); }
  100% { box-shadow: 0 12px 35px rgba(255, 215, 0, 0.45); }
}

.podium-card.rank-1::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), transparent 60%);
  pointer-events: none;
}

/* Rank 2 (Silver) */
.podium-card.rank-2 {
  height: 132px;
  background: linear-gradient(135deg, #f44336 0%, #c62828 100%);
  border: 2px solid #e0e0e0;
  box-shadow: 0 8px 24px rgba(244, 67, 54, 0.25);
}

/* Rank 3 (Bronze) */
.podium-card.rank-3 {
  height: 118px;
  background: linear-gradient(135deg, #ff9800 0%, #e65100 100%);
  border: 2px solid #b45309;
  box-shadow: 0 6px 20px rgba(230, 81, 0, 0.25);
}

/* Podium Inner Items */
.podium-crown {
  position: absolute;
  top: -22px;
  font-size: 24px;
  animation: crown-float 2.5s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(255, 213, 79, 0.4));
}

@keyframes crown-float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(4deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.podium-rank-badge {
  position: absolute;
  bottom: -10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.podium-rank-badge.gold {
  background: linear-gradient(135deg, #ffe082, #ffd54f);
  color: #1e293b;
  border: 1px solid #ffd700;
}

.podium-rank-badge.silver {
  background: linear-gradient(135deg, #f1f5f9, #cbd5e1);
  color: #1e293b;
  border: 1px solid #94a3b8;
}

.podium-rank-badge.bronze {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  border: 1px solid #7c2d12;
}

.podium-avatar-frame {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 6px;
  border: 2px solid;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  box-sizing: border-box;
}

.podium-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-1 .podium-avatar-frame {
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.rank-2 .podium-avatar-frame {
  border-color: #e0e0e0;
  box-shadow: 0 0 8px rgba(224, 224, 224, 0.3);
}

.rank-3 .podium-avatar-frame {
  border-color: #b45309;
  box-shadow: 0 0 6px rgba(180, 83, 9, 0.3);
}

.podium-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  margin-top: 6px;
}

.podium-username {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.podium-card.rank-1 .podium-username {
  color: #cbd5e1;
  font-weight: 600;
}

.podium-wins {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
}

.podium-card.rank-1 .podium-wins {
  color: #ffd700;
  font-size: 12.5px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* Ranks List 4-10 */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.leaderboard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  background-color: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.015);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.leaderboard-row:hover {
  transform: translateX(4px);
  background-color: #fafbfc;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.row-rank {
  font-size: 10px;
  font-weight: 900;
  color: #64748b;
  background-color: #f1f5f9;
  padding: 2px 8px;
  border-radius: 12px;
  min-width: 28px;
  text-align: center;
  box-sizing: border-box;
}

.row-avatar-frame {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.row-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row-username {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.2px;
}

.user-online-dot {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px #10b981;
  animation: online-pulse 1.8s infinite;
}

@keyframes online-pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.row-amount {
  font-size: 13px;
  font-weight: 800;
  color: #10b981;
  text-shadow: 0 0 1px rgba(16, 185, 129, 0.05);
}

@media (max-width: 480px) {
  .promo-banner-container.slider-mode {
    height: 180px;
    padding: 8px 16px;
  }
  .slides-wrapper {
    height: 156px;
  }
  .slide-content-layout {
    padding: 12px 16px;
  }
  .slide-left-text h2 {
    font-size: 15px;
  }
  .highlight-extra {
    font-size: 16px;
    margin-top: 2px;
  }
  .slide-left-text p {
    font-size: 9px;
    margin-top: 3px;
  }
  .slide-right-decor {
    font-size: 38px;
    right: 12px;
    bottom: 4px;
  }
  .quick-links-grid {
    padding: 12px 16px;
    gap: 8px;
  }
  .quick-card {
    padding: 10px 12px;
  }
  .quick-info h4 {
    font-size: 11.5px;
  }
  .quick-info span {
    font-size: 8px;
  }
  .quick-icon-round {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .section-header-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-bottom: 8px;
  }
  .title-desc {
    margin-left: 0;
    font-size: 10px;
  }
  .title-left {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* COMMUNITY CHANNELS SECTION */

.channel-banner-container {
  padding: 0 16px;
  position: relative;
  overflow: hidden;
  height: auto;
  flex-shrink: 0;
}

.channel-slides-wrapper {
  display: flex;
  width: 100%;
  height: auto;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 8px 0 20px 0; /* Space for the shadow */
}

.channel-slide-item {
  flex: 0 0 100%;
  height: auto;
  position: relative;
}

.community-channel-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-color, #f0f0f0);
  border-radius: 20px;
  padding: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.channel-card-glass {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  backdrop-filter: blur(10px);
  z-index: 1;
}

.channel-content-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
}

.channel-logo {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 3px;
  background: var(--primary-gradient, linear-gradient(135deg, #ff6a64, #ff9485));
  box-shadow: 0 4px 10px rgba(246, 94, 94, 0.25);
}

.channel-logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  background: #f5f6fa;
}

.channel-info {
  flex: 1;
  min-width: 0; /* allows text truncation */
}

.channel-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.channel-name-row h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark, #333333);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}

.channel-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(246, 94, 94, 0.1);
  color: var(--primary, #f65e5e);
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
  border: 1px solid rgba(246, 94, 94, 0.2);
}

.channel-desc {
  margin: 0 0 8px 0;
  font-size: 12px;
  color: var(--text-muted, #999999);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.channel-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.channel-join-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--primary-gradient, linear-gradient(135deg, #ff6a64, #ff9485));
  color: #ffffff;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(246, 94, 94, 0.3);
  transition: all 0.2s;
  flex-shrink: 0;
  min-width: 80px;
}

.channel-join-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(246, 94, 94, 0.4);
}

.channel-join-btn:active {
  transform: translateY(1px);
}

.channel-join-btn.joining {
  opacity: 0.8;
  pointer-events: none;
}

/* Spinner mini for join button */
.spinner-mini {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@media (max-width: 480px) {
  .channel-content-wrapper {
    gap: 12px;
  }
  .channel-logo {
    width: 48px;
    height: 48px;
  }
  .channel-name-row h4 {
    font-size: 15px;
  }
  .channel-desc {
    font-size: 11px;
    -webkit-line-clamp: 1;
  }
  .channel-join-btn {
    padding: 6px 16px;
    font-size: 12px;
  }
}
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  width: 90%;
  max-width: 400px;
  align-items: center;
}

.toast {
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards, fadeOut 0.3s 2.7s forwards;
}

.toast-success {
  background: rgba(46, 125, 50, 0.9);
}

@keyframes slideDown {
  from {
    transform: translateY(-20px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}
.activity-page {
  background-color: #f7f9fc;
}

.activity-header {
  padding: 35px 24px 30px;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  text-align: center;
  background: linear-gradient(135deg, #f65e5e 0%, #ff8a7a 100%);
  box-shadow: 0 8px 25px rgba(246, 94, 94, 0.2);
  color: white;
  position: relative;
}

.activity-header h2 {
  margin-bottom: 24px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.bonus-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.18);
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat {
  flex: 1;
}

.stat span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.stat h3 {
  font-size: 22px;
  font-weight: 800;
  color: white;
}

.divider {
  width: 1px;
  height: 35px;
  background-color: rgba(255, 255, 255, 0.25);
}

.bonus-details-btn {
  background: white;
  color: #f65e5e;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.bonus-details-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.activity-grid {
  padding: 24px 16px;
  background: transparent;
}

.icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.icon-box {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.icon-btn:hover .icon-box {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.icon-btn span {
  font-size: 11px;
  font-weight: 600;
  color: #2c3e50;
  text-align: center;
}

.cards-section {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card {
  height: 120px;
  border-radius: 20px;
  padding: 20px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: none;
  margin: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.card-decor-icon {
  position: absolute;
  right: -5px;
  bottom: -5px;
  transform: rotate(-15deg);
  opacity: 0.8;
}

.inline-icon {
  vertical-align: middle;
  margin-right: 6px;
  margin-top: -3px;
}

.card-action-btn {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.25);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 10px;
  width: max-content;
  transition: background 0.3s ease;
}

.feature-card:hover .card-action-btn {
  background: rgba(255, 255, 255, 0.3);
}

.gifts-card {
  background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
  border: 1px solid rgba(255,117,140, 0.3);
}

.attendance-card {
  background: linear-gradient(135deg, #f59e0b 0%, #ffb03a 100%);
  border: 1px solid rgba(245,158,11, 0.3);
}

.card-content h4 {
  font-size: 18px;
  font-weight: 700;
  color: white !important;
  margin-bottom: 6px;
}

.card-content p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9) !important;
  max-width: 90%;
  line-height: 1.3;
}

.gifts-card .card-content h4, .attendance-card .card-content h4,
.gifts-card .card-content p, .attendance-card .card-content p {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  width: auto !important;
  margin-bottom: 0 !important;
}

/* Modal styles for Activity details */
.activity-modal-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.activity-modal {
  width: 100%;
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 24px 20px;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 85%;
  overflow-y: auto;
}

.activity-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.activity-modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
}

.gift-redeem-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.redeem-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-size: 15px;
  outline: none;
  font-weight: 500;
  transition: border-color 0.2s ease;
}

.redeem-input:focus {
  border-color: #f65e5e;
}

.redeem-btn {
  width: 100%;
  background: linear-gradient(135deg, #f65e5e 0%, #ff7a68 100%);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(246, 94, 94, 0.2);
}

.attendance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.attendance-day {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.02);
  cursor: pointer;
  transition: all 0.2s ease;
}

.attendance-day.active {
  background: linear-gradient(135deg, #f59e0b 0%, #ffb03a 100%);
  color: white;
}

.dep-req-text {
  font-size: 11px !important;
  color: #d35400; /* Darker orange/brown so it doesn't blend with background */
  margin-top: 2px;
  display: block;
}

.attendance-day.active .dep-req-text {
  color: rgba(255, 255, 255, 0.85); /* Turn white/transparent white when active */
}

.attendance-day span {
  font-size: 11px;
  display: block;
}

.attendance-day strong {
  font-size: 13px;
  margin-top: 4px;
  display: block;
}

.bonus-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bonus-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}

.bonus-history-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.bonus-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.bonus-info {
  flex-grow: 1;
  margin: 0 16px;
  display: flex;
  flex-direction: column;
}

.bonus-title {
  font-size: 14px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 4px;
}

.bonus-date {
  font-size: 12px;
  color: #7f8c8d;
  font-weight: 500;
}

.bonus-amount {
  font-size: 15px;
  font-weight: 800;
  color: #10b981;
  align-self: center;
  display: flex;
  align-items: center;
}

/* Award Items */
.award-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0,0,0,0.03);
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.award-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.award-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #a8b8d0 0%, #7f8c8d 100%);
  flex-shrink: 0;
}

.award-item.unlocked .award-icon-box {
  background: linear-gradient(135deg, #f59e0b 0%, #ffb03a 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.award-item.claimed .award-icon-box {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.award-info {
  flex-grow: 1;
  margin: 0 16px;
  display: flex;
  flex-direction: column;
}

.award-title {
  font-size: 14px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 4px;
}

.award-amount {
  font-size: 15px;
  font-weight: 800;
  color: #f65e5e;
  align-self: center;
  display: flex;
  align-items: center;
}

.award-claim-btn {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.award-claim-btn.ready {
  background: linear-gradient(135deg, #f59e0b 0%, #ffb03a 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.award-claim-btn.disabled {
  background: #f1f2f6;
  color: #a4b0be;
  cursor: not-allowed;
}

.award-claim-btn.done {
  background: #e8f8f5;
  color: #10b981;
  cursor: not-allowed;
}

/* Rebate Tiers Grid */
.rebate-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.rebate-tier-card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}

.rebate-tier-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.rebate-tier-card.highlight-tier {
  background: linear-gradient(135deg, #f65e5e 0%, #ff7a68 100%);
  color: white;
}

.tier-vol {
  font-size: 11px;
  font-weight: 700;
  color: #7f8c8d;
  margin-bottom: 4px;
}

.highlight-tier .tier-vol {
  color: rgba(255,255,255,0.9);
}

.tier-pct {
  font-size: 16px;
  font-weight: 800;
  color: #2c3e50;
}

.highlight-tier .tier-pct {
  color: white;
}

.promotion-page {
  background-color: #f7f9fc;
}

.promo-header {
  padding: 20px 16px;
  text-align: center;
  background: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  flex-shrink: 0;
}

.promo-header h2 {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #f65e5e, #ff8a7a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

.promo-card {
  margin: 16px;
  border-radius: 20px;
  padding: 24px 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, #f65e5e 0%, #ff8a7a 100%);
  box-shadow: 0 10px 30px rgba(246, 94, 94, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  flex-shrink: 0;
}

.promo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
}

.commission-display {
  text-align: center;
  margin-bottom: 12px;
  padding: 0 20px;
}

.commission-display h3 {
  font-size: 36px;
  font-weight: 800;
  color: white;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-family: 'Poppins', sans-serif;
}

.commission-display .badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.claim-section {
  background: white;
  padding: 16px;
  text-align: center;
  border-top: 1px solid #f0f4f8;
}

.claim-commission-btn {
  width: 100%;
  background: linear-gradient(135deg, #f65e5e 0%, #ff7a68 100%);
  color: white;
  padding: 12px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(246, 94, 94, 0.2);
  border: none;
  transition: all 0.2s ease;
  display: block;
}

.claim-commission-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(246, 94, 94, 0.3);
}

.claim-commission-btn:active {
  transform: translateY(1px);
}

.upgrade-text {
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 16px;
  padding: 0 20px;
  font-weight: 500;
}

.stats-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-tabs .tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.stats-tabs .tab.active {
  color: white;
  background: rgba(0, 0, 0, 0.1);
}

.stats-tabs .tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: white;
  border-radius: 3px 3px 0 0;
}


.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
  color: var(--text-dark);
}

.stat-item {
  padding: 14px 10px;
  text-align: center;
  border-bottom: 1px solid #f0f4f8;
  border-right: 1px solid #f0f4f8;
  transition: background-color 0.2s ease;
}

.stat-item:nth-child(2n) {
  border-right: none;
}

.stat-item:hover {
  background-color: #fcfdfe;
}

.stat-item h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-item span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: capitalize;
  display: block;
  line-height: 1.3;
}

.text-dark { color: #2c3e50; }
.text-green { color: #10b981; }
.text-orange { color: #f59e0b; }

.promo-actions {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.download-qr-btn {
  width: 100%;
  background: linear-gradient(135deg, #f65e5e 0%, #ff7a68 100%);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(246, 94, 94, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.download-qr-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(246, 94, 94, 0.4);
}

.download-qr-btn:active {
  transform: translateY(1px);
}

.action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
  cursor: pointer;
}

.action-row:hover {
  transform: translateX(2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.action-row span {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
}

.action-row .text-muted {
  font-size: 14px;
  color: #7f8c8d;
  font-weight: 500;
  background: #f1f2f6;
  padding: 4px 10px;
  border-radius: 8px;
  font-family: monospace;
}

.copy-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f65e5e;
  background: rgba(246, 94, 94, 0.1);
  padding: 6px;
  border-radius: 8px;
  font-size: 16px;
}

/* Rewards Modal CSS */
.rewards-modal-overlay {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
  box-sizing: border-box;
  padding: 16px;
}

.rewards-modal {
  width: 90%;
  max-width: 340px;
  background: white;
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 85%;
  overflow-y: auto;
}

.rewards-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.rewards-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
}

.close-btn {
  background: #f1f2f6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #7f8c8d;
}

.rewards-content .intro {
  font-size: 13px;
  color: #7f8c8d;
  line-height: 1.4;
  margin-bottom: 20px;
}

.tier-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.tier-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.02);
}

.tier-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.tier-badge.gold {
  background: linear-gradient(135deg, #ffe082 0%, #ffb300 100%);
  color: #7f6000;
}

.tier-badge.silver {
  background: linear-gradient(135deg, #e0e0e0 0%, #9e9e9e 100%);
  color: #424242;
}

.tier-badge.bronze {
  background: linear-gradient(135deg, #ffcc80 0%, #f57c00 100%);
  color: #b75300;
}

.tier-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tier-info strong {
  font-size: 14px;
  color: #2c3e50;
}

.tier-info span {
  font-size: 12px;
  color: #7f8c8d;
}

.claim-btn {
  width: 100%;
  background: linear-gradient(135deg, #f65e5e 0%, #ff7a68 100%);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(246, 94, 94, 0.2);
}

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

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


.account-page {
  background-color: #f7f9fc;
}

/* Profile Header */
.account-profile-header {
  background: linear-gradient(135deg, #f65e5e 0%, #ff8a7a 100%);
  color: white;
  padding: 45px 20px 60px;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  box-shadow: 0 8px 25px rgba(246, 94, 94, 0.2);
}

.profile-details-flex {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar-frame {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.4);
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-text h3 {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vip-badge-pill {
  background-color: #ffd700;
  color: #7f6000;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
}

.uid-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 5px 12px;
  margin-top: 8px;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.uid-row:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.copy-label-badge {
  background-color: #ffffff;
  color: #f65e5e;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 9px;
  text-transform: uppercase;
}

/* Balance Box */
.account-balance-card {
  margin-top: -30px !important;
  position: relative;
  z-index: 20;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.total-balance-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.balance-numeric {
  font-size: 32px;
  font-weight: 800;
  color: #2c3e50;
  margin-top: 4px;
  font-family: 'Poppins', sans-serif;
}

/* Quick grid widgets */
.account-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.quick-grid-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
}

.quick-grid-btn span {
  font-size: 11px;
  font-weight: 600;
  color: #2c3e50;
}

.icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.quick-grid-btn:hover .icon-wrapper {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.wallet-icon-bg { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.deposit-icon-bg { background: linear-gradient(135deg, #10b981, #34d399); }
.withdraw-icon-bg { background: linear-gradient(135deg, #ef4444, #f87171); }
.vip-icon-bg { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }

/* Option Menu List */
.account-options-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
}

.option-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.option-list-item:hover {
  transform: translateX(2px);
}

.option-list-item:last-child {
  border-bottom: none;
}

.item-left-flex {
  display: flex;
  align-items: center;
  gap: 14px;
}

.item-left-flex span {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
}

.option-icon-square {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.option-icon-square.red-bg {
  background-color: rgba(246, 94, 94, 0.1);
  color: #f65e5e;
}

.item-right-flex {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-text {
  font-size: 13px;
  color: #7f8c8d;
  font-weight: 500;
}

/* Service Center */
.service-center-card {
  padding: 20px;
  border-radius: 20px;
}

.service-header-title {
  font-size: 15px;
  font-weight: 700;
  color: #2c3e50;
  border-left: 4px solid #f65e5e;
  padding-left: 8px;
}

.service-grid-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.service-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.service-grid-item span {
  font-size: 11px;
  color: #555;
  font-weight: 600;
}

/* Logout Button */
.account-logout-btn {
  width: 100%;
  background-color: #ffffff;
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 30px;
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.03);
  transition: all 0.2s ease;
}

.account-logout-btn:hover {
  background-color: #fff5f5;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.05);
}

.account-logout-btn:active {
  transform: translateY(1px);
}

.logout-btn-box {
  padding: 0 16px 24px 16px;
  margin-top: 16px;
  width: 100%;
  box-sizing: border-box;
}

/* Modal sheets overlay */
.account-modal-overlay {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.account-modal {
  width: 100%;
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 24px 20px;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 80%;
  overflow-y: auto;
}

.account-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #f1f2f6;
  padding-bottom: 12px;
}

.account-modal-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: #2c3e50;
}

.account-modal-close-btn {
  background: #f1f2f6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #7f8c8d;
}

.stats-summary-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stats-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #f8f9fa;
  border-radius: 12px;
}

.stats-summary-row span {
  font-size: 13px;
  color: #7f8c8d;
  font-weight: 500;
}

.stats-summary-row strong {
  font-size: 15px;
  color: #2c3e50;
}

/* Premium History & Transaction Cards */
.premium-tx-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #fcfdfe 100%);
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 12px rgba(148, 163, 184, 0.05);
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.premium-tx-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(148, 163, 184, 0.08);
  border-color: rgba(203, 213, 225, 0.8);
}

.premium-tx-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.premium-tx-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.premium-tx-icon-wrapper.dep-success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.premium-tx-icon-wrapper.dep-pending {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.premium-tx-icon-wrapper.withdraw-success {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.premium-tx-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.premium-tx-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.premium-tx-date {
  font-size: 11px;
  color: #94a3b8;
}

.premium-tx-amount {
  font-size: 15px;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
}

.premium-tx-amount.positive {
  color: #10b981;
}

.premium-tx-amount.negative {
  color: #ef4444;
}

.premium-tx-amount.pending {
  color: #f59e0b;
}

/* Premium game history card */
.premium-game-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(148, 163, 184, 0.05);
}

.premium-game-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.premium-game-badge.green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.premium-game-badge.red { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.premium-game-badge.violet { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

/* 3D Flip Card for VIP Modal */
.vip-flip-card-container {
  background-color: transparent;
  width: 100%;
  height: 200px;
  perspective: 1000px;
  margin-bottom: 24px;
  cursor: pointer;
}

.vip-flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.vip-flip-card-inner.flipped {
  transform: rotateY(180deg);
}

.vip-flip-card-front, .vip-flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-sizing: border-box;
}

.vip-flip-card-front {
  background: linear-gradient(135deg, #f65e5e 0%, #ff8a7a 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.vip-flip-card-back {
  background: linear-gradient(135deg, #d32f2f 0%, #f65e5e 100%);
  color: #ffffff;
  transform: rotateY(180deg);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Sweeping Holographic Shimmer Effect */
@keyframes shimmer-sweep {
  0% { transform: translateX(-150%) skewX(-25deg); }
  50% { transform: translateX(150%) skewX(-25deg); }
  100% { transform: translateX(150%) skewX(-25deg); }
}

.vip-shimmer-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shimmer-sweep 3.5s infinite ease-in-out;
  pointer-events: none;
}

/* Simulated smart card chip */
.vip-card-chip {
  width: 36px;
  height: 26px;
  background: linear-gradient(135deg, #ffe082 0%, #ffb300 100%);
  border-radius: 6px;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8), 0 2px 4px rgba(0,0,0,0.1);
}

.vip-card-chip::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background-image: 
    linear-gradient(to right, transparent 50%, rgba(0,0,0,0.15) 50%),
    linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.15) 50%);
  background-size: 12px 12px;
  border-radius: 4px;
}

/* Front Side Content styling */
.vip-card-title {
  font-size: 26px;
  font-weight: 900;
  margin: 0;
  letter-spacing: 2px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  font-family: 'Outfit', 'Inter', sans-serif;
}

.vip-card-subtitle {
  font-size: 11px;
  margin: 2px 0 0 0;
  font-weight: 800;
  opacity: 0.85;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.vip-progress-bg {
  background: rgba(255, 255, 255, 0.1);
  height: 10px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}

.vip-progress-fill {
  background: linear-gradient(to right, #ffd700 0%, #ca8a04 100%);
  height: 100%;
  border-radius: 8px;
  transition: width 0.5s ease-in-out;
}

.vip-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-top: 6px;
  font-weight: 800;
}

.vip-flip-hint {
  font-size: 9px;
  font-weight: 800;
  opacity: 0.75;
  align-self: center;
  margin-top: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Back Side Content styling */
.vip-card-title-back {
  font-size: 22px;
  font-weight: 900;
  margin: 0;
  letter-spacing: 2.5px;
  background: linear-gradient(135deg, #ffe082 0%, #ffb300 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: left;
}

.vip-card-subtitle-back {
  font-size: 11px;
  margin: 2px 0 0 0;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
}

.vip-back-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  padding: 0 4px;
}

/* Premium Card back side details */
.vip-card-magnetic-stripe {
  width: calc(100% + 48px);
  height: 34px;
  background-color: #0c111d;
  margin: -24px -24px 10px -24px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.vip-signature-panel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  width: 100%;
}

.vip-signature-panel {
  flex: 1;
  height: 24px;
  background: repeating-linear-gradient(
    45deg,
    #f8fafc,
    #f8fafc 4px,
    #cbd5e1 4px,
    #cbd5e1 8px
  );
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: 11px;
  color: #0f172a;
  font-family: 'Dancing Script', 'Brush Script MT', cursive, sans-serif;
  font-style: italic;
  font-weight: bold;
}

.vip-signature-cvv {
  background: #ffffff;
  color: #0f172a;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 900;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  letter-spacing: 0.5px;
}

.vip-back-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.vip-hologram-seal {
  width: 28px;
  height: 28px;
  background: radial-gradient(circle at 30% 30%, #fef08a 0%, #ca8a04 60%, #854d0e 100%);
  border-radius: 50%;
  opacity: 0.85;
  border: 1px solid rgba(254, 240, 138, 0.4);
  box-shadow: 0 0 6px rgba(202, 138, 4, 0.4);
}

/* Profile Avatar Customizations */
.avatar-option-item {
  transition: all 0.25s ease-in-out;
}

.avatar-option-item:hover {
  transform: scale(1.08) rotate(3deg);
}

.avatar-frame {
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.avatar-frame:hover {
  border-color: rgba(255, 255, 255, 0.95);
  transform: scale(1.03);
}

@media (max-width: 480px) {
  .account-profile-header {
    padding: 24px 16px 40px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }
  .avatar-frame {
    width: 56px;
    height: 56px;
  }
  .account-balance-card {
    margin-top: -24px !important;
    padding: 16px;
  }
  .balance-numeric {
    font-size: 26px;
  }
  .icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .quick-grid-btn span {
    font-size: 10px;
  }
  .account-options-list {
    padding: 14px 16px;
    gap: 12px;
    margin: 8px 16px !important;
  }
  .option-list-item {
    padding: 2px 0;
  }
  .item-left-flex span {
    font-size: 13px;
  }
  .option-icon-square {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }
  .service-center-card {
    padding: 14px 16px;
    margin: 8px 16px !important;
  }
  .service-grid-menu {
    gap: 12px;
  }
  .service-grid-item span {
    font-size: 10px;
  }
  .logout-btn-box {
    margin-top: 8px !important;
    padding: 0 20px 12px 20px !important;
  }
  .account-logout-btn {
    padding: 10px;
    font-size: 12.5px;
  }
}


.lobby-page {
  background-color: var(--bg-color);
}

.lobby-header {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  margin-bottom: 16px;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.lobby-header h2 {
  font-size: 18px;
  font-weight: bold;
}

.lobby-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 16px 24px;
}

.lobby-card {
  cursor: pointer;
  transition: transform 0.2s;
}

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

.lobby-img {
  aspect-ratio: 1;
  border-radius: 16px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  overflow: hidden;
}

.lobby-img::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}

.lobby-img h3 {
  font-size: 16px;
  font-weight: 900;
  position: relative;
  z-index: 2;
  letter-spacing: 0.5px;
}

.lobby-timer-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ffb300;
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 8px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Gradients for different games to simulate thumbnails */
.bg-wingo-30s { background: linear-gradient(135deg, #FFD54F, #FF8F00); }
.bg-wingo-1m { background: linear-gradient(135deg, #81C784, #388E3C); }
.bg-wingo-3m { background: linear-gradient(135deg, #4FC3F7, #0288D1); }
.bg-wingo-5m { background: linear-gradient(135deg, #9575CD, #512DA8); }

.bg-5d-30s { background: linear-gradient(135deg, #ba68c8, #7b1fa2); }
.bg-5d-1m { background: linear-gradient(135deg, #4DD0E1, #0097A7); }
.bg-5d-3m { background: linear-gradient(135deg, #4DB6AC, #00796B); }
.bg-5d-5m { background: linear-gradient(135deg, #7986CB, #303F9F); }
.bg-5d-10m { background: linear-gradient(135deg, #F06292, #C2185B); }

.bg-k3-30s { background: linear-gradient(135deg, #ffd54f, #f57c00); }
.bg-k3-1m { background: linear-gradient(135deg, #FF8A65, #E64A19); }
.bg-k3-3m { background: linear-gradient(135deg, #A1887F, #5D4037); }
.bg-k3-5m { background: linear-gradient(135deg, #e57373, #d32f2f); }
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 480px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Premium style sheets matching Photo 1 design */
.modal-header-new {
  padding: 16px;
  text-align: center;
  color: white;
  position: relative;
}

.modal-header-new h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.selected-badge {
  background-color: #ffffff;
  color: #333333;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 0;
  border-radius: 4px;
  width: 90%;
  margin: 0 auto;
  text-align: center;
}

.modal-header-new::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  border-bottom: 12px solid #ffffff;
  border-left: 240px solid transparent;
  border-right: 240px solid transparent;
}

.header-blue {
  background: #5c9df5;
}
.header-black {
  background: #212121;
}
.header-green {
  background: var(--green-btn);
}
.header-red {
  background: var(--red-btn);
}
.header-violet {
  background: var(--violet-btn);
}
.header-orange {
  background: var(--big-btn);
}
.header-small-blue {
  background: var(--small-btn);
}
.header-theme {
  background: var(--primary);
}

/* Diamond Draw Header Gradients */
.header-diamond-1 { background: linear-gradient(135deg, #e53935 0%, #c62828 100%); }
.header-diamond-2 { background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%); }
.header-diamond-3 { background: linear-gradient(135deg, #ec407a 0%, #d81b60 100%); }
.header-diamond-4 { background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%); }
.header-diamond-5 { background: linear-gradient(135deg, #fb8c00 0%, #ef6c00 100%); }
.header-diamond-6 { background: linear-gradient(135deg, #424242 0%, #212121 100%); }
.header-diamond-7 { background: linear-gradient(135deg, #8e24aa 0%, #6a1b9a 100%); }
.header-diamond-8 { background: linear-gradient(135deg, #fdd835 0%, #fbc02d 100%); }
.header-diamond-8 .selected-badge { background-color: #333333; color: #ffffff; }
.header-diamond-8 h3 { color: #333333 !important; }
.header-diamond-9 { background: linear-gradient(135deg, #b71c1c 0%, #880e4f 100%); }
.header-diamond-10 { background: linear-gradient(135deg, #00acc1 0%, #00838f 100%); }

.modal-body-new {
  padding: 18px 16px;
}

.form-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.row-label {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.btn-options-group {
  display: flex;
  gap: 8px;
}

.btn-pill-choice {
  background-color: #f5f6fa;
  color: #666;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  min-width: 42px;
  transition: all 0.2s;
}

.btn-pill-choice.active {
  color: white;
}
.btn-pill-choice.active.header-green {
  background-color: var(--green-btn) !important;
}
.btn-pill-choice.active.header-red {
  background-color: var(--red-btn) !important;
}
.btn-pill-choice.active.header-violet {
  background-color: var(--violet-btn) !important;
}
.btn-pill-choice.active.header-orange {
  background-color: var(--big-btn) !important;
}
.btn-pill-choice.active.header-small-blue {
  background-color: var(--small-btn) !important;
}
.btn-pill-choice.active.header-blue {
  background-color: #5c9df5 !important;
}
.btn-pill-choice.active.header-black {
  background-color: #212121 !important;
}

.quantity-counter-box {
  display: flex;
  align-items: center;
  background-color: #f5f6fa;
  border-radius: 6px;
  overflow: hidden;
}

.cnt-btn {
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cnt-value {
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.multipliers-list-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 6px;
}

.multipliers-list-row .btn-pill-choice {
  flex: 1;
  text-align: center;
  padding: 6px 0;
  min-width: 0;
}

.agree-pre-sale-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agree-txt {
  font-size: 12px;
  color: #888;
}

.red-link {
  color: #f65e5e;
}

/* Custom Checkbox */
.checkbox-container {
  display: block;
  position: relative;
  width: 18px;
  height: 18px;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0; width: 0;
}

.checkmark {
  position: absolute;
  top: 0; left: 0;
  height: 18px; width: 18px;
  background-color: #eee;
  border-radius: 50%;
}

.checkmark.header-green {
  background-color: var(--green-btn);
}
.checkmark.header-red {
  background-color: var(--red-btn);
}
.checkmark.header-violet {
  background-color: var(--violet-btn);
}
.checkmark.header-orange {
  background-color: var(--big-btn);
}
.checkmark.header-small-blue {
  background-color: var(--small-btn);
}
.checkmark.header-theme {
  background-color: var(--primary);
}
.checkmark.header-blue {
  background-color: #5c9df5;
}
.checkmark.header-black {
  background-color: #212121;
}

.btn-pill-choice.active.header-theme {
  background-color: var(--primary) !important;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Modal Footer new design */
.modal-footer-new {
  display: flex;
  width: 100%;
}

.footer-cancel-btn {
  background-color: #f5f6fa;
  color: #666;
  border: none;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 600;
  width: 30%;
}

.footer-submit-btn {
  color: white;
  border: none;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 700;
  width: 70%;
}
.popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out forwards;
}

.loss-overlay-modern {
  background: rgba(0, 0, 0, 0.8);
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.popup-content {
  border-radius: 20px;
  text-align: center;
  width: 90%;
  max-width: 320px;
  position: relative;
  margin-top: 50px; /* Space for medallion */
  padding-bottom: 24px;
}

/* Base popup body styles */
.win-popup-modern {
  background: linear-gradient(180deg, #ff8c5f 0%, #ff5252 100%);
  animation: slideUpPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  box-shadow: 0 10px 30px rgba(255, 82, 82, 0.4);
}

.loss-popup-modern {
  background: linear-gradient(180deg, #e2e8f0 0%, #94a3b8 100%);
  animation: slideUpPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  box-shadow: 0 10px 30px rgba(148, 163, 184, 0.4);
}

@keyframes slideUpPop {
  0% { transform: translateY(40px) scale(0.9); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Medallion area */
.win-medallion-container, .loss-medallion-container {
  position: absolute;
  top: -65px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  justify-content: center;
}

/* Wing ribbons (CSS shapes) */
.wing {
  position: absolute;
  top: 30px;
  width: 50px;
  height: 40px;
  background: linear-gradient(to bottom, #ffeaa7, #fdcb6e);
  z-index: 5;
}
.wing-left {
  left: -80px;
  border-radius: 20px 0 0 20px;
  clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 80%, 20% 50%);
  transform: rotate(-10deg);
}
.wing-right {
  right: -80px;
  border-radius: 0 20px 20px 0;
  clip-path: polygon(0 0, 100% 20%, 80% 50%, 100% 80%, 0 100%);
  transform: rotate(10deg);
}

.gold-medallion, .loss-medallion {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #ffeaa7 40%, #fdcb6e);
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2), inset 0 0 15px rgba(211, 84, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11;
  position: relative;
}

.loss-medallion {
  background: radial-gradient(circle at 30% 30%, #ffffff, #cbd5e1 40%, #94a3b8);
  border-color: #ffffff;
  box-shadow: 0 4px 12px rgba(148, 163, 184, 0.3), inset 0 0 15px rgba(100, 116, 139, 0.6);
}

.rocket-icon, .broken-heart-icon {
  font-size: 40px;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
  animation: float 2s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.win-title-modern {
  margin-top: 50px;
  color: white;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.loss-title-modern {
  margin-top: 50px;
  color: #1e293b;
  font-size: 20px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

/* Lottery Results Row */
.lottery-results-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
}

.lottery-results-label {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
}

.lottery-result-badge {
  background: #2ed573;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

/* Receipt */
.receipt-slot-container {
  padding: 0 20px;
  margin-top: 16px;
  position: relative;
}

.receipt-slot-hole {
  background: rgba(0,0,0,0.3);
  height: 12px;
  border-radius: 6px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
  margin: 0 10px;
  position: relative;
  z-index: 5;
}

.receipt-paper {
  background: #fff;
  border-radius: 0 0 12px 12px;
  margin: -6px 20px 0;
  padding: 20px 10px;
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
  position: relative;
  z-index: 2;
  animation: receiptRoll 0.6s ease-out forwards;
  transform-origin: top;
}

.loss-paper {
  background: #ffffff;
}

@keyframes receiptRoll {
  0% { transform: scaleY(0); }
  100% { transform: scaleY(1); }
}

.receipt-bonus-label {
  color: #ff5252;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.receipt-amount {
  color: #ff4757;
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px 0;
}

.receipt-period {
  color: #a4b0be;
  font-size: 11px;
}

/* Auto close indicator */
.auto-close-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: rgba(255,255,255,0.8);
  font-size: 12px;
}

.auto-close-circle {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Close button outside */
.close-x-btn {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  cursor: pointer;
  transition: all 0.2s;
}

.close-x-btn:hover {
  background: rgba(255,255,255,0.2);
}
.game-page {
  background-color: var(--bg-color);
  padding-bottom: 100px;
}

/* Wingo Mini Balls under Period Number */
.wingo-past-results-mini {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
  justify-content: flex-start;
}

.wingo-past-results-mini .mini-ball {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: white;
  font-size: 13px;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.wingo-past-results-mini .mini-ball:hover {
  transform: scale(1.1);
}


.wingo-past-results-mini .mini-ball.green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.wingo-past-results-mini .mini-ball.red {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.wingo-past-results-mini .mini-ball.violet {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.wingo-past-results-mini .mini-ball.violet-red {
  background: linear-gradient(135deg, #dc2626 50%, #7c3aed 50%);
}

.wingo-past-results-mini .mini-ball.violet-green {
  background: linear-gradient(135deg, #059669 50%, #7c3aed 50%);
}

/* Highly Premium Game Screen Header */
.game-header {
  background: linear-gradient(135deg, #f65e5e 0%, #ff8a80 100%);
  color: white;
  padding: 18px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(246, 94, 94, 0.15);
}

.game-header h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Premium Wallet Balance Card */
.game-balance-card {
  background: linear-gradient(135deg, #ffffff 0%, #fcfcfe 100%);
  margin: 12px auto;
  width: 425px;
  max-width: calc(100% - 24px);
  min-height: 97px;
  height: auto;
  padding: 16px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(238, 240, 245, 0.8);
  display: flex;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

.balance-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.bal-title-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.bal-label {
  font-size: 11px;
  color: #888888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bal-amount-col {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  min-width: 0;
}

.bal-amount-col h3 {
  font-size: 20px;
  font-weight: 800;
  color: #222222;
  letter-spacing: -0.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.refresh-icon {
  color: #f65e5e;
  cursor: pointer;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.refresh-icon:active {
  transform: rotate(180deg);
}

.balance-actions-col {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.bal-action-btn {
  border-radius: 30px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.bal-action-btn:active {
  transform: scale(0.95);
}

.bal-action-btn.withdraw {
  background-color: rgba(246, 94, 94, 0.08);
  color: var(--primary);
  border: 1px solid rgba(246, 94, 94, 0.2);
}

.bal-action-btn.deposit {
  background: linear-gradient(135deg, #00d294 0%, #00b58a 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 181, 138, 0.3);
}

/* Game Marquee */
.game-marquee {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #ffebee;
  color: #c62828;
  padding: 8px 16px;
  font-size: 11px;
  margin-bottom: 8px;
}

.game-marquee marquee {
  flex: 1;
}

.game-marquee .detail-btn {
  background-color: #c62828;
  color: white;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 9px;
}

/* Sub-tabs win go times */
.game-tabs-row {
  display: flex;
  background-color: #ffffff;
  padding: 12px 16px;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}

.game-tab-item {
  flex: 1;
  background-color: #f8f9fc;
  border: 1.5px solid #edf0f5;
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 85px;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-tab-item.active {
  background: linear-gradient(135deg, #f65e5e 0%, #ff8a80 100%);
  border-color: transparent;
  box-shadow: 0 6px 15px rgba(246, 94, 94, 0.25);
}

.game-tab-item.active .tab-label {
  color: white;
}

.tab-icon {
  font-size: 18px;
  margin-bottom: 4px;
}

.tab-label {
  font-size: 11px;
  color: #7d7d7d;
  font-weight: 700;
  white-space: nowrap;
}

/* Countdown Card */
.countdown-container {
  padding: 0 16px;
  margin-top: 16px;
}

.countdown-box-card {
  background: linear-gradient(135deg, #f65e5e 0%, #ff8a80 100%);
  border-radius: 20px;
  padding: 18px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(246, 94, 94, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.countdown-top-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.trx-inline-balls-container {
  width: 100%;
  margin-top: 4px;
}

.guide-label {
  font-size: 11px;
  opacity: 0.85;
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.left-period h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.right-timer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.countdown-digit-boxes {
  display: flex;
  align-items: center;
  gap: 4px;
}

.digit-box {
  background-color: #ffffff;
  color: #f65e5e;
  width: 26px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.digit-colon {
  font-size: 20px;
  font-weight: bold;
  color: white;
}

/* Betting Board */
.betting-board-card {
  margin-top: 12px;
}

.action-row {
  display: flex;
  gap: 12px;
}

.action-color-btn {
  flex: 1;
  border-radius: 30px;
  padding: 12px;
  font-weight: 700;
  font-size: 15px;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.action-color-btn.green {
  background-color: var(--green-btn);
  box-shadow: 0 4px 12px rgba(0, 181, 138, 0.3);
}

.action-color-btn.violet {
  background-color: var(--violet-btn);
  box-shadow: 0 4px 12px rgba(176, 98, 246, 0.3);
}

.action-color-btn.red {
  background-color: var(--red-btn);
  box-shadow: 0 4px 12px rgba(246, 94, 94, 0.3);
}

/* Numbers Selection Grid */
.numbers-grid-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.num-btn-circle {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  color: white;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.num-btn-circle.green { background-color: var(--green-btn); }
.num-btn-circle.red { background-color: var(--red-btn); }

.num-btn-circle.violet-red {
  background: linear-gradient(135deg, var(--red-btn) 50%, var(--violet-btn) 50%);
}

.num-btn-circle.violet-green {
  background: linear-gradient(135deg, var(--green-btn) 50%, var(--violet-btn) 50%);
}

/* Multiplier selector row styling matching theme colors */
.multiplier-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  justify-content: space-between;
  width: 100%;
}

.mult-btn {
  flex: 1;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 8px 0;
  font-size: 11px;
  font-weight: 700;
  color: #7d7d7d;
  text-align: center;
  transition: all 0.2s ease-in-out;
}

.mult-btn.active {
  background: var(--primary-gradient);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 10px rgba(246, 94, 94, 0.25);
}

.mult-btn.random {
  background-color: #ffffff;
  border: 1.5px solid #f65e5e;
  color: #f65e5e;
}

.mult-btn.random:hover {
  background-color: rgba(246, 94, 94, 0.05);
}

/* Size row Big Small */
.size-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.size-btn {
  flex: 1;
  border-radius: 20px;
  padding: 10px;
  font-size: 14px;
  font-weight: 700;
  color: white;
}

.size-btn.big {
  background-color: var(--big-btn);
  box-shadow: 0 4px 10px rgba(255, 167, 38, 0.25);
}

.size-btn.small {
  background-color: var(--small-btn);
  box-shadow: 0 4px 10px rgba(41, 182, 246, 0.25);
}

/* Pending bets status bar */
.active-bets-banner {
  background-color: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  margin: 12px 16px 0 16px;
  padding: 8px 12px;
  text-align: center;
  font-size: 11px;
  color: #2e7d32;
  font-weight: 500;
}

/* History tabs list */
.history-tab-header {
  display: flex;
  margin-top: 16px;
  border-bottom: 1px solid #e0e0e0;
  padding: 0 16px;
}

.h-tab-btn {
  flex: 1;
  background: none;
  border-bottom: 2px solid transparent;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #888;
}

.h-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Tab Panels */
.bottom-tabs-content {
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.history-list-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  font-weight: 600;
  font-size: 11px;
  color: #999;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 8px;
  text-align: center;
}

.history-list-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  font-size: 11px;
  padding: 8px 0;
  border-bottom: 1px solid #f9f9f9;
  text-align: center;
  align-items: center;
}

.period-txt {
  color: #666;
}

.num-val {
  font-weight: 700;
  font-size: 13px;
}

.size-txt {
  font-weight: 600;
}

.color-dots {
  display: flex;
  justify-content: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.bg-green { background-color: var(--green-btn); }
.dot.bg-red { background-color: var(--red-btn); }
.dot.bg-violet { background-color: var(--violet-btn); }

.color-green { color: var(--green-btn); }
.color-red { color: var(--red-btn); }
.color-violet { color: var(--violet-btn); }
.color-big { color: var(--big-btn); }
.color-small { color: var(--small-btn); }

/* Interactive Chart Trend Overlay */
.chart-wrapper-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.chart-header-row {
  display: flex;
  font-weight: bold;
  font-size: 11px;
  color: #999;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 8px;
}

.period-header {
  width: 60px;
  text-align: center;
}

.number-header {
  flex: 1;
  text-align: center;
}

.chart-body-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
}

.trend-lines-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.chart-table-row {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f9f9f9;
}

.chart-period {
  width: 60px;
  text-align: center;
  font-size: 11px;
  color: #666;
}

.chart-number-row {
  flex: 1;
  display: flex;
  justify-content: space-around;
  position: relative;
  z-index: 20;
}

.chart-cell {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-num-circle {
  font-size: 10px;
  font-weight: 500;
  color: #ccc;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-num-circle.active {
  color: white !important;
  font-weight: bold;
}

.chart-num-circle.active.green { background-color: var(--green-btn); }
.chart-num-circle.active.red { background-color: var(--red-btn); }
.chart-num-circle.active.violet { background-color: var(--violet-btn); }

/* My bets */
.no-bets-container {
  padding: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

.my-bets-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.my-bet-card {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 10px;
}

.bet-header-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.status-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
}

.status-badge.pending {
  background-color: #fff9c4;
  color: #f57f17;
}

.bet-body {
  margin-top: 6px;
  font-size: 11px;
  color: #666;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.bet-body span {
  font-weight: bold;
  color: var(--text-dark);
}

/* ==================== K3 Gameplay Board (Matches Image 1) ==================== */
.dice-roller-box {
  background-color: #00b58a;
  margin: 12px 16px;
  padding: 20px 16px;
  border-radius: var(--border-radius);
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 4px solid #00897b;
}

.dice-window-frame {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

/* Stylized Red Dice Cube */
.dice-cube {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #ef5350, #c62828);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25), inset 0 2px 4px rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b71c1c;
}

.pips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 10px;
  width: 100%;
  height: 100%;
  padding: 6px;
  position: relative;
}

.large-pip {
  font-size: 18px !important;
}

.yellow-dot {
  color: #ffeb3b !important;
}

.diagonal-2 {
  display: flex;
  justify-content: space-between;
  width: 100%;
  transform: rotate(45deg);
}

.diagonal-3 {
  display: flex;
  justify-content: space-between;
  width: 100%;
  transform: rotate(45deg);
}

.corners-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.corners-5 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  position: relative;
}

.corners-5 .yellow-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.corners-6 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  width: 100%;
}

/* K3 Tab Bar */
.k3-tabs-bar {
  display: flex;
  background-color: #f5f6fa;
  border-radius: 30px;
  padding: 4px;
  gap: 4px;
}

.k3-tab-item {
  flex: 1;
  background: none;
  border-radius: 20px;
  padding: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #666;
  text-align: center;
}

.k3-tab-item.active {
  background-color: #ba8c5b; /* Gold/Brown background from Image 1 */
  color: white;
  box-shadow: 0 2px 8px rgba(186, 140, 91, 0.3);
}

/* Sum Betting Ball Items with Payout Multipliers */
.k3-round-balls-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 12px;
  padding: 10px 0;
}

.k3-bet-ball-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.k3-predict-ball {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: white;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  border: 1.5px solid rgba(255,255,255,0.8);
}

.k3-predict-ball.green-ball {
  background: radial-gradient(circle at 35% 35%, #81c784 0%, #2e7d32 100%);
}

.k3-predict-ball.red-ball {
  background: radial-gradient(circle at 35% 35%, #e57373 0%, #c62828 100%);
}

.payout-mult-text {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 500;
}

/* K3 Actions Footer Big, Small, Odd, Even Row */
.k3-actions-footer-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.k3-footer-btn {
  border-radius: 8px;
  padding: 6px;
  color: white;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.k3-footer-btn span {
  font-size: 12px;
}

.k3-footer-btn .lbl {
  font-size: 9px;
  opacity: 0.85;
}

.k3-footer-btn.blue { background-color: var(--small-btn); }
.k3-footer-btn.orange { background-color: var(--big-btn); }
.k3-footer-btn.green { background-color: var(--green-btn); }
.k3-footer-btn.red { background-color: var(--red-btn); }

/* K3 History mini-dices outcome style */
.k3-header {
  grid-template-columns: 2fr 1fr 2fr !important;
}

.k3-row {
  grid-template-columns: 2fr 1fr 2fr !important;
}

.k3-sum-highlight {
  font-weight: bold;
  color: #fff;
  background-color: var(--primary);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  margin: 0 auto;
}

.k3-outcome-text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.outcome-meta {
  font-size: 10px;
  color: #666;
  font-weight: 600;
}

.dices-mini-row {
  display: flex;
  gap: 2px;
}

.mini-dice-icon {
  font-size: 15px;
  color: var(--primary);
}


/* ==================== 5D Gameplay Board (Matches Image 2) ==================== */
.fived-summary-indicator {
  margin: 12px 16px 0 16px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fived-summary-indicator .label-txt {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.fived-summary-indicator .indicator-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fived-summary-indicator .ind-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fived-summary-indicator .ind-val {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #f5f5f5;
  color: var(--text-dark);
  font-size: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fived-summary-indicator .ind-lbl {
  font-size: 8px;
  color: var(--text-muted);
  margin-top: 1px;
}

.equal-sign {
  font-weight: bold;
  color: #888;
}

.sum-total-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ba8c5b;
  color: white;
  font-size: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 5D Slot Column Roller Frame */
.fived-roller-box {
  background-color: #00b58a;
  margin: 12px 16px;
  padding: 20px 16px;
  border-radius: var(--border-radius);
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 4px solid #00897b;
}

.fived-window-frame {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  width: 100%;
}

.fived-slot-column {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 12px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  position: relative;
}

.slot-digit-value {
  font-size: 24px;
  font-weight: 800;
  color: #00b58a;
  margin-bottom: 4px;
}

.slot-col-lbl {
  font-size: 9px;
  color: #999;
  font-weight: 700;
}

/* 5D Column selection tabs */
.fived-col-tabs-row {
  display: flex;
  background-color: #f5f6fa;
  border-radius: 30px;
  padding: 4px;
  gap: 4px;
}

.fived-col-tab {
  flex: 1;
  background: none;
  border-radius: 20px;
  padding: 8px 4px;
  font-size: 10px;
  font-weight: 600;
  color: #666;
  text-align: center;
}

.fived-col-tab.active {
  background-color: #ba8c5b;
  color: white;
  box-shadow: 0 2px 8px rgba(186, 140, 91, 0.3);
}

/* 5D Quick bet pills */
.fived-quick-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 8px;
}

.quick-pill-btn {
  background-color: #f5f6fa;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  padding: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #666;
  text-align: center;
}

/* 5D Digit selectors grid */
.fived-digit-number-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.fived-num-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.fived-num-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #00b58a;
  color: #00b58a;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.fived-num-cell:active .fived-num-circle {
  background-color: #00b58a;
  color: white;
}

/* 5D History Layout styles */
.fived-header {
  grid-template-columns: 2fr 3fr 1fr !important;
}

.fived-row {
  grid-template-columns: 2fr 3fr 1fr !important;
}

.digits-display-row {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.digit-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #f5f5f5;
  color: var(--text-dark);
  font-size: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
}

.fived-sum-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #ba8c5b;
  color: white;
  font-size: 10px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* ==================== TRX Wingo Log List ==================== */
.trx-block-text {
  font-size: 11px;
  color: #555;
  font-weight: 500;
}

.trx-hash-text {
  font-family: monospace;
  font-size: 11px;
  color: #666;
}

/* Shaking Dice rolling animation */
.shaking-dice {
  animation: shake 0.4s ease-in-out infinite;
}

@keyframes shake {
  0% { transform: translate(2px, 2px) rotate(0deg); }
  10% { transform: translate(-2px, -3px) rotate(-2deg); }
  20% { transform: translate(-3px, 0px) rotate(2deg); }
  30% { transform: translate(0px, 2px) rotate(0deg); }
  40% { transform: translate(2px, -1px) rotate(2deg); }
  50% { transform: translate(-2px, 2px) rotate(-2deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 2px) rotate(-3deg); }
  80% { transform: translate(-2px, -2px) rotate(2deg); }
  90% { transform: translate(3px, 3px) rotate(0deg); }
  100% { transform: translate(2px, -3px) rotate(-2deg); }
}

/* Spinning slots rolling animation for 5D */
.spinning-slots .fived-slot-column {
  animation: slotSpin 0.1s linear infinite;
}

@keyframes slotSpin {
  0% { transform: translateY(-8px); opacity: 0.7; }
  50% { transform: translateY(8px); opacity: 0.7; }
  100% { transform: translateY(-8px); }
}

/* 3x3 Dice dots grid system */
.dice-dots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 100%;
  height: 100%;
  padding: 6px;
  box-sizing: border-box;
}

.dice-dot-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dice-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
}

.dice-dot.yellow {
  background-color: #ffeb3b;
}

/* History mini dice cubes */
.dices-mini-row {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.mini-dice-outcome-cube {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #ef5350, #c62828);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.5px solid #b71c1c;
}

.mini-dice-outcome-cube .dice-dots-grid {
  padding: 2px;
}

.mini-dice-outcome-cube .dice-dot {
  width: 4px;
  height: 4px;}

/* ==================== TRX WINGO CUSTOM BOARD STYLES ==================== */
.trx-hash-roller-box {
  background: #d4a373; /* Matches the ticket brown card color */
  margin: 12px 16px;
  padding: 16px;
  border-radius: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(212, 163, 115, 0.2);
}

/* Ticket circle cutouts on left and right side (Matches Image 2) */
.trx-hash-roller-box::before, .trx-hash-roller-box::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background-color: var(--bg-color);
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.trx-hash-roller-box::before {
  left: -10px;
}
.trx-hash-roller-box::after {
  right: -10px;
}

.trx-board-top-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.trx-period-pill {
  background-color: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 500;
}

.trx-how-to-play, .trx-public-query-btn {
  background-color: #ffffff;
  color: #ba8c5b;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.trx-draw-time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.trx-draw-period {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
}

.trx-draw-right-timer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trx-draw-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 500;
}

.trx-draw-digit-boxes {
  display: flex;
  align-items: center;
  gap: 3px;
}

.trx-draw-digit {
  background-color: #ffffff;
  color: #ba8c5b;
  width: 20px;
  height: 26px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.trx-draw-colon {
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
}

.trx-divider-dashed {
  border-top: 1px dashed rgba(255, 255, 255, 0.6);
  margin: 0 -16px 16px -16px;
  height: 1px;
}

.trx-slots-frame {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  width: 100%;
}

.trx-slot-ball {
  background: radial-gradient(circle at 50% 30%, #ffffff 0%, #ffebee 40%, #ffcdd2 100%);
  border-radius: 50%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15), inset 0 -2px 5px rgba(0,0,0,0.1);
  font-size: 22px;
  font-weight: 800;
  color: #f5222d;
  border: 3px solid #ff8a80;
  position: relative;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.trx-slot-ball span {
  background: linear-gradient(180deg, #f5222d 0%, #ff4d4f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Red-bordered round balls styling inside lottery select */
.wingo-trx-wrapper .numbers-grid-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 10px;
  margin-top: 16px;
}

/* TRX Aligned History Table columns */
.trx-header-aligned {
  display: grid;
  grid-template-columns: 2.2fr 1.6fr 1.6fr 1.6fr 1.8fr !important;
  font-weight: 600;
  font-size: 10px;
  color: #999;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 8px;
  text-align: center;
  align-items: center;
}

.trx-row-aligned {
  display: grid;
  grid-template-columns: 2.2fr 1.6fr 1.6fr 1.6fr 1.8fr !important;
  font-size: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f9f9f9;
  text-align: center;
  align-items: center;
}

.trx-masked-period {
  color: #666;
  font-weight: 500;
}

.trx-block-id {
  color: #f5222d;
  font-weight: 600;
  background-color: #fff1f0;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 9px;
  display: inline-block;
  white-space: nowrap;
}

.trx-block-time {
  color: #888;
  font-size: 9px;
}

.trx-hash-value {
  font-family: monospace;
  color: #666;
  font-weight: 500;
}

.trx-outcome-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.trx-outcome-result .circle-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: white;
  font-size: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trx-outcome-result .circle-num.bg-green {
  background-color: var(--green-btn);
}

.trx-outcome-result .circle-num.bg-red {
  background-color: var(--red-btn);
}

.trx-outcome-result .circle-num.bg-violet {
  background: linear-gradient(135deg, var(--red-btn) 50%, var(--violet-btn) 50%);
}

.size-letter.blue {
  color: #2196f3;
}

.relative-pos-card {
  position: relative !important;
}

/* Giant Countdown Overlay style matching Photo 2 */
.giant-countdown-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.55);
  border-radius: var(--border-radius);
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  animation: fadeIn 0.15s ease-out;
}

.giant-digit-card {
  background-color: #ffffff;
  color: var(--primary); /* Matches the site primary theme color */
  font-size: 130px;
  font-weight: 800;
  width: 110px;
  height: 180px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15);
}

/* Time Sub-Tabs Switcher Styles */
.time-tabs-container {
  margin: 10px 12px;
}

.time-tabs-row {
  display: flex;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  padding: 6px;
  gap: 6px;
  box-shadow: 0 10px 25px rgba(246, 94, 94, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);
  border: 1.5px solid rgba(246, 94, 94, 0.06);
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.time-tabs-row::before {
  content: "MAST WIN";
  position: absolute;
  font-size: 20px;
  font-weight: 900;
  color: rgba(246, 94, 94, 0.025);
  font-family: 'Outfit', 'Inter', sans-serif;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 4px;
}

.time-tab-btn {
  flex: 1;
  min-width: 0;
  max-width: 88px;
  background: #ffffff;
  border-radius: 12px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1.5px solid #f1f5f9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
  position: relative;
  z-index: 2;
}

.time-tab-btn:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
}

.time-tab-btn.active {
  border-color: transparent;
  background: linear-gradient(135deg, #f65e5e 0%, #ff8a80 100%);
  box-shadow: 0 8px 20px rgba(246, 94, 94, 0.25);
  transform: translateY(-3px);
}

.tab-icon-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  margin-bottom: 6px;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.time-tab-btn.active .tab-icon-circle {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.time-tab-btn .tab-title {
  font-size: 8px;
  font-weight: 750;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.time-tab-btn .tab-subtitle {
  font-size: 11px;
  font-weight: 800;
  color: #1e293b;
  margin-top: 2px;
  transition: color 0.3s ease;
}

.time-tab-btn.active .tab-title {
  color: rgba(255, 255, 255, 0.85);
}

.time-tab-btn.active .tab-subtitle {
  color: white;
}

@media (max-width: 480px) {
  .left-period h3 {
    font-size: 15px !important;
    font-weight: 700;
  }
  .digit-box {
    width: 20px;
    height: 28px;
    font-size: 16px;
    border-radius: 4px;
  }
  .digit-colon {
    font-size: 16px;
  }
  .countdown-digit-boxes {
    gap: 3px;
  }
  .countdown-box-card {
    padding: 12px 14px;
  }
  .wingo-past-results-mini .mini-ball {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
}
.wallet-page {
  background-color: var(--bg-color);
}

/* Header */
.wallet-header {
  background: var(--primary-gradient);
  color: white;
  padding: 16px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.wallet-header h2 {
  font-size: 16px;
  font-weight: 600;
}

/* Balance Box */
.wallet-balance-box {
  background: var(--primary-gradient);
  color: white;
  padding: 30px 16px 40px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  box-shadow: 0 4px 15px rgba(246, 94, 94, 0.15);
}

.wallet-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.balance-title {
  font-size: 12px;
  opacity: 0.9;
}

.balance-amount {
  font-size: 28px;
  font-weight: 700;
  margin-top: 4px;
}

/* Circular Progress Section */
.progress-card {
  margin-top: -24px !important;
  position: relative;
  z-index: 20;
}

.progress-flex {
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
}

.progress-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.progress-circle {
  position: relative;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-circle svg {
  transform: rotate(-90deg);
}

.circle-percent {
  position: absolute;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
}

.circle-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.circle-label strong {
  font-size: 14px;
  color: var(--text-dark);
}

.circle-label span {
  font-size: 10px;
  color: var(--text-muted);
}

.transfer-btn {
  width: 100%;
  background: var(--primary-gradient);
  color: white;
  border-radius: 30px;
  padding: 12px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(246, 94, 94, 0.2);
}

/* Quick Actions Grid */
.wallet-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.wallet-actions-grid .card {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #f0f0f0;
}

.grid-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-icon-box.bg-teal { background-color: rgba(0, 181, 138, 0.1); }
.grid-icon-box.bg-red { background-color: rgba(246, 94, 94, 0.1); }
.grid-icon-box.bg-orange { background-color: rgba(255, 152, 0, 0.1); }
.grid-icon-box.bg-blue { background-color: rgba(33, 150, 243, 0.1); }

.wallet-actions-grid span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
}

/* Lottery Info card */
.lottery-info-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #f0f0f0;
}

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

.lottery-tag {
  background-color: #e3f2fd;
  color: #1e88e5;
  font-size: 10px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.info-text h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.info-text p {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Wallet Sheets Styles */
.wallet-sheet-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.wallet-sheet {
  width: 100%;
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 24px 20px;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 80%;
  overflow-y: auto;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #f1f2f6;
  padding-bottom: 12px;
}

.sheet-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: #2c3e50;
}

.sheet-close-btn {
  background: #f1f2f6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #7f8c8d;
}

.quick-pay-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quick-pay-panel .subtitle {
  font-size: 12px;
  color: #7f8c8d;
  font-weight: 500;
}

.amount-input-wrapper {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 4px 16px;
}

.currency-symbol {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  margin-right: 8px;
}

.sheet-input {
  border: none;
  background: transparent;
  flex: 1;
  padding: 12px 0;
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  outline: none;
}

.quick-amount-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.amount-chip {
  background: #f1f2f6;
  color: #2c3e50;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.amount-chip:hover {
  background: #f65e5e;
  color: white;
}

.sheet-action-btn {
  width: 100%;
  border: none;
  padding: 15px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s ease;
}

.sheet-action-btn.deposit {
  background: linear-gradient(135deg, #00b58a 0%, #00d2a0 100%);
  box-shadow: 0 4px 15px rgba(0, 181, 138, 0.2);
}

.sheet-action-btn.withdraw {
  background: linear-gradient(135deg, #f65e5e 0%, #ff7a68 100%);
  box-shadow: 0 4px 15px rgba(246, 94, 94, 0.2);
}

.limit-row {
  font-size: 13px;
  color: #7f8c8d;
}

.limit-row strong {
  color: #2c3e50;
}

/* History Sheets list */
.history-sheet-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.empty-history {
  padding: 30px;
  text-align: center;
  color: #7f8c8d;
  font-size: 13px;
}

.tx-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #f8f9fa;
  border-radius: 12px;
}

.tx-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tx-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tx-icon.dep {
  background: rgba(0, 181, 138, 0.1);
  color: #00b58a;
}

.tx-icon.wd {
  background: rgba(246, 94, 94, 0.1);
  color: #f65e5e;
}

.tx-info {
  display: flex;
  flex-direction: column;
}

.tx-info strong {
  font-size: 13px;
  color: #2c3e50;
}

.tx-info span {
  font-size: 10px;
  color: #999;
  margin-top: 2px;
}

.tx-amt {
  font-size: 14px;
  font-weight: 700;
}

.tx-amt.positive { color: #00b58a; }
.tx-amt.negative { color: #f65e5e; }

.deposit-page {
  background-color: #f7f9fc;
}

/* Header */
.deposit-header {
  background: white;
  color: #2c3e50;
  padding: 20px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.deposit-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
}

.history-link {
  font-size: 13px;
  cursor: pointer;
  color: #f65e5e;
  font-weight: 600;
}

/* Balance Box */
.deposit-balance-box {
  background: linear-gradient(135deg, #f65e5e 0%, #ff8a7a 100%);
  color: white;
  padding: 28px 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  box-shadow: 0 8px 25px rgba(246, 94, 94, 0.2);
}

.balance-info span {
  font-size: 12px;
  opacity: 0.85;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.balance-info h2 {
  font-size: 28px;
  font-weight: 800;
  margin-top: 4px;
  font-family: 'Poppins', sans-serif;
}

/* Channels Grid */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 8px;
}

.channel-box {
  margin: 0;
  padding: 14px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(0,0,0,0.03);
  background: white;
  border-radius: 16px;
  position: relative;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.channel-box.active {
  border-color: #f65e5e;
  background-color: rgba(246, 94, 94, 0.04);
}

.channel-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: #ffd700;
  color: #7f6000;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(255, 215, 0, 0.4);
}

.channel-icon {
  font-size: 22px;
  margin-bottom: 4px;
}

.channel-name {
  font-size: 11px;
  font-weight: 700;
  color: #2c3e50;
}

/* Sub-channels Selection */
.section-label {
  font-size: 13px;
  font-weight: 700;
  color: #2c3e50;
  padding-left: 8px;
}

.sub-channels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 8px;
}

.sub-channel-card {
  background-color: #ffffff;
  border: 1px solid rgba(0,0,0,0.02);
  border-radius: 16px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  transition: all 0.25s ease;
}

.sub-channel-card.active {
  border-color: #f65e5e;
  background: linear-gradient(135deg, #f65e5e 0%, #ff7a68 100%);
  color: white;
  box-shadow: 0 6px 18px rgba(246, 94, 94, 0.2);
}

.sub-channel-card h4 {
  font-size: 13px;
  font-weight: 700;
}

.sub-channel-card p {
  font-size: 10px;
  opacity: 0.85;
}

.bonus-tag {
  align-self: flex-start;
  background-color: rgba(246, 94, 94, 0.08);
  color: #f65e5e;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.sub-channel-card.active .bonus-tag {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Deposit Amount inputs */
.deposit-amount-section {
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03);
}

.quick-amount-row {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #f1f2f6;
  padding-bottom: 10px;
}

.currency-symbol {
  font-size: 24px;
  font-weight: 800;
  color: #f65e5e;
  margin-right: 8px;
}

.amount-input {
  border: none;
  outline: none;
  font-size: 22px;
  font-weight: 800;
  color: #2c3e50;
  width: 100%;
  background: transparent;
}

.amount-input::placeholder {
  color: #bbb;
  font-size: 15px;
  font-weight: 500;
}

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

.amount-pill-btn {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
  transition: all 0.2s ease;
}

.amount-pill-btn.active {
  background-color: rgba(246, 94, 94, 0.08);
  border-color: #f65e5e;
  color: #f65e5e;
}

.submit-deposit-btn {
  width: 100%;
  border-radius: 30px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  background-color: #e2e8f0;
  color: #a0aec0;
  transition: all 0.3s ease;
}

.submit-deposit-btn.active {
  background: linear-gradient(135deg, #f65e5e 0%, #ff7a68 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(246, 94, 94, 0.25);
}

/* Instruction notice */
.deposit-notice-card {
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.03);
}

.deposit-notice-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 12px;
}

.deposit-notice-card ul {
  padding-left: 16px;
  font-size: 11px;
  color: #7f8c8d;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Checked badge inside Select Channel Cards */
.sub-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checked-badge {
  background: #f65e5e;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid white;
}

.sub-channel-card.active .checked-badge {
  background: white;
}

.sub-channel-card.active .checked-badge svg {
  stroke: #f65e5e;
}

/* Deposit Sheet Modal styles */
.deposit-sheet-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.deposit-sheet {
  width: 100%;
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 24px 20px;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 80%;
  overflow-y: auto;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #f1f2f6;
  padding-bottom: 12px;
}

.sheet-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: #2c3e50;
}

.sheet-close-btn {
  background: #f1f2f6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #7f8c8d;
}

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

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


.withdraw-page {
  background-color: #f7f9fc;
}

/* Header */
.withdraw-header {
  background: white;
  color: #2c3e50;
  padding: 20px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.withdraw-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
}

.history-link {
  font-size: 13px;
  cursor: pointer;
  color: #f65e5e;
  font-weight: 600;
}

/* Balance Box */
.withdraw-balance-box {
  background: linear-gradient(135deg, #f65e5e 0%, #ff8a7a 100%);
  color: white;
  padding: 28px 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  box-shadow: 0 8px 25px rgba(246, 94, 94, 0.2);
}

.balance-info span {
  font-size: 12px;
  opacity: 0.85;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.balance-info h2 {
  font-size: 28px;
  font-weight: 800;
  margin-top: 4px;
  font-family: 'Poppins', sans-serif;
}

/* Methods Section */
.methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 8px;
}

.method-box {
  margin: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0,0,0,0.02);
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  transition: all 0.2s ease;
}

.method-box.active {
  border-color: #f65e5e;
  background-color: rgba(246, 94, 94, 0.04);
}

.method-icon {
  font-size: 24px;
  color: #888;
}

.method-box.active .method-icon {
  color: #f65e5e;
}

.tether-green {
  color: #10b981 !important;
}

.method-name {
  font-size: 12px;
  font-weight: 700;
  color: #2c3e50;
}

/* USDT Warning support link */
.usdt-warning-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #fef3c7;
  border: 1px solid #fde68a;
  padding: 14px 16px;
  border-radius: 16px;
}

.warning-avatar {
  font-size: 20px;
}

.warning-text {
  font-size: 12px;
  font-weight: 600;
  color: #d97706;
  text-decoration: underline;
}

/* Withdraw Form */
.withdraw-form-card {
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.03);
}

.form-title {
  font-size: 13px;
  font-weight: 750;
  color: #2c3e50;
  border-left: 3px solid #f65e5e;
  padding-left: 8px;
}

.input-group {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #f1f2f6;
  padding-bottom: 10px;
}

.input-group.bg-light {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
}

.group-symbol {
  font-size: 22px;
  font-weight: 800;
  color: #f65e5e;
  margin-right: 8px;
  width: 20px;
}

.font-green {
  color: #10b981;
}

.form-input {
  border: none;
  outline: none;
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  width: 100%;
  background: transparent;
}

.form-input::placeholder {
  color: #bbb;
  font-size: 14px;
  font-weight: 500;
}

.text-disabled {
  background-color: transparent;
}

.withdraw-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.withdraw-limit-info {
  font-size: 11px;
  color: #7f8c8d;
  font-weight: 500;
}

.all-btn {
  background: none;
  color: #f65e5e;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #f65e5e;
  border-radius: 12px;
  padding: 2px 12px;
  cursor: pointer;
}

.submit-withdraw-btn {
  width: 100%;
  border-radius: 30px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  background-color: #e2e8f0;
  color: #a0aec0;
  transition: all 0.3s ease;
}

.submit-withdraw-btn.active {
  background: linear-gradient(135deg, #f65e5e 0%, #ff7a68 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(246, 94, 94, 0.25);
}

/* Withdraw instruction rules */
.withdraw-rules-card {
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.03);
}

.withdraw-rules-card ul {
  list-style: none;
  font-size: 11px;
  color: #7f8c8d;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Modal history sheets styling */
.withdraw-sheet-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.withdraw-sheet {
  width: 100%;
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 24px 20px;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 80%;
  overflow-y: auto;
}

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

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

/* Premium Custom Inputs styling */
.upi-input-container, .amount-input-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.input-label {
  font-size: 11px;
  font-weight: 700;
  color: #7f8c8d;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.input-group-premium {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 16px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group-premium:focus-within {
  border-color: #f65e5e;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(246, 94, 94, 0.12);
}

.premium-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  margin-right: 12px;
}

.premium-icon-wrapper.currency {
  font-size: 18px;
  font-weight: 700;
  color: #64748b;
  width: 20px;
}

.input-group-premium:focus-within .premium-icon-wrapper {
  color: #f65e5e;
}

.input-group-premium:focus-within .premium-icon-wrapper.currency {
  color: #f65e5e;
}

.upi-send-icon {
  transform: rotate(-45deg);
}

.form-input-premium {
  border: none;
  outline: none;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  width: 100%;
  background: transparent;
  padding: 0;
}

.form-input-premium.amount {
  font-size: 18px;
  font-weight: 700;
}

.form-input-premium::placeholder {
  color: #94a3b8;
  font-weight: 500;
  font-size: 14px;
}

.form-input-premium.amount::placeholder {
  font-size: 15px;
}

.input-helper-text {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 2px;
}

/* Saved account representation cards */
.saved-account-card {
  background: #fdf4f4;
  border: 1.5px solid #fecdd3;
  border-radius: 16px;
  padding: 16px;
  transition: all 0.2s ease;
}

.saved-account-card.bank {
  background: #f0f7ff;
  border-color: #dbeafe;
}

.account-details-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-icon-badge {
  width: 40px;
  height: 40px;
  background: #ffe4e6;
  border-radius: 50%;
  color: #f65e5e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-icon-badge.bank {
  background: #dbeafe;
  color: #3b82f6;
}

.account-info-text {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.account-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #8898aa;
  font-weight: 700;
}

.account-value {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 2px;
}

.account-helper-info {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
  font-weight: 500;
}

.change-account-btn {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.change-account-btn:hover {
  border-color: #cbd5e1;
  color: #1e293b;
}

/* Placeholder for binding accounts */
.add-account-placeholder {
  border: 2px dashed #cbd5e1;
  background: #fafafa;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
}

.add-account-placeholder:hover {
  background: #f5f5f5;
  border-color: #a8b2c1;
}

.placeholder-content {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.plus-icon {
  color: #94a3b8;
}


.add-upi-page {
  background-color: #f7f9fc;
  min-height: 100vh;
}

.add-upi-header {
  background: white;
  color: #2c3e50;
  padding: 20px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.add-upi-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
}

.card-header-vpa {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
}

.vpa-icon-circle {
  width: 44px;
  height: 44px;
  background: rgba(246, 94, 94, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f65e5e;
}

.send-icon-rotate {
  transform: rotate(-45deg);
}

.vpa-header-text h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.vpa-header-text p {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.save-upi-btn {
  width: 100%;
  border-radius: 30px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, #f65e5e 0%, #ff7a68 100%);
  color: white;
  border: none;
  box-shadow: 0 6px 20px rgba(246, 94, 94, 0.25);
  transition: all 0.3s ease;
}

.save-upi-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(246, 94, 94, 0.3);
}

.info-box-premium {
  display: flex;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
}

.info-icon {
  color: #3b82f6;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-text h4 {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.info-text p {
  font-size: 11px;
  color: #64748b;
  line-height: 1.5;
  margin-top: 2px;
}
.add-bank-page {
  background-color: #f7f9fc;
  min-height: 100vh;
}

.add-bank-header {
  background: white;
  color: #2c3e50;
  padding: 20px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.add-bank-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
}

.card-header-bank {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
}

.bank-icon-circle {
  width: 44px;
  height: 44px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
}

.bank-header-text h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.bank-header-text p {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.save-bank-btn {
  width: 100%;
  border-radius: 30px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  color: white;
  border: none;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
  transition: all 0.3s ease;
}

.save-bank-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}
.gateway-page {
  background-color: #f7f9fc;
  min-height: 100vh;
}

.gateway-header {
  background: white;
  color: #2c3e50;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.gateway-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.security-badge-top {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 181, 138, 0.1);
  color: #00b58a;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.gateway-amount-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.amount-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.amount-value {
  font-size: 26px;
  font-weight: 800;
  color: #1e293b;
  margin-top: 6px;
}

.order-details-grid {
  display: flex;
  width: 100%;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
  gap: 16px;
}

.order-detail-item {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.order-detail-item .lbl {
  font-size: 9px;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
}

.order-detail-item .val {
  font-size: 12px;
  color: #334155;
  font-weight: 700;
  margin-top: 2px;
}

.timer-countdown-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #ef4444;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
}

.gateway-payment-instructions h3, .gateway-utr-form-card h3 {
  font-size: 14px;
  font-weight: 750;
  color: #1e293b;
}

.instruction-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.4;
}

/* Mock QR Code Styling */
.qr-code-wrapper {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.mock-qr-code {
  width: 160px;
  height: 160px;
  background: #fff;
  border: 4px solid #f1f5f9;
  border-radius: 12px;
  position: relative;
  box-sizing: border-box;
}

.qr-square {
  width: 32px;
  height: 32px;
  border: 6px solid #1e293b;
  position: absolute;
  box-sizing: border-box;
}

.qr-square.corner-tl { top: 12px; left: 12px; }
.qr-square.corner-tr { top: 12px; right: 12px; }
.qr-square.corner-bl { bottom: 12px; left: 12px; }

.qr-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #f65e5e;
  color: white;
  font-size: 9px;
  font-weight: 900;
  padding: 3px 6px;
  border-radius: 4px;
  z-index: 5;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.qr-grid-pattern {
  position: absolute;
  top: 50px;
  left: 50px;
  right: 50px;
  bottom: 50px;
  border: 2px dashed #94a3b8;
  opacity: 0.3;
}

.upi-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.upi-divider::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: #e2e8f0;
  z-index: 1;
}

.upi-divider span {
  position: relative;
  z-index: 2;
  background: white;
  padding: 0 12px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
}

.upi-copy-box {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  justify-content: space-between;
}

.upi-id-txt {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
}

.copy-btn {
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 4px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.utr-input-group {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
}

.utr-input-field {
  border: none;
  background: transparent;
  outline: none;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 1.5px;
  width: 100%;
}

.utr-input-field::placeholder {
  color: #94a3b8;
  letter-spacing: 0px;
  font-size: 13px;
  font-weight: 500;
}

.confirm-payment-btn {
  width: 100%;
  border-radius: 30px;
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  background: #e2e8f0;
  color: #94a3b8;
  border: none;
  transition: all 0.3s ease;
}

.confirm-payment-btn.active {
  background: linear-gradient(135deg, #00b58a 0%, #00d2a0 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(0, 181, 138, 0.25);
}

.confirm-payment-btn.loading {
  background: #00b58a;
  color: white;
  opacity: 0.8;
}

.spinner-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

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

.gateway-safety-notes {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #94a3b8;
  font-size: 10px;
  line-height: 1.4;
}
.luckywheel-page {
  background-color: var(--bg-color);
  padding-bottom: 100px;
}

/* Spinner Wheel Container layout styles */
.wheel-spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 280px;
  height: 280px;
  margin: 30px auto;
  flex-shrink: 0;
}

.wheel-pointer-icon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  color: #f65e5e;
  font-size: 28px;
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.spinning-wheel-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 8px solid #ffffff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), inset 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 4s cubic-bezier(0.1, 0.8, 0.1, 1);
  background-color: #222222;
}

.wheel-segment {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  clip-path: polygon(50% 50%, 35% 0, 65% 0);
}

.segment-number {
  color: white;
  font-weight: 800;
  font-size: 20px;
  margin-top: 15px;
  display: inline-block;
  transform-origin: center;
}

/* Minimal Alternating segment colors */
.wheel-segment.even-segment {
  background-color: #ffffff;
}

.wheel-segment.odd-segment {
  background-color: #f1f3f7;
}

.even-segment .segment-number {
  color: #333333;
  text-shadow: none;
}

.odd-segment .segment-number {
  color: #555555;
  text-shadow: none;
}

/* Minimalist numbers betting button */
.num-btn-circle.minimalist-btn {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.num-btn-circle.minimalist-btn:active {
  background-color: #f1f5f9;
}

/* Center hub display pointer result */
.wheel-center-nub {
  position: absolute;
  width: 60px;
  height: 60px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  z-index: 5;
  border: 4px solid #f65e5e;
}

.wheel-center-nub span {
  font-size: 24px;
  font-weight: 800;
  color: #222222;
}

.wheel-betting-instructions {
  text-align: center;
  font-size: 11px;
  color: #888888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* Minimal 3-column History layout styles */
.wheel-history-header {
  display: grid !important;
  grid-template-columns: 1.5fr 1fr 1fr !important;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  color: #7d7d7d;
  border-bottom: 1.5px solid #edf0f5;
  padding-bottom: 10px;
}

.wheel-history-row {
  display: grid !important;
  grid-template-columns: 1.5fr 1fr 1fr !important;
  text-align: center;
  padding: 10px 0;
  border-bottom: 1px solid #f8f9fa;
  align-items: center;
}

.wheel-result-type {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-block;
  width: 54px;
  margin: 0 auto;
}

.wheel-result-type.odd-green {
  background-color: rgba(0, 181, 138, 0.1);
  color: #00b58a;
}

.wheel-result-type.even-red {
  background-color: rgba(246, 94, 94, 0.1);
  color: #f65e5e;
}

.wheel-result-num {
  width: 28px;
  height: 28px;
  background-color: #f1f3f7;
  color: #333333;
  font-size: 13px;
  font-weight: 800;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 1px solid #e2e8f0;
}

/* Sub-tabs timing selectors */
.luckywheel-page .game-tabs-row {
  display: flex;
  background-color: #ffffff;
  padding: 12px 16px;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}

.luckywheel-page .game-tabs-row::-webkit-scrollbar {
  display: none;
}

.luckywheel-page .game-tab-item {
  flex: 1;
  background-color: #f8f9fc;
  border: 1.5px solid #edf0f5;
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 85px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.luckywheel-page .game-tab-item.active {
  background: linear-gradient(135deg, #f65e5e 0%, #ff8a80 100%);
  border-color: transparent;
  box-shadow: 0 6px 15px rgba(246, 94, 94, 0.25);
}

.luckywheel-page .game-tab-item.active .tab-label,
.luckywheel-page .game-tab-item.active .tab-icon {
  color: #ffffff;
}

.luckywheel-page .tab-icon {
  font-size: 18px;
  margin-bottom: 4px;
  color: #7d7d7d;
}

.luckywheel-page .tab-label {
  font-size: 11px;
  color: #7d7d7d;
  font-weight: 700;
  white-space: nowrap;
}

.card-game-page {
  background-color: var(--bg-color);
  padding-bottom: 100px;
}

.card-arena-box {
  position: relative;
  background: radial-gradient(circle at 50% 50%, #fff1f2 0%, #ffe4e6 100%);
  margin: 16px;
  padding: 20px;
  border-radius: var(--border-radius);
  border: 4px solid #ba8c5b; /* Elegant gold border */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), inset 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.arena-watermark-left, .arena-watermark-right {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  font-size: 32px;
  font-weight: 900;
  color: rgba(229, 57, 53, 0.06); /* Highly legible soft red watermark */
  letter-spacing: 3px;
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
  font-family: 'Outfit', sans-serif;
  z-index: 0;
}

.arena-watermark-left {
  left: 6%;
}

.arena-watermark-right {
  right: 12%;
}

.arena-top-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.timer-badge {
  background: rgba(229, 57, 53, 0.1);
  border: 1px solid rgba(229, 57, 53, 0.25);
  color: #d32f2f;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.round-status-badge {
  background: rgba(142, 98, 52, 0.08);
  border: 1px solid rgba(142, 98, 52, 0.25);
  color: #5d4037;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

/* 3D Flipping Card Styling */
.card-visual-container {
  width: 130px;
  height: 180px;
  perspective: 1000px;
  margin: 15px 0;
  position: relative;
  z-index: 5;
}

.playing-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.playing-card-inner.flipped {
  transform: rotateY(180deg);
}

.playing-card-inner.shuffling:not(.flipped) {
  animation: cardShuffleAnimation 0.15s ease-in-out infinite alternate;
}

.playing-card-inner.shuffling.flipped {
  animation: cardShuffleFlippedAnimation 0.15s ease-in-out infinite alternate;
}

@keyframes cardShuffleAnimation {
  0% { transform: translateY(0) scale(0.98); }
  100% { transform: translateY(-5px) scale(1.02); }
}

@keyframes cardShuffleFlippedAnimation {
  0% { transform: rotateY(180deg) translateY(0) scale(0.98); }
  100% { transform: rotateY(180deg) translateY(-5px) scale(1.02); }
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  box-sizing: border-box;
}

/* Front Side */
.card-front {
  background-color: #ffffff;
  color: #222;
  transform: rotateY(180deg);
  border: 1px solid #e0e0e0;
}

.card-front.red {
  color: #e53935;
}

.card-front.black {
  color: #212121;
}

.card-top-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.card-center-suit {
  font-size: 48px;
  align-self: center;
  margin-top: -5px;
}

.card-bottom-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  transform: rotate(180deg);
}

/* Back Side */
.card-back {
  background: linear-gradient(135deg, #ba8c5b 0%, #8e6234 100%);
  border: 4px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-back-pattern {
  width: 85%;
  height: 85%;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-back-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  opacity: 0.95;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* Prediction selectors */
.prediction-options-wrapper {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.size-btn.active {
  background: linear-gradient(135deg, #ba8c5b 0%, #8e6234 100%) !important;
  color: white !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(186, 140, 91, 0.35);
}

.size-btn.red {
  background-color: rgba(229, 57, 53, 0.08);
  border: 1.5px solid rgba(229, 57, 53, 0.3);
  color: #e53935;
}

.size-btn.red.active {
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%) !important;
  color: white !important;
}

.size-btn.black {
  background-color: rgba(33, 33, 33, 0.08);
  border: 1.5px solid rgba(33, 33, 33, 0.3);
  color: #212121;
}

.size-btn.black.active {
  background: linear-gradient(135deg, #424242 0%, #212121 100%) !important;
  color: white !important;
}

/* Specific buttons grid */
.num-btn-circle.active {
  background: linear-gradient(135deg, #ba8c5b 0%, #8e6234 100%) !important;
  color: white !important;
  transform: scale(1.08);
  border-color: transparent !important;
  box-shadow: 0 4px 10px rgba(186, 140, 91, 0.4);
}

.num-btn-circle.black {
  background-color: #f5f6fa;
  color: #212121;
  border: 1px solid #ddd;
}

.num-btn-circle.red {
  background-color: #fdf2f2;
  color: #e53935;
  border: 1px solid #fecaca;
}

/* Big Start Button */
.start-game-big-btn {
  width: 100%;
  background: linear-gradient(135deg, #f65e5e 0%, #ff8a80 100%);
  color: white;
  border-radius: 30px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  border: none;
  box-shadow: 0 5px 15px rgba(246, 94, 94, 0.3);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.start-game-big-btn:disabled {
  background: #cbd5e1;
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}

.start-game-big-btn:active:not(:disabled) {
  transform: scale(0.98);
}

/* Card history adjustments */
.card-history-header {
  grid-template-columns: 1.5fr 1.5fr 1.5fr 1.8fr 1.7fr !important;
  font-size: 10px;
}

.card-history-row {
  grid-template-columns: 1.5fr 1.5fr 1.5fr 1.8fr 1.7fr !important;
  font-size: 10px;
}

.card-game-history-header {
  grid-template-columns: 2fr 1fr 1fr !important;
  font-size: 10px;
}

.card-game-history-row {
  grid-template-columns: 2fr 1fr 1fr !important;
  font-size: 10px;
}

.predict-badge {
  background-color: #f1f5f9;
  color: #475569;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 9px;
  border: 0.5px solid #cbd5e1;
}

.result-badge-text {
  font-weight: 700;
  color: #334155;
}

.status-text-item {
  font-weight: 700;
}

.status-text-item.won {
  color: #00b58a;
}

.status-text-item.lost {
  color: #94a3b8;
}

.color-dots {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot.bg-red {
  background-color: #e53935;
}

.dot.bg-black {
  background-color: #212121;
}
.diamond-game-page {
  background-color: var(--bg-color);
  padding-bottom: 30px;
}

/* Diamond Arena Box */
.diamond-arena-box {
  position: relative;
  background: radial-gradient(circle at 50% 50%, #fff1f2 0%, #ffe4e6 100%);
  margin: 16px;
  padding: 20px;
  border-radius: var(--border-radius);
  border: 4px solid #ba8c5b; /* Elegant gold border */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), inset 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.arena-watermark-left, .arena-watermark-right {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  font-size: 32px;
  font-weight: 900;
  color: rgba(229, 57, 53, 0.06); /* Highly legible soft red watermark */
  letter-spacing: 3px;
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
  font-family: 'Outfit', sans-serif;
  z-index: 0;
}

.arena-watermark-left {
  left: 6%;
}

.arena-watermark-right {
  right: 12%;
}

.arena-top-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  z-index: 10;
}

.timer-badge {
  background: rgba(229, 57, 53, 0.1);
  border: 1px solid rgba(229, 57, 53, 0.25);
  color: #d32f2f;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.round-status-badge {
  background: rgba(142, 98, 52, 0.08);
  border: 1px solid rgba(142, 98, 52, 0.25);
  color: #5d4037;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

/* Diamond Platform & Rendering */
.card-visual-container {
  width: 140px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
}

/* 3D Flipping Card Styling */
.playing-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.playing-card-inner.flipped {
  transform: rotateY(180deg);
}

.playing-card-inner.shuffling:not(.flipped) {
  animation: cardShuffleAnimation 0.15s ease-in-out infinite alternate;
}

.playing-card-inner.shuffling.flipped {
  animation: cardShuffleFlippedAnimation 0.15s ease-in-out infinite alternate;
}

@keyframes cardShuffleAnimation {
  0% { transform: translateY(0) scale(0.98); }
  100% { transform: translateY(-5px) scale(1.02); }
}

@keyframes cardShuffleFlippedAnimation {
  0% { transform: rotateY(180deg) translateY(0) scale(0.98); }
  100% { transform: rotateY(180deg) translateY(-5px) scale(1.02); }
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  box-sizing: border-box;
}

/* Front Side */
.card-front {
  background-color: #ffffff;
  transform: rotateY(180deg);
  border: 1.5px solid #e2e8f0;
}

/* Back Side */
.card-back {
  background: linear-gradient(135deg, #ba8c5b 0%, #8e6234 100%);
  border: 4px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-back-pattern {
  width: 85%;
  height: 85%;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tab and History Table Adjustments */
.game-history-section {
  margin: 16px;
  padding-bottom: 80px; /* Safe distance from bottom nav */
}

.tab-buttons-container {
  display: flex;
  background-color: #f1f3f7;
  border-radius: 25px;
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
}

.tab-link {
  flex: 1;
  background: none;
  border: none;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.tab-link.active {
  background-color: #ffffff;
  color: #ba8c5b; /* Match gold-brown theme */
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.wingo-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.wingo-history-table th {
  font-weight: 700;
  color: #888;
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid #f1f3f7;
}

.wingo-history-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid #f8f9fa;
  color: #333;
  font-weight: 600;
}

/* Left align first column, right align last for balance */
.wingo-history-table th:first-child,
.wingo-history-table td:first-child {
  text-align: left;
  padding-left: 14px;
}

.wingo-history-table th:last-child,
.wingo-history-table td:last-child {
  text-align: right;
  padding-right: 14px;
}

.period-cell-text {
  font-family: monospace;
  color: #64748b;
  font-size: 11px;
}

.size-badge-span {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
}

.size-badge-span.low {
  background-color: rgba(255, 152, 0, 0.15);
  color: #ff9800;
}

.size-badge-span.high {
  background-color: rgba(33, 150, 243, 0.15);
  color: #2196f3;
}

/* Wingo Style Pagination styling */
.wingo-pagination-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  width: 100%;
}

.wingo-pagination-row .pag-btn {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  color: #ba8c5b; /* Gold/Brown accent */
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  cursor: pointer;
}

.wingo-pagination-row .pag-btn:disabled {
  background-color: #f1f3f7;
  color: #cbd5e1;
  border-color: #e2e8f0;
  box-shadow: none;
  cursor: not-allowed;
}

.wingo-pagination-row .pag-btn:not(:disabled):active {
  transform: scale(0.9);
}

.wingo-pagination-row .pag-indicator {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

.diamond-name-cell-text {
  font-size: 11px;
}

@media (max-width: 480px) {
  .game-history-section {
    margin: 16px;
  }
  .wingo-history-table {
    font-size: 13.5px;
  }
  .wingo-history-table th {
    padding: 12px 6px;
    font-size: 12.5px;
  }
  .wingo-history-table td {
    padding: 12px 6px;
  }
  .period-cell-text {
    font-size: 12.5px;
  }
  .size-badge-span {
    font-size: 11.5px;
    padding: 3px 10px;
  }
  .diamond-name-cell-text {
    font-size: 12.5px;
  }
}

.support-page {
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  height: 100vh;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.support-header {
  background: var(--primary-gradient);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.support-header h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
}

.support-header .back-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.support-header .back-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}

.support-menu-content {
  overflow-y: auto;
  flex: 1;
  padding-bottom: 90px;
}

.support-hero {
  background: #fff;
  padding: 28px 16px 20px 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid #e2e8f0;
}

.support-icon-frame {
  background: linear-gradient(135deg, rgba(246, 94, 94, 0.1) 0%, rgba(217, 56, 56, 0.02) 100%);
  border: 1px solid rgba(246, 94, 94, 0.15);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  box-shadow: 0 6px 20px rgba(246, 94, 94, 0.06);
}

.support-hero-icon {
  color: var(--primary);
}

.support-hero h3 {
  margin: 0 0 6px 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--text-dark);
}

.support-hero p {
  margin: 0 0 16px 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 290px;
  margin-left: auto;
  margin-right: auto;
}

.search-bar-container {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 12px 20px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 30px;
  font-size: 13px;
  color: var(--text-dark);
  outline: none;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 4px 15px rgba(246, 94, 94, 0.08);
}

.topics-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 5;
  position: relative;
  padding: 0 16px;
}

.topic-card {
  background: var(--card-bg);
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
}

.topic-card:hover {
  border-color: rgba(246, 94, 94, 0.2);
  box-shadow: 0 4px 20px rgba(246, 94, 94, 0.05);
}

.topic-card:active {
  transform: scale(0.98);
}

.topic-icon-wrapper {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.topic-text-details {
  text-align: left;
}

.topic-text-details h4 {
  margin: 0 0 3px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.topic-text-details p {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 240px;
}

/* Dispute Form styling */
.support-form-content {
  overflow-y: auto;
  flex: 1;
  padding-bottom: 90px;
}

.premium-dispute-form {
  background: var(--card-bg);
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0,0,0,0.03);
}

.form-header-title {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
}

.form-header-desc {
  margin: 0 0 20px 0;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-field-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-text-input {
  width: 100%;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: var(--text-dark);
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.form-text-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 2px 8px rgba(246, 94, 94, 0.05);
}

.form-textarea-input {
  width: 100%;
  min-height: 70px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: var(--text-dark);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  resize: vertical;
  transition: all 0.2s ease;
}

.form-textarea-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 2px 8px rgba(246, 94, 94, 0.05);
}

/* Image Upload Zone */
.screenshot-upload-container {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
}

.screenshot-upload-container:hover {
  border-color: var(--primary);
  background: rgba(246, 94, 94, 0.02);
}

.upload-placeholder-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.upload-cloud-icon {
  color: #94a3b8;
  margin-bottom: 4px;
}

.upload-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dark);
}

.upload-subtitle {
  font-size: 10px;
  color: var(--text-muted);
}

/* Image Preview inside Upload zone */
.preview-image-wrapper {
  position: relative;
  width: 100%;
  max-height: 150px;
  overflow: hidden;
  border-radius: 6px;
}

.receipt-preview-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 150px;
}

.remove-preview-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

/* Submit dispute button */
.dispute-submit-btn {
  width: 100%;
  background: var(--primary-gradient);
  border: none;
  border-radius: 8px;
  padding: 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(246, 94, 94, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.dispute-submit-btn:active {
  transform: translateY(1px);
}

.spinner-icon {
  animation: rotate 1s linear infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

/* Success Card details */
.dispute-success-card {
  background: var(--card-bg);
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.success-check-icon-circle {
  width: 54px;
  height: 54px;
  background: var(--green-btn);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 6px 15px rgba(0, 181, 138, 0.2);
  animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp {
  0% { transform: scale(0.5); }
  100% { transform: scale(1); }
}

.dispute-success-card h3 {
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
}

.success-ticket-id {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.receipt-confirmation-details {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 12px;
  border-bottom: 1px dashed #e2e8f0;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row span {
  color: #64748b;
}

.detail-row strong {
  color: var(--text-dark);
}

.success-helper-note {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.close-success-btn {
  width: 100%;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.close-success-btn:hover {
  background: #e2e8f0;
}

/* Chat view styling matched to theme */
.support-chat-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: calc(100vh - 120px);
}

.active-topic-info-bar {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: left;
}

.chat-messages-scroll-area {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 4px;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.chat-message-bubble {
  max-width: 80%;
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.4;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.agent-bubble {
  align-self: flex-start;
  background: #fff;
  color: var(--text-dark);
  border: 1px solid #e2e8f0;
  border-radius: 16px 16px 16px 2px;
  text-align: left;
}

.user-bubble {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-radius: 16px 16px 2px 16px;
  text-align: left;
}

.quick-faq-buttons-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  overflow-x: auto;
  padding-bottom: 4px;
}

.faq-pill-btn {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  color: #475569;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s;
}

.faq-pill-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.chat-input-bar-row {
  display: flex;
  gap: 8px;
  align-items: center;
  box-sizing: border-box;
}

.chat-text-input {
  flex: 1;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 30px;
  font-size: 13px;
  color: var(--text-dark);
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

.chat-text-input:focus {
  border-color: var(--primary);
}

.chat-send-btn {
  background: var(--primary-gradient);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(246, 94, 94, 0.15);
}
.auth-page {
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  height: 100vh;
  box-sizing: border-box;
  overflow-y: auto;
  position: relative;
}

/* Background glows */
.auth-bg-glow-1 {
  position: absolute;
  top: -10%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(246, 94, 94, 0.08) 0%, rgba(246, 94, 94, 0) 70%);
  z-index: 1;
  pointer-events: none;
}

.auth-bg-glow-2 {
  position: absolute;
  bottom: 10%;
  right: -20%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 148, 133, 0.06) 0%, rgba(255, 148, 133, 0) 70%);
  z-index: 1;
  pointer-events: none;
}

/* Header styling */
.auth-header {
  background: var(--primary-gradient);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.auth-header h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
}

.auth-header .back-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-header .back-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.auth-content {
  flex: 1;
  z-index: 5;
  padding-bottom: 40px;
}

/* Brand area logo styles */
.auth-brand-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}

.auth-logo-circle {
  background: linear-gradient(135deg, #ba8c5b 0%, #8e6234 100%);
  border: 3px solid #ffffff;
  border-radius: 50%;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(142, 98, 52, 0.2);
  margin-bottom: 12px;
}

.auth-brand-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #1e293b;
  margin: 0 0 4px 0;
  font-family: 'Outfit', 'Inter', sans-serif;
  text-transform: uppercase;
}

.auth-brand-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}

/* Form container card styling */
.auth-form-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

/* Tab selectors styling */
.auth-tab-row {
  display: flex;
  background: #f1f5f9;
  border-radius: 30px;
  padding: 4px;
}

.auth-tab-btn {
  flex: 1;
  border-radius: 26px;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.auth-tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Form fields styling */
.auth-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.auth-field-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-prefix {
  position: absolute;
  left: 38px;
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
}

.auth-text-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: var(--text-dark);
  font-size: 13.5px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.auth-input-wrapper .auth-text-input {
  padding-left: 42px;
}

.auth-text-input-password {
  padding-left: 42px !important;
  padding-right: 42px !important;
}

/* Adjustment for mobile number with prefix */
.auth-input-prefix + .auth-text-input {
  padding-left: 72px !important;
}

.auth-text-input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(246, 94, 94, 0.06);
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  pointer-events: none;
}

.password-toggle-btn {
  position: absolute;
  right: 14px;
  background: transparent;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  cursor: pointer;
}

.password-toggle-btn:hover {
  color: var(--primary);
}

.forgot-password-row .forgot-link {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

.auth-submit-btn {
  width: 100%;
  background: var(--primary-gradient);
  border: none;
  border-radius: 30px;
  padding: 14px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(246, 94, 94, 0.25);
  margin-top: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-submit-btn:hover {
  opacity: 0.95;
}

.auth-submit-btn:active {
  transform: scale(0.97);
}

/* Checkbox and Privacy Policy Container */
.privacy-agreement-row {
  display: flex;
  align-items: flex-start;
  text-align: left;
}

.checkbox-container {
  display: block;
  position: relative;
  padding-left: 24px;
  cursor: pointer;
  font-size: 12px;
  color: #64748b;
  user-select: none;
  line-height: 1.4;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 1px;
  left: 0;
  height: 16px;
  width: 16px;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
  background-color: #e2e8f0;
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--primary);
  border-color: var(--primary);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: stroke white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  border-style: solid;
}

.agreement-text .agreement-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

/* Disclaimer text styles */
.auth-disclaimer {
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.px-20 {
  padding-left: 20px;
  padding-right: 20px;
}

.mb-24 {
  margin-bottom: 24px;
}
* {
  box-sizing: border-box;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  background-color: #f8fafc;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
}

/* Sidebar */
.admin-sidebar {
  width: 260px;
  background-color: #ffffff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 10;
}

.admin-brand {
  display: flex;
  align-items: center;
  padding: 24px;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.admin-brand-icon {
  width: 32px;
  height: 32px;
  background: #10b981;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.admin-nav {
  flex: 1;
  padding: 0 16px;
  overflow-y: auto;
}

.admin-nav-group {
  margin-bottom: 24px;
}

.admin-nav-group-title {
  font-size: 11px;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding-left: 12px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 4px;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.admin-nav-item:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.admin-nav-item.active {
  background-color: #ecfdf5;
  color: #10b981;
  font-weight: 600;
}

.admin-sidebar-footer {
  padding: 16px;
  border-top: 1px solid #e2e8f0;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  margin-bottom: 12px;
}

.admin-profile-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #cbd5e1;
  object-fit: cover;
}

.admin-profile-info {
  display: flex;
  flex-direction: column;
}

.admin-profile-name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.admin-profile-role {
  font-size: 12px;
  color: #94a3b8;
}

.admin-logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  transition: color 0.2s;
}

.admin-logout-btn:hover {
  color: #ef4444;
}


/* Main Content */
.admin-main {
  flex: 1;
  margin-left: 260px;
  padding: 32px 40px;
  max-width: calc(100vw - 260px);
}

.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.admin-page-title {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

/* Metric Cards */
.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.admin-metric-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.admin-metric-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}

.admin-metric-value-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.admin-metric-value {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.admin-metric-trend {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.admin-metric-trend.up {
  color: #10b981;
}

.admin-metric-trend.down {
  color: #ef4444;
}

/* Charts Area */
.admin-charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.admin-chart-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.admin-chart-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
}

.admin-country-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-country-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #475569;
  font-weight: 500;
}

.admin-country-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 12px;
  display: inline-block;
}

/* Forms & Inputs */
.admin-form-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  margin-bottom: 24px;
}

.admin-input-group {
  margin-bottom: 20px;
}

.admin-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
}

.admin-input-group select,
.admin-input-group input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s;
}

.admin-input-group select:focus,
.admin-input-group input:focus {
  border-color: #10b981;
}

.admin-action-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.admin-action-btn:hover {
  background: #059669;
}

.admin-list-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  color: #475569;
}

.admin-list-row:last-child {
  border-bottom: none;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background-color: #ffffff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  z-index: 200;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-sizing: border-box;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  flex: 1;
  font-size: 10px;
  font-weight: 600;
  gap: 2px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  height: 100%;
}

.nav-item svg {
  transition: transform 0.2s ease;
}

.nav-item:active svg {
  transform: scale(0.85);
}

.nav-item.active {
  color: var(--primary);
  transform: translateY(-1px);
}

.nav-item.active svg {
  color: var(--primary);
  filter: drop-shadow(0 2px 6px rgba(246, 94, 94, 0.25));
}

.center-btn-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 100%;
}

.center-btn {
  position: absolute;
  top: -24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 110;
}

.center-btn-inner {
  width: 54px;
  height: 54px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 16px rgba(246, 94, 94, 0.35);
  border: 4.5px solid #ffffff;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.center-btn:active .center-btn-inner {
  transform: scale(0.9) translateY(2px);
  box-shadow: 0 3px 8px rgba(246, 94, 94, 0.25);
}

.center-btn.active .center-btn-inner {
  box-shadow: 0 0 24px rgba(246, 94, 94, 0.6);
  transform: translateY(-4px);
}
