/* ========================================
   1. CSS RESET + VARIABLES
   ======================================== */

:root {
  /* Colors */
  --bg-primary: #0f0f1a;
  --bg-secondary: #1a1a2e;
  --bg-card: #1e1e3a;
  --bg-card-hover: #252550;
  --bg-input: #16162b;

  --text-primary: #ffffff;
  --text-secondary: #a0a0c0;
  --text-muted: #6b6b8d;

  --accent-gold: #ffd700;
  --accent-gold-dim: #b8960f;
  --accent-red: #ff4757;
  --accent-green: #2ed573;
  --accent-blue: #3742fa;
  --accent-purple: #5f27cd;

  --border-color: rgba(255, 255, 255, 0.06);
  --border-active: rgba(255, 215, 0, 0.3);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow-gold: 0 0 20px rgba(255, 215, 0, 0.3);
  --shadow-glow-green: 0 0 20px rgba(46, 213, 115, 0.3);
  --shadow-glow-red: 0 0 20px rgba(255, 71, 87, 0.3);

  /* Sizing */
  --header-height: 44px;
  --game-nav-height: 40px;
  --bottom-bar-height: 50px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Safe areas */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  height: 100%;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  line-height: 1.5;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

input,
select {
  font-family: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
  -webkit-appearance: none;
  appearance: none;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

img {
  max-width: 100%;
  display: block;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* ========================================
   2. LAYOUT (header, main, bottom-bar)
   ======================================== */

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh; /* dynamic viewport height for mobile */
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: var(--header-height);
  min-height: 44px;
  max-height: 44px;
  padding-top: var(--safe-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 12px;
  padding-right: 12px;
  background: rgba(15, 15, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  flex-shrink: 0;
}

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

.logo {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.3px;
}

.logo span {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #ffed4a 50%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.balance-display {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  transition: var(--transition-normal);
}

.balance-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: none;
}

.balance-amount {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-gold);
  min-width: 50px;
  text-align: right;
  transition: color var(--transition-fast);
}

.balance-amount.balance-win {
  color: var(--accent-green);
  text-shadow: 0 0 10px rgba(46, 213, 115, 0.5);
  animation: balancePulse 0.5s ease;
}

.balance-amount.balance-loss {
  color: var(--accent-red);
  animation: balanceShake 0.4s ease;
}

.balance-currency {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-gold-dim);
}

.lang-btn {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: var(--transition-fast);
  min-width: 36px;
  min-height: 32px;
}

.lang-btn:active {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(0.95);
}

/* Main Content */
.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-top: calc(var(--header-height) + var(--safe-top) + var(--game-nav-height));
  padding-bottom: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom, 0));
  padding-left: 12px;
  padding-right: 12px;
  scroll-behavior: smooth;
}

/* Bottom Bar */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: var(--bottom-bar-height);
  min-height: 50px;
  max-height: 50px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(15, 15, 26, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-color);
  z-index: 100;
  flex-shrink: 0;
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  min-width: 64px;
  min-height: 44px;
  position: relative;
}

.tab-btn .tab-icon {
  font-size: 22px;
  transition: transform var(--transition-fast);
}

.tab-btn .tab-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.tab-btn.active .tab-icon {
  transform: scale(1.15);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent-gold);
}

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

/* ========================================
   3. GAME NAVIGATION (horizontal scroll icons)
   ======================================== */

.game-nav {
  position: fixed;
  top: calc(var(--header-height) + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: var(--game-nav-height);
  min-height: 40px;
  max-height: 40px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  background: rgba(15, 15, 26, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 90;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-shrink: 0;
}

.game-nav::-webkit-scrollbar {
  display: none;
}

.game-nav-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3px;
  min-width: unset;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.game-nav-item:active {
  transform: scale(0.92);
}

.game-nav-item.active {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.game-nav-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.game-nav-item.active .game-nav-icon {
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
}

.game-nav-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  max-width: 50px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-nav-item.active .game-nav-label {
  color: var(--accent-gold);
}

/* ========================================
   4. GAME CARDS GRID (home page)
   ======================================== */

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

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-normal);
  overflow: hidden;
  min-height: unset;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(180deg, var(--accent, #ffd700) 0%, transparent 100%);
  opacity: 0.06;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.game-card:active {
  transform: scale(0.96);
  border-color: var(--border-active);
}

.game-card:active::before {
  opacity: 0.12;
}

.game-card-icon {
  font-size: 2.5rem;
  margin-bottom: 2px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: transform var(--transition-normal);
  z-index: 1;
}

.game-card:active .game-card-icon {
  transform: scale(1.1);
}

.game-card-name {
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
  z-index: 1;
  line-height: 1.2;
  margin-top: 6px;
}

.game-card-type {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
}

/* ========================================
   5. GAME COMMON STYLES (bet controls, results)
   ======================================== */

.game-view {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.game-header {
  height: 36px;
  min-height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  margin-bottom: 0;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  min-height: 44px;
  transition: var(--transition-fast);
}

.back-btn:active {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0.96);
}

.game-title {
  font-size: 18px;
  font-weight: 700;
}

.game-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

/* Bet Controls */
.bet-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  height: 40px;
  margin: 4px 0;
}

.bet-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.bet-btn:active {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(0.92);
}

.bet-display {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 6px 12px;
}

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

.bet-input {
  width: 100%;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  background: transparent;
  min-height: 24px;
}

.bet-presets {
  display: flex;
  gap: 3px;
  padding: 2px 8px;
  height: 28px;
  margin-bottom: 4px;
  flex-wrap: nowrap;
}

.preset-btn {
  flex: 1;
  min-width: 36px;
  min-height: 24px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.preset-btn:active {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.2);
  color: var(--accent-gold);
  transform: scale(0.94);
}

/* Play / Action Button */
.play-btn {
  width: 100%;
  min-height: 40px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-green) 0%, #27ae60 100%);
  color: #fff;
  transition: var(--transition-normal);
  box-shadow: 0 4px 16px rgba(46, 213, 115, 0.25);
  position: relative;
  overflow: hidden;
}

.play-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.play-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(46, 213, 115, 0.2);
}

.play-btn:active::after {
  opacity: 1;
}

.play-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.play-btn.cashout {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #f0a500 100%);
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.25);
  animation: btnPulse 1.5s ease-in-out infinite;
}

.play-btn.danger {
  background: linear-gradient(135deg, var(--accent-red) 0%, #c0392b 100%);
  box-shadow: 0 4px 16px rgba(255, 71, 87, 0.25);
}

/* Result display */
.result-display {
  text-align: center;
  padding: 16px;
  border-radius: var(--radius-md);
  margin: 12px 0;
  font-weight: 700;
  font-size: 18px;
  transition: var(--transition-normal);
}

.result-display.win {
  background: rgba(46, 213, 115, 0.1);
  border: 1px solid rgba(46, 213, 115, 0.2);
  color: var(--accent-green);
}

.result-display.loss {
  background: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.2);
  color: var(--accent-red);
}

/* Text helpers */
.text-green { color: var(--accent-green) !important; }
.text-red { color: var(--accent-red) !important; }
.text-gold { color: var(--accent-gold) !important; }
.text-muted { color: var(--text-muted) !important; }

/* ========================================
   6. SLOT-SPECIFIC STYLES
   ======================================== */

.slot-machine {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  height: 100%;
  overflow: hidden;
}

.slot-reels {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 12px 0;
  overflow: hidden;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
}

.slot-reel {
  flex: 1;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slot-reel-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.slot-reel-inner.spinning {
  transition: none;
}

.slot-symbol {
  width: 70px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
}

.slot-reel::before,
.slot-reel::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 2;
  pointer-events: none;
}

.slot-reel::before {
  top: 0;
  background: linear-gradient(180deg, var(--bg-input) 0%, transparent 100%);
}

.slot-reel::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--bg-input) 0%, transparent 100%);
}

.slot-payline {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 62px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 6px;
  pointer-events: none;
  z-index: 3;
}

.slot-payline.win-line {
  border-color: var(--accent-gold);
  background: rgba(255, 215, 0, 0.05);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.2);
  animation: paylineGlow 0.8s ease-in-out infinite alternate;
}

.slot-info {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
}

.slot-info-item {
  text-align: center;
}

.slot-info-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slot-info-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-gold);
}

/* ========================================
   7. MINES-SPECIFIC STYLES
   ======================================== */

.mines-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-bottom: 12px;
}

.mines-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition-fast);
  min-height: 44px;
}

.mines-cell:active {
  transform: scale(0.92);
}

.mines-cell.revealed {
  cursor: default;
  pointer-events: none;
}

.mines-cell.gem {
  background: rgba(46, 213, 115, 0.15);
  border-color: rgba(46, 213, 115, 0.3);
  animation: cellReveal 0.3s ease;
}

.mines-cell.mine {
  background: rgba(255, 71, 87, 0.2);
  border-color: rgba(255, 71, 87, 0.4);
  animation: mineExplode 0.4s ease;
}

.mines-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 12px;
}

.mines-info-item {
  text-align: center;
}

.mines-info-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.mines-info-value {
  font-size: 16px;
  font-weight: 700;
}

.mines-config {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mines-config-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.mines-count-btn {
  min-width: 40px;
  min-height: 36px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.mines-count-btn.active {
  background: rgba(255, 71, 87, 0.15);
  border-color: rgba(255, 71, 87, 0.3);
  color: var(--accent-red);
}

/* ========================================
   8. DICE-SPECIFIC STYLES
   ======================================== */

.dice-game {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dice-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  min-height: 120px;
}

.dice-result {
  font-size: 64px;
  transition: transform var(--transition-normal);
}

.dice-result.rolling {
  animation: diceRoll 0.15s ease infinite;
}

.dice-slider-container {
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.dice-slider-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dice-slider-label {
  font-size: 12px;
  color: var(--text-muted);
}

.dice-slider-value {
  font-size: 14px;
  font-weight: 700;
}

.dice-slider {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(90deg, var(--accent-green) 0%, var(--accent-green) var(--slider-pct, 50%), var(--accent-red) var(--slider-pct, 50%), var(--accent-red) 100%);
  border-radius: 4px;
  outline: none;
  margin: 8px 0;
}

.dice-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--text-primary);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.dice-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.dice-stat {
  flex: 1;
  text-align: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
}

.dice-stat-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.dice-stat-value {
  font-size: 14px;
  font-weight: 700;
}

/* ========================================
   9. CRASH-SPECIFIC STYLES
   ======================================== */

.crash-game {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crash-chart {
  position: relative;
  height: 200px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.crash-canvas {
  width: 100%;
  height: 100%;
}

.crash-multiplier-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(28px, 8vw, 42px);
  font-weight: 800;
  color: var(--text-primary);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.crash-multiplier-display.crashed {
  color: var(--accent-red);
  animation: crashShake 0.5s ease;
}

.crash-multiplier-display.flying {
  color: var(--accent-green);
}

.crash-history {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: none;
}

.crash-history::-webkit-scrollbar {
  display: none;
}

.crash-history-item {
  min-width: 48px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  flex-shrink: 0;
}

.crash-history-item.high {
  background: rgba(46, 213, 115, 0.15);
  color: var(--accent-green);
}

.crash-history-item.low {
  background: rgba(255, 71, 87, 0.15);
  color: var(--accent-red);
}

.crash-auto-cashout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.crash-auto-label {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.crash-auto-input {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  background: var(--bg-input);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

/* ========================================
   10. WHEEL-SPECIFIC STYLES
   ======================================== */

.wheel-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.wheel-container {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 8px auto;
}

.wheel-canvas {
  width: 100%;
  height: 100%;
  transition: transform 4s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 24px solid var(--accent-gold);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  z-index: 2;
}

.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-gold);
  z-index: 2;
}

.wheel-segments {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 8px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.wheel-segment-btn {
  min-width: 48px;
  min-height: 36px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.wheel-segment-btn.active {
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.15);
}

/* ========================================
   11. PLINKO-SPECIFIC STYLES
   ======================================== */

.plinko-game {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plinko-board {
  position: relative;
  width: 100%;
  aspect-ratio: 0.85;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.plinko-canvas {
  width: 100%;
  height: 100%;
}

.plinko-multipliers {
  display: flex;
  gap: 2px;
  justify-content: center;
  padding: 4px;
}

.plinko-mult {
  flex: 1;
  text-align: center;
  padding: 4px 2px;
  font-size: 9px;
  font-weight: 700;
  border-radius: 4px;
  min-width: 0;
}

.plinko-mult.low {
  background: rgba(255, 71, 87, 0.2);
  color: var(--accent-red);
}

.plinko-mult.mid {
  background: rgba(255, 215, 0, 0.2);
  color: var(--accent-gold);
}

.plinko-mult.high {
  background: rgba(46, 213, 115, 0.2);
  color: var(--accent-green);
}

.plinko-risk {
  display: flex;
  gap: 6px;
}

.plinko-risk-btn {
  flex: 1;
  min-height: 36px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.plinko-risk-btn.active {
  background: rgba(72, 219, 251, 0.12);
  border-color: rgba(72, 219, 251, 0.3);
  color: #48dbfb;
}

/* ========================================
   12. TOWER-SPECIFIC STYLES
   ======================================== */

.tower-game {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tower-grid {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

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

.tower-cell {
  flex: 1;
  aspect-ratio: 1.8;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition-fast);
  min-height: 40px;
}

.tower-cell:active {
  transform: scale(0.94);
}

.tower-cell.safe {
  background: rgba(46, 213, 115, 0.15);
  border-color: rgba(46, 213, 115, 0.3);
  animation: cellReveal 0.3s ease;
}

.tower-cell.danger {
  background: rgba(255, 71, 87, 0.2);
  border-color: rgba(255, 71, 87, 0.4);
  animation: mineExplode 0.4s ease;
}

.tower-cell.current-row {
  border-color: rgba(255, 215, 0, 0.3);
  background: rgba(255, 215, 0, 0.06);
}

.tower-cell.locked {
  opacity: 0.3;
  pointer-events: none;
}

.tower-level-info {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.tower-level-label {
  font-size: 12px;
  color: var(--text-muted);
}

.tower-level-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-gold);
}

/* ========================================
   13. HISTORY PAGE
   ======================================== */

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
}

.history-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.history-item.win {
  border-left: 3px solid var(--accent-green);
}

.history-item.loss {
  border-left: 3px solid var(--accent-red);
}

.history-game {
  font-size: 14px;
  font-weight: 700;
}

.history-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-bet {
  font-size: 12px;
  color: var(--text-secondary);
}

.history-result {
  font-size: 14px;
  font-weight: 700;
}

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

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 15px;
}

.empty-icon {
  font-size: 48px;
  opacity: 0.5;
}

/* ========================================
   14. PROFILE PAGE
   ======================================== */

.profile-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 0;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.profile-avatar {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #f0a500 100%);
  color: var(--bg-primary);
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.2);
}

.profile-name {
  font-size: 20px;
  font-weight: 700;
}

.profile-balance {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-gold);
}

.profile-stats {
  display: flex;
  gap: 8px;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.stat-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-btn {
  width: 100%;
  min-height: 48px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.profile-btn:active {
  background: var(--bg-card-hover);
  transform: scale(0.98);
}

/* ========================================
   15. ANIMATIONS (@keyframes)
   ======================================== */

@keyframes balancePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes balanceShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(255, 215, 0, 0.25); }
  50% { box-shadow: 0 4px 24px rgba(255, 215, 0, 0.45); }
}

@keyframes cellReveal {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes mineExplode {
  0% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

@keyframes diceRoll {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(15deg) scale(1.1); }
  50% { transform: rotate(-10deg) scale(0.95); }
  75% { transform: rotate(8deg) scale(1.05); }
  100% { transform: rotate(0deg) scale(1); }
}

@keyframes paylineGlow {
  0% { box-shadow: 0 0 8px rgba(255, 215, 0, 0.1); }
  100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.35); }
}

@keyframes crashShake {
  0%, 100% { transform: translate(-50%, -50%); }
  15% { transform: translate(calc(-50% + 6px), -50%); }
  30% { transform: translate(calc(-50% - 6px), calc(-50% + 4px)); }
  45% { transform: translate(calc(-50% + 4px), calc(-50% - 4px)); }
  60% { transform: translate(calc(-50% - 3px), calc(-50% + 2px)); }
  75% { transform: translate(calc(-50% + 2px), calc(-50% - 1px)); }
}

@keyframes spinIn {
  0% { transform: rotate(0deg); opacity: 0.5; }
  100% { transform: rotate(360deg); opacity: 1; }
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

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

@keyframes winGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
    border-color: rgba(255, 215, 0, 0.6);
  }
}

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

@keyframes winContentPop {
  0% { opacity: 0; transform: scale(0.5); }
  60% { transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes megaShake {
  0%, 100% { transform: scale(1) rotate(0deg); }
  10% { transform: scale(1.05) rotate(-2deg); }
  20% { transform: scale(1.05) rotate(2deg); }
  30% { transform: scale(1.05) rotate(-1deg); }
  40% { transform: scale(1.05) rotate(1deg); }
  50% { transform: scale(1); }
}

/* Loading Spinner */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.loading-spinner::after {
  content: '';
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ========================================
   16. WIN OVERLAY
   ======================================== */

.win-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.win-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.win-content {
  text-align: center;
  animation: winContentPop 0.5s ease forwards;
}

.win-overlay.big .win-content {
  animation: winContentPop 0.5s ease forwards, megaShake 0.8s ease 0.5s;
}

.win-overlay.mega .win-content {
  animation: winContentPop 0.5s ease forwards, megaShake 0.6s ease 0.4s infinite;
}

.win-emoji {
  font-size: 56px;
  margin-bottom: 12px;
}

.win-overlay.big .win-emoji,
.win-overlay.mega .win-emoji {
  font-size: 72px;
}

.win-label {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-gold);
  text-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
  margin-bottom: 8px;
}

.win-overlay.big .win-label,
.win-overlay.mega .win-label {
  font-size: 36px;
  background: linear-gradient(90deg, var(--accent-gold), #fff, var(--accent-gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 2s linear infinite;
}

.win-amount {
  font-size: clamp(24px, 7vw, 36px);
  font-weight: 800;
  color: var(--accent-green);
  text-shadow: 0 2px 12px rgba(46, 213, 115, 0.4);
}

.win-overlay.big .win-amount,
.win-overlay.mega .win-amount {
  font-size: clamp(28px, 8vw, 44px);
}

.win-mult {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ========================================
   17. TELEGRAM WEB APP SPECIFICS
   ======================================== */

/* Telegram insets */
.tg-inset-top {
  padding-top: var(--safe-top);
}

.tg-inset-bottom {
  padding-bottom: var(--safe-bottom);
}

/* Haptic feedback visual cue classes */
.haptic-light {
  transition: transform 0.1s ease;
}

.haptic-light:active {
  transform: scale(0.97);
}

.haptic-medium:active {
  transform: scale(0.95);
}

.haptic-heavy:active {
  transform: scale(0.92);
}

/* Telegram theme variable overrides */
body.tg-theme {
  --bg-primary: var(--tg-theme-bg-color, #0f0f1a);
  --text-primary: var(--tg-theme-text-color, #ffffff);
}

/* Disable text selection in game areas */
.game-area {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Prevent pull-to-refresh */
body {
  overscroll-behavior: none;
}

.main-content {
  overscroll-behavior: contain;
}

/* ========================================
   18. RESPONSIVE ADJUSTMENTS
   ======================================== */

/* Very small screens (320px) */
@media screen and (max-width: 340px) {
  .games-grid {
    gap: 6px;
  }

  .game-card {
    padding: 14px 8px 12px;
    min-height: 110px;
  }

  .game-card-icon {
    font-size: 34px;
  }

  .game-card-name {
    font-size: 11px;
  }

  .slot-reel {
    width: 56px;
  }

  .slot-symbol {
    width: 56px;
    height: 48px;
    font-size: 28px;
  }

  .mines-grid {
    gap: 4px;
    padding: 6px;
  }

  .mines-cell {
    font-size: 18px;
  }

  .tower-cell {
    font-size: 14px;
  }

  .wheel-container {
    width: 240px;
    height: 240px;
  }

  .win-label {
    font-size: 22px;
  }

  .win-amount {
    font-size: 28px;
  }
}

/* Medium screens (iPhone Plus / Android) */
@media screen and (min-width: 400px) {
  .game-card {
    padding: 10px 6px;
  }

  .game-card-icon {
    font-size: 2rem;
  }
}

/* Larger screens / tablets */
@media screen and (min-width: 500px) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .crash-chart {
    height: min(260px, 35vh);
  }
}

/* Landscape orientation */
@media screen and (orientation: landscape) and (max-height: 500px) {
  :root {
    --header-height: 36px;
    --game-nav-height: 34px;
    --bottom-bar-height: 40px;
  }

  .game-nav-icon {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }

  .game-card {
    padding: 6px 4px;
  }

  .game-card-icon {
    font-size: 30px;
    margin-bottom: 4px;
  }

  .crash-chart {
    height: 160px;
  }

  .wheel-container {
    width: 200px;
    height: 200px;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   TELEGRAM WEBAPP MOBILE FIXES
   ======================================== */

/* Touch fix for WebApp */
button, .game-card, [onclick] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: pointer;
  user-select: none;
}

/* Tab button compact */
.tab-btn {
  padding: 4px 12px;
  min-height: 40px;
  min-width: 56px;
}

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

.tab-btn .tab-label {
  font-size: 9px;
}

/* ============= WALLET PAGE ============= */
.wallet-page {
  padding: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.wallet-balance-card {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}

.wallet-balance-label {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.wallet-balance-amount {
  font-size: 28px;
  font-weight: 800;
  color: #f59e0b;
  margin-bottom: 4px;
}

.wallet-balance-usdt {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.wallet-rate {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}

.wallet-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 16px;
}

.wallet-tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.wallet-tab.active {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.wallet-section {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 16px;
}

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

.wallet-preset-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  color: #fff;
}

.wallet-preset-btn:hover, .wallet-preset-btn:active {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
}

.preset-usdt {
  font-size: 14px;
  font-weight: 700;
  color: #f59e0b;
}

.preset-rub {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

.wallet-custom {
  margin-bottom: 12px;
}

.wallet-custom label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}

.wallet-input {
  width: 100%;
  padding: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
}

.wallet-input:focus {
  border-color: #f59e0b;
}

.wallet-convert {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
  text-align: right;
}

.wallet-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.wallet-note {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 12px;
  line-height: 1.4;
}

.wallet-action-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
}

.wallet-action-btn.deposit-action {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.wallet-action-btn.deposit-action:hover {
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.wallet-action-btn.withdraw-action {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.wallet-action-btn.withdraw-action:hover {
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.wallet-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
