/* ==========================================================================
   PLAYZO — Master Gaming Design System & Global Styles
   ========================================================================== */

:root {
  --pz-bg-dark: #070a10;
  --pz-bg-card: #0f1523;
  --pz-bg-surface: #161e31;
  --pz-bg-elevated: #1e2842;
  --pz-primary: #00f2fe;
  --pz-primary-glow: rgba(0, 242, 254, 0.35);
  --pz-secondary: #4facfe;
  --pz-accent-gold: #ffd700;
  --pz-accent-crimson: #ff3366;
  --pz-accent-green: #00e676;
  --pz-text-main: #f8fafc;
  --pz-text-muted: #94a3b8;
  --pz-border: rgba(255, 255, 255, 0.08);
  --pz-border-glow: rgba(0, 242, 254, 0.3);
  --pz-radius-sm: 8px;
  --pz-radius-md: 14px;
  --pz-radius-lg: 20px;
  --pz-font-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--pz-bg-dark);
  color: var(--pz-text-main);
  font-family: var(--pz-font-sans);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--pz-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #5ceeff;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--pz-bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #253350;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--pz-primary);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.playzo-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--pz-border);
  transition: all 0.3s ease;
}

.playzo-header .navbar-brand img {
  height: 38px;
  width: auto;
}

.nav-link-playzo {
  color: #cbd5e1 !important;
  font-weight: 600;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--pz-radius-sm);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.nav-link-playzo:hover, .nav-link-playzo.active {
  color: #ffffff !important;
  background: rgba(0, 242, 254, 0.1);
  box-shadow: 0 0 12px var(--pz-primary-glow);
}

.playzo-badge-live {
  background: linear-gradient(135deg, #ff0844 0%, #ff4e50 100%);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  animation: pulseLive 1.8s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

/* Wallet widget in Header */
.playzo-wallet-widget {
  background: var(--pz-bg-surface);
  border: 1px solid var(--pz-border);
  border-radius: 30px;
  padding: 4px 6px 4px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.playzo-wallet-amount {
  font-weight: 700;
  color: var(--pz-accent-gold);
  font-size: 1rem;
}

/* ==========================================================================
   Category Horizontal Scroll Navigation
   ========================================================================== */
.playzo-category-bar {
  background: var(--pz-bg-card);
  border-bottom: 1px solid var(--pz-border);
  padding: 0.6rem 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

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

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
  margin-right: 0.4rem;
}

.category-pill:hover, .category-pill.active {
  color: #fff;
  background: var(--pz-bg-surface);
  border-color: var(--pz-border-glow);
  box-shadow: 0 4px 14px var(--pz-primary-glow);
  transform: translateY(-2px);
}

.category-pill i {
  font-size: 1.1rem;
  color: var(--pz-primary);
}

/* ==========================================================================
   Hero Banners & Carousels
   ========================================================================== */
.hero-banner-container {
  border-radius: var(--pz-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--pz-border);
}

.hero-banner-img {
  width: 100%;
  height: auto;
  min-height: 180px;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Game Cards & Lobby Grid
   ========================================================================== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 576px) {
  .game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (min-width: 768px) {
  .game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1200px) {
  .game-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1440px) {
  .game-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
}

.game-card {
  position: relative;
  background: var(--pz-bg-card);
  border: 1px solid var(--pz-border);
  border-radius: var(--pz-radius-md);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--pz-primary);
  box-shadow: 0 10px 25px var(--pz-primary-glow);
}

.game-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 66.6%; /* 3:2 ratio */
  background: #111827;
  overflow: hidden;
}

.game-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .game-card-img {
  transform: scale(1.08);
}

.game-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 10, 16, 0.7);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover .game-card-overlay {
  opacity: 1;
}

.game-card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.game-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.game-fav-btn.active, .game-fav-btn:hover {
  color: var(--pz-accent-crimson);
  background: rgba(255, 51, 102, 0.2);
  border-color: var(--pz-accent-crimson);
}

.game-card-info {
  padding: 10px 12px;
  background: var(--pz-bg-card);
}

.game-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
}

.game-card-provider {
  font-size: 0.75rem;
  color: var(--pz-text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   Live Dealer Game UI & Casino Studios
   ========================================================================== */
.live-studio-container {
  background: #090d16;
  border: 1px solid var(--pz-border);
  border-radius: var(--pz-radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.dealer-stream-viewport {
  position: relative;
  width: 100%;
  height: 360px;
  background: #06090e;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .dealer-stream-viewport {
    height: 420px;
  }
}

.dealer-live-feed-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  z-index: 1;
  filter: brightness(0.92) contrast(1.05);
  transition: transform 0.8s ease;
}

.dealer-stream-viewport:hover .dealer-live-feed-img {
  transform: scale(1.02);
}

.dealer-stream-viewport .dealer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(180deg, rgba(7, 10, 16, 0.15) 0%, rgba(7, 10, 16, 0.35) 40%, rgba(7, 10, 16, 0.82) 80%, rgba(7, 10, 16, 0.96) 100%);
}

.dealer-live-broadcast-tag {
  position: absolute;
  bottom: 12px;
  left: 14px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.68rem;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dealer-info-hud {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--pz-border);
  border-radius: var(--pz-radius-md);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dealer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--pz-primary);
  object-fit: cover;
}

/* Round Timer Countdown */
.round-timer-hud {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--pz-border);
  border-radius: 30px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timer-pill {
  font-family: monospace;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--pz-accent-gold);
}

.timer-pill.urgent {
  color: var(--pz-accent-crimson);
  animation: pulseTimer 0.6s infinite alternate;
}

@keyframes pulseTimer {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

/* Chips Rack */
.chip-rack {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 12px 8px;
  background: var(--pz-bg-surface);
  border-top: 1px solid var(--pz-border);
  border-bottom: 1px solid var(--pz-border);
  overflow-x: auto;
}

.casino-chip {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  border: 3px dashed rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.casino-chip:hover {
  transform: translateY(-4px);
}

.casino-chip.active {
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 0 16px var(--pz-accent-gold);
  border-color: #ffffff;
}

.chip-10   { background: radial-gradient(circle, #2563eb 0%, #1e40af 100%); }
.chip-50   { background: radial-gradient(circle, #dc2626 0%, #991b1b 100%); }
.chip-100  { background: radial-gradient(circle, #059669 0%, #065f46 100%); }
.chip-500  { background: radial-gradient(circle, #7c3aed 0%, #5b21b6 100%); }
.chip-1000 { background: radial-gradient(circle, #d97706 0%, #92400e 100%); color: #fff; }
.chip-5000 { background: radial-gradient(circle, #1f2937 0%, #111827 100%); border-color: var(--pz-accent-gold); color: var(--pz-accent-gold); }

/* Betting Table Grid */
.betting-table-area {
  padding: 16px;
  background: #080c14;
}

.bet-spot {
  background: var(--pz-bg-card);
  border: 1px solid var(--pz-border);
  border-radius: var(--pz-radius-md);
  padding: 18px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.bet-spot:hover {
  background: var(--pz-bg-surface);
  border-color: var(--pz-primary);
  box-shadow: 0 0 15px var(--pz-primary-glow);
}

.bet-spot.has-bet {
  border-color: var(--pz-accent-gold);
  background: rgba(255, 215, 0, 0.08);
}

.bet-spot-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.bet-spot-odd {
  font-size: 0.85rem;
  color: var(--pz-accent-gold);
  font-weight: 700;
  margin-top: 4px;
}

.bet-spot-placed {
  position: absolute;
  bottom: 6px;
  right: 8px;
  background: var(--pz-accent-gold);
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
}

/* Playing Cards */
.casino-card {
  width: 60px;
  height: 86px;
  background: #ffffff;
  color: #000000;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px;
  font-weight: 900;
  font-size: 1rem;
  line-height: 1;
  user-select: none;
  animation: dealCard 0.4s ease-out;
}

.casino-card.red {
  color: #dc2626;
}

@keyframes dealCard {
  from { transform: translateY(-40px) rotate(-8deg); opacity: 0; }
  to { transform: translateY(0) rotate(0deg); opacity: 1; }
}

/* Roadmaps & Bead Plate */
.roadmap-strip {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: var(--pz-bg-card);
  border-radius: var(--pz-radius-sm);
  overflow-x: auto;
}

.roadmap-bead {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.65rem;
  color: #ffffff;
  flex-shrink: 0;
}

.bead-dragon { background: #dc2626; }
.bead-tiger  { background: #eab308; color: #000; }
.bead-tie    { background: #16a34a; }
.bead-andar  { background: #3b82f6; }
.bead-bahar  { background: #f97316; }

/* ==========================================================================
   Mobile Bottom Navigation
   ========================================================================== */
.playzo-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: rgba(11, 15, 25, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--pz-border);
  padding: 6px 0;
}

@media (max-width: 991px) {
  .playzo-bottom-nav {
    display: block;
  }
  body {
    padding-bottom: 65px;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--pz-text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.bottom-nav-item i {
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.bottom-nav-item.active, .bottom-nav-item:hover {
  color: var(--pz-primary);
}

/* ==========================================================================
   Buttons & Components
   ========================================================================== */
.btn-playzo-primary {
  background: linear-gradient(135deg, var(--pz-primary) 0%, var(--pz-secondary) 100%);
  color: #000000;
  font-weight: 700;
  border: none;
  border-radius: var(--pz-radius-sm);
  padding: 0.55rem 1.25rem;
  transition: all 0.25s ease;
}

.btn-playzo-primary:hover {
  background: linear-gradient(135deg, #38f4fe 0%, #68baff 100%);
  box-shadow: 0 4px 18px var(--pz-primary-glow);
  color: #000;
  transform: translateY(-1px);
}

.btn-playzo-gold {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  color: #000000;
  font-weight: 800;
  border: none;
  border-radius: var(--pz-radius-sm);
  padding: 0.55rem 1.25rem;
}

.btn-playzo-gold:hover {
  background: linear-gradient(135deg, #ffe033 0%, #ffb733 100%);
  box-shadow: 0 4px 18px rgba(255, 215, 0, 0.4);
  color: #000;
}

.btn-playzo-outline {
  background: transparent;
  color: #fff;
  border: 1px solid var(--pz-border);
  border-radius: var(--pz-radius-sm);
  padding: 0.5rem 1.1rem;
  font-weight: 600;
}

.btn-playzo-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--pz-primary);
  color: #fff;
}

/* Custom Card Container */
.playzo-card {
  background: var(--pz-bg-card);
  border: 1px solid var(--pz-border);
  border-radius: var(--pz-radius-md);
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Forms */
.form-control-playzo {
  background: var(--pz-bg-dark);
  border: 1px solid var(--pz-border);
  color: #ffffff;
  border-radius: var(--pz-radius-sm);
  padding: 0.65rem 1rem;
  transition: all 0.2s ease;
}

.form-control-playzo:focus {
  background: var(--pz-bg-dark);
  border-color: var(--pz-primary);
  box-shadow: 0 0 10px var(--pz-primary-glow);
  color: #ffffff;
}

/* Tables */
.table-playzo {
  color: var(--pz-text-main);
  border-collapse: separate;
  border-spacing: 0;
}

.table-playzo thead th {
  background: var(--pz-bg-surface);
  color: var(--pz-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--pz-border);
}

.table-playzo tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--pz-border);
  vertical-align: middle;
}

.table-playzo tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Status Badges */
.badge-status {
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
}
.badge-status-completed, .badge-status-approved, .badge-status-active, .badge-status-won {
  background: rgba(0, 230, 118, 0.15);
  color: var(--pz-accent-green);
  border: 1px solid rgba(0, 230, 118, 0.3);
}
.badge-status-pending {
  background: rgba(255, 215, 0, 0.15);
  color: var(--pz-accent-gold);
  border: 1px solid rgba(255, 215, 0, 0.3);
}
.badge-status-rejected, .badge-status-blocked, .badge-status-lost, .badge-status-cancelled {
  background: rgba(255, 51, 102, 0.15);
  color: var(--pz-accent-crimson);
  border: 1px solid rgba(255, 51, 102, 0.3);
}

/* ==========================================================================
   Admin Console Layout
   ========================================================================== */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
  background: #06090e;
}

.admin-sidebar {
  width: 260px;
  background: #0a0f1a;
  border-right: 1px solid var(--pz-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.admin-sidebar-nav {
  padding: 1rem 0;
  overflow-y: auto;
  flex: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.4rem;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.admin-nav-item:hover, .admin-nav-item.active {
  color: #ffffff;
  background: rgba(0, 242, 254, 0.08);
  border-left-color: var(--pz-primary);
}

.admin-nav-item i {
  font-size: 1.15rem;
  color: var(--pz-primary);
}

.admin-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.admin-topbar {
  height: 64px;
  background: #0a0f1a;
  border-bottom: 1px solid var(--pz-border);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-body {
  padding: 1.5rem;
  flex: 1;
}

.kpi-card {
  background: var(--pz-bg-card);
  border: 1px solid var(--pz-border);
  border-radius: var(--pz-radius-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

/* ==========================================================================
   GOLDEXCH365 THEME & EXCHANGE SYSTEM
   ========================================================================== */
:root {
  --gx-gold: #ffcc2e;
  --gx-gold-dark: #ffaa00;
  --gx-gold-grad: linear-gradient(180deg, #ffcc2e 0%, #ffbd14 100%);
  --gx-header-bg: #141b27;
  --gx-subnav-bg: #1c2536;
  --gx-body-bg: #0b0f17;
  --gx-sidebar-bg: #121824;
  --gx-card-bg: #162030;
  --gx-row-bg: #192436;
  --gx-row-hover: #1e2c42;
  --gx-border: rgba(255, 255, 255, 0.08);
  --gx-back-blue: #72bbef;
  --gx-back-blue-hover: #4ea8e8;
  --gx-lay-pink: #faa9ba;
  --gx-lay-pink-hover: #f588a0;
  --gx-green-btn: #00a105;
  --gx-red-btn: #ff6a6a;
}

body {
  background-color: var(--gx-body-bg);
  font-family: 'Roboto Condensed', 'Outfit', sans-serif;
  color: #f1f5f9;
}

/* GoldExch Header Bar */
.gx-header {
  background: var(--gx-header-bg);
  border-bottom: 1px solid rgba(255, 204, 46, 0.2);
  padding: 0.45rem 1rem;
}
.gx-brand-text {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: linear-gradient(180deg, #fff7d1 0%, #ffcc2e 50%, #ff9900 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}
.gx-search-box {
  background: #0d121c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #fff;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
}
.gx-search-box:focus {
  border-color: var(--gx-gold);
  outline: none;
  background: #0d121c;
  color: #fff;
}
.gx-balance-badge {
  background: #0a0e16;
  border: 1px solid rgba(255, 204, 46, 0.3);
  border-radius: 4px;
  padding: 0.25rem 0.65rem;
  font-size: 0.85rem;
  font-family: monospace;
  font-weight: 700;
  color: var(--gx-gold);
}
.gx-exposure-badge {
  background: #0a0e16;
  border: 1px solid rgba(255, 106, 106, 0.3);
  border-radius: 4px;
  padding: 0.25rem 0.65rem;
  font-size: 0.85rem;
  font-family: monospace;
  font-weight: 700;
  color: #ff6a6a;
}
.gx-rules-link {
  color: #94a3b8;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
  padding: 0.3rem 0.5rem;
}
.gx-rules-link:hover {
  color: var(--gx-gold);
}

/* GoldExch Sports Navigation Ribbon */
.gx-subnav {
  background: var(--gx-subnav-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  overflow-x: auto;
  white-space: nowrap;
}
.gx-subnav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0 0.5rem;
}
.gx-subnav-item {
  margin: 0 2px;
}
.gx-subnav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #e2e8f0;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.15s ease;
}
.gx-subnav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.gx-subnav-link.active {
  background: var(--gx-gold-grad);
  color: #0b0f17 !important;
  box-shadow: 0 2px 8px rgba(255, 204, 46, 0.3);
}
.gx-subnav-link.inplay-link {
  color: #ffcc2e;
}
.gx-live-dot {
  width: 8px;
  height: 8px;
  background: #00e676;
  border-radius: 50%;
  display: inline-block;
  animation: gxPulse 1.2s infinite;
}
@keyframes gxPulse {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* GoldExch Marquee News Ticker */
.gx-ticker {
  background: #080c14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  height: 32px;
}
.gx-ticker-tag {
  background: var(--gx-gold);
  color: #000;
  font-weight: 800;
  padding: 0 0.75rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.gx-ticker-content {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  padding: 0 1rem;
}
.gx-ticker-content span {
  display: inline-block;
  padding-left: 100%;
  animation: gxMarquee 25s linear infinite;
  color: #ffd700;
  font-weight: 600;
}
.gx-ticker-content:hover span {
  animation-play-state: paused;
}
@keyframes gxMarquee {
  0% { transform: translate(0); }
  100% { transform: translate(-100%); }
}

/* 3-Column Layout Container */
.gx-layout-container {
  display: flex;
  width: 100%;
  min-height: calc(100vh - 120px);
}
.gx-left-col {
  width: 230px;
  flex-shrink: 0;
  background: var(--gx-sidebar-bg);
  border-right: 1px solid var(--gx-border);
}
.gx-center-col {
  flex: 1;
  min-width: 0;
  padding: 0.6rem;
  background: var(--gx-body-bg);
}
.gx-right-col {
  width: 320px;
  flex-shrink: 0;
  background: var(--gx-sidebar-bg);
  border-left: 1px solid var(--gx-border);
}

/* Left Sports Tree */
.gx-sports-tree-head {
  background: #0d121c;
  color: var(--gx-gold);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: 0.65rem 0.85rem;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--gx-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gx-tree-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.15s;
}
.gx-tree-item:hover, .gx-tree-item.active {
  background: rgba(255, 204, 46, 0.08);
  color: #ffffff;
  border-left: 3px solid var(--gx-gold);
}
.gx-tree-badge {
  background: #0d121c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gx-gold);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}

/* Match Odds Exchange Table */
.gx-market-card {
  background: var(--gx-card-bg);
  border: 1px solid var(--gx-border);
  border-radius: 4px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.gx-market-header {
  background: #111824;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--gx-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gx-market-header-title {
  font-weight: 800;
  font-size: 0.88rem;
  color: #fff;
  text-transform: uppercase;
}
.gx-table-row {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: var(--gx-row-bg);
  transition: background 0.15s;
}
.gx-table-row:hover {
  background: var(--gx-row-hover);
}
.gx-match-info {
  flex: 1;
  min-width: 0;
}
.gx-match-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #f8fafc;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
.gx-match-title:hover {
  color: var(--gx-gold);
}
.gx-match-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 2px;
}
.gx-icon-pill {
  padding: 0.1rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 2px;
  text-transform: uppercase;
}
.gx-icon-live { background: #00e676; color: #000; }
.gx-icon-tv { background: #0ea5e9; color: #fff; }
.gx-icon-bm { background: #f59e0b; color: #000; }
.gx-icon-fancy { background: #a855f7; color: #fff; }

/* The Iconic Back (Blue) & Lay (Pink) Odds Boxes */
.gx-odds-group {
  display: flex;
  align-items: center;
  gap: 4px;
}
.gx-odds-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gx-odds-col-header {
  font-size: 0.7rem;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 2px;
  text-align: center;
}
.gx-odds-pair {
  display: flex;
  gap: 2px;
}
.gx-box-back, .gx-box-lay {
  width: 48px;
  height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
  user-select: none;
  transition: transform 0.1s, filter 0.1s;
}
.gx-box-back:active, .gx-box-lay:active {
  transform: scale(0.95);
}
.gx-box-back {
  background: var(--gx-back-blue);
  color: #000;
}
.gx-box-back:hover {
  background: var(--gx-back-blue-hover);
}
.gx-box-lay {
  background: var(--gx-lay-pink);
  color: #000;
}
.gx-box-lay:hover {
  background: var(--gx-lay-pink-hover);
}
.gx-box-odd {
  font-weight: 900;
  font-size: 0.88rem;
  line-height: 1;
}
.gx-box-size {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.7);
  margin-top: 1px;
}

/* Right Sidebar: Bet Slip */
.gx-betslip-header {
  background: #0d121c;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gx-border);
}
.gx-betslip-tabs {
  display: flex;
  width: 100%;
}
.gx-betslip-tab {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  background: #151d2b;
  color: #94a3b8;
  border: none;
  cursor: pointer;
}
.gx-betslip-tab.active {
  background: var(--gx-gold-grad);
  color: #000;
}
.gx-slip-box {
  padding: 0.75rem;
  background: #111722;
  border-radius: 4px;
  margin: 0.5rem;
  border: 1px solid var(--gx-border);
}
.gx-slip-box.back-order {
  border-top: 4px solid var(--gx-back-blue);
}
.gx-slip-box.lay-order {
  border-top: 4px solid var(--gx-lay-pink);
}
.gx-stake-btn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin: 0.5rem 0;
}
.gx-stake-btn {
  background: #202b3d;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.35rem 0;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s;
}
.gx-stake-btn:hover {
  background: var(--gx-gold);
  color: #000;
}
.gx-stake-btn.min-stake { background: #ffbc00; color: #000; }
.gx-stake-btn.max-stake { background: #334579; color: #fff; }
.gx-stake-btn.all-in { background: #00a105; color: #fff; }
.gx-stake-btn.clear-stake { background: #ff6a6a; color: #fff; }

/* Mobile Floating Bar */
.gx-mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #111622;
  border-top: 1px solid rgba(255, 204, 46, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1050;
}
.gx-m-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  flex: 1;
  height: 100%;
}
.gx-m-nav-item i {
  font-size: 1.15rem;
  margin-bottom: 2px;
}
.gx-m-nav-item.active, .gx-m-nav-item:hover {
  color: var(--gx-gold);
}

@media (max-width: 991px) {
  .gx-left-col, .gx-right-col {
    display: none !important;
  }
  .gx-center-col {
    padding: 0.4rem;
  }
  .gx-box-back, .gx-box-lay {
    width: 42px;
    height: 35px;
  }
}

