/* ============================================================================
   AP TOURNAMENTS - PLAYER APPLICATION STYLES
   Mobile-First & Fully Responsive across Phones, Tablets, and PCs
   ============================================================================ */

html, body {
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

/* Mobile Frame Wrapper */
.app-container {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background-color: var(--bg-main);
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 78px;
  /* Space for fixed bottom navigation on mobile */
}

/* ============================================================
   DESKTOP & TABLET RESPONSIVE LAYOUT (Screens >= 768px)
   ============================================================ */
@media (min-width: 768px) {
  body {
    background: radial-gradient(circle at 50% 15%, #151d2f 0%, #0b0e14 75%);
    min-height: 100vh;
  }

  .app-container {
    max-width: 100%;
    width: 100%;
    padding-bottom: 24px;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }

  .tab-content,
  .esports-hero-banner,
  .feed-controls,
  #matches-list-container,
  #tab-rooms > div,
  #wallet-container,
  #profile-container {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1440px) {
  .app-container {
    max-width: 100%;
  }
}

/* App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface);
  backdrop-filter: none;
  border-bottom: 1px solid var(--border);
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
}

@media (min-width: 768px) {
  .app-header {
    padding: 6px 20px;
    min-height: 48px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .app-header {
    padding: 5px 12px;
    gap: 8px;
  }
  .desktop-nav {
    gap: 3px;
  }
  .desktop-nav-link {
    padding: 5px 8px;
    font-size: 12px;
    gap: 4px;
  }
  .header-actions {
    gap: 6px;
  }
}

@media (min-width: 1025px) {
  .app-header {
    padding: 6px 24px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.brand-title span {
  color: var(--primary);
}

@media (min-width: 768px) {
  .brand-title {
    font-size: 18px;
  }
}

/* Desktop Navigation in Header (Active on Laptops & Wide Screens >= 880px) */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 6px;
}

@media (min-width: 880px) {
  .desktop-nav {
    display: flex;
  }
}

.desktop-nav-link {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (min-width: 880px) and (max-width: 1040px) {
  .desktop-nav-link {
    padding: 6px 10px;
    font-size: 12px;
  }
}

.desktop-nav-link:hover {
  color: var(--text-main);
  background: var(--bg-elevated);
}

.desktop-nav-link.active {
  background: var(--primary-subtle);
  color: var(--primary-hover);
  border-color: rgba(255, 107, 0, 0.35);
}

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

.balance-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 85, 0, 0.12);
  border: 1px solid rgba(255, 85, 0, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: #ffaa00;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 14px rgba(255, 85, 0, 0.15);
}

.balance-pill:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(255, 85, 0, 0.35);
  transform: translateY(-1px);
}

.quick-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #ff5500, #ff8800);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  margin-left: 2px;
}

.icon-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.icon-btn:hover {
  color: var(--text-main);
  border-color: var(--text-dim);
}

.badge-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid var(--bg-surface);
}

/* Announcement Ticker / Live Marquee */
.announcement-bar {
  background: linear-gradient(90deg, #121824 0%, #1a2234 50%, #121824 100%);
  border-bottom: 1px solid rgba(255, 107, 0, 0.28);
  padding: 6px 12px;
  font-size: 12px;
  color: #ffb066;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 90;
}

@media (min-width: 768px) {
  .announcement-bar {
    padding: 8px 24px;
    font-size: 13px;
  }
}

.announcement-bar .ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 85, 0, 0.2);
  color: #ff7722;
  border: 1px solid rgba(255, 85, 0, 0.45);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.announcement-bar .ticker-marquee-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
}

.announcement-bar .ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: marqueeTicker 32s linear infinite;
  padding-left: 20px;
}

.announcement-bar:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes marqueeTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.header-user-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-icon-svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex: 0 0 auto;
}

/* Quick My Matches Hub */
.quick-matches-hub {
  margin: 18px 0;
}

.hub-title {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

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

@media (min-width: 768px) {
  .quick-hub-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

.quick-hub-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.quick-hub-card:hover {
  background: var(--bg-elevated);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.quick-hub-card .hub-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-hub-card.hub-ongoing .hub-icon-wrap {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.quick-hub-card.hub-upcoming .hub-icon-wrap {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.quick-hub-card.hub-completed .hub-icon-wrap {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.quick-hub-card.hub-ranking .hub-icon-wrap {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
}

.quick-hub-card.hub-refer .hub-icon-wrap {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
}

.quick-hub-card span {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

/* Esports Game Modes Section & Grid */
.esports-modes-section {
  margin: 22px 0 16px 0;
}

.modes-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
}

.modes-title {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.modes-title svg {
  width: 20px;
  height: 20px;
}

.modes-view-all {
  position: absolute;
  right: 0;
  font-size: 12px;
  color: var(--primary-hover);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
}

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

@media (min-width: 640px) {
  .modes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .modes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mode-card {
  position: relative;
  height: 145px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0f1523;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px 12px;
}

.mode-card:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(255, 85, 0, 0.22);
}

.mode-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mode-card:hover .mode-card-bg {
  transform: scale(1.08);
  opacity: 0.5;
}

.mode-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 21, 35, 0.2) 0%, rgba(10, 14, 22, 0.92) 85%);
}

.mode-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mode-card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.mode-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #34d399;
}

.mode-card-badge .dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

/* Promo Offer / Withdrawal Strip */
.promo-offers-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 16px 0;
}

@media (min-width: 768px) {
  .promo-offers-container {
    grid-template-columns: 1fr 1fr;
  }
}

.promo-offer-box {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(255, 107, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.promo-offer-left {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.promo-offer-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 107, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.promo-offer-info {
  text-align: center;
}

.promo-offer-info h4 {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 3px 0;
}

.promo-offer-info p {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}

.promo-offer-btn {
  background: rgba(255, 85, 0, 0.15);
  border: 1px solid rgba(255, 85, 0, 0.4);
  color: var(--primary-hover);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.promo-offer-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* Main Content Views */
.tab-content {
  display: none;
  width: 100%;
  max-width: 100%;
  padding: 16px;
  flex: 1;
}

.tab-content.active {
  display: block;
  animation: fadeIn 200ms ease;
}

.compact-site-footer {
  padding: 28px 12px 14px;
  color: var(--text-dim);
  font-size: 11px;
  text-align: center;
}

.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.footer-links-row a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: color 150ms ease;
}

.footer-links-row a:hover {
  color: var(--primary);
}

.footer-copy {
  color: var(--text-dim);
  font-size: 11px;
}

.compact-page {
  width: min(100%, 760px);
  margin-inline: auto;
}

.compact-page-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.08) 0%, rgba(15, 21, 35, 0.98) 100%), var(--bg-surface);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
}

.compact-page-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.compact-page-header-content {
  text-align: center;
  width: 100%;
  padding: 0 38px;
}

.compact-page-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 3px;
  color: var(--primary);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.12);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.compact-page-header h2 {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  text-align: center;
}

.compact-page-header p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.4;
  text-align: center;
}

.page-back-bar {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 2px 0;
}

.wallet-layout-wrap > .page-back-bar {
  order: -1;
  align-self: flex-start;
}

.compact-back-btn {
  position: static;
  transform: none;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.compact-back-btn:hover {
  background: var(--bg-surface);
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.08);
}

.compact-menu-list,
.contact-method-grid {
  display: grid;
  gap: 8px;
}

.contact-section-title {
  margin: 12px 0 7px;
  font-size: 14px;
  text-align: center;
}

.home-install-card {
  width: 100%;
  margin: 10px 0;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
}

.home-install-card[hidden] { display: none; }
.home-install-card > span:nth-child(2) { display: grid; gap: 2px; }
.home-install-card small { color: var(--text-muted); font-size: 11px; }
.home-install-card > b { color: var(--primary); font-size: 12px; }
.home-install-icon { display: grid; place-items: center; }

@media (min-width: 640px) {
  .compact-menu-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

.compact-menu-item,
.contact-method-card {
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-main);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.compact-menu-item:hover,
.contact-method-card:hover {
  border-color: var(--primary);
  background: var(--bg-elevated);
}

.compact-menu-icon,
.contact-method-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary-subtle);
  color: var(--primary);
  font-size: 17px;
  font-weight: 800;
}

.compact-menu-item > span:nth-child(2),
.contact-method-card > span:nth-child(2) {
  min-width: 0;
}

.compact-menu-item strong,
.compact-menu-item small,
.contact-method-card strong,
.contact-method-card small {
  display: block;
}

.compact-menu-item strong,
.contact-method-card strong {
  font-size: 13px;
}

.compact-menu-item small,
.contact-method-card small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-menu-item b,
.contact-method-card b {
  color: var(--text-dim);
  font-size: 17px;
  white-space: nowrap;
}

@media (max-width: 599px) {
  .compact-menu-item,
  .contact-method-card {
    min-height: 52px;
    padding: 8px 12px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .compact-menu-icon,
  .contact-method-icon {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
}

.contact-help-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  font-size: 12px;
  text-align: center;
}

/* User Card in Menu */
.menu-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(245, 158, 11, 0.05) 100%);
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.menu-user-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.menu-user-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-hover);
  overflow: hidden;
  font-size: 20px;
}

.menu-user-avatar .profile-icon-svg {
  width: 24px;
  height: 24px;
}

.menu-user-info {
  flex: 1;
  min-width: 0;
}

.menu-user-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-user-info small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-user-wallet {
  text-align: right;
  flex: 0 0 auto;
}

.menu-wallet-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.menu-wallet-val {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary);
  margin-top: 2px;
}

/* Menu Footer Badges */
.menu-footer-badge {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

.menu-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-badge-item > span {
  font-size: 18px;
  line-height: 1;
}

.menu-badge-item strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
}

.menu-badge-item small {
  display: block;
  font-size: 9.5px;
  color: var(--text-muted);
}

.contact-help-note span {
  color: var(--text-muted);
  line-height: 1.5;
}

@media (min-width: 768px) {
  .tab-content {
    padding: 24px 28px;
  }
}

@media (min-width: 1200px) {
  .tab-content {
    padding: 28px 36px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   ESPORTS HERO BANNER & SPOTLIGHT (Free Fire Background Art)
   ============================================================ */
.esports-hero-banner {
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.08) 0%, rgba(15, 21, 35, 0.98) 100%), var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 24px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

/* Horizontal Auto-Sliding Background Track */
.hero-slider-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-slide-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 30%;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.65s ease;
  pointer-events: none;
}

.hero-slide-item.active {
  opacity: 0.75; /* 70-80% visible Free Fire artwork as requested */
  transform: translateX(0);
}

.hero-slide-item.slide-out {
  opacity: 0;
  transform: translateX(-100%);
}

.hero-slider-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(6, 9, 14, 0.55) 0%, rgba(6, 9, 14, 0.82) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-top-row,
.hero-content-flex,
.hero-stats-row {
  position: relative;
  z-index: 2;
}

.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hero-chip-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.hero-content-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 6px;
}

.hero-esports-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.3));
}

@media (max-width: 600px) {
  .hero-esports-logo {
    width: 38px;
    height: 38px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.hero-title span {
  color: var(--primary);
  text-shadow: 0 2px 14px rgba(245, 158, 11, 0.4), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.hero-subtitle {
  font-size: 14px;
  color: #e2e8f0;
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto 20px auto;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.hero-slide-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 85, 0, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.35s ease, background-color 0.35s ease;
}

.hero-slide-action:hover { background: var(--primary-hover); transform: translateY(-1px); }
.hero-slide-action[hidden] { display: none; }

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: 620px;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-sizing: border-box;
  text-align: center;
  margin: 0 auto;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  text-align: center;
}

.hero-stat .stat-num {
  font-family: var(--font-display);
  font-size: clamp(15px, 2.5vw, 18px);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.hero-stat .stat-lbl {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin-top: 3px;
}

.hero-stat-sep {
  display: none;
}

@media (min-width: 640px) {
  .hero-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    width: fit-content;
    padding: 12px 24px;
    text-align: center;
    margin: 0 auto;
  }

  .hero-stat {
    align-items: center;
    text-align: center;
  }

  .hero-stat-sep {
    display: block;
    width: 1px;
    height: 24px;
    background: var(--border);
  }
}

@media (min-width: 768px) {
  .esports-hero-banner {
    padding: 28px 32px;
    margin-bottom: 24px;
  }
}

/* ChallengerMode 3-Step Tournament Flow Strip */
.tournament-flow-strip {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.flow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.flow-title {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--primary);
  text-transform: uppercase;
}

.flow-sub {
  font-size: 12px;
  color: var(--text-dim);
}

.flow-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .flow-steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.flow-step-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: var(--transition);
}

.flow-step-card:hover {
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-1px);
}

.flow-step-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 4px;
  padding: 2px 6px;
  line-height: 1.2;
  flex-shrink: 0;
}

.flow-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.flow-step-icon svg {
  width: 18px;
  height: 18px;
}

.flow-step-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.flow-step-body strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
  text-align: center;
}

.flow-step-body p {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
  text-align: center;
}

/* Feed Search and Filter Controls */
.feed-controls {
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

/* Landing Page Specific Sections */
.landing-cta-box {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
}

@media (min-width: 640px) {
  .landing-features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.landing-feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: var(--transition);
}

.landing-feature-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.landing-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin: 0 auto;
}

.landing-feature-icon svg {
  width: 18px;
  height: 18px;
}

.landing-feature-card h3 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin: 0;
}

.landing-feature-card p {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
  text-align: center;
  margin: 0;
}

@media (max-width: 640px) {
  .flow-step-card,
  .landing-feature-card {
    padding: 10px 12px;
    gap: 6px;
  }

  .flow-step-icon,
  .landing-feature-icon {
    width: 32px;
    height: 32px;
  }

  .flow-step-icon svg,
  .landing-feature-icon svg {
    width: 16px;
    height: 16px;
  }

  .flow-step-body strong,
  .landing-feature-card h3 {
    font-size: 12.5px;
  }

  .flow-step-body p,
  .landing-feature-card p {
    font-size: 11px;
    line-height: 1.3;
  }
}

.landing-banner-preview {
  margin-top: 28px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(15, 21, 35, 0.9) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.landing-banner-text h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

/* Landing Footer & Social Contact Chips */
.landing-footer {
  margin-top: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px 20px 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 1.2fr 1.8fr;
  }
}

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.footer-brand-title span {
  color: var(--primary);
}

.footer-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--success);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.footer-col-heading {
  font-size: 13.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

.footer-social-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 600px) {
  .footer-social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.social-chip-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.social-chip-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.telegram-chip svg { color: #229ED9; }
.telegram-chip:hover { border-color: #229ED9; }

.youtube-chip svg { color: #FF0000; }
.youtube-chip:hover { border-color: #FF0000; }

.facebook-chip svg { color: #1877F2; }
.facebook-chip:hover { border-color: #1877F2; }

.gmail-chip svg { color: #EA4335; }
.gmail-chip:hover { border-color: #EA4335; }

.social-chip-btn div {
  text-align: center;
}

.social-chip-btn strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  text-align: center;
}

.social-chip-btn span {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
  text-align: center;
}

.footer-bottom-bar {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
}

@media (min-width: 768px) {
  .feed-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .feed-controls .form-group {
    margin-bottom: 0 !important;
    flex: 1;
    max-width: 580px; /* Widened search bar for high visibility */
  }

  .feed-controls .filter-tabs {
    margin-bottom: 0;
  }
}

/* Filter Chips */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow-x: visible;
  padding-bottom: 4px;
  margin-bottom: 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-chip:hover {
  background: var(--bg-elevated);
  color: var(--text-main);
  border-color: var(--border-light);
}

.filter-chip.active {
  background: var(--primary);
  color: #0a0d14;
  font-weight: 600;
  border-color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   RESPONSIVE MATCHES GRID (Phase 1 Exact Breakpoints)
   - Small mobile (320-374px): 1 column
   - Mobile (375-599px): 1 column
   - Tablet (600-1023px): 1-2 columns
   - Laptop (1024-1439px): 2-3 columns
   - Desktop (1440px+): 3-4 columns
   ============================================================ */
#matches-list-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 360px));
  justify-content: center;
  align-items: start;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 12px auto 0 auto;
  clear: both;
}

@media (max-width: 640px) {
  #matches-list-container {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 16px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Header Google Sign In & User Pills */
.btn-google-login {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  min-height: 36px;
  height: 36px;
}

.btn-google-login .btn-text-short {
  display: none;
}

.btn-google-login:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 85, 0, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 85, 0, 0.25);
}

@media (max-width: 600px) {
  .btn-google-login .btn-text-full {
    display: none;
  }
  .btn-google-login .btn-text-short {
    display: inline;
  }
  .btn-google-login {
    height: 32px;
    min-height: 32px;
    padding: 4px 10px;
    font-size: 11px;
    gap: 5px;
    border-radius: var(--radius-full);
  }
  .balance-pill {
    height: 32px;
    min-height: 32px;
    padding: 3px 8px;
    font-size: 12px;
    gap: 4px;
    border-radius: var(--radius-full);
  }
  .balance-pill .quick-add-btn {
    width: 16px;
    height: 16px;
    font-size: 11px;
  }
  .header-user-pill {
    width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 2px;
  }
  .header-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .app-header {
    padding: 4px 10px;
    min-height: 44px;
  }
  .brand-subtitle {
    display: none;
  }
  .brand-title {
    font-size: 15px;
  }
  .brand-logo svg {
    width: 20px;
    height: 20px;
  }
  .icon-btn {
    width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
  }
}

/* Account Menu & Interactive Dropdown */
.account-menu-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-user-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 2px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.header-user-pill:hover,
.header-user-pill.active {
  background: var(--bg-elevated);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.header-user-pill img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
  display: block;
}

.header-user-name {
  font-weight: 700;
  font-size: 13px;
  color: #ffffff;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Tournament Card (Responsive Sizing across Screen Widths) */
.match-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.09), transparent 38%),
    linear-gradient(155deg, rgba(20, 28, 45, 0.98), rgba(10, 15, 25, 0.99));
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 0;
  margin: 0 auto;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 275px;
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.match-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), rgba(245, 158, 11, 0.05) 65%);
  z-index: 3;
  pointer-events: none;
}

.match-card:hover {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.46), 0 10px 30px rgba(245, 158, 11, 0.13);
  transform: translateY(-5px);
}

.match-card-banner {
  position: relative;
  width: 100%;
  height: 92px;
  background: var(--bg-elevated);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.match-map-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
  filter: brightness(0.76) contrast(1.14) saturate(1.08);
  display: block;
  transition: transform 0.3s ease;
}

.match-card:hover .match-map-thumb {
  transform: scale(1.05);
}

.match-card-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 9, 14, 0.06) 0%, rgba(10, 15, 25, 0.2) 45%, rgba(10, 15, 25, 0.96) 100%);
  pointer-events: none;
}

.match-card-tags {
  position: absolute;
  top: 9px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  z-index: 2;
  flex-wrap: nowrap;
}

.match-chips-left {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  max-width: 68%;
  overflow: hidden;
}

.mode-tag {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(10, 15, 25, 0.88);
  backdrop-filter: blur(8px);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.mode-tag.map-chip {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.mode-tag.team-chip {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

.mode-tag.section-chip {
  font-weight: 800;
  letter-spacing: 0.6px;
}

.mode-tag.section-chip.section-survival {
  background: rgba(234, 179, 8, 0.22);
  border-color: rgba(234, 179, 8, 0.6);
  color: #facc15;
}

.mode-tag.section-chip.section-perkill {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.6);
  color: #f87171;
}

.mode-tag.section-chip.section-cs {
  background: rgba(6, 182, 212, 0.22);
  border-color: rgba(6, 182, 212, 0.6);
  color: #22d3ee;
}

.mode-tag.section-chip.section-lw {
  background: rgba(168, 85, 247, 0.22);
  border-color: rgba(168, 85, 247, 0.6);
  color: #c084fc;
}

.match-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

.match-status-badge.status-upcoming {
  background: rgba(14, 165, 233, 0.22);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.5);
}

.match-status-badge.status-open {
  background: rgba(34, 197, 94, 0.22);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.5);
}

.match-status-badge.status-live {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.5);
}

.match-status-badge.status-full {
  background: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.5);
}

.match-status-badge.status-completed {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

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

.match-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

.match-code-tag {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.match-info-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.match-info-icon-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.1);
}

.match-title {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.meta-item svg {
  color: var(--primary);
  flex-shrink: 0;
  width: 11px;
  height: 11px;
}

/* Metrics Grid (Fee, Per Kill, Prize) */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: rgba(3, 7, 18, 0.48);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  padding: 8px 6px;
  margin-bottom: 2px;
  text-align: center;
}

.metrics-grid > div + div {
  border-left: 1px solid rgba(148, 163, 184, 0.14);
}

.metric-label {
  font-size: 9px;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.metric-value {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}

.metric-value.highlight {
  color: var(--primary);
  text-shadow: none;
}

/* Slot Progress Bar */
.slot-progress-wrap {
  margin-bottom: 2px;
  margin-top: 2px;
}

.slot-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.slot-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.slot-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ff6b00);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-full);
  transition: width 300ms ease;
}

.match-card-body .btn {
  min-height: 34px;
  height: 34px;
  font-size: 12px;
  font-weight: 700;
  padding: 0 10px;
  border-radius: 10px;
}

@media (max-width: 599px) {
  #matches-list-container {
    gap: 18px;
  }

  .match-card {
    min-height: 0;
    border-radius: 16px;
  }

  .match-card-banner {
    height: 86px;
  }

  .match-card-body {
    padding: 11px 12px 13px;
    gap: 8px;
  }

  .match-title {
    font-size: 17px;
  }
}

/* ============================================================
   RESPONSIVE MY ROOMS VAULT (Polished Alignment & Spacing)
   ============================================================ */
.rooms-header-card {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.08) 0%, rgba(15, 21, 35, 0.98) 100%), var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
}

.rooms-header-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/ff-action-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.12; /* Faded aesthetic opacity */
  pointer-events: none;
  mix-blend-mode: luminosity;
  mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.85) 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.85) 0%, transparent 80%);
  z-index: 0;
}

.rooms-header-top,
.rooms-header-title,
.rooms-header-subtitle {
  position: relative;
  z-index: 1;
}

.rooms-header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.rooms-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.rooms-header-status {
  font-size: 11.5px;
  font-weight: 600;
  color: #10b981;
}

.rooms-header-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.rooms-header-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 auto;
  max-width: 680px;
}

@media (max-width: 599px) {
  .rooms-header-card {
    padding: 10px 14px;
    margin-bottom: 12px;
    border-radius: var(--radius-md);
  }

  .rooms-header-top {
    margin-bottom: 4px;
    gap: 8px;
  }

  .rooms-header-title {
    font-size: 16px;
    margin-bottom: 3px;
  }

  .rooms-header-subtitle {
    font-size: 11px;
    line-height: 1.35;
  }
}

#my-rooms-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 360px));
  justify-content: center;
  align-items: start;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 12px auto 0 auto;
}

@media (max-width: 640px) {
  #my-rooms-container {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 16px;
    margin-left: auto;
    margin-right: auto;
  }
}

.room-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0;
  max-width: 330px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  transition: border-color 0.32s ease, background-color 0.32s ease;
}

.room-card:hover {
  border-color: rgba(245, 158, 11, 0.35);
  transform: none;
}

.room-card .match-card-banner {
  height: 60px;
}

.room-card .match-card-body {
  padding: 7px 9px 9px;
  gap: 4px;
}

.room-card .credentials-vault {
  padding: 8px;
  margin-top: 6px;
}

.room-card .vault-item {
  margin-bottom: 6px;
  padding-bottom: 5px;
}

.room-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.room-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  flex-wrap: wrap;
  color: var(--text-muted);
}

.room-meta svg {
  color: var(--primary);
  flex-shrink: 0;
}

.room-code-badge {
  text-align: right;
  flex-shrink: 0;
}

.room-code-lbl {
  display: block;
  font-size: 10.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.room-code-val {
  font-family: monospace;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary);
}

.countdown-box {
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  margin: 12px 0;
}

.room-countdown-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  margin: 8px 0 0;
  text-align: left;
}

.countdown-label {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.countdown-timer {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-hover);
  letter-spacing: 1px;
}

.countdown-timer.is-live {
  color: #ef4444;
}

.credentials-vault {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  margin-top: 8px;
}

.vault-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vault-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.vault-val {
  font-family: monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-main);
  background: var(--bg-main);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

@media (max-width: 599px) {
  .room-card {
    padding: 11px 12px;
  }

  .room-card-header {
    align-items: flex-start;
  }

  .room-code-val {
    font-size: 12px;
  }
}

/* ============================================================
   RESPONSIVE WALLET SCREEN - PREMIUM ESPORTS DESIGN
   ============================================================ */
.wallet-layout-wrap {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

@media (min-width: 1000px) {
  .wallet-layout-wrap {
    max-width: 1180px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
    align-items: start;
  }

  .wallet-card {
    grid-column: 1;
    grid-row: 2;
  }

  .wallet-layout-wrap > .page-back-bar {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 0 !important;
  }

  .wallet-trust-row {
    grid-column: 1;
    grid-row: 3;
    margin: 0;
  }

  .wallet-history-section {
    grid-column: 2;
    grid-row: 2 / span 2;
    min-height: 100%;
  }
}

/* Master Gaming Card */
.wallet-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px 20px 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

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

.wallet-brand-tag {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vault-chip-icon {
  display: flex;
  align-items: center;
}

.vault-brand-text {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.vault-id-text {
  font-size: 11px;
  color: var(--text-dim);
  font-family: monospace;
}

.wallet-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #10b981;
}

.pulse-indicator-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.wallet-balance-center {
  text-align: center;
  padding: 6px 0 18px 0;
}

.wallet-balance-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #94a3b8;
  margin-bottom: 6px;
}

.balance-amount-display {
  font-size: 40px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

.balance-amount-display .currency-symbol {
  font-size: 26px;
  color: var(--primary);
  font-weight: 600;
}

.balance-reserved-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--primary);
  margin-top: 8px;
}

.wallet-substat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  margin-bottom: 18px;
  text-align: center;
}

.wallet-sync-notice {
  margin-bottom: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.08);
  color: var(--text-muted);
  font-size: 11px;
  text-align: center;
}

.wallet-substat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.substat-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.substat-val {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.substat-val.withdrawable {
  color: #10b981;
}

.substat-val.deposit-coins {
  color: #f59e0b;
}

.wallet-stats-subrow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 18px;
  text-align: center;
}

.wallet-substat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.substat-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.substat-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.wallet-substat-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.08);
}

/* Wallet Action Buttons */
.wallet-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-wallet-deposit {
  background: linear-gradient(135deg, #ff5500 0%, #ff7700 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  height: 46px;
  border-radius: 10px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 85, 0, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-wallet-deposit:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 22px rgba(255, 85, 0, 0.45);
  transform: translateY(-1px);
}

.btn-wallet-deposit:active {
  transform: translateY(1px);
}

.btn-wallet-withdraw {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  font-weight: 700;
  font-size: 14px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-wallet-withdraw:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 85, 0, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-wallet-withdraw:active {
  transform: translateY(1px);
}

/* Trust Perks Row */
.wallet-trust-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 16px 0 24px 0;
  font-size: 12px;
  color: var(--text-muted);
}

.trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.trust-badge-icon {
  font-size: 14px;
}

/* Transaction History Section */
.wallet-history-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 16px);
  padding: 18px 20px;
}

.wallet-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.history-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
}

.history-title-group h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.history-count {
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 12px;
}

/* Empty History Card */
.history-empty-card {
  text-align: center;
  padding: 36px 16px;
}

.empty-icon-bubble {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  color: var(--text-dim);
}

.empty-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.empty-card-subtitle {
  font-size: 12px;
  color: var(--text-dim);
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.4;
}

/* Transaction item rows */
.tx-item-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.tx-item-card:hover {
  border-color: rgba(255, 85, 0, 0.3);
  background: rgba(255, 85, 0, 0.02);
}

.tx-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tx-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tx-icon-badge.tx-positive {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.tx-icon-badge.tx-neutral {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tx-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-word;
}

.tx-date {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

.tx-item-right {
  text-align: right;
  flex-shrink: 0;
  margin-left: 12px;
}

.tx-amount {
  font-size: 14px;
  font-weight: 800;
}

.tx-amount-positive {
  color: #10b981;
}

.tx-amount-negative {
  color: var(--text-main);
}

.tx-status-badge {
  margin-top: 4px;
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
}

@media (max-width: 480px) {
  .wallet-card {
    padding: 14px 12px;
  }
  .balance-amount-display {
    font-size: 32px;
  }
  .wallet-stats-subrow {
    padding: 8px 6px;
  }
  .substat-val {
    font-size: 11px;
  }
  .wallet-trust-row {
    font-size: 11px;
    padding: 8px 10px;
  }
  .wallet-card-header { margin-bottom: 10px; }
  .wallet-balance-center { padding: 2px 0 12px; }
  .wallet-substat-grid { margin-bottom: 12px; padding: 8px 6px; }
  .wallet-action-buttons { gap: 8px; }
  .btn-wallet-deposit,
  .btn-wallet-withdraw { height: 42px; font-size: 12px; }
}

.btn-compact {
  min-height: 44px !important;
  height: auto !important;
  padding: 9px 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  letter-spacing: 0.3px !important;
}

/* ============================================================
   RESPONSIVE PROFILE SCREEN
   ============================================================ */
.profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .profile-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }

  .profile-card {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .page-back-bar {
    grid-column: 1 / -1;
  }

  .profile-layout-grid > .btn:last-child {
    grid-column: 1 / -1;
  }
}

.profile-hero-aesthetic {
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.12) 0%, rgba(15, 23, 42, 0.95) 45%, rgba(10, 15, 26, 0.98) 100%), var(--bg-surface);
  border: 1px solid rgba(255, 85, 0, 0.3);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}

.profile-avatar-glow {
  width: 78px;
  height: 78px;
  border: 2.5px solid var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 85, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(15, 21, 35, 0.95) 100%);
  flex-shrink: 0;
}

.profile-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-hero-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-hero-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.profile-hero-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-hero-ign {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin: 0;
}

.profile-level-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  background: rgba(255, 85, 0, 0.15);
  border: 1px solid rgba(255, 85, 0, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.profile-hero-uid-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.profile-uid-request-link {
  display: block;
  margin: 3px 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 480px) {
  .profile-hero-aesthetic { padding: 14px 12px; margin-bottom: 10px; }
  .profile-avatar-glow { width: 58px; height: 58px; }
  .profile-hero-inner { gap: 12px; }
  .profile-hero-stats { gap: 6px; }
  .profile-device-card { padding: 12px !important; margin-bottom: 10px !important; }
}

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

@media (min-width: 768px) {
  .profile-hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .profile-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 115px);
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .profile-hero-left {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-hero-identity {
    align-items: center;
    text-align: center;
  }
}

.stat-box-winnings .stat-number {
  color: #ffaa33 !important;
  text-shadow: 0 0 12px rgba(255, 170, 51, 0.35);
}

.profile-avatar {
  width: 72px;
  height: 72px;
  background: var(--bg-elevated);
  border: 2px solid var(--primary);
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  overflow: hidden;
}

.profile-avatar .profile-icon-svg {
  width: 38px;
  height: 38px;
}

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

.stat-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
}

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

.stat-desc {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ============================================================
   MOBILE BOTTOM NAVIGATION (Phones Only)
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  overflow: hidden;
  height: calc(60px + env(safe-area-inset-bottom, 0px));
  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 4px env(safe-area-inset-bottom, 0px) 4px;
  margin: 0;
}

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

.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: 11px;
  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;
  }

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

  .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;
  }
}

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

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

.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) !important;
}

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

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

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

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

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

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

.nav-icon {
  width: 22px;
  height: 22px;
  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 !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================================
   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;
}

.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: 88px;
  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-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: 14px;
}

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

.explore-card {
  position: relative;
  height: 145px;
  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;
}

.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: 16px;
  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 !important;
  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 !important;
  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 !important;
  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 !important;
  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 !important;
  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 !important;
  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;
  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: 13px;
  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: 36px;
  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: 12px;
  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;
}

/* ============================================================
   KHILADIBATTLE INSPIRATIONS: SOCIAL PROOF, MODES & STATS
   ============================================================ */

/* 1. Live Recent Withdrawals Vertical Feed (Removed per user request) */
.withdrawals-ticker-strip {
  display: none !important;
}

.withdrawals-ticker-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #3b82f6 100%);
  opacity: 0.8;
}

.withdrawals-ticker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.withdrawals-ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  color: #10b981;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.withdrawals-live-tag {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.withdrawals-vertical-container {
  height: 142px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
}

.withdrawals-track-vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: withdrawalsScrollVertical 24s linear infinite;
  will-change: transform;
}

.withdrawals-ticker-strip:hover .withdrawals-track-vertical {
  animation-play-state: paused;
}

@keyframes withdrawalsScrollVertical {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.withdrawal-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 8px 12px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.withdrawal-card-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateX(3px);
}

.withdrawal-player-col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.withdrawal-meta-col {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-dot-pulse {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: liveDotBlink 1.8s infinite ease-in-out;
}

@keyframes liveDotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.chip-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.chip-user {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: 0.2px;
}

.chip-amount {
  font-size: 13px;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.chip-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: #059669;
  background: rgba(16, 185, 129, 0.15);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chip-time {
  font-size: 10.5px;
  color: var(--text-dim);
}
  color: #94a3b8;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* 2. Tournament Modes Section */
.modes-section-block {
  margin: 26px 0 20px 0;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 16px;
}

.section-tag-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 6px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  margin: 4px 0;
}

.section-subheading {
  font-size: 13px;
  color: #94a3b8;
  max-width: 500px;
  margin: 0 auto;
}

.modes-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.mode-card {
  position: relative;
  background: linear-gradient(180deg, rgba(22, 28, 40, 0.9) 0%, rgba(14, 18, 27, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mode-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.12);
}

.mode-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
  text-transform: uppercase;
}

.mode-badge-gold {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}

.mode-badge-cyan {
  background: rgba(2, 132, 199, 0.15);
  color: #38bdf8;
  border-color: rgba(2, 132, 199, 0.3);
}

.mode-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.mode-card-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px 0;
  text-transform: uppercase;
}

.mode-card-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0 0 16px 0;
  flex: 1;
}

.mode-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
  font-size: 12px;
}

.mode-feature {
  color: #64748b;
  font-weight: 600;
}

.mode-cta-link {
  color: #f59e0b;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Compact native home dashboard: secondary content remains available in dedicated tabs. */
#tab-home .home-secondary-content {
  display: none !important;
}

#tab-home .tournament-flow-strip,
#tab-home .compact-site-footer {
  display: block !important;
}

#tab-home .tournament-flow-strip {
  margin: 16px 0;
}

.platform-availability-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 85, 0, 0.28);
  border-radius: var(--radius-md);
  background: rgba(255, 85, 0, 0.08);
  color: var(--accent);
}

.platform-availability-banner span {
  display: grid;
  gap: 2px;
  text-align: left;
}

.platform-availability-banner strong {
  color: var(--text-main);
  font-size: 13px;
}

.platform-availability-banner small {
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.4;
}

#tab-home .esports-hero-banner {
  min-height: 160px;
  padding: 16px;
  margin-bottom: 14px;
  align-items: center;
  text-align: center;
  animation: native-surface-enter 180ms ease-out both;
}

#tab-home .hero-slide-item {
  transform: none;
  transition: none;
  background-position: center 28%;
}

#tab-home .hero-slider-overlay {
  background: rgba(6, 10, 17, 0.7);
}

#tab-home .hero-top-row,
#tab-home .hero-content-flex {
  justify-content: center;
  text-align: center;
}

#tab-home .hero-top-row {
  margin-bottom: 8px;
}

#tab-home .hero-title {
  max-width: 320px;
  margin-bottom: 4px;
  font-size: clamp(21px, 6vw, 30px);
  text-align: center;
}

#tab-home .hero-subtitle {
  max-width: 360px;
  margin: 0 auto;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

#tab-home .modes-section-block {
  margin: 0;
}

#tab-home .section-title-wrap {
  margin-bottom: 10px;
  text-align: center;
}

#tab-home .section-tag-badge,
#tab-home .section-subheading {
  display: none;
}

#tab-home .section-heading {
  margin: 0;
  font-size: 18px;
}

#tab-home .modes-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#tab-home .mode-card {
  min-height: 132px;
  padding: 12px;
  border-radius: 12px;
  background: #111722;
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: none;
  align-items: center;
  text-align: center;
  animation: native-surface-enter 180ms ease-out both;
}

#tab-home .mode-card:hover {
  transform: translateY(-1px);
  border-color: rgba(203, 213, 225, 0.26);
  box-shadow: none;
}

#tab-home .mode-card::after {
  display: none;
}

#tab-home .mode-card:focus-visible {
  outline: 2px solid var(--mode-accent, #f59e0b);
  outline-offset: 2px;
}

#tab-home .mode-card:active {
  transform: scale(0.98);
}

#tab-home .mode-card-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: #cbd5e1;
  background: #1b2432;
  border-color: rgba(148, 163, 184, 0.18);
}

#tab-home .mode-card-badge {
  top: 9px;
  right: 9px;
  max-width: 74px;
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e2e8f0;
  background: #202938;
  border-color: rgba(148, 163, 184, 0.18);
}

#tab-home .mode-card-title {
  margin-bottom: 8px;
  font-size: 15px;
}

#tab-home .mode-card-desc {
  display: none;
}

#tab-home .mode-card-footer {
  width: 100%;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 7px;
  font-size: 10px;
}

#tab-home .mode-cta-link {
  color: #f8fafc;
}

@keyframes native-surface-enter {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  #tab-home .esports-hero-banner,
  #tab-home .mode-card {
    animation: none;
    transition: none;
  }
}

@media (max-width: 420px) {
  .app-header {
    padding-inline: 12px;
  }
}

@media (min-width: 880px) {
  #tab-home .modes-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #tab-home .mode-card {
    min-height: 150px;
  }

  #tab-home .mode-card-desc {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
  }
}

/* App-style mode inner screen: the selected mode replaces the mode picker. */
#tab-matches.mode-screen-open > .rooms-header-card {
  display: none;
}

.mode-screen-header {
  position: relative;
  min-height: 148px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: #111827;
}

.mode-screen-cover,
.mode-screen-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mode-screen-cover {
  object-fit: cover;
}

.mode-screen-shade {
  background: linear-gradient(90deg, rgba(7, 10, 17, 0.94) 0%, rgba(7, 10, 17, 0.7) 58%, rgba(7, 10, 17, 0.24) 100%);
}

.mode-screen-back {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(7, 10, 17, 0.72);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.mode-screen-heading {
  position: relative;
  z-index: 2;
  min-height: 148px;
  padding: 22px 20px 20px 62px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.mode-screen-heading h2 {
  margin: 3px 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(22px, 6vw, 30px);
  line-height: 1;
}

.mode-screen-heading > span:last-child {
  color: #cbd5e1;
  font-size: 12px;
}

.mode-screen-kicker {
  color: #f59e0b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.mode-screen-filters {
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mode-screen-filters::-webkit-scrollbar {
  display: none;
}

/* Compact tournament feed cards: real match data remains the visual focus. */
#matches-list-container {
  grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
  gap: 12px;
}

.match-card {
  min-height: 0;
  max-width: 340px;
  border-radius: 12px;
  box-shadow: none;
}

.match-card-banner {
  height: 68px;
}

.match-card-tags {
  top: 7px;
  left: 8px;
  right: 8px;
}

.mode-tag,
.match-status-badge {
  font-size: 9px;
  padding: 3px 6px;
  backdrop-filter: none;
  box-shadow: none;
}

.match-card-body {
  padding: 8px 10px 10px;
  gap: 5px;
}

.match-info-icon-btn {
  width: 26px;
  height: 26px;
}

.match-title {
  font-size: 15px;
}

.meta-item {
  font-size: 11px;
}

.metrics-grid {
  padding: 5px 4px;
  border-radius: 8px;
}

.metric-label {
  font-size: 8px;
}

.metric-value {
  font-size: 12px;
}

.slot-progress-wrap {
  margin: 0;
}

.slot-progress-labels {
  margin-bottom: 4px;
  font-size: 10px;
}

.slot-bar {
  height: 4px;
}

.slot-progress-wrap.is-filling-fast .slot-progress-labels {
  color: #fb923c;
  font-weight: 700;
}

.slot-progress-wrap.is-filling-fast .slot-fill {
  background: linear-gradient(90deg, #f97316, #ef4444);
  box-shadow: none;
}

.match-card-body .btn {
  height: 32px;
  min-height: 32px;
  border-radius: 8px;
}

@media (max-width: 640px) {
  #matches-list-container {
    gap: 10px;
  }

  .match-card {
    max-width: 100%;
    border-radius: 12px;
  }

  .match-card-banner {
    height: 64px;
  }

  .match-card-body {
    padding: 8px 10px 10px;
    gap: 5px;
  }

  .match-title {
    font-size: 15px;
  }
}

@media (min-width: 1200px) {
  #matches-list-container {
    grid-template-columns: repeat(4, minmax(260px, 1fr));
    max-width: 1440px;
  }

  .match-card {
    max-width: none;
  }
}

.refer-link-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 10px 0;
  text-align: left;
}

.refer-link-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #f59e0b;
  margin-bottom: 4px;
}

.refer-link-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.refer-link-text {
  font-size: 11px;
  color: #cbd5e1;
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 6px;
  flex: 1;
}

.btn-copy-link {
  background: #f59e0b;
  color: #0b0e13;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 4. Refer & Earn Home Banner */
.refer-earn-home-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, rgba(220, 38, 38, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 18px 0;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  flex-wrap: wrap;
}

.refer-earn-home-strip:hover {
  transform: translateY(-2px);
  border-color: #f59e0b;
}

.refer-home-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 240px;
}

.refer-home-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
  flex-shrink: 0;
}

.refer-home-text h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 2px 0;
}

.refer-home-text p {
  font-size: 12px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.4;
}

.refer-home-btn {
  background: #f59e0b;
  color: #0b0e13;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

/* 5. Explore Mode Cards Interactive Selection & In-Card Open System */
.explore-card.is-active {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.4), 0 8px 24px rgba(245, 158, 11, 0.25) !important;
  transform: translateY(-2px);
}

.explore-active-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 11px 16px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.16) 0%, rgba(245, 158, 11, 0.14) 100%);
  border: 1.5px solid #10b981;
  border-radius: 12px;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

.explore-active-indicator-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.explore-active-pill {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: #0b0e13;
  background: linear-gradient(135deg, #10b981, #34d399);
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.6px;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.explore-active-name {
  font-family: var(--font-display);
  font-weight: 900;
  color: #ffffff;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.explore-active-count {
  font-size: 12px;
  color: #a7f3d0;
  font-weight: 700;
}

.explore-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.explore-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.explore-mode-prompt {
  text-align: center;
  padding: 38px 20px;
  background: linear-gradient(180deg, rgba(18, 23, 34, 0.6) 0%, rgba(13, 17, 25, 0.7) 100%);
  border: 1px dashed rgba(245, 158, 11, 0.25);
  border-radius: 14px;
  margin: 14px 0 24px 0;
}

.explore-mode-prompt-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px auto;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
}

.explore-mode-prompt-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
}

.explore-mode-prompt-desc {
  margin: 6px 0 0 0;
  font-size: 13px;
  color: #94a3b8;
}

/* Native tournament phase 2: compact matte cards and clear mobile hierarchy. */
#tab-home .mode-card {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

#tab-home .mode-card-title {
  max-width: 100%;
  overflow-wrap: anywhere;
}

#tab-home .mode-card-footer {
  flex-wrap: wrap;
}

.mode-screen-header,
.mode-screen-heading {
  min-height: 112px;
}

.mode-screen-back {
  top: 8px;
  left: 8px;
  width: 32px;
  height: 32px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  font-size: 19px;
}

.mode-screen-heading {
  padding: 14px 14px 12px 48px;
  text-align: center;
  align-items: center;
}

.mode-screen-heading h2 {
  font-size: clamp(20px, 5.4vw, 27px);
}

.mode-screen-filters {
  justify-content: center;
  margin-top: 8px;
}

#matches-list-container {
  grid-template-columns: repeat(auto-fit, minmax(280px, 357px));
}

.match-card {
  max-width: 357px;
  background: #111722 !important;
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: none;
}

.match-card::before {
  display: none;
}

.match-card:hover {
  transform: translateY(-1px);
  border-color: rgba(203, 213, 225, 0.26);
  box-shadow: none;
}

.match-title {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  text-align: center;
}

.match-title-time {
  color: #cbd5e1;
  font-size: 0.78em;
  font-weight: 600;
  white-space: nowrap;
}

.match-status-badge.status-live {
  background: #dc2626;
  color: #ffffff;
  border-color: #f87171;
}

.match-status-badge.status-upcoming {
  background: #075985;
  color: #e0f2fe;
  border-color: #38bdf8;
}

.match-status-badge.status-open {
  background: #166534;
  color: #dcfce7;
  border-color: #4ade80;
}

.match-status-badge.status-full {
  background: #9a3412;
  color: #ffedd5;
  border-color: #fb923c;
}

.match-status-badge.status-completed {
  background: #334155;
  color: #f1f5f9;
  border-color: #64748b;
}

.explore-card {
  height: 152px;
  background: #111722;
  box-shadow: none;
}

.explore-card:hover,
.explore-card:focus-visible,
.explore-card.has-live-rooms,
.explore-card.has-live-rooms:hover {
  border-color: rgba(248, 113, 113, 0.72) !important;
  box-shadow: none;
  transform: translateY(-1px);
}

.explore-count.is-live {
  background: #dc2626;
  border-color: #f87171;
  box-shadow: none;
  animation: none;
}

.explore-count.is-total {
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  border: 1px solid rgba(248, 113, 113, 0.72);
  box-shadow: none;
}

.explore-count.is-total .live-dot-pulse {
  background: #ef4444;
  box-shadow: none;
}

.room-active-tag {
  background: #b91c1c;
  border-color: #f87171;
  box-shadow: none;
}

.mode-title-survival,
.mode-title-perkill,
.mode-title-cs,
.mode-title-lw {
  background: none;
  -webkit-text-fill-color: #ffffff;
  color: #ffffff;
  filter: none;
}

@media (max-width: 360px) {
  #tab-home .mode-card-footer {
    gap: 4px;
  }

  #tab-home .mode-feature {
    display: none;
  }

  #tab-home .mode-card-badge {
    max-width: calc(100% - 18px);
  }
}
