/* ==========================================================================
   style.css — Modern Luxury European Casino Aesthetics
   Prestige Monte Carlo Styling: Deep Emerald Green, Polished Gold & Obsidian Glass
   100% Brand Sanitized: Luxury European Casino Aesthetics
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #050d0a;
  --bg-obsidian: rgba(10, 20, 16, 0.92);
  --felt-emerald: #0a3b29;
  --felt-emerald-dark: #06261a;
  --felt-emerald-light: #10593c;
  --gold-primary: #d4af37;
  --gold-bright: #f9e79f;
  --gold-dark: #997a15;
  --gold-glow: rgba(212, 175, 55, 0.4);
  --ruby-red: #c01e2e;
  --ruby-red-dark: #8b101c;
  --obsidian-black: #111514;
  --obsidian-black-dark: #090c0b;
  --text-primary: #ffffff;
  --text-muted: #a3b8b0;
  --border-gold: rgba(212, 175, 55, 0.35);
  --glass-panel: rgba(14, 28, 22, 0.82);
  --glass-blur: blur(14px);

  /* Fonts */
  --font-serif: "Cinzel", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Defaults */
h1, h2, h3, h4, .brand-title, .phase-title {
  font-family: var(--font-serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Luxury Glassmorphism Container */
.glass-panel {
  background: var(--glass-panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Gold Gradient Text */
.gold-text {
  background: linear-gradient(135deg, #fff2cc 0%, #d4af37 50%, #aa771c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Buttons & Micro-interactions
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: none;
  outline: none;
}

.btn-gold {
  background: linear-gradient(135deg, #f3d068 0%, #d4af37 60%, #b38b1d 100%);
  color: #1a1405;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #fae292 0%, #dfbd4b 60%, #c49a26 100%);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.55);
  transform: translateY(-1px);
}

.btn-gold:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  background: rgba(30, 48, 40, 0.8);
  color: #d1ded8;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.btn-secondary:hover {
  background: rgba(45, 72, 60, 0.9);
  color: #ffffff;
  border-color: var(--gold-primary);
}

.btn:disabled,
.btn-gold:disabled,
.btn-secondary:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transform: none !important;
  box-shadow: none !important;
  filter: grayscale(0.4);
}

.btn-gold-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
  background: linear-gradient(135deg, #f3d068 0%, #d4af37 100%);
  color: #1a1405;
  font-weight: 700;
}

/* ==========================================================================
   Top HUD Styling
   ========================================================================== */

.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(8, 18, 14, 0.88);
  border-bottom: 1px solid var(--border-gold);
  z-index: 100;
  gap: 16px;
}

/* Player Badge */
.player-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-disc {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
  background: #d4af37;
  flex-shrink: 0;
}

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

.player-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.player-chips {
  font-size: 0.85rem;
  color: var(--gold-bright);
  font-weight: 700;
  text-shadow: 0 0 6px rgba(212, 175, 55, 0.4);
}

/* Phase Badge & Timer */
.phase-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(14, 32, 24, 0.9);
  padding: 8px 20px;
  border-radius: 30px;
  border: 1px solid var(--border-gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.phase-title {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
}

.phase-betting {
  color: #38ef7d;
  text-shadow: 0 0 8px rgba(56, 239, 125, 0.4);
}

.phase-spinning {
  color: #f7b733;
  text-shadow: 0 0 8px rgba(247, 183, 51, 0.4);
}

.phase-payout {
  color: #e040fb;
  text-shadow: 0 0 8px rgba(224, 64, 251, 0.4);
}

.phase-timer {
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  min-width: 44px;
  text-align: center;
}

/* Winning History Strip */
.history-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  max-width: 380px;
  padding: 4px 0;
}

.history-pill {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.pill-green {
  background: #0b6623;
  border-color: #2ecc71;
}

.pill-red {
  background: var(--ruby-red);
  border-color: #ff6b6b;
}

.pill-black {
  background: #141414;
  border-color: #555555;
}

.pill-latest {
  border: 2px solid var(--gold-bright);
  box-shadow: 0 0 10px var(--gold-glow);
  transform: scale(1.1);
}

/* ==========================================================================
   3D Viewport
   ========================================================================== */

#roulette-canvas-container {
  width: 100%;
  height: 380px;
  position: relative;
  background: radial-gradient(circle at center, #0a261c 0%, #030a07 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--border-gold);
}

#roulette-canvas-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Result Overlay Banner */
.result-banner {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 28px;
  background: rgba(10, 24, 18, 0.95);
  backdrop-filter: blur(16px);
  border: 2px solid var(--gold-primary);
  border-radius: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px var(--gold-glow);
  z-index: 50;
  transition: all 0.3s ease;
}

.result-banner.has-win {
  border-color: #ffd700;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 215, 0, 0.65), inset 0 0 16px rgba(255, 215, 0, 0.35);
  animation: winBannerDrop 0.65s cubic-bezier(0.17, 0.89, 0.32, 1.25) forwards;
}

@keyframes winBannerDrop {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-35px) scale(0.9);
  }
  65% {
    opacity: 1;
    transform: translateX(-50%) translateY(4px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.result-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-20px);
}

.result-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.result-number.result-pulse-gold {
  border-color: #ffd700;
  animation: resultNumberThrob 1.2s infinite ease-in-out;
}

@keyframes resultNumberThrob {
  0% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  }
  50% {
    transform: scale(1.14);
    box-shadow: 0 0 32px rgba(255, 215, 0, 0.95), inset 0 0 10px rgba(255, 215, 0, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  }
}

.result-green { background: #0b6623; }
.result-red { background: var(--ruby-red); }
.result-black { background: #141414; }

.result-headline {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.result-headline.headline-gold {
  background: linear-gradient(135deg, #fff2a3 0%, #ffd700 50%, #f39c12 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.result-subline {
  font-size: 0.9rem;
  color: #e2f5ec;
  margin-top: 2px;
}

/* Winning Spot Highlight on Roulette Betting Felt */
.grid-cell.spot-winning-highlight {
  position: relative;
  border-color: #ffd700 !important;
  box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.65), 0 0 28px rgba(255, 215, 0, 0.85) !important;
  animation: feltSpotPulse 1.2s infinite ease-in-out;
  z-index: 10;
}

@keyframes feltSpotPulse {
  0% {
    box-shadow: inset 0 0 15px rgba(255, 215, 0, 0.5), 0 0 18px rgba(255, 215, 0, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: inset 0 0 26px rgba(255, 215, 0, 0.9), 0 0 34px rgba(255, 215, 0, 1);
    transform: scale(1.03);
  }
  100% {
    box-shadow: inset 0 0 15px rgba(255, 215, 0, 0.5), 0 0 18px rgba(255, 215, 0, 0.6);
    transform: scale(1);
  }
}

/* Chip Balance Glow Pulse in HUD */
.chips-won-pulse {
  animation: chipBalanceGlow 1.5s ease-out;
  color: #ffd700 !important;
  text-shadow: 0 0 14px rgba(255, 215, 0, 0.95);
}

@keyframes chipBalanceGlow {
  0% { transform: scale(1); filter: brightness(1); }
  25% { transform: scale(1.18); filter: brightness(1.6); }
  50% { transform: scale(1.08); filter: brightness(1.3); }
  100% { transform: scale(1); filter: brightness(1); }
}

/* ==========================================================================
   European Betting Board Styling
   ========================================================================== */

.board-container {
  padding: 20px;
  background: radial-gradient(circle at center, #0e4530 0%, #07251a 100%);
  border: 2px solid var(--border-gold);
  border-radius: 16px;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.7), 0 15px 40px rgba(0, 0, 0, 0.6);
  user-select: none;
  -webkit-user-select: none;
}

#roulette-betting-grid {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.roulette-board {
  display: flex;
  margin: 0 auto;
  max-width: 900px;
  width: 100%;
}

/* Zero Cell */
.cell-zero {
  width: 60px;
  flex-shrink: 0;
  min-height: 156px;
  height: 156px;
  background: #0b6623;
  border: 1px solid var(--border-gold);
  border-radius: 8px 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.cell-zero:hover {
  filter: brightness(1.2);
}

/* Numbers Grid (3 rows x 12 cols) */
.numbers-grid {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.number-row {
  display: flex;
  height: 52px;
}

.grid-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  border: 1px solid var(--border-gold);
  cursor: pointer;
  transition: all 0.15s ease;
}

.grid-cell:hover {
  filter: brightness(1.25);
  box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.5);
}

.number-cell {
  flex: 1;
}

.cell-red {
  background: var(--ruby-red);
}

.cell-black {
  background: #141615;
}

/* Column Bets (2 to 1) */
.columns-container {
  display: flex;
  flex-direction: column;
  width: 64px;
  flex-shrink: 0;
}

.column-cell {
  height: 52px;
  flex: 1;
  background: rgba(14, 40, 28, 0.9);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
}

.column-cell:first-child {
  border-radius: 0 8px 0 0;
}

.column-cell:last-child {
  border-radius: 0 0 8px 0;
}

/* Outside Rows (Dozens & Even-money) */
.outside-row {
  display: flex;
  margin-left: 60px; /* Exact offset for 60px zero cell */
  margin-right: 64px; /* Exact offset for 64px column cell */
}

.dozens-row {
  margin-top: 4px;
  height: 44px;
}

.dozen-cell {
  flex: 1;
  background: rgba(12, 34, 24, 0.9);
  font-size: 0.88rem;
  color: var(--gold-bright);
}

.even-money-row {
  margin-top: 4px;
  height: 44px;
}

.cell-outside {
  flex: 1;
  background: rgba(8, 26, 18, 0.9);
  font-size: 0.85rem;
  color: #f0f0f0;
}

.cell-red-outside {
  background: var(--ruby-red);
}

.cell-black-outside {
  background: #141615;
}

/* ==========================================================================
   Chip Tokens & Stacking
   ========================================================================== */

.chip-slot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
}

.chip-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #d4af37 50%, #886208 100%);
  color: #1a1405;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
  animation: chipDrop 0.22s ease-out;
}

@keyframes chipDrop {
  0% { transform: scale(1.6) translateY(-14px); opacity: 0; }
  100% { transform: scale(1.0) translateY(0); opacity: 1; }
}

/* ==========================================================================
   Chip Selector Dock
   ========================================================================== */

.controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  gap: 16px;
  flex-wrap: wrap;
}

.chip-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chip-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px dashed #ffffff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
  outline: none;
}

.chip-btn[data-val="10"] {
  background: radial-gradient(circle at 35% 35%, #718096 0%, #4a5568 100%);
}

.chip-btn[data-val="50"] {
  background: radial-gradient(circle at 35% 35%, #4299e1 0%, #2b6cb0 100%);
}

.chip-btn[data-val="100"] {
  background: radial-gradient(circle at 35% 35%, #48bb78 0%, #276749 100%);
}

.chip-btn[data-val="500"] {
  background: radial-gradient(circle at 35% 35%, #9f7aea 0%, #6b46c1 100%);
}

.chip-btn[data-val="1000"] {
  background: radial-gradient(circle at 35% 35%, #ecc94b 0%, #b7791f 100%);
  color: #1a1405;
  border-color: #1a1405;
}

.chip-btn[data-val="5000"] {
  background: radial-gradient(circle at 35% 35%, #f87171 0%, #b91c1c 100%);
  color: #ffffff;
  border-color: #fecaca;
}

.chip-btn[data-val="10000"] {
  background: radial-gradient(circle at 35% 35%, #2d3748 0%, #0f172a 100%);
  color: #f6e05e;
  border-color: #d4af37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.chip-btn[data-val="25000"] {
  background: radial-gradient(circle at 35% 35%, #38bdf8 0%, #0369a1 100%);
  color: #ffffff;
  border-color: #e0f2fe;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.bj-quick-bet-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip-btn:hover {
  transform: translateY(-4px) scale(1.08);
}

.chip-btn.active {
  transform: translateY(-6px) scale(1.15);
  border: 3px solid #ffffff;
  box-shadow: 0 0 18px var(--gold-glow), 0 8px 20px rgba(0, 0, 0, 0.7);
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   Multiplayer Chat Drawer
   ========================================================================== */

.chat-drawer {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: rgba(10, 22, 17, 0.92);
  border: 1px solid var(--border-gold);
}

.chat-header {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-bright);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  margin-bottom: 10px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 6px;
  max-height: 280px;
  min-height: 180px;
}

.chat-item {
  font-size: 0.88rem;
  line-height: 1.4;
  word-break: break-word;
}

.chat-system {
  color: var(--gold-bright);
  font-style: italic;
  background: rgba(212, 175, 55, 0.08);
  padding: 4px 8px;
  border-radius: 6px;
  border-left: 2px solid var(--gold-primary);
}

.chat-sender {
  font-weight: 700;
  margin-right: 4px;
}

.chat-body {
  color: #e2f0ea;
}

.chat-quick-reactions {
  display: flex;
  gap: 6px;
  margin: 10px 0 8px 0;
  flex-wrap: wrap;
}

.reaction-pill {
  background: rgba(25, 48, 38, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #d1ded8;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.reaction-pill:hover {
  background: rgba(45, 80, 65, 0.9);
  color: #ffffff;
  border-color: var(--gold-primary);
}

.chat-input-bar {
  display: flex;
  gap: 8px;
}

.chat-input-bar input {
  flex: 1;
  background: rgba(6, 16, 12, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 6px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.chat-input-bar input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-glow);
}

/* ==========================================================================
   VIP Onboarding & Inside Bets Modals
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 8, 6, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  width: 90%;
  max-width: 480px;
  padding: 36px 32px;
  text-align: center;
  background: rgba(14, 28, 22, 0.96);
  border: 2px solid var(--gold-primary);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px var(--gold-glow);
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 8px 0 24px 0;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  background: rgba(6, 16, 12, 0.9);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  color: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.form-group input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px var(--gold-glow);
}

.color-palette {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.color-swatch {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.color-swatch:hover {
  transform: scale(1.15);
}

.color-swatch.active {
  border: 3px solid #ffffff;
  box-shadow: 0 0 14px currentColor;
  transform: scale(1.25);
}

.starting-balance-callout {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 12px;
  font-size: 0.95rem;
  color: var(--gold-bright);
  margin-bottom: 24px;
}

/* Global utility classes */
.hidden {
  display: none !important;
}

.login-error-msg {
  display: none;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: #fca5a5;
  margin-bottom: 18px;
  text-align: center;
}

.login-error-msg.visible {
  display: block;
}

.btn-block {
  width: 100%;
  padding: 14px;
  font-size: 1.05rem;
}

/* Inside Bets Helper Modal */
.inside-modal-content {
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.inside-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.inside-tab {
  flex: 1;
  padding: 8px;
  background: rgba(20, 40, 30, 0.8);
  border: 1px solid var(--border-gold);
  color: #c0d0c8;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.inside-tab.active {
  background: var(--gold-primary);
  color: #1a1405;
}

.inside-bets-scroll {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  padding: 8px 4px;
  max-height: 360px;
}

.btn-inside-preset {
  padding: 10px;
  background: rgba(14, 38, 28, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-inside-preset:hover {
  background: rgba(28, 68, 50, 0.95);
  border-color: var(--gold-primary);
}

/* ==========================================================================
   Toast Alerts
   ========================================================================== */

#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}

.toast-msg {
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  animation: toastSlide 0.3s ease-out;
  transition: opacity 0.3s ease;
  pointer-events: auto;
}

.toast-info {
  background: rgba(16, 44, 34, 0.95);
  border: 1px solid var(--gold-primary);
}

.toast-warning {
  background: rgba(64, 46, 12, 0.95);
  border: 1px solid #f59e0b;
}

.toast-error {
  background: rgba(64, 16, 20, 0.95);
  border: 1px solid #ef4444;
}

.toast-fade {
  opacity: 0;
}

@keyframes toastSlide {
  0% { transform: translateX(50px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   Sidebar Tabs, Leaderboard & Live Bets Panel
   ========================================================================== */

.sidebar-tab-buttons {
  display: flex;
  background: rgba(4, 12, 9, 0.98);
  border-bottom: 1px solid var(--border-gold);
}

.sidebar-tab {
  flex: 1;
  padding: 12px 6px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #9cb3a7;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.sidebar-tab:hover {
  color: #ffffff;
  background: rgba(212, 175, 55, 0.08);
}

.sidebar-tab.active {
  color: var(--gold-bright);
  border-bottom: 2px solid var(--gold-primary);
  background: rgba(212, 175, 55, 0.12);
}

.tab-badge {
  background: var(--gold-primary);
  color: #061510;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
}

.sidebar-tab-pane {
  display: none;
  flex: 1;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.sidebar-tab-pane.active {
  display: flex;
}

.tab-pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(6, 18, 13, 0.6);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 700;
}

.sub-counter {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--gold-bright);
  font-weight: 600;
}

.leaderboard-scroll,
.active-bets-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Leaderboard Item */
.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(14, 34, 25, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.leaderboard-item.is-me {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
}

.leaderboard-rank {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 800;
  width: 24px;
  text-align: center;
  color: var(--gold-bright);
}

.leaderboard-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  flex-shrink: 0;
}

.leaderboard-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.leaderboard-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.leaderboard-chips {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--gold-bright);
}

/* Live Active Bet Card */
.bet-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(10, 26, 19, 0.7);
  border-left: 3px solid var(--gold-primary);
  border-radius: 6px;
  font-size: 0.82rem;
}

.bet-card-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #ffffff;
  flex-shrink: 0;
}

.bet-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bet-card-player {
  font-weight: 700;
  color: #ffffff;
}

.bet-card-target {
  color: #a3c4b5;
  font-size: 0.78rem;
}

.bet-card-amount {
  font-weight: 800;
  color: var(--gold-bright);
  font-size: 0.88rem;
}

.empty-state-notice {
  text-align: center;
  color: #7a9c8d;
  font-size: 0.85rem;
  font-style: italic;
  padding: 24px 12px;
}

/* ==========================================================================
   Master Unified Header
   ========================================================================== */

.master-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  background: rgba(6, 15, 11, 0.95);
  border-bottom: 1px solid var(--border-gold);
  height: 60px;
  box-sizing: border-box;
  z-index: 100;
  gap: 16px;
}

/* Left: Brand & Game Switcher */
.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.brand-badge {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-crest {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold-primary);
  text-shadow: 0 0 10px var(--gold-glow);
}

.brand-sub {
  font-family: var(--font-serif);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  color: #a3c4b5;
  margin-top: 2px;
}

.game-nav-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 5px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.game-pill {
  padding: 4px 12px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 16px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.game-pill:hover:not(.disabled) {
  color: #ffffff;
}

.game-pill.active {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

.game-pill.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Center: Phase Badge & History */
.header-center {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

/* Right: Rad van Fortuin, Bank Button & Player Profile */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-wheel-hud {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22) 0%, rgba(183, 121, 31, 0.32) 100%);
  border: 1px solid var(--gold-primary);
  color: var(--gold-bright);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-wheel-hud:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.38) 0%, rgba(183, 121, 31, 0.48) 100%);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}

.btn-wheel-hud.ready .wheel-hud-icon {
  animation: hudWheelSlowSpin 9s linear infinite;
  color: #fde047;
}

@keyframes hudWheelSlowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn-wheel-hud.cooldown {
  background: rgba(8, 22, 16, 0.78);
  border-color: rgba(212, 175, 55, 0.35);
  color: #cbd5e1;
}

.wheel-hud-label {
  color: #ffffff;
}

.wheel-hud-cooldown {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid #10b981;
  color: #6ee7b7;
  letter-spacing: 0.04em;
}

.btn-wheel-hud.cooldown .wheel-hud-cooldown {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(212, 175, 55, 0.35);
  color: var(--gold-bright);
}

.btn-bank {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.35) 100%);
  border: 1px solid #10b981;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-bank:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.45) 0%, rgba(5, 150, 105, 0.55) 100%);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.45);
  transform: translateY(-1px);
}

.bank-badge {
  background: #e11d48;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Casino Bank & Deals Modal Overhaul
   ========================================================================== */

html #bank-modal .bank-modal-content {
  max-width: min(680px, calc(100vw - 24px));
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  text-align: left;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.45) rgba(6, 20, 14, 0.85);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.85), 0 0 28px rgba(212, 175, 55, 0.16);
}

html #bank-modal .bank-modal-content::-webkit-scrollbar,
.vault-history-list::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

html #bank-modal .bank-modal-content::-webkit-scrollbar-track,
.vault-history-list::-webkit-scrollbar-track {
  background: rgba(6, 20, 14, 0.85);
  border-radius: 6px;
}

html #bank-modal .bank-modal-content::-webkit-scrollbar-thumb,
.vault-history-list::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.42);
  border-radius: 6px;
}

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

.btn-modal-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: #a3c4b5;
  cursor: pointer;
  line-height: 1;
  padding: 0 6px;
  transition: color 0.2s ease;
}

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

.bank-tabs-bar {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
  overflow-x: auto;
}

.bank-tab {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  padding: 7px 12px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: #94a3b8;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: center;
}

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

.bank-tab.active {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-primary);
  color: var(--gold-bright);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.bank-tab-pane {
  display: none;
}

.bank-tab-pane.active {
  display: block;
}

.bank-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 6px;
  display: block;
}

.label-with-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.pill-value-badge {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.15);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.bank-select, .bank-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(8, 20, 15, 0.85);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.bank-select:focus, .bank-input:focus {
  border-color: #38ef7d;
  box-shadow: 0 0 8px rgba(56, 239, 125, 0.3);
}

.bank-select option {
  background: #08140f;
  color: #ffffff;
}

/* Quick Chip Buttons */
.quick-chips-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.btn-quick-chip {
  padding: 4px 11px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-quick-chip:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--gold-primary);
  transform: translateY(-1px);
}

.btn-quick-chip.chip-all {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
}

.btn-quick-chip.chip-all:hover {
  background: rgba(16, 185, 129, 0.3);
  border-color: #10b981;
}

/* Segmented Control for Deal Type (Replaces radio buttons) */
.segmented-control {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.segment-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

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

.segment-btn.active {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

/* Preset Pill Group (Replaces Range Sliders) */
.preset-pill-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-pill {
  flex: 1;
  min-width: 52px;
  padding: 8px 10px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.preset-pill:hover {
  color: #ffffff;
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.preset-pill.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(183, 121, 31, 0.35) 100%);
  border-color: var(--gold-primary);
  color: var(--gold-bright);
  box-shadow: 0 0 10px var(--gold-glow);
}

/* Financial Calculation Summary Card */
.loan-summary-card {
  background: rgba(8, 22, 16, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.summary-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat-caption {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-num {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-highlight .stat-num {
  font-size: 1.05rem;
}

.text-gold {
  color: var(--gold-bright);
}

.text-emerald {
  color: #34d399;
}

.summary-footer {
  font-size: 0.78rem;
  color: #cbd5e1;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  padding-top: 8px;
  line-height: 1.4;
}

.btn-lg {
  padding: 11px 16px;
  font-size: 0.92rem;
}

/* Inbox & Schulden Cards */
.inbox-section {
  margin-bottom: 22px;
}

.inbox-section-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold-bright);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
}

.inbox-cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deal-card, .debt-card, .loan-card {
  padding: 12px 14px;
  background: rgba(8, 20, 15, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deal-card-header, .debt-card-header, .loan-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: #ffffff;
}

.deal-card-body {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.deal-card-actions, .debt-card-actions, .loan-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.gold-badge {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-bright);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
}

.debt-badge {
  background: rgba(225, 29, 72, 0.2);
  border: 1px solid #e11d48;
  color: #fda4af;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
}

.loan-badge {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #6ee7b7;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: #f59e0b;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-emerald {
  background: #10b981;
}

.debt-card-details, .loan-card-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #94a3b8;
}

.debt-card-note {
  font-size: 0.78rem;
  color: #cbd5e1;
}

.btn-gold-sm {
  background: linear-gradient(135deg, var(--gold-primary) 0%, #b7791f 100%);
  border: none;
  color: #1a1405;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #042117;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-gold-sm:disabled,
.btn-emerald:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.btn-secondary-sm {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.tab-badge.badge-emerald {
  background: #10b981;
  color: #052e16;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.68rem;
  margin-left: 4px;
}

/* ==========================================================================
   Rad van Fortuin (15-Minute Monte Carlo Lucky Wheel)
   ========================================================================== */

.wheel-fortune-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.wheel-status-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(6, 22, 15, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-sizing: border-box;
}

.wheel-status-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wheel-status-caption {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  text-transform: uppercase;
}

.wheel-status-main {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
}

.wheel-timer-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.wheel-timer-pill.ready {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.wheel-timer-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
}

.wheel-timer-val {
  font-family: var(--font-serif);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}

.wheel-timer-pill.ready .wheel-timer-val {
  color: #6ee7b7;
}

.wheel-stage-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 16px;
  margin: 2px 0;
}

.wheel-pointer-crest {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.75));
  transform-origin: 50% 10px;
}

.wheel-pointer-crest.pointer-ticking {
  animation: wheelPointerTick 0.24s ease-in-out 14;
}

@keyframes wheelPointerTick {
  0%, 100% { transform: translateX(-50%) rotate(0deg); }
  45% { transform: translateX(-50%) rotate(-14deg); }
}

.wheel-Disc-frame {
  position: relative;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 22px rgba(212, 175, 55, 0.2);
}

.wheel-rotor {
  width: 290px;
  height: 290px;
  border-radius: 50%;
  will-change: transform;
}

.wheel-center-hub {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, #114b34 0%, #05160f 85%);
  border: 2.5px solid var(--gold-primary);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.8), inset 0 0 8px rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  pointer-events: none;
}

.wheel-hub-monogram {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--gold-bright);
  letter-spacing: 0.05em;
}

.wheel-result-banner {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(212, 175, 55, 0.24) 100%);
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.25);
}

.wheel-result-title {
  font-family: var(--font-serif);
  font-size: 0.84rem;
  font-weight: 800;
  color: #fde68a;
  letter-spacing: 0.06em;
}

.wheel-result-amount {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 900;
  color: #6ee7b7;
}

.wheel-spin-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

.wheel-prize-legend {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  box-sizing: border-box;
}

.legend-item {
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(6, 20, 14, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.legend-item.legend-jackpot {
  border-color: rgba(212, 175, 55, 0.55);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.14) 0%, rgba(6, 20, 14, 0.85) 100%);
}

.legend-tier {
  font-size: 0.68rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legend-val {
  font-size: 0.84rem;
  font-weight: 800;
  color: #f8fafc;
}

.legend-item.legend-lottery {
  border-color: rgba(192, 132, 252, 0.55);
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.24) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.legend-item.legend-lottery .legend-val {
  color: #e9d5ff;
}

.wheel-stage-backdrop {
  position: absolute;
  inset: 6px auto auto 50%;
  width: 310px;
  height: 310px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16) 0%, rgba(16, 185, 129, 0.06) 55%, rgba(0, 0, 0, 0) 74%);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.wheel-stage-wrapper.is-spinning .wheel-stage-backdrop {
  opacity: 0.95;
  background: conic-gradient(from 0deg, rgba(250, 204, 21, 0.24), rgba(16, 185, 129, 0.06), rgba(192, 132, 252, 0.22), rgba(250, 204, 21, 0.24));
  animation: wheelBackdropSpin 2.4s linear infinite;
  filter: blur(14px);
}

.wheel-stage-wrapper.is-crawling .wheel-stage-backdrop {
  animation: wheelTensionPulse 0.45s ease-in-out infinite;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.34) 0%, rgba(239, 68, 68, 0.22) 55%, rgba(0, 0, 0, 0) 76%);
}

.wheel-stage-wrapper.is-win-burst .wheel-Disc-frame {
  box-shadow: 0 0 38px rgba(250, 204, 21, 0.55), 0 0 18px rgba(16, 185, 129, 0.45);
}

@keyframes wheelBackdropSpin {
  to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes wheelTensionPulse {
  0%, 100% { transform: translateX(-50%) scale(0.98); opacity: 0.85; }
  50% { transform: translateX(-50%) scale(1.06); opacity: 1; }
}

@keyframes wheelBulbChaseA {
  0%, 49% { fill: #fef08a; opacity: 1; }
  50%, 100% { fill: #b45309; opacity: 0.45; }
}

@keyframes wheelBulbChaseB {
  0%, 49% { fill: #b45309; opacity: 0.45; }
  50%, 100% { fill: #34d399; opacity: 1; }
}

.wheel-rim-bulb.bulb-a {
  animation: wheelBulbChaseA 1.1s linear infinite;
}

.wheel-rim-bulb.bulb-b {
  animation: wheelBulbChaseB 1.1s linear infinite;
}

.wheel-stage-wrapper.is-spinning .wheel-rim-bulb.bulb-a {
  animation-duration: 0.24s;
}

.wheel-stage-wrapper.is-spinning .wheel-rim-bulb.bulb-b {
  animation-duration: 0.24s;
}

.wheel-slice-path {
  transition: filter 0.14s ease, stroke-width 0.14s ease;
}

.wheel-slice-path.is-pointer-active {
  filter: brightness(1.34);
  stroke: #fef08a;
  stroke-width: 2px;
}

.wheel-slice-path.is-winner-slice {
  filter: brightness(1.52);
  stroke: #ffffff;
  stroke-width: 2.6px;
}

.wheel-live-readout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(6, 20, 14, 0.82);
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-sizing: border-box;
}

.wheel-live-readout.is-tension {
  border-color: #f59e0b;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.55), rgba(153, 27, 27, 0.45));
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.3);
}

.wheel-live-readout.is-winner {
  border-color: #34d399;
  background: rgba(6, 78, 59, 0.45);
}

.wheel-live-readout .wlr-tag {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.18);
  color: #fde047;
  flex-shrink: 0;
}

.wheel-live-readout.is-tension .wlr-tag {
  background: #f59e0b;
  color: #0f172a;
}

.wheel-live-readout .wlr-val {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 800;
  color: #f8fafc;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wheel-result-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wheel-result-banner.is-jackpot {
  background: linear-gradient(135deg, rgba(161, 98, 7, 0.88), rgba(6, 95, 70, 0.92));
  border-color: #fde047;
  box-shadow: 0 0 26px rgba(253, 224, 71, 0.42);
}

.wheel-result-banner.is-big-win {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.34), rgba(6, 78, 59, 0.7));
  border-color: #fde047;
}

.wheel-result-banner.is-lottery {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.88), rgba(15, 23, 42, 0.94));
  border-color: #c084fc;
  box-shadow: 0 0 22px rgba(192, 132, 252, 0.38);
}

.wheel-result-banner.is-lottery .wheel-result-amount {
  color: #f5d0fe;
}

.wheel-result-action {
  background: linear-gradient(135deg, #c084fc, #9333ea);
  color: #ffffff;
  border: 1px solid #f3e8ff;
  font-weight: 800;
  flex-shrink: 0;
}

.wheel-spark-particle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 6;
  animation: wheelSparkFly 1.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wheelSparkFly {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--spark-dx, 0px)), calc(-50% + var(--spark-dy, 0px))) rotate(var(--spark-rot, 180deg)) scale(0.3);
  }
}

/* ==========================================================================
   Monte Carlo Privékluis (#bank-pane-vault)
   ========================================================================== */

#bank-pane-vault {
  display: none;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

#bank-pane-vault.active {
  display: flex;
}

.vault-hero-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(6, 32, 22, 0.92), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(212, 175, 55, 0.38);
  box-shadow: inset 0 0 18px rgba(212, 175, 55, 0.08);
}

.vault-door-emblem {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
}

.vault-door-emblem.is-turning .vault-spokes-group {
  transform-origin: 40px 40px;
  animation: vaultWheelTurn 0.68s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes vaultWheelTurn {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vault-hero-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vault-rank-row,
.vault-milestone-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.vault-rank-badge {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fde047;
}

.vault-privacy-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.42);
  color: #6ee7b7;
}

.vault-milestone-text {
  font-size: 0.72rem;
  color: #cbd5e1;
}

.vault-total-earned {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fde68a;
}

.vault-wealth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.vault-stat-box {
  padding: 10px;
  border-radius: 10px;
  background: rgba(6, 20, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vault-stat-box.is-primary {
  border-color: rgba(212, 175, 55, 0.48);
  background: linear-gradient(155deg, rgba(212, 175, 55, 0.12), rgba(6, 20, 14, 0.88));
}

.vault-stat-box .vsb-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.vault-stat-box .vsb-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.94rem;
  font-weight: 800;
  color: #f8fafc;
}

.vault-stat-box .vsb-val.is-vault {
  color: #fde047;
}

.vault-stat-box .vsb-val.is-rate {
  color: #34d399;
}

.vault-stat-box .vsb-sub {
  font-size: 0.63rem;
  color: rgba(203, 213, 225, 0.7);
}

.vault-capacity-track,
.vault-timer-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.vault-capacity-fill {
  height: 100%;
  background: linear-gradient(90deg, #b45309, #fde047);
  transition: width 0.35s ease;
}

.vault-timer-fill {
  height: 100%;
  background: linear-gradient(90deg, #059669, #34d399);
  transition: width 0.4s ease;
}

.vault-interest-card,
.vault-transfer-card {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(6, 20, 14, 0.76);
  border: 1px solid rgba(212, 175, 55, 0.22);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.vault-interest-card.is-ready {
  border-color: #34d399;
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.48), rgba(6, 20, 14, 0.88));
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.28);
}

.vault-interest-top,
.vault-interest-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vault-interest-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f8fafc;
}

.vault-interest-sub {
  font-size: 0.67rem;
  color: rgba(203, 213, 225, 0.72);
  margin-top: 2px;
}

.vault-countdown-pill {
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.36);
  flex-shrink: 0;
}

.vault-countdown-pill .vcp-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
  font-weight: 800;
  color: #fde047;
}

.vault-interest-card.is-ready .vault-countdown-pill {
  border-color: #34d399;
  background: rgba(6, 95, 70, 0.75);
}

.vault-interest-card.is-ready .vcp-val {
  color: #ecfdf5;
}

.vault-pending-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
}

.vault-pending-wrap .vpw-label {
  color: #94a3b8;
}

.vault-pending-wrap .vpw-val {
  font-family: 'JetBrains Mono', monospace;
  color: #6ee7b7;
}

.vault-claim-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

.vault-card-title {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fde68a;
}

.vault-action-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vault-upgrades-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vault-upgrade-card {
  padding: 12px;
  border-radius: 10px;
  background: rgba(6, 20, 14, 0.82);
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vuc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.vuc-title {
  font-size: 0.76rem;
  font-weight: 800;
  color: #f8fafc;
}

.vuc-lvl-badge {
  font-size: 0.64rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.2);
  color: #fde047;
}

.vuc-lvl-badge.is-rate {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.vuc-transition {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.vuc-next {
  color: #fde047;
}

.vuc-next.is-rate {
  color: #34d399;
}

.vuc-note {
  font-size: 0.66rem;
  color: rgba(203, 213, 225, 0.74);
  line-height: 1.3;
  min-height: 24px;
}

.vault-log-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vault-history-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 130px;
  overflow-y: auto;
}

.vault-log-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
}

.vault-log-row .vlr-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #94a3b8;
  flex-shrink: 0;
}

.vault-log-row .vlr-note {
  flex: 1;
  color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vault-log-row .vlr-val {
  font-family: 'JetBrains Mono', monospace;
  color: #fde047;
  flex-shrink: 0;
}

.vault-log-row.is-interest .vlr-val,
.vault-log-row.is-milestone .vlr-val {
  color: #34d399;
}

.vault-log-row.is-withdraw .vlr-val {
  color: #93c5fd;
}

@media (max-width: 640px) {
  html #bank-modal .bank-modal-content {
    padding: 14px;
    width: calc(100vw - 16px);
  }
  .bank-tabs-bar {
    flex-wrap: wrap;
    overflow-x: visible;
  }
  .bank-tab {
    flex: 1 1 auto;
    padding: 6px 8px;
    font-size: 0.74rem;
  }
  .vault-wealth-grid,
  .vault-upgrades-grid,
  .vault-action-buttons {
    grid-template-columns: 1fr;
  }
  .vault-hero-card {
    padding: 10px;
    gap: 10px;
  }
}

/* ==========================================================================
   Casino Noodfonds (Bailout Vault Card)
   ========================================================================== */

.bailout-card {
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(8, 22, 16, 0.85);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bailout-header h3 {
  margin: 0 0 4px 0;
  font-size: 1.15rem;
}

.bailout-subtitle {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.4;
}

.bailout-requirements {
  display: flex;
  gap: 16px;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.req-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #94a3b8;
}

.req-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.req-item.req-met {
  color: #e2e8f0;
}

.req-item.req-met .req-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.bailout-timer-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bailout-timer-title {
  font-size: 0.75rem;
  color: #a3c4b5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bailout-timer-val {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.timer-ready {
  color: #10b981;
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.timer-waiting {
  color: #f59e0b;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.bailout-reason {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* =========================================================================
 * Player Monogram Avatars & Luxury Typography
 * ========================================================================= */

.avatar-monogram {
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-glow);
  user-select: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.avatar-monogram:hover {
  transform: scale(1.05);
  box-shadow: 0 0 14px var(--gold-bright);
}

.monogram-letter {
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.monogram-letter-sm {
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.avatar-lg {
  width: 64px !important;
  height: 64px !important;
  border-width: 3px !important;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
}

.avatar-lg .monogram-letter {
  font-size: 1.75rem;
  font-weight: 800;
}

/* =========================================================================
 * Live Game Presence Badges
 * ========================================================================= */

.presence-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  backdrop-filter: blur(4px);
  width: fit-content;
  white-space: nowrap;
}

.presence-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  flex-shrink: 0;
}

.badge-roulette {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #34d399;
}

.badge-lobby {
  background: rgba(100, 116, 139, 0.22);
  border: 1px solid rgba(100, 116, 139, 0.45);
  color: #cbd5e1;
}

.badge-blackjack,
.badge-poker,
.badge-gokkasten {
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #fde047;
}

/* =========================================================================
 * Leaderboard Item Enhancements
 * ========================================================================= */

.leaderboard-item:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-1px);
}

.leaderboard-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

/* =========================================================================
 * Profile Tab & Inspector Styles
 * ========================================================================= */

.profile-tab-content {
  padding: 4px 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-card {
  background: rgba(14, 34, 25, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.profile-user-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #ffffff;
  margin: 0;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.stat-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-box-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #a3c4b5;
  letter-spacing: 0.06em;
}

.stat-box-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-sans);
}

.text-gold {
  color: var(--gold-bright) !important;
}

.text-emerald {
  color: #10b981 !important;
}

.profile-member-since {
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.profile-color-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.profile-color-section .field-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #a3c4b5;
  letter-spacing: 0.06em;
  font-weight: 700;
}

/* Modal Inspector */
.profile-inspector-content {
  max-width: 440px;
  width: 92%;
  padding: 24px;
  text-align: left;
}

.inspector-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
}

.inspector-actions {
  margin-top: 6px;
}

/* ==========================================================================
   Milestone 3: 12-Hue Monte Carlo Luxury Avatar System & Metallic Rims
   ========================================================================== */

.avatar-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-weight: 800;
  color: #fdfbf7;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.25s ease;
  user-select: none;
  flex-shrink: 0;
  overflow: hidden;
}

/* Sizing Matrix */
.avatar-sm { width: 28px; height: 28px; font-size: 0.72rem; border: 1.5px solid var(--border-gold); }
.avatar-md { width: 44px; height: 44px; font-size: 1.05rem; border: 2px solid var(--border-gold); }
.avatar-lg { width: 58px; height: 58px; font-size: 1.35rem; border: 2.5px solid var(--border-gold); }
.avatar-xl { width: 76px; height: 76px; font-size: 1.8rem; border: 3px solid var(--border-gold); }

/* Metallic Rim Lighting Overlay */
.avatar-badge::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 65%);
  pointer-events: none;
}

/* 12-Hue Monte Carlo Luxury Palette */
.avatar-gold { background-color: #c5a059; border-color: #f9e79f; }
.avatar-emerald { background-color: #0d5c3a; border-color: #34d399; }
.avatar-sapphire { background-color: #1e3a8a; border-color: #60a5fa; }
.avatar-ruby { background-color: #991b1b; border-color: #f87171; }
.avatar-obsidian { background-color: #18181b; border-color: #a1a1aa; }
.avatar-platinum { background-color: #475569; border-color: #e2e8f0; }
.avatar-amethyst { background-color: #581c87; border-color: #c084fc; }
.avatar-bronze { background-color: #78350f; border-color: #fbbf24; }
.avatar-turquoise { background-color: #0f766e; border-color: #2dd4bf; }
.avatar-champagne { background-color: #831843; border-color: #f472b6; }
.avatar-amber { background-color: #92400e; border-color: #f59e0b; }
.avatar-titanium { background-color: #334155; border-color: #94a3b8; }

/* Active Turn Thinking Pulse Animation */
@keyframes activeTurnPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.85), 0 0 12px rgba(212, 175, 55, 0.7);
    border-color: #f9e79f;
  }
  50% {
    box-shadow: 0 0 0 10px rgba(212, 175, 55, 0), 0 0 24px rgba(249, 231, 159, 0.95);
    border-color: #ffffff;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0), 0 0 12px rgba(212, 175, 55, 0.7);
    border-color: #f9e79f;
  }
}

.is-active-turn {
  animation: activeTurnPulse 1.8s infinite cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.08);
  z-index: 10;
}

/* ==========================================================================
   Milestone 3: 3D CSS Perspective Cards & Animations
   ========================================================================== */

.bj-card {
  position: relative;
  width: 72px;
  height: 104px;
  perspective: 1200px;
  display: inline-block;
  margin-right: -24px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.65);
  border-radius: 6px;
  user-select: none;
  transform: translate3d(0, 0, 0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bj-card:last-child {
  margin-right: 0;
}

.bj-card.deal-animating {
  animation: cardDealSlide 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--deal-delay, 0s);
  will-change: transform, opacity;
}

.bj-card.card-settled {
  animation: none !important;
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
}

.bj-card.card-flip-reveal {
  animation: cardHoleFlip 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  will-change: transform;
}

.bj-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.bj-card-flip-3d {
  transform: rotateY(180deg);
}

/* Face Down (Initial State) */
.bj-card.face-down .bj-card-inner {
  transform: none;
}

.bj-card.face-down .bj-card-back {
  display: flex;
}

.bj-card.face-down .bj-card-front {
  display: none;
}

/* Face Up (Flipped State) */
.bj-card.face-up .bj-card-inner {
  transform: none;
}

.bj-card.face-up .bj-card-front {
  display: flex;
}

.bj-card.face-up .bj-card-back {
  display: none;
}

/* Luxury Card Back */
.bj-card-back {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  border: 2px solid #c5a059;
  background: radial-gradient(circle at 50% 50%, #0a261c 0%, #04120d 100%);
  background-image: repeating-linear-gradient(45deg, rgba(197, 160, 89, 0.15) 0, rgba(197, 160, 89, 0.15) 2px, transparent 0, transparent 8px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bj-card-back::after {
  content: 'LE GRAND';
  font-family: var(--font-serif);
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  color: #c5a059;
  border: 1px solid rgba(197, 160, 89, 0.55);
  padding: 3px 5px;
  border-radius: 3px;
}

/* Luxury Card Front */
.bj-card-front {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #fdfbf7;
  border: 1px solid #dcd7cc;
  border-radius: 6px;
  padding: 5px 6px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-red { color: #b91c1c; }
.card-black { color: #111827; }

.card-corner-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.card-rank {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 900;
}

.card-suit-svg {
  width: 13px;
  height: 13px;
  margin-top: 2px;
}

.card-center-suit {
  align-self: center;
  width: 26px;
  height: 26px;
  opacity: 0.92;
}

.card-corner-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
  transform: rotate(180deg);
}

/* Sliding Deal Animation from Dealer Shoe with authentic physical deceleration */
@keyframes cardDealSlide {
  0% {
    opacity: 0;
    transform: translate3d(160px, -150px, 0) rotate(22deg) scale(0.6);
    box-shadow: 0 22px 32px rgba(0, 0, 0, 0.75);
  }
  60% {
    opacity: 1;
    transform: translate3d(-3px, 2px, 0) rotate(-2deg) scale(1.03);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.6);
  }
  85% {
    transform: translate3d(1px, -1px, 0) rotate(0.8deg) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.65);
  }
}

/* 3D Dealer Hole Card Reveal Flip */
@keyframes cardHoleFlip {
  0% {
    transform: rotateY(180deg) scale(0.98);
  }
  50% {
    transform: rotateY(90deg) scale(1.08) translateY(-6px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.8);
  }
  100% {
    transform: rotateY(0deg) scale(1) translateY(0);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.65);
  }
}

/* Natural Blackjack Card Gold Aura Glow */
@keyframes naturalAuraGlow {
  0% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.7), 0 0 18px rgba(212, 175, 55, 0.4); }
  50% { box-shadow: 0 0 22px rgba(249, 231, 159, 1), 0 0 32px rgba(212, 175, 55, 0.8), inset 0 0 6px rgba(249, 231, 159, 0.7); }
  100% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.7), 0 0 18px rgba(212, 175, 55, 0.4); }
}

.bj-card.card-highlight-gold .bj-card-front {
  border: 2px solid #f9e79f;
  animation: naturalAuraGlow 1.5s infinite ease-in-out;
}

/* ==========================================================================
   Milestone 3: Tabbed Chat Interface Styling
   ========================================================================== */

.chat-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-tab-bar {
  display: flex;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(4, 14, 10, 0.8);
}

.chat-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #a3b8b0;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-tab-btn:hover {
  color: #fdfbf7;
  background: rgba(212, 175, 55, 0.06);
}

.chat-tab-btn.active {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.12);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.45);
}

.chat-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: linear-gradient(135deg, #f3d068 0%, #d4af37 100%);
  color: #0b1410;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.chat-unread-badge.hidden {
  display: none !important;
}

.chat-messages-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
}

.chat-messages-wrapper .chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
}

.chat-messages-wrapper .chat-messages.hidden {
  display: none !important;
}

/* Category typography formatters (Strict 0 Emojis) */
.msg-category-tag {
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 1px 5px;
  border-radius: 3px;
  margin-right: 4px;
}

.tag-blackjack {
  background: rgba(212, 175, 55, 0.22);
  color: #f9e79f;
  border: 1px solid rgba(212, 175, 55, 0.6);
}

.tag-poker {
  background: rgba(180, 130, 20, 0.25);
  color: #fef08a;
  border: 1px solid rgba(212, 175, 55, 0.7);
}

.tag-grand-win {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.6);
}

.tag-dealer {
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.6);
}

.tag-casino {
  background: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

/* ==========================================================================
   Milestone 3: Navigation Bet Lock Styling
   ========================================================================== */

.game-pill.navigation-locked,
.btn-seat-leave.navigation-locked,
.navigation-locked {
  opacity: 0.68;
  cursor: not-allowed !important;
  position: relative;
}

.game-pill.navigation-locked::after {
  content: ' [Gegrendeld]';
  font-size: 0.68rem;
  color: #f87171;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 0 6px rgba(248, 113, 113, 0.6);
}

/* ==========================================================================
   Milestone 3: Animated Balance Ticker & Golden Particle Shimmer
   ========================================================================== */

.ticker-active-glow {
  color: #fff2cc !important;
  text-shadow: 0 0 12px rgba(249, 231, 159, 0.95), 0 0 24px rgba(212, 175, 55, 0.8) !important;
  transform: scale(1.06);
  transition: transform 0.15s ease;
}

.win-shimmer-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 90;
}

/* Outcome Result Banner */
.blackjack-result-banner {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 42px;
  background: rgba(6, 26, 18, 0.96);
  border: 2px solid var(--gold-primary);
  border-radius: 12px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(212, 175, 55, 0.45);
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  animation: bannerDropIn 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.blackjack-result-banner.hidden {
  display: none !important;
}

@keyframes bannerDropIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-24px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.banner-crest-text {
  font-family: var(--font-serif);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.banner-main-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #fff2cc 0%, #d4af37 60%, #aa771c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.banner-payout-text {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  color: #34d399;
  margin-top: 4px;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
}

.banner-sub-text {
  font-size: 0.78rem;
  color: #a3c4b5;
  margin-top: 2px;
}

/* ==========================================================================
   Milestone 3: Blackjack Table Components & Controls Bar
   ========================================================================== */

/* Table Switcher Pills */
.bj-table-switcher {
  display: flex;
  gap: 8px;
}

.bj-table-pill {
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #a3c4b5;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bj-table-pill:hover {
  color: #ffffff;
  border-color: var(--gold-bright);
}

.bj-table-pill.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(6, 43, 30, 0.5));
  border-color: var(--gold-primary);
  color: var(--gold-bright);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.bj-table-title-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.bj-table-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold-bright);
  letter-spacing: 0.08em;
}

.bj-table-limits {
  font-size: 0.72rem;
  color: #a3c4b5;
  letter-spacing: 0.05em;
}

/* Shoe Penetration Bar */
.bj-shoe-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 6px;
  padding: 5px 10px;
}

.shoe-label {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  color: var(--gold-primary);
  font-weight: 700;
}

.shoe-bar-track {
  width: 70px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.shoe-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 70%, #ef4444 100%);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.shoe-text {
  font-size: 0.72rem;
  color: #ffffff;
  font-weight: 600;
  min-width: 46px;
  text-align: right;
}

/* Dealer Area */
.bj-dealer-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
  margin-top: 10px;
}

.bj-shoe-graphic {
  width: 54px;
  height: 68px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid var(--border-gold);
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
  box-sizing: border-box;
}

.shoe-slit {
  width: 80%;
  height: 3px;
  background: #c5a059;
  border-radius: 2px;
}

.shoe-badge {
  font-family: var(--font-serif);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: #c5a059;
  font-weight: 800;
}

.bj-dealer-dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dealer-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dealer-label {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--gold-bright);
}

.dealer-score-pill {
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-gold);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
}

.dealer-score-pill.hidden {
  display: none !important;
}

.dealer-cards-dock {
  display: flex;
  align-items: center;
  min-height: 108px;
}

/* Seats Elements */
.seat-empty-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}

.btn-seat-sit {
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px dashed var(--gold-primary);
  border-radius: 8px;
  color: var(--gold-bright);
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-seat-sit:hover {
  background: rgba(212, 175, 55, 0.15);
  border-style: solid;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.seat-player-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 20, 15, 0.85);
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 6px 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  width: 100%;
  box-sizing: border-box;
}

.seat-player-box.hidden {
  display: none !important;
}

.seat-avatar-dock {
  position: relative;
}

.seat-player-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.seat-username {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seat-chips-count {
  font-size: 0.7rem;
  color: var(--gold-bright);
}

.btn-seat-leave {
  background: transparent;
  border: none;
  color: #f87171;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.btn-seat-leave.hidden {
  display: none !important;
}

.seat-betting-area {
  margin: 10px 0 6px;
}

.betting-spot {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px dashed rgba(212, 175, 55, 0.65);
  background: radial-gradient(circle, rgba(13, 59, 46, 0.7) 0%, rgba(6, 43, 30, 0.4) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.betting-spot:hover {
  border-color: var(--gold-bright);
  border-style: solid;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.5);
  transform: scale(1.05);
}

.betting-spot.my-bet-spot {
  border-color: rgba(212, 175, 55, 0.95);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35), inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.betting-spot.can-bet {
  border-color: var(--gold-bright);
  animation: mySpotPulse 2.4s infinite ease-in-out;
}

@keyframes mySpotPulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.35), inset 0 0 8px rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 175, 55, 0.85);
  }
  50% {
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.6), inset 0 0 12px rgba(212, 175, 55, 0.25);
    border-color: #ffd700;
  }
}

.betting-spot.my-bet-spot:hover,
.betting-spot.can-bet:hover {
  border-color: #ffffff;
  border-style: solid;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.75), inset 0 0 12px rgba(212, 175, 55, 0.35);
  transform: scale(1.08);
}

.bet-spot-label {
  font-family: var(--font-serif);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: rgba(249, 231, 159, 0.7);
  font-weight: 700;
  pointer-events: none;
}

.seat-chips-dock {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.seat-cards-container {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: flex-end;
  justify-content: center;
  min-height: 110px;
  width: 100%;
}

.seat-cards-container:has(.seat-hand-block.split-hand:not(.hidden)) {
  gap: 10px;
}

.seat-cards-container:has(.seat-hand-block.split-hand:not(.hidden)) .bj-card {
  width: 54px;
  height: 78px;
  margin-right: -18px;
}

.seat-cards-container:has(.seat-hand-block.split-hand:not(.hidden)) .bj-card:last-child {
  margin-right: 0;
}

.seat-cards-container:has(.seat-hand-block.split-hand:not(.hidden)) .seat-cards-dock {
  min-height: 82px;
}

.seat-cards-container:has(.seat-hand-block.split-hand:not(.hidden)) .seat-hand-block:not(.is-active-hand) {
  opacity: 0.72;
}

.seat-hand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: filter 0.25s ease;
}

.seat-hand-block.is-active-hand {
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.8));
  position: relative;
}

.seat-hand-block.is-active-hand .hand-score-badge {
  border-color: var(--gold-bright);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
}

.seat-hand-block.hidden {
  display: none !important;
}

.hand-score-badge {
  padding: 1px 7px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--border-gold);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hand-score-badge.hidden {
  display: none !important;
}

.seat-cards-dock {
  display: flex;
  align-items: center;
  min-height: 104px;
}

/* Blackjack Controls Panel */
.bj-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 20px;
  margin-top: 16px;
  background: rgba(6, 20, 15, 0.9);
}

.bj-bet-chips-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.bj-bet-chips-label {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: #a3c4b5;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.bj-action-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-action {
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);
  border: 1.5px solid transparent;
  outline: none;
}

.btn-action:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-hit {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-color: #34d399;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-hit:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.6);
}

.btn-stand {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border-color: #f87171;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.btn-stand:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.6);
}

.btn-double {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border-color: #fbbf24;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-double:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.6);
}

.btn-split {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #ffffff;
  border-color: #a78bfa;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.btn-split:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.6);
}

/* ==========================================================================
   Monte Carlo Beurs (Casino-Fondsen, Speler-Aandelen & Portefeuille)
   ========================================================================== */

.btn-exchange-hud {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fde68a;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.btn-exchange-hud #exchange-badge {
  font-size: 0.64rem;
  padding: 1px 5px;
  min-width: 16px;
  line-height: 1.2;
}

@media (max-width: 759px) {
  html .services-group .btn-exchange-hud .exchange-hud-label {
    display: none;
  }
}

.vault-exchange-shortcut {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

html #exchange-modal .exchange-modal-shell {
  width: min(860px, calc(100vw - 24px));
  max-width: min(860px, calc(100vw - 24px));
  max-height: 92vh;
  overflow-y: auto;
  text-align: left;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.45) rgba(6, 20, 14, 0.88);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.88), 0 0 32px rgba(212, 175, 55, 0.16);
}

html #exchange-modal .exchange-modal-shell::-webkit-scrollbar,
.exchange-players-list::-webkit-scrollbar,
.exchange-feed-list::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

html #exchange-modal .exchange-modal-shell::-webkit-scrollbar-track,
.exchange-players-list::-webkit-scrollbar-track,
.exchange-feed-list::-webkit-scrollbar-track {
  background: rgba(6, 20, 14, 0.85);
  border-radius: 6px;
}

html #exchange-modal .exchange-modal-shell::-webkit-scrollbar-thumb,
.exchange-players-list::-webkit-scrollbar-thumb,
.exchange-feed-list::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.42);
  border-radius: 6px;
}

.exchange-modal-header {
  padding: 11px 16px;
}

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

.exchange-index-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(10, 26, 20, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.36);
  color: #fde68a;
  margin-left: 6px;
}

.exchange-index-pill.is-up { color: #34d399; border-color: rgba(52, 211, 153, 0.42); }
.exchange-index-pill.is-down { color: #f87171; border-color: rgba(248, 113, 113, 0.42); }

.exchange-summary-strip {
  display: grid;
  grid-template-columns: 0.85fr 1fr 1.5fr;
  gap: 8px;
}

.ex-sum-card {
  background: rgba(7, 21, 15, 0.86);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 10px;
  padding: 8px 11px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
}

.ex-sum-card.is-dividend-card {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, rgba(7, 26, 18, 0.92), rgba(11, 34, 24, 0.86));
}

.ex-sum-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9bb8aa;
  font-weight: 700;
}

.ex-sum-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  color: #f8fafc;
}

.ex-sum-val.is-gold { color: #fde047; }

.ex-sum-row,
.ex-div-head,
.ex-div-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.ex-div-btns {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ex-pnl-pill,
.ex-delta-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

.ex-pnl-pill.is-up,
.ex-delta-pill.is-up {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
}

.ex-pnl-pill.is-down,
.ex-delta-pill.is-down {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
}

/* Custom Auto-Accumuleren Switch */
.ex-auto-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  font-size: 0.72rem;
  color: #cbd5e1;
}

.ex-auto-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ex-auto-slider {
  width: 30px;
  height: 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.45);
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ex-auto-slider::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.ex-auto-toggle input:checked + .ex-auto-slider {
  background: rgba(16, 185, 129, 0.35);
  border-color: #34d399;
}

.ex-auto-toggle input:checked + .ex-auto-slider::after {
  transform: translateX(13px);
  background: #fde047;
}

.exchange-movers-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.ex-mover-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 26, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.74rem;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.ex-mover-pill:hover {
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-1px);
}

.ex-mover-pill strong { color: #fde68a; }
.ex-mover-pill.is-up em { font-style: normal; color: #34d399; font-weight: 700; }
.ex-mover-pill.is-down em { font-style: normal; color: #f87171; font-weight: 700; }

.exchange-tabs-bar {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.exchange-tab {
  background: rgba(10, 28, 20, 0.68);
  border: 1px solid rgba(212, 175, 55, 0.22);
  color: #cbd5e1;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.exchange-tab.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(16, 185, 129, 0.14));
  border-color: rgba(212, 175, 55, 0.7);
  color: #fde68a;
}

.exchange-tab-pane { display: none; }
.exchange-tab-pane.active { display: flex; flex-direction: column; gap: 10px; }

.exchange-workspace {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 12px;
  align-items: start;
}

.exchange-left-col,
.exchange-right-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.exchange-funds-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ex-fund-row {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(7, 22, 16, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.22);
  color: #f8fafc;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.ex-fund-row:hover {
  border-color: rgba(212, 175, 55, 0.52);
  transform: translateY(-1px);
}

.ex-fund-row.is-selected {
  border-color: #fde047;
  background: linear-gradient(155deg, rgba(16, 42, 30, 0.94), rgba(8, 22, 16, 0.94));
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.18);
}

.ex-fund-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ex-fund-name-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ex-fund-spark {
  width: 92px;
  height: 28px;
  flex-shrink: 0;
}

.ex-asset-card {
  width: 100%;
  text-align: left;
  background: rgba(7, 22, 16, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 10px;
  padding: 11px 12px;
  cursor: pointer;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.ex-asset-card:hover {
  border-color: rgba(212, 175, 55, 0.52);
  transform: translateY(-1px);
}

.ex-asset-card.is-selected {
  border-color: #fde047;
  background: linear-gradient(155deg, rgba(16, 42, 30, 0.94), rgba(8, 22, 16, 0.94));
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.2);
}

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

.ex-card-ticker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fde047;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ex-cat-pill {
  font-size: 0.62rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.15);
  color: #e2e8f0;
  font-weight: 700;
}

.ex-card-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #f8fafc;
}

.ex-card-sub {
  font-size: 0.72rem;
  color: #9bb8aa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ex-card-price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.ex-card-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  color: #ffffff;
}

.ex-card-spark {
  width: 100%;
  height: 34px;
}

.ex-spark-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ex-card-foot {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #94a3b8;
}

.ex-own-tag {
  color: #34d399;
  font-weight: 700;
}

.ex-players-toolbar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ex-search-input {
  width: 100%;
  background: rgba(6, 18, 13, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  color: #f8fafc;
  font-size: 0.82rem;
  box-sizing: border-box;
}

.ex-ceo-hint {
  font-size: 0.72rem;
  color: #a7f3d0;
}

.exchange-players-list,
.exchange-holdings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 390px;
  overflow-y: auto;
  padding-right: 2px;
}

.ex-player-row {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(7, 22, 16, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.ex-player-row:hover { border-color: rgba(212, 175, 55, 0.45); }
.ex-player-row.is-selected {
  border-color: #fde047;
  background: rgba(14, 38, 28, 0.94);
}

.ex-player-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
  color: #071710;
  flex-shrink: 0;
}

.ex-player-info { flex: 1; min-width: 0; }
.ex-player-name-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.ex-ticker-sm,
.ex-ticker-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.16);
  color: #fde047;
}

.ex-online-dot {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  color: #94a3b8;
}

.ex-online-dot.is-online {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.ex-self-pill {
  font-size: 0.64rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.18);
  color: #fde047;
}

.ex-player-stats {
  font-size: 0.71rem;
  color: #94a3b8;
  margin-top: 2px;
}

.ex-player-spark {
  width: 82px;
  height: 28px;
  flex-shrink: 0;
}

.ex-holding-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(7, 22, 16, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.2);
  cursor: pointer;
}

.ex-h-left { min-width: 0; flex: 1; }
.ex-h-title { display: flex; align-items: center; gap: 6px; font-size: 0.84rem; color: #f8fafc; }
.ex-h-meta { font-size: 0.72rem; color: #9bb8aa; margin-top: 3px; }
.ex-h-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ex-h-val { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; }

/* Right Trade Panel */
.exchange-trade-panel {
  background: rgba(6, 20, 14, 0.94);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ex-trade-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.ex-trade-ticker-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ex-trade-name {
  margin: 4px 0 2px;
  font-size: 1rem;
  color: #f8fafc;
}

.ex-trade-sub {
  font-size: 0.74rem;
  color: #9bb8aa;
}

.ex-trade-price-box {
  text-align: right;
  flex-shrink: 0;
}

.ex-price-lbl {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: #9bb8aa;
}

.ex-price-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  color: #fde047;
}

.ex-chart-frame {
  height: 62px;
  width: 100%;
  background: rgba(3, 12, 8, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 4px;
  box-sizing: border-box;
}

.ex-asset-meta-line {
  font-size: 0.72rem;
  color: #9bb8aa;
  text-align: center;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(11, 29, 21, 0.62);
}

.ex-asset-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.ex-mini-stat {
  background: rgba(11, 29, 21, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ex-mini-stat span { font-size: 0.66rem; color: #94a3b8; text-transform: uppercase; }
.ex-mini-stat strong { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: #e2e8f0; }

.ex-position-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.32);
  font-size: 0.75rem;
  color: #d1fae5;
}

.ex-lock-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: #34d399;
}

.ex-lock-pill.is-locked {
  color: #fbbf24;
}

.ex-self-guard {
  padding: 12px;
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #fde68a;
  font-size: 0.8rem;
  line-height: 1.45;
}

.ex-side-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.ex-side-btn {
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 26, 20, 0.85);
  color: #cbd5e1;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.ex-side-btn.active[data-side="buy"] {
  background: rgba(16, 185, 129, 0.24);
  border-color: #34d399;
  color: #6ee7b7;
}

.ex-side-btn.active[data-side="sell"] {
  background: rgba(239, 68, 68, 0.22);
  border-color: #f87171;
  color: #fca5a5;
}

.ex-order-controls {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ex-input-row {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-top: 4px;
}

.ex-input-row input {
  flex: 1;
  min-width: 0;
  background: rgba(4, 14, 10, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 8px;
  padding: 8px 10px;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
}

.ex-q-btn {
  padding: 8px 9px;
  border-radius: 7px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(12, 34, 25, 0.9);
  color: #fde68a;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.ex-q-btn:hover {
  border-color: #fde047;
  background: rgba(212, 175, 55, 0.18);
}

.ex-order-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(10, 26, 20, 0.72);
  font-size: 0.74rem;
  color: #cbd5e1;
}

.ex-order-preview > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.ex-rules-note {
  font-size: 0.69rem;
  color: #94a3b8;
  text-align: center;
}

.ex-sub-panel {
  background: rgba(7, 20, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ex-sub-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fde68a;
}

.exchange-feed-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 150px;
  overflow-y: auto;
}

.ex-feed-row {
  display: flex;
  gap: 8px;
  font-size: 0.73rem;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 4px;
}

.ex-feed-time {
  font-family: 'JetBrains Mono', monospace;
  color: #94a3b8;
  flex-shrink: 0;
}

.ex-feed-text {
  color: #e2e8f0;
  line-height: 1.35;
}

@media (max-width: 780px) {
  .exchange-summary-strip {
    grid-template-columns: 1fr;
  }
  .exchange-workspace {
    grid-template-columns: 1fr;
  }
  .exchange-funds-grid {
    grid-template-columns: 1fr;
  }
  .ex-player-spark,
  .ex-fund-spark {
    display: none;
  }
  html #exchange-modal .exchange-modal-shell {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
  }
  .exchange-modal-body {
    padding: 12px 14px 16px;
  }
}

.admin-vault-edit-row {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  font-size: 0.74rem;
  color: #cbd5e1;
}

.admin-vault-edit-row.hidden {
  display: none !important;
}

.admin-vault-edit-row label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
}

.admin-vault-edit-row input {
  width: 78px;
  height: 28px;
  padding: 0 7px;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(6, 20, 14, 0.9);
  color: #f8fafc;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
}

.admin-vault-edit-row .admin-vault-cap-input,
.admin-vault-edit-row .admin-vault-rate-input {
  width: 54px;
}


