@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Tibetan:wght@400;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&family=Rajdhani:wght@500;600;700;800&display=swap');

:root {
  --bg-primary: #0b1124;
  --bg-secondary: #131d3b;
  --bg-card: #1c274a;
  --bg-card-subtle: #24325c;
  --bg-card-border: rgba(255, 255, 255, 0.08);

  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;

  --color-green: #10b981;
  --color-green-glow: rgba(16, 185, 129, 0.4);
  --color-red: #ef4444;
  --color-red-glow: rgba(239, 68, 68, 0.4);
  --color-violet: #9333ea;
  --color-violet-glow: rgba(147, 51, 234, 0.4);

  --color-big: #f59e0b;
  --color-small: #0284c7;

  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-main: 'Outfit', 'Noto Sans Tibetan', 'Microsoft Himalaya', 'DDC Uchen', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-digital: 'Rajdhani', monospace;

  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

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

body {
  font-family: var(--font-main);
  background-color: #070a16;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(20, 50, 110, 0.45) 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(147, 51, 234, 0.12) 0%, transparent 40%);
  color: var(--text-main);
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* App Container (Responsive Mobile / Desktop Centered Shell) */
.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 17, 36, 0.92);
  backdrop-filter: blur(14px);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--bg-card-border);
}

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

.icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bg-card-border);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-logo-img-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  background: #000;
  border: 1.5px solid rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
  display: inline-block;
}

.logo-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #ffffff 10%, #fde047 50%, #f59e0b 80%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

.badge-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.admin-link-btn {
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
  transition: all 0.2s ease;
}

.admin-link-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.5);
}

/* Wallet Banner */
.wallet-card {
  margin: 14px 16px 8px 16px;
  background: linear-gradient(145deg, #172242, #111a33);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.wallet-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

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

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

.wallet-label {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.vip-pill {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #000;
  border-radius: 10px;
}

.wallet-balance {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-digital);
  letter-spacing: 0.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.currency-sym {
  color: #fbbf24;
  font-weight: 700;
}

.refresh-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  transition: transform 0.3s;
}

.refresh-btn:hover {
  color: var(--text-main);
  transform: rotate(180deg);
}

.wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-withdraw {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: white;
  border: none;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 0;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
  transition: all 0.2s ease;
}

.btn-deposit {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: white;
  border: none;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 0;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.btn-withdraw:hover, .btn-deposit:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-withdraw:active, .btn-deposit:active {
  transform: translateY(0);
}

/* Notification Ticker */
.notice-ticker {
  margin: 6px 16px 12px 16px;
  background: rgba(28, 39, 74, 0.6);
  border: 1px solid var(--bg-card-border);
  border-radius: 20px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  overflow: hidden;
}

.notice-icon {
  color: var(--accent-cyan);
  font-size: 14px;
  flex-shrink: 0;
}

.ticker-wrap {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-text {
  display: inline-block;
  color: var(--text-muted);
  animation: marquee 20s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.btn-detail {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border: none;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Game Mode Tabs */
.game-modes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 16px;
  margin-bottom: 14px;
}

.mode-tab {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.mode-tab .mode-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.25s;
}

.mode-tab .mode-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
}

.mode-tab.active {
  background: linear-gradient(145deg, #1e3a8a, #0284c7);
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.4), inset 0 0 10px rgba(0, 242, 254, 0.2);
  transform: translateY(-2px);
}

.mode-tab.active .mode-icon {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.mode-tab.active .mode-title {
  color: #ffffff;
  font-weight: 800;
}

/* Period & Countdown Card */
.period-countdown-card {
  margin: 0 16px 14px 16px;
  background: linear-gradient(145deg, #182344, #121c38);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.period-countdown-card::after {
  content: '';
  position: absolute;
  top: 15%;
  bottom: 15%;
  left: 52%;
  width: 1px;
  border-left: 1px dashed rgba(255, 255, 255, 0.15);
}

.period-left {
  padding: 14px 12px 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.how-to-play-btn {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.how-to-play-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.active-game-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin: 6px 0 8px 0;
}

.recent-balls-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* Realistic 3D Lottery Balls */
.ball-sm {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: inset -2px -2px 5px rgba(0, 0, 0, 0.5), inset 2px 2px 5px rgba(255, 255, 255, 0.5), 0 3px 6px rgba(0, 0, 0, 0.4);
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

.ball-green {
  background: radial-gradient(circle at 35% 35%, #34d399, #059669 70%, #064e3b 100%);
}

.ball-red {
  background: radial-gradient(circle at 35% 35%, #f87171, #dc2626 70%, #7f1d1d 100%);
}

.ball-violet {
  background: radial-gradient(circle at 35% 35%, #c084fc, #7c3aed 70%, #4c1d95 100%);
}

.ball-violet_red {
  background: linear-gradient(135deg, #9333ea 50%, #ef4444 50%);
}

.ball-violet_green {
  background: linear-gradient(135deg, #9333ea 50%, #10b981 50%);
}

.period-right {
  padding: 14px 16px 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.timer-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.flip-clock {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 6px 0;
}

.flip-digit {
  width: 24px;
  height: 34px;
  background: #0d152a;
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 6px;
  font-family: var(--font-digital);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 242, 254, 0.2);
}

.flip-separator {
  font-family: var(--font-digital);
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-cyan);
}

.period-number-label {
  font-size: 11px;
  font-family: var(--font-digital);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #cbd5e1;
}

/* Betting Board Container */
.betting-board {
  margin: 0 16px 16px 16px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  box-shadow: var(--shadow-card);
}

/* Top 3 Color Buttons */
.color-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.color-bet-btn {
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.color-bet-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, transparent 100%);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.color-bet-btn .btn-text {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.color-bet-btn .btn-rate {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.btn-green-bet {
  background: linear-gradient(145deg, #10b981, #059669);
  box-shadow: 0 6px 16px var(--color-green-glow);
}

.btn-violet-bet {
  background: linear-gradient(145deg, #a855f7, #7e22ce);
  box-shadow: 0 6px 16px var(--color-violet-glow);
}

.btn-red-bet {
  background: linear-gradient(145deg, #ef4444, #dc2626);
  box-shadow: 0 6px 16px var(--color-red-glow);
}

.color-bet-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.color-bet-btn:active {
  transform: translateY(0);
}

/* Number Chips Grid (0-9) */
.number-chips-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.number-chip-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.number-chip-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.chip-ball {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  box-shadow: inset -3px -3px 8px rgba(0, 0, 0, 0.6), inset 3px 3px 8px rgba(255, 255, 255, 0.5), 0 6px 12px rgba(0, 0, 0, 0.4);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s;
}

.number-chip-btn:hover .chip-ball {
  transform: scale(1.08);
}

.chip-rate {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

/* Big & Small Buttons */
.size-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.size-btn {
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-big {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.btn-small {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.35);
}

.size-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.size-btn .size-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

.size-btn .size-desc {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.size-btn .size-rate {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 8px;
  border-radius: 10px;
}

/* Multiplier Quick Pills */
.multipliers-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.multipliers-row::-webkit-scrollbar {
  height: 3px;
}

.multipliers-row::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.multiplier-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-card-border);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.multiplier-pill:hover, .multiplier-pill.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* 5s Countdown Lockdown Mask */
.lockdown-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 17, 36, 0.94);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lockdown-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.countdown-digits-huge {
  font-family: var(--font-digital);
  font-size: 88px;
  font-weight: 900;
  color: #ff3366;
  text-shadow: 0 0 25px rgba(255, 51, 102, 0.8), 0 0 50px rgba(255, 51, 102, 0.5);
  animation: pulse-countdown 1s ease-in-out infinite;
  line-height: 1;
}

@keyframes pulse-countdown {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.lockdown-message {
  font-size: 14px;
  font-weight: 700;
  color: #cbd5e1;
  margin-top: 10px;
  letter-spacing: 0.5px;
}

/* Bottom Navigation / Tabs */
.tabs-header {
  display: flex;
  border-bottom: 1px solid var(--bg-card-border);
  margin: 0 16px 12px 16px;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: #ffffff;
}

.tab-btn.active {
  color: var(--accent-cyan);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 3px;
  background: linear-gradient(90deg, #00f2fe, #4facfe);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.8);
}

.tab-content {
  display: none;
  padding: 0 16px;
}

.tab-content.active {
  display: block;
}

/* Game History Table */
.history-table-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.table-header {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  border-bottom: 1px solid var(--bg-card-border);
}

.table-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12px;
  transition: background 0.15s;
}

.table-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.col-period {
  font-family: var(--font-digital);
  font-weight: 600;
  color: #cbd5e1;
}

.tag-size {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  text-transform: capitalize;
}

.tag-big {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.tag-small {
  background: rgba(14, 165, 233, 0.15);
  color: #0ea5e9;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.color-pills-row {
  display: flex;
  gap: 4px;
}

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

.dot-green { background: #10b981; }
.dot-red { background: #ef4444; }
.dot-violet { background: #9333ea; }

/* Chart / Trend Visualization */
.chart-container-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.stats-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
}

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

.stat-val {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-digital);
  margin-top: 2px;
}

.val-green { color: #10b981; }
.val-red { color: #ef4444; }
.val-violet { color: #a855f7; }

.trend-canvas-wrap {
  width: 100%;
  overflow-x: auto;
  padding: 10px 0;
}

/* My Bets Tab */
.my-bets-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.my-bet-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s;
}

.bet-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bet-period {
  font-family: var(--font-digital);
  font-size: 13px;
  color: #cbd5e1;
}

.bet-status-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}

.status-pending {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-won {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-lost {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.bet-card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.bet-target {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bet-payout-amount {
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-digital);
}

/* Bottom Sheet Bet Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.bet-bottom-sheet {
  width: 100%;
  max-width: 480px;
  background: #172242;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .bet-bottom-sheet {
  transform: translateY(0);
}

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

.sheet-title-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 800;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.close-sheet-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

.sheet-section-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.money-presets-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.money-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-card-border);
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.money-btn.active {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.quantity-stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  margin-bottom: 16px;
}

.step-btn {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--bg-card-border);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-input {
  width: 70px;
  text-align: center;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-digital);
}

.sheet-multipliers-row {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.sheet-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.total-amount-display {
  font-size: 22px;
  font-weight: 900;
  font-family: var(--font-digital);
  color: #fbbf24;
}

.sheet-actions-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
}

.btn-cancel-bet {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--bg-card-border);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 0;
  border-radius: 25px;
  cursor: pointer;
}

.btn-confirm-bet {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  border: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 0;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* Win Celebration Modal */
.win-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.win-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.win-card-box {
  width: 90%;
  max-width: 380px;
  background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
  border: 2px solid #fbbf24;
  border-radius: 24px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 0 50px rgba(251, 191, 36, 0.4);
  transform: scale(0.85);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.win-modal.active .win-card-box {
  transform: scale(1);
}

.win-trophy-icon {
  font-size: 54px;
  animation: bounce-trophy 1.2s infinite;
}

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

.win-title {
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 8px 0;
}

.win-payout-text {
  font-size: 36px;
  font-weight: 900;
  font-family: var(--font-digital);
  color: #4ade80;
  text-shadow: 0 0 15px rgba(74, 222, 128, 0.5);
  margin-bottom: 12px;
}

.btn-win-close {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border: none;
  color: #000;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 30px;
  border-radius: 20px;
  cursor: pointer;
  margin-top: 14px;
}

/* Modals General (Deposit, Withdraw, Rules, Support) */
.center-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.center-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.center-modal-card {
  width: 90%;
  max-width: 420px;
  background: #172242;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 20px;
  max-height: 85vh;
  overflow-y: auto;
}

.center-modal-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Toast Messages */
.toast-container {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.3s ease forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Customer Auth Header Badge & Button */
.header-auth-group {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.btn-auth-header {
  border: 1px solid rgba(0, 242, 254, 0.45);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  line-height: 1.1;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  text-decoration: none;
}

.btn-auth-header span {
  font-size: 11px;
  line-height: 1;
}

.btn-auth-header.btn-auth-login {
  background: rgba(0, 242, 254, 0.12);
  color: #38bdf8;
  border-color: rgba(0, 242, 254, 0.45);
  box-shadow: 0 2px 8px rgba(0, 242, 254, 0.2);
}

.btn-auth-header.btn-auth-login:hover {
  background: rgba(0, 242, 254, 0.24);
  border-color: rgba(0, 242, 254, 0.8);
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.4);
  transform: translateY(-1px);
}

.btn-auth-header.btn-auth-register {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  border-color: rgba(16, 185, 129, 0.65);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

.btn-auth-header.btn-auth-register:hover {
  filter: brightness(1.1);
  border-color: rgba(16, 185, 129, 0.9);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.55);
  transform: translateY(-1px);
}

.btn-auth-header:active {
  transform: translateY(0);
}

.header-user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bg-card-border);
  padding: 4px 10px 4px 6px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-user-badge:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 242, 254, 0.4);
}

.user-avatar-sm {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: white;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-uid-text {
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
}

/* Customer Auth Modal */
.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.auth-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal-card {
  width: 92%;
  max-width: 420px;
  background: #141c38;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 242, 254, 0.2);
  position: relative;
  overflow: hidden;
}

.auth-modal-card::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 100px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.auth-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

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

.auth-title-text {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.auth-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, #1e3a8a, #0284c7);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.auth-form.active {
  display: flex;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

.auth-input-phone {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-card-border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.auth-input-phone:focus-within {
  border-color: var(--accent-cyan);
}

.phone-prefix {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  border-right: 1px solid var(--bg-card-border);
}

.country-prefix-select {
  padding: 12px 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 700;
  color: #38bdf8;
  border: none;
  border-right: 1px solid var(--bg-card-border);
  outline: none;
  cursor: pointer;
}

.country-prefix-select option {
  background: #141c38;
  color: #ffffff;
  font-weight: 600;
}

.auth-input-phone input {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 14px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  outline: none;
}

.auth-input-pass {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-card-border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.auth-input-pass:focus-within {
  border-color: var(--accent-cyan);
}

.auth-input-pass input {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 14px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  outline: none;
}

.btn-toggle-eye {
  background: none;
  border: none;
  color: var(--text-dim);
  padding: 0 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.btn-toggle-eye:hover {
  color: var(--text-main);
}

.auth-input-simple {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-card-border);
  border-radius: 10px;
  padding: 12px 14px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
}

.auth-input-simple:focus {
  border-color: var(--accent-cyan);
}

.auth-extra-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.btn-auth-submit {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: white;
  border: none;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 0;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
  margin-top: 6px;
}

.btn-auth-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-demo-quick {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--accent-cyan);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 0;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-demo-quick:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--accent-cyan);
}

/* Customer Profile Drawer */
.profile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 260;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.profile-drawer.active {
  opacity: 1;
  pointer-events: auto;
}

.profile-drawer-card {
  width: 85%;
  max-width: 360px;
  height: 100%;
  background: #141c38;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.profile-drawer.active .profile-drawer-card {
  transform: translateX(0);
}

.profile-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.customer-info-box {
  background: linear-gradient(145deg, #1b2649, #131c36);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.customer-avatar-lg {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: white;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.customer-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.customer-name {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.customer-uid-pill {
  font-size: 11px;
  color: #94a3b8;
  font-family: var(--font-digital);
}

.customer-vip-badge {
  font-size: 9px;
  font-weight: 800;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #000;
  padding: 1px 6px;
  border-radius: 10px;
  width: fit-content;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.profile-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  padding: 12px;
}

.profile-stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

.profile-stat-val {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-digital);
  color: #ffffff;
  margin-top: 4px;
}

.btn-signout {
  margin-top: auto;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 0;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-signout:hover {
  background: #ef4444;
  color: white;
}

/* Slide-Out Menu Drawer */
.menu-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 280;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.menu-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.menu-drawer-panel {
  width: 82%;
  max-width: 340px;
  height: 100%;
  background: #141c38;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.menu-drawer-backdrop.active .menu-drawer-panel {
  transform: translateX(0);
}

.menu-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--bg-card-border);
}

.menu-user-card {
  background: linear-gradient(145deg, #1b2649, #131c36);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 20px;
}

.menu-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-item-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  padding: 12px 14px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  width: 100%;
  text-align: left;
}

.menu-item-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(3px);
}

.menu-item-icon {
  font-size: 18px;
  width: 24px;
  display: flex;
  justify-content: center;
}

.menu-item-admin {
  background: rgba(236, 72, 153, 0.08);
  border-color: rgba(236, 72, 153, 0.25);
  margin-top: 10px;
}

.menu-item-admin:hover {
  background: rgba(236, 72, 153, 0.18);
  border-color: #ec4899;
}

/* Responsive adjust */
@media (max-width: 480px) {
  .app-container {
    max-width: 100%;
    box-shadow: none;
  }
}

/* ======================================================== */
/* DEPOSIT MODAL ENHANCED DESIGN                            */
/* ======================================================== */
.deposit-modal-card {
  max-width: 440px;
}

.deposit-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
}

.deposit-step-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.step-num {
  width: 20px;
  height: 20px;
  background: var(--accent-cyan);
  color: #0b1120;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.deposit-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bg-card-border);
  border-radius: 8px;
  padding: 2px 12px;
  transition: border-color 0.2s;
}

.deposit-input-wrapper:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.deposit-cur-prefix {
  font-weight: 800;
  color: #fbbf24;
  font-size: 16px;
  margin-right: 8px;
}

.deposit-amt-input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 700;
  outline: none;
}

.bhutan-acc-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.04));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 14px;
}

.bhutan-acc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.acc-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.acc-holder-label {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 600;
}

.bhutan-acc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px dashed rgba(245, 158, 11, 0.4);
}

.acc-number-col {
  display: flex;
  flex-direction: column;
}

.acc-field-label {
  font-size: 11px;
  color: var(--text-muted);
}

.acc-number-display {
  font-family: var(--font-digital);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
}

.btn-copy-acc {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-copy-acc:hover {
  background: var(--accent-cyan);
  color: #0b1120;
  border-color: var(--accent-cyan);
}

.mandatory-note-card {
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(245, 158, 11, 0.12));
  border: 1.5px solid rgba(245, 158, 11, 0.6);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.12);
  animation: pulse-border 2.5s infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: rgba(245, 158, 11, 0.6); box-shadow: 0 0 10px rgba(245, 158, 11, 0.15); }
  50% { border-color: rgba(239, 68, 68, 0.8); box-shadow: 0 0 16px rgba(239, 68, 68, 0.25); }
}

.mandatory-icon {
  font-size: 22px;
  line-height: 1;
}

.mandatory-title {
  color: #f87171;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

.mandatory-text {
  font-size: 13px;
  color: #fef08a;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.btn-telegram-direct {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #0088cc, #29b6f6);
  color: white;
  text-decoration: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.35);
  transition: all 0.2s ease;
}

.btn-telegram-direct:hover {
  background: linear-gradient(135deg, #0077b5, #03a9f4);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
  color: white;
}

/* ========================================================
   📱 MULTI-VIEW SPA SYSTEM (HOME, WINGO, AVIATOR, PROFILE)
   ======================================================== */
.view-panel {
  display: none;
  width: 100%;
  animation: fadeInView 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-panel.active {
  display: block;
}

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

/* ========================================================
   🏠 DRUK FORTUNE HOME VIEW
   ======================================================== */
.home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: linear-gradient(180deg, #1b2749 0%, #151f3b 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.druk-brand, .tiranga-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.druk-brand-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #000;
  border: 1.5px solid rgba(245, 158, 11, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.45);
  flex-shrink: 0;
  overflow: hidden;
  padding: 1px;
}

.app-header-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.druk-brand-titles {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.druk-brand-text, .tiranga-brand-text {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.2px;
  background: linear-gradient(135deg, #ffffff 15%, #fde047 55%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
  line-height: 1.15;
  white-space: nowrap;
}

.druk-brand-tagline {
  font-size: 9.5px;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.3px;
  white-space: nowrap;
  opacity: 0.95;
  line-height: 1.1;
}

.hero-dragon-logo-img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: contain;
  background: #000;
  border: 2px solid rgba(245, 158, 11, 0.7);
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.55);
  position: relative;
  z-index: 2;
  animation: dragon-float 4s ease-in-out infinite alternate;
}

.footer-brand-logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: contain;
  background: #000;
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .druk-brand-text { font-size: 15px; }
  .druk-brand-tagline { font-size: 8px; }
  .druk-brand-icon-wrap { width: 32px; height: 32px; }
  .hero-dragon-logo-img { width: 68px; height: 68px; border-radius: 14px; }
}

/* ─── Druk Fortune Hero Section ───────────────────────────── */
.druk-hero-section {
  margin: 12px 14px 14px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #240a12 0%, #3e0e1e 40%, #1a1630 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 20px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(254, 240, 138, 0.25);
}

.druk-hero-section::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.druk-hero-content {
  flex: 1;
  z-index: 2;
  min-width: 0;
}

.druk-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde047;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.druk-hero-title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 10%, #fef08a 40%, #fbbf24 80%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.3px;
}

.druk-hero-tagline {
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.druk-hero-tagline .highlight-dragon {
  color: #fbbf24;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}

.druk-hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-feat-chip {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  color: #cbd5e1;
}

.druk-hero-dragon-visual {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
}

.dragon-emblem-glow {
  position: absolute;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.4) 0%, rgba(239, 68, 68, 0.2) 60%, transparent 70%);
  border-radius: 50%;
  animation: dragon-pulse 3s infinite alternate;
}

@keyframes dragon-pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

.dragon-huge-symbol {
  font-size: 56px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 14px rgba(245, 158, 11, 0.65));
  animation: dragon-float 4s ease-in-out infinite alternate;
}

@keyframes dragon-float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

@media (max-width: 480px) {
  .druk-hero-section {
    padding: 16px 14px;
    margin: 10px 12px 12px 12px;
  }
  .druk-hero-title { font-size: 21px; }
  .druk-hero-tagline { font-size: 12.5px; }
  .druk-hero-dragon-visual { width: 70px; height: 70px; }
  .dragon-huge-symbol { font-size: 44px; }
}

/* ─── Druk Fortune Platform Footer ────────────────────────── */
.druk-platform-footer {
  margin: 24px 14px 20px 14px;
  padding: 20px 16px;
  background: linear-gradient(180deg, rgba(27, 39, 73, 0.6) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-align: center;
}

.druk-footer-brand {
  margin-bottom: 10px;
}

.druk-footer-logo {
  font-size: 16px;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 20%, #fde047 60%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 2px;
}

.druk-footer-tagline {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
}

.druk-footer-desc {
  margin: 10px auto 14px;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.5;
  max-width: 460px;
}

.druk-footer-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.footer-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  color: #cbd5e1;
}

.druk-footer-copyright {
  font-size: 10.5px;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}


.home-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}

/* Hero Mission Bonus Banner */
.mission-banner-card {
  margin: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #1e293b 100%);
  border: 1px solid rgba(129, 140, 248, 0.35);
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(49, 46, 129, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.mission-banner-card:hover {
  transform: translateY(-2px);
}

.mission-banner-content {
  position: relative;
  z-index: 2;
  max-width: 65%;
}

.mission-sub {
  font-size: 10px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.mission-title {
  font-size: 22px;
  font-weight: 900;
  color: #facc15;
  text-shadow: 0 2px 8px rgba(250, 204, 21, 0.4);
  line-height: 1.1;
  margin-bottom: 4px;
}

.mission-desc {
  font-size: 11px;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.btn-claim-mission {
  background: linear-gradient(135deg, #e11d48, #f43f5e);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.4);
}

.mission-banner-decor {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.5));
  animation: floatTarget 3s ease-in-out infinite;
}

@keyframes floatTarget {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  50% { transform: translateY(-56%) rotate(4deg); }
}

/* Game Category Grid Tabs */
.category-tabs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 14px;
  margin-bottom: 14px;
}

.cat-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #94a3b8;
}

.cat-tab-btn.active, .cat-tab-btn:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(129, 140, 248, 0.15));
  border-color: rgba(56, 189, 248, 0.5);
  color: #ffffff;
  transform: translateY(-2px);
}

.cat-tab-icon {
  font-size: 22px;
}

.cat-tab-label {
  font-size: 11px;
  font-weight: 700;
}

/* Featured Games Showcase Cards */
.games-showcase-section {
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.game-featured-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 16px;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

/* Aviator Featured Card */
.card-aviator {
  background: linear-gradient(135deg, #1a0808 0%, #3b0d11 40%, #1e111a 100%);
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.2);
}

.card-aviator:hover {
  border-color: rgba(239, 68, 68, 0.7);
}

/* WinGo Featured Card */
.card-wingo {
  background: linear-gradient(135deg, #062b1a 0%, #0d4a2b 40%, #11223b 100%);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.card-wingo:hover {
  border-color: rgba(16, 185, 129, 0.7);
}

.game-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
}

.game-card-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.1);
}

.game-card-info h3 {
  font-size: 17px;
  font-weight: 800;
  color: white;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.game-card-info p {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.game-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}

.tag-hot {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.tag-popular {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.btn-play-game {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
  transition: all 0.2s ease;
}

.btn-play-game:hover {
  transform: scale(1.05);
}

/* Secondary Games Grid (Slots, Casino, etc.) */
.secondary-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sec-game-tile {
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sec-game-tile:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.sec-game-icon {
  font-size: 26px;
  margin-bottom: 4px;
}

.sec-game-name {
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
}

/* Floating Action Sidebar */
.floating-sidebar-widgets {
  position: fixed;
  right: max(8px, calc(50% - 240px + 8px));
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 80;
}

.floating-widget-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
  color: white;
  touch-action: manipulation;
}

.floating-widget-btn:hover {
  transform: scale(1.1);
}

.floating-widget-btn:active {
  transform: scale(0.92);
}


.widget-telegram {
  background: #0088cc;
  border-color: #38bdf8;
}

.widget-support {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  border-color: #38bdf8;
}

/* ========================================================
   👤 DRUK FORTUNE PROFILE / ACCOUNT VIEW
   ======================================================== */
.profile-view-wrap {
  padding: 14px;
  padding-bottom: 90px;
}

/* Member Info Header Card */
.member-hero-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 4px;
}

.member-avatar-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #f59e0b, #ef4444, #3b82f6);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border: 2px solid #0f172a;
}

.member-meta-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.member-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.member-username-text {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.member-vip-tag {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.member-uid-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #f59e0b;
  font-weight: 700;
  cursor: pointer;
}

.btn-copy-uid {
  background: none;
  border: none;
  color: #f59e0b;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
}

.member-last-login {
  font-size: 11px;
  color: #64748b;
}

/* Total Balance Card (Matching Screenshot 1) */
.profile-balance-card {
  background: linear-gradient(135deg, #1b2649 0%, #151f3d 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 14px;
}

.balance-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.bal-label-small {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.bal-amount-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.bal-big-number {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-digital);
  color: #ffffff;
  letter-spacing: 0.5px;
}

.btn-enter-wallet {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border: none;
  color: white;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
}

.profile-action-icons-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

.prof-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.prof-action-btn:hover {
  transform: translateY(-2px);
}

.prof-action-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.circle-arwallet { background: linear-gradient(135deg, #f43f5e, #be123c); }
.circle-deposit { background: linear-gradient(135deg, #f97316, #c2410c); }
.circle-withdraw { background: linear-gradient(135deg, #0ea5e9, #0369a1); }
.circle-vip { background: linear-gradient(135deg, #10b981, #047857); }

/* Safe Interest Card */
.safe-interest-card {
  background: linear-gradient(135deg, #18223f, #141c33);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.safe-interest-card:hover {
  border-color: rgba(251, 191, 36, 0.4);
}

.safe-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.safe-card-info {
  flex: 1;
}

.safe-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.safe-title-row h4 {
  font-size: 14px;
  font-weight: 800;
  color: white;
}

.safe-val-text {
  font-size: 13px;
  font-weight: 800;
  color: #fbbf24;
}

.safe-sub-desc {
  font-size: 10.5px;
  color: #94a3b8;
  line-height: 1.3;
}

/* History Grid Menu */
.profile-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.prof-menu-tile {
  background: #17213d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: white;
}

.prof-menu-tile:hover {
  background: #1d294c;
  transform: translateY(-2px);
}

.prof-tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.tile-icon-game { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.tile-icon-trans { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.tile-icon-rules { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.tile-icon-safe { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.tile-icon-about { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.tile-icon-admin { background: rgba(236, 72, 153, 0.15); color: #ec4899; }
.tile-icon-logout { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.profile-about-card:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(168, 85, 247, 0.35) !important;
  transform: translateY(-2px);
}

.prof-tile-text h5 {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.prof-tile-text p {
  font-size: 10px;
  color: #94a3b8;
}

/* ========================================================
   🚀 AVIATOR CRASH GAME VIEW
   ======================================================== */
.aviator-view-wrap {
  display: flex;
  flex-direction: column;
  background: #0f1423;
  min-height: 100vh;
}

/* ========================================================
   ✈️ AUTHENTIC AVIATOR STYLES (MATCHING TBGAMELOADER V37)
   ======================================================== */
.aviator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #111726;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: 48px;
  box-sizing: border-box;
}

.aviator-hdr-left, .aviator-hdr-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.aviator-icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.aviator-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.aviator-brand-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.aviator-logo-text {
  font-size: 19px;
  font-weight: 900;
  font-style: italic;
  color: #ef4444;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.aviator-btn-help {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  border-radius: 14px;
  padding: 3px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.aviator-btn-help:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.aviator-wallet-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(40, 169, 9, 0.4);
  border-radius: 16px;
  padding: 3px 8px 3px 10px;
  font-family: var(--font-digital);
}

.aviator-wallet-curr {
  color: #4ade80;
  font-weight: 800;
  font-size: 12px;
}

.aviator-wallet-val {
  color: #4ade80;
  font-weight: 800;
  font-size: 14px;
}

.aviator-wallet-unit {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  font-family: inherit;
}

.aviator-refresh-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
}

.aviator-refresh-btn:hover {
  color: #4ade80;
}

/* Multipliers History Ribbon */
.aviator-history-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0d121e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 8px;
  height: 32px;
  box-sizing: border-box;
}

.aviator-history-scroll {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.aviator-history-scroll::-webkit-scrollbar {
  display: none;
}

.bubble-multiplier {
  background-color: rgba(0, 0, 0, 0.5);
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 11px;
  font-size: 11px;
  font-family: var(--font-digital);
  flex-shrink: 0;
  letter-spacing: 0.3px;
  transition: transform 0.2s ease;
}

.bubble-multiplier:hover {
  transform: scale(1.08);
}

.pill-blue {
  color: #34b4ff;
  border: 1px solid rgba(52, 180, 255, 0.35);
  background: rgba(52, 180, 255, 0.12);
}

.pill-purple {
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
  background: rgba(145, 62, 248, 0.18);
}

.pill-magenta {
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.5);
  background: rgba(192, 23, 180, 0.22);
  text-shadow: 0 0 8px rgba(244, 63, 94, 0.5);
}

.btn-history-dropdown {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border-radius: 6px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 6px;
  flex-shrink: 0;
}

.btn-history-dropdown:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

/* Flight Canvas Arena (Hardware Accelerated & GPU Optimized) */
.aviator-arena-box {
  position: relative;
  width: 100%;
  height: 270px;
  background: #0a0a0c;
  overflow: hidden;
  border-bottom: 2px solid #141c2e;
  transform: translateZ(0);
  contain: layout paint;
}

#aviatorCanvas {
  width: 100%;
  height: 100%;
  display: block;
  transform: translateZ(0);
  will-change: transform;
}

.aviator-overlay-center {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(0);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 10;
  will-change: transform;
}

.huge-multiplier-text {
  font-size: 64px;
  font-weight: 900;
  font-family: var(--font-digital);
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85), 0 0 16px rgba(255, 255, 255, 0.4);
  line-height: 1;
  letter-spacing: 1px;
  transform: translateZ(0);
  will-change: contents;
}

@media (max-width: 480px) {
  .huge-multiplier-text {
    font-size: 50px;
  }
}

.flew-away-badge {
  font-size: 28px;
  font-weight: 900;
  color: #dc3545;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  text-shadow: 0 0 25px rgba(220, 53, 69, 0.9);
  animation: shakeCrash 0.4s ease;
}

.countdown-bar-wrap {
  width: 240px;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 10px;
}

.countdown-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #dc3545, #f59e0b);
  transition: width 1s linear;
}

.countdown-sub-text {
  font-size: 13px;
  font-weight: 800;
  color: #cbd5e1;
  margin-top: 8px;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* ========================================================
   DUAL BETTING CONTROLS DECK (PANEL 1 & PANEL 2)
   ======================================================== */
.aviator-dual-deck {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 8px 10px;
  background: #0f1422;
}

@media (min-width: 480px) {
  .aviator-dual-deck {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

.aviator-bet-card {
  background: #192033;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.aviator-nav-switcher {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 20px;
  padding: 2px;
  margin-bottom: 8px;
  width: 160px;
  margin-left: auto;
  margin-right: auto;
}

.nav-switch-tab {
  flex: 1;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 0;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.nav-switch-tab.active {
  background: #2b3652;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.bet-action-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 8px;
  align-items: stretch;
}

.bet-input-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stepper-amount-wrap {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  height: 38px;
}

.btn-stepper-adj {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  font-weight: 900;
  width: 32px;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-stepper-adj:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.stepper-input-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.stepper-prefix {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 800;
}

.stepper-input {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  font-family: var(--font-digital);
  text-align: center;
  width: 65px;
  outline: none;
}

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

.chip-preset-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  color: #cbd5e1;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 0;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.chip-preset-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Giant Main Action Button */
.btn-bet-action {
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 64px;
  transition: all 0.15s ease;
  user-select: none;
}

.action-btn-headline {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.1;
}

.action-btn-subline {
  font-size: 11.5px;
  font-weight: 800;
  opacity: 0.95;
  margin-top: 2px;
}

/* Green BET Button (Authentic Aviator spec) */
.btn-style-bet {
  border: 1px solid #b2f2a3;
  background-color: #28a909;
  box-shadow: inset 0 1px 1px hsla(0, 0%, 100%, 0.5), 0 4px 12px rgba(40, 169, 9, 0.35);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-style-bet:hover {
  background-color: #2ecc14;
  box-shadow: inset 0 1px 1px hsla(0, 0%, 100%, 0.6), 0 6px 16px rgba(40, 169, 9, 0.5);
}

/* Red CANCEL Button (Authentic Aviator spec) */
.btn-style-cancel {
  border: 1px solid #ff7171;
  background-color: #cb011a;
  box-shadow: inset 0 1px 1px hsla(0, 0%, 100%, 0.5), 0 4px 12px rgba(203, 1, 26, 0.4);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-style-cancel:hover {
  background-color: #e0021e;
}

/* Orange CASH OUT Button (Authentic Aviator spec) */
.btn-style-cashout {
  border: 1px solid #ffbd71;
  background-color: #d07206;
  box-shadow: inset 0 1px 1px hsla(0, 0%, 100%, 0.5), 0 0 18px rgba(208, 114, 6, 0.6);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  animation: pulseCashout 1.1s infinite;
}

/* Auto Options Sub-deck */
.auto-config-deck {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.auto-switch-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.custom-switch-check {
  display: none;
}

.custom-switch-slider {
  width: 28px;
  height: 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  position: relative;
  transition: all 0.2s ease;
}

.custom-switch-slider::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  top: 2px;
  left: 2px;
  transition: all 0.2s ease;
}

.custom-switch-check:checked + .custom-switch-slider {
  background: #28a909;
}

.custom-switch-check:checked + .custom-switch-slider::before {
  transform: translateX(12px);
}

.auto-txt {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}

.auto-mult-input-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mult-x {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
}

.auto-mult-val {
  width: 58px;
  height: 24px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  color: #facc15;
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-digital);
  text-align: center;
  outline: none;
}

/* ========================================================
   LIVE BETS TABBED FEED (ALL BETS / MY BETS / TOP)
   ======================================================== */
.aviator-live-feed-card {
  background: #111726;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 10px;
}

.feed-tabs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.feed-tabs-group {
  display: flex;
  gap: 4px;
}

.feed-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.feed-tab-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.badge-bets-count {
  background: rgba(255, 255, 255, 0.15);
  padding: 1px 5px;
  border-radius: 8px;
  font-size: 9.5px;
  font-family: var(--font-digital);
}

.feed-round-info {
  font-size: 11px;
  color: #94a3b8;
}

.feed-table-header {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  padding: 4px 6px;
  font-size: 10.5px;
  color: #64748b;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feed-rows-container {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 240px;
  overflow-y: auto;
  padding-top: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.feed-row-item {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  align-items: center;
  padding: 5px 6px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  font-size: 11px;
  color: #cbd5e1;
  transition: all 0.3s ease;
}

.feed-row-item.feed-row-won {
  background: rgba(40, 169, 9, 0.15);
  border: 1px solid rgba(40, 169, 9, 0.3);
}

.feed-row-item.feed-row-user {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.feed-row-item.feed-row-user.feed-row-won {
  background: rgba(40, 169, 9, 0.2);
  border: 1px solid rgba(40, 169, 9, 0.45);
}

.feed-row-item.feed-row-lost {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.feed-user-col {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-avatar-mini {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
}

.feed-mult-pill {
  font-family: var(--font-digital);
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  display: inline-block;
  text-align: center;
}

/* ========================================================
   AVIATOR MODALS (HOW TO PLAY & HISTORY)
   ======================================================== */
.aviator-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  backdrop-filter: blur(4px);
}

.aviator-modal-dialog {
  background: #141b2e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8);
}

.aviator-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.aviator-modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.aviator-modal-close:hover {
  color: #ffffff;
}

.aviator-modal-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rules-step-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  position: relative;
}

.rules-step-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ef4444;
  color: #fff;
  font-size: 9.5px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 10px;
}

.rules-step-img {
  max-width: 100%;
  height: 80px;
  object-fit: contain;
  margin: 6px 0;
}

.rules-step-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 3px;
}

.rules-step-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.4;
}

.provably-fair-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
}

.history-grid-modal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px;
}

/* ========================================================
   🧭 BOTTOM NAVIGATION BAR (STICKY DOCK)
   ======================================================== */
.app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(60px + env(safe-area-inset-bottom, 0px));
  padding-bottom: max(4px, env(safe-area-inset-bottom, 4px));
  background: rgba(21, 29, 56, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  padding-left: 4px;
  padding-right: 4px;
  box-sizing: border-box;
}

.nav-item-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #718096;
  cursor: pointer;
  flex: 1;
  transition: all 0.2s ease;
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: none;
}

.nav-item-btn.active, .nav-item-btn:hover {
  color: #38bdf8;
}

.nav-item-icon {
  font-size: 18px;
}



/* ========================================================
   💣 MINES SPRIBE TURBO GAME STYLING
   ======================================================== */
.card-mines {
  background: linear-gradient(135deg, #1f1406 0%, #3d2407 40%, #171008 100%);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.22);
}

.card-mines:hover {
  border-color: rgba(245, 158, 11, 0.8);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35);
}

#viewMines {
  background: #0d131c;
  color: #f1f5f9;
  min-height: 100vh;
  padding-bottom: 80px;
}

/* Header */
.mines-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.mines-hdr-left, .mines-hdr-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mines-icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mines-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.mines-brand-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mines-logo-text {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 30%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mines-spribe-tag {
  background: #f59e0b;
  color: #000;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.mines-btn-help {
  background: transparent;
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.mines-btn-help:hover {
  background: rgba(245, 158, 11, 0.15);
}

.mines-wallet-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
}

.mines-wallet-curr {
  color: #4ade80;
}

.mines-wallet-val {
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.mines-wallet-unit {
  font-size: 10px;
  color: #94a3b8;
  margin-left: 2px;
}

.mines-refresh-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
}

.mines-refresh-btn:hover {
  color: #fff;
}

/* Status Ribbon */
.mines-status-ribbon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #111a26;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 14px;
}

.mines-stat-group {
  display: flex;
  gap: 10px;
}

.mines-stat-box {
  background: #1a2436;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.mines-stat-label {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
}

.mines-stat-value {
  font-size: 15px;
  font-weight: 800;
  color: #38bdf8;
  font-variant-numeric: tabular-nums;
}

.mines-multiplier-badge {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  padding: 8px 14px;
  text-align: right;
  min-width: 140px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.mines-mult-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.mines-mult-label {
  font-size: 9px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.mines-mult-val {
  font-size: 20px;
  font-weight: 900;
  color: #fbbf24;
  text-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  font-variant-numeric: tabular-nums;
}

.mines-mult-sub {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #cbd5e1;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}

/* 5x5 Arena */
.mines-arena-card {
  max-width: 440px;
  margin: 0 auto 16px auto;
  padding: 0 16px;
}

.mines-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #111827;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), inset 0 2px 6px rgba(0, 0, 0, 0.4);
  contain: layout style;
}

.mine-tile {
  background: linear-gradient(145deg, #243044, #161e2c);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.12), 0 4px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), background 0.15s, border-color 0.15s, box-shadow 0.15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

.mine-tile::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: opacity 0.2s ease;
}

.mine-tile.tile-opening {
  transform: scale(0.92) translateZ(0);
  border-color: rgba(245, 158, 11, 0.8);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
}

.mine-tile:hover:not(.revealed):not(.disabled) {
  transform: translateY(-2px) translateZ(0);
  background: linear-gradient(145deg, #2e3d55, #1d283b);
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.2), 0 6px 14px rgba(245, 158, 11, 0.25);
}

.mine-tile:active:not(.revealed):not(.disabled) {
  transform: translateY(1px) translateZ(0);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Star Revealed */
.mine-tile.tile-star {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(15, 23, 42, 0.95) 75%);
  border-color: #f59e0b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.2);
  cursor: default;
}

.mine-tile.tile-star::before {
  display: none;
}

.mine-tile.tile-star img {
  width: 70%;
  height: 70%;
  filter: drop-shadow(0 4px 10px rgba(245, 158, 11, 0.7));
  animation: starPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Bomb Exploded */
.mine-tile.tile-bomb {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.4) 0%, rgba(15, 23, 42, 0.95) 75%);
  border-color: #ef4444;
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.8), inset 0 2px 4px rgba(255, 255, 255, 0.2);
  cursor: default;
}

.mine-tile.tile-bomb::before {
  display: none;
}

.mine-tile.tile-bomb img {
  width: 72%;
  height: 72%;
  filter: drop-shadow(0 4px 12px rgba(239, 68, 68, 0.85));
  animation: bombExplode 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

/* Dimmed Revealed on End of Round */
.mine-tile.tile-dimmed {
  opacity: 0.42;
  filter: grayscale(40%);
  cursor: default;
}

.mine-tile.tile-dimmed img {
  width: 60%;
  height: 60%;
}

.mine-tile.disabled {
  cursor: not-allowed;
}

/* Control Deck */
.mines-control-card {
  max-width: 440px;
  margin: 0 auto;
  padding: 0 16px;
}

.mines-control-row {
  display: flex;
  gap: 12px;
  background: #111827;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.mines-input-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mines-block-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.mines-stepper-wrap {
  display: flex;
  align-items: center;
  background: #1f293d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  height: 40px;
}

.btn-mines-step {
  width: 38px;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #cbd5e1;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-mines-step:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.mines-stepper-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.mines-input-prefix {
  color: #4ade80;
  font-weight: 800;
  font-size: 13px;
  margin-right: 2px;
}

.mines-input-val {
  width: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  outline: none;
}

.mines-chips-row {
  display: flex;
  gap: 4px;
}

.mines-chip-btn {
  flex: 1;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border-radius: 6px;
  padding: 4px 0;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.mines-chip-btn:hover {
  background: #334155;
  color: #fff;
}

/* Mines Count Selector */
.mines-count-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.mines-count-chip {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border-radius: 8px;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
}

.mines-count-chip:hover {
  background: #334155;
  color: #ffffff;
}

.mines-count-chip.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000000;
  border-color: #f59e0b;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* Action Buttons */
.mines-actions-deck {
  width: 100%;
}

.btn-mines-primary {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.btn-mines-bet {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

.btn-mines-bet:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
}

.btn-mines-bet:active {
  transform: translateY(1px);
}

.mines-btn-title {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.mines-btn-sub {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.9;
}

.mines-in-game-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.btn-mines-random {
  flex: 0 0 110px;
  height: 54px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: all 0.18s ease;
}

.btn-mines-random:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
}

.btn-mines-cashout {
  flex: 1;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000000;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
  animation: cashoutPulse 1.8s infinite alternate;
}

.btn-mines-cashout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(245, 158, 11, 0.6);
}

/* Animations */
@keyframes starPop {
  0% {
    transform: scale(0.2) rotate(-45deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.15) rotate(10deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes bombExplode {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  30% {
    transform: scale(1.3) rotate(-15deg);
  }
  50% {
    transform: scale(0.95) rotate(10deg);
  }
  70% {
    transform: scale(1.1) rotate(-5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes cashoutPulse {
  0% {
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  }
  100% {
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.7);
  }
}

/* ========================================================
   🪙 1WIN COINFLIP TURBO GAME SUITE & 3D ANIMATIONS
   ======================================================== */

.card-coinflip {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(2, 132, 199, 0.05));
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.card-coinflip:hover {
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
}

#viewCoinflip {
  padding: 0 12px 24px 12px;
}

.coinflip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  margin-bottom: 10px;
}
.coinflip-hdr-left, .coinflip-hdr-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.coinflip-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.coinflip-icon-btn:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: #38bdf8;
}
.coinflip-brand-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 5px 10px;
  border-radius: 20px;
}
.coinflip-logo-text {
  font-size: 15px;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}
.coinflip-turbo-tag {
  font-size: 9px;
  font-weight: 900;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: #000;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.coinflip-btn-help {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.coinflip-btn-help:hover {
  background: rgba(56, 189, 248, 0.25);
}
.coinflip-wallet-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 800;
}
.coinflip-wallet-curr { color: #10b981; }
.coinflip-wallet-val { color: #fff; }
.coinflip-wallet-unit { font-size: 9.5px; color: #94a3b8; font-weight: 700; }
.coinflip-refresh-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 0 0 2px;
}

/* Recent History Ribbon */
.coinflip-history-ribbon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 7px 12px;
  margin-bottom: 10px;
  backdrop-filter: blur(8px);
}
.coinflip-history-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.coinflip-history-left::-webkit-scrollbar { display: none; }
.coinflip-history-label {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.coinflip-history-chips {
  display: flex;
  align-items: center;
  gap: 5px;
}
.cf-history-chip {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  animation: historyChipPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cf-history-chip.chip-heads {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #000;
  border: 1px solid #fde68a;
}
.cf-history-chip.chip-tails {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: #fff;
  border: 1px solid #bae6fd;
}
@keyframes historyChipPop {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.coinflip-ratio-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(30, 41, 59, 0.8);
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  margin-left: 6px;
}
.ratio-heads { color: #fbbf24; }
.ratio-divider { color: #64748b; font-size: 9px; }
.ratio-tails { color: #38bdf8; }

/* Streak Multiplier Ladder */
.coinflip-streak-ribbon {
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.coinflip-streak-ribbon::-webkit-scrollbar { display: none; }
.coinflip-ladder-wrap {
  display: flex;
  gap: 6px;
  padding: 2px 0;
}
.ladder-step {
  flex: 1;
  min-width: 58px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.25s ease;
}
.ladder-step .step-num {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748b;
}
.ladder-step .step-mult {
  font-size: 12px;
  font-weight: 900;
  color: #cbd5e1;
}
.ladder-step.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.15));
  border-color: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
  transform: translateY(-2px) scale(1.05);
}
.ladder-step.active .step-num {
  color: #fbbf24;
}
.ladder-step.active .step-mult {
  color: #fde047;
  font-weight: 900;
}
.ladder-step.next-target {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.08);
}
.ladder-step.next-target .step-mult {
  color: #38bdf8;
}

/* 3D Coin Flipping Arena Stage */
.coinflip-arena-card {
  position: relative;
  background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 75%, #090d16 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 24px 16px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  margin-bottom: 12px;
}
.coinflip-hud-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.hud-streak-box, .hud-win-box {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(15, 23, 42, 0.7);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}
.hud-label {
  font-size: 8.5px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.5px;
}
.hud-streak-val {
  font-size: 14px;
  font-weight: 900;
  color: #38bdf8;
}
.hud-win-val {
  font-size: 14px;
  font-weight: 900;
  color: #4ade80;
}
.coin-stage-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
}
.coin-3d-wrapper {
  perspective: 1000px;
  width: 140px;
  height: 140px;
}
.coin-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}
.coin-side {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.coin-front {
  transform: rotateY(0deg);
}
.coin-back {
  transform: rotateY(180deg);
}
.coin-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}
.coin-shadow {
  width: 110px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 70%);
  margin-top: 14px;
  transition: all 0.2s ease;
}

/* 3D Coin Flipping Animations */
.coin-flip-heads {
  animation: tossToHeads 1.1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.coin-flip-tails {
  animation: tossToTails 1.1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.shadow-anim {
  animation: tossShadow 1.1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes tossToHeads {
  0% {
    transform: translateY(0) rotateY(0deg) scale(1);
  }
  45% {
    transform: translateY(-90px) rotateY(1080deg) scale(1.18);
  }
  100% {
    transform: translateY(0) rotateY(2160deg) scale(1);
  }
}

@keyframes tossToTails {
  0% {
    transform: translateY(0) rotateY(0deg) scale(1);
  }
  45% {
    transform: translateY(-90px) rotateY(1170deg) scale(1.18);
  }
  100% {
    transform: translateY(0) rotateY(2340deg) scale(1);
  }
}

@keyframes tossShadow {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  45% {
    transform: scale(0.45);
    opacity: 0.2;
  }
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}

.coin-result-banner {
  position: absolute;
  bottom: 14px;
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid #f59e0b;
  border-radius: 20px;
  padding: 6px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
  animation: bannerPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
}
.coin-result-banner.is-loss {
  border-color: #ef4444;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.4);
}
.banner-title {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
}
.banner-sub {
  font-size: 12px;
  font-weight: 800;
  color: #fbbf24;
}
.coin-result-banner.is-loss .banner-sub {
  color: #ef4444;
}
@keyframes bannerPop {
  0% { transform: translateY(12px) scale(0.85); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Coinflip Control Deck */
.coinflip-control-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.coinflip-block-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 6px;
}
.min-max-hint {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
}
.coinflip-stepper-wrap {
  display: flex;
  align-items: center;
  background: #0f172a;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  height: 44px;
  margin-bottom: 8px;
}
.btn-coin-step {
  width: 44px;
  height: 100%;
  background: rgba(30, 41, 59, 0.8);
  border: none;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-coin-step:hover {
  background: rgba(51, 65, 85, 0.9);
}
.coinflip-stepper-inner {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 10px;
}
.coinflip-input-prefix {
  color: #10b981;
  font-weight: 800;
  font-size: 16px;
  margin-right: 4px;
}
.coinflip-input-val {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  outline: none;
}
.coinflip-chips-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.coinflip-chips-row::-webkit-scrollbar { display: none; }
.coin-chip-btn {
  flex: 1;
  min-width: 42px;
  height: 32px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s;
}
.coin-chip-btn:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: #38bdf8;
  color: #fff;
}
.coin-chip-btn.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
}
.coin-chip-btn.btn-chip-mod {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}
.coinflip-choice-deck {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.choice-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn-choice {
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}
.btn-choice:active {
  transform: scale(0.97);
}
.btn-choice-heads {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(217, 119, 6, 0.08) 100%), #131b2e;
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15);
}
.btn-choice-heads:hover {
  border-color: #f59e0b;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
  transform: translateY(-2px);
}
.btn-choice-tails {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18) 0%, rgba(2, 132, 199, 0.08) 100%), #131b2e;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.15);
}
.btn-choice-tails:hover {
  border-color: #38bdf8;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}
.choice-btn-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.choice-title {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
}
.btn-choice-heads .choice-title { color: #fde047; }
.btn-choice-tails .choice-title { color: #38bdf8; }
.choice-mult {
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
}

/* Cashout Button */
.btn-coinflip-cashout {
  width: 100%;
  height: 58px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.45);
  animation: cashoutGlow 1.6s infinite alternate;
  transition: all 0.2s ease;
}
.btn-coinflip-cashout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.6);
}
.cashout-icon { font-size: 24px; }
.cashout-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.cashout-title {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
}
.cashout-val {
  font-size: 13px;
  font-weight: 800;
  color: #d1fae5;
}
.cashout-arrow { font-size: 18px; font-weight: 900; }
@keyframes cashoutGlow {
  0% { box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35); }
  100% { box-shadow: 0 8px 30px rgba(16, 185, 129, 0.7); }
}

/* ========================================================
   📱 COMPREHENSIVE MOBILE PHONE OPTIMIZATION SUITE
   ======================================================== */

/* 1. Touch Ergonomics, Haptics & Fast Taps */
button,
input,
select,
textarea,
.mode-tab,
.color-bet-btn,
.number-chip-btn,
.size-btn,
.money-btn,
.chip-preset-btn,
.mine-tile,
.nav-item-btn,
.cat-tab-btn,
.icon-btn,
.floating-widget-btn,
.sec-game-tile {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:active:not(:disabled),
.mode-tab:active,
.color-bet-btn:active,
.number-chip-btn:active,
.size-btn:active,
.mine-tile:active:not(.revealed):not(.disabled),
.cat-tab-btn:active,
.sec-game-tile:active {
  transform: scale(0.96) !important;
  transition: transform 0.08s ease !important;
}

/* Prevent accidental text highlight / iOS magnifier on game controls */
.app-header,
.home-header,
.game-modes-grid,
.period-countdown-card,
.betting-board,
.aviator-bet-card,
.aviator-arena-box,
.mines-arena-card,
.mines-control-card,
.app-bottom-nav,
.floating-sidebar-widgets {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Smooth Touch Momentum Scrolling */
.tab-content-area,
.my-bets-list,
.trend-canvas-wrap,
.feed-rows-container,
.center-modal-card,
.bet-bottom-sheet,
.profile-drawer-card,
.menu-drawer-panel {
  -webkit-overflow-scrolling: touch;
}

/* 2. Top Bar Safe-Area Insets for Notches & Dynamic Island */
.app-header,
.home-header,
.aviator-header,
.mines-top-nav {
  padding-top: max(12px, env(safe-area-inset-top, 12px));
  padding-left: max(14px, env(safe-area-inset-left, 14px));
  padding-right: max(14px, env(safe-area-inset-right, 14px));
}

/* 3. Mobile Viewport & Screen Width Optimization (< 540px) */
@media screen and (max-width: 540px) {
  /* Full-bleed edge-to-edge container */
  .app-container {
    max-width: 100%;
    box-shadow: none;
    border-radius: 0;
  }

  .app-bottom-nav {
    max-width: 100%;
    left: 0;
    transform: none;
  }

  /* Input Zoom Fix on iOS */
  input[type="text"],
  input[type="number"],
  input[type="password"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Mobile Bottom Sheet Modals (Native App Experience) */
  .center-modal {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .center-modal-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 24px 24px 0 0 !important;
    max-height: 88vh !important;
    max-height: 88dvh !important;
    padding: 22px 18px !important;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 24px)) !important;
    animation: sheetSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.75) !important;
  }

  .auth-modal {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .auth-modal-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 24px 24px 0 0 !important;
    max-height: 90vh !important;
    max-height: 90dvh !important;
    padding: 24px 18px !important;
    padding-bottom: max(26px, env(safe-area-inset-bottom, 26px)) !important;
    animation: sheetSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }


  /* WinGo Card & Board Sizing on Mobile */
  .period-countdown-card {
    margin: 0 12px 12px 12px;
    padding: 2px;
  }

  .betting-board {
    margin: 0 12px 16px 12px;
    padding: 14px 10px;
  }

  .color-buttons-row {
    gap: 8px;
    margin-bottom: 14px;
  }

  .color-bet-btn {
    padding: 13px 4px;
  }

  .color-bet-btn .btn-text {
    font-size: 14px;
  }

  /* 0-9 Number Chips Grid: Proportional Ball Fit */
  .number-chips-grid {
    gap: 6px;
    margin-bottom: 14px;
  }

  .number-chip-btn {
    padding: 6px 2px;
    border-radius: 10px;
  }

  .chip-ball {
    width: clamp(34px, 8.8vw, 42px);
    height: clamp(34px, 8.8vw, 42px);
    font-size: clamp(15px, 4vw, 19px);
  }

  .size-buttons-row {
    gap: 8px;
    margin-bottom: 12px;
  }

  .size-btn {
    padding: 13px 12px;
  }

  /* Aviator Mobile Arena */
  .aviator-arena-box {
    height: clamp(190px, 30vh, 250px);
  }

  .huge-multiplier-text {
    font-size: clamp(44px, 12vw, 62px);
  }

  .flew-away-badge {
    font-size: clamp(20px, 5.5vw, 28px);
  }

  .aviator-dual-deck {
    padding: 8px 10px;
    gap: 8px;
  }

  /* Mines 5x5 Mobile Board */
  .mines-arena-card {
    max-width: min(350px, 94vw);
    padding: 0 8px;
  }

  .mines-grid {
    gap: 6px;
    padding: 10px;
    border-radius: 14px;
  }

  .mine-tile {
    border-radius: 8px;
  }

  /* Floating Widgets Mobile Tuning */
  .floating-sidebar-widgets {
    right: 8px;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    gap: 7px;
  }

  .floating-widget-btn {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

  /* Category tabs in Home */
  .category-tabs-grid {
    gap: 6px;
    padding: 0 10px;
  }

  .cat-tab-btn {
    padding: 8px 2px;
  }

  .cat-tab-icon {
    font-size: 18px;
  }

  .cat-tab-label {
    font-size: 10px;
  }
}

/* 4. Extra Small Screens (< 370px, e.g. iPhone SE 1st gen / Galaxy Z Flip outer) */
@media screen and (max-width: 370px) {
  .period-countdown-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .period-countdown-card::after {
    display: none;
  }

  .period-right {
    align-items: center;
    padding: 8px 12px 14px 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
  }

  .chip-ball {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .nav-item-btn {
    font-size: 9.5px;
  }

  .nav-item-icon {
    font-size: 16px;
  }
}

/* Sheet Slide-Up Keyframes */
@keyframes sheetSlideUp {
  0% {
    transform: translateY(100%);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ======================================================== */
/* ⛔ GAME OFFLINE & MAINTENANCE OVERLAYS                   */
/* ======================================================== */
.game-featured-card.is-offline {
  position: relative;
  filter: grayscale(0.5);
  opacity: 0.78;
  border-color: rgba(239, 68, 68, 0.6) !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.25) !important;
  cursor: not-allowed;
}

.game-featured-card.is-offline:hover {
  transform: none !important;
}

.game-offline-stamp {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.5);
  z-index: 5;
  animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
  0% { opacity: 0.85; transform: scale(0.98); }
  100% { opacity: 1; transform: scale(1.02); }
}

/* In-Game Full View Maintenance Overlay */
.in-game-maintenance-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 14, 26, 0.95);
  backdrop-filter: blur(12px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  border-radius: 12px;
}

.maint-icon-wrap {
  width: 72px;
  height: 72px;
  background: rgba(239, 68, 68, 0.15);
  border: 2px solid rgba(239, 68, 68, 0.4);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 16px;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.35);
  animation: pulseGlow 2s infinite alternate;
}

.maint-title {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.maint-sub {
  font-size: 13.5px;
  color: #94a3b8;
  max-width: 380px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.maint-safe-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 22px;
}

.btn-maint-lobby {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #fff;
  font-weight: 800;
  font-size: 13.5px;
  padding: 12px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.35);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-maint-lobby:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.55);
}

/* ─── Language Selector & Modal ───────────────────────────── */
.lang-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.lang-picker-btn:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

.lang-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lang-card-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-card-option:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.35);
}

.lang-card-option.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.08));
  border-color: #f59e0b;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

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

.lang-option-flag {
  font-size: 26px;
  line-height: 1;
}

.lang-option-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lang-option-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
}

.lang-card-option.active .lang-option-name {
  color: #fde047;
}

.lang-option-sub {
  font-size: 11px;
  color: #94a3b8;
}

.lang-check-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: transparent;
  transition: all 0.2s ease;
}

.lang-card-option.active .lang-check-badge {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #0f172a;
  font-weight: 900;
}

/* ═══════════════════════════════════════════════════════════════════
   🎯 DRUK FORTUNE HERO MEMBER ACTIONS & RESPONSIVE HEADER AUTH FIX
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Hero Member Quick Actions ────────────────────────────── */
.hero-auth-actions {
  margin-top: 14px;
  width: 100%;
}

.hero-auth-guest {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
}

.hero-cta-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.hero-cta-btn:active {
  transform: translateY(0);
}

.hero-cta-login {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(59, 130, 246, 0.32));
  border-color: rgba(6, 182, 212, 0.65);
  color: #38bdf8;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.25);
}

.hero-cta-login:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.38), rgba(59, 130, 246, 0.48));
  border-color: rgba(6, 182, 212, 0.95);
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.45);
}

.hero-cta-register {
  background: linear-gradient(135deg, #059669, #10b981);
  border-color: rgba(52, 211, 153, 0.75);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.45);
}

.hero-cta-register:hover {
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.65);
}

.hero-cta-demo {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fde047;
}

.hero-cta-demo:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.8);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

/* Logged-In Hero Member Card */
.hero-auth-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 10px 14px;
  border-radius: 14px;
  gap: 10px;
  flex-wrap: wrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-member-profile {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.hero-member-profile:hover {
  opacity: 0.9;
}

.hero-member-avatar {
  font-size: 20px;
  background: rgba(255, 255, 255, 0.08);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 158, 11, 0.5);
  flex-shrink: 0;
}

.hero-member-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-member-user-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-member-id {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
}

.hero-member-vip {
  font-size: 9px;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b1120;
  padding: 1px 6px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.hero-member-bal {
  font-size: 14.5px;
  font-weight: 900;
  color: #34d399;
  letter-spacing: 0.2px;
}

.hero-member-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-cta-deposit {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  border-color: #fbbf24;
  font-weight: 900;
}

.hero-cta-play {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #fff;
  border-color: rgba(236, 72, 153, 0.6);
}

/* ─── Responsive Header Overlap & Collision Fixes ───────────── */
@media screen and (max-width: 540px) {
  .home-header {
    padding: 8px 12px;
    gap: 8px;
  }
  .app-header {
    padding: 8px 12px;
    gap: 8px;
  }
  .header-auth-group {
    gap: 4px;
    flex-shrink: 0;
  }
  .home-header-right {
    gap: 5px;
    flex-shrink: 0;
  }
  .header-right {
    gap: 5px;
    flex-shrink: 0;
  }
}

@media screen and (max-width: 480px) {
  .home-header {
    padding: 7px 10px;
    gap: 6px;
  }
  .app-header {
    padding: 7px 10px;
    gap: 6px;
  }
  .druk-brand {
    gap: 6px;
    min-width: 0;
    flex-shrink: 1;
  }
  .druk-brand-icon-wrap {
    width: 32px;
    height: 32px;
  }
  .druk-brand-text {
    font-size: clamp(12px, 3.4vw, 15px);
    letter-spacing: -0.2px;
  }
  .druk-brand-tagline {
    font-size: 8px;
  }
  .brand-logo {
    gap: 5px;
    min-width: 0;
    flex-shrink: 1;
  }
  .brand-logo-img-sm {
    width: 28px;
    height: 28px;
  }
  .brand-logo .logo-text {
    font-size: clamp(12px, 3.4vw, 15px);
  }
  .brand-logo .badge-tag {
    font-size: 8px;
    padding: 1px 4px;
  }

  /* Compact header auth buttons */
  .header-auth-group {
    gap: 4px;
  }
  .btn-auth-header {
    padding: 4px 7px;
    font-size: 10px;
    gap: 3px;
    border-radius: 12px;
  }
  .btn-auth-header span {
    font-size: 10px;
  }

  /* Compact sound and language controls */
  .home-header .icon-btn,
  .app-header .icon-btn {
    width: 29px;
    height: 29px;
    font-size: 13px;
  }
  .home-header .icon-btn svg,
  .app-header .icon-btn svg {
    width: 15px;
    height: 15px;
  }

  .lang-picker-btn {
    padding: 3px 6px;
    font-size: 9.5px;
    gap: 2px;
    border-radius: 14px;
  }
  .lang-picker-btn svg {
    display: none; /* Hide arrow chevron on mobile to preserve header real estate */
  }

  /* Hero action card responsiveness */
  .hero-auth-actions {
    margin-top: 10px;
  }
  .hero-auth-guest {
    gap: 5px;
  }
  .hero-cta-btn {
    padding: 7px 10px;
    font-size: 11px;
    border-radius: 10px;
    flex: 1 1 auto;
  }
  .hero-auth-member {
    padding: 7px 10px;
  }
  .hero-member-avatar {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }
  .hero-member-bal {
    font-size: 13px;
  }
  .hero-member-actions {
    gap: 5px;
  }
}

@media screen and (max-width: 375px) {
  .home-header {
    padding: 6px 8px;
    gap: 4px;
  }
  .app-header {
    padding: 6px 8px;
    gap: 4px;
  }
  .home-header-right {
    gap: 3px;
  }
  .header-right {
    gap: 3px;
  }
  .header-auth-group {
    gap: 3px;
  }
  .druk-brand {
    gap: 5px;
  }
  .druk-brand-icon-wrap {
    width: 28px;
    height: 28px;
  }
  .druk-brand-text {
    font-size: 12px;
  }
  .druk-brand-tagline {
    display: none; /* Hide secondary tagline on tight screens to guarantee no overlap */
  }
  .brand-logo-img-sm {
    width: 25px;
    height: 25px;
  }
  .brand-logo .logo-text {
    font-size: 12px;
  }
  .brand-logo .badge-tag {
    display: none;
  }
  .btn-auth-header {
    padding: 3px 5px;
    font-size: 9.5px;
    gap: 2px;
    border-radius: 10px;
  }
  .btn-auth-header span {
    font-size: 9.5px;
  }
  .home-header .icon-btn,
  .app-header .icon-btn {
    width: 27px;
    height: 27px;
    font-size: 12px;
  }
  .lang-picker-btn {
    padding: 3px 5px;
    font-size: 9px;
  }
}

/* ─── Member Presence & Real-time Vitals ─────────────────────── */
.member-presence-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.member-presence-tag.is-online {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
}

.member-presence-tag.is-offline {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #94a3b8;
}

.presence-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: presencePulse 1.8s infinite ease-in-out;
}

@keyframes presencePulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.member-presence-tag.is-offline .presence-dot {
  background: #94a3b8;
  box-shadow: none;
  animation: none;
}

/* Vitals Pill Row in Hero Card */
.member-vitals-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.member-vital-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 11px;
}

.vital-pill-icon {
  font-size: 11px;
}

.vital-pill-label {
  color: #94a3b8;
  font-size: 10.5px;
}

.vital-pill-val {
  color: #f1f5f9;
  font-weight: 700;
  font-size: 11px;
}

/* Member Engagement & Statistics Card */
.member-engagement-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 12px 14px 16px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.engagement-metric-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 10px;
  border-radius: 10px;
}

.eng-metric-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.eng-metric-info {
  display: flex;
  flex-direction: column;
}

.eng-metric-label {
  font-size: 10.5px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
}

.eng-metric-val {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
}

@media (max-width: 480px) {
  .member-engagement-card {
    margin: 10px 10px 14px;
    padding: 10px 8px;
    gap: 8px;
  }
  .engagement-metric-item {
    padding: 6px 8px;
    gap: 6px;
  }
  .eng-metric-icon {
    font-size: 18px;
  }
  .eng-metric-val {
    font-size: 12.5px;
  }
}




