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

html, body {
  max-width: 100vw;
  overflow-x: clip;
  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;
}

@supports (-webkit-touch-callout: none) {
  input, select, textarea {
    font-size: var(--fs-ios-input);
  }
}

button, a, [role="button"] {
  touch-action: manipulation;
}

/* Mobile Frame Wrapper */
.app-container {
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  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: calc(var(--bottom-nav-h) + var(--safe-bottom) + var(--space-3));
}

/* ============================================================
   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%;
    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: 880px) {
  .app-container {
    padding-bottom: var(--space-6);
  }
}

@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: var(--fs-sm);
    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: var(--fs-sm);
  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: var(--fs-sm);
  }
}

.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;
  min-width: 0;
}

@media (min-width: 880px) and (max-width: 1180px) {
  .app-header { padding-inline: 12px; }
  .brand-title { font-size: 14px; }
  .desktop-nav { gap: 2px; }
  .desktop-nav-link { padding-inline: 8px; gap: 4px; }
  .header-actions { gap: 5px; }
  .header-install-btn-style { width: 36px; overflow: hidden; color: transparent; gap: 0; padding-inline: 10px; }
  .header-install-btn-style svg { flex: none; color: var(--text-main); }
  .balance-pill { padding-inline: 9px; gap: 5px; }
}

@media (min-width: 880px) and (max-width: 980px) {
  .desktop-nav-link svg { display: none; }
  .desktop-nav-link { padding-inline: 7px; }
}

.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);
  min-width: 0;
  min-height: 32px;
  height: 36px;
  max-height: 36px;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
}

.balance-pill > img,
.coin-amount > img {
  display: block;
  width: 16px;
  height: 16px;
  aspect-ratio: 1;
  object-fit: contain;
  flex: 0 0 16px;
}

.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: calc(var(--btn-h-sm) - 12px);
  height: calc(var(--btn-h-sm) - 12px);
  background: linear-gradient(135deg, #ff5500, #ff8800);
  color: #fff;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 900;
  line-height: 1;
  margin-left: 2px;
  flex: 0 0 calc(var(--btn-h-sm) - 12px);
  aspect-ratio: 1;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.icon-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 38px;
  height: var(--icon-btn);
  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;
  min-width: 0;
  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: var(--icon-btn);
  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: var(--fs-sm);
  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: auto;
  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: var(--fs-base);
  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: var(--fs-xs);
  font-weight: 700;
  color: #34d399;
}

.mode-card-badge .dot {
  width: 6px;
  height: auto;
  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: var(--fs-xs);
  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 160ms ease-out;
}

.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: var(--btn-h-sm);
  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: var(--fs-xs); }
.home-install-card > b { color: var(--primary); font-size: var(--fs-sm); }
.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: auto;
  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: var(--fs-sm);
}

.compact-menu-item small,
.contact-method-card small {
  margin-top: 2px;
  overflow: visible;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

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

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

  .compact-menu-item > span:nth-child(2),
  .contact-method-card > span:nth-child(2) { text-align: center; }

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

/* Installed PWAs never expose install controls, including before JS hydration. */
@media (display-mode: standalone) {
  #header-install-btn,
  #menu-install-item,
  #home-install-card,
  #pwa-install-modal,
  #ios-install-guide-sheet {
    display: none;
  }
}

html.ap-native-app .notif-push-banner,
html.ap-native-app #header-install-btn,
html.ap-native-app #menu-install-item,
html.ap-native-app #home-install-card,
html.ap-native-app #pwa-install-modal,
html.ap-native-app #ios-install-guide-sheet {
  display: none !important;
}

html.ap-pwa-installed #header-install-btn,
html.ap-pwa-installed #menu-install-item,
html.ap-pwa-installed #home-install-card,
html.ap-pwa-installed #pwa-install-modal,
html.ap-pwa-installed #ios-install-guide-sheet {
  display: none;
}

.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(12px);
  }

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

