/* ============================================================
   MOBILE BOTTOM NAVIGATION (Phones Only)
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  box-sizing: border-box;
  overflow: hidden;
  height: calc(var(--bottom-nav-h) + var(--safe-bottom));
  background: var(--bg-surface);
  backdrop-filter: none;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 500;
  padding: 0 max(4px, var(--safe-right)) var(--safe-bottom) max(4px, var(--safe-left));
  margin: 0;
}

/* On Laptops & Desktop PCs (>= 880px), bottom navigation is replaced by Header Nav */
@media (min-width: 880px) {
  .bottom-nav {
    display: none;
  }
}

.nav-item {
  flex: 1 1 0;
  min-width: 0;
  max-width: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  height: 100%;
  padding: 4px 2px;
  box-sizing: border-box;
  transition: var(--transition);
  border: none;
  background: transparent;
}

@media (max-width: 420px) {
  .app-header {
    padding-inline: 8px;
    min-height: 44px;
  }

  .brand {
    gap: 7px;
  }

  .brand-icon {
    width: 28px;
    height: 28px;
  }

  .brand-title {
    font-size: 14px;
  }

  .header-actions {
    gap: 6px;
  }

  .balance-pill {
    height: var(--balance-pill-h);
    max-width: none;
    padding-inline: 8px;
    gap: 5px;
    font-size: 12px;
  }

  #header-wallet-amount {
    min-width: 0;
    max-width: 52px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .icon-btn {
    width: 34px;
    height: var(--icon-btn);
  }

  .hero-stats-row {
    gap: 4px;
    padding: 10px 6px;
  }

  .hero-stat .stat-num {
    font-size: 14px;
    white-space: normal;
  }

  .hero-stat .stat-lbl {
    font-size: 10px;
  }
}

@media (max-width: 599px) {
  .tab-content :is(.section-header, .section-heading, .page-title, .page-subtitle, .empty-state, .profile-card, .wallet-card) {
    text-align: center;
  }
  .nav-item { padding-inline: 1px; }
  .nav-item span { font-size: var(--fs-xs); letter-spacing: 0; }
  .nav-icon { width: 21px; }
}

/* Matte product surface overrides: flatter hierarchy and calmer motion. */
body,
.app-container {
  background: var(--bg-main);
}

.quick-hub-card,
.promo-offer-box,
.flow-step-card,
.landing-feature-card,
.match-card,
.room-card,
.wallet-card,
.profile-card {
  background: var(--bg-surface);
  border-color: var(--border);
  box-shadow: none;
  backdrop-filter: none;
}

.quick-hub-card:hover,
.match-card:hover,
.room-card:hover,
.mode-card:hover {
  transform: none;
  box-shadow: none;
}

.announcement-bar,
.promo-offer-box {
  background: var(--bg-surface);
}

.mode-card-overlay {
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.08) 18%, rgba(9, 13, 22, 0.92) 100%);
}

.mode-card-bg {
  opacity: 0.82;
}

.esports-hero-banner {
  box-shadow: none;
}

.nav-item span {
  font-size: var(--fs-xs);
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.nav-icon {
  width: 20px;
  height: var(--icon-btn);
  stroke-width: 2;
  flex-shrink: 0;
}

.nav-item.active {
  color: var(--primary);
}

.nav-icon {
  width: 22px;
  height: var(--icon-btn);
  stroke-width: 2;
}

/* Empty States */
.wallet-testing-notice {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.08);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .empty-state {
    grid-column: 1 / -1;
    padding: 60px 20px;
  }
}

.empty-state > svg {
  width: 48px;
  height: 48px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
}

.app-container .btn { min-height: var(--btn-h); display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; text-align: center; }
.app-container .btn-sm { min-height: var(--btn-h-sm); padding-top: 7px; padding-bottom: 7px; }
.app-container .explore-chip,
.app-container .filter-chip,
.app-container .faq-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; line-height: 1.15; text-align: center; }
.home-live-stats,
.brand-intro-card,
.home-install-card,
.quick-hub-card,
.mode-card,
.flow-step-card,
.landing-feature-card { text-align: center; }
.mode-card-footer,
.brand-intro-points { justify-content: center; }
.brand-intro-card p { margin-left: auto; margin-right: auto; }

/* ============================================================================
   EXPLORE MODE SECTION (Matches Feed)
   ============================================================================ */

.explore-section {
  margin-bottom: 18px;
}

.explore-header,
.explore-header-active {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  justify-content: center;
  text-align: center;
}

.explore-header-text {
  display: flex;
  flex-direction: column;
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
}

.mode-card::after {
  content: '';
  position: absolute;
  width: 88px;
  height: auto;
  right: -32px;
  bottom: -42px;
  border-radius: 50%;
  background: var(--mode-glow, rgba(245, 158, 11, 0.2));
  filter: blur(2px);
  pointer-events: none;
}

.mode-card-perkill { --mode-accent: #fb923c; --mode-glow: rgba(249, 115, 22, 0.24); }
.mode-card-free { --mode-accent: #fbbf24; --mode-glow: rgba(251, 146, 60, 0.25); }
.mode-card-survival { --mode-accent: #facc15; --mode-glow: rgba(250, 204, 21, 0.2); }
.mode-card-cs { --mode-accent: #38bdf8; --mode-glow: rgba(56, 189, 248, 0.22); }
.mode-card-lw { --mode-accent: #a78bfa; --mode-glow: rgba(167, 139, 250, 0.22); }

.mode-card .mode-card-icon,
.mode-card .mode-cta-link {
  color: var(--mode-accent, #f59e0b);
}

.mode-card .mode-card-icon {
  background: color-mix(in srgb, var(--mode-accent, #f59e0b) 12%, transparent);
  border-color: color-mix(in srgb, var(--mode-accent, #f59e0b) 28%, transparent);
}

.explore-title {
  font-family: var(--font-display, inherit);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main, #ffffff);
  letter-spacing: 0.5px;
}

.explore-sub {
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
}

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


@media (min-width: 900px) {
  .explore-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

.explore-card {
  position: relative;
  height: auto;
  border-radius: var(--radius-lg, 14px);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-surface, #1e293b);
  padding: 0;
  margin: 0;
  text-align: left;
  outline: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  display: block;
  aspect-ratio: 100 / 81;
}

.explore-card:hover,
.explore-card:focus-visible {
  border-color: var(--primary, #f97316);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.explore-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.explore-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.85) 100%);
  pointer-events: none;
}

.explore-card-body {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
  pointer-events: none;
}

.explore-card-title {
  font-family: var(--font-display, inherit);
  font-size: var(--fs-base);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  text-align: center;
  width: 100%;
}

.explore-card-tag {
  display: none;
}

/* VIBRANT BRIGHT ROOMS HIGHLIGHT BADGES & CARDS */
.explore-count {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.explore-count.is-live {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid #6ee7b7;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.75), 0 2px 6px rgba(0, 0, 0, 0.5);
  animation: liveBadgePulse 2s infinite ease-in-out;
}

@keyframes liveBadgePulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.75), 0 2px 6px rgba(0, 0, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.95), 0 0 8px rgba(110, 231, 183, 0.8);
  }
}

.explore-count.is-zero {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
}

.offline-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748b;
  display: inline-block;
}

/* Card highlight when active rooms are live */
.explore-card.has-live-rooms {
  border: 1.5px solid #10b981;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.35), 0 6px 16px rgba(0, 0, 0, 0.5);
}

.explore-card.has-live-rooms:hover {
  border-color: #34d399;
  box-shadow: 0 0 26px rgba(16, 185, 129, 0.55), 0 8px 24px rgba(0, 0, 0, 0.6);
  transform: translateY(-3px);
}

/* Bright esports mode titles */
.mode-title-survival {
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
}

.mode-title-free {
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
}

.mode-title-perkill {
  background: linear-gradient(135deg, #ff7b72 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
}

.mode-title-cs {
  background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
}

.mode-title-lw {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
}

.explore-card-status {
  display: block;
  margin-top: 2px;
}

.room-active-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.room-idle-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.explore-back {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: var(--bg-surface, #1e293b);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  color: var(--text-main, #ffffff);
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 0 2px 0;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.explore-back:hover,
.explore-back:focus-visible {
  border-color: var(--primary, #f97316);
  color: var(--primary, #f97316);
}

.explore-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 8px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.explore-chips::-webkit-scrollbar {
  display: none;
}

.explore-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  background: var(--bg-surface, #1e293b);
  color: var(--text-main, #e2e8f0);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.explore-chip b {
  font-weight: 700;
  color: #34d399;
}

.explore-chip:hover {
  border-color: var(--primary, #f97316);
}

.explore-chip.active {
  background: var(--primary, #f97316);
  border-color: var(--primary, #f97316);
  color: #0f172a;
}

.explore-chip.active b {
  color: #0f172a;
}

.home-explore-action {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 18px 0 14px 0;
}

.home-explore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-full);
  padding: 10px 24px;
  font-family: var(--font-display, inherit);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.home-explore-btn:hover,
.home-explore-btn:focus-visible {
  background: var(--primary);
  color: #0a0d14;
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Header Notification Trigger */
.header-notif-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: var(--btn-h);
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  outline: none;
}

.header-notif-btn:hover,
.header-notif-btn:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.notif-badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  border: 1.5px solid var(--bg-surface);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

/* Push Notification Banner in Modal */
.notif-push-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: var(--radius-md);
}

.notif-push-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notif-push-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.notif-push-title svg {
  color: var(--primary);
}

.notif-push-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.notif-push-btn {
  flex-shrink: 0;
  font-size: var(--fs-sm);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

@media (max-width: 420px) {
  .notif-push-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .notif-push-btn {
    width: 100%;
    justify-content: center;
  }
}

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

.spin-icon {
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

