/* Mobile First Layout - DiuWin.art Exact Styling Match */
:root {
  --primary-green: #20B96B;
  --primary-green-dark: #1a9e5b;
  --primary-green-light: #36C66B;
  --bg-page: #e8ecef;
  --bg-app: #F5F5F3;
  --bg-card: #ffffff;
  --text-dark: #0B1833;
  --text-muted: #7C8290;
  --border-light: #eef2f5;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-green: 0 4px 15px rgba(32, 185, 107, 0.4);
}

html, body {
  height: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-dark);
}

body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  -webkit-tap-highlight-color: transparent;
}

#app {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg-app);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
  padding-bottom: 85px;
}

/* Header Section */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.raja-logo-container {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.diuwin-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.balance-stack-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  cursor: pointer;
  background: rgba(32, 185, 107, 0.08);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(32, 185, 107, 0.2);
}

.balance-stack-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.1;
}

.balance-stack-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-green);
  line-height: 1.1;
}

.header-btn-login {
  background: var(--primary-green);
  border: none;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 18px;
  font-weight: 700;
  font-size: 12.5px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(32, 185, 107, 0.3);
  cursor: pointer;
}

.header-btn-register {
  background: transparent;
  border: 1.5px solid var(--primary-green);
  color: var(--primary-green);
  padding: 5px 14px;
  border-radius: 18px;
  font-weight: 700;
  font-size: 12.5px;
  text-decoration: none;
  cursor: pointer;
}

/* Banner Carousel */
.banner-section {
  padding: 10px 14px 2px 14px;
}

.banner-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.banner-slide {
  display: none;
  width: 100%;
}

.banner-slide.active {
  display: block;
  animation: bannerFadeIn 0.35s ease-out;
}

.banner-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 16px;
}

@keyframes bannerFadeIn {
  from { opacity: 0.85; }
  to { opacity: 1; }
}

.banner-dots-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 8px 0 10px 0;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c5cbda;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary-green);
  width: 18px;
  border-radius: 4px;
}

/* Broadcast Announcement Bar */
.welcome-text {
  display: flex;
  align-items: center;
  background: #ffffff;
  margin: 0 14px 14px 14px;
  padding: 6px 10px 6px 12px;
  border-radius: 25px;
  border: 1px solid var(--border-light);
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.speaker-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.welcome-text p {
  flex: 1;
  margin: 0;
  font-size: 11.5px;
  color: var(--text-dark);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.detail-btn {
  background: var(--primary-green);
  border: none;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(32, 185, 107, 0.3);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  cursor: pointer;
}

/* 3D Category Bar */
.category-nav-bar {
  display: flex;
  gap: 16px;
  padding: 4px 14px 16px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.category-tab-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 700;
  position: relative;
}

.category-icon-3d {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
  transition: transform 0.2s ease;
}

.category-tab-item:active .category-icon-3d {
  transform: scale(0.92);
}

.category-tab-item.active {
  color: var(--primary-green);
  font-weight: 800;
}

.category-tab-item.active::after {
  content: '';
  width: 24px;
  height: 3px;
  background: var(--primary-green);
  border-radius: 2px;
  position: absolute;
  bottom: -6px;
}

/* Recommended Games Section */
.section-container {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  padding: 0 14px;
}

.section-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.section-title-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-green-bar {
  width: 4px;
  height: 16px;
  background: var(--primary-green);
  border-radius: 2px;
}

.section-title-text {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
}

.section-subtitle-text {
  font-size: 11px;
  color: var(--text-muted);
  margin: 2px 0 0 10px;
  font-weight: 500;
}

/* 3-Column Games Grid */
.games-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.game-card-3col {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border: 1px solid #ebeef5;
  position: relative;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.game-card-3col:active {
  transform: scale(0.97);
}

.game-thumb-box {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  background: #111;
}

.game-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jili-tag {
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 9px;
  font-weight: 900;
  color: #FFD700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  z-index: 2;
}

.rtp-strip-bottom {
  background: var(--primary-green);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
  font-size: 9.5px;
}

.rtp-strip-label {
  font-weight: 600;
  opacity: 0.9;
}

.rtp-strip-val {
  font-weight: 800;
}

/* Floating Add to Desktop Pill */
.add-to-desktop-floating-pill {
  position: fixed;
  bottom: 82px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-green);
  color: #ffffff;
  padding: 8px 22px;
  border-radius: 25px;
  box-shadow: 0 4px 16px rgba(32, 185, 107, 0.45);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9998;
  cursor: pointer;
  transition: transform 0.2s ease;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.add-to-desktop-floating-pill:hover {
  transform: translateX(-50%) translateY(-2px);
}

.add-to-desktop-floating-pill img {
  height: 18px;
  width: auto;
  object-fit: contain;
}

/* Floating Side Action Buttons */
.floating-side-actions {
  position: fixed;
  right: calc(50% - 240px + 8px);
  top: 40%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

@media (max-width: 480px) {
  .floating-side-actions {
    right: 8px;
  }
}

.side-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease;
  border: 1.5px solid #eef2f5;
  cursor: pointer;
}

.side-action-btn:active {
  transform: scale(0.9);
}

.side-action-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Winning Information Live Feed */
.live-activity-section {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 0 16px 16px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

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

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

.activity-header-left i {
  color: #FFB800;
  font-size: 16px;
}

.activity-header-title {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.activity-live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary-green);
  background: rgba(32, 185, 107, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
}

.activity-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary-green);
  animation: pulseLiveDot 1.5s infinite;
}

@keyframes pulseLiveDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #edf2f7;
  transition: transform 0.2s ease;
}

.activity-item.new-win-slide {
  animation: slideInWinner 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInWinner {
  from { opacity: 0.7; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.activity-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.activity-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.activity-username {
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.activity-game-badge {
  display: inline-block;
  background: rgba(32, 185, 107, 0.12);
  color: #1a9e5b;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  margin-top: 2px;
}

.activity-win {
  text-align: right;
}

.activity-amount {
  color: var(--primary-green);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
}

.activity-status {
  color: #8c93a0;
  font-size: 10px;
  font-weight: 500;
  margin-top: 1px;
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 480px !important;
  background: #ffffff !important;
  border-top: 1px solid #ebeef5 !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06) !important;
  z-index: 10000 !important;
  box-sizing: border-box !important;
}

.nav-container {
  display: flex !important;
  justify-content: space-around !important;
  align-items: center !important;
  padding: 6px 0 4px 0 !important;
  margin: 0 !important;
  width: 100% !important;
  position: relative !important;
}

.nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  color: var(--text-muted) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  gap: 3px !important;
  transition: all 0.25s ease !important;
  flex: 1 !important;
  text-align: center !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
}

.nav-item i {
  font-size: 19px !important;
  transition: all 0.25s ease !important;
  color: var(--text-muted) !important;
}

.nav-item span {
  font-size: 11px !important;
  font-family: 'Outfit', sans-serif !important;
  color: var(--text-muted) !important;
  transition: color 0.25s ease !important;
}

.nav-item.active,
.nav-item.active i,
.nav-item.active span {
  color: var(--primary-green) !important;
  font-weight: 700 !important;
}

.nav-item:hover,
.nav-item:hover i,
.nav-item:hover span {
  color: var(--primary-green) !important;
}

/* Center Elevated Action Button */
.nav-center-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  flex: 1 !important;
  margin-top: -24px !important;
  z-index: 10001 !important;
  cursor: pointer;
}

.nav-center-circle {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #20B96B 0%, #36C66B 100%) !important;
  box-shadow: 0 4px 15px rgba(32, 185, 107, 0.4) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  border: 3px solid #ffffff !important;
  transition: transform 0.25s ease !important;
  position: relative !important;
}

.nav-center-circle:hover {
  transform: scale(1.08) !important;
}

.nav-center-circle span.go-text {
  font-size: 11px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  line-height: 1 !important;
  letter-spacing: 0.5px !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

.nav-center-circle i {
  font-size: 14px !important;
  color: #ffffff !important;
}

.nav-center-item span.label {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: var(--primary-green) !important;
  margin-top: 2px !important;
  font-family: 'Outfit', sans-serif !important;
}

/* ==================== MODALS ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  place-items: center;
  z-index: 20000;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-backdrop.show {
  display: grid;
  opacity: 1;
}

.modal-sheet {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
  color: var(--text-dark);
}

.modal-backdrop.show .modal-sheet {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: #f1f4f8;
  border: none;
  border-radius: 50%;
  color: #555;
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.btn {
  border: none;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--primary-green);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(32, 185, 107, 0.3);
}

.btn-block {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  border-radius: 12px;
}

.btn-guest-action {
  background: #f1f4f8;
  color: var(--text-dark);
  border: 1px solid #dbe2ea;
}

/* Auth Modal Tabs */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f1f4f8;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 18px;
}

.auth-tab {
  background: none;
  border: none;
  padding: 10px;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
}

.auth-tab.active {
  background: #ffffff;
  color: var(--primary-green);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.input-wrap {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.input-prefix {
  padding: 0 12px;
  color: var(--primary-green);
  font-weight: 700;
  font-size: 14px;
  border-right: 1px solid #e2e8f0;
}

input[type="tel"],
input[type="password"],
input[type="text"],
input[type="number"] {
  width: 100%;
  padding: 11px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: var(--text-dark);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.input-wrap input {
  background: none;
  border: none;
}

.form-divider {
  text-align: center;
  position: relative;
  margin: 16px 0;
}

.form-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e2e8f0;
}

.form-divider span {
  position: relative;
  background: #ffffff;
  padding: 0 10px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Game Arena Sheet */
.game-arena-sheet {
  background: #18102a;
  color: #ffffff;
}

.game-arena-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.arena-game-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.arena-game-icon {
  font-size: 30px;
}

.arena-game-info h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0;
}

.arena-game-rtp {
  font-size: 11px;
  color: #34d399;
  font-weight: 600;
}

.arena-user-balance {
  text-align: right;
}

.arena-user-balance small {
  font-size: 10px;
  color: #a0aec0;
  display: block;
}

.arena-user-balance strong {
  font-size: 16px;
  color: #fbbf24;
}

.game-stage {
  min-height: 220px;
  background: radial-gradient(circle at center, #271447 0%, #120924 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

/* Wheel */
.wheel-container {
  width: 200px;
  height: 200px;
  position: relative;
  display: grid;
  place-items: center;
}

.wheel-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(121, 40, 202, 0.5);
  transition: transform 3.5s cubic-bezier(0.1, 1, 0.15, 1);
}

.wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 22px solid #fbbf24;
  z-index: 10;
}

.wheel-center-hub {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border: 3px solid #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 12px;
  color: #2b1400;
  z-index: 8;
}

/* Slots */
.slot-machine-box {
  background: #0b0416;
  border: 3px solid #fbbf24;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 10px;
}

.slot-reel {
  width: 65px;
  height: 85px;
  background: #fff;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 38px;
  overflow: hidden;
}

.slot-reel.spinning {
  animation: reelSpin 0.15s infinite linear;
}

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

/* Rocket */
.crash-container {
  width: 100%;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.crash-multiplier {
  font-size: 46px;
  font-weight: 900;
  color: #fff;
}

.crash-rocket-icon {
  font-size: 46px;
  margin-top: 8px;
}

.crash-rocket-icon.flying {
  animation: rocketFloat 0.8s infinite alternate ease-in-out;
}

@keyframes rocketFloat {
  from { transform: translateY(0) rotate(5deg); }
  to { transform: translateY(-14px) rotate(15deg); }
}

/* Lottery */
.lottery-grid-options {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.lot-btn {
  padding: 10px;
  border-radius: 8px;
  border: 2px solid transparent;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
}

.lot-btn.green { background: #10b981; }
.lot-btn.violet { background: #8b5cf6; }
.lot-btn.red { background: #ef4444; }

.lot-btn.active {
  border-color: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  transform: scale(1.04);
}

.bet-presets-label {
  font-size: 12px;
  color: #a0aec0;
  margin-top: 14px;
  margin-bottom: 6px;
}

.bet-chip-group {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
}

.chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.chip.active {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #2b1400;
  border-color: transparent;
}

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

.custom-bet-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0 8px;
}

.curr-sign {
  color: #fbbf24;
  font-weight: 800;
}

.custom-bet-box input {
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  width: 100%;
  padding: 8px 4px;
}

.btn-spin-action {
  background: var(--primary-green);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.5px;
  border-radius: 10px;
}

.arena-result-banner {
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
}

.arena-result-banner.win {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #34d399;
}

.arena-result-banner.lose {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #f87171;
}

/* Wallet Modal */
.wallet-modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

.wallet-card-highlight {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.card-label {
  font-size: 11px;
  opacity: 0.9;
}

.card-balance {
  font-size: 28px;
  font-weight: 900;
  margin: 4px 0 8px;
}

.card-tags {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}

.chip-vip {
  background: #fbbf24;
  color: #2b1400;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
}

.wallet-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f1f4f8;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 16px;
}

.w-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 700;
  padding: 9px;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
}

.w-tab.active {
  background: #ffffff;
  color: var(--primary-green);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.recharge-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.r-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: var(--text-dark);
  padding: 10px 4px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.r-chip span {
  font-size: 9px;
  color: var(--primary-green);
  font-weight: 700;
}

.r-chip.active {
  border-color: var(--primary-green);
  background: rgba(32, 185, 107, 0.1);
  color: var(--primary-green);
}

.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.pay-method {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
}

.pay-method.active {
  border-color: var(--primary-green);
  background: rgba(32, 185, 107, 0.08);
}

.pay-icon {
  font-size: 20px;
  display: block;
}

.pay-method b {
  font-size: 12px;
  display: block;
}

.pay-method small {
  font-size: 10px;
  color: var(--primary-green);
}

.tx-filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.tx-filter-bar::-webkit-scrollbar {
  display: none;
}
.tx-filter-btn {
  flex: 1;
  white-space: nowrap;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
}
.tx-filter-btn:hover {
  background: #f1f5f9;
}
.tx-filter-btn.active {
  background: #ecfdf5;
  border-color: #059669;
  color: #065f46;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.15);
}
.history-section-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  margin-top: 14px;
}
.history-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 6px;
}
.history-box-title {
  font-size: 12px;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}
.history-box-link {
  background: none;
  border: none;
  color: #059669;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.tx-list {
  max-height: 240px;
  overflow-y: auto;
}

.tx-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f4f8;
}

.tx-item b {
  font-size: 13px;
  display: block;
}

.tx-item small {
  font-size: 11px;
  color: var(--text-muted);
}

.tx-amount.pos { color: var(--primary-green); font-weight: 800; }
.tx-amount.neg { color: #ef4444; font-weight: 800; }

/* Toast */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-60px);
  background: #1e1533;
  color: #fff;
  border: 1px solid var(--primary-green);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  z-index: 30000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==================== MULTI-PAGE SPA VIEWS ==================== */
.app-page-view {
  display: none;
  animation: fadeInView 0.25s ease;
}

.app-page-view.active {
  display: block;
}

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

/* Page Section Container */
.page-view-container {
  padding: 12px 14px 20px;
}

.view-hero-banner {
  background: linear-gradient(135deg, #109450 0%, #20B96B 50%, #34d399 100%);
  border-radius: 16px;
  padding: 18px 16px;
  color: #ffffff;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(32, 185, 107, 0.25);
  position: relative;
  overflow: hidden;
}

.view-hero-banner h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.view-hero-banner p {
  font-size: 12px;
  opacity: 0.9;
  margin: 0;
}

/* Activity Center Styles */
.activity-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid #edf2f7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.activity-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #0B1833;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.activity-badge {
  background: rgba(32, 185, 107, 0.12);
  color: #1a9e5b;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
}

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

.checkin-day {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 4px;
  text-align: center;
  transition: all 0.2s ease;
}

.checkin-day.claimed {
  background: rgba(32, 185, 107, 0.08);
  border-color: #20B96B;
}

.checkin-day small {
  font-size: 10px;
  color: #718096;
  display: block;
}

.checkin-day strong {
  font-size: 13px;
  color: #20B96B;
  display: block;
  margin-top: 2px;
}

/* Promotion Page Styles */
.promo-stats-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  border: 1px solid #edf2f7;
  margin-bottom: 12px;
}

.promo-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.promo-stat-card {
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.promo-stat-card span {
  font-size: 11px;
  color: #718096;
  display: block;
}

.promo-stat-card b {
  font-size: 16px;
  color: #0B1833;
  display: block;
  margin-top: 2px;
}

.promo-stat-card b.highlight {
  color: #20B96B;
}

.share-link-box {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 4px 6px 4px 12px;
  margin-top: 8px;
  gap: 8px;
}

.share-link-box input {
  border: none;
  background: transparent;
  flex: 1;
  font-size: 12px;
  color: #4a5568;
  outline: none;
  font-family: inherit;
}

.share-link-box button {
  background: #20B96B;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Account Page Styles */
.account-user-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #edf2f7;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #20B96B, #109450);
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(32, 185, 107, 0.3);
  flex-shrink: 0;
}

.account-balance-card {
  background: linear-gradient(135deg, #0B1833 0%, #172a54 100%);
  border-radius: 16px;
  padding: 16px;
  color: #ffffff;
  margin-bottom: 14px;
}

.account-balance-title {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
}

.account-balance-num {
  font-size: 26px;
  font-weight: 900;
  color: #20B96B;
  margin: 6px 0 14px;
}

.account-actions-row {
  display: flex;
  gap: 10px;
}

.account-actions-row button {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  border: none;
  cursor: pointer;
}

.btn-acc-deposit {
  background: #20B96B;
  color: #ffffff;
}

.btn-acc-withdraw {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.account-menu-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 6px 14px;
  border: 1px solid #edf2f7;
  margin-bottom: 12px;
}

.account-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: #1e293b;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.account-menu-item:last-child {
  border-bottom: none;
}

.account-menu-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-menu-item-left i {
  font-size: 16px;
  width: 20px;
  color: #20B96B;
  text-align: center;
}

.account-menu-item i.fa-chevron-right {
  font-size: 12px;
  color: #94a3b8;
}

/* ==================== TRUST, COMPLIANCE & LEGAL FOOTER ==================== */
.trust-footer {
  margin: 24px 12px 90px;
  padding: 18px 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.trust-badges-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.trust-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #f1f5f9;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.trust-age-badge {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
  font-weight: 900;
}

.trust-disclaimer {
  font-size: 11px;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 12px;
}

.trust-legal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 10px;
}

.trust-legal-links a {
  color: #471488;
  text-decoration: underline;
  cursor: pointer;
}

.trust-legal-links span {
  color: #94a3b8;
}

.trust-copyright {
  font-size: 10.5px;
  color: #94a3b8;
}

.legal-content-body {
  max-height: 60vh;
  overflow-y: auto;
  font-size: 12px;
  line-height: 1.6;
  color: #334155;
  text-align: left;
  padding: 6px 4px 10px;
}

.legal-content-body h4 {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 12px 0 4px;
}

.legal-content-body p, .legal-content-body ul {
  margin: 0 0 8px;
}

.legal-content-body ul {
  padding-left: 18px;
}