/* ============================================================
   PlayerProfile.lol — Anti-Slop High-Agency Design System
   Crafted following TasteSkill (tasteskill.dev) & UI UX Pro Max
   Style: Minimalist Dark Carbon / Devtool Slate (Linear-Style)
   ============================================================ */

:root {
  /* Surface & Base - Pure Black & Dark Carbon Monochrome */
  --bg-base: #000000;
  --bg-surface: #0a0a0a;
  --bg-surface-elevated: #121212;
  --bg-surface-hover: #1a1a1a;
  --bg-input: #080808;
  --bg-overlay: rgba(0, 0, 0, 0.88);

  /* Borders - Crisp, high-contrast monochrome */
  --border-subtle: #1c1c1c;
  --border-default: #262626;
  --border-hover: #3f3f46;
  --border-active: #ffffff;

  /* Accent - High-contrast Pure White & Silver */
  --accent-primary: #ffffff;
  --accent-primary-hover: #e4e4e7;
  --accent-subtle: rgba(255, 255, 255, 0.08);
  --accent-border: rgba(255, 255, 255, 0.25);

  /* Verified Mojang / Discord status - Crisp Monochrome */
  --accent-verified: #ffffff;
  --accent-verified-bg: rgba(255, 255, 255, 0.08);
  --accent-verified-border: rgba(255, 255, 255, 0.25);

  /* Danger / Lock - Crisp Monochrome High-Contrast */
  --accent-danger: #ffffff;
  --accent-danger-bg: rgba(255, 255, 255, 0.1);
  --accent-danger-border: rgba(255, 255, 255, 0.3);

  /* Warning / Privacy - Monochrome Slate */
  --accent-amber: #e4e4e7;
  --accent-amber-bg: rgba(255, 255, 255, 0.08);

  /* Typography - Clean Monochrome Contrast */
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-disabled: #52525b;

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Border Radius Scale (Standardized) */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Shadows - Tight, crisp elevation */
  --shadow-card: 0 4px 16px -2px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-default);
  --shadow-hover: 0 12px 28px -4px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--border-hover);
  --shadow-dropdown: 0 18px 38px -6px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--border-hover);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-base);
  background-image: radial-gradient(rgba(30, 41, 59, 0.45) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Base Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* ============================================================
   NAVBAR (TasteSkill: 64px max height, single-line desktop)
   ============================================================ */
.navbar {
  height: 64px;
  background: rgba(8, 11, 17, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-default);
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.brand:hover .brand-icon {
  border-color: var(--accent-primary);
  transform: scale(1.04);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

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

.brand-badge {
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Nav Live Status Indicator */
.network-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  box-shadow: 0 0 6px var(--accent-primary);
}

/* Nav Quick Search */
.nav-search-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
}

.nav-search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.75rem;
  gap: 0.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search-bar:focus-within {
  border-color: var(--border-active);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.nav-search-bar input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  width: 100%;
}

.kbd-shortcut {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--text-muted);
  user-select: none;
}

/* Autocomplete Dropdown */
.search-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dropdown);
  z-index: 1000;
  overflow: hidden;
  display: none;
  max-height: 380px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.15s ease;
  text-decoration: none;
  color: var(--text-primary);
}

.search-dropdown-item:last-child {
  border-bottom: none;
}

.search-dropdown-item:hover,
.search-dropdown-item:focus {
  background: var(--bg-surface-hover);
}

.search-item-avatar {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  image-rendering: pixelated;
  background: var(--bg-base);
  border: 1px solid var(--border-default);
}

.search-item-info {
  flex: 1;
  min-width: 0;
}

.search-item-name {
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.search-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================
   BUTTONS (TasteSkill 4.5: Solid, tactile feedback, no wrapped text)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary {
  background: #ffffff !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border-color: #ffffff !important;
}

.btn-primary:hover {
  background: #e4e4e7 !important;
  color: #000000 !important;
  border-color: #e4e4e7 !important;
}

.btn-primary * {
  color: #000000 !important;
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  border-color: var(--border-default);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-hover);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-default);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-hover);
}

.btn-danger {
  background: var(--accent-danger-bg);
  border-color: var(--accent-danger-border);
  color: #fb7185;
}

.btn-danger:hover {
  background: rgba(244, 63, 94, 0.22);
  border-color: #f43f5e;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

/* ============================================================
   HERO SECTION (Anti-Center Bias: 2-Column Asymmetric Layout)
   ============================================================ */
.hero-asymmetric {
  padding: 3rem 0 2.5rem;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-asymmetric {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.2rem 0;
  }
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

@media (max-width: 640px) {
  .hero-headline {
    font-size: 2.1rem;
  }
}

.hero-lead {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 54ch;
}

/* Command Hero Search Bar */
.hero-search-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-top: 0.5rem;
}

.hero-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.5rem 0.4rem 0.9rem;
  gap: 0.6rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search-box:focus-within {
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.hero-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-sans);
}

.hero-search-box input::placeholder {
  color: var(--text-muted);
}

/* Telemetry Card (Right Column) */
.telemetry-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-subtle);
}

.telemetry-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.telemetry-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.telemetry-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.telemetry-val {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.telemetry-footer {
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   COMMUNITY DIRECTORY SECTION (50 Players Per Page)
   ============================================================ */
.directory-section {
  margin-top: 1.5rem;
  padding-bottom: 3.5rem;
}

.directory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-default);
}

.directory-count-info {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.directory-count-info strong {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.directory-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sort-group {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
}

.sort-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.sort-btn:hover {
  color: var(--text-primary);
}

.sort-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

/* View Mode Toggle: Grid vs Table */
.view-toggle {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
}

.view-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.view-btn:hover {
  color: var(--text-primary);
}

.view-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--accent-primary);
  border: 1px solid var(--border-hover);
}

/* Directory Grid View */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 0.85rem;
}

.player-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.player-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
  box-shadow: var(--shadow-hover);
}

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

.player-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.player-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  image-rendering: pixelated;
  flex-shrink: 0;
}

.player-card-info {
  flex: 1;
  min-width: 0;
}

.player-card-name {
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-card-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.verified-pill {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--accent-verified-bg);
  border: 1px solid var(--accent-verified-border);
  color: var(--accent-verified);
  flex-shrink: 0;
}

.player-card-meta {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.player-card-meta strong {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Directory Table View (High Density Option) */
.directory-table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.directory-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.directory-table th {
  padding: 0.75rem 1rem;
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-default);
}

.directory-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.directory-table tr:hover td {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

/* Skeleton Loading State (TasteSkill 4.5: Matches final shape) */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 0.85rem;
}

.skeleton-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  height: 98px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: shimmer 1.5s infinite ease-in-out;
}

@keyframes shimmer {
  0% { opacity: 0.5; }
  50% { opacity: 0.85; }
  100% { opacity: 0.5; }
}

.skeleton-line {
  height: 10px;
  border-radius: 4px;
  background: var(--bg-surface-elevated);
}

/* Pagination */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 2.2rem 0;
  flex-wrap: wrap;
}

.page-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-variant-numeric: tabular-nums;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
}

.page-btn.active {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
  font-weight: 700;
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.page-info-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-left: 0.75rem;
}

/* ============================================================
   PROFILE PAGE (Asymmetrical High-Agency Layout)
   ============================================================ */
.profile-shell {
  padding-top: 1.5rem;
  padding-bottom: 4rem;
}

/* Banner Card */
.profile-banner-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
}

/* Theme Presets - Pure Dark Monochrome Minimalist */
.theme-obsidian,
.theme-emerald,
.theme-cyberpunk,
.theme-amethyst,
.theme-sunset,
.theme-bloodmoon,
.theme-dark {
  --banner-bg: #0d0d0d;
  --banner-line: #333333;
}

.profile-banner-top {
  height: 90px;
  background: linear-gradient(180deg, #161616 0%, #0d0d0d 100%);
  border-bottom: 1px solid var(--border-default);
  position: relative;
}

.profile-banner-body {
  padding: 0 1.8rem 1.6rem;
  position: relative;
}

.profile-header-layout {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: -45px;
}

.profile-avatar-stack {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.avatar-frame {
  position: relative;
  width: 96px;
  height: 96px;
  background: var(--bg-base);
  border-radius: var(--radius-md);
  border: 2px solid var(--border-default);
  padding: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}

.avatar-online-dot {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 16px;
  height: 16px;
  background: var(--accent-primary);
  border: 2px solid var(--bg-base);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-primary);
}

.profile-name-area h1 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.profile-badges-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.custom-title-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-hover);
  color: var(--accent-verified);
}

.profile-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
}

.tag-public {
  background: #161616;
  border: 1px solid #333333;
  color: #ffffff;
}

.tag-private {
  background: #111111;
  border: 1px solid #262626;
  color: #a1a1aa;
}

.tag-owner {
  background: #ffffff;
  border: 1px solid #ffffff;
  color: #000000;
  font-weight: 700;
}

.profile-meta-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.profile-meta-strip strong {
  color: var(--text-secondary);
}

.profile-bio {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-top: 1rem;
  max-width: 68ch;
  line-height: 1.6;
}

.social-links-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s ease;
}

.social-pill:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

/* Asymmetric 2-Column Deck: Left Info Deck / Right Tabbed Deck */
.profile-deck-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (max-width: 920px) {
  .profile-deck-layout {
    grid-template-columns: 1fr;
  }
}

/* Left Sidebar Cards */
.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.side-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}

.side-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.side-metric-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.82rem;
}

.side-metric-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.side-metric-label {
  color: var(--text-muted);
}

.side-metric-val {
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Right Main Deck: Tabs & Servers */
.main-deck {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.deck-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 0.5rem;
}

.deck-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.deck-tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
}

.deck-tab-btn.active {
  color: var(--accent-primary);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-hover);
}

/* Connected Servers Grid */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.server-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
  transition: border-color 0.15s ease;
}

.server-card:hover {
  border-color: var(--border-hover);
}

.server-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.server-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.server-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.server-card-meta strong {
  color: var(--text-secondary);
}

.server-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

/* Owner Settings Panels */
.settings-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.theme-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.65rem;
}

.theme-card-label {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.theme-card-label input {
  display: none;
}

.theme-preview-box {
  height: 42px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-default);
  transition: all 0.15s ease;
}

.theme-card-label input:checked + .theme-preview-box {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.theme-card-name {
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-secondary);
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  padding: 0.55rem 0.8rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--border-active);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.checkbox-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.checkbox-row label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

/* ============================================================
   MODALS & TOASTS
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 0.9rem 1.5rem;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.1rem;
  color: var(--text-primary);
  font-size: 0.85rem;
  box-shadow: var(--shadow-dropdown);
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.toast-error {
  border-left-color: var(--accent-danger);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Footer */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border-default);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  background: var(--bg-base);
}

/* ============================================================
   INTERACTIVE NETWORK GROWTH & TELEMETRY SECTION
   ============================================================ */
.growth-section {
  margin: 3.5rem 0 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
}

.growth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.growth-title-area h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.growth-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.timeframe-group {
  display: flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
}

.timeframe-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.timeframe-btn:hover {
  color: var(--text-primary);
}

.timeframe-btn.active {
  background: var(--bg-surface-hover);
  color: var(--accent-primary);
  border: 1px solid var(--border-hover);
}

/* Growth KPI Highlights */
.growth-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.4rem 0 1.6rem;
}

@media (max-width: 860px) {
  .growth-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .growth-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.growth-kpi-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: border-color 0.15s ease;
}

.growth-kpi-card:hover {
  border-color: var(--border-hover);
}

.growth-kpi-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.growth-kpi-val {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.growth-badge-up {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}

.growth-kpi-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* SVG Chart Canvas */
.chart-container {
  position: relative;
  width: 100%;
  height: 240px;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 1rem 1rem 0;
}

.chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-line {
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 2.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: d 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-area {
  fill: url(#growthAreaGrad);
  transition: d 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-point {
  fill: var(--bg-base);
  stroke: var(--accent-primary);
  stroke-width: 2px;
  cursor: pointer;
  transition: r 0.2s ease, fill 0.2s ease;
}

.chart-point:hover, .chart-point.active {
  r: 6px;
  fill: var(--accent-primary);
}

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.8rem;
  font-size: 0.76rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-dropdown);
  transform: translate(-50%, -120%);
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
  z-index: 100;
}

.chart-tooltip.visible {
  opacity: 1;
}

.chart-labels-x {
  display: flex;
  justify-content: space-between;
  margin-top: 0.6rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding: 0 0.5rem;
}

/* ============================================================
   ADVANCEAUTH PLUGIN SHOWCASE SECTION
   ============================================================ */
.plugin-showcase-section {
  margin: 4rem 0 3.5rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
  margin-bottom: 0.35rem;
}

.section-headline {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.section-subtext {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 60ch;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* 4-Column Feature Cards */
.plugin-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .plugin-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .plugin-features-grid {
    grid-template-columns: 1fr;
  }
}

.plugin-feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.plugin-feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.plugin-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
}

.plugin-feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.plugin-feature-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Architecture Pipeline Flow Visualizer */
.pipeline-flow-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
}

.pipeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.pipeline-title {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pipeline-steps-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .pipeline-steps-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .pipeline-arrow {
    transform: rotate(90deg);
    margin: 0 auto;
  }
}

.pipeline-step {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  transition: border-color 0.2s ease;
}

.pipeline-step:hover {
  border-color: var(--accent-primary);
}

.pipeline-step-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
}

.pipeline-step-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pipeline-step-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pipeline-arrow {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Compatibility Badges Strip */
.compat-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.compat-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.compat-badge {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Server Owner Integration Quick-Start */
.integration-section {
  margin: 3.5rem 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 1.5rem;
}

@media (max-width: 800px) {
  .integration-grid {
    grid-template-columns: 1fr;
  }
}

.integration-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.integration-step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.integration-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.integration-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.code-pill {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: 4px;
  padding: 0.35rem 0.6rem;
  color: #38bdf8;
  word-break: break-all;
}

/* ==========================================
   GLOBAL ANALYTICS (/data) STYLES
   ========================================== */

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: var(--accent-primary);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.analytics-hero {
  margin-bottom: 2.5rem;
}

.analytics-title {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-top: 0.5rem;
  margin-bottom: 0.65rem;
  line-height: 1.2;
}

.analytics-lead {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 780px;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

/* 4-Card Executive KPI Bar */
.analytics-kpi-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 1000px) {
  .analytics-kpi-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .analytics-kpi-bar {
    grid-template-columns: 1fr;
  }
}

.analytics-kpi-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  overflow: hidden;
}

.analytics-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
  opacity: 0.7;
}

.analytics-kpi-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.analytics-kpi-val {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.analytics-kpi-sub {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

/* Section Structure */
.analytics-section {
  margin-top: 3.25rem;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}

.section-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.lifespan-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.lifespan-pill strong {
  color: var(--accent-primary);
  font-family: var(--font-mono);
}

/* Geographic Distribution */
.geo-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .geo-grid {
    grid-template-columns: 1fr;
  }
}

.geo-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-inner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.card-inner-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-inner-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.country-table-wrap {
  overflow-x: auto;
  max-height: 440px;
  overflow-y: auto;
}

.country-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.country-table th {
  text-align: left;
  padding: 0.55rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-surface-elevated);
  position: sticky;
  top: 0;
  z-index: 1;
}

.country-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.country-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.rank-cell {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.country-code-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-primary);
}

.share-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.share-bar-fill {
  height: 6px;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  border-radius: 3px;
  min-width: 4px;
}

.share-bar-text {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  min-width: 40px;
}

/* Continent List */
.continent-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.continent-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.continent-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.continent-name {
  font-weight: 600;
  color: var(--text-primary);
}

.continent-val {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.continent-bar-track {
  width: 100%;
  height: 6px;
  background: var(--bg-surface);
  border-radius: 3px;
  overflow: hidden;
}

.continent-bar-fill {
  height: 100%;
  background: var(--accent-primary);
  border-radius: 3px;
  transition: width 0.6s ease;
}

.geo-stat-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-top: 0.5rem;
}

.geo-stat-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.geo-stat-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Playtime Retention Grid */
.retention-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

@media (max-width: 1100px) {
  .retention-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .retention-grid {
    grid-template-columns: 1fr;
  }
}

.retention-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.retention-label {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.retention-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  min-height: 2rem;
  line-height: 1.35;
}

.retention-count-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 0.35rem;
}

.retention-count {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.retention-pct {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.retention-bar-track {
  width: 100%;
  height: 5px;
  background: var(--bg-surface);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.2rem;
}

.retention-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  border-radius: 3px;
}

/* Dual Charts (Up and Down) */
.dual-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 950px) {
  .dual-charts-grid {
    grid-template-columns: 1fr;
  }
}

.chart-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.chart-box-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.chart-box-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.chart-box-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.badge-accent-up {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}

.legend-pills {
  display: flex;
  gap: 0.65rem;
}

.legend-pill {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* 24-Hour UTC Activity Chart */
.hourly-chart-wrap {
  width: 100%;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
  position: relative;
}

.hourly-bars-grid {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 6px;
  align-items: flex-end;
  height: 180px;
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 8px;
}

@media (max-width: 700px) {
  .hourly-bars-grid {
    gap: 3px;
  }
}

.hourly-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  cursor: pointer;
  position: relative;
}

.hourly-bar {
  width: 100%;
  background: #172033;
  border-radius: 3px 3px 0 0;
  transition: background 0.15s ease, transform 0.15s ease;
  min-height: 6px;
}

.hourly-bar.peak {
  background: rgba(16, 185, 129, 0.65);
}

.hourly-col:hover .hourly-bar,
.hourly-bar.active {
  background: #10b981;
  transform: scaleY(1.04);
}

.hourly-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: -0.02em;
}

@media (max-width: 600px) {
  .hourly-label:nth-child(odd) {
    visibility: hidden;
  }
}

/* Infrastructure & Security Breakdown */
.infrastructure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .infrastructure-grid {
    grid-template-columns: 1fr;
  }
}

.security-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.security-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  gap: 1rem;
}

.security-item-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
}

.security-item-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.security-item-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.top-servers-table-wrap {
  overflow-x: auto;
}

/* ==========================================
   CHART TOOLTIP & OVERFLOW REFINEMENTS
   ========================================== */
.chart-box {
  overflow: visible !important;
  position: relative;
}

.chart-container {
  overflow: visible !important;
  position: relative;
  min-height: 230px;
  padding-top: 1.5rem;
}

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: #0d121f !important;
  border: 1px solid #27354f !important;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.95rem;
  font-size: 0.78rem;
  color: var(--text-primary);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity 0.12s ease;
  white-space: nowrap;
  z-index: 9999;
  backdrop-filter: blur(10px);
}

.chart-tooltip.visible {
  opacity: 1;
}

/* ==========================================
   SIMILAR PLAYERS & SEO DISCOVERY
   ========================================== */
.similar-players-deck {
  margin-top: 2rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}

.similar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.95rem;
}

.similar-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.similar-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.similar-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.similar-player-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.82rem;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.similar-player-pill:hover {
  border-color: var(--accent-primary);
  background: rgba(16, 185, 129, 0.05);
  transform: translateY(-1px);
}

.similar-player-pill img {
  border-radius: 4px;
}

.badge-mini {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(6, 182, 212, 0.2);
  color: #38bdf8;
  padding: 1px 5px;
  border-radius: 4px;
}

/* ==========================================
   ADDITIONAL /data ANALYTICS COMPONENTS
   ========================================== */

/* Veterans Hall of Fame Grid */
.veterans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 1000px) {
  .veterans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .veterans-grid {
    grid-template-columns: 1fr;
  }
}

.veteran-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.veteran-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.veteran-avatar {
  border-radius: 6px;
  background: var(--bg-surface);
}

.veteran-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.veteran-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.veteran-hours {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.veteran-days {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Day of Week Chart */
.dow-bars-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  align-items: flex-end;
  height: 160px;
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 8px;
}

.dow-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  cursor: pointer;
  position: relative;
}

.dow-bar {
  width: 100%;
  background: #222222;
  border-radius: 3px 3px 0 0;
  transition: background 0.15s ease;
  min-height: 8px;
}

.dow-bar.peak {
  background: #ffffff;
}

.dow-col:hover .dow-bar {
  background: #e4e4e7;
}

.dow-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Multi-Server Migration & Cohorts */
.analytics-trio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .analytics-trio-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   ADVANCED SERVER PROFILE STYLES
   ========================================== */
.server-banner-card {
  background: linear-gradient(135deg, rgba(13, 18, 29, 0.95), rgba(8, 11, 17, 0.95));
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.server-banner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #10b981, #06b6d4, transparent);
}

.server-banner-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.server-avatar-stack {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex: 1;
  min-width: 280px;
}

.server-avatar-frame {
  width: 80px;
  height: 80px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.server-icon-glyph {
  color: var(--accent-primary);
}

.server-online-dot {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  background: #10b981;
  border: 2px solid #080b11;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

.server-title-area {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.server-heading-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.server-heading-row h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}

.verified-node-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.server-meta-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.server-description-text {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 640px;
  margin-top: 0.4rem;
}

.server-action-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.server-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.75rem;
}

.server-split-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.5rem;
}

.server-column-main, .server-column-side {
  display: flex;
  flex-direction: column;
}

.section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 1.5rem;
}

.card-header-clean {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.section-title-sm {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.2rem 0;
}

.section-subtitle-sm {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.server-players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}

.security-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.security-check-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.check-icon-wrap {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.check-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.check-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 960px) {
  .server-split-layout {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   PLAYER PROFILE ACTIVITY & PLAYTIME CHARTS
   ========================================== */

.activity-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 1100px) {
  .activity-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .activity-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.activity-kpi-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.activity-kpi-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.activity-kpi-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--text-muted);
}

.activity-kpi-val-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.4rem 0;
}

.activity-kpi-val {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.activity-kpi-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.kpi-pill-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  white-space: nowrap;
}

.kpi-pill-badge.badge-cyan {
  color: #06b6d4;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.kpi-pill-badge.badge-emerald {
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.chart-timeframe-pills {
  display: flex;
  gap: 4px;
  background: var(--bg-base);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.time-pill-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.time-pill-btn:hover {
  color: var(--text-primary);
}

.time-pill-btn.active {
  background: var(--accent-primary);
  color: #000;
  font-weight: 700;
}

.dayparts-legend-strip {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.daypart-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.daypart-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-night {
  background: #3b82f6;
}

.dot-morning {
  background: #eab308;
}

.dot-afternoon {
  background: #f97316;
}

.dot-evening {
  background: #10b981;
}

.dow-bars-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: flex-end;
  height: 150px;
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 8px;
}

.dow-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  cursor: pointer;
  position: relative;
}

.dow-bar {
  width: 100%;
  background: #222222;
  border-radius: 4px 4px 0 0;
  transition: all 0.15s ease;
  min-height: 4px;
}

.dow-bar.peak {
  background: #ffffff;
}

.dow-col:hover .dow-bar,
.dow-bar.active {
  background: #e4e4e7;
  transform: scaleY(1.04);
}

.dow-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 600;
}

.server-dist-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.server-dist-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.15s ease;
}

.server-dist-item:hover {
  border-color: var(--border-hover);
}

.server-dist-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.server-dist-name {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.server-dist-stats {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.server-dist-bar-track {
  width: 100%;
  height: 6px;
  background: var(--bg-base);
  border-radius: 3px;
  overflow: hidden;
}

.server-dist-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #06b6d4, #10b981);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.recent-sessions-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 4px;
}

.recent-session-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease;
}

.recent-session-card:hover {
  border-color: var(--border-hover);
}

.recent-session-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.recent-session-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.recent-session-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #181818;
  color: #ffffff;
  border: 1px solid #333333;
}

/* ============================================================
   Notifications Deck — Minimalist Monochrome Architecture
   ============================================================ */
.notifications-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.notifications-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-default);
}

.notifications-title-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.notifications-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.notifications-badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  background: #ffffff;
  color: #000000;
}

.notifications-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-mono-sm {
  background: #141414;
  border: 1px solid #2a2a2a;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}

.btn-mono-sm:hover {
  background: #222222;
  border-color: #444444;
}

.notifications-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-mono-btn {
  background: transparent;
  border: 1px solid #262626;
  color: #a1a1aa;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-mono-btn:hover {
  color: #ffffff;
  border-color: #52525b;
}

.filter-mono-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.notification-card {
  background: #0d0d0d;
  border: 1px solid #222222;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.15s ease;
  position: relative;
}

.notification-card:hover {
  border-color: #383838;
  background: #111111;
}

.notification-card.unread {
  border-left: 3px solid #ffffff;
  background: #131313;
}

.notification-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 1px solid #333333;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-main {
  flex: 1;
  min-width: 0;
}

.notification-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.notification-title-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.notification-time-ago {
  font-size: 0.75rem;
  color: #71717a;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.notification-body-text {
  font-size: 0.86rem;
  color: #a1a1aa;
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.notification-meta-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.notification-meta-pill {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 4px;
  background: #181818;
  border: 1px solid #2a2a2a;
  color: #d4d4d8;
}

.notification-empty-state {
  padding: 3.5rem 1.5rem;
  text-align: center;
  background: #0d0d0d;
  border: 1px solid #222222;
  border-radius: var(--radius-md);
}

.notification-empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: #52525b;
}

.notification-empty-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.notification-empty-sub {
  font-size: 0.85rem;
  color: #71717a;
  max-width: 360px;
  margin: 0 auto;
}

.deck-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: #ffffff;
  color: #000000;
  margin-left: 6px;
}

/* Profile Share Bar */
.profile-share-bar {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #18181b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.share-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #a1a1aa;
}

.share-btn-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: var(--radius-sm);
  color: #e4e4e7;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.btn-share:hover {
  background: #18181b;
  border-color: #52525b;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-share-accent {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
  font-weight: 700;
}

.btn-share-accent:hover {
  background: #f4f4f5 !important;
  color: #000000 !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}

.btn-copy-mini {
  background: #18181b;
  border: 1px solid #27272a;
  color: #a1a1aa;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-mini:hover {
  background: #27272a;
  color: #ffffff;
}

.pro-pill-tag {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: #ffffff;
  color: #000000;
  margin-left: 4px;
  letter-spacing: 0.3px;
}

/* ==========================================
   TAG BADGES & COMBAT INTELLIGENCE STYLES
   ========================================== */

.hero-tags-container {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  align-items: center;
}

.player-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.32rem 0.85rem;
  border-radius: 9999px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  letter-spacing: 0.25px;
  cursor: pointer;
  position: relative;
  user-select: none;
}

.player-tag-badge:hover {
  transform: translateY(-2px) scale(1.03);
}

.tag-badge-mythic {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(139, 92, 246, 0.25));
  color: #ffffff;
  border: 1px solid rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.4), inset 0 0 8px rgba(236, 72, 153, 0.25);
  animation: mythicTagPulse 3s ease-in-out infinite;
}

@keyframes mythicTagPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(168, 85, 247, 0.4), inset 0 0 8px rgba(236, 72, 153, 0.25); }
  50% { box-shadow: 0 0 22px rgba(168, 85, 247, 0.65), inset 0 0 12px rgba(236, 72, 153, 0.4); }
}

.tag-badge-legendary {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(239, 68, 68, 0.18));
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.3);
}

.tag-badge-epic {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(59, 130, 246, 0.18));
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

.tag-badge-rare {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(14, 165, 233, 0.15));
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.tag-badge-starter {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.15);
}

.combat-stats-box {
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s ease;
}

.combat-stats-box:hover {
  border-color: #3f3f46;
}

.combat-metric-tile {
  background: #121214;
  border: 1px solid #27272a;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: all 0.2s ease;
}

.combat-metric-tile:hover {
  border-color: #52525b;
  background: #18181b;
}

.combat-tile-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a1a1aa;
  margin-bottom: 0.35rem;
}

.combat-tile-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 0.25rem;
  font-family: var(--font-mono, monospace);
}

.combat-tile-sub {
  font-size: 0.7rem;
  color: #71717a;
}

.combat-momentum-badge {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.combat-momentum-badge.momentum-up {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.combat-momentum-badge.momentum-down {
  background: #18181b;
  color: #a1a1aa;
  border: 1px solid #27272a;
}

/* Chart Metric Switcher */
.chart-metric-pills {
  display: flex;
  gap: 0.35rem;
  background: #09090b;
  border: 1px solid #27272a;
  padding: 3px;
  border-radius: var(--radius-sm);
}

.metric-pill-btn {
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.metric-pill-btn:hover {
  color: #ffffff;
  background: #18181b;
}

.metric-pill-btn.active {
  background: #ffffff;
  color: #000000;
}

/* ==========================================================================
   ADVANCED BADGES & MASTERY DECK DESIGN SYSTEM
   ========================================================================== */

/* Mastery Overview Banner */
.badges-mastery-banner {
  background: linear-gradient(135deg, rgba(24, 24, 27, 0.85) 0%, rgba(9, 9, 11, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
}

.badges-mastery-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.mastery-info-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 1;
}

.mastery-progress-circle {
  position: relative;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mastery-progress-circle svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.circle-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 6;
}

.circle-fill {
  fill: none;
  stroke: #ffffff;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.circle-inner-val {
  position: absolute;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono, monospace);
  letter-spacing: -0.5px;
}

.mastery-headline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.mastery-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.mastery-badge-counter {
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mastery-subtitle {
  font-size: 0.82rem;
  color: #a1a1aa;
  margin: 0;
  max-width: 520px;
  line-height: 1.45;
}

/* Mastery Tier Breakdown Chips */
.mastery-tier-breakdown {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  z-index: 1;
}

.mastery-tier-chip {
  background: rgba(18, 18, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 78px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mastery-tier-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(24, 24, 27, 0.95);
}

.mastery-tier-chip.tier-mythic-chip:hover {
  border-color: #a855f7;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.3);
}

.mastery-tier-chip.tier-legendary-chip:hover {
  border-color: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.3);
}

.mastery-tier-chip.tier-epic-chip:hover {
  border-color: #6366f1;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.3);
}

.mastery-tier-chip.tier-rare-chip:hover {
  border-color: #06b6d4;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.3);
}

.mastery-chip-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #a1a1aa;
}

.mastery-chip-count {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
}

/* Badges Deck Toolbar */
.badges-deck-wrapper {
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.badges-deck-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #18181b;
  padding-bottom: 1.25rem;
}

.badges-deck-heading {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.notifications-filters .filter-mono-btn {
  background: #121214;
  border: 1px solid #27272a;
  color: #a1a1aa;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.notifications-filters .filter-mono-btn:hover {
  color: #ffffff;
  border-color: #3f3f46;
  background: #18181b;
}

.notifications-filters .filter-mono-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.filter-count-badge {
  font-size: 0.68rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 1px 5px;
  border-radius: 9999px;
}

.notifications-filters .filter-mono-btn.active .filter-count-badge {
  background: #000000;
  color: #ffffff;
}

/* Badges Deck Cards Grid */
.badges-deck-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 1.15rem;
}

/* Individual Badge Card */
.badge-deck-card {
  background: #0d0d10;
  border: 1px solid #27272a;
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.22s ease, 
              box-shadow 0.22s ease, 
              background 0.22s ease;
  overflow: hidden;
}

.badge-deck-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #27272a;
  transition: height 0.2s ease, background 0.2s ease;
}

.badge-deck-card:hover {
  transform: translateY(-3px);
  border-color: #52525b;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.badge-deck-card:hover::before {
  height: 4px;
}

/* Locked Card State */
.badge-deck-card.locked {
  opacity: 0.72;
  background: #09090b;
}

.badge-deck-card.locked:hover {
  opacity: 0.95;
  border-color: #3f3f46;
}

/* Unlocked Card State */
.badge-deck-card.unlocked {
  background: linear-gradient(180deg, #121216 0%, #0c0c0e 100%);
}

/* Tier Specific Themes */
/* MYTHIC */
.badge-deck-card.tier-mythic::before {
  background: linear-gradient(90deg, #ec4899, #8b5cf6, #3b82f6);
}
.badge-deck-card.unlocked.tier-mythic {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.18);
}
.badge-deck-card.unlocked.tier-mythic:hover {
  border-color: #a855f7;
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.35);
}
.badge-deck-card.tier-mythic .badge-deck-icon-wrap {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(139, 92, 246, 0.05) 70%);
  border-color: rgba(168, 85, 247, 0.4);
}

/* LEGENDARY */
.badge-deck-card.tier-legendary::before {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}
.badge-deck-card.unlocked.tier-legendary {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}
.badge-deck-card.unlocked.tier-legendary:hover {
  border-color: #f59e0b;
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.3);
}
.badge-deck-card.tier-legendary .badge-deck-icon-wrap {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.05) 70%);
  border-color: rgba(245, 158, 11, 0.4);
}

/* EPIC */
.badge-deck-card.tier-epic::before {
  background: linear-gradient(90deg, #6366f1, #3b82f6);
}
.badge-deck-card.unlocked.tier-epic {
  border-color: rgba(99, 102, 241, 0.35);
}
.badge-deck-card.unlocked.tier-epic:hover {
  border-color: #6366f1;
  box-shadow: 0 8px 26px rgba(99, 102, 241, 0.25);
}
.badge-deck-card.tier-epic .badge-deck-icon-wrap {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0.05) 70%);
  border-color: rgba(99, 102, 241, 0.35);
}

/* RARE */
.badge-deck-card.tier-rare::before {
  background: linear-gradient(90deg, #06b6d4, #0ea5e9);
}
.badge-deck-card.unlocked.tier-rare {
  border-color: rgba(6, 182, 212, 0.35);
}
.badge-deck-card.unlocked.tier-rare:hover {
  border-color: #06b6d4;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.22);
}
.badge-deck-card.tier-rare .badge-deck-icon-wrap {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, rgba(6, 182, 212, 0.05) 70%);
  border-color: rgba(6, 182, 212, 0.35);
}

/* STARTER */
.badge-deck-card.tier-starter::before {
  background: linear-gradient(90deg, #10b981, #059669);
}
.badge-deck-card.unlocked.tier-starter {
  border-color: rgba(16, 185, 129, 0.3);
}
.badge-deck-card.unlocked.tier-starter:hover {
  border-color: #10b981;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.2);
}
.badge-deck-card.tier-starter .badge-deck-icon-wrap {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.05) 70%);
  border-color: rgba(16, 185, 129, 0.3);
}

/* Badge Card Content Structure */
.badge-deck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.badge-deck-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #18181b;
  border: 1px solid #27272a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.badge-deck-card:hover .badge-deck-icon-wrap {
  transform: scale(1.08) rotate(-3deg);
}

.badge-card-tier-pill {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: #18181b;
  color: #a1a1aa;
  border: 1px solid #27272a;
}

.tier-pill-mythic {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.4);
}

.tier-pill-legendary {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

.tier-pill-epic {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.4);
}

.tier-pill-rare {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.4);
}

.tier-pill-starter {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.badge-card-title-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.6rem;
}

.badge-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.badge-card-tag-preview {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  width: fit-content;
}

.badge-card-desc {
  font-size: 0.8rem;
  color: #a1a1aa;
  line-height: 1.45;
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* Badge Card Progress Bar & Status Footer */
.badge-deck-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.badge-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
}

.badge-progress-label {
  color: #71717a;
  font-weight: 600;
}

.badge-progress-val {
  color: #ffffff;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
}

.badge-progress-track {
  width: 100%;
  height: 6px;
  background: #18181b;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.badge-progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fill-mythic { background: linear-gradient(90deg, #ec4899, #8b5cf6); }
.fill-legendary { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.fill-epic { background: linear-gradient(90deg, #6366f1, #3b82f6); }
.fill-rare { background: linear-gradient(90deg, #06b6d4, #0ea5e9); }
.fill-starter { background: linear-gradient(90deg, #10b981, #059669); }

.badge-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.badge-status-pill {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-status-pill.status-unlocked {
  color: #10b981;
}

.badge-status-pill.status-locked {
  color: #71717a;
}

.badge-equip-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.badge-equip-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* ==========================================================================
   BADGE INSPECT MODAL
   ========================================================================== */
.badge-inspect-dialog {
  background: #0d0d10 !important;
  border: 1px solid #3f3f46 !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8) !important;
}

.badge-inspect-emblem-wrap {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(24, 24, 27, 0.6) 70%);
  border: 2px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  position: relative;
}

.badge-inspect-big-icon {
  font-size: 3.2rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  animation: badgeFloating 3s ease-in-out infinite;
}

@keyframes badgeFloating {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.badge-inspect-tag-display {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.badge-inspect-desc-text {
  font-size: 0.88rem;
  color: #a1a1aa;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.badge-inspect-progress-card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.badge-inspect-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #a1a1aa;
  margin-bottom: 0.5rem;
}

.badge-inspect-progress-track {
  width: 100%;
  height: 8px;
  background: #27272a;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.badge-inspect-progress-bar {
  height: 100%;
  background: #ffffff;
  border-radius: 9999px;
  transition: width 0.6s ease;
}

.badge-inspect-status-text {
  font-size: 0.74rem;
  font-weight: 700;
  color: #10b981;
}

.badge-inspect-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  background: #121214;
  border: 1px solid #27272a;
  border-radius: var(--radius-md);
  padding: 0.85rem;
  text-align: center;
}

.badge-inspect-stat-item .stat-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.badge-inspect-stat-item .stat-val {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
}


/* Leaderboard Page Styles */
.leaderboard-shell {
  padding: 2rem 0 4rem;
}

.leaderboard-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.leaderboard-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.leaderboard-subtitle {
  font-size: 0.95rem;
  color: #a1a1aa;
  max-width: 580px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

.leaderboard-category-nav {
  display: inline-flex;
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 9999px;
  padding: 4px;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}

.leaderboard-cat-btn {
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.leaderboard-cat-btn:hover {
  color: #ffffff;
  background: #18181b;
}

.leaderboard-cat-btn.active {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

/* Podium Cards */
.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  align-items: flex-end;
}

@media (max-width: 768px) {
  .podium-grid {
    grid-template-columns: 1fr;
  }
}

.podium-card {
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: all 0.25s ease;
}

.podium-card:hover {
  transform: translateY(-4px);
  border-color: #3f3f46;
}

.podium-card.rank-1 {
  background: #0d0d10;
  border-color: #ffffff;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.2);
  padding-top: 2.75rem;
  padding-bottom: 2.5rem;
}

.podium-card.rank-2 {
  border-color: #71717a;
}

.podium-card.rank-3 {
  border-color: #3f3f46;
}

.podium-rank-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.9rem;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.podium-card.rank-1 .podium-rank-badge {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.5);
}

.podium-card.rank-2 .podium-rank-badge {
  background: #27272a;
  color: #ffffff;
  border: 1px solid #71717a;
}

.podium-card.rank-3 .podium-rank-badge {
  background: #18181b;
  color: #d4d4d8;
  border: 1px solid #3f3f46;
}

.podium-avatar-link {
  display: block;
  margin: 0 auto 0.75rem;
  text-align: center;
}

.podium-bust-img {
  height: 135px;
  width: auto;
  margin: 0 auto;
  display: block;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
  transition: transform 0.25s ease;
}

.podium-card.rank-1 .podium-bust-img {
  height: 160px;
  filter: drop-shadow(0 10px 24px rgba(255, 255, 255, 0.25));
}

.podium-card:hover .podium-bust-img {
  transform: scale(1.06);
}

.podium-player-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
  text-decoration: none;
  display: block;
  text-align: center;
}

.podium-player-name:hover {
  text-decoration: underline;
}

.podium-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 9999px;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.podium-card.rank-1 .podium-tag-badge {
  background: #27272a;
  border-color: #52525b;
}

.podium-metric-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono, monospace);
  margin-bottom: 0.35rem;
}

.podium-submetrics {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.lb-player-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
}

.lb-player-link:hover {
  text-decoration: underline;
}

.lb-player-avatar {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  image-rendering: pixelated;
  border: 1px solid #27272a;
}

.lb-tag-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  background: #18181b;
  border: 1px solid #27272a;
  color: #e4e4e7;
}

/* Leaderboard Table */
.leaderboard-table-wrap {
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.leaderboard-table th {
  padding: 1rem 1.25rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #71717a;
  border-bottom: 1px solid #18181b;
  background: #0c0c0e;
}

.leaderboard-table td {
  padding: 1rem 1.25rem;
  font-size: 0.86rem;
  border-bottom: 1px solid #18181b;
  color: #d4d4d8;
  vertical-align: middle;
}

.leaderboard-table tr:hover td {
  background: #121214;
}

.table-rank-num {
  font-size: 0.95rem;
  font-weight: 800;
  color: #a1a1aa;
  width: 45px;
  text-align: center;
}

.table-player-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.table-avatar {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid #27272a;
  image-rendering: pixelated;
}

.table-username {
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.table-username:hover {
  text-decoration: underline;
}

/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS SUITE (TasteSkill Mobile First)
   Standardized breakpoints: 860px (Tablets) & 640px / 480px (Smartphones)
   ============================================================ */

/* 1. Global Touch & Viewport Protection */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

img, canvas, svg, video {
  max-width: 100%;
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }
  
  /* Prevent iOS Safari auto-zoom on input focus */
  input[type="text"],
  input[type="password"],
  input[type="email"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* 2. Responsive App-Bar Navigation (Dual-tier on Mobile) */
@media (max-width: 860px) {
  .navbar {
    height: auto !important;
    min-height: 56px;
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 500;
  }

  .nav-container {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .brand {
    order: 1;
    flex-shrink: 0;
    gap: 0.5rem;
  }

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

  .brand-title {
    font-size: 1.05rem;
  }

  /* Right-hand Auth & Live Status actions */
  .nav-container > div:last-child {
    order: 2;
    margin-left: auto;
    gap: 0.5rem !important;
  }

  .network-status-indicator {
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
  }

  /* Quick Nav Search full-width row */
  .nav-search-wrap {
    order: 3;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0.2rem;
  }

  .nav-search-bar {
    padding: 0.35rem 0.75rem;
  }

  .kbd-shortcut {
    display: none !important;
  }

  /* Swipeable Mobile Navigation Pills */
  .nav-links {
    order: 4;
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 0.2rem;
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.15rem 0 0.35rem;
    gap: 0.35rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.45rem;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    flex-shrink: 0;
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-pill);
  }

  .nav-link.active {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
  }
}

@media (max-width: 540px) {
  .brand-badge {
    display: none !important;
  }

  .network-status-indicator span:not(.status-dot) {
    display: none;
  }

  .network-status-indicator {
    padding: 0.35rem;
    border-radius: 50%;
  }
}

/* 3. Homepage Mobile Polish */
@media (max-width: 768px) {
  .hero-asymmetric {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    padding: 1.5rem 0 1rem !important;
  }

  .hero-headline {
    font-size: 1.85rem !important;
    line-height: 1.18 !important;
  }

  .hero-lead {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }

  .hero-search-box {
    padding: 0.35rem 0.45rem 0.35rem 0.75rem !important;
  }

  .hero-search-box button {
    padding: 0.4rem 0.85rem !important;
  }

  .telemetry-card {
    padding: 1rem !important;
  }

  .telemetry-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.65rem !important;
  }

  .telemetry-val {
    font-size: 1.3rem !important;
  }

  .growth-section {
    padding: 1.25rem 0.85rem !important;
    margin: 1.5rem 0 !important;
  }

  .growth-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.85rem !important;
  }

  .timeframe-group {
    width: 100% !important;
    display: flex !important;
  }

  .timeframe-btn {
    flex: 1 !important;
    text-align: center !important;
    padding: 0.4rem 0.5rem !important;
    font-size: 0.75rem !important;
  }

  .growth-kpi-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.65rem !important;
  }

  .growth-kpi-card {
    padding: 0.85rem !important;
  }

  .growth-kpi-val {
    font-size: 1.3rem !important;
  }

  .directory-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.85rem !important;
  }

  .directory-controls {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 0.5rem !important;
  }

  .sort-group {
    flex: 1 !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
  }

  .sort-group::-webkit-scrollbar {
    display: none;
  }

  .sort-btn {
    font-size: 0.74rem !important;
    padding: 0.35rem 0.6rem !important;
  }

  .directory-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 0.65rem !important;
  }

  .player-card {
    padding: 0.8rem 0.75rem !important;
    gap: 0.65rem !important;
  }

  .player-card-avatar {
    width: 38px !important;
    height: 38px !important;
  }

  .player-card-username {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 400px) {
  .directory-grid {
    grid-template-columns: 1fr !important;
  }
  
  .growth-kpi-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 4. Player Profile Page Mobile Architecture */
@media (max-width: 860px) {
  .profile-banner-card {
    border-radius: var(--radius-md) !important;
    margin-bottom: 1.25rem !important;
  }

  .profile-banner-body {
    padding: 1.1rem 0.9rem 1rem !important;
  }

  .profile-header-layout {
    margin-top: -30px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1.1rem !important;
  }

  .profile-avatar-stack {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.85rem !important;
    flex-wrap: wrap !important;
  }

  .avatar-frame {
    width: 76px !important;
    height: 76px !important;
    flex-shrink: 0;
  }

  #playerGamertag {
    font-size: 1.7rem !important;
    word-break: break-word !important;
  }

  .profile-name-area {
    min-width: 0;
    flex: 1;
  }

  /* 3D Skin Bust preview block on mobile */
  .profile-header-layout > div:last-child {
    align-self: center !important;
    margin: 0.25rem auto 0 !important;
  }

  #playerBust {
    height: 125px !important;
  }

  .profile-meta-strip {
    gap: 0.45rem 0.75rem !important;
    font-size: 0.76rem !important;
  }

  /* Profile Share Bar Grid */
  .profile-share-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }

  .share-btn-group {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.35rem !important;
    width: 100% !important;
  }

  .btn-share {
    justify-content: center !important;
    padding: 0.45rem 0.3rem !important;
    font-size: 0.72rem !important;
  }

  .btn-share-accent {
    grid-column: span 3 !important;
  }

  /* Main Deck / Sidebar Ordering */
  .profile-deck-layout {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .main-deck {
    order: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .profile-sidebar {
    order: 2 !important;
    width: 100% !important;
    gap: 1rem !important;
  }

  /* Swipeable Deck Tabs */
  .deck-tabs {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    flex-wrap: nowrap !important;
    padding-bottom: 0.5rem !important;
    gap: 0.35rem !important;
    border-bottom: 1px solid var(--border-default) !important;
  }

  .deck-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .deck-tab-btn {
    flex-shrink: 0 !important;
    font-size: 0.8rem !important;
    padding: 0.45rem 0.85rem !important;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-pill);
  }

  .deck-tab-btn.active {
    background: var(--bg-surface-elevated) !important;
    border-color: var(--accent-primary) !important;
    color: var(--accent-primary) !important;
  }

  /* Connected Servers Grid */
  .servers-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .server-card {
    padding: 1rem !important;
  }

  /* Badges & Tags Mastery Tab */
  .badges-mastery-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center !important;
    padding: 1.1rem !important;
    gap: 0.85rem !important;
  }

  .badges-category-filter {
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex !important;
    gap: 0.35rem !important;
    padding-bottom: 0.35rem !important;
  }

  .badges-category-filter::-webkit-scrollbar {
    display: none;
  }

  .badge-filter-chip {
    flex-shrink: 0 !important;
  }

  .badges-collection-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }

  .badge-collection-card {
    padding: 0.85rem 0.65rem !important;
  }

  .badge-card-icon {
    font-size: 1.75rem !important;
  }

  .badge-card-title {
    font-size: 0.82rem !important;
  }

  /* Side Metric Values Wrap */
  .side-metric-val,
  #secPlayerUuid,
  #secIdentityHash {
    word-break: break-all !important;
    max-width: 100% !important;
  }
}

@media (max-width: 440px) {
  .badges-collection-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 5. Leaderboard Mobile Polish */
@media (max-width: 768px) {
  .leaderboard-shell {
    padding: 1.25rem 0 3rem !important;
  }

  .leaderboard-hero {
    margin-bottom: 1.5rem !important;
  }

  .leaderboard-title {
    font-size: 1.6rem !important;
  }

  .leaderboard-subtitle {
    font-size: 0.86rem !important;
    padding: 0 0.5rem !important;
  }

  .leaderboard-category-tabs,
  .leaderboard-category-nav {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    max-width: 100% !important;
    border-radius: var(--radius-pill) !important;
    padding: 4px !important;
    gap: 0.3rem !important;
    justify-content: flex-start !important;
  }

  .leaderboard-category-tabs::-webkit-scrollbar,
  .leaderboard-category-nav::-webkit-scrollbar {
    display: none !important;
  }

  .lb-tab-btn,
  .leaderboard-cat-btn {
    flex-shrink: 0 !important;
    font-size: 0.74rem !important;
    padding: 0.4rem 0.85rem !important;
  }

  .podium-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-bottom: 1.75rem !important;
  }

  .podium-card.rank-1 {
    order: -1 !important;
    padding: 2.2rem 1.25rem 1.75rem !important;
  }

  .podium-card.rank-2 {
    order: 0 !important;
    padding: 1.5rem 1rem !important;
  }

  .podium-card.rank-3 {
    order: 1 !important;
    padding: 1.5rem 1rem !important;
  }

  .podium-bust-img {
    height: 115px !important;
  }

  .podium-card.rank-1 .podium-bust-img {
    height: 135px !important;
  }

  .leaderboard-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 0.75rem 0.75rem !important;
    font-size: 0.8rem !important;
  }

  .table-avatar {
    width: 28px !important;
    height: 28px !important;
  }
}

/* 6. Global Analytics Page Mobile Polish */
@media (max-width: 768px) {
  .analytics-hero {
    margin-bottom: 1.5rem !important;
  }

  .analytics-title {
    font-size: 1.6rem !important;
  }

  .analytics-lead {
    font-size: 0.88rem !important;
  }

  .analytics-kpi-bar {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.65rem !important;
  }

  .geo-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .country-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .country-table th,
  .country-table td {
    padding: 0.6rem 0.65rem !important;
    font-size: 0.78rem !important;
  }
}

@media (max-width: 480px) {
  .analytics-kpi-bar {
    grid-template-columns: 1fr !important;
  }
}

/* 7. Responsive Modals & 3D Skin Studio */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 0.5rem !important;
    align-items: flex-end !important;
  }

  .modal-content,
  .modal-dialog {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }

  /* 3D Skin Studio Modal on Mobile */
  #skinStudioModal .modal-body > div {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  #skinStudioModal .modal-body > div > div:first-child > div {
    height: 250px !important;
  }

  #skinStudioModal canvas {
    height: 250px !important;
  }

  .modal-header {
    padding: 0.85rem 1rem !important;
  }

  .modal-body {
    padding: 1rem !important;
  }

  .modal-footer {
    padding: 0.75rem 1rem !important;
    flex-wrap: wrap !important;
  }

  /* Badge Inspector dialog on mobile */
  .badge-inspect-dialog {
    max-width: 100% !important;
    width: 100% !important;
  }

  .badge-inspect-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }
}

/* 8. Server Profile Page Mobile Architecture */
@media (max-width: 768px) {
  .server-banner-card {
    padding: 1.25rem 1rem !important;
    border-radius: var(--radius-md) !important;
  }

  .server-avatar-stack {
    flex-direction: column !important;
    gap: 0.85rem !important;
    min-width: 0 !important;
  }

  .server-heading-row h1 {
    font-size: 1.6rem !important;
    word-break: break-word !important;
  }

  .server-meta-strip {
    flex-wrap: wrap !important;
    gap: 0.5rem 0.75rem !important;
    font-size: 0.76rem !important;
  }

  .server-metrics-hero-bar {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.65rem !important;
  }

  .server-check-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.4rem !important;
  }
}

@media (max-width: 480px) {
  .server-metrics-hero-bar {
    grid-template-columns: 1fr !important;
  }
}
