/* ============================================
   EMATCHES — Gaming Tournament Platform
   Design System & Component Styles
   ============================================ */

/* === Google Font === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Orbitron:wght@700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

/* === Design Tokens === */
:root {
  --bg-primary: #050510;
  --bg-secondary: #050510;
  --bg-card: #0d0d20;
  --bg-card-dark: #1a1a30;
  --bg-card-light: #f2f2f8;
  --bg-card-light-hover: #e8e8f0;
  --bg-overlay: rgba(6, 6, 14, 0.92);

  --accent-cyan: #00c8ff;
  --accent-cyan-dim: rgba(0, 200, 255, 0.15);
  --accent-cyan-glow: rgba(0, 200, 255, 0.4);
  --accent-blue: #0a1a5c;
  --accent-blue-deep: #060e3a;
  --accent-yellow: #ffc800;
  --accent-yellow-dim: rgba(255, 200, 0, 0.15);
  --accent-green: #3ecf4a;
  --accent-red: #ff4444;

  --text-primary: #ffffff;
  --text-secondary: #7a8da8;
  --text-muted: #4a5568;
  --text-dark: #1a1a2e;
  --text-cyan: #00c8ff;

  --gradient-btn: linear-gradient(135deg, #00c8ff 0%, #0070dd 100%);
  --gradient-btn-hover: linear-gradient(135deg, #00daff 0%, #0088ff 100%);
  --gradient-gold: linear-gradient(135deg, #ffc800 0%, #ff9500 100%);
  --gradient-v-bg: linear-gradient(180deg, #0a1a5c 0%, #060e3a 50%, transparent 100%);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 50%;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow-cyan: 0 0 20px rgba(0, 200, 255, 0.25);
  --shadow-glow-yellow: 0 0 15px rgba(255, 200, 0, 0.2);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s ease;
  --transition-slow: 0.5s ease;

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Orbitron', 'Inter', sans-serif;

  --topbar-height: 48px;
  --bottom-bar-height: 56px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background: #060b1e;
}

body {
  font-family: var(--font-primary);
  background: radial-gradient(circle at 50% 0%, #0d2258 0%, #060e28 50%, #030612 100%) fixed;
  background-color: #030612;
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

/* === App Container === */
.app {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  background: transparent;
  display: flex;
  flex-direction: column;
}

/* === Blue Geometric Background Decorations === */
.bg-shapes {
  display: none !important;
}

/* === Screens === */
.screen {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  display: none;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
}

.screen.active {
  display: flex;
  opacity: 1;
  visibility: visible;
  z-index: 10;
}

.screen.slide-out-left {
  opacity: 0;
  display: none;
}

/* ============================================
   TOP BAR — Floating Luxury Header Theme with Auto-Hide on Scroll
   ============================================ */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  height: 52px;
  margin: 8px 12px;
  background: rgba(18, 18, 24, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  position: sticky;
  top: 8px;
  z-index: 1000;
  flex-shrink: 0;
  box-sizing: border-box;
  font-family: 'Space Grotesk', sans-serif;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.top-bar.header-hidden {
  transform: translateY(-80px);
  opacity: 0;
  pointer-events: none;
}

.premium-nav-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 0 !important;
  height: 100%;
}

/* Logo capsule - 11Hub Compact Style */
.logo-capsule {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.logo-capsule:hover {
  transform: translateY(-1px) scale(1.03);
  border-color: rgba(214, 255, 0, 0.4);
  box-shadow: 0 4px 18px rgba(214, 255, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* ============================================
   HEADER COINS / WALLET PILL WIDGET (Image 2 Style)
   ============================================ */
.header-wallet-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0d1117;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  height: 36px;
  padding: 2px 4px 2px 3px;
  gap: 8px;
  cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
  flex-shrink: 0;
  margin: 0 auto;
}

.header-wallet-pill:hover {
  border-color: rgba(255, 215, 0, 0.45);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.18), inset 0 1px 2px rgba(0, 0, 0, 0.7);
  transform: translateY(-1px);
}

.header-wallet-pill:active {
  transform: scale(0.97);
}

/* 11Coin Badge with Metallic Shine Sweep Effect */
.wallet-coin-badge {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd700 0%, #ca8a04 100%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 229, 127, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.wallet-coin-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}

/* Shining light sweep animation */
.wallet-coin-badge::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -130%;
  width: 80%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: coinShine 2.8s infinite ease-in-out;
  z-index: 2;
  pointer-events: none;
}

@keyframes coinShine {
  0%, 25% {
    left: -130%;
  }
  60%, 100% {
    left: 170%;
  }
}

/* Wallet Balance Numeral */
.wallet-balance-num {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.3px;
  line-height: 1;
  padding: 0 2px;
  white-space: nowrap;
}

/* WhatsApp Green Circular Plus (+) Button (No Glow Effect) */
.wallet-plus-btn {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: #25D366; /* Official WhatsApp Green */
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); /* Solid subtle shadow, no glow */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
  padding: 0;
}

.wallet-plus-btn:hover {
  transform: scale(1.08);
  background: #20ba59;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

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

.wallet-plus-btn svg {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  stroke-width: 3.5;
}

.logo-capsule:hover {
  transform: translateY(-1px) scale(1.03);
  border-color: rgba(214, 255, 0, 0.4);
  box-shadow: 0 8px 30px rgba(214, 255, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.premium-logo {
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  letter-spacing: -0.03em !important;
  color: #fff !important;
  text-transform: none !important;
  text-decoration: none !important;
}

.premium-logo-accent {
  color: #D6FF00;
  margin-left: 2px;
}

/* Nav Links Capsules */
.premium-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 999px;
  height: 42px;
}

.premium-nav-item {
  font-size: 0.8rem;
  font-weight: 500;
  color: #8A8F98;
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  text-decoration: none;
}

.premium-nav-item:hover {
  color: #fff;
}

.premium-nav-item.active {
  color: #000 !important;
  background: #D6FF00 !important;
  font-weight: 700 !important;
}

/* Mobile Actions Pill (Hamburger Menu + User Profile Avatar) */
.premium-mobile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 4px 3px 8px;
  border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

/* 3-Line Hamburger Menu Toggle */
.menu-toggle.premium-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.hamburger-bar {
  width: 17px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-toggle.active-toggle .bar-1 {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active-toggle .bar-2 {
  opacity: 0;
}

.menu-toggle.active-toggle .bar-3 {
  transform: translateY(-6px) rotate(-45deg);
}

.hamburger-notif-badge {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  background: #ff3333;
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 800;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(255, 51, 51, 0.8);
  border: 1px solid #000;
  line-height: 1;
  pointer-events: none;
}

/* Header Profile button (Image 1 & 2 Blue Avatar) */
.header-profile-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: #3888e8;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  transition: all 0.25s ease;
  cursor: pointer;
}

.header-profile-btn:hover {
  border-color: #D6FF00;
  transform: scale(1.08);
}

/* Inline search container */
.nav-inline-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 0px;
  max-width: 0;
  width: 0;
  height: 40px;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  padding: 0;
  margin: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  min-width: 0;
  box-sizing: border-box;
  transition:
    flex 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    max-width 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    width 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.3s ease,
    padding 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    margin 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    border-color 0.3s ease,
    visibility 0.4s ease;
}

.nav-inline-search-icon {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.nav-inline-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0 !important;
  margin: 0 !important;
}

.nav-inline-search input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.nav-search-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.nav-search-close-btn:hover {
  color: #D6FF00;
}

/* Expanded state for search (Image 2) */
.top-bar.search-expanded .logo-capsule {
  flex: 0 0 0px !important;
  max-width: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  overflow: hidden !important;
  pointer-events: none;
  visibility: hidden !important;
}

.top-bar.search-expanded .nav-inline-search {
  flex: 1 1 auto;
  max-width: 500px;
  width: auto;
  opacity: 1;
  visibility: visible;
  padding: 0 14px;
  margin: 0 6px;
  border-color: rgba(255, 255, 255, 0.18);
  pointer-events: auto;
}

.top-bar.search-expanded .mobile-search-btn {
  max-width: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  pointer-events: none;
}

.top-bar.search-expanded .premium-mobile-actions {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
}

/* ============================================
   BOTTOM NAVIGATION BAR (Footer Bar)
   ============================================ */
.footer-nav {
  position: fixed;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  min-width: 320px;
  max-width: 440px;
  background: rgba(18, 18, 22, 0.85) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  gap: 10px;
  z-index: 10000;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  box-sizing: border-box;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.footer-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  padding: 8px 6px;
  border-radius: 12px;
  position: relative;
  flex: 1;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent !important;
}

.footer-link svg {
  width: 22px;
  height: 22px;
  stroke-width: 2px;
  transition: transform 0.25s ease, color 0.25s ease, stroke 0.25s ease;
}

.footer-link.active {
  color: #D6FF00 !important;
}

.footer-link.active svg {
  color: #D6FF00 !important;
  stroke: #D6FF00 !important;
  transform: translateY(-1px) scale(1.1);
  filter: drop-shadow(0 0 6px rgba(214, 255, 0, 0.45));
}

.footer-link.active .gamepad-icon .gamepad-body {
  fill: #D6FF00;
  stroke: #D6FF00;
}

.center-add-btn .center-add-inner {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #D6FF00 !important;
  box-shadow: 0 0 12px rgba(214, 255, 0, 0.5) !important;
}

/* Neon Animated Gradient for + Button (Blue/Green Games Theme) */
.center-add-btn .center-add-inner.neon-gradient-btn {
  background: linear-gradient(135deg, #00c8ff, #00ff88, #0070dd, #00e5ff) !important;
  background-size: 300% 300% !important;
  animation: neonGradientShift 3s ease infinite, neonPulseGlow 2s ease-in-out infinite alternate !important;
  box-shadow: 0 0 16px rgba(0, 200, 255, 0.6), 0 0 32px rgba(0, 255, 136, 0.3), inset 0 0 8px rgba(255, 255, 255, 0.15) !important;
}

.center-add-btn .center-add-inner.neon-gradient-btn svg {
  stroke: #fff !important;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.6));
}

@keyframes neonGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes neonPulseGlow {
  0% {
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.5), 0 0 24px rgba(0, 255, 136, 0.25);
  }
  100% {
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.7), 0 0 40px rgba(0, 255, 136, 0.4), 0 0 60px rgba(0, 112, 221, 0.2);
  }
}

/* Back Button in Footer Nav (plain arrow, no background) */
.footer-back-btn {
  flex: 0 0 auto !important;
  padding: 6px !important;
}

.footer-back-inner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: transform 0.2s ease;
}

.footer-back-inner:active {
  transform: scale(0.92);
}

.footer-back-inner svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255, 255, 255, 0.7) !important;
}

/* Host Tournament Button (center pill) */
.footer-host-btn {
  flex: 1 1 auto !important;
  padding: 4px 6px !important;
}

.footer-host-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0070dd 0%, #0050aa 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  box-shadow: none;
  transition: transform 0.2s ease;
}

.footer-host-inner:active {
  transform: scale(0.95);
}

.footer-host-inner svg {
  width: 15px;
  height: 15px;
  stroke: #fff;
  flex-shrink: 0;
}

.footer-host-inner span {
  font-size: 0.75rem;
}

/* Live Active Match / Rejoin Button in Footer Bar */
.footer-rejoin-nav-btn {
  flex: 1 1 auto !important;
  padding: 4px 6px !important;
}

.footer-rejoin-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(204, 255, 0, 0.15) 0%, rgba(0, 229, 255, 0.15) 100%);
  border: 1px solid #ccff00;
  color: #ccff00;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
  box-shadow: 0 0 16px rgba(204, 255, 0, 0.35);
  animation: rejoinNavPulse 2s ease-in-out infinite;
  transition: all 0.2s ease;
}

.footer-rejoin-inner:active {
  transform: scale(0.95);
}

.footer-rejoin-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ccff00;
  box-shadow: 0 0 8px #ccff00;
  animation: dotPulse 1.2s infinite;
  flex-shrink: 0;
}

.footer-rejoin-inner svg {
  width: 14px;
  height: 14px;
  stroke: #ccff00;
  fill: rgba(204, 255, 0, 0.2);
  flex-shrink: 0;
}

@keyframes rejoinNavPulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(204, 255, 0, 0.25);
    border-color: rgba(204, 255, 0, 0.7);
  }
  50% {
    box-shadow: 0 0 22px rgba(204, 255, 0, 0.6), inset 0 0 8px rgba(204, 255, 0, 0.2);
    border-color: #ccff00;
  }
}

/* Notification icon wrapper */
.footer-notif-link {
  flex: 0 0 auto !important;
  padding: 8px 6px !important;
}

.footer-notif-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-notif-wrap svg {
  width: 22px;
  height: 22px;
}

/* Footer nav hidden state (only show on home screen) */
.footer-nav.footer-nav-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
  visibility: hidden;
}

.footer-notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: bold;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 10px;
  line-height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Expandable Menu */
.premium-mobile-menu {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(-15px);
  width: calc(100% - 24px);
  max-width: 440px;
  background: rgba(18, 18, 24, 0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-mobile-menu.active-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mobile-nav-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.mobile-nav-card:hover {
  background: rgba(214, 255, 0, 0.1);
  border-color: rgba(214, 255, 0, 0.3);
  color: #D6FF00;
}

/* ============================================
   SCREEN 6: NOTIFICATIONS & UPDATES (FIXED UI/UX)
   ============================================ */
.screen-updates .updates-scroll-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 14px calc(var(--bottom-bar-height) + 24px) 14px;
  width: 100%;
  box-sizing: border-box;
}

.screen-updates .updates-scroll-content::-webkit-scrollbar {
  display: none;
}

.screen-updates .updates-scroll-content {
  scrollbar-width: none;
}

.screen-updates .section-header {
  text-align: center;
  margin-bottom: 1.25rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0 4px;
}

.screen-updates .section-title {
  font-family: 'Space Grotesk', sans-serif !important;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px 0;
  text-align: center;
}

.screen-updates .section-subtitle {
  color: #8A8F98;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0 auto;
  max-width: 320px;
  text-align: center;
}

.notif-filters-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  padding: 4px 2px;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  box-sizing: border-box;
  scrollbar-width: none;
}

.notif-filters-pills::-webkit-scrollbar {
  display: none;
}

.notif-pill {
  padding: 7px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #8A8F98;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.notif-pill:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.notif-pill.active {
  background: #D6FF00 !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border-color: #D6FF00 !important;
  box-shadow: 0 0 12px rgba(214, 255, 0, 0.35);
}

.updates-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.update-item {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(25, 25, 32, 0.75) 0%, rgba(15, 15, 20, 0.85) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3.5px solid #D6FF00;
  border-radius: 16px;
  padding: 16px 18px;
  text-align: left;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.update-item:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 255, 0, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.update-date {
  font-size: 0.72rem;
  color: #8A8F98;
  margin-bottom: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.update-title {
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.update-text {
  color: #cccccc;
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0 0 10px 0;
}

@media (max-width: 900px) {
  .desktop-only {
    display: none !important;
  }
}

/* ============================================
   BOTTOM BAR
   ============================================ */
.bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 14px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  z-index: 20;
  box-sizing: border-box;
}

.bottom-bar > * {
  pointer-events: auto;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--gradient-btn);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  border-radius: 20px; /* Capsule shape */
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-glow-cyan);
}

.btn-back:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(0, 200, 255, 0.4);
}

.btn-back:active {
  transform: scale(0.96);
}

.btn-back svg {
  width: 16px;
  height: 16px;
}

.btn-to-match {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: #3a3a50;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px; /* Capsule shape */
  transition: all var(--transition-fast);
}

.btn-to-match.enabled {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: var(--shadow-glow-cyan);
}

.btn-to-match svg {
  width: 14px;
  height: 14px;
}

/* ============================================
   SCREEN 1: HOME / TOURNAMENTS
   ============================================ */
.screen-home .home-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 4px 0 20px 0;
  width: 100%;
  box-sizing: border-box;
}

.tournaments-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 14px;
}

/* --- Play Modes cards (single row below top bar) --- */
.home-modes-row {
  display: flex;
  gap: 8px;
  padding: 10px 14px 14px;
  width: 100%;
}

.mode-card {
  flex: 1;
  background: #ffffff;
  border-radius: 16px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
  border: 1.5px solid transparent;
}

.mode-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 200, 255, 0.15);
  border-color: rgba(0, 112, 221, 0.25);
}

.mode-card:active {
  transform: scale(0.97);
}

.mode-card-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mode-card-icon svg {
  width: 26px;
  height: 26px;
  color: #0070dd; /* eFootball Blue */
}

.mode-card-title {
  font-size: 11px;
  font-weight: 800;
  color: #111111;
  margin-top: 8px;
  line-height: 1.25;
  text-align: center;
}

.mode-card-desc {
  font-size: 8.5px;
  color: #6c7a89;
  margin-top: 4px;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

/* --- Tournament Card (eFootball Style) --- */
.tournament-card {
  background: #111115; /* eFootball text-area dark theme */
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 1px solid rgba(255,255,255,0.04);
}

.tournament-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.tournament-card:active {
  transform: scale(0.98);
}

.card-banner {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
}

.card-event-type {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 6px;
}

.card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 3px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-timer {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.card-timer span {
  color: var(--accent-cyan);
  font-weight: 600;
}

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

.card-rewards {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-rewards-label {
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 500;
}

.card-rewards-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-reward-coins {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-coin-icon {
  width: 19px;
  height: 19px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.45));
}

.card-coin-amount {
  font-size: 13px;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 0.2px;
}

/* Circular Reward Badges */
.reward-circle-badge {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
}

.reward-circle-badge.pitch {
  background: #3ecf4a;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.6);
}

.reward-circle-badge.pitch svg {
  width: 14px;
  height: 14px;
}

.reward-circle-badge.star4 {
  background: #ffc800;
  color: #111111;
  font-size: 13px;
}

.reward-circle-badge.gcoin {
  background: #3a5ccc;
  color: #ffc800;
}

.reward-circle-badge.token {
  background: #0080ff;
  color: #ffffff;
}

/* Enter Button (Minimal Small Pill Shape) */
.btn-enter {
  padding: 5px 14px;
  border: 1px solid rgba(0, 160, 252, 0.28);
  border-radius: 9999px;
  color: #00d2ff;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 160, 252, 0.1);
  transition: all var(--transition-fast);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-enter:hover {
  background: #00d2ff;
  color: #050b14;
  border-color: #00d2ff;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.4);
  transform: translateY(-1px);
}

.btn-enter:active {
  transform: scale(0.95);
}

/* ============================================
   SCREEN 1.5: 1 VS 1 MATCH STAKES SELECTION (eFootball Konami Theme)
   ============================================ */
.screen-match-stakes {
  background: transparent;
  padding-bottom: 0;
  min-height: auto;
}

.stakes-scroll-content {
  flex: 0 1 auto;
  overflow-y: visible;
  padding: 10px 14px 0 14px;
}

.stakes-header-banner {
  text-align: center;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stakes-badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  padding: 6px 18px;
  border-radius: 9999px;
  color: #00d2ff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
  backdrop-filter: blur(10px);
}

.stakes-title {
  font-size: 1.65rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  font-family: var(--font-display, sans-serif);
}

.stakes-subtitle {
  font-size: 0.84rem;
  color: #8A8F98;
  margin: 0;
  line-height: 1.4;
}

/* Stakes Cards Grid - Premium eFootball Esports Proportion */
.stakes-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
  padding: 4px 2px 8px;
}

.stake-card {
  position: relative;
  background: linear-gradient(135deg, rgba(16, 21, 35, 0.92) 0%, rgba(10, 14, 26, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.stake-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 16px rgba(0, 210, 255, 0.12);
}

.stake-card:active {
  transform: scale(0.99);
}

.stake-card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stake-tier-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  padding: 3px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.stake-tier-badge.starter {
  background: rgba(0, 210, 255, 0.09);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.08);
}

.stake-tier-badge.bronze {
  background: rgba(249, 115, 22, 0.1);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.3);
  box-shadow: 0 0 10px rgba(251, 146, 60, 0.08);
}

.stake-tier-badge.silver {
  background: rgba(226, 232, 240, 0.1);
  color: #f1f5f9;
  border: 1px solid rgba(241, 245, 249, 0.3);
  box-shadow: 0 0 10px rgba(241, 245, 249, 0.08);
}

.stake-tier-badge.gold {
  background: rgba(234, 179, 8, 0.1);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.35);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.1);
}

.stake-tier-badge.diamond {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.35);
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.1);
}

.stake-tier-badge.pro {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.15), rgba(0, 100, 255, 0.18));
  color: #00d2ff;
  border: 1px solid rgba(0, 210, 255, 0.35);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.12);
}

.stake-multiplier-pill {
  font-size: 0.72rem;
  font-weight: 800;
  color: #00ff88;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.stake-card-middle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 9, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.stake-stat-col {
  display: flex;
  flex-direction: column;
}

.stake-stat-label {
  font-size: 0.62rem;
  font-weight: 800;
  color: #718096;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.stake-stat-val {
  font-size: 1.05rem;
  font-weight: 800;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  align-items: center;
  gap: 5px;
}

.stake-stat-val.entry-val {
  color: #ffffff;
}

.stake-stat-val.win-val {
  color: #00ff88;
}

.stake-vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #00d2ff;
}

.stake-vs-text {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #00d2ff;
  font-style: italic;
}

.stake-card-bottom-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
}

.btn-stake-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: auto;
  min-width: 140px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.btn-stake-action:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.4);
}

.btn-stake-action.btn-wallet-coins {
  background: linear-gradient(135deg, #00d2ff, #0055ff);
  color: #ffffff;
  border: 1px solid rgba(0, 210, 255, 0.5);
  box-shadow: 0 3px 14px rgba(0, 150, 255, 0.35);
}

.btn-stake-action.btn-wallet-coins:hover {
  background: linear-gradient(135deg, #26dcff, #1a6aff);
  box-shadow: 0 5px 20px rgba(0, 150, 255, 0.55);
  transform: translateY(-1.5px);
}

.btn-stake-action:active {
  transform: scale(0.96);
}

/* ============================================
   SCREEN 2: MATCHMAKING
   ============================================ */
.screen-matchmaking {
  background: radial-gradient(ellipse at 50% 30%, #0a1a5c 0%, #060e3a 40%, #050510 100%);
}

.matchmaking-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* V-Logo Background */
.v-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 320px;
  height: 400px;
  z-index: 1;
}

.v-logo svg {
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

/* Matchmaking Spinner */
.matchmaking-center {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px dotted var(--text-secondary);
  border-radius: var(--radius-full);
  animation: spin 2s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.matchmaking-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

/* Countdown Timer - eFootball Konami HUD Style (Image 2) */
.countdown-pill-badge,
.countdown-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px 0 10px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.timer-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.timer-clock-icon {
  width: 16px;
  height: 16px;
  color: #1e293b;
  animation: clockRotate 2s linear infinite;
}

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

.countdown-pill-badge .timer-value,
.countdown-badge .timer-value {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1;
}

.countdown-pill-badge.timer-urgent,
.countdown-badge.timer-urgent {
  background: #fff0f0;
  border-color: #ff4444;
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.4);
}

.countdown-pill-badge.timer-urgent .timer-value,
.countdown-badge.timer-urgent .timer-value {
  color: #dc2626;
}

.countdown-pill-badge.timer-urgent .timer-clock-icon,
.countdown-badge.timer-urgent .timer-clock-icon {
  color: #dc2626;
}

/* ============================================
   WALLET RECHARGE / DEPOSIT MODAL
   ============================================ */
.wallet-recharge-modal-overlay {
  z-index: 1500;
}

.wallet-recharge-card {
  position: relative;
  width: 92%;
  max-width: 440px;
  max-height: 90vh;
  background: #0c0f14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  overflow-y: auto;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 215, 0, 0.1);
  -webkit-overflow-scrolling: touch;
  animation: modalPop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wallet-recharge-body {
  padding: 24px 20px;
}

.wr-header {
  text-align: center;
  margin-bottom: 18px;
}

.wr-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  color: #ffd700;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.wr-main-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 4px;
  font-family: var(--font-display, sans-serif);
}

.wr-subtitle {
  font-size: 0.78rem;
  color: #8892b0;
  margin: 0;
}

.wr-balance-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 18px;
}

.wr-bb-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #8892b0;
  letter-spacing: 0.8px;
}

.wr-bb-amount-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wr-bb-amount {
  font-size: 1.15rem;
  font-weight: 900;
  color: #D6FF00;
  font-family: var(--font-display, sans-serif);
}

.wr-section-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #aaa;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Packages Grid */
.wr-packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.wr-pkg-card {
  position: relative;
  background: #141722;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 8px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s ease;
  overflow: hidden;
}

.wr-pkg-card:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 255, 0, 0.4);
  background: #181d2c;
}

.wr-pkg-card.active {
  border-color: #D6FF00;
  background: linear-gradient(135deg, rgba(214, 255, 0, 0.12) 0%, rgba(20, 24, 38, 0.95) 100%);
  box-shadow: 0 0 16px rgba(214, 255, 0, 0.25);
}

.wr-pkg-tag {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 6px;
}

.wr-pkg-tag.starter { background: rgba(0, 229, 255, 0.15); color: #00e5ff; }
.wr-pkg-tag.popular { background: rgba(214, 255, 0, 0.18); color: #D6FF00; }
.wr-pkg-tag.best { background: rgba(0, 255, 136, 0.18); color: #00ff88; }
.wr-pkg-tag.champion { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.wr-pkg-tag.elite { background: rgba(255, 180, 0, 0.2); color: #ffb703; }
.wr-pkg-tag.legend { background: rgba(255, 77, 77, 0.2); color: #ff6b6b; }

.wr-pkg-amount {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 2px;
}

.wr-pkg-coins {
  font-size: 0.72rem;
  color: #8892b0;
  font-weight: 600;
}

/* Custom Input */
.wr-custom-wrap {
  margin-bottom: 16px;
}

.wr-custom-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #aaa;
  display: block;
  margin-bottom: 6px;
}

.wr-custom-input-box {
  display: flex;
  align-items: center;
  background: #141722;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0 14px;
}

.wr-currency-symbol {
  color: #D6FF00;
  font-weight: 800;
  font-size: 1.1rem;
}

.wr-custom-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 8px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  outline: none;
}

/* Payment Box */
.wr-payment-box {
  background: #141722;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
}

.wr-pay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 800;
  color: #aaa;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
}

.wr-amount-highlight {
  font-size: 1.3rem;
  font-weight: 900;
  color: #D6FF00;
}

.wr-dealer-row {
  font-size: 0.78rem;
  color: #ccc;
  margin-bottom: 14px;
}

.wr-dealer-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.wr-verified-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #D6FF00;
  font-weight: 700;
  font-size: 0.7rem;
}

.wr-qr-container {
  width: 140px;
  height: 140px;
  margin: 0 auto 14px;
  position: relative;
}

.wr-qr-spinner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px dashed rgba(214, 255, 0, 0.4);
  font-size: 0.75rem;
  color: #aaa;
  gap: 8px;
}

.wr-qr-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #fff;
  display: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.wr-qr-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wr-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(214, 255, 0, 0.12);
  border: 1px solid rgba(214, 255, 0, 0.4);
  color: #D6FF00;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wr-btn-download:hover {
  background: rgba(214, 255, 0, 0.22);
}

.wr-btn-upi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #00ff88, #00b894);
  border: none;
  color: #000;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.3);
}

.wr-form-group {
  display: flex;
  flex-direction: column;
}

.wr-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.wr-input {
  width: 100%;
  padding: 11px 14px;
  background: #1c2030;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}

.wr-input:focus {
  border-color: #D6FF00;
}

.wr-error-msg {
  color: #ff4444;
  font-size: 0.74rem;
  margin-top: 5px;
}

.wr-file-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #ccc;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wr-file-upload-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #D6FF00;
}

.wr-btn-confirm {
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #D6FF00, #00ff88);
  color: #000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 25px rgba(214, 255, 0, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.wr-btn-confirm:hover {
  transform: scale(1.01);
  box-shadow: 0 0 35px rgba(214, 255, 0, 0.45);
}

/* ============================================
   MATCH PAYMENT MODAL (Anzil Rahman Escrow Style)
   ============================================ */
.match-payment-modal-overlay {
  z-index: 1500;
}

.match-payment-card {
  position: relative;
  width: 92%;
  max-width: 440px;
  max-height: 90vh;
  background: #0f0f14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(214, 255, 0, 0.08);
  -webkit-overflow-scrolling: touch;
  animation: modalPop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.match-payment-body {
  padding: 24px 20px;
}

.mp-header {
  text-align: center;
  margin-bottom: 18px;
}

.mp-main-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
}

.mp-subtitle {
  font-size: 0.78rem;
  color: #8892b0;
  margin: 0;
}

.mp-summary-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #16161f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.mp-summary-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(214, 255, 0, 0.1);
  border: 1px solid rgba(214, 255, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-match-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
}

.mp-dealer-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #aaa;
}

.mp-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #D6FF00;
  font-weight: 700;
  font-size: 0.72rem;
}

.mp-price-breakdown {
  background: #16161f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.mp-pb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 800;
  color: #888;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.mp-escrow-badge {
  color: #00ff88;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.65rem;
}

.mp-pb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #ccc;
  margin-bottom: 8px;
}

.mp-win-green {
  color: #00ff88;
  font-weight: 800;
}

.mp-pb-total {
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  padding-top: 10px;
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.mp-total-accent {
  color: #D6FF00;
  font-size: 1.15rem;
}

.mp-how-it-works {
  background: #16161f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid #D6FF00;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.mp-hiw-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 8px;
}

.mp-hiw-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  color: #aaa;
  line-height: 1.4;
}

.mp-hiw-steps strong {
  color: #fff;
}

.mp-qr-section {
  text-align: center;
  background: #16161f;
  border: 1px solid rgba(214, 255, 0, 0.3);
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 16px;
  box-shadow: 0 0 25px rgba(214, 255, 0, 0.05);
}

.mp-qr-title {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.mp-qr-title strong {
  color: #D6FF00;
  font-size: 1.1rem;
}

.mp-qr-container {
  width: 160px;
  height: 160px;
  margin: 0 auto 14px;
  position: relative;
}

.mp-qr-spinner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px dashed rgba(214, 255, 0, 0.4);
  font-size: 0.75rem;
  color: #aaa;
  gap: 8px;
}

.mp-qr-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #fff;
  display: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.mp-qr-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mp-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(214, 255, 0, 0.12);
  border: 1px solid rgba(214, 255, 0, 0.4);
  color: #D6FF00;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mp-btn-download:hover {
  background: rgba(214, 255, 0, 0.22);
}

.mp-btn-upi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #00ff88, #00b894);
  border: none;
  color: #000;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.3);
}

.mp-btn-upi:hover {
  transform: scale(1.02);
}

.mp-form-section {
  background: #16161f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 16px;
}

.mp-form-group {
  display: flex;
  flex-direction: column;
}

.mp-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.mp-input {
  width: 100%;
  padding: 12px 14px;
  background: #1e1e2a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}

.mp-input:focus {
  border-color: #D6FF00;
}

.mp-error-msg {
  color: #ff4444;
  font-size: 0.74rem;
  margin-top: 5px;
}

.mp-file-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #ccc;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mp-file-upload-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #D6FF00;
}

.mp-btn-confirm {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #D6FF00, #00ff88);
  color: #000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 25px rgba(214, 255, 0, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mp-btn-confirm:hover {
  transform: scale(1.01);
  box-shadow: 0 0 35px rgba(214, 255, 0, 0.45);
}

/* Ambient particles */
.matchmaking-content::before,
.matchmaking-content::after {
  content: '';
  position: absolute;
  border-radius: var(--radius-full);
  background: var(--accent-cyan);
  opacity: 0.08;
  animation: float 6s ease-in-out infinite;
}

.matchmaking-content::before {
  width: 200px;
  height: 200px;
  top: -60px;
  right: -80px;
}

.matchmaking-content::after {
  width: 150px;
  height: 150px;
  bottom: -40px;
  left: -50px;
  animation-delay: -3s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(20px) scale(1.05); }
}

/* ============================================
   SCREEN 3: MATCH ROOM
   ============================================ */
.match-room-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 12px;
  padding-bottom: calc(var(--bottom-bar-height) + 8px);
  overflow-y: auto;
}

/* Sleek Cards below room panel (Side-by-Side in Single Row) */
.options-row-cards {
  display: flex;
  gap: 12px;
  width: 100%;
  order: 2;
}

.option-card {
  flex: 1;
  background: #ffffff; /* Pure white button */
  border-radius: 20px; /* Exact rounded look */
  padding: 14px 8px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  border: none;
}

.option-card:hover {
  background: #f8f8fa;
  transform: translateY(-2px);
}

.option-card:active {
  transform: scale(0.97);
}

.option-card-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.option-card-icon svg {
  width: 24px;
  height: 24px;
  color: #0070dd; /* Blue icon color */
}

.option-card-label {
  font-size: 13px;
  font-weight: 800;
  color: #111111; /* Dark text inside white button */
  line-height: 1.3;
}

/* Room Panel — Top (eFootball Konami Solid Sleek Stadium Slate) */
.room-panel {
  width: 100%;
  background: #15151b; /* Solid dark grey matching coop room aesthetic */
  border-radius: var(--radius-lg, 20px);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  position: relative;
  order: 1;
  box-sizing: border-box;
}

.room-header {
  margin-bottom: 16px;
}

.room-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 900;
  color: #ffee00; /* Vivid eFootball Yellow */
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.room-number {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffee00; /* Vivid eFootball Yellow */
  margin-top: 3px;
}

.btn-copy-room {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: #0070dd;
}

.btn-copy-room:hover {
  background: rgba(0, 112, 221, 0.15);
  color: var(--accent-cyan);
}

.btn-copy-room svg {
  width: 16px;
  height: 16px;
}

/* Premium eFootball Action Launcher Button */
.btn-open-efootball {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #0b0e14;
  border: none;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 8px 18px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.22s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-open-efootball:hover {
  background: #ffee00;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 238, 0, 0.35);
}

.btn-open-efootball:active {
  transform: scale(0.97);
}

/* ============================================
   AUTHENTIC eFOOTBALL / KONAMI MATCH HOST UI
   ============================================ */
.efootball-host-card,
.efootball-opponent-card {
  width: 100%;
  background: #15151b; /* Exact Konami stadium dark slate */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.host-card-top,
.opp-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.host-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display, sans-serif);
  font-size: 0.84rem;
  font-weight: 900;
  color: #ffee00; /* Vivid eFootball Yellow */
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.host-dot {
  width: 7px;
  height: 7px;
  background: #ffee00;
  border-radius: 50%;
  box-shadow: 0 0 10px #ffee00;
}

.host-role-pill {
  font-family: var(--font-display, sans-serif);
  font-size: 0.7rem;
  font-weight: 900;
  color: #111111;
  background: #ffee00;
  padding: 3px 12px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.host-card-instruction {
  font-size: 0.78rem;
  font-weight: 500;
  color: #8a9bb5;
  line-height: 1.4;
  margin-bottom: 14px;
}

.host-card-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* eFootball Signature Pure White Launcher Pill Button */
.btn-efootball-launch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  background: #ffffff; /* Signature pure white */
  color: #111111;
  border: none;
  border-radius: 9999px; /* Complete sleek pill shape */
  font-family: var(--font-display, sans-serif);
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-transform: capitalize;
}

.btn-efootball-launch svg {
  color: #0070dd; /* Matching eFootball blue launcher icon */
}

.btn-efootball-launch:hover {
  background: #f4f5f8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.btn-efootball-launch:active {
  transform: scale(0.98);
}

.host-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.efootball-id-input {
  flex: 1;
  height: 42px;
  background: #0e0f14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px; /* Sleek pill shape */
  padding: 0 16px;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  outline: none;
  transition: all 0.2s ease;
}

.efootball-id-input:focus {
  border-color: #ffee00;
  box-shadow: 0 0 10px rgba(255, 238, 0, 0.2);
}

.efootball-id-input::placeholder {
  color: #555e6d;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: normal;
}

/* Save Pill Action Button */
.btn-efootball-save {
  height: 42px;
  padding: 0 20px;
  background: #ffee00; /* Vivid eFootball Yellow */
  color: #111111;
  border: none;
  border-radius: 9999px; /* Matching pill shape */
  font-family: var(--font-display, sans-serif);
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 238, 0, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-efootball-save:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-1px);
}

.btn-efootball-save:active {
  transform: scale(0.96);
}

/* Opponent Card */
.opp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display, sans-serif);
  font-size: 0.84rem;
  font-weight: 900;
  color: #00d2ff;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.opp-dot {
  width: 7px;
  height: 7px;
  background: #00d2ff;
  border-radius: 50%;
  box-shadow: 0 0 10px #00d2ff;
}

.opp-role-pill {
  font-family: var(--font-display, sans-serif);
  font-size: 0.7rem;
  font-weight: 900;
  color: #111111;
  background: #00d2ff;
  padding: 3px 12px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.opp-code-box {
  background: #0e0f14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 10px 16px;
  margin-top: 6px;
}

.opp-code-label {
  font-size: 0.68rem;
  color: #8a9bb5;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.opp-code-val-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.opp-code-number {
  font-family: var(--font-display, sans-serif);
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffee00;
  letter-spacing: 1.5px;
}

.btn-copy-mini-pill {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 14px;
  border-radius: 9999px;
  font-family: var(--font-display, sans-serif);
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-mini-pill:hover {
  background: #ffffff;
  color: #111111;
}

.btn-copy-code-pill {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.btn-copy-code-pill:hover {
  background: #ffffff;
  color: #000000;
}

/* In-Game Room ID Input for Room Creator */
.host-room-input-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed rgba(255, 238, 0, 0.4);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.ingame-room-input {
  flex: 1;
  background: #111116;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  outline: none;
}

.ingame-room-input:focus {
  border-color: #ffee00;
}

.btn-sync-room-id {
  background: #ffee00;
  color: #000;
  border: none;
  font-size: 11px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-sync-room-id:hover {
  background: #fff;
}

/* Live Match Running HUD */
.live-match-timer-hud {
  background: linear-gradient(135deg, rgba(13, 34, 88, 0.9) 0%, rgba(6, 14, 40, 0.95) 100%);
  border: 1.5px solid #ffee00;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  margin: 12px 0;
  box-shadow: 0 0 25px rgba(255, 238, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hud-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffee00;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hud-timer-display {
  font-size: 2.4rem;
  font-weight: 900;
  color: #ffffff;
  font-family: var(--font-display, sans-serif);
  margin: 6px 0 2px 0;
  text-shadow: 0 0 20px rgba(255, 238, 0, 0.4);
}

.hud-subtext {
  font-size: 11px;
  color: #aaa;
  margin: 0 0 12px 0;
}

.btn-submit-result-action {
  width: 100%;
  background: #ffffff;
  color: #000000;
  border: none;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-submit-result-action:hover {
  background: #ffee00;
}

/* Post-Match Result Submission Modal */
.match-result-card {
  position: relative;
  width: 90%;
  max-width: 400px;
  background: #141419;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 22px 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.85);
  animation: modalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.result-card-header {
  text-align: center;
  margin-bottom: 16px;
}

.result-header-badge {
  display: inline-block;
  background: rgba(255, 238, 0, 0.1);
  color: #ffee00;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 238, 0, 0.3);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.result-card-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 4px 0;
}

.result-card-desc {
  color: #888;
  font-size: 11.5px;
  margin: 0;
  line-height: 1.4;
}

.btn-cancel-result {
  width: 100%;
  background: transparent;
  color: #888;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 10px;
  cursor: pointer;
  margin-top: 6px;
}

.btn-cancel-result:hover {
  color: #fff;
}

/* Player Entry — 1vs1 eFootball Layout */
.player-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
}

/* Premium circular avatar frame with Konami Gold gradient rim */
.player-avatar-gold-frame {
  width: 44px;
  height: 44px;
  min-width: 44px;
  max-width: 44px;
  min-height: 44px;
  max-height: 44px;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from 180deg at 50% 50%, #ffd700 0deg, #ffae19 70deg, #fff3a8 140deg, #e5a00d 210deg, #ffd700 280deg, #fff 340deg, #ffd700 360deg);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.player-avatar-gold-frame .player-avatar {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1.5px solid #06060e !important;
  display: block !important;
  box-sizing: border-box;
}

.player-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
  gap: 2px;
}

.player-name {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-role {
  font-size: 11px;
  font-weight: 700;
  color: #888899;
  text-transform: capitalize;
}

/* Ready badge (vivid green checkmark + text, Image 3 clean style) */
.player-ready-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #00e676;
  font-size: 14px;
  font-weight: 800;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  animation: none;
}

.player-ready-badge svg {
  width: 18px;
  height: 18px;
  fill: #00e676;
  flex-shrink: 0;
}

/* Room Panel Top Actions (Ready Pill & Copy Button, Image 5 style) */
.room-panel-top-actions {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
}

.room-panel-top-actions .btn-copy-room {
  position: static;
  top: auto;
  right: auto;
}

/* Room Ready Counter Pill (Image 5 white capsule style) */
.room-ready-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #ffffff;
  border-radius: 20px;
  color: #111111;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.1px;
}

.room-ready-pill svg {
  width: 14px;
  height: 14px;
  fill: #00c853;
  flex-shrink: 0;
}

/* Invite Button */
.btn-invite {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-invite:hover .invite-text {
  color: #fff;
}

.invite-plus {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--text-secondary);
  border: 2px dashed rgba(255,255,255,0.15);
  transition: all var(--transition-fast);
}

.btn-invite:hover .invite-plus {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

.invite-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-cyan);
  transition: color var(--transition-fast);
}

/* Status Message */
.room-status {
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.room-status.status-enough {
  color: #c0c6d2;
}

/* ============================================
   WAITING FOR OPPONENT MODAL (Image 5 Crisp Style)
   ============================================ */
.waiting-dialog-card {
  position: relative;
  z-index: 10;
  width: calc(100% - 44px);
  max-width: 350px;
  background: #ffffff;
  border-radius: 24px;
  padding: 30px 24px 24px 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  animation: modalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.waiting-dialog-title {
  font-family: var(--font-primary);
  font-size: 19px;
  font-weight: 900;
  color: #111111;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.waiting-dialog-desc {
  font-size: 13px;
  line-height: 1.45;
  color: #222222;
  margin-bottom: 22px;
  max-width: 270px;
  font-weight: 600;
}

.waiting-spinner-container {
  width: 50px;
  height: 50px;
  margin: 0 auto 26px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.waiting-dots-spinner-svg {
  width: 46px;
  height: 46px;
  display: block;
}

.spinner-dot {
  fill: #8c8c9e;
  opacity: 0.18;
}

.sd1  { animation: dotFade 1.2s infinite ease-in-out 0.0s; }
.sd2  { animation: dotFade 1.2s infinite ease-in-out 0.1s; }
.sd3  { animation: dotFade 1.2s infinite ease-in-out 0.2s; }
.sd4  { animation: dotFade 1.2s infinite ease-in-out 0.3s; }
.sd5  { animation: dotFade 1.2s infinite ease-in-out 0.4s; }
.sd6  { animation: dotFade 1.2s infinite ease-in-out 0.5s; }
.sd7  { animation: dotFade 1.2s infinite ease-in-out 0.6s; }
.sd8  { animation: dotFade 1.2s infinite ease-in-out 0.7s; }
.sd9  { animation: dotFade 1.2s infinite ease-in-out 0.8s; }
.sd10 { animation: dotFade 1.2s infinite ease-in-out 0.9s; }
.sd11 { animation: dotFade 1.2s infinite ease-in-out 1.0s; }
.sd12 { animation: dotFade 1.2s infinite ease-in-out 1.1s; }

@keyframes dotFade {
  0%, 39%, 100% { opacity: 0.18; }
  40% { opacity: 1; }
}

.btn-waiting-cancel {
  width: 100%;
  max-width: 300px;
  padding: 13px 24px;
  background: #c8e1f5;
  color: #0070dd;
  font-size: 15px;
  font-weight: 800;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: block;
}

.btn-waiting-cancel:hover {
  background: #b6daf7;
}

.btn-waiting-cancel:active {
  transform: scale(0.98);
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Screen entrance */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen.active .tournament-card {
  animation: fadeSlideIn 0.4s ease both;
}

.screen.active .tournament-card:nth-child(2) {
  animation-delay: 0.08s;
}

.screen.active .tournament-card:nth-child(3) {
  animation-delay: 0.16s;
}

.screen.active .tournament-card:nth-child(4) {
  animation-delay: 0.24s;
}

.screen.active .room-panel {
  animation: fadeSlideIn 0.4s ease 0.12s both;
}

/* Option Cards stagger */
.screen.active .option-card {
  animation: fadeSlideIn 0.35s ease both;
}

.screen.active .option-card:nth-child(2) {
  animation-delay: 0.08s;
}

/* ============================================
   SCREEN 4: MATCH SETTINGS SCREEN
   ============================================ */
.settings-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  overflow-y: auto;
  padding-bottom: calc(var(--bottom-bar-height) + 12px);
}

.settings-title-header {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--accent-yellow);
  text-shadow: var(--shadow-glow-yellow);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(0, 200, 255, 0.15);
}

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

.settings-item-row {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,0.04);
}

.settings-item-row[onclick] {
  cursor: pointer;
}

.settings-item-row[onclick]:hover {
  background: var(--bg-secondary);
  border-color: rgba(0, 200, 255, 0.2);
}

.settings-item-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.settings-item-value {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.settings-item-value span {
  color: var(--text-primary);
  font-weight: 600;
}

.settings-item-value .chevron-icon {
  width: 14px;
  height: 14px;
}

/* Toggle Switch Styling */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #3a3a50;
  border-radius: 24px;
  transition: .25s ease;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: .25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--accent-green);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* Reset Button */
.btn-reset {
  padding: 8px 30px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  background: transparent;
  transition: all var(--transition-fast);
}

.btn-reset:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
}

.btn-reset:active {
  transform: scale(0.95);
}

/* ============================================
   BOTTOM SHEET / SELECTION DIALOG (eFootball Style)
   ============================================ */
.bottom-sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--transition-fast) ease, visibility var(--transition-fast) ease;
}

.bottom-sheet.open {
  visibility: visible;
  opacity: 1;
}

.bottom-sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.bottom-sheet-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 20px 18px 24px;
  transform: translateY(100%);
  transition: transform var(--transition-normal) cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 80%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.3);
}

.bottom-sheet.open .bottom-sheet-content {
  transform: translateY(0);
}

.bottom-sheet-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8e8e8;
}

.bottom-sheet-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: #000000;
  text-align: center;
  width: 100%;
}

.btn-close-sheet {
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 24px;
  color: #888888;
  line-height: 1;
}

.bottom-sheet-options {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  max-height: 280px;
}

.bottom-sheet-option-item {
  padding: 14px 10px;
  background: transparent;
  border-radius: 0;
  font-size: 15px;
  font-weight: 700;
  color: #333333;
  text-align: left;
  border: none;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  transition: background var(--transition-fast);
}

.bottom-sheet-option-item:hover {
  background: #f8f8f8;
}

.bottom-sheet-option-item.selected {
  color: #0070dd;
}

/* Blue checkmark icon */
.sheet-checkmark {
  width: 16px;
  height: 16px;
  color: #0070dd;
  stroke-width: 3;
}

/* Blue Done Button */
.btn-sheet-done {
  background: #0070dd;
  color: #ffffff;
  border-radius: 24px;
  padding: 12px 0;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  width: 100%;
  margin-top: 18px;
  box-shadow: 0 4px 12px rgba(0, 112, 221, 0.25);
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.btn-sheet-done:hover {
  background: #0080ff;
  box-shadow: 0 4px 16px rgba(0, 112, 221, 0.35);
}

.btn-sheet-done:active {
  transform: scale(0.97);
}


/* Toast notification (Positioned at bottom so it never covers the header) */
.toast {
  position: fixed;
  bottom: 75px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #1e1e28;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 300;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

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

/* ============================================
   NOTIFICATION BELL IN HEADER
   ============================================ */
.btn-notification {
  background: transparent;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--transition-fast) ease;
  margin-right: 8px;
  border-radius: 50%;
}

.btn-notification:hover {
  color: var(--accent-cyan);
  background: rgba(255,255,255,0.05);
}

/* ============================================
   CO-OP MATCH ROOM SLOT LAYOUTS (6 SLOTS)
   ============================================ */
.room-panel-coop {
  width: 100%;
  background: #15151b; /* Solid dark grey background */
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  position: relative;
  order: 1;
  box-sizing: border-box;
}

.coop-slots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 12px;
  row-gap: 0;
  margin-top: 12px;
  width: 100%;
  box-sizing: border-box;
}

.coop-row-item {
  display: flex;
  align-items: center;
  min-height: 52px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Row dividers for Row 1 and Row 2 (first 4 items in a 2x3 grid) */
.coop-row-item:nth-child(1),
.coop-row-item:nth-child(2),
.coop-row-item:nth-child(3),
.coop-row-item:nth-child(4) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

/* Player Slot Card */
.coop-player-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.slot-avatar-container {
  width: 36px;
  height: 36px;
  min-width: 36px;
  max-width: 36px;
  min-height: 36px;
  max-height: 36px;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from 180deg at 50% 50%, #ffd700 0deg, #ffae19 70deg, #fff3a8 140deg, #e5a00d 210deg, #ffd700 280deg, #fff 340deg, #ffd700 360deg);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.slot-avatar-container .player-avatar,
.slot-avatar-container img,
.slot-avatar-container svg {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  border: 1px solid #06060e !important;
}

.slot-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.coop-player-slot .player-name {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
  line-height: 1.2;
}

.btn-side-capsule {
  background: #55555e; /* grey capsule */
  color: #ffffff;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border: none;
  cursor: pointer;
  text-align: center;
  width: fit-content;
  text-transform: capitalize;
  line-height: 1.3;
  transition: background var(--transition-fast) ease;
}

.btn-side-capsule:hover {
  background: #666672;
}

/* Invite flat slot */
.coop-invite-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  transition: opacity var(--transition-fast) ease;
}

.coop-invite-slot:hover {
  opacity: 0.8;
}

.coop-plus {
  width: 32px;
  height: 32px;
  min-width: 32px;
  max-width: 32px;
  min-height: 32px;
  max-height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #0070dd;
  font-weight: 800;
  border: 1.5px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
  box-sizing: border-box;
}

.coop-invite-text {
  font-size: 12px;
  font-weight: 800;
  color: #0070dd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================
   SEARCH MATCH ROOM DIALOG STYLING
   ============================================ */
.search-dialog-card {
  position: relative;
  z-index: 10;
  width: 85%;
  max-width: 340px;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 20px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.open .search-dialog-card {
  transform: scale(1);
}

.search-dialog-title {
  font-size: 17px;
  font-weight: 900;
  color: #000000;
  margin-bottom: 8px;
}

.search-dialog-desc {
  font-size: 12px;
  color: #4a4a58;
  margin-bottom: 12px;
  line-height: 1.45;
  font-weight: 500;
}

.search-error-msg {
  color: #ff3b30;
  font-size: 11.5px;
  font-weight: bold;
  margin-bottom: 14px;
  display: none;
}

.search-input-container {
  width: 100%;
  margin-bottom: 16px;
}

.search-room-input {
  width: 100%;
  border: 1.5px solid #dcdce2;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  background: #fafafa;
  text-align: center;
  color: #111111;
  transition: all 0.2s ease;
}

.search-room-input:focus {
  border-color: #0070dd;
  background: #ffffff;
}

.btn-search-cancel {
  flex: 1;
  background: #e3effd;
  color: #0070dd;
  border-radius: var(--radius-md);
  padding: 11px 0;
  font-size: 13.5px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.btn-search-cancel:hover {
  background: #d0e5fc;
}

.btn-search-submit {
  flex: 1;
  border-radius: var(--radius-md);
  padding: 11px 0;
  font-size: 13.5px;
  font-weight: 800;
  border: none;
  text-align: center;
  transition: all var(--transition-fast);
}

.btn-search-submit.disabled {
  background: #f0f0f2;
  color: #a2a2b0;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-search-submit:not(.disabled) {
  background: #e3effd;
  color: #0070dd;
  cursor: pointer;
  pointer-events: auto;
}

.btn-search-submit:not(.disabled):hover {
  background: #d0e5fc;
}

/* Bottom Controls */
.coop-bottom-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-coop-control {
  background: #1a1a2e;
  color: #4a5568;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.04);
}

.btn-coop-control.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   MODALS OVERLAY AND COMMON LAYOUTS
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast) ease, visibility var(--transition-fast) ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

.modal-card {
  position: relative;
  z-index: 10;
}

/* Close Confirmation Room Alert Card */
.confirm-dialog-card {
  position: relative;
  z-index: 10;
  width: 85%;
  max-width: 320px;
  background: #ffffff;
  border-radius: 16px;
  padding: 22px 18px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.open .confirm-dialog-card {
  transform: scale(1);
}

.confirm-dialog-title {
  font-size: 16px;
  font-weight: 800;
  color: #000000;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.confirm-dialog-desc {
  font-size: 13px;
  color: #4a4a58;
  margin-bottom: 22px;
  line-height: 1.4;
  font-weight: 500;
}

.confirm-dialog-buttons {
  display: flex;
  gap: 10px;
  width: 100%;
}

.btn-confirm-cancel {
  flex: 1;
  background: #e3effd;
  color: #0070dd;
  border-radius: var(--radius-md);
  padding: 11px 0;
  font-size: 13.5px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.btn-confirm-cancel:hover {
  background: #d0e5fc;
}

.btn-confirm-close {
  flex: 1;
  background: #f0f0f2;
  color: #ff3b30;
  border-radius: var(--radius-md);
  padding: 11px 0;
  font-size: 13.5px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.btn-confirm-close:hover {
  background: #e4e4e7;
}

/* ============================================
   NOTIFICATION ALERT CARD (eFootball Festival)
   ============================================ */
.notification-modal-card {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 375px;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  max-height: 85%;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .notification-modal-card {
  transform: translateY(0);
}

.notification-header-banner {
  background: #0070dd;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.notification-header-banner.orange-banner {
  background: #f58200;
}

.notification-header-banner svg {
  width: 46px;
  height: 46px;
}

.notification-body {
  padding: 20px 18px;
  overflow-y: auto;
  color: #000000;
}

.notification-title {
  font-size: 20px;
  font-weight: 900;
  color: #000000;
  margin-bottom: 12px;
  letter-spacing: -0.4px;
}

.notification-text {
  font-size: 13px;
  line-height: 1.5;
  color: #333333;
  margin-bottom: 16px;
  font-weight: 500;
}

.notification-section {
  margin-top: 14px;
}

.notification-section-title {
  font-size: 13px;
  font-weight: 800;
  color: #000000;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.notification-section-text {
  font-size: 12.5px;
  color: #444444;
  line-height: 1.4;
  font-weight: 500;
}

.btn-close-modal {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: #ffffff;
  transition: background var(--transition-fast);
  z-index: 15;
}

.btn-close-modal:hover {
  background: rgba(255,255,255,0.4);
}

.btn-close-modal svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   SCROLLBAR (for match room)
   ============================================ */
.match-room-content::-webkit-scrollbar {
  width: 4px;
}

.match-room-content::-webkit-scrollbar-track {
  background: transparent;
}

.match-room-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

/* ============================================
   RESPONSIVE — Larger viewports
   ============================================ */
@media (min-width: 768px) {
  .app {
    border-left: 1px solid rgba(255,255,255,0.05);
    border-right: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 0 60px rgba(0, 200, 255, 0.05);
  }
}

/* ============================================
   CO-OP BOTTOM CONTROLS & DISABLED ACTIONS
   ============================================ */
.coop-bottom-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

/* Disabled pills (Leader / Side / To Match) */
.btn-coop-control {
  background: #23232d; /* dark capsule */
  color: #5a5a64; /* muted text */
  border-radius: 20px; /* pill shape */
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 800;
  border: none;
  text-align: center;
  transition: all var(--transition-fast) ease;
  width: fit-content;
  min-width: 76px;
  cursor: not-allowed;
  opacity: 0.85;
}

.btn-to-match.disabled {
  background: #23232d !important; /* dark capsule */
  color: #5a5a64 !important; /* muted text */
  box-shadow: none !important;
  border: none !important;
  border-radius: 20px;
  cursor: not-allowed;
}

.btn-to-match.disabled svg {
  color: #5a5a64 !important;
}

/* ============================================
   WALLET RECHARGE MODAL (Amount Selection)
   ============================================ */
.wallet-recharge-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wallet-recharge-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.wallet-recharge-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 400px;
  background: #111116;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(214, 255, 0, 0.08);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wallet-recharge-modal-overlay.open .wallet-recharge-card {
  transform: translateY(0) scale(1);
}

.wallet-recharge-body {
  padding: 24px 20px;
  overflow-y: auto;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wr-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.wr-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(214, 255, 0, 0.08);
  border: 1px solid rgba(214, 255, 0, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #D6FF00;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.wr-main-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin: 0;
}

.wr-subtitle {
  font-size: 0.8rem;
  color: #8A8F98;
  margin: 0;
}

.wr-balance-banner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wr-bb-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #8A8F98;
  letter-spacing: 0.5px;
}

.wr-bb-amount-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wr-bb-amount {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #D6FF00;
}

.wr-section-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #8A8F98;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Clean Amount Selection Grid (No tags!) */
.wr-clean-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.wr-clean-amount-card {
  background: linear-gradient(145deg, #18181f 0%, #121216 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.wr-clean-amount-card:hover {
  transform: translateY(-3px);
  border-color: #D6FF00;
  box-shadow: 0 8px 24px rgba(214, 255, 0, 0.18);
}

.wr-clean-amount-card.highlight {
  border-color: rgba(214, 255, 0, 0.5);
  background: linear-gradient(145deg, rgba(214, 255, 0, 0.08) 0%, #14141a 100%);
}

.wr-card-amount {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.wr-clean-amount-card:hover .wr-card-amount {
  color: #D6FF00;
}

.wr-card-coins {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #a0aec0;
}

.wr-coin-mini-img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.4));
}

.wr-view-history-link {
  background: transparent;
  border: none;
  color: #8A8F98;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.wr-view-history-link:hover {
  color: #25D366;
}

/* Custom Input */
.wr-custom-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wr-custom-label {
  font-size: 0.75rem;
  color: #8A8F98;
  font-weight: 600;
}

.wr-custom-input-box {
  display: flex;
  align-items: center;
  background: #18181f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 4px 6px 4px 12px;
  gap: 6px;
}

.wr-currency-symbol {
  font-weight: 800;
  color: #D6FF00;
  font-size: 1rem;
}

.wr-custom-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.wr-custom-proceed-btn {
  background: #D6FF00;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.wr-custom-proceed-btn:hover {
  transform: scale(1.04);
  background: #e0ff33;
}

/* ============================================
   SCREEN 8: DEDICATED DEPOSIT PAYMENT PAGE
   ============================================ */
.screen-wallet-payment {
  background: #000000;
  color: #ffffff;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.payment-header-title-wrap {
  display: flex;
  align-items: center;
  margin-left: 6px;
}

.payment-screen-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: 0.2px;
}

.payment-screen-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #25D366;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.screen-back-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.screen-back-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
}

.wallet-payment-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 40px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Hero Payable Amount Card */
.wp-hero-card {
  background: linear-gradient(135deg, #181822 0%, #0d0d12 100%);
  border: 1px solid rgba(214, 255, 0, 0.2);
  border-radius: 20px;
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.wp-hero-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #8A8F98;
  letter-spacing: 1px;
}

.wp-hero-amount-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.wp-hero-currency {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #D6FF00;
}

.wp-hero-amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: #D6FF00;
  letter-spacing: -1px;
  line-height: 1;
}

.wp-hero-coins-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  color: #ccc;
}

.wp-hero-coins-badge strong {
  color: #fff;
}

/* Payment Apps in Single Row (GPay, Paytm, UPI Pay) */
.wp-payment-apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.wp-app-btn {
  background: linear-gradient(145deg, #181b2e 0%, #0d0f1f 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 12px 6px 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.wp-app-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.65);
}

.wp-app-btn:active {
  transform: scale(0.95);
}

.wp-app-btn.gpay-btn:hover {
  border-color: rgba(66, 133, 244, 0.7);
  box-shadow: 0 6px 22px rgba(66, 133, 244, 0.3);
}

.wp-app-btn.paytm-btn:hover {
  border-color: rgba(0, 186, 242, 0.7);
  box-shadow: 0 6px 22px rgba(0, 186, 242, 0.3);
}

.wp-app-btn.upi-btn:hover {
  border-color: rgba(0, 200, 255, 0.7);
  box-shadow: 0 6px 22px rgba(0, 200, 255, 0.3);
}

.wp-app-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 3px 4px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
  overflow: hidden;
}

.wp-app-btn:hover .wp-app-icon-wrap {
  transform: scale(1.06);
}

.wp-app-img-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wp-gpay-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.wp-paytm-img {
  width: 36px;
  height: 18px;
  object-fit: contain;
}

.wp-upi-img {
  width: 36px;
  height: 22px;
  object-fit: contain;
}

.wp-app-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.2px;
}

/* Recipient Box */
.wp-recipient-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wp-recipient-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wp-recipient-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wp-recipient-name {
  font-size: 0.82rem;
  color: #fff;
}

.wp-recipient-name strong {
  color: #D6FF00;
}

.wp-recipient-meta {
  font-size: 0.7rem;
  color: #8A8F98;
}

.wp-status-shield {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #25D366;
}

/* Action Group */
.wp-action-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wp-btn-direct-pay {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border: none;
  border-radius: 16px;
  padding: 14px 16px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.wp-btn-direct-pay:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.5);
}

.wp-direct-pay-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.wp-btn-subtext {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.wp-btn-view-scanner {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 11px 16px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wp-btn-view-scanner:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Expandable QR Scanner Card */
.wp-scanner-card {
  background: #141419;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeInDown 0.3s ease;
}

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

.wp-scanner-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #8A8F98;
  font-weight: 600;
}

.wp-download-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #D6FF00;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  padding: 4px 8px;
  background: rgba(214, 255, 0, 0.08);
  border: 1px solid rgba(214, 255, 0, 0.2);
  border-radius: 6px;
  transition: all 0.15s ease;
}

.wp-download-link:hover {
  background: rgba(214, 255, 0, 0.18);
}

.wp-qr-frame {
  width: 180px;
  height: 180px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.wp-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Verification Card */
.wp-verification-card {
  background: #111116;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wp-form-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.wp-form-desc {
  font-size: 0.8rem;
  color: #8A8F98;
  margin: 0 0 4px 0;
  line-height: 1.45;
  text-wrap: balance;
}

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

.wp-field-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #ccc;
}

.wp-field-label .required {
  color: #D6FF00;
}

.wp-input-wrapper {
  background: #18181f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 2px 10px;
}

.wp-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 0;
  font-family: inherit;
}

.wp-upload-dropzone {
  background: #18181f;
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.wp-upload-dropzone:hover {
  border-color: #D6FF00;
  background: rgba(214, 255, 0, 0.03);
}

.wp-upload-dropzone span {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.wp-upload-dropzone small {
  font-size: 0.68rem;
  color: #8A8F98;
}

.wp-error-text {
  font-size: 0.7rem;
  color: #ff4444;
  font-weight: 600;
}

.wp-btn-submit {
  background: linear-gradient(135deg, #D6FF00 0%, #99cc00 100%);
  border: none;
  border-radius: 14px;
  padding: 13px 16px;
  color: #000;
  font-size: 0.95rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 4px 18px rgba(214, 255, 0, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.wp-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(214, 255, 0, 0.4);
}

/* ============================================
   SCREEN 9: MY TRANSACTIONS (eMatch Theme)
   ============================================ */
.screen-transactions {
  background: radial-gradient(circle at 50% -10%, #0d1b4a 0%, #060714 55%, #000000 100%) !important;
  color: #ffffff;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.txn-header {
  background: transparent;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.txn-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.txn-back-btn:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-cyan);
}

.txn-page-title {
  font-family: var(--font-display, 'Orbitron', 'Inter', sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.2px;
}

.txn-help-btn {
  cursor: pointer;
}

.txn-mascot-icon {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 200, 255, 0.1);
  border: 1px solid rgba(0, 200, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.txn-help-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffc800;
  color: #000;
  font-size: 0.65rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.txn-content-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 40px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Category Tabs (Deposits, Withdrawals, Balance, Highlights) */
.txn-category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.txn-category-tabs::-webkit-scrollbar {
  display: none;
}

.txn-tab-pill {
  background: #101326;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #8a9bb5;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.txn-tab-pill.active {
  background: linear-gradient(135deg, #00c8ff 0%, #0070dd 100%);
  border-color: #00c8ff;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 200, 255, 0.35);
}

/* Sub-Filters (Succeed, Pending, Request failed) with Filter icon */
.txn-sub-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.txn-sub-filters::-webkit-scrollbar {
  display: none;
}

.txn-filter-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 4px;
}

.txn-filter-pill {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #8a9bb5;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.txn-filter-pill.active {
  background: rgba(0, 200, 255, 0.15);
  border-color: var(--accent-cyan);
  color: #00c8ff;
  font-weight: 700;
}

/* Notice Banner */
.txn-notice-banner {
  background: rgba(255, 200, 0, 0.08);
  border: 1px solid rgba(255, 200, 0, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffc800; /* Bright gold notice text */
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Time Range Filter Bar (1 Day, 7 Days, 30 Days) */
.txn-time-bar,
.txn-time-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  background: #0d0f1e;
  border-radius: 999px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.txn-time-pill {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 6px 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #7a8da8;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.txn-time-pill.active {
  background: #1a1e38;
  color: #00c8ff;
  border: 1px solid rgba(0, 200, 255, 0.3);
  font-weight: 700;
}

/* Transaction Card (eMatch Theme Match) */
.txn-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.txn-card {
  background: linear-gradient(135deg, #101326 0%, #090b16 100%);
  border: 1px solid rgba(0, 200, 255, 0.15);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.18s ease;
}

.txn-card:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 200, 255, 0.3);
}

.txn-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}

.txn-id-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', 'Courier New', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
}

.txn-copy-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}

.txn-copy-btn:hover {
  color: #00c8ff;
}

/* Status Badges */
.txn-status-badge {
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: capitalize;
}

.txn-status-badge.succeed {
  background: rgba(62, 207, 74, 0.15);
  color: #3ecf4a;
  border: 1px solid rgba(62, 207, 74, 0.4);
}

.txn-status-badge.pending {
  background: rgba(255, 200, 0, 0.15);
  color: #ffc800;
  border: 1px solid rgba(255, 200, 0, 0.4);
}

.txn-status-badge.failed {
  background: rgba(255, 68, 68, 0.15);
  color: #ff4444;
  border: 1px solid rgba(255, 68, 68, 0.4);
}

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

.txn-method-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.txn-upi-box {
  background: #ffffff;
  border-radius: 4px;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
  color: #000000;
  border: 1px solid rgba(0,0,0,0.1);
}

.txn-method-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.txn-method-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.txn-method-date {
  font-size: 0.7rem;
  color: #7a8da8;
}

.txn-amount-val {
  font-family: 'Space Grotesk', 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffc800; /* Gold price numerals */
  letter-spacing: 0.5px;
}

/* Empty State */
.txn-empty-state {
  text-align: center;
  padding: 48px 20px;
  color: #7a8da8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.txn-empty-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(0, 200, 255, 0.1);
  border: 1px solid rgba(0, 200, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.txn-empty-btn {
  background: var(--gradient-btn);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 4px 15px rgba(0, 200, 255, 0.35);
  transition: all 0.2s ease;
}

.txn-empty-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 200, 255, 0.5);
}

/* ============================================
   ELEVEN AI SUPPORT CHATBOT MODAL (eMatch UI/UX)
   ============================================ */
.eleven-ai-chat-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.eleven-ai-chat-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.eleven-ai-chat-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.eleven-ai-chat-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 90vh;
  height: 90dvh;
  max-height: 740px;
  background: linear-gradient(180deg, #0f1329 0%, #080a16 100%);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 200, 255, 0.15);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  z-index: 1;
}

.eleven-ai-chat-modal.open .eleven-ai-chat-card {
  transform: translateY(0);
}

/* Chat Header */
.ai-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(16, 20, 42, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.ai-chat-back-btn,
.ai-chat-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ai-chat-back-btn:hover,
.ai-chat-close-btn:hover {
  background: rgba(0, 200, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.ai-chat-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.ai-chat-avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00c8ff 0%, #0070dd 100%);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.4);
}

.ai-chat-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #0d0f1e;
}

.ai-chat-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3ecf4a;
  border: 2px solid #0f1329;
  box-shadow: 0 0 8px #3ecf4a;
}

.ai-chat-title {
  font-family: var(--font-display, 'Orbitron', 'Inter', sans-serif);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.3px;
}

.ai-chat-status {
  font-size: 0.68rem;
  color: #00c8ff;
  font-weight: 600;
  margin: 2px 0 0 0;
}

/* Chat Messages */
.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
}

.ai-msg-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 90%;
  animation: aiMsgFadeIn 0.25s ease-out;
}

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

.ai-msg-row.bot {
  align-self: flex-start;
}

.ai-msg-row.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(0, 200, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.ai-msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-msg-bubble {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.86rem;
  line-height: 1.48;
  position: relative;
  word-break: break-word;
}

.ai-msg-bubble.bot {
  background: linear-gradient(135deg, #141833 0%, #0d1024 100%);
  border: 1px solid rgba(0, 200, 255, 0.16);
  color: #e2e8f0;
  border-top-left-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.ai-msg-bubble.user {
  background: linear-gradient(135deg, #0070dd 0%, #00c8ff 100%);
  color: #ffffff;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 14px rgba(0, 200, 255, 0.3);
}

.ai-msg-bot-tag {
  font-size: 0.64rem;
  font-weight: 800;
  color: #00c8ff;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ai-msg-text strong {
  color: #00c8ff;
  font-weight: 700;
}

.ai-msg-text code {
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  color: #ffc800;
  font-family: monospace;
}

/* Quick Action Suggestion Pills */
.ai-quick-action-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.ai-quick-pill {
  background: rgba(0, 200, 255, 0.08);
  border: 1px solid rgba(0, 200, 255, 0.22);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #00c8ff;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-quick-pill:hover {
  background: rgba(0, 200, 255, 0.18);
  border-color: #00c8ff;
  transform: translateX(3px);
  color: #ffffff;
}

/* Bot CTA Action Button inside Message */
.ai-cta-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 10px;
  text-decoration: none;
  margin-top: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
}

.ai-cta-action-btn:hover {
  background: #20ba59;
  transform: translateY(-1px);
}

.ai-cta-action-btn.cyan {
  background: var(--gradient-btn);
  box-shadow: 0 4px 14px rgba(0, 200, 255, 0.35);
}

/* Typing indicator */
.ai-typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  background: #141833;
  border: 1px solid rgba(0, 200, 255, 0.16);
  border-radius: 16px;
  border-top-left-radius: 4px;
  width: fit-content;
}

.ai-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: aiDotBounce 1.2s infinite ease-in-out;
}

.ai-typing-dot:nth-child(1) { animation-delay: 0s; }
.ai-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes aiDotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-5px); opacity: 1; }
}

/* Chat Input Bar */
.ai-chat-input-bar {
  padding: 12px 14px 16px 14px;
  background: #0a0d1e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-chat-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 4px 8px 4px 16px;
  transition: all 0.2s ease;
}

.ai-chat-input-wrapper:focus-within {
  border-color: var(--accent-cyan);
  background: rgba(0, 200, 255, 0.04);
  box-shadow: 0 0 14px rgba(0, 200, 255, 0.2);
}

.ai-chat-input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
  min-width: 0;
}

.ai-chat-input-wrapper input::placeholder {
  color: #64748b;
  font-size: 0.8rem;
}

.ai-chat-upload-btn {
  background: transparent;
  border: none;
  color: #8a9bb5;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s ease;
}

.ai-chat-upload-btn:hover {
  color: var(--accent-cyan);
}

.ai-chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-btn);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 200, 255, 0.35);
  transition: all 0.2s ease;
}

.ai-chat-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 200, 255, 0.5);
}

.ai-chat-send-btn:active {
  transform: scale(0.95);
}

/* ============================================
   PROFESSIONAL TOAST / SNACKBAR NOTIFICATION
   ============================================ */
.toast {
  position: fixed;
  bottom: calc(var(--bottom-bar-height, 60px) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(18, 20, 28, 0.95);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 210, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 90vw;
  text-align: center;
}

/* ============================================
   REJOIN / RECONNECT MATCH FLOATING NOTIFICATION
   ============================================ */
.rejoin-match-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(16, 24, 40, 0.96) 0%, rgba(9, 13, 24, 0.98) 100%);
  border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 210, 255, 0.15);
  backdrop-filter: blur(16px);
  animation: slideDownFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

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

.rejoin-banner-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rejoin-pulsing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rejoin-dot {
  width: 7px;
  height: 7px;
  background: #00d2ff;
  border-radius: 50%;
  box-shadow: 0 0 8px #00d2ff;
  animation: dotPulse 1.5s infinite;
}

.rejoin-label {
  font-size: 0.68rem;
  font-weight: 900;
  color: #00d2ff;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.rejoin-room-text {
  font-size: 0.74rem;
  color: #cbd5e1;
  font-weight: 600;
}

.rejoin-timer-text {
  color: #ffd700;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

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

.btn-rejoin-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #00d2ff 0%, #0070dd 100%);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 150, 255, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-rejoin-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0, 150, 255, 0.5);
}

.btn-rejoin-leave {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-rejoin-leave:hover {
  background: rgba(255, 68, 68, 0.2);
  border-color: #ff4444;
  color: #ff4444;
}

/* Disconnected / Greyed-out Opponent Slot */
.player-entry.disconnected {
  opacity: 0.55;
  filter: grayscale(85%);
  border-color: rgba(255, 68, 68, 0.3);
  position: relative;
  transition: all 0.3s ease;
}

.player-disconnected-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 68, 68, 0.15);
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: 999px;
  padding: 2px 8px;
/* ============================================
   3D ESPORTS COIN TOSS ANIMATION & MODAL
   ============================================ */
.coin-toss-modal-overlay {
  z-index: 9999;
}

.coin-toss-modal-card {
  position: relative;
  width: 90%;
  max-width: 400px;
  background: #0d1017;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 24px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 215, 0, 0.15);
  animation: modalPop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-sizing: border-box;
}

.toss-live-badge {
  display: inline-block;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #ffd700;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 12px;
  border-radius: 999px;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.toss-modal-title {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 900;
  font-family: var(--font-display, sans-serif);
  margin-bottom: 20px;
}

.coin-3d-stage {
  perspective: 1000px;
  width: 110px;
  height: 110px;
  margin: 0 auto 20px auto;
}

.coin-3d-flipper {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 3.5s cubic-bezier(0.2, 0.9, 0.1, 1);
}

.coin-3d-flipper.flipping {
  animation: coinSpin3D 2.8s cubic-bezier(0.1, 0.7, 0.1, 1) forwards;
}

@keyframes coinSpin3D {
  0% { transform: rotateY(0deg) translateY(0); }
  30% { transform: rotateY(1080deg) translateY(-40px) scale(1.15); }
  70% { transform: rotateY(2160deg) translateY(-20px) scale(1.08); }
  100% { transform: rotateY(2880deg) translateY(0) scale(1); }
}

.coin-3d-flipper.winner-p2 {
  animation: coinSpinToP2 2.8s cubic-bezier(0.1, 0.7, 0.1, 1) forwards;
}

@keyframes coinSpinToP2 {
  0% { transform: rotateY(0deg) translateY(0); }
  30% { transform: rotateY(1080deg) translateY(-40px) scale(1.15); }
  70% { transform: rotateY(2160deg) translateY(-20px) scale(1.08); }
  100% { transform: rotateY(3060deg) translateY(0) scale(1); }
}

.coin-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #ffe600 0%, #d4a000 100%);
  border: 4px solid #fff566;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.5), inset 0 0 15px rgba(0, 0, 0, 0.4);
}

.coin-front {
  transform: rotateY(0deg);
}

.coin-back {
  transform: rotateY(180deg);
  background: radial-gradient(circle, #00e5ff 0%, #0070dd 100%);
  border-color: #70f0ff;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.5), inset 0 0 15px rgba(0, 0, 0, 0.4);
}

.coin-img-inner {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.coin-face-text {
  font-size: 0.65rem;
  font-weight: 900;
  color: #0b0f19;
  letter-spacing: 0.8px;
  margin-top: 2px;
}

.toss-contestants-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 16px;
}

.toss-contestant-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.toss-contestant-card.winner {
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid #ffd700;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.35);
  transform: scale(1.06);
}

.toss-p-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
}

.toss-contestant-card.winner .toss-p-avatar {
  border-color: #ffd700;
}

.toss-p-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toss-vs-divider {
  font-size: 0.85rem;
  font-weight: 900;
  color: #64748b;
  font-style: italic;
}

.toss-status-display {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 600;
  min-height: 20px;
}

/* ============================================
   TOURNAMENT FILTER PILLS
   ============================================ */
.tourney-filter-bar-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  padding: 12px 0 16px 0 !important;
  width: 100% !important;
  margin: 0 auto !important;
}

.tourney-filter-pill,
button.tourney-filter-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 8px 18px !important;
  border-radius: 24px !important;
  font-size: 0.84rem !important;
  font-family: inherit !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #a0aec0 !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  white-space: nowrap !important;
  letter-spacing: 0.4px !important;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

.tourney-filter-pill:hover,
button.tourney-filter-pill:hover {
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-1px);
}

.tourney-filter-pill.active,
button.tourney-filter-pill.active {
  background: #00e5ff !important;
  border-color: #00e5ff !important;
  color: #050b14 !important;
  font-weight: 800 !important;
  box-shadow: 0 3px 14px rgba(0, 229, 255, 0.4) !important;
  transform: translateY(-1px);
}

/* ============================================
   TOURNAMENT BRACKET — VERTICAL LAYOUT SYSTEM
   ============================================ */

/* Round section */
.bkt-round {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 0;
}

.bkt-round-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bkt-round-icon { font-size: 1rem; }

.bkt-round--qf .bkt-round-header { background: rgba(255,255,255,0.04); color: #8A8F98; border-left: 3px solid #444; }
.bkt-round--sf .bkt-round-header { background: rgba(0,229,255,0.08); color: #00e5ff; border-left: 3px solid #00e5ff; }
.bkt-round--gf .bkt-round-header { background: rgba(255,215,0,0.1); color: #ffd700; border-left: 3px solid #ffd700; }

.bkt-round-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0 4px;
}

/* Match card */
.bkt-card {
  background: rgba(16, 20, 30, 0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(6px);
}
.bkt-card:hover { transform: translateY(-2px); }

.bkt-card--live {
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.18), 0 4px 16px rgba(0,0,0,0.5);
}
.bkt-card--done  { border-color: rgba(255,255,255,0.06); opacity: 0.85; }
.bkt-card--upcoming { border-color: rgba(255,255,255,0.05); opacity: 0.65; }

.bkt-card-header {
  padding: 6px 12px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
}

/* Status chips */
.bkt-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}
.bkt-chip--live     { background: rgba(0,229,255,0.15); color: #00e5ff; border: 1px solid rgba(0,229,255,0.4); }
.bkt-chip--done     { background: rgba(0,255,136,0.1);  color: #00ff88; border: 1px solid rgba(0,255,136,0.3); }
.bkt-chip--upcoming { background: rgba(255,255,255,0.06); color: #8A8F98; border: 1px solid rgba(255,255,255,0.1); }

.bkt-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00e5ff;
  animation: bkt-pulse 1.2s infinite;
  flex-shrink: 0;
}
@keyframes bkt-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* Player rows */
.bkt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  transition: background 0.15s;
}
.bkt-row--win  { background: rgba(0, 229, 255, 0.07); }
.bkt-row--me   .bkt-name { color: #00e5ff !important; }
.bkt-row--lost { opacity: 0.45; }
.bkt-row--lost .bkt-name { text-decoration: line-through; }

.bkt-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a2235, #0d131e);
  border: 1.5px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800;
  color: #00e5ff;
  flex-shrink: 0;
  text-transform: uppercase;
}
.bkt-row--win .bkt-avatar { border-color: #00ff88; color: #00ff88; }

.bkt-name {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 700;
  color: #d0d5e0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bkt-name em { font-style: normal; font-size: 0.72rem; color: #00e5ff; opacity: 0.85; }

.bkt-score {
  font-size: 1rem;
  font-weight: 900;
  color: #555;
  min-width: 22px;
  text-align: right;
}
.bkt-score--win { color: #00ff88; }

.bkt-divider {
  height: 1px;
  background: rgba(255,255,255,0.05);
  margin: 0 14px;
}

/* Arrow connector between rounds */
.bkt-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  color: rgba(255,255,255,0.15);
}

/* Trophy reward card */
.bkt-trophy {
  margin-top: 12px;
  padding: 20px 16px;
  background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,160,0,0.06));
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: 18px;
  text-align: center;
}
.bkt-trophy-icon {
  font-size: 2.8rem;
  filter: drop-shadow(0 0 16px rgba(255,215,0,0.55));
  animation: bkt-bounce 2.2s ease-in-out infinite;
  line-height: 1;
  margin-bottom: 8px;
}
@keyframes bkt-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.bkt-trophy-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffd700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 4px;
}
.bkt-trophy-prize {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
}

