/* ============================================================
   AirCrows - Crystal Translucent Glassmorphism Design System
   Animated GIF Background, Mobile Responsive & SVG Curvy Line
   ============================================================ */

:root {
  --bg-dark: #070a10;
  --bg-card: rgba(12, 17, 28, 0.45);
  --bg-card-hover: rgba(22, 30, 48, 0.65);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-glow: rgba(243, 156, 18, 0.5);
  
  --primary: #e74c3c;
  --primary-hover: #ff5e4d;
  --secondary: #9b59b6;
  --accent-gold: #f39c12;
  --accent-gold-bright: #ffd700;
  --accent-green: #2ecc71;
  --accent-blue: #3498db;
  --accent-cyan: #1abc9c;
  
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  
  --font-main: 'Outfit', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  background-image: linear-gradient(rgba(5, 7, 12, 0.4), rgba(5, 7, 12, 0.45)), url('https://i.pinimg.com/originals/e4/65/b9/e465b924ffaedb24d34c9ae2c989bce1.gif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* Background Ambient Orbs */
.liquid-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.2;
  pointer-events: none;
}

.liquid-orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, #e74c3c, transparent); top: -100px; left: -100px; }
.liquid-orb-2 { width: 600px; height: 600px; background: radial-gradient(circle, #f39c12, transparent); bottom: -150px; right: -150px; }
.liquid-orb-3 { width: 450px; height: 450px; background: radial-gradient(circle, #9b59b6, transparent); top: 40%; left: 35%; }

/* Status Banner */
.status-banner {
  background: rgba(231, 76, 60, 0.25);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-weight: 500;
}

.status-banner.hidden {
  display: none !important;
}

.banner-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  outline: none;
}

/* Glass Panel Base */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.liquid-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

/* Header & Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-image: linear-gradient(rgba(7, 10, 18, 0.55), rgba(7, 10, 18, 0.65)), url('https://i.pinimg.com/originals/e4/65/b9/e465b924ffaedb24d34c9ae2c989bce1.gif');
  background-size: cover;
  background-position: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.75rem 1.5rem;
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.liquid-glow-logo {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(243, 156, 18, 0.5);
  border: 1px solid rgba(243, 156, 18, 0.5);
  flex-shrink: 0;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
}

.brand-accent { color: var(--primary); }
.brand-tag { font-size: 0.65rem; font-weight: 800; color: var(--accent-gold-bright); letter-spacing: 0.5px; }

/* Nav Search */
.nav-search {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 0.35rem 0.8rem;
  width: 280px;
}

.search-icon { color: var(--text-muted); margin-right: 0.5rem; font-size: 0.85rem; }

.nav-search input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.85rem;
  width: 100%;
}

.btn-search {
  background: var(--primary);
  border: none;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Nav Tabs */
.nav-links { display: flex; align-items: center; gap: 0.3rem; }

.nav-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: var(--transition);
}

.nav-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

.nav-tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.4), rgba(243, 156, 18, 0.4));
  border: 1px solid var(--accent-gold);
  box-shadow: 0 4px 14px rgba(243, 156, 18, 0.4);
}

/* Main Container */
.main-container {
  max-width: 1440px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============================================================
   TAB 0: CLAN LEGACY PAGE (DESKTOP MODE RESTORED TO IMAGE 1)
   ============================================================ */

.legacy-hero-banner {
  padding: 3.5rem 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  background: rgba(12, 17, 28, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(243, 156, 18, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hero-crown-icon {
  font-size: 4.2rem;
  margin-bottom: 0.8rem;
  display: inline-block;
  animation: crownFloating 4s ease-in-out infinite, crownGlowPulse 2.5s ease-in-out infinite alternate;
  transform-origin: center bottom;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hero-crown-icon:hover {
  transform: scale(1.25) rotate(8deg);
}

@keyframes crownFloating {
  0% { transform: translateY(0px) rotate(0deg) scale(1); }
  25% { transform: translateY(-14px) rotate(-4deg) scale(1.06); }
  50% { transform: translateY(-20px) rotate(0deg) scale(1.08); }
  75% { transform: translateY(-12px) rotate(4deg) scale(1.04); }
  100% { transform: translateY(0px) rotate(0deg) scale(1); }
}

@keyframes crownGlowPulse {
  0% {
    filter: drop-shadow(0 0 18px rgba(255, 215, 0, 0.6)) drop-shadow(0 0 35px rgba(243, 156, 18, 0.4));
  }
  100% {
    filter: drop-shadow(0 0 38px rgba(255, 215, 0, 1)) drop-shadow(0 0 70px rgba(231, 76, 60, 0.85)) drop-shadow(0 0 95px rgba(243, 156, 18, 0.75));
  }
}
.hero-title { font-family: var(--font-display); font-size: 3.2rem; font-weight: 900; color: #fff; }
.liquid-text-gold { background: linear-gradient(135deg, #ffd700, #f39c12, #ff5e4d); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-muted); max-width: 750px; margin: 0 auto 2rem auto; }

.hero-trophy-stats {
  display: flex; align-items: center; justify-content: center; gap: 2.5rem;
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(243, 156, 18, 0.3);
  padding: 1rem 2rem; border-radius: var(--radius-md); max-width: 700px; margin: 0 auto;
}

.trophy-val { font-family: var(--font-display); font-size: 2rem; font-weight: 900; color: var(--accent-gold-bright); }
.trophy-lbl { font-size: 0.7rem; font-weight: 800; color: var(--text-muted); }
.trophy-divider { width: 1px; height: 38px; background: rgba(255, 255, 255, 0.1); }

.legacy-section-header { margin-bottom: 2rem; }
.legacy-section-header h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; }

/* Staggered Timeline Container */
.staggered-timeline-container { position: relative; margin-top: 2rem; padding: 1rem 0; }
.staggered-svg-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; display: block !important; }

.staggered-cards-list { display: flex; flex-direction: column; gap: 3.5rem; position: relative; z-index: 2; }
.staggered-row { display: flex; width: 100%; }
.row-left { justify-content: flex-start; }
.row-right { justify-content: flex-end; }

.staggered-card-wrap { width: 44%; }

.legend-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.8rem; }
.card-number-tag { font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; color: rgba(255, 255, 255, 0.25); }

/* Desktop Legend Card Layout (Image 1: Skin Box on Left, Username + Quote + Button on Right) */
.legend-card-body {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
}

.legend-skin-container {
  width: 120px;
  height: 155px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.full-skin-render { height: 145px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.7)); }

.legend-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  justify-content: center;
}

.legend-ign {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
}

.legend-role-badge { font-size: 0.68rem; font-weight: 900; padding: 0.25rem 0.65rem; border-radius: 12px; display: inline-flex; align-items: center; gap: 0.35rem; }
.badge-leader { background: rgba(243, 156, 18, 0.25); color: #ffd700; border: 1px solid #ffd700; }
.badge-commander { background: rgba(231, 76, 60, 0.25); color: #ff5e4d; border: 1px solid #ff5e4d; }
.badge-prodigy { background: rgba(241, 196, 15, 0.25); color: #f1c40f; border: 1px solid #f1c40f; }
.badge-goat { background: linear-gradient(135deg, #ffd700, #f39c12); color: #000; border: 1px solid #ffd700; }
.badge-loyal { background: rgba(26, 188, 156, 0.25); color: #1abc9c; border: 1px solid #1abc9c; }
.badge-toxic { background: rgba(231, 76, 60, 0.25); color: #e74c3c; border: 1px solid #e74c3c; }
.badge-support { background: rgba(52, 152, 219, 0.25); color: #3498db; border: 1px solid #3498db; }

.legend-quote { font-size: 0.88rem; color: var(--text-muted); font-style: italic; line-height: 1.4; }

.btn-inspect-legend {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--glass-border);
  color: #fff; font-family: var(--font-main); font-size: 0.75rem; font-weight: 800;
  padding: 0.35rem 0.8rem; border-radius: var(--radius-sm); cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.25rem;
}

.staggered-card-wrap .legend-card { padding: 1.4rem; cursor: pointer; transition: var(--transition); background: rgba(12, 17, 28, 0.45); }
.staggered-card-wrap .legend-card:hover { transform: translateY(-6px) scale(1.02); border-color: var(--accent-gold); background: rgba(22, 30, 48, 0.65); box-shadow: 0 16px 40px rgba(243, 156, 18, 0.35); }

/* ============================================================
   RESTORED ORIGINAL TAB 1: PLAYER STATS UI
   ============================================================ */

.profile-header-card {
  padding: 1.75rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.5rem;
  background: rgba(12, 17, 28, 0.45);
}

.profile-avatar-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }

.player-head {
  width: 96px; height: 96px; border-radius: var(--radius-md);
  border: 2px solid var(--primary); box-shadow: 0 0 20px rgba(231, 76, 60, 0.4);
  background: #111;
}

.rank-badge {
  position: absolute; bottom: -10px; background: var(--primary);
  color: #fff; font-weight: 800; font-size: 0.7rem; padding: 0.25rem 0.6rem;
  border-radius: 12px; letter-spacing: 1px;
}

.profile-info { display: flex; flex-direction: column; gap: 0.6rem; }
.profile-top-line { display: flex; align-items: center; gap: 1rem; }
.player-ign { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: #fff; }

.star-badge {
  background: linear-gradient(135deg, var(--accent-gold), #e67e22);
  color: #000; font-weight: 900; font-size: 1.1rem; padding: 0.2rem 0.8rem; border-radius: 20px;
}

.profile-sub-line { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.info-pill { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--glass-border); padding: 0.35rem 0.75rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); display: inline-flex; align-items: center; gap: 0.4rem; }
.info-pill.online { color: var(--accent-green); border-color: rgba(46, 204, 113, 0.3); }
.info-pill.score { color: var(--accent-gold); border-color: rgba(243, 156, 18, 0.3); font-weight: 700; }

.star-progress-box { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.3rem; max-width: 450px; }
.star-progress-info { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); }
.progress-bar-bg { width: 100%; height: 8px; background: rgba(255, 255, 255, 0.08); border-radius: 4px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent-gold), var(--primary)); border-radius: 4px; transition: width 0.6s ease; }

/* Filter Controls */
.filter-controls { display: flex; flex-direction: column; gap: 1rem; }
.filter-group { display: flex; flex-direction: column; gap: 0.3rem; }
.filter-group label { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; display: flex; align-items: center; gap: 0.4rem; }
.filter-group select { background: rgba(0, 0, 0, 0.35); border: 1px solid var(--glass-border); color: #fff; font-family: var(--font-main); font-size: 0.9rem; font-weight: 600; padding: 0.55rem 1rem; border-radius: var(--radius-sm); outline: none; }

/* Ratio Grid */
.stats-ratio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 1.5rem; }
.ratio-card { padding: 1.25rem; text-align: center; position: relative; overflow: hidden; background: rgba(12, 17, 28, 0.45); }
.ratio-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; }
.fkdr-card::before { background: var(--primary); }
.wlr-card::before { background: var(--accent-green); }
.kdr-card::before { background: var(--accent-blue); }
.bbl-card::before { background: var(--secondary); }

.ratio-label { font-size: 0.8rem; font-weight: 800; color: var(--text-muted); }
.ratio-value { font-family: var(--font-display); font-size: 2.2rem; font-weight: 900; color: #fff; }
.ratio-sub { font-size: 0.75rem; color: var(--text-dim); }

/* Metrics & Chart Grid */
.stats-detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.metric-card { padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; background: rgba(12, 17, 28, 0.45); }
.metric-header { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 800; color: var(--text-muted); }
.metric-value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: #fff; }

.chart-card { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; background: rgba(12, 17, 28, 0.45); }
.chart-container { position: relative; width: 100%; height: 280px; }

/* ============================================================
   RESTORED ORIGINAL TAB 2: CLAN LEADERBOARDS (LBS) UI
   ============================================================ */

.section-header-box { padding: 1.5rem; margin-bottom: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; background: rgba(12, 17, 28, 0.45); }
.section-header-box h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; display: flex; align-items: center; gap: 0.5rem; }
.section-header-box p { color: var(--text-muted); font-size: 0.9rem; }

.scan-actions { display: flex; align-items: center; gap: 1rem; }
.scan-badge { background: rgba(46, 204, 113, 0.15); color: var(--accent-green); border: 1px solid rgba(46, 204, 113, 0.3); padding: 0.4rem 0.8rem; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 700; }

/* Data Tables */
.table-card { padding: 1rem; overflow-x: auto; -webkit-overflow-scrolling: touch; background: rgba(12, 17, 28, 0.45); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 1rem; font-size: 0.75rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; border-bottom: 1px solid var(--glass-border); white-space: nowrap; }
.data-table td { padding: 1rem; font-size: 0.95rem; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, 0.04); white-space: nowrap; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.06); }

.rank-pos { font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; }
.pos-1 { color: #ffd700; } .pos-2 { color: #c0c0c0; } .pos-3 { color: #cd7f32; }

.trophy-badge { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-display); font-weight: 800; padding: 0.25rem 0.75rem; border-radius: 12px; }
.tier-crown { background: rgba(255, 215, 0, 0.15); color: #ffd700; border: 1px solid rgba(255, 215, 0, 0.4); }
.tier-gold { background: rgba(243, 156, 18, 0.15); color: #f39c12; border: 1px solid rgba(243, 156, 18, 0.4); }
.tier-silver { background: rgba(135, 206, 235, 0.15); color: #87ceeb; border: 1px solid rgba(135, 206, 235, 0.4); }

/* Buttons */
.btn-primary { background: linear-gradient(135deg, var(--primary), #c0392b); border: none; color: #fff; font-family: var(--font-main); font-weight: 700; font-size: 0.9rem; padding: 0.65rem 1.25rem; border-radius: var(--radius-sm); cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; box-shadow: 0 4px 14px rgba(231, 76, 60, 0.4); flex-shrink: 0; }
.btn-sm { background: rgba(255, 255, 255, 0.1); border: 1px solid var(--glass-border); color: #fff; font-size: 0.8rem; font-weight: 600; padding: 0.35rem 0.75rem; border-radius: var(--radius-sm); cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.btn-sm:hover { background: rgba(255, 255, 255, 0.2); }

/* ============================================================
   RESTORED ORIGINAL TAB 4 & 5 & 6 (PLAYER LBS, RECAPS, VS)
   ============================================================ */

.lb-filters { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.lb-filters select { background: rgba(0, 0, 0, 0.35); border: 1px solid var(--glass-border); color: #fff; font-family: var(--font-main); font-size: 0.85rem; font-weight: 600; padding: 0.5rem 0.8rem; border-radius: var(--radius-sm); outline: none; }

.recap-search-box { display: flex; gap: 0.75rem; width: 100%; max-width: 500px; }
.recap-search-box input { background: rgba(0, 0, 0, 0.35); border: 1px solid var(--glass-border); color: #fff; font-family: var(--font-main); padding: 0.6rem 1rem; border-radius: var(--radius-sm); outline: none; width: 100%; }

.recap-display-container.hidden { display: none !important; }
.recap-meta-card { padding: 1.5rem; margin-bottom: 1.5rem; background: rgba(12, 17, 28, 0.45); }
.recap-title-line { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem; }
.recap-meta-grid { display: flex; gap: 2rem; font-size: 0.9rem; color: var(--text-muted); flex-wrap: wrap; }

.vs-inputs-box { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.vs-inputs-box input { background: rgba(0, 0, 0, 0.35); border: 1px solid var(--glass-border); color: #fff; font-family: var(--font-main); font-size: 0.95rem; padding: 0.6rem 1rem; border-radius: var(--radius-sm); outline: none; }
.vs-badge { font-family: var(--font-display); font-weight: 900; color: var(--primary); font-size: 1.2rem; }

.vs-results-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.vs-results-grid.hidden { display: none !important; }

.vs-player-card { padding: 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; text-align: center; background: rgba(12, 17, 28, 0.45); }
.vs-head { width: 80px; height: 80px; border-radius: var(--radius-md); border: 2px solid var(--primary); box-shadow: 0 0 16px rgba(231, 76, 60, 0.4); }
.vs-score-tag { background: rgba(243, 156, 18, 0.2); color: var(--accent-gold); font-weight: 800; font-size: 0.9rem; padding: 0.25rem 0.8rem; border-radius: 12px; }

.vs-stats-list { width: 100%; display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.5rem; }
.vs-stat-row { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 0.4rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

.vs-center-card { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; background: rgba(12, 17, 28, 0.45); }
.vs-center-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: #fff; }
.vs-bars-box { display: flex; flex-direction: column; gap: 1.25rem; }
.vs-bar-item { display: flex; flex-direction: column; gap: 0.4rem; }
.vs-bar-labels { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 700; color: var(--text-main); }
.vs-bar-bg { height: 12px; background: rgba(255, 255, 255, 0.08); border-radius: 6px; display: flex; overflow: hidden; }
.vs-bar-p1 { height: 100%; background: linear-gradient(90deg, var(--primary), #c0392b); transition: width 0.6s ease; }
.vs-bar-p2 { height: 100%; background: linear-gradient(90deg, var(--accent-blue), var(--secondary)); transition: width 0.6s ease; }

/* Footer */
.footer { margin-top: 4rem; padding: 2rem 1.5rem; border-top: 1px solid var(--glass-border); background: rgba(7, 10, 18, 0.88); text-align: center; color: var(--text-muted); font-size: 0.85rem; }
.footer-sub { margin-top: 0.3rem; font-size: 0.75rem; color: var(--text-dim); }

/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVE MEDIA QUERIES
   ============================================================ */

@media (max-width: 1024px) {
  .stats-ratio-grid, .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-detail-layout, .vs-results-grid { grid-template-columns: 1fr; }
  .profile-header-card { grid-template-columns: 1fr; text-align: center; }
  .staggered-card-wrap { width: 100%; }
}

@media (max-width: 768px) {
  .navbar { padding: 0.6rem 0.8rem; }
  .nav-container { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  
  .brand { justify-content: center; }
  .brand-name { font-size: 1.3rem; }
  .liquid-glow-logo { width: 38px; height: 38px; }
  
  .nav-search { width: 100%; }
  
  /* Horizontal Touch-Scrollable Navigation Tabs on Mobile */
  .nav-links {
    display: flex;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.3rem;
    scrollbar-width: none;
    gap: 0.4rem;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  
  .nav-tab {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    flex-shrink: 0;
  }

  .main-container { padding: 0 0.8rem; margin: 1rem auto; }
  
  /* Hero Banner Mobile */
  .legacy-hero-banner { padding: 2rem 1rem; margin-bottom: 1.5rem; }
  .hero-crown-icon { font-size: 2.5rem; }
  .hero-title { font-size: 1.9rem; }
  .hero-subtitle { font-size: 0.95rem; margin-bottom: 1.5rem; }
  
  .hero-trophy-stats {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    width: 100%;
  }
  .trophy-divider { display: none; }
  .trophy-val { font-size: 1.75rem; }

  /* Transparent Mobile Legend Cards */
  .staggered-cards-list { gap: 2rem; }
  .staggered-card-wrap { width: 100% !important; }
  
  .staggered-card-wrap .legend-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0.5rem 0.2rem !important;
  }
  .staggered-card-wrap .legend-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  /* Mobile Grid Template Areas (Skin on Left Top, IGN underneath on Left Bottom; Quote on Right Top, Button on Right Bottom) */
  .legend-card-body {
    display: grid;
    grid-template-columns: 105px 1fr;
    grid-template-areas:
      "skin quote"
      "ign  btn";
    gap: 0.6rem 0.85rem;
    align-items: center;
  }

  .legend-skin-container {
    grid-area: skin;
    width: 105px;
    height: 135px;
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
  }

  .legend-details {
    display: contents;
  }

  .legend-ign {
    grid-area: ign;
    font-size: 1.05rem;
    text-align: center;
    word-break: break-word;
    width: 105px;
    margin: 0;
  }

  .legend-quote {
    grid-area: quote;
    font-size: 0.82rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
  }

  .btn-inspect-legend {
    grid-area: btn;
    justify-self: start;
    padding: 0.35rem 0.75rem;
    font-size: 0.72rem;
    margin: 0;
  }
  
  /* Profile Header Mobile */
  .profile-header-card { padding: 1.2rem; gap: 1.2rem; }
  .profile-top-line { justify-content: center; flex-wrap: wrap; }
  .player-ign { font-size: 1.6rem; }
  .profile-sub-line { justify-content: center; }
  .star-progress-box { max-width: 100%; }

  .filter-controls { width: 100%; }
  .filter-group select { width: 100%; }

  /* Section Header Box */
  .section-header-box { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.2rem; }
  .scan-actions { width: 100%; justify-content: space-between; }
  
  .lb-filters { width: 100%; flex-direction: column; }
  .lb-filters select, .lb-filters button { width: 100%; }

  .vs-inputs-box { width: 100%; flex-direction: column; }
  .vs-inputs-box input, .vs-inputs-box button { width: 100%; }
  .vs-badge { align-self: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.6rem; }
  .stats-ratio-grid, .metrics-grid { grid-template-columns: 1fr; }
  
  .legend-card-body {
    grid-template-columns: 95px 1fr;
    grid-template-areas:
      "skin quote"
      "ign  btn";
    gap: 0.5rem 0.75rem;
  }
  .legend-skin-container { width: 95px; height: 125px; }
  .legend-ign { width: 95px; font-size: 0.95rem; }
  .full-skin-render { height: 115px; }
  .legend-quote { font-size: 0.78rem; }
}
