/* ================================
   RuneScape Tracker - Fresh Start
   Modern App Design
================================ */

/* ================================
   CSS VARIABLES
================================ */
:root {
  /* Colors */
  --bg: #0f0f11;
  --panel: #17171a;
  --panel-2: #141416;
  --border: #2a2a2d;
  --text: #f2f2f2;
  --muted: #b0b0b0;
  --blue: #3498db;
  --darkblue: #226897;
  --rs-gold: #d4af37;
  --success: #50dc78;
  --danger: #e74c3c;
  --discord: #5865F2;
  --discord-dark: #4752C4;
  
  /* White & Opacity */
  --white: #ffffff;
  --text-60: rgba(255, 255, 255, 0.6);
  --text-70: rgba(255, 255, 255, 0.7);
  --text-80: rgba(255, 255, 255, 0.8);
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Navigation */
  --sidebar-width: 240px;
  --sidebar-collapsed: 80px;
  --topbar-height: 60px;

  /* Fonts */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ================================
   DASHBOARD + COSMETIC USERNAMES
================================ */
.dashboard-page,
.premium-page {
  --premium-accent: #8fc9df;
  --premium-action: #62b4d1;
  --premium-panel: #111a26;
  min-height: 100vh;
  color: #dce7f2;
  background: #0b111a;
}

.dashboard-hero-layout,
.premium-hero-layout {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.dashboard-hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(143, 201, 223, 0.4);
  border-radius: 6px;
  background: rgba(143, 201, 223, 0.08);
  color: #dff6ff;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.dashboard-hero-action:hover {
  border-color: var(--premium-accent);
  background: rgba(143, 201, 223, 0.14);
  color: #fff;
}

.dashboard-hero-action svg,
.dashboard-account-nav svg,
.dashboard-quick-links svg,
.dashboard-tracker-actions svg {
  width: 17px;
  height: 17px;
}

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: var(--premium-panel);
}

.dashboard-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  padding: 0.9rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-summary > div:last-child {
  border-right: 0;
}

.dashboard-summary span {
  color: rgba(220, 231, 242, 0.56);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.dashboard-summary strong {
  color: #fff;
  font-size: 1rem;
}

.dashboard-panel {
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: var(--premium-panel);
}

.dashboard-panel-kicker,
.premium-panel-label,
.premium-preview-panel header > p {
  margin: 0 0 0.35rem;
  color: var(--premium-accent);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-panel h2,
.dashboard-panel-heading h2,
.premium-preview-panel h2,
.premium-checkout-panel h2 {
  margin: 0;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
}

.dashboard-page .dashboard-profile-block {
  margin: 1.25rem 0;
  padding: 1rem 0;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-page .dashboard-profile-copy {
  min-width: 0;
}

.dashboard-page .dashboard-profile-copy p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-account-note {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 1rem;
  padding: 0.8rem;
  border-left: 2px solid #d6b55b;
  background: rgba(214, 181, 91, 0.07);
}

.dashboard-account-note > svg {
  width: 17px;
  flex: 0 0 auto;
  color: #e5c66e;
}

.dashboard-account-note div {
  display: grid;
  gap: 0.2rem;
}

.dashboard-account-note strong {
  color: #f7e5ae;
  font-size: 0.78rem;
}

.dashboard-account-note span {
  color: rgba(231, 221, 191, 0.62);
  font-size: 0.72rem;
  line-height: 1.45;
}

.dashboard-account-nav {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-account-nav a,
.dashboard-account-nav button {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 43px;
  padding: 0.65rem 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: rgba(231, 239, 247, 0.76);
  font-size: 0.78rem;
  text-align: left;
  text-decoration: none;
}

.dashboard-account-nav a:hover,
.dashboard-account-nav button:hover {
  color: var(--premium-accent);
}

.dashboard-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-page .dashboard-tracker-card {
  align-items: center;
  padding: 0.85rem;
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}

.dashboard-page .dashboard-tracker-info {
  display: grid;
  gap: 0.35rem;
}

.dashboard-tracker-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(220, 231, 242, 0.5);
  font-size: 0.67rem;
}

.dashboard-tracker-status svg {
  width: 11px;
  height: 11px;
}

.dashboard-tracker-status.is-unlocked {
  color: #e0c471;
}

.dashboard-page .dashboard-icon-btn,
.dashboard-customize-btn,
.dashboard-unlock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0.48rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  background: transparent;
  color: rgba(230, 239, 247, 0.72);
  font-size: 0.72rem;
  font-weight: 750;
  text-decoration: none;
}

.dashboard-page .dashboard-icon-btn {
  width: 36px;
  padding: 0;
}

.dashboard-customize-btn,
.dashboard-unlock-btn {
  border-color: rgba(214, 181, 91, 0.38);
  background: rgba(214, 181, 91, 0.08);
  color: #f2d98e;
}

.dashboard-page .dashboard-icon-btn:hover,
.dashboard-customize-btn:hover,
.dashboard-unlock-btn:hover {
  border-color: var(--premium-accent);
  color: #fff;
}

.dashboard-quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.dashboard-quick-links a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--premium-accent);
  text-decoration: none;
}

.dashboard-quick-links span {
  display: grid;
  min-width: 0;
}

.dashboard-quick-links strong {
  color: #eef6fc;
  font-size: 0.76rem;
}

.dashboard-quick-links small {
  color: rgba(220, 231, 242, 0.5);
  font-size: 0.66rem;
}

.premium-page .community-container {
  max-width: 1180px;
}

.premium-hero {
  padding: 1.25rem 0 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(100deg, rgba(7, 12, 19, 0.97), rgba(7, 12, 19, 0.78)),
    url('/img/background.jpg') center 42% / cover no-repeat;
}

.premium-hero .app-breadcrumbs {
  margin-bottom: 2.4rem;
}

.premium-hero-layout > div:first-child {
  max-width: 720px;
}

.premium-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  color: var(--premium-accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.premium-eyebrow svg {
  width: 15px;
  height: 15px;
}

.premium-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.35rem, 5vw, 4.25rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}

.premium-hero h1 span {
  color: #f0d27a;
}

.premium-hero-layout > div:first-child > p:last-child {
  max-width: 650px;
  margin: 1rem 0 0;
  color: rgba(226, 236, 246, 0.68);
  font-size: 0.92rem;
  line-height: 1.65;
}

.premium-price-lockup {
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
  flex: 0 0 auto;
  padding-left: 1.2rem;
  border-left: 2px solid rgba(214, 181, 91, 0.6);
}

.premium-price-lockup strong {
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.premium-price-lockup span {
  color: rgba(226, 236, 246, 0.58);
  font-size: 0.67rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.premium-content {
  padding: 2rem 0 4rem;
}

.premium-content > .community-container > .alert {
  border-radius: 6px;
}

.premium-purchase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 1rem;
  align-items: start;
}

.premium-preview-panel,
.premium-checkout-panel {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: var(--premium-panel);
}

.premium-preview-panel header > span {
  display: block;
  margin-top: 0.45rem;
  color: rgba(220, 231, 242, 0.56);
  font-size: 0.78rem;
}

.premium-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.premium-preview-item {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}

.premium-preview-item > div {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 30px;
  overflow-wrap: anywhere;
}

.premium-preview-item img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  object-fit: contain;
}

.premium-preview-item > span {
  display: block;
  margin-top: 0.55rem;
  color: rgba(220, 231, 242, 0.42);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.premium-checkout-panel {
  border-color: rgba(214, 181, 91, 0.28);
}

.premium-checkout-price {
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
  margin: 1.4rem 0;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.premium-checkout-price strong {
  color: #fff;
  font-size: 2.5rem;
  line-height: 0.9;
}

.premium-checkout-price span {
  color: rgba(220, 231, 242, 0.48);
  font-size: 0.65rem;
  line-height: 1.4;
  text-transform: uppercase;
}

.premium-checkout-panel ul {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
}

.premium-checkout-panel li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: rgba(230, 239, 247, 0.72);
  font-size: 0.76rem;
  line-height: 1.45;
}

.premium-checkout-panel li svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: #78d495;
}

.premium-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--premium-action);
  border-radius: 6px;
  background: var(--premium-action);
  color: #07131b;
  font-size: 0.78rem;
  font-weight: 850;
}

.premium-checkout-btn:hover:not(:disabled) {
  border-color: #78c6df;
  background: #78c6df;
}

.premium-checkout-btn svg,
.premium-back-link svg,
.premium-checkout-note svg,
.premium-scope-note svg {
  width: 16px;
  height: 16px;
}

.premium-back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  margin-top: 0.4rem;
  color: rgba(220, 231, 242, 0.58);
  font-size: 0.73rem;
  text-decoration: none;
}

.premium-back-link:hover {
  color: #fff;
}

.premium-checkout-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.6rem 0 0;
  color: rgba(220, 231, 242, 0.38);
  font-size: 0.65rem;
}

.premium-scope-note {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(143, 201, 223, 0.18);
  border-radius: 6px;
  background: rgba(143, 201, 223, 0.04);
}

.premium-scope-note > svg {
  flex: 0 0 auto;
  color: var(--premium-accent);
}

.premium-scope-note div {
  display: grid;
  gap: 0.2rem;
}

.premium-scope-note strong {
  color: #eef7fc;
  font-size: 0.76rem;
}

.premium-scope-note span {
  color: rgba(220, 231, 242, 0.55);
  font-size: 0.72rem;
  line-height: 1.5;
}

.premium-hero-compact {
  padding-bottom: 2.4rem;
}

.premium-owned-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(214, 181, 91, 0.35);
  border-radius: 6px;
  background: rgba(214, 181, 91, 0.08);
  color: #efd88f;
  font-size: 0.72rem;
  font-weight: 800;
}

.premium-owned-badge svg {
  width: 16px;
  height: 16px;
}

.premium-page .customize-toggle-card,
.premium-page .customize-preview-card,
.premium-page .customize-options-card {
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: var(--premium-panel);
  box-shadow: none;
}

.premium-page .customize-toggle-card:hover,
.premium-page .customize-option:hover,
.premium-page .customize-preview-card:hover {
  transform: none;
}

.premium-page .customize-toggle-icon,
.premium-page .customize-section-icon {
  border-radius: 6px;
  background: rgba(143, 201, 223, 0.1);
  color: var(--premium-accent);
}

.premium-page .customize-option {
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}

.premium-page .customize-option.active {
  border-color: rgba(143, 201, 223, 0.6);
  background: rgba(143, 201, 223, 0.08);
}

.premium-page .customize-save-btn {
  border-radius: 6px;
  background: var(--premium-action);
  color: #07131b;
  box-shadow: none;
}

.premium-page .customize-save-btn:hover {
  background: #78c6df;
  transform: none;
  box-shadow: none;
}

.premium-page .customize-back-btn,
.premium-page .customize-position-btn {
  border-radius: 6px;
}

@media (max-width: 991px) {
  .premium-purchase-layout {
    grid-template-columns: 1fr;
  }

  .premium-checkout-panel {
    order: -1;
  }
}

@media (max-width: 767px) {
  .dashboard-hero-layout,
  .premium-hero-layout {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.4rem;
  }

  .dashboard-hero-action {
    width: 100%;
  }

  .dashboard-summary {
    grid-template-columns: 1fr;
  }

  .dashboard-summary > div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .dashboard-summary > div:last-child {
    border-bottom: 0;
  }

  .dashboard-page .dashboard-tracker-card {
    align-items: stretch;
  }

  .dashboard-page .dashboard-tracker-actions {
    display: grid;
    grid-template-columns: 36px 36px minmax(0, 1fr);
  }

  .dashboard-customize-btn,
  .dashboard-unlock-btn {
    min-width: 0;
  }

  .dashboard-quick-links {
    grid-template-columns: 1fr;
  }

  .premium-hero {
    padding: 1rem 0 2.25rem;
  }

  .premium-hero .app-breadcrumbs {
    margin-bottom: 1.75rem;
  }

  .premium-hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.1rem);
  }

  .premium-price-lockup {
    padding-left: 0;
    border-left: 0;
  }

  .premium-content {
    padding: 1rem 0 3rem;
  }

  .premium-preview-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================
   GLOBAL RESET & BASE
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: var(--font);
  background: var(--bg);
  background-image: url('/img/background.jpg');
  background-position: right top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  padding-top: 0;
  padding-left: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ================================
   UTILITY CLASSES
================================ */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.transition-default {
  transition: all 0.2s ease;
}

/* ================================
   SITE ALERT
================================ */
    padding: 1rem 0;
  position: relative;
  z-index: 1010;
  margin-bottom: 1.5rem;
  .footer-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem 1.25rem;
    flex-wrap: wrap;
    text-align: center;
    padding: 0.5rem 0;
  }

  .footer-copy {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin: 0;
  }

  .footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    flex-wrap: wrap;
  }

  .footer-links a,
  .footer-tagline {
    color: var(--muted);
    font-size: 0.8rem;
    text-decoration: none;
    margin: 0;
  }

  .footer-links a {
    transition: color 0.2s;
  }

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

  .footer-separator {
    color: rgba(255, 255, 255, 0.3);
  }

  .footer-copy,
  .footer-links {
    min-width: 0;
  }

  @media (max-width: 767px) {
    .app-footer {
      padding: 0.9rem 0;
    }

    .footer-shell {
      flex-direction: column;
      justify-content: center;
      gap: 0.45rem;
      padding: 0.25rem 0;
    }

    .footer-links {
      gap: 0.4rem;
    }

    .footer-separator {
      display: none;
    }

    .footer-tagline {
      display: block;
    }
  }

  /* Old footer variants removed during redesign. */
  /* ================================
     ACHIEVEMENTS PAGE
  ================================ */
  .achievements-header {
    background: var(--panel);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

.site-premium-alert-cta:hover {
  color: #18140a;
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.community-container {
  max-width: 1140px;
  width: 100%;
}

.community-shell {
  display: grid;
  gap: 0.65rem;
}

.hero-section.community-hero-section {
  padding: 1.75rem 0 1.15rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.10) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.community-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.community-hero-copy h1 {
  font-size: clamp(1.85rem, 2.7vw, 2.45rem);
  margin-bottom: 0.5rem;
}

.community-hero-copy p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.community-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.community-hero-point {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.92rem;
}

.community-hero-point i {
  color: var(--blue);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.community-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.community-section-head h2 {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  margin: 0;
}

.community-section-head p {
  margin: 0.22rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.community-activity-head {
  align-items: center;
}

.community-surface-card {
  --bs-card-bg: transparent;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%), rgba(255, 255, 255, 0.03);
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  color-scheme: dark;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.card.community-surface-card {
  --bs-card-bg: transparent;
  background-color: rgba(255, 255, 255, 0.03);
}

.community-surface-card .card-body {
  background: transparent;
}

.community-wrap-card {
  --bs-card-bg: transparent;
  border-width: 1px;
  box-shadow: none;
}

.community-wrap-body {
  padding: 0.9rem;
}

.community-wrap-card .card {
  border-width: 1px;
  box-shadow: none;
}

.community-wrap-card .community-surface-card {
  border-width: 1px;
  box-shadow: none;
}

@media (max-width: 767px) {
  .community-wrap-body {
    padding: 0.78rem;
  }
}

.community-surface-card .table-responsive,
.community-surface-card .table {
  background: transparent;
}

.community-surface-card .admin-table {
  background: transparent;
  --bs-table-bg: transparent;
  color: var(--text);
  padding: 0;
  box-shadow: none;
}

.community-surface-card .admin-table > :not(caption) > * > * {
  background: transparent;
}

.community-surface-card .admin-table thead th {
  background: rgba(255, 255, 255, 0.05);
}

.community-surface-card .admin-table tbody td {
  background: transparent;
}

.community-surface-card .admin-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.018);
}

.community-surface-card .admin-table tbody tr:hover td {
  background: rgba(52, 152, 219, 0.08);
}

.community-hub-nav-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.community-hub-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.community-hub-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.community-hub-link:hover {
  background: rgba(8, 12, 18, 0.68);
  backdrop-filter: blur(10px);
  border-color: rgba(52, 152, 219, 0.45);
  transform: translateY(-1px);
}

.community-premium-alert {
  margin-bottom: 1.25rem;
}

.site-premium-alert-cta i {
  width: 16px;
  height: 16px;
}
  background: rgba(18, 24, 34, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    padding-top: 0.75rem;
  }
}

@media (max-width: 767px) {
  .site-premium-alert-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* ================================
   TYPOGRAPHY
================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #5dade2;
}


.sidebar-brand-text {
  transition: opacity 0.2s, width 0.2s;
  white-space: nowrap;
}

.sidebar-logo {
  flex-shrink: 0;
  transition: margin 0.2s;
}

html.sidebar-collapsed .sidebar-brand {
  justify-content: center;
  padding: 0;
  width: 100%;
  gap: 0;
}

html.sidebar-collapsed .sidebar-logo {
  margin: 0;
  display: block;
}

html.sidebar-collapsed .sidebar-brand-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

/* Sidebar Nav */
.sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.25rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
}

.sidebar-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--blue);
  border-radius: 0 2px 2px 0;
  transition: height 0.2s;
}

.sidebar-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.sidebar-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active::before {
  height: 24px;
}

.sidebar-link.active .sidebar-icon {
  background: rgba(52, 152, 219, 0.2);
}

.sidebar-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  font-size: 1.125rem;
  transition: all 0.2s;
}

.sidebar-icon-primary {
  background: rgba(52, 152, 219, 0.15);
  color: var(--blue);
}

.sidebar-icon-success {
  background: rgba(80, 220, 120, 0.15);
  color: var(--success);
}

.sidebar-icon-gold {
  background: rgba(212, 175, 55, 0.15);
  color: var(--rs-gold);
}

.sidebar-label {
  transition: opacity 0.2s, width 0.2s;
  white-space: nowrap;
  overflow: hidden;
}

html.sidebar-collapsed .sidebar-link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem;
  position: relative;
}

html.sidebar-collapsed .sidebar-icon {
  width: 42px;
  height: 42px;
  font-size: 1.25rem;
}

html.sidebar-collapsed .sidebar-label {
  opacity: 0;
  width: 0;
  display: none;
}

/* Tooltip for collapsed sidebar */
html.sidebar-collapsed .sidebar-link[data-tooltip]::after {
  content: attr(data-tooltip);
  position: fixed;
  left: 92px;
  top: var(--tooltip-y, 50%);
  transform: translateY(-50%) translateX(-8px);
  background: var(--panel);
  color: var(--text);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10000;
}

html.sidebar-collapsed .sidebar-link[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* Sidebar Toggle Button */
.sidebar-toggle-btn {
  position: fixed;
  top: 1.25rem;
  left: calc(var(--sidebar-width) + 12px);
  width: 40px;
  height: 40px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 1.125rem;
  cursor: pointer;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-toggle-btn i {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.sidebar-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}

html.sidebar-collapsed .sidebar-toggle-btn {
  left: calc(var(--sidebar-collapsed) + 12px);
}

html.sidebar-collapsed .sidebar-toggle-btn i {
  transform: rotate(180deg);
}

.app-navbar {
  background: linear-gradient(135deg, rgba(10, 12, 18, 0.98), rgba(18, 22, 30, 0.98));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.app-navbar .container {
  max-width: 1140px;
}

.home-sponsor {
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 0;
}

.home-sponsor-banner {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.home-sponsor-banner img {
  display: block;
  width: min(970px, 100%);
  height: auto;
}

.home-hero-breadcrumbs {
  margin-bottom: 0.85rem;
}

.home-hero-breadcrumbs .breadcrumb {
  padding: 0;
  margin: 0;
  background: transparent;
}

.home-hero-breadcrumbs .breadcrumb-item,
.home-hero-breadcrumbs .breadcrumb-item a {
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
}

.home-hero-breadcrumbs .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.home-hero-breadcrumbs .breadcrumb-item a:hover {
  color: var(--blue);
}

.home-hero-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.35);
  content: "/";
}

.app-navbar .navbar-brand,
.app-navbar .nav-link,
.app-navbar .navbar-toggler {
  color: var(--text) !important;
}

.app-navbar .navbar-brand {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.25rem 0.35rem;
  font-weight: 700;
}

.app-navbar .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  position: relative;
  overflow: hidden;
  transition: all 0.2s linear;
}

.app-navbar .brand-mark:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  position: relative;
  overflow: hidden;
}

.app-navbar .brand-mark i,
.app-navbar .brand-mark svg {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  width: 2rem;
  height: 2rem;
}

.app-navbar .navbar-nav {
  gap: 0.2rem;
}

.app-navbar .nav-link {
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  margin: 0;
  font-size: 0.92rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link.active {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.app-navbar .nav-link.leagues2-nav-link {
  color: #f6f7ee !important;
  background: linear-gradient(135deg, rgba(111, 169, 57, 0.95), rgba(95, 152, 48, 0.95));
  border: 1px solid rgba(243, 237, 65, 0.62);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24), 0 0 0 2px rgba(243, 237, 65, 0.14);
  font-weight: 700;
}

.app-navbar .nav-link.leagues2-nav-link:hover,
.app-navbar .nav-link.leagues2-nav-link:focus,
.app-navbar .nav-link.leagues2-nav-link.active {
  color: #f6f7ee !important;
  background: linear-gradient(135deg, rgba(102, 161, 51, 0.98), rgba(87, 141, 43, 0.98));
  border-color: rgba(243, 237, 65, 0.86);
}

.app-navbar .dropdown-menu.app-navbar-dropdown {
  margin-top: 0.65rem;
  padding: 0.6rem;
  background: rgba(12, 14, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  min-width: 220px;
}

.app-navbar .dropdown-menu.app-navbar-dropdown .dropdown-item {
  color: var(--text);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.25;
}

.app-navbar .dropdown-menu.app-navbar-dropdown .dropdown-item:hover,
.app-navbar .dropdown-menu.app-navbar-dropdown .dropdown-item:focus {
  color: var(--text);
  background: rgba(52, 152, 219, 0.12);
}

.app-navbar .dropdown-menu.app-navbar-dropdown .dropdown-item.active {
  background: rgba(52, 152, 219, 0.16);
  color: var(--white);
}

.app-navbar .dropdown-menu.app-navbar-dropdown .dropdown-divider {
  border-top-color: rgba(255, 255, 255, 0.08);
  margin: 0.35rem 0;
}

.app-navbar .nav-link.dropdown-toggle::after {
  margin-left: 0.45rem;
  vertical-align: 0.15em;
}

.app-navbar .nav-link.dropdown-toggle.active::after {
  border-top-color: currentColor;
}

.app-navbar .action-group {
  gap: 0.5rem;
  margin-right: 0;
  padding-right: 0;
}

.app-navbar .action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 0.55rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 10px;
  border: 1px solid transparent;
}

.app-navbar .track-btn {
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--blue), #5dade2);
  box-shadow: 0 8px 18px rgba(52, 152, 219, 0.2);
}

.app-navbar .track-btn:hover,
.app-navbar .track-btn:focus {
  color: var(--white) !important;
  background: linear-gradient(135deg, #3d8fcb, #74b9e9);
}

.app-navbar .login-btn {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.app-navbar .login-btn:hover,
.app-navbar .login-btn:focus {
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.08);
}

.app-navbar .navbar-toggler {
  border-color: var(--muted);
}

.app-navbar .navbar-toggler-icon {
  filter: invert(1);
}

.app-navbar-search {
  width: min(320px, 100%);
}

.app-navbar-search .input-group {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.app-navbar-search .input-group-text,
.app-navbar-search .form-control {
  background: transparent;
  color: var(--text);
  border: 0;
}

.app-navbar-search .form-control::placeholder {
  color: var(--muted);
}

.app-navbar-search .form-control:focus {
  box-shadow: none;
  background: transparent;
  color: var(--text);
}

@media (max-width: 991px) {
  .app-navbar-search {
    width: 100%;
    margin-top: 0.5rem;
  }

  .app-navbar .navbar-nav {
    gap: 0.25rem;
  }

  .app-navbar .navbar-toggler {
    border: 0;
    border-radius: 10px;
    padding: 0.35rem 0.45rem;
    background: transparent;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: none;
    outline: none;
  }

  .app-navbar .navbar-toggler:focus,
  .app-navbar .navbar-toggler:focus-visible {
    box-shadow: none;
    outline: none;
  }

  .app-navbar .navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 16px;
    height: 14px;
    display: inline-block;
    color: var(--muted);
  }

  .app-navbar .navbar-toggler-icon,
  .app-navbar .navbar-toggler-icon::before,
  .app-navbar .navbar-toggler-icon::after {
    transition: all 0.25s ease-in-out;
  }

  .app-navbar .navbar-toggler-icon::before,
  .app-navbar .navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 16px;
    height: 2px;
    background-color: currentColor;
    border-radius: 999px;
  }

  .app-navbar .navbar-toggler-icon::before {
    top: 0;
    box-shadow: 0 6px 0 currentColor;
  }

  .app-navbar .navbar-toggler-icon::after {
    bottom: 0;
  }

  .app-navbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    color: var(--blue);
  }

  .app-navbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    top: 6px;
    transform: rotate(45deg);
    box-shadow: none;
  }

  .app-navbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    bottom: 6px;
    transform: rotate(-45deg);
  }

  .app-navbar .navbar-collapse {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(10, 12, 18, 0.95);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  }

  .app-navbar .navbar-collapse .navbar-nav {
    width: 100%;
  }

  .app-navbar .navbar-collapse .nav-item {
    width: 100%;
  }

  .app-navbar .navbar-collapse .nav-link {
    display: block;
    width: 100%;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: transparent;
  }

  .app-navbar .navbar-collapse .nav-link:hover,
  .app-navbar .navbar-collapse .nav-link.active {
    background: rgba(255, 255, 255, 0.06);
  }

  .app-navbar .navbar-collapse .nav-link.leagues2-nav-link {
    text-align: center;
    margin: 0.1rem 0;
  }

  .app-navbar .navbar-collapse .dropdown-menu.app-navbar-dropdown {
    margin-top: 0.15rem;
    margin-bottom: 0.25rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
  }

  .app-navbar .navbar-collapse .dropdown-menu.app-navbar-dropdown .dropdown-item {
    padding: 0.8rem 0.9rem;
  }

  .app-navbar .navbar-collapse .action-group {
    width: 100%;
    gap: 0.5rem;
    margin-top: 0.25rem;
  }

  .app-navbar .navbar-collapse .action-btn {
    width: 100%;
    min-width: 0;
  }

  .app-navbar .navbar-collapse .track-btn {
    background: linear-gradient(135deg, var(--blue), #5dade2);
  }

  .app-navbar .navbar-collapse .btn-outline-light {
    margin-top: 0.25rem;
    text-align: center;
  }
}

@media (min-width: 1200px) {
  .app-navbar .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* ================================
   DESKTOP SEARCH BAR
================================ */
.app-search-bar {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  z-index: 1020;
}

.app-search-wrapper {
  display: flex;
  align-items: center;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.625rem 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
}

.app-search-wrapper:hover,
.app-search-wrapper:focus-within {
  border-color: var(--blue);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.app-search-icon {
  color: var(--muted);
  margin-right: 0.75rem;
  font-size: 1.375rem;
}

.app-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.9375rem;
  width: 300px;
}

.app-search-input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.app-search-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-left: 0.75rem;
}

/* ================================
   CARDS
================================ */
.card {
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  color: var(--text);
}

.card .text-muted {
  color: var(--muted) !important;
}

/* ================================
   ADMIN TABLES
================================ */
.admin-table-wrap {
  border-radius: var(--radius-lg);
}

.admin-table {
  color: var(--text);
  --bs-table-bg: transparent;
  --bs-table-striped-bg: transparent;
  --bs-table-striped-color: var(--text);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.04);
  --bs-table-hover-color: var(--text);
  border-color: var(--border);
}

.admin-table > :not(caption) > * > * {
  border-color: var(--border) !important;
}

.admin-table thead th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-80);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border) !important;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.admin-table tbody td {
  border-top: 1px solid var(--border);
  color: var(--text-80);
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.admin-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

.admin-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.admin-table td strong {
  color: var(--white);
}

.admin-table .admin-link {
  color: var(--white);
  text-decoration: none;
}

.admin-table .admin-link:hover {
  color: var(--blue);
}

.admin-table .form-select,
.admin-table .btn {
  font-size: 0.85rem;
}

.admin-table .form-select,
.admin-table .form-control {
  background-color: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
}

.admin-table .form-select:focus,
.admin-table .form-control:focus {
  border-color: rgba(52, 152, 219, 0.45);
  box-shadow: 0 0 0 0.15rem rgba(52, 152, 219, 0.15);
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
  align-items: center;
}

.report-details-row td {
  background: rgba(255, 255, 255, 0.02);
}

.report-details {
  color: var(--text-80);
  padding: 0.5rem 0.75rem;
  border-left: 2px solid var(--border);
}

.admin-pagination .page-link {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text-80);
}

.admin-pagination .page-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.admin-pagination .page-item.active .page-link {
  background: rgba(52, 152, 219, 0.18);
  border-color: rgba(52, 152, 219, 0.4);
  color: var(--white);
}

.admin-pagination .page-item.disabled .page-link {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--muted);
}

.admin-filter .form-label {
  color: var(--text-80);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.7rem;
}

.admin-filter .form-control,
.admin-filter .form-select {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
}

.admin-filter .form-control::placeholder {
  color: var(--muted);
}

.admin-filter .form-control:focus,
.admin-filter .form-select:focus {
  border-color: rgba(52, 152, 219, 0.45);
  box-shadow: 0 0 0 0.15rem rgba(52, 152, 219, 0.15);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

/* ================================
   BUTTONS
================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  border: 0 !important;
  line-height: 1;
  transition: none;
  cursor: pointer;
}

.btn:focus,
.btn:focus-visible,
.btn:active:focus,
.btn:hover,
.btn:active,
.btn.active,
.btn-check:checked + .btn,
.btn-check:focus + .btn,
.btn-check:active + .btn,
.btn-check:focus-visible + .btn {
  outline: none;
  box-shadow: none;
  border: 0 !important;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.95), rgba(69, 168, 225, 0.98));
  color: var(--white);
  border: 0 !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2f80c8, #4f9fd8);
  color: var(--white);
  border: 0 !important;
}

.btn-outline-primary {
  background: rgba(52, 152, 219, 0.06);
  border: 0 !important;
  color: var(--blue);
  transition: none;
}

.btn-outline-primary:hover {
  background: rgba(52, 152, 219, 0.12);
  border: 0 !important;
  color: var(--blue);
}

.btn-outline-primary:active,
.btn-outline-primary:focus {
  background: rgba(52, 152, 219, 0.16);
  border: 0 !important;
  color: var(--blue);
}

.btn-success {
  background: linear-gradient(135deg, rgba(80, 220, 120, 0.92), rgba(78, 204, 112, 0.98));
  color: var(--white);
  border: 0 !important;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 0 !important;
  color: var(--text);
}

/* ================================
   FORMS
================================ */
.form-control:focus {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1) !important;
  background: var(--panel-2) !important;
  color: var(--text) !important;
  outline: none;
}

.form-control.is-valid {
  border-color: var(--success);
}

.form-control.is-invalid {
  border-color: var(--danger);
}

/* Alert animations */
.alert {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-control::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

/* Auth layout */
.auth-shell {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
  width: 100%;
}

.auth-shell .auth-breadcrumbs {
  width: 100%;
  justify-self: stretch;
  text-align: left;
}

.hero-section .container.auth-container {
  max-width: 1140px;
  width: 100%;
}

.auth-container {
  max-width: 1140px;
  width: 100%;
}

.auth-container-wide {
  max-width: 1140px;
}

.auth-section-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
}

.auth-intro {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.auth-breadcrumbs .breadcrumb {
  margin-bottom: 0.9rem;
  padding: 0;
  background: transparent;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-intro-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.auth-point {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-point i {
  color: var(--blue);
  flex-shrink: 0;
}

.auth-form-panel {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  text-align: left;
}

.auth-card-modern {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Auth form header */
.auth-form-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}

.auth-form-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(52, 152, 219, 0.1) 100%);
  border: 2px solid rgba(52, 152, 219, 0.3);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(52, 152, 219, 0.2);
  font-size: 2.5rem;
  color: #6db3ff;
}

.auth-form-icon i {
  color: #6db3ff;
}

.auth-form-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.auth-form-subtitle {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0;
}

/* Input group with icon */
.auth-input-group {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  transition: color 0.2s ease;
}

.auth-input-icon i {
  width: 18px;
  height: 18px;
}

.auth-input-with-icon {
  padding-left: 3.5rem !important;
}

.auth-input-group:focus-within .auth-input-icon {
  color: var(--blue);
}

.auth-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font-size: 0.98rem;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.auth-input:focus,
.auth-input.form-control:focus {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(52, 152, 219, 0.45) !important;
  color: var(--text) !important;
  box-shadow: inset 0 0 0 1px rgba(52, 152, 219, 0.28) !important;
}

.auth-input::placeholder {
  color: var(--text-60);
}

.auth-label {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  display: block;
  text-align: left;
}

.auth-help-text {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.5rem;
  display: block;
}

.auth-btn-primary {
  width: 100%;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  transition: all 0.2s ease;
}

.auth-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.auth-btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.auth-btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-btn-outline {
  width: 100%;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.auth-btn-outline:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.auth-btn-outline:active {
  transform: translateY(0);
}

.auth-divider {
  margin: 3rem 0;
  border-top: 2px solid var(--border);
}

.auth-text-muted {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.auth-link {
  font-size: 0.875rem;
  color: var(--blue);
  text-decoration: none;
}

.auth-link:hover {
  color: var(--blue);
  text-decoration: underline;
}

.auth-checkbox {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.25rem;
  background: var(--panel-2);
  border: 2px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-checkbox:hover {
  border-color: var(--blue);
}

.auth-checkbox:checked {
  background: var(--blue);
  border-color: var(--blue);
}

.auth-checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.auth-checkbox-label {
  color: var(--text);
  font-size: 0.9375rem;
  padding-left: 0.5rem;
  cursor: pointer;
}

/* ================================
   SETTINGS PAGE
================================ */
.settings-section-title {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.settings-section-title i {
  color: var(--blue);
}

.settings-subsection-title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.settings-text {
  color: #c0c0c0;
  margin-bottom: 1rem;
}

.settings-list {
  color: #c0c0c0;
  margin-bottom: 1.5rem;
}

.settings-danger-card {
  border: 2px solid var(--danger);
}

.settings-danger-title {
  color: var(--danger);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.settings-danger-alert {
  margin-bottom: 1.5rem;
}

.settings-danger-btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.settings-modal {
  background: var(--panel);
  border: 1px solid var(--border);
}

.settings-modal-title-danger {
  color: var(--danger);
  font-weight: 600;
}

.settings-modal-text {
  color: #c0c0c0;
  margin-bottom: 1.5rem;
}

.auth-info-card {
  background: var(--panel-2);
  border: 2px solid var(--border);
}

.auth-info-card .card-body {
  padding: 2rem;
}

.auth-info-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-info-title i {
  font-size: 1.25rem;
  color: var(--blue);
}

.auth-info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-info-list li {
  margin-bottom: 0.75rem;
  padding-left: 1.75rem;
  position: relative;
  color: var(--muted);
  font-size: 0.9375rem;
}

.auth-info-list li:last-child {
  margin-bottom: 0;
}

.auth-info-list li::before {
  content: "›";
  position: absolute;
  left: 0.5rem;
  color: var(--blue);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.auth-info-footer {
  border-top: 2px solid var(--border);
  padding-top: 1rem;
  margin-top: 1rem;
}

.auth-info-text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.auth-security-warning {
  margin-bottom: 2rem;
}

.auth-security-warning i {
  font-size: 1.75rem;
  flex-shrink: 0;
}

/* Password strength indicator */
.password-strength-bar {
  width: 100%;
  height: 4px;
  background-color: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.password-strength-fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
  border-radius: 2px;
}

/* Password requirements checklist */
.password-requirements {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.password-requirement {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.password-requirement .req-icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.password-requirement.met {
  color: var(--success);
}

.password-requirement.met .req-icon {
  color: var(--success);
}

/* Auth page hero section */
.auth-hero {
  padding: 2.25rem 0 3rem;
}

/* Auth page title styling */
.auth-page-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 0.7rem;
  line-height: 1.08;
}

.auth-page-description {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--muted);
}

/* Auth form container */
.auth-container {
  max-width: 1140px;
  width: 100%;
}

/* Auth card body padding */
.auth-card-body {
  padding: 2rem;
}

/* Auth form check padding */
.auth-form-check {
  padding-left: 1.75rem;
}

/* Auth invalid token message */
.auth-invalid-token {
  padding: 2rem 0;
}

@media (max-width: 991px) {
  .auth-shell {
    gap: 1.25rem;
  }

  .auth-intro {
    max-width: 100%;
  }

  .auth-form-panel {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .auth-hero {
    padding: 1.25rem 0 2rem;
  }

  .auth-card-body {
    padding: 1.35rem;
  }

  .auth-point {
    padding: 0.75rem 0.85rem;
  }
}
.auth-invalid-token-icon {
  font-size: 4rem;
  color: var(--danger);
  display: block;
  margin-bottom: 1rem;
}

.auth-invalid-token-text {
  color: var(--text);
  margin-bottom: 2rem;
}

/* ================================
   DASHBOARD
================================ */
.dashboard-layout {
  margin-top: 0;
}

.dashboard-account-card .card-body {
  padding: 1.15rem;
}

.dashboard-profile-block {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.dashboard-profile-copy h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--white);
}

.dashboard-profile-copy p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.dashboard-meta-list {
  display: grid;
  gap: 0.5rem;
}

.dashboard-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.dashboard-info-label {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
  display: block;
}

.dashboard-info-value {
  color: var(--text);
  font-weight: 500;
}

.dashboard-premium-gold {
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
  color: #000;
  font-weight: 600;
}

.dashboard-premium-silver {
  background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
  color: #000;
  font-weight: 600;
}

.dashboard-action-card {
  display: block;
  text-align: center;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  height: 100%;
}

.dashboard-action-card:hover {
  border-color: rgba(52, 152, 219, 0.55);
}

.dashboard-action-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-action-label {
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
}

.dashboard-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(52, 152, 219, 0.35);
  color: var(--blue);
  background: rgba(52, 152, 219, 0.12);
}

.dashboard-trackers-list {
  display: grid;
  gap: 0.65rem;
}

.dashboard-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(180deg, rgba(52, 152, 219, 0.03) 0%, transparent 100%);
  border-radius: var(--radius-lg);
}

.dashboard-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: rgba(52, 152, 219, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(52, 152, 219, 0.2);
}

.dashboard-empty-icon i {
  color: var(--blue);
  width: 40px;
  height: 40px;
}

.dashboard-empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.dashboard-empty-text {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.dashboard-premium-badge {
  background: rgba(52, 152, 219, 0.15);
  color: var(--blue);
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  border: 1px solid rgba(52, 152, 219, 0.3);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.dashboard-tracker-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

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

.dashboard-tracker-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.dashboard-tracker-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dashboard-tracker-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
}

.dashboard-tracker-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.dashboard-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
}

.report-form .form-label {
  color: var(--text-80);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.7rem;
}

.report-form .form-control,
.report-form .form-select {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
}

.report-form .form-control::placeholder {
  color: var(--muted);
}

.report-form .form-control:focus,
.report-form .form-select:focus {
  border-color: rgba(231, 76, 60, 0.45);
  box-shadow: 0 0 0 0.15rem rgba(231, 76, 60, 0.15);
}

@media (max-width: 768px) {
  .dashboard-profile-block {
    align-items: flex-start;
  }

  .dashboard-tracker-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-tracker-main {
    width: 100%;
  }
  
  .dashboard-tracker-actions {
    width: 100%;
  }
  
  .dashboard-tracker-actions .btn {
    flex: 1;
  }
}

.dashboard-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  background: var(--panel-2);
  border: 3px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--blue);
}

.dashboard-divider {
  height: 2px;
  background: var(--border);
  margin: 1.5rem 0;
}

/* Modal Styles */
.modal-content-claim,
.modal-content-unclaim,
.modal-content-info {
  background: #17171a;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.player-modal {
  --bs-modal-bg: transparent;
}

.player-modal .modal-dialog {
  max-width: 560px;
}

.player-modal .modal-content {
  overflow: hidden;
}

.modal-content-claim {
  background: linear-gradient(180deg, rgba(241, 196, 15, 0.03) 0%, transparent 100%), #17171a;
}

.modal-content-unclaim {
  background: linear-gradient(180deg, rgba(231, 76, 60, 0.03) 0%, transparent 100%), #17171a;
}

.modal-content-info {
  background: linear-gradient(180deg, rgba(52, 152, 219, 0.03) 0%, transparent 100%), #17171a;
}

.modal-content-report {
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.06) 0%, transparent 100%), #17171a;
}

.modal-header-styled {
  border-bottom: 2px solid var(--border);
  padding: 1.5rem;
}

.modal-title-styled {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.3;
}

.modal-body-styled {
  padding: 1.4rem 1.55rem;
}

.modal-footer-styled {
  border-top: 2px solid var(--border);
  padding: 1rem 1.55rem;
  gap: 0.75rem;
}

.modal-intro {
  font-size: 0.92rem;
  color: var(--text-70);
  line-height: 1.55;
}

.modal-checklist {
  display: grid;
  gap: 0.35rem;
  line-height: 1.55;
}

.modal-alert-warning {
  background: rgba(241, 196, 15, 0.15);
  border: 1px solid rgba(241, 196, 15, 0.3);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 1.25rem;
  line-height: 1.6;
}

.modal-alert-warning strong {
  color: #f1c40f;
  font-weight: 600;
}

.modal-alert-danger {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 1.25rem;
  line-height: 1.6;
}

.modal-alert-danger strong {
  color: #e74c3c;
  font-weight: 600;
}

.modal-alert-info {
  background: rgba(52, 152, 219, 0.1);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 1.25rem;
  line-height: 1.6;
}

.modal-alert-info strong {
  color: #3498db;
  font-weight: 600;
}

.modal-alert-discord {
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.35);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 1rem 1.15rem;
}

.modal-inline-link {
  color: var(--white);
  text-decoration: underline;
}

.modal-copy {
  color: rgba(255, 255, 255, 0.82);
}

.modal-list {
  padding-left: 1.25rem;
}

.modal-field-label {
  color: var(--text);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

.modal-input {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%), #0f0f11;
  border: 2px solid var(--border);
  border-radius: 8px;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  color: var(--text);
}

.modal-input::placeholder {
  color: var(--muted);
  opacity: 0.9;
}

.modal-input:focus {
  border-color: rgba(52, 152, 219, 0.45);
  box-shadow: 0 0 0 0.15rem rgba(52, 152, 219, 0.15);
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%), #0f0f11;
  color: var(--text);
}

.modal-help-text {
  color: var(--muted);
}

.modal-error-alert {
  border-radius: 8px;
}

.modal-alert-icon {
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.modal-alert-warning .modal-alert-icon {
  color: #f1c40f;
}

.modal-alert-danger .modal-alert-icon {
  color: #e74c3c;
}

.modal-alert-info .modal-alert-icon {
  color: #3498db;
}

.modal-btn {
  border-radius: var(--radius-sm);
  min-height: 42px;
  padding: 0.5rem 1.2rem;
  font-weight: 700;
}

@media (max-width: 576px) {
  .player-modal .modal-dialog {
    margin: 0.7rem;
  }

  .modal-header-styled {
    padding: 1rem 1rem 0.9rem;
  }

  .modal-body-styled {
    padding: 1rem;
  }

  .modal-footer-styled {
    padding: 0.9rem 1rem;
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .modal-footer-styled .modal-btn {
    width: 100%;
  }
}

.modal-icon-large {
  font-size: 5rem;
  line-height: 1;
  display: inline-block;
}

.modal-icon-warning {
  color: #f1c40f;
}

.modal-icon-danger {
  color: #e74c3c;
}

.modal-icon-success {
  color: #50dc78;
}

/* ================================
   UTILITIES
================================ */
.container,
.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Text utilities */
.text-center { text-align: center; }
.text-muted { color: var(--muted) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* ================================
   PAGE HEADER
================================ */
.page-header {
  margin-bottom: 2rem;
}

/* Duplicate definitions removed - see lines 2112+ */

/* ================================
   LIVE INDICATOR
================================ */
.live-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 50%;
  position: relative;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.live-indicator::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 2px solid var(--success);
  border-radius: 50%;
  opacity: 0;
  animation: ping 2s ease-in-out infinite;
}

@keyframes ping {
  0% {
    opacity: 1;
    transform: scale(0.8);
  }
  80%, 100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

/* ================================
   HOMEPAGE - HERO / INTRO
================================ */
.home-intro-section {
  padding: 0;
}

.home-hero {
  padding: 2.9rem 0 2.25rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 16% 40%, rgba(52, 152, 219, 0.12) 0%, rgba(52, 152, 219, 0) 48%),
    linear-gradient(135deg, rgba(52, 152, 219, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.home-hero-layout {
  display: block;
}

.home-hero-copy {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-eyebrow i {
  width: 14px;
  height: 14px;
}

.home-hero h1 {
  font-size: clamp(1.95rem, 2.8vw, 2.5rem);
  margin-bottom: 0;
  line-height: 1.08;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.home-hero p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.52;
  margin: 0.2rem 0 0;
}

.home-hero-lead {
  max-width: 56ch;
}

.home-track-form {
  display: flex;
  margin-top: 0.9rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding: 0.32rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
}

.home-track-form input {
  flex: 1;
  min-width: 0;
  padding: 0.88rem 0.95rem;
  border: 0;
  border-radius: 10px 0 0 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.92rem;
}

.home-track-form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(52, 152, 219, 0.35);
}

.home-track-form input::placeholder {
  color: var(--text-60);
}

.track-notfound-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(230, 126, 34, 0.72);
  border-radius: 10px;
  background: linear-gradient(110deg, rgba(230, 126, 34, 0.22), rgba(230, 126, 34, 0.08));
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1), 0 8px 22px rgba(0, 0, 0, 0.16);
  color: var(--text);
}

.track-notfound-alert > svg {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.05rem;
  color: #ffb15c;
}

.track-notfound-alert strong,
.track-notfound-alert span {
  display: block;
}

.track-notfound-alert strong {
  color: var(--white);
  font-size: 0.9rem;
}

.track-notfound-alert span {
  margin-top: 0.18rem;
  font-size: 0.79rem;
  line-height: 1.4;
}

.home-track-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.88rem 1.05rem;
  border: 0;
  border-radius: 0 10px 10px 0;
  background: linear-gradient(135deg, var(--blue), #5dade2);
  color: var(--white);
  font-size: 0.87rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s ease, filter 0.2s ease;
}

.home-lookup-note {
  margin: 0.5rem 0 0;
  font-size: 0.76rem;
  color: var(--text-60);
}

.home-platform-stats {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  text-align: center;
}

.home-platform-stat {
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
}

.home-platform-stat-value {
  display: block;
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
}

.home-platform-stat-label {
  display: block;
  margin-top: 0.14rem;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-track-form button i {
  font-weight: 700;
}

.home-track-form button:hover {
  background: linear-gradient(135deg, #2f80c8, #4f9fd8);
  filter: brightness(1.02);
}

.track-submit-btn {
  padding: 0.95rem 1.2rem;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.95), rgba(69, 168, 225, 0.98));
  box-shadow: none;
  transition: none;
}

.track-submit-btn i {
  font-weight: 700;
}

.track-submit-btn span {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.track-submit-btn:hover {
  background: linear-gradient(135deg, #2f80c8, #4f9fd8);
  filter: brightness(1.03);
}

.track-submit-btn:focus-visible,
.player-actions-toggle:focus-visible {
  outline: none;
  box-shadow: none;
}

.home-overview-section {
  padding: 0.75rem 0 1.45rem;
}

.home-proof-section {
  padding: 0.35rem 0 1.25rem;
}

.home-hiscores-header {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.home-hiscores-header h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.42rem, 2.45vw, 1.95rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--white);
}

.home-hiscores-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
  max-width: 66ch;
  margin-left: auto;
  margin-right: auto;
}

.home-hiscores-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 0.75rem;
  align-items: stretch;
}

.home-hiscores-right {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  height: 100%;
}

.home-hiscores-card {
  padding: 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%),
    rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.home-hiscores-card h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--white);
}

.home-hiscores-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.home-hiscores-card-primary {
  padding: 0;
  border: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.home-hiscores-card-primary .home-hiscores-preview {
  margin-top: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 28px rgba(52, 152, 219, 0.2);
}

.home-hiscores-card-compact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  height: 100%;
}

.home-hiscores-preview {
  margin-top: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.home-hiscores-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.home-community-section {
  padding: 0.1rem 0 0.35rem;
}

.home-community-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0.75rem;
  align-items: stretch;
}

.home-community-left {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.home-community-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-community-feed-card {
  padding: 0;
  overflow: hidden;
}

.home-community-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.78rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.home-community-feed-header h3 {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.25;
}

.home-community-feed-link {
  color: var(--blue);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.home-community-feed-link:hover {
  color: var(--white);
}

.home-community-feed-body {
  min-height: 216px;
}

.home-community-feed-body .activity-item {
  padding: 0.72rem 0.86rem;
}

.home-community-feed-body .activity-item-icon {
  width: 34px;
  height: 34px;
}

.home-community-feed-body .activity-item-name {
  font-size: 0.84rem;
}

.home-community-feed-body .activity-item-time {
  font-size: 0.74rem;
}

.home-community-shot {
  padding: 0;
  border: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.home-community-shot .home-hiscores-preview {
  margin-top: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 28px rgba(52, 152, 219, 0.2);
  height: 100%;
}

.home-community-shot .home-hiscores-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-feature-header {
  max-width: 760px;
  margin-bottom: 1rem;
}

.home-feature-header h2 {
  font-size: clamp(1.34rem, 2.1vw, 1.72rem);
  color: var(--white);
  margin-bottom: 0;
}

.home-feature-card {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.02);
  height: 100%;
}

.home-feature-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(52, 152, 219, 0.12);
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.home-feature-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--white);
}

.home-feature-card p {
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.45;
  font-size: 0.84rem;
}

.home-live-section {
  padding: 0.1rem 0 1.1rem;
}

.home-live-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(135deg, rgba(52, 152, 219, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.home-live-link {
  color: var(--blue);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
}

.home-live-link:hover {
  color: var(--white);
}

.home-process-section {
  padding: 0.1rem 0 1.5rem;
}

.home-process-card {
  height: 100%;
  padding: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.home-process-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 24px;
  border-radius: 8px;
  background: rgba(52, 152, 219, 0.16);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.home-process-card h3 {
  margin: 0.65rem 0 0.3rem;
  font-size: 0.95rem;
  color: var(--white);
}

.home-process-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.home-seo-section {
  padding: 0.1rem 0 1.45rem;
}

.home-seo-card {
  height: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
}

.home-seo-card h3 {
  margin: 0 0 0.32rem;
  font-size: 0.96rem;
  color: var(--white);
}

.home-seo-card p {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.52;
}

.home-seo-card a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.home-seo-card a:hover {
  color: var(--white);
}

.home-seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.home-seo-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.18rem 0.54rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  color: var(--text-80);
}

.home-seo-links a:hover {
  border-color: rgba(52, 152, 219, 0.32);
  color: var(--white);
}

.home-cta-section {
  padding-bottom: 1.4rem;
}

.home-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.14) 0%, rgba(212, 175, 55, 0) 44%),
    rgba(255, 255, 255, 0.03);
}

.home-cta h2 {
  font-size: 1.04rem;
  margin-bottom: 0;
  color: var(--white);
}

.home-floating-leagues2-btn {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1030;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 132px;
  height: 46px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(243, 237, 65, 0.78);
  background: linear-gradient(135deg, rgba(111, 169, 57, 0.96), rgba(95, 152, 48, 0.95));
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.34), 0 0 0 3px rgba(243, 237, 65, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  animation: leagues2FloatPulse 2.2s ease-in-out infinite;
}

.home-floating-leagues2-btn:hover {
  color: var(--white);
  border-color: rgba(243, 237, 65, 0.95);
  filter: brightness(1.07);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(243, 237, 65, 0.24);
}

.home-floating-leagues2-btn:focus-visible {
  outline: 2px solid rgba(243, 237, 65, 0.92);
  outline-offset: 2px;
}

@keyframes leagues2FloatPulse {
  0%,
  100% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.34), 0 0 0 3px rgba(243, 237, 65, 0.16);
  }
  50% {
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38), 0 0 0 6px rgba(243, 237, 65, 0.24);
  }
}

@media (max-width: 991px) {
  .home-hero {
    padding: 2.2rem 0 1.8rem;
  }
}

@media (max-width: 767px) {
  .home-intro-section {
    padding-top: 0;
  }

  .home-hero {
    padding: 1.8rem 0 1.5rem;
  }

  .home-hero-copy {
    max-width: 100%;
  }

  .home-hero h1 {
    font-size: clamp(1.55rem, 8vw, 1.95rem);
  }

  .home-platform-stats {
    grid-template-columns: 1fr;
  }

  .home-hiscores-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .home-community-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .home-community-left {
    grid-template-rows: none;
    gap: 0.6rem;
  }

  .home-community-feed-body {
    min-height: 0;
  }

  .home-hiscores-right {
    grid-template-rows: none;
  }

  .home-hiscores-card {
    padding: 0.88rem;
  }

  .home-hiscores-header p {
    font-size: 0.88rem;
  }

  .home-track-form {
    flex-direction: column;
    padding: 0.4rem;
    gap: 0.45rem;
  }

  .home-track-form input {
    border-radius: 12px;
    padding: 0.95rem 0.95rem;
  }

  .home-track-form button {
    border-radius: 12px;
    width: 100%;
    padding: 0.95rem 1rem;
  }

  .home-feature-header h2 {
    font-size: 1.28rem;
  }

  .home-proof-body {
    padding: 0.8rem 0.82rem 0.9rem;
  }

  .home-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-cta .btn {
    width: 100%;
  }

  .home-proof-note {
    font-size: 0.72rem;
  }

  .home-floating-leagues2-btn {
    right: 0.7rem;
    bottom: 0.7rem;
    min-width: 118px;
    height: 40px;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
  }
}

/* ================================
   HOMEPAGE - REDESIGN
================================ */
.home-page {
  --home-gold: #d4af37;
  --home-gold-soft: rgba(212, 175, 55, 0.16);
  --home-accent: #8fc9df;
  --home-accent-strong: #62b4d1;
  --home-accent-hover: #78c4dc;
  --home-panel: rgba(14, 23, 36, 0.92);
  overflow: hidden;
  background: #0b111a;
}

.home-page .community-container {
  max-width: 1180px;
}

.home-page .home-hero {
  position: relative;
  min-height: min(640px, calc(100vh - 74px));
  display: flex;
  align-items: center;
  padding: 4.25rem 0 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(7, 12, 19, 0.68) 0%, rgba(7, 12, 19, 0.82) 52%, #0b111a 100%),
    url('/img/background.jpg') center 42% / cover no-repeat;
}

.home-page .home-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.7), transparent);
}

.home-page .home-hero-layout {
  display: block;
}

.home-page .home-hero-copy {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.home-page .home-eyebrow,
.home-section-kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  color: var(--home-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-page .home-eyebrow {
  justify-content: center;
}

.home-page .home-eyebrow i {
  width: 16px;
  height: 16px;
}

.home-page .home-hero h1 {
  max-width: 18ch;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(2.65rem, 4.5vw, 4.25rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.home-page .home-hero-lead {
  max-width: 56ch;
  margin: 1.25rem auto 0;
  color: rgba(233, 240, 248, 0.78);
  font-size: 1.05rem;
  line-height: 1.7;
}

.home-page .home-track-form {
  display: block;
  max-width: 680px;
  margin: 1.65rem auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.home-page .home-track-form > label {
  display: block;
  margin-bottom: 0.48rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
}

.home-track-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 58px;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  background: rgba(8, 14, 23, 0.88);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.home-track-control > svg {
  width: 19px;
  height: 19px;
  margin-left: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.home-page .home-track-form input {
  width: 100%;
  padding: 0.75rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 0.96rem;
}

.home-page .home-track-form input:focus {
  background: transparent;
  box-shadow: none;
}

.home-track-control:focus-within {
  border-color: rgba(121, 166, 184, 0.82);
  box-shadow: 0 0 0 3px rgba(121, 166, 184, 0.14), 0 18px 42px rgba(0, 0, 0, 0.26);
}

.home-page .home-track-form button {
  min-height: 46px;
  padding: 0 1.05rem;
  border-radius: 6px;
  background: var(--home-accent-strong);
  color: #07131b;
  font-size: 0.86rem;
  font-weight: 750;
}

.home-page .home-track-form button:hover {
  background: var(--home-accent-hover);
}

.home-page .home-track-form button svg {
  width: 17px;
  height: 17px;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.25rem;
  margin-top: 1rem;
  justify-content: center;
}

.home-hero-actions a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  text-decoration: none;
}

.home-hero-actions a:hover {
  color: #fff;
}

.home-page .home-platform-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  margin: 2.6rem auto 0;
  padding: 0;
  gap: 0;
  text-align: center;
}

.home-page .home-platform-stat {
  padding: 0 1.35rem;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: transparent;
}

.home-page .home-platform-stat:first-child {
  border-left: 0;
}

.home-page .home-platform-stat dt {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.home-page .home-platform-stat dd {
  margin: 0.2rem 0 0;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
}

.home-page .home-sponsor {
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #0b111a;
}

.home-page .home-sponsor-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  min-height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
}

.home-page .home-sponsor-banner span {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.home-page .home-sponsor-banner img {
  width: auto;
  max-width: min(100%, 560px);
  max-height: 46px;
  opacity: 0.78;
}

.home-benefits,
.home-showcase,
.home-page .home-community-section,
.home-discover,
.home-faq,
.home-page .home-cta-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.home-benefits,
.home-page .home-community-section,
.home-faq {
  background: #0b111a;
}

.home-showcase,
.home-discover,
.home-page .home-cta-section {
  border-block: 1px solid rgba(255, 255, 255, 0.07);
  background: #111a26;
}

.home-section-heading {
  max-width: 700px;
  margin-bottom: 2.2rem;
}

.home-section-heading h2,
.home-showcase-copy h2,
.home-page .home-cta h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  text-wrap: balance;
}

.home-section-heading > p:last-child,
.home-showcase-copy > p:not(.home-section-kicker) {
  max-width: 60ch;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.home-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.home-benefit {
  padding: 2rem 2rem 0 0;
}

.home-benefit + .home-benefit {
  padding-left: 2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.home-benefit > svg {
  width: 25px;
  height: 25px;
  color: var(--home-gold);
}

.home-benefit h3 {
  margin: 1rem 0 0.5rem;
  color: #fff;
  font-size: 1rem;
}

.home-benefit p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.home-showcase {
  border-block: 1px solid rgba(255, 255, 255, 0.07);
}

.home-showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.home-showcase-layout--reverse {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
}

.home-showcase-layout--secondary {
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home-showcase-layout--secondary .home-showcase-media {
  aspect-ratio: 1195 / 873;
}

.home-showcase-media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.home-showcase-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.home-check-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.6rem 0;
  padding: 0;
  list-style: none;
}

.home-check-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
}

.home-check-list svg {
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(68, 209, 122, 0.12);
  color: #58dc87;
}

.home-text-link,
.home-section-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--home-accent);
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
}

.home-text-link:hover,
.home-section-action:hover {
  color: #fff;
}

.home-text-link svg,
.home-section-action svg {
  width: 16px;
  height: 16px;
}

.home-section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  max-width: none;
}

.home-section-heading-row > div {
  max-width: 700px;
}

.home-page .home-community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-page .home-community-feed-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: var(--home-panel);
}

.home-page .home-community-feed-header {
  min-height: 58px;
  padding: 0 1rem;
}

.home-page .home-community-feed-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.home-page .home-community-feed-header h3 svg {
  width: 16px;
  height: 16px;
  color: var(--home-gold);
}

.home-page .home-community-feed-body {
  min-height: 300px;
}

.home-page .home-community-feed-body .activity-item {
  min-height: 58px;
}

.home-discover {
  border-block: 1px solid rgba(255, 255, 255, 0.07);
}

.home-discover-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.home-discover-links > a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  min-height: 88px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.home-discover-links > a:hover {
  border-color: rgba(121, 166, 184, 0.55);
  background: rgba(121, 166, 184, 0.07);
}

.home-discover-links > a > svg:first-child {
  width: 22px;
  height: 22px;
  color: var(--home-accent);
}

.home-discover-links > a > svg:last-child {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.4);
}

.home-discover-links span,
.home-discover-links strong,
.home-discover-links small {
  display: block;
}

.home-discover-links strong {
  font-size: 0.88rem;
}

.home-discover-links small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.home-faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.home-faq-list {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.home-faq-list details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.home-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  color: #fff;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.home-faq-list summary::-webkit-details-marker {
  display: none;
}

.home-faq-list summary svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--home-accent);
  transition: transform 0.2s ease;
}

.home-faq-list details[open] summary svg {
  transform: rotate(45deg);
}

.home-faq-list details p {
  max-width: 68ch;
  margin: -0.25rem 0 1.3rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.home-page .home-cta-section {
  padding-top: clamp(4rem, 8vw, 7rem);
}

.home-page .home-cta {
  min-height: 190px;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 8px;
  background:
    linear-gradient(100deg, rgba(14, 28, 45, 0.98), rgba(18, 31, 46, 0.9)),
    url('/img/background.jpg') center 58% / cover;
}

.home-page .home-cta h2 {
  max-width: 20ch;
  font-size: clamp(1.45rem, 2.8vw, 2.45rem);
}

.home-page .home-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 46px;
  border-color: var(--home-accent-strong);
  border-radius: 6px;
  background: var(--home-accent-strong);
  color: #07131b;
  font-weight: 750;
}

.home-page .home-cta .btn:hover {
  border-color: var(--home-accent-hover);
  background: var(--home-accent-hover);
  color: #07131b;
}

.home-page .home-cta .btn svg {
  width: 17px;
  height: 17px;
}

.home-page a:focus-visible,
.home-page button:focus-visible,
.home-page summary:focus-visible {
  outline: 2px solid var(--home-accent);
  outline-offset: 3px;
}

@media (max-width: 991px) {
  .home-page .home-hero {
    min-height: auto;
    padding: 4rem 0 2rem;
  }

  .home-showcase-layout {
    grid-template-columns: 1fr;
  }

  .home-showcase-layout--secondary {
    margin-top: 3rem;
    padding-top: 3rem;
  }

  .home-page .home-hero-copy {
    max-width: 700px;
  }

  .home-page .home-hero h1 {
    max-width: 14ch;
  }

  .home-discover-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .home-page .home-hero {
    padding: 3.25rem 0 1.5rem;
    background:
      linear-gradient(180deg, rgba(7, 12, 19, 0.7), rgba(7, 12, 19, 0.98) 64%),
      url('/img/background.jpg') 61% top / auto 440px no-repeat;
  }

  .home-page .home-hero-layout {
    gap: 2.25rem;
  }

  .home-page .home-hero-copy {
    margin: 0;
    text-align: left;
  }

  .home-page .home-eyebrow {
    justify-content: flex-start;
  }

  .home-page .home-hero h1,
  .home-page .home-hero-lead,
  .home-page .home-track-form {
    margin-left: 0;
    margin-right: 0;
  }

  .home-hero-actions {
    justify-content: center;
  }

  .home-page .home-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.2rem);
  }

  .home-page .home-hero-lead {
    font-size: 0.94rem;
  }

  .home-track-control {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .home-page .home-track-form button {
    grid-column: 1 / -1;
    width: 100%;
    border-radius: 6px;
  }

  .home-page .home-platform-stats {
    margin-top: 2rem;
  }

  .home-page .home-platform-stat {
    padding: 0 0.65rem;
  }

  .home-page .home-platform-stat dd {
    font-size: 1rem;
  }

  .home-page .home-platform-stat dt {
    font-size: 0.58rem;
  }

  .home-page .home-sponsor-banner {
    flex-direction: column;
    gap: 0.5rem;
  }

  .home-benefit-grid,
  .home-page .home-community-grid,
  .home-faq-layout {
    grid-template-columns: 1fr;
  }

  .home-benefit {
    padding: 1.4rem 0;
  }

  .home-benefit + .home-benefit {
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }

  .home-section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-page .home-community-feed-body {
    min-height: 0;
  }

  .home-page .home-cta {
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .home-page *::before,
  .home-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.hero-section {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(212, 175, 55, 0.05) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.hero-content {
  padding: 2rem 0;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 991px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.hero-feature i {
  color: var(--success);
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Hero Stats Preview */
.hero-stats-preview {
  padding: 1rem 0;
}

@media (max-width: 991px) {
  .hero-stats-preview {
    margin-top: 2rem;
  }
}

.stat-preview-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.stat-preview-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.stat-preview-header i {
  font-size: 1.5rem;
  color: var(--blue);
}

.stat-preview-header span {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.stat-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-preview-item {
  text-align: center;
}

.stat-preview-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.stat-preview-label {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ================================
  TRACK PAGE INTRO
================================ */
.track-intro-section {
  padding: 0 0 1.5rem;
}

.track-hero {
  padding: 2.25rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.track-hero-copy {
  max-width: 760px;
}

.track-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.track-hero-copy h1 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 0.7rem;
  line-height: 1.08;
  color: var(--white);
}

.track-hero-copy > p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0.2rem 0 1rem;
}

.track-form-shell {
  position: relative;
}

.track-home-form {
  display: flex;
  gap: 0.45rem;
  width: 100%;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.track-search-input {
  flex: 1;
  min-width: 220px;
  background: transparent !important;
  border: 1px solid transparent !important;
  color: var(--text) !important;
  border-radius: 12px !important;
  padding: 0.95rem 1rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.track-search-input:focus {
  border-color: rgba(52, 152, 219, 0.45) !important;
  box-shadow: 0 0 0 0.15rem rgba(52, 152, 219, 0.15) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.track-search-input::placeholder {
  color: var(--muted);
}

.track-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.95rem 1.35rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.track-hero-pills {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 0.95rem;
}

.track-hero-pill {
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-80);
  font-size: 0.78rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .track-home-form {
    flex-direction: column;
    padding: 0.4rem;
    gap: 0.45rem;
  }

  .track-search-btn {
    width: 100%;
    justify-content: center;
  }
}

.community-activity-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.community-activity-sort-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-80);
}

.tracker-select {
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(52, 152, 219, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%),
    rgba(20, 24, 33, 0.86);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  appearance: none;
  background-image:
    linear-gradient(135deg, rgba(52, 152, 219, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23dbeeff' opacity='0.92' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: center, right 0.75rem center;
  background-size: cover, 12px 12px;
  padding-right: 2rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.tracker-select:hover {
  border-color: rgba(52, 152, 219, 0.52);
  background-image:
    linear-gradient(135deg, rgba(52, 152, 219, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e8f4ff' opacity='0.96' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-color: rgba(20, 24, 33, 0.9);
}

.tracker-select:focus {
  border-color: rgba(52, 152, 219, 0.65);
  box-shadow: 0 0 0 0.15rem rgba(52, 152, 219, 0.2), 0 10px 24px rgba(0, 0, 0, 0.28);
  background-image:
    linear-gradient(135deg, rgba(52, 152, 219, 0.24) 0%, rgba(255, 255, 255, 0.1) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f0f8ff' opacity='1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-color: rgba(20, 24, 33, 0.92);
  color: var(--white);
}

.tracker-select option {
  background: var(--panel-2);
  color: var(--white);
}

.community-activity-sort-select {
  min-width: 170px;
  height: 32px;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  line-height: 1.2;
}

.player-feed-pagination {
  border-top: none;
  background: rgba(255, 255, 255, 0.02);
}

.community-pagination-btn {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.78rem;
  min-height: 34px;
  min-width: 82px;
}

.community-pagination-btn:hover:not(:disabled) {
  color: var(--text);
  border-color: rgba(52, 152, 219, 0.55);
  background: rgba(52, 152, 219, 0.15);
}

.community-pagination-btn:focus {
  color: var(--text);
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.2);
}

.community-pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#todays-top .leaderboard-row,
#weeks-top .leaderboard-row,
#dailyCompetitionBoard .leaderboard-row,
#weeklyCompetitionBoard .leaderboard-row {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.72rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.68rem;
}

#todays-top .leaderboard-row:last-child,
#weeks-top .leaderboard-row:last-child,
#dailyCompetitionBoard .leaderboard-row:last-child,
#weeklyCompetitionBoard .leaderboard-row:last-child {
  border-bottom: none;
}

#todays-top .leaderboard-row:hover,
#weeks-top .leaderboard-row:hover,
#dailyCompetitionBoard .leaderboard-row:hover,
#weeklyCompetitionBoard .leaderboard-row:hover {
  background: rgba(52, 152, 219, 0.08);
}

#todays-top .leaderboard-rank,
#weeks-top .leaderboard-rank,
#dailyCompetitionBoard .leaderboard-rank,
#weeklyCompetitionBoard .leaderboard-rank {
  min-width: 46px;
  font-weight: 600;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

#todays-top .leaderboard-player,
#weeks-top .leaderboard-player,
#dailyCompetitionBoard .leaderboard-player,
#weeklyCompetitionBoard .leaderboard-player {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#todays-top .leaderboard-value,
#weeks-top .leaderboard-value,
#dailyCompetitionBoard .leaderboard-value,
#weeklyCompetitionBoard .leaderboard-value {
  margin-left: auto;
  min-width: 110px;
  text-align: right;
  font-size: 0.78rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 767px) {
  .community-hero-section {
    padding-top: 1.5rem;
  }

  .community-hub-nav-grid {
    grid-template-columns: 1fr;
  }

  .community-activity-controls {
    justify-content: flex-start;
    width: 100%;
    margin-top: 0.5rem;
  }

  .community-activity-sort-select {
    min-width: 0;
    width: 100%;
  }

  #todays-top .leaderboard-row,
  #weeks-top .leaderboard-row,
  #dailyCompetitionBoard .leaderboard-row,
  #weeklyCompetitionBoard .leaderboard-row {
    gap: 0.75rem;
    padding: 0.9rem 1rem;
  }

  #todays-top .leaderboard-rank,
  #weeks-top .leaderboard-rank,
  #dailyCompetitionBoard .leaderboard-rank,
  #weeklyCompetitionBoard .leaderboard-rank {
    min-width: 46px;
    font-size: 0.82rem;
  }

  #todays-top .leaderboard-value,
  #weeks-top .leaderboard-value,
  #dailyCompetitionBoard .leaderboard-value,
  #weeklyCompetitionBoard .leaderboard-value {
    min-width: 96px;
    font-size: 0.78rem;
  }

  .community-section-head {
    align-items: flex-start;
  }
}

@media (max-width: 991px) {
  .community-cta {
    padding: 2rem;
    gap: 2rem;
    justify-content: center;
    text-align: center;
  }
  
  .community-cta-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .community-features {
    justify-content: center;
  }
}

/* ================================
   HOMEPAGE - QUICK ACTIONS
================================ */
.quick-actions-section {
  padding: 2rem 0;
}

.action-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-decoration: none;
  transition: all 0.3s;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(52, 152, 219, 0.2);
}

.action-card:hover::before {
  transform: scaleX(1);
}

.action-card-primary::before {
  background: var(--blue);
}

.action-card-success::before {
  background: var(--success);
}

.action-card-info::before {
  background: var(--rs-gold);
}

.action-card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(52, 152, 219, 0.1);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--blue);
}

.action-card-success .action-card-icon {
  background: rgba(80, 220, 120, 0.1);
  color: var(--success);
}

.action-card-info .action-card-icon {
  background: rgba(212, 175, 55, 0.1);
  color: var(--rs-gold);
}

.action-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.action-card-text {
  color: var(--muted);
  margin-bottom: 1.5rem;
  flex: 1;
  line-height: 1.6;
}

.action-card-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9375rem;
}

.action-card-success .action-card-link {
  color: var(--success);
}

.action-card-info .action-card-link {
  color: var(--rs-gold);
}

.action-card-link i {
  transition: transform 0.3s;
}

.action-card:hover .action-card-link i {
  transform: translateX(4px);
}

/* ================================
   HOMEPAGE - POPULATION CTA
================================ */
.population-cta-section {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(52, 152, 219, 0.05) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.population-cta {
  background: linear-gradient(135deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.population-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.population-cta-content {
  flex: 1;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  min-width: 300px;
}

.population-cta-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-xl);
  font-size: 2.5rem;
  color: var(--rs-gold);
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.2);
}

.population-cta-text {
  flex: 1;
}

.population-cta-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .population-cta-title {
    font-size: 1.5rem;
  }
}

.population-cta-description {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.population-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.population-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
}

.population-feature i {
  color: var(--rs-gold);
  font-size: 1.125rem;
}

.btn-population-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.125rem 2.5rem;
  background: linear-gradient(135deg, var(--rs-gold) 0%, #c99d2e 100%);
  color: #000;
  font-weight: 700;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.btn-population-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.6);
  color: #000;
}

.btn-population-cta i {
  transition: transform 0.3s;
}

.btn-population-cta:hover i {
  transform: translateX(4px);
}

@media (max-width: 991px) {
  .population-cta {
    padding: 2rem;
    gap: 2rem;
    justify-content: center;
    text-align: center;
  }
  
  .population-cta-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .population-features {
    justify-content: center;
  }
}

/* ================================
   HOMEPAGE - RECENT ACTIVITY
================================ */
.recent-activity-section {
  background: var(--panel-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}

.activity-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
}

.activity-card-header {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text);
}

.activity-card-body {
  padding: 0;
}

.activity-list {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  text-decoration: none;
  transition: all 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.activity-item:hover {
  background: rgba(52, 152, 219, 0.05);
}

.activity-item-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  font-size: 1.25rem;
}

.activity-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.activity-item-name {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.activity-item-time {
  font-size: 0.8125rem;
  color: var(--muted);
}

.activity-item-arrow {
  color: var(--muted) !important;
  font-size: 1.125rem;
  flex-shrink: 0;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
}

.activity-item:hover .activity-item-arrow {
  transform: translateX(4px);
  color: var(--blue);
}

/* ================================
   HOMEPAGE - DISCORD CTA
================================ */
.discord-section {
  padding: 3rem 0;
}

.discord-cta {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.1) 0%, rgba(88, 101, 242, 0.05) 100%);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.discord-cta-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.discord-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(88, 101, 242, 0.2);
  border-radius: var(--radius-lg);
  font-size: 2rem;
  color: var(--discord);
  flex-shrink: 0;
}

.discord-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.discord-text {
  color: var(--muted);
  margin: 0;
  font-size: 0.9375rem;
}

.btn-discord {
  background: var(--discord);
  color: var(--white);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-discord:hover {
  background: var(--discord-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(88, 101, 242, 0.3);
}

/* ================================
   POPULATION PAGE STYLES
================================ */

/* Page Header */
.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.page-description {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Section Card Headers */
.section-card-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.section-card-subtitle {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Chart Controls */
.chart-controls {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.chart-control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chart-control-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-70);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}

.chart-select {
  background: var(--panel-2);
  border: 2px solid var(--border);
  color: var(--text);
  font-size: 0.9375rem;
  padding: 0.625rem 2.5rem 0.625rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  min-width: 200px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' opacity='0.6' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 12px;
  cursor: pointer;
}

.chart-select:focus {
  background: var(--panel);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  color: var(--text);
}

.chart-select option {
  background: var(--panel);
  color: var(--text);
}

.chart-time-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  background: var(--panel-2);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
}

.chart-time-btn {
  background: transparent;
  border: none;
  color: var(--text-60);
  font-size: 0.8125rem;
  padding: 0.5rem 0.875rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.chart-time-btn:hover {
  background: rgba(52, 152, 219, 0.1);
  color: var(--blue);
}

.chart-time-btn.active {
  background: var(--blue);
  color: var(--white);
}

.chart-meta {
  font-size: 0.875rem;
  color: var(--text-60);
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.xp-progress-hero {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--xp-hero-color, rgba(212, 175, 55, 1));
  border-radius: 12px;
  background: linear-gradient(120deg, var(--xp-hero-bg, rgba(212, 175, 55, 0.2)), rgba(255, 255, 255, 0.03) 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.xp-progress-hero-icon {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  flex: 0 0 3.2rem;
  border: 1px solid var(--xp-hero-color, rgba(212, 175, 55, 1));
  border-radius: 10px;
  background: var(--xp-hero-bg, rgba(212, 175, 55, 0.2));
  box-shadow: 0 0 16px var(--xp-hero-bg, rgba(212, 175, 55, 0.2));
}

.xp-progress-hero-icon img {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.35));
}

.xp-progress-hero-copy {
  min-width: 0;
}

.xp-progress-hero-kicker {
  display: block;
  color: var(--xp-hero-color, var(--gold));
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.xp-progress-hero-copy h6 {
  margin: 0.1rem 0 0.12rem;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 750;
}

.xp-progress-hero-copy > span:last-child {
  color: var(--text-60);
  font-size: 0.78rem;
}

.gained-tab-indicator {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-left: 0.5rem;
  vertical-align: 0.1em;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.16);
  animation: gained-tab-pulse 1.8s ease-in-out infinite;
}

@keyframes gained-tab-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.16);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(46, 204, 113, 0.04);
  }
}

.gained-data-info {
  display: flex;
  grid-column: 1 / -1;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  color: var(--text-60);
  background: rgba(52, 152, 219, 0.08);
  border: 1px solid rgba(52, 152, 219, 0.28);
  border-radius: var(--radius-sm);
}

.gained-data-info > svg {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--blue);
  margin-top: 0.1rem;
}

.gained-data-info strong {
  display: block;
  color: var(--white);
  font-size: 0.9rem;
}

.gained-data-info p {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.gained-table-hint {
  margin: -0.15rem 0 0.7rem;
  color: var(--text-60);
  font-size: 0.76rem;
  line-height: 1.4;
}

/* XP Heatmap */
.xp-heatmap {
  padding: 0.5rem 0;
}

.heatmap-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(255, 255, 255, 0.1);
}

.heatmap-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(52, 152, 219, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.heatmap-empty-icon i {
  font-size: 2rem;
  color: var(--blue);
}

.heatmap-empty-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.heatmap-empty-text {
  font-size: 0.9375rem;
  color: var(--text-60);
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
  padding: 0;
}

.heatmap-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.heatmap-bar {
  width: 100%;
  height: 120px;
  border: 2px solid;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.heatmap-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  pointer-events: none;
}

.heatmap-cell:hover .heatmap-bar {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.heatmap-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.heatmap-date {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.heatmap-value {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-80);
  text-align: center;
}

@media (max-width: 768px) {
  .heatmap-grid {
    gap: 0.5rem;
  }
  
  .heatmap-bar {
    height: 80px;
  }
  
  .heatmap-label {
    font-size: 0.75rem;
  }
  
  .heatmap-date {
    font-size: 0.6875rem;
  }
  
  .heatmap-value {
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  .heatmap-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 0.375rem;
  }
  
  .heatmap-bar {
    height: 60px;
  }
  
  .heatmap-label {
    font-size: 0.625rem;
  }
  
  .heatmap-date,
  .heatmap-value {
    font-size: 0.625rem;
  }
}

/* Time Range Toggle Buttons */
.rs-time-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rs-time-toggle .btn {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.8125rem;
  padding: 0.5rem 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.rs-time-toggle .btn:hover {
  background: rgba(52, 152, 219, 0.1);
  border-color: var(--blue);
  color: var(--blue);
}

.rs-time-toggle .btn.active {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.24), rgba(52, 152, 219, 0.12));
  color: var(--white);
  border-color: rgba(52, 152, 219, 0.28);
  box-shadow: 0 6px 14px rgba(52, 152, 219, 0.12);
}

.rs-time-toggle .btn.active:hover {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.28), rgba(52, 152, 219, 0.16));
  border-color: rgba(52, 152, 219, 0.32);
}

.community-surface-card .rs-time-toggle {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(255, 255, 255, 0.02);
}

.community-surface-card .rs-time-toggle .btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-80);
}

.community-surface-card .rs-time-toggle .btn:hover {
  background: rgba(52, 152, 219, 0.1);
  border-color: rgba(52, 152, 219, 0.22);
  color: var(--white);
}

.community-surface-card .rs-time-toggle .btn.active {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.24), rgba(52, 152, 219, 0.12));
  border-color: rgba(52, 152, 219, 0.3);
  color: var(--white);
}

.community-surface-card .rs-time-toggle .btn:focus,
.community-surface-card .rs-time-toggle .btn:focus-visible {
  box-shadow: 0 0 0 0.18rem rgba(52, 152, 219, 0.14);
}

.community-surface-card .rs-time-toggle .btn:not(.active):hover {
  box-shadow: inset 0 0 0 1px rgba(52, 152, 219, 0.12);
}

.community-surface-card .rs-time-toggle .btn:focus-visible {
  box-shadow: 0 0 0 0.18rem rgba(52, 152, 219, 0.15);
}

.community-surface-card .chart-loader {
  background: transparent;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.community-surface-card .chart-shimmer {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.01) 25%, rgba(255, 255, 255, 0.045) 50%, rgba(255, 255, 255, 0.01) 75%);
}

.community-surface-card .chart-loader .rs-subtitle {
  color: var(--text-70);
}

#onlineShareBtn.btn-outline-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

#onlineShareBtn.btn-outline-secondary:hover,
#onlineShareBtn.btn-outline-secondary:focus {
  background: rgba(52, 152, 219, 0.1);
  border-color: rgba(52, 152, 219, 0.28);
  color: var(--white);
}

#onlineShareBtn.btn-outline-secondary:active {
  background: rgba(52, 152, 219, 0.14);
  border-color: rgba(52, 152, 219, 0.34);
  color: var(--white);
}

/* Live Stats */
.live-stat {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  padding: 1.25rem;
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.live-stat:hover {
  border-color: rgba(52, 152, 219, 0.34);
  transform: translateY(-1px);
}

.live-stat-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.live-stat-label {
  font-size: 0.875rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.live-stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--blue);
}

.live-stat-sub {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Trend Cards */
.trend-card {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  padding: 1.25rem;
  text-align: center;
  min-height: 140px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.trend-card:hover {
  border-color: rgba(52, 152, 219, 0.34);
  transform: translateY(-1px);
}

.trend-game {
  font-size: 0.875rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.trend-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.trend-change {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.trend-change.up {
  color: var(--success);
}

.trend-change.down {
  color: var(--danger);
}

.trend-change.neutral {
  color: var(--muted);
}

.trend-arrow {
  font-size: 1.25rem;
  line-height: 1;
}

.trend-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Average daily card layout */
.daily-average-row {
  justify-content: center;
}

.daily-average-col {
  display: flex;
}

.daily-average-card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

/* Peak Cards */
.peak-card {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  padding: 1.25rem;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.peak-card:hover {
  border-color: rgba(212, 175, 55, 0.42);
  transform: translateY(-1px);
}

.peak-title {
  font-size: 0.875rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.peak-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--rs-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.peak-unit {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}

.peak-meta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.peak-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.peak-meter {
  margin-top: 0.75rem;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.peak-meter-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* Data Freshness Indicator */
.data-freshness {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Chart Container */
.chart-container {
  position: relative;
  width: 100%;
  min-height: 400px;
}

.chart-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: transparent;
  padding: 1rem;
  z-index: 10;
  pointer-events: none;
}

.chart-shimmer {
  display: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.01) 25%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.01) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Spinners */
.spinner, .spinner-sm, .spinner-border, .spinner-border-sm {
  border: none;
  box-shadow: none;
  background-color: transparent;
  background-image: url('/img/tracker/Cooking_detail.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  animation: spin 1.2s linear infinite;
}

.spinner {
  width: 40px;
  height: 40px;
}

.spinner-sm {
  width: 24px;
  height: 24px;
}

.spinner-border {
  min-width: 32px;
  min-height: 32px;
}

.spinner-border-sm {
  width: 20px;
  height: 20px;
}

.ajax-loader {
  display: flex;
  width: 100%;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.8rem;
  padding: 2rem 1rem;
  color: rgba(220, 231, 242, 0.62);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}

.ajax-loader .spinner,
.ajax-loader .spinner-sm,
.ajax-loader .spinner-border {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 8px;
  border: 1px solid rgba(143, 201, 223, 0.3);
  border-radius: 8px;
  background-color: rgba(143, 201, 223, 0.07);
  background-size: 26px 26px;
  box-shadow: 0 0 0 5px rgba(143, 201, 223, 0.035), 0 12px 28px rgba(0, 0, 0, 0.22);
}

.ajax-loader > span:last-child,
.ajax-loader > .rs-subtitle:last-child {
  color: rgba(220, 231, 242, 0.62);
  font-size: 0.76rem;
}

.ajax-loader-compact {
  min-height: 112px;
  padding: 1.25rem 0.75rem;
}

.ajax-loader-compact .spinner,
.ajax-loader-compact .spinner-sm,
.ajax-loader-compact .spinner-border {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 6px;
  background-size: 22px 22px;
}

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

/* Support Modal & Floating Button */
.floating-support-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, var(--rs-gold) 0%, #c99d2e 100%);
  color: #000;
  border: none;
  border-radius: 50px;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
  transition: all 0.3s;
  z-index: 1000;
}

.floating-support-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.6);
}

.support-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.support-modal-backdrop.show {
  opacity: 1;
  pointer-events: all;
}

.support-modal {
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.support-modal-backdrop.show .support-modal {
  transform: scale(1);
}

.support-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.support-modal-close:hover {
  background: var(--panel-2);
  color: var(--text);
}

.support-modal-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--rs-gold);
  margin: 0 auto 1.5rem;
}

.support-modal-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 1rem;
}

.support-modal-text {
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 2rem;
}

.support-modal-footer {
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.btn-coffee {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--rs-gold) 0%, #c99d2e 100%);
  color: #000;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.0625rem;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
  width: 100%;
  justify-content: center;
}

.btn-coffee:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.6);
  color: #000;
}

.rs-data-notice {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.rs-subtitle {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ================================
   TRACK PAGE
================================ */
.track-search-card {
  position: relative;
}

.track-search-card .card-body {
  position: relative;
  padding: 2.25rem;
}

.track-search-card .loading-overlay {
  border-radius: inherit;
}

.track-search-wrapper {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.track-search-input {
  flex: 1;
  min-width: 250px;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--text) !important;
  border-radius: 12px !important;
  padding: 1rem 1.15rem;
  font-size: 1.0625rem;
  transition: all 0.2s;
}

.track-search-input:focus {
  border-color: rgba(52, 152, 219, 0.55) !important;
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.12) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.track-search-input::placeholder {
  color: var(--muted);
}

.track-search-btn {
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .track-search-btn {
    width: 100%;
    justify-content: center;
  }
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 22, 0.76);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border-radius: var(--radius-lg);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.track-form-shell .loading-overlay {
  border-radius: 16px;
}

.track-loader-card {
  width: min(420px, 100%);
  padding: 1rem 1rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(52, 152, 219, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%),
    rgba(20, 24, 33, 0.88);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  text-align: center;
}

.track-loader-orb {
  width: 42px;
  height: 42px;
  margin: 0 auto 0.58rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(52, 152, 219, 0.2);
  border: 1px solid rgba(52, 152, 219, 0.32);
  color: #d7ebff;
}

.track-loader-orb i {
  width: 18px;
  height: 18px;
}

.track-loader-kicker {
  margin: 0;
  color: var(--text-80);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.track-loader-title {
  margin: 0.3rem 0 0.2rem;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
}

.track-loader-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.track-loader-progress {
  margin-top: 0.72rem;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.track-loader-progress span {
  display: block;
  width: 32%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(52, 152, 219, 0.85), rgba(174, 220, 255, 0.95));
  animation: trackLoaderBar 1.35s ease-in-out infinite;
}

@keyframes trackLoaderBar {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(110%);
  }
  100% {
    transform: translateX(260%);
  }
}

@media (max-width: 576px) {
  .track-loader-card {
    padding: 0.9rem 0.85rem 0.85rem;
  }

  .track-loader-title {
    font-size: 0.94rem;
  }
}

.track-hero-pill {
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-80);
  font-size: 0.78rem;
  font-weight: 600;
}

.feature-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  transition: all 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.feature-card:hover {
  border-color: rgba(52, 152, 219, 0.35);
  transform: translateY(-1px);
}

.track-feature-card {
  min-height: 190px;
}

.track-mobile-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.track-mobile-toggle i {
  transition: transform 0.2s ease;
}

.track-mobile-toggle.collapsed i {
  transform: rotate(-90deg);
}

.track-mobile-features {
  display: grid;
  gap: 0.75rem;
}

.track-mobile-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.track-mobile-feature-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.track-mobile-feature-icon i {
  font-size: 1.1rem;
}

.track-mobile-feature h6 {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.2rem;
}

.track-mobile-feature p {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 767px) {
  .track-intro-section {
    padding-bottom: 1rem;
  }

  .track-hero {
    padding: 1.4rem 0 1.1rem;
  }

  .track-hero-copy > p {
    font-size: 0.96rem;
  }

  .track-feature-card {
    min-height: 0;
  }

  .track-mobile-toggle {
    padding-inline: 0.85rem;
  }

  .track-mobile-feature {
    padding: 0.8rem 0.85rem;
  }
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.feature-description {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 768px) {
  .track-home-form {
    flex-direction: column;
    padding: 0.4rem;
    gap: 0.45rem;
  }

  .track-search-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ================================
   TRACK PAGE - REDESIGN
================================ */
.track-page {
  --track-accent: #8fc9df;
  --track-accent-strong: #62b4d1;
  --track-accent-hover: #78c4dc;
  overflow: hidden;
}

.track-page .community-container {
  max-width: 1180px;
}

.track-page .track-hero {
  position: relative;
  padding: 1.25rem 0 clamp(4.5rem, 8vw, 7rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(100deg, rgba(7, 12, 19, 0.97), rgba(7, 12, 19, 0.76) 62%, rgba(7, 12, 19, 0.72)),
    linear-gradient(0deg, #0b111a, transparent 52%),
    url('/img/background.jpg') center 42% / cover no-repeat;
}

.track-page .track-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.65), transparent);
}

.track-breadcrumbs {
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
  opacity: 0.78;
}

.track-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
}

.track-page .track-hero-copy {
  max-width: 690px;
}

.track-page .track-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  color: var(--track-accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.track-page .track-eyebrow svg {
  width: 16px;
  height: 16px;
}

.track-page .track-hero-copy h1 {
  max-width: 12ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2.65rem, 5vw, 4.65rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.track-page .track-hero-copy > p:not(.track-eyebrow) {
  max-width: 58ch;
  margin: 1.2rem 0 0;
  color: rgba(233, 240, 248, 0.76);
  font-size: 1rem;
  line-height: 1.7;
}

.track-page .track-status,
.track-page .track-notfound-alert {
  margin: 1.25rem 0 0;
}

.track-page .track-status.alert {
  padding: 0.85rem 1rem;
  border-width: 1px;
  border-radius: 8px;
  font-size: 0.84rem;
}

.track-page .track-notfound-alert {
  border-radius: 8px;
}

.track-page .track-form-shell {
  position: relative;
  margin-top: 1.6rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(8, 14, 23, 0.88);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.track-player-form > label {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  font-weight: 750;
}

.track-player-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 58px;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.track-player-control:focus-within {
  border-color: rgba(143, 201, 223, 0.82);
  box-shadow: 0 0 0 3px rgba(143, 201, 223, 0.13);
}

.track-player-control > svg {
  width: 19px;
  height: 19px;
  margin-left: 0.7rem;
  color: rgba(255, 255, 255, 0.42);
}

.track-player-control input {
  min-width: 0;
  padding: 0.75rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
}

.track-player-control input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.track-player-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0 1rem;
  border: 1px solid var(--track-accent-strong);
  border-radius: 6px;
  background: var(--track-accent-strong);
  color: #07131b;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.track-player-submit:hover {
  border-color: var(--track-accent-hover);
  background: var(--track-accent-hover);
}

.track-player-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.track-player-submit svg {
  width: 17px;
  height: 17px;
}

.track-form-note {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  margin: 0.7rem 0 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.72rem;
}

.track-form-note svg {
  width: 14px;
  height: 14px;
  color: #65ce8c;
}

.track-page .track-form-shell .loading-overlay {
  border-radius: 8px;
}

.track-page .track-loader-card {
  border-radius: 8px;
  background: rgba(14, 24, 36, 0.98);
}

.track-page .track-loader-orb {
  background: rgba(98, 180, 209, 0.15);
  border-color: rgba(143, 201, 223, 0.32);
  color: var(--track-accent);
}

.track-page .track-loader-progress span {
  background: linear-gradient(90deg, var(--track-accent-strong), #b6e3f2);
}

.track-process {
  padding-left: clamp(1.5rem, 4vw, 3.5rem);
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.track-process-kicker,
.track-section-heading > p {
  margin: 0 0 0.65rem;
  color: var(--track-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.track-process h2,
.track-section-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
  text-wrap: balance;
}

.track-process ol {
  display: grid;
  gap: 0;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.track-process li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.8rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.track-process li > span {
  color: var(--rs-gold);
  font-size: 0.7rem;
  font-weight: 800;
}

.track-process strong {
  display: block;
  color: #fff;
  font-size: 0.88rem;
}

.track-process li p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.track-capabilities,
.track-faq {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.track-capabilities {
  background: #0b111a;
}

.track-section-heading {
  max-width: 650px;
  margin-bottom: 2.25rem;
}

.track-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.track-capability-grid article {
  padding: 2rem 2rem 0 0;
}

.track-capability-grid article + article {
  padding-left: 2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.11);
}

.track-capability-grid article > svg {
  width: 24px;
  height: 24px;
  color: var(--track-accent);
}

.track-capability-grid h3 {
  margin: 1rem 0 0.5rem;
  color: #fff;
  font-size: 1rem;
}

.track-capability-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.track-faq {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.015);
}

.track-faq-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr);
  align-items: start;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.track-faq-list {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.track-faq-list details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.track-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.track-faq-list summary::-webkit-details-marker {
  display: none;
}

.track-faq-list summary svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--track-accent);
  transition: transform 0.2s ease;
}

.track-faq-list details[open] summary svg {
  transform: rotate(45deg);
}

.track-faq-list details p {
  max-width: 68ch;
  margin: -0.25rem 0 1.3rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.track-page button:focus-visible,
.track-page input:focus-visible,
.track-page summary:focus-visible {
  outline: 2px solid var(--track-accent);
  outline-offset: 3px;
}

@media (max-width: 991px) {
  .track-page .track-hero {
    padding-bottom: 4rem;
  }

  .track-breadcrumbs {
    margin-bottom: 2.5rem;
  }

  .track-hero-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .track-process {
    max-width: 690px;
    padding: 1.5rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    border-left: 0;
  }
}

@media (max-width: 767px) {
  .track-page .track-hero {
    padding: 1rem 0 3.25rem;
    background:
      linear-gradient(180deg, rgba(7, 12, 19, 0.72), #0b111a 64%),
      url('/img/background.jpg') 61% top / auto 440px no-repeat;
  }

  .track-breadcrumbs {
    margin-bottom: 2rem;
  }

  .track-page .track-hero-copy h1 {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
  }

  .track-page .track-hero-copy > p:not(.track-eyebrow) {
    font-size: 0.92rem;
  }

  .track-player-control {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .track-player-submit {
    grid-column: 1 / -1;
    width: 100%;
  }

  .track-capability-grid,
  .track-faq-layout {
    grid-template-columns: 1fr;
  }

  .track-capability-grid article {
    padding: 1.4rem 0;
  }

  .track-capability-grid article + article {
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    border-left: 0;
  }
}

/* ================================
   ALERTS
================================ */
.alert {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 2px solid;
  font-size: 0.9375rem;
  line-height: 1.6;
  position: relative;
  display: block;
}

.alert i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.alert-info {
  background: rgba(52, 152, 219, 0.1);
  border-color: rgba(52, 152, 219, 0.3);
  color: var(--text);
}

.alert-info i {
  color: #3498db;
}

.alert-success {
  background: rgba(80, 220, 120, 0.1);
  border-color: rgba(80, 220, 120, 0.3);
  color: var(--text);
}

.alert-success i {
  color: #50dc78;
}

.alert-danger {
  background: rgba(231, 76, 60, 0.1);
  border-color: rgba(231, 76, 60, 0.3);
  color: var(--text);
}

.alert-danger i {
  color: #e74c3c;
}

.alert-warning {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.3);
  color: var(--text);
}

.alert-warning i {
  color: #d4af37;
}

/* Keep modal alerts compact and prevent global alert border overrides */
.player-modal .alert {
  border-width: 1px;
  border-style: solid;
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.95rem;
  font-size: 0.84rem;
  line-height: 1.5;
}

.player-modal .alert.modal-alert-warning {
  border-color: rgba(241, 196, 15, 0.3);
}

.player-modal .alert.modal-alert-danger {
  border-color: rgba(231, 76, 60, 0.3);
}

.player-modal .alert.modal-alert-info {
  border-color: rgba(52, 152, 219, 0.3);
}

.player-modal .alert.modal-alert-discord {
  border-color: rgba(88, 101, 242, 0.35);
}

.player-modal .modal-intro,
.player-modal .modal-copy,
.player-modal .modal-checklist {
  font-size: 0.84rem;
  line-height: 1.5;
}

/* ================================
   PLAYER PAGE
================================ */
.player-header {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%), rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  padding: 1.25rem 1.25rem 1.15rem;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.player-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.player-dashboard-card {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%), rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.15rem;
}

.player-dashboard-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 0.9rem;
}

.player-dashboard-shell > :only-child {
  grid-column: 1 / -1;
}

.player-dashboard-identity {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.player-dashboard-metrics {
  display: grid;
  gap: 0.75rem;
}

.player-kpi-grid-dashboard {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.player-dashboard-note {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.player-workspace {
  display: grid;
  gap: 0.9rem;
}

.player-workspace-body {
  display: grid;
  gap: 0.85rem;
}

.player-dashboard-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.player-dashboard-side {
  display: grid;
  gap: 0.85rem;
}

.player-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.player-kpi {
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
}

.player-kpi-label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.player-kpi-value {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.1;
}

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

.player-name {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.55rem 0;
  line-height: 1.05;
}

.player-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem 0.75rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

.player-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background: rgba(52, 152, 219, 0.14);
  color: var(--blue);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid rgba(52, 152, 219, 0.22);
}

.player-meta-item {
  color: var(--muted);
}

.player-meta-divider {
  color: var(--border);
}

.player-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: nowrap;
  margin-left: auto;
}

.player-actions #updateStatsBtn {
  min-width: 110px;
  padding: 0.55rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 10px;
  line-height: 1.2;
}

.player-actions #updateStatsBtn i {
  width: 14px;
  height: 14px;
}

.player-actions-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  transition: none;
}

.player-actions-toggle:hover,
.player-actions-toggle:focus,
.player-actions .dropdown.show .player-actions-toggle {
  border: 0;
  background: transparent;
  color: var(--white);
}

.player-actions-dropdown .dropdown-menu {
  min-width: 15rem;
  padding: 0.4rem;
  margin-top: 0.65rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(17, 20, 28, 0.96) 0%, rgba(14, 17, 24, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.player-actions-dropdown .dropdown-item {
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.93rem;
}

.player-actions-dropdown .dropdown-divider {
  margin: 0.35rem 0;
}

.player-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.player-notice-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(88, 101, 242, 0.14);
  border: 1px solid rgba(88, 101, 242, 0.2);
  .player-actions {
    width: 100%;
    .player-dashboard-card {
      padding: 1rem;
    }

    .player-dashboard-top {
      grid-template-columns: 1fr;
    }

    .player-kpi-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    gap: 0.5rem;
  }

  .player-actions button {
    flex: 1;
  }
}

/* Player Hero Padding */
.player-hero {
  padding: 1.5rem 0 1.1rem;
  margin-bottom: 1rem;
}

.player-page-content .card,
.player-page-content .stat-card,
.player-page-content .record-card,
.player-page-content .closest-skill-card,
.player-page-content .achievement-summary-card,
.player-page-content .milestone-card,
.player-page-content .skill-category,
.player-page-content .mastery-category {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.player-page-content .card .card-body,
.player-page-content .skill-category-content,
.player-page-content .mastery-category-content {
  background: transparent;
}

.player-page-content .card {
  border-radius: 20px;
  overflow: hidden;
}

.player-page-content .skill-category,
.player-page-content .mastery-category {
  border-radius: 20px;
  overflow: hidden;
}

.player-page-content .skill-category-header,
.player-page-content .mastery-category-header {
  background: rgba(255, 255, 255, 0.02);
}

.player-page-content .skill-category-header:hover,
.player-page-content .mastery-category-header:hover {
  background: rgba(52, 152, 219, 0.08);
}

.player-page-content .card.mb-3,
.player-page-content .card.mb-0,
.player-page-content .card {
  border-radius: 20px;
}

.player-page-content .card .card-body {
  background: transparent;
}

.player-tabs {
  display: flex;
  gap: 0.38rem;
  padding: 0.44rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%), rgba(255, 255, 255, 0.03);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: thin;
}

.player-tabs .nav-item {
  margin: 0;
}

.player-tabs .nav-link {
  padding: 0.56rem 0.92rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.015em;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 2.18rem;
}

.player-tabs .nav-link:hover {
  background: rgba(52, 152, 219, 0.12);
  color: var(--text);
  border-color: rgba(52, 152, 219, 0.22);
}

.player-tabs .nav-link.active {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.22), rgba(52, 152, 219, 0.12));
  border-color: rgba(52, 152, 219, 0.3);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(52, 152, 219, 0.14);
}

.player-tabs .nav-link i {
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .player-dashboard-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .player-kpi-grid-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-tabs {
    gap: 0.26rem;
    padding: 0.3rem;
  }

  .player-tabs .nav-link {
    padding: 0.48rem 0.72rem;
    font-size: 0.8rem;
    min-height: 2rem;
  }

  .player-actions {
    width: 100%;
    gap: 0.5rem;
    justify-content: flex-end;
  }

  .player-actions button {
    flex: 0 0 auto;
  }
}

@media (max-width: 991px) {
  .player-hero {
    padding: 1.5rem 0 1rem;
    margin-bottom: 1.5rem;
  }
}

/* Stat Cards */
.stat-card {
  background: var(--panel-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s;
  height: 100%;
}

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

.stat-card-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-card-content {
  flex: 1;
  min-width: 0;
}

.stat-card-label {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.stat-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

@media (max-width: 576px) {
  .stat-card {
    padding: 1rem;
  }
  
  .stat-card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1.25rem;
  }
  
  .stat-card-label {
    font-size: 0.75rem;
  }
  
  .stat-card-value {
    font-size: 1.25rem;
  }
}

/* Overview Stats */
.overview-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.overview-stat:last-child {
  border-bottom: none;
}

.overview-label {
  font-size: 0.9375rem;
  color: var(--muted);
  font-weight: 500;
}

.overview-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
}

/* Personal Records */
.record-card {
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s;
  height: 100%;
}

.record-card:hover {
  border: 2px solid var(--blue);
}

.record-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: var(--radius-md);
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.record-content {
  flex: 1;
  min-width: 0;
}

.record-label {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.375rem;
}

.record-value {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.record-meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

.records-loader {
  text-align: center;
  padding: 2rem 0;
}

@media (max-width: 768px) {
  .record-card {
    padding: 1rem;
  }
  
  .record-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 1.25rem;
  }
  
  .record-value {
    font-size: 1.25rem;
  }
}

/* Activity Feed */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: transparent;
  border: none;
  border-radius: 0;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.activity-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.2s ease;
}

.activity-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.activity-item:hover::before {
  background: transparent;
}

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

.activity-icon-skill {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid;
  padding: 0.5rem;
  position: relative;
  overflow: hidden;
}

.activity-icon-skill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  pointer-events: none;
}

.activity-icon-skill img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  position: relative;
  z-index: 1;
}

.achievement-icon-99 {
  background: linear-gradient(135deg, rgba(80, 220, 120, 0.15) 0%, rgba(80, 220, 120, 0.05) 100%);
  border-color: rgba(80, 220, 120, 0.5) !important;
  box-shadow: 0 0 12px rgba(80, 220, 120, 0.2);
}

.achievement-icon-120 {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.15) 0%, rgba(52, 152, 219, 0.05) 100%);
  border-color: rgba(52, 152, 219, 0.5) !important;
  box-shadow: 0 0 12px rgba(52, 152, 219, 0.2);
}

.achievement-icon-200m {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
  border-color: rgba(212, 175, 55, 0.5) !important;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

.activity-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.activity-player {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--white);
  line-height: 1.2;
}

.activity-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.activity-text {
  font-size: 0.9375rem;
  color: var(--text-70);
  line-height: 1.5;
}

.activity-text strong {
  color: var(--blue);
  font-weight: 700;
}

.activity-time {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.activity-time i {
  font-size: 0.875rem;
}

/* Player Tabs */
#leaderboardTabs {
  display: flex;
  gap: 0.38rem;
  padding: 0.44rem;
  margin-bottom: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(255, 255, 255, 0.03);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-wrap: wrap;
}

#leaderboardTabs .nav-item {
  margin: 0;
}

#leaderboardTabs .nav-link {
  padding: 0.56rem 0.92rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.015em;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 2.18rem;
}

#leaderboardTabs .nav-link:hover {
  background: rgba(52, 152, 219, 0.1);
  color: var(--text);
  border-color: rgba(52, 152, 219, 0.18);
}

#leaderboardTabs .nav-link.active {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.22), rgba(52, 152, 219, 0.12));
  border-color: rgba(52, 152, 219, 0.3);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(52, 152, 219, 0.14);
}

#leaderboardTabs .nav-link i {
  font-size: 1rem;
}

.leaderboards-info-card {
  display: flex;
  align-items: flex-start;
  gap: 0.82rem;
  padding: 0.82rem 0.9rem;
}

.leaderboards-info-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(52, 152, 219, 0.12);
  border: 1px solid rgba(52, 152, 219, 0.18);
  color: var(--blue);
}

.leaderboards-info-icon i {
  width: 16px;
  height: 16px;
}

.leaderboards-info-copy {
  min-width: 0;
}

.leaderboards-info-kicker {
  margin: 0 0 0.2rem;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.leaderboards-info-title {
  margin: 0 0 0.26rem;
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 700;
}

.leaderboards-info-text {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.84rem;
}

@media (max-width: 576px) {
  #leaderboardTabs {
    padding: 0.375rem;
  }

  #leaderboardTabs .nav-link {
    padding: 0.625rem 0.9rem;
    font-size: 0.875rem;
    flex: 1;
    justify-content: center;
  }

  #leaderboardTabs .nav-link i {
    margin-right: 0.375rem;
  }

  .leaderboards-info-card {
    padding: 0.95rem;
  }
}

/* Closest to 120 Section */
.closest-skill-card {
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  transition: all 0.2s ease;
  height: 100%;
}

.closest-skill-card:hover {
  border-color: var(--blue);
}

.closest-skill-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.closest-skill-info {
  flex: 1;
  min-width: 0;
}

.closest-skill-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--white);
  margin-bottom: 0.125rem;
}

.closest-skill-level {
  font-size: 0.8125rem;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.closest-skill-xp {
  font-size: 0.75rem;
  color: var(--text-60);
}

@media (max-width: 768px) {
  .closest-skill-card {
    padding: 0.875rem;
    gap: 0.75rem;
  }
  
  .closest-skill-icon {
    width: 40px;
    height: 40px;
  }
  
  .closest-skill-name {
    font-size: 0.875rem;
  }
}

/* Skill Categories */
.skill-category {
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
}

.skill-category:last-child {
  margin-bottom: 0;
}

.skill-category-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--panel);
  border: none;
  border-radius: 0;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0;
}

.skill-category-header:hover {
  border-color: var(--blue);
  background: var(--panel-2);
}

.skill-category-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--white);
}

.skill-category-title i {
  font-size: 1.25rem;
  color: var(--blue);
}

.skill-category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  background: rgba(52, 152, 219, 0.15);
  color: var(--blue);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0 0.5rem;
}

.skill-category-changes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  background: var(--success);
  color: var(--white);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 0.375rem;
  margin-left: 0.5rem;
  box-shadow: 0 2px 8px rgba(80, 220, 120, 0.4);
}

.skill-category-changes.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(80, 220, 120, 0.4);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(80, 220, 120, 0.6);
  }
}

.skill-category-icon {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease;
}

.skill-category-header.collapsed .skill-category-icon {
  transform: rotate(-90deg);
}

.skill-category-content {
  padding: 1.5rem;
}

@media (max-width: 576px) {
  .skill-category-header {
    padding: 0.875rem 1rem;
  }

  .skill-category-title {
    font-size: 1rem;
    gap: 0.625rem;
  }
}

/* Skills Grid */
.skill-card {
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.skill-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.skill-card-main {
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.skill-card-toggle {
  margin-left: auto;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease;
}

.skill-card-main[aria-expanded="true"] .skill-card-toggle {
  transform: rotate(180deg);
}

.skill-card-details {
  border-top: 1px solid var(--border);
}

.skill-card-details-content {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.skill-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-detail-label {
  font-size: 0.8125rem;
  color: var(--text-60);
  font-weight: 500;
}

.skill-detail-value {
  font-size: 0.875rem;
  color: var(--white);
  font-weight: 600;
}

.skill-detail-divider {
  height: 1px;
  background: var(--border);
  margin: 0.375rem 0;
}

.skill-card-icon {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.skill-card-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  object-fit: contain;
  opacity: 0.7;
  filter: saturate(0.85);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.skill-card-main:hover .skill-card-icon {
  opacity: 0.9;
  filter: saturate(1);
}

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

.skill-card-name {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--white);
  margin-bottom: 0.125rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-rank-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  white-space: nowrap;
  flex-shrink: 0;
}

.skill-rank-indicator.rank-up {
  background: var(--success);
  color: var(--white);
}

.skill-rank-indicator.rank-down {
  background: var(--danger);
  color: var(--white);
}

.skill-card-level {
  font-size: 0.875rem;
  color: var(--blue);
  font-weight: 600;
}

.skill-card-progress {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--success));
  border-radius: 4px;
  transition: width 0.3s ease;
}

.skill-progress-text {
  font-size: 0.75rem;
  color: var(--text-60);
  text-align: center;
}

/* Player Skill Tracking Dashboard */
.player-skill-tracking {
  margin-top: 1rem;
}

.skill-tracking-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  margin-bottom: 0.8rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(120deg, rgba(52, 152, 219, 0.1), rgba(255, 255, 255, 0.02));
}

.skill-tracking-kicker {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.skill-tracking-head h6 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
}

.skill-tracking-subtitle {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.player-gained-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.9rem;
}

.gains-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.gains-controls {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.period-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.period-btn.active {
  color: var(--white);
  background: rgba(52, 152, 219, 0.22);
}

.gains-timeframe {
  color: var(--text-60);
  font-size: 0.75rem;
}

.player-data-hub {
  display: grid;
  gap: 0.85rem;
}

.player-overview-grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.player-overview-right {
  display: grid;
  gap: 0.75rem;
}

.player-closest-panel {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(255, 255, 255, 0.03);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem;
}

.player-panel-head h6 {
  color: var(--white);
  letter-spacing: 0.01em;
}

.closest120-cards {
  display: grid;
  gap: 0.5rem;
}

.closest120-wrap {
  display: grid;
  gap: 0.5rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.closest120-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border: 1px solid var(--skill-row-border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(255, 255, 255, 0.03);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.68rem 0.78rem;
}

.closest120-skill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
}

.milestone-skill-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 2px solid var(--skill-chip-border, rgba(255, 255, 255, 0.1));
  background: linear-gradient(145deg, var(--skill-chip-bg, rgba(255, 255, 255, 0.05)), rgba(255, 255, 255, 0.02));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.milestone-skill-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.96;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.closest120-copy {
  min-width: 0;
}

.closest120-skill-name {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.15;
}

.closest120-meta {
  color: var(--blue);
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.1;
}

.closest120-remaining {
  color: var(--text-60);
  font-size: 0.77rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.closest120-progress {
  --closest-progress: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(rgba(52, 152, 219, 0.95) calc(var(--closest-progress) * 1%), rgba(255, 255, 255, 0.16) 0);
  position: relative;
  flex-shrink: 0;
}

.closest120-progress::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: rgba(10, 12, 16, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.closest120-progress span {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.closest120-empty {
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.8rem;
  font-size: 0.85rem;
}

.player-overview-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.player-overview-kpi {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.5rem 0.6rem;
  display: grid;
  gap: 0.15rem;
}

.player-overview-kpi-label {
  color: var(--text-60);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.player-overview-kpi-value {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

.player-data-meta-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.player-data-meta-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
  padding: 0.55rem 0.65rem;
  display: grid;
  gap: 0.16rem;
}

.player-data-meta-label {
  color: var(--text-60);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.player-data-meta-value {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.gains-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.gains-summary-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
  padding: 0.55rem 0.65rem;
  display: grid;
  gap: 0.2rem;
}

.gains-summary-label {
  color: var(--text-60);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gains-summary-value {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

.gains-summary-value.gain-up {
  color: var(--success);
}

.gains-summary-value.gain-down {
  color: var(--danger);
}

.gains-summary-value.gain-flat {
  color: var(--text-60);
}

.gains-table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(10, 12, 16, 0.26);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  overflow-x: auto;
}

.gains-table {
  margin: 0;
}

.player-data-table {
  margin: 0;
  --bs-table-bg: transparent;
  --bs-table-accent-bg: transparent;
  color: var(--text);
  border-collapse: collapse;
  border-spacing: 0;
}

.player-data-table > :not(caption) > * > * {
  background: transparent;
  box-shadow: none !important;
}

.gained-skill-table > :not(caption) > * > * {
  box-shadow: none !important;
}

.player-data-table thead th {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-70);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.58rem 0.72rem;
  position: sticky;
  top: 0;
  z-index: 1;
}

.player-data-table tbody td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 0.88rem;
  padding: 0.56rem 0.72rem;
  vertical-align: middle;
}

.player-data-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.018);
}

.player-data-table tbody tr:hover td {
  background: rgba(52, 152, 219, 0.08);
}

.player-data-table tbody tr:last-child td {
  border-bottom: 0;
}

.gains-table thead th {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-70);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.55rem 0.7rem;
  position: sticky;
  top: 0;
  z-index: 1;
}

.gains-table tbody td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 0.88rem;
  padding: 0.55rem 0.7rem;
  vertical-align: middle;
}

.gains-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.01);
}

.gains-table tbody tr:hover td {
  background: rgba(52, 152, 219, 0.06);
}

.gains-table tbody tr:last-child td {
  border-bottom: 0;
}

.player-current-panel {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(255, 255, 255, 0.03);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem;
}

.player-current-head h6 {
  color: var(--white);
  letter-spacing: 0.01em;
}

.player-current-subtitle {
  color: var(--text-60);
  font-size: 0.78rem;
}

.current-skills-table tbody td {
  font-size: 0.88rem;
}

.skill-name-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.skill-icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  opacity: 0.9;
  flex-shrink: 0;
}

.skill-name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-refresh-icon {
  width: 18px;
  height: 18px;
}

.player-refresh-icon--spinning {
  animation: player-refresh-spin 0.9s linear infinite;
}

@keyframes player-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 991px) {
  .player-overview-grid {
    grid-template-columns: 1fr;
  }

  .player-overview-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-data-meta-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .player-data-meta-row {
    grid-template-columns: 1fr;
  }

  .player-overview-kpis {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }

  .closest120-progress {
    width: 42px;
    height: 42px;
  }

  .closest120-progress span {
    font-size: 0.58rem;
  }

  .gains-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-closest-panel,
  .player-current-panel {
    padding: 0.55rem;
  }

  .gains-table thead th,
  .gains-table tbody td,
  .player-data-table thead th,
  .player-data-table tbody td {
    padding: 0.5rem 0.55rem;
  }

  .skill-name-cell {
    gap: 0.4rem;
  }

  .skill-icon-img {
    width: 14px;
    height: 14px;
  }
}

.skills-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: start;
}

.skill-category.skill-category-dashboard {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  align-self: start;
}

.skill-category.skill-category-dashboard .skill-category-header {
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.015);
}

.skill-category.skill-category-dashboard .skill-category-header:hover {
  background: rgba(52, 152, 219, 0.1);
}

.skill-category.skill-category-dashboard .skill-category-title {
  font-size: 0.95rem;
  gap: 0.55rem;
  min-width: 0;
}

.skill-category.skill-category-dashboard .skill-category-title i {
  font-size: 0.9rem;
}

.skill-category.skill-category-dashboard .skill-category-content {
  padding: 0.9rem;
}

.skill-category.skill-category-dashboard .skill-card {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.skill-category.skill-category-dashboard .skill-card:hover {
  border-color: rgba(52, 152, 219, 0.35);
  box-shadow: none;
}

.skill-category.skill-category-dashboard .skill-card-main {
  padding: 0.95rem;
  gap: 0.75rem;
}

.skill-category.skill-category-dashboard .skill-card-header {
  gap: 0.65rem;
}

.skill-category.skill-category-dashboard .skill-card-icon {
  width: 34px;
  height: 34px;
}

.skill-category.skill-category-dashboard .skill-card-name {
  font-size: 0.9rem;
  line-height: 1.25;
  min-width: 0;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.skill-category.skill-category-dashboard .skill-card-info {
  min-width: 0;
}

.skill-category.skill-category-dashboard .skill-card-toggle {
  font-size: 0.88rem;
}

.skill-category.skill-category-dashboard .skill-rank-indicator {
  max-width: 100%;
}

.skill-category.skill-category-dashboard .skill-card-level {
  font-size: 0.8rem;
}

.skill-category.skill-category-dashboard .skill-card-details {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.skill-category.skill-category-dashboard .skill-card-details-content {
  padding: 0.85rem 0.95rem;
}

.skill-category.skill-category-dashboard .skill-progress-bar {
  height: 6px;
}

.skill-category.skill-category-dashboard .skill-progress-text {
  font-size: 0.72rem;
}

.skill-category.skill-category-dashboard .skill-detail-row-core {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
}

.skill-category.skill-category-dashboard .skill-detail-divider {
  margin: 0.45rem 0;
  background: rgba(255, 255, 255, 0.08);
}

.skill-category.skill-category-dashboard .skill-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.skill-category.skill-category-dashboard .skill-metric-item {
  display: grid;
  gap: 0.25rem;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.skill-category.skill-category-dashboard .skill-detail-value {
  font-size: 0.84rem;
  font-weight: 700;
}

.skill-category.skill-category-dashboard .skill-detail-value.gain-up {
  color: var(--success);
}

.skill-category.skill-category-dashboard .skill-detail-value.gain-down {
  color: var(--danger);
}

.skill-category.skill-category-dashboard .skill-detail-value.gain-flat {
  color: var(--text-60);
}

.skill-category.skill-category-dashboard .skill-metric-item .skill-detail-label {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 576px) {
  .skill-category.skill-category-dashboard .skill-detail-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .gains-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skills-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .player-gained-panel {
    padding: 0.75rem;
  }

  .gains-summary-grid {
    grid-template-columns: 1fr;
  }

  .gains-table thead th,
  .gains-table tbody td {
    padding: 0.5rem 0.55rem;
    font-size: 0.78rem;
  }

  .skill-tracking-head {
    padding: 0.9rem;
  }

  .skill-tracking-head h6 {
    font-size: 0.95rem;
  }

  .skill-tracking-subtitle {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .skill-card-main {
    padding: 1rem;
  }
  
  .skill-card-details-content {
    padding: 0.875rem 1rem;
  }
  
  .skill-card-icon {
    width: 44px;
    height: 44px;
  }
  
  .skill-card-name {
    font-size: 1rem;
  }
}

/* ================================
   ACHIEVEMENTS TAB
================================ */
.achievements-modern-tab {
  display: grid;
  gap: 0.75rem;
}

.achievements-modern-tab .player-achievement-section.mb-2 { margin-bottom: 0 !important; }

.player-achievement-section {
  display: grid;
  gap: 0.5rem;
}

.player-achievement-layout {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.player-achievement-head h6 {
  color: var(--white);
  letter-spacing: 0.01em;
}

.mastery-legend {
  font-size: 0.84rem;
}

.nearest-achievements-list {
  display: grid;
  gap: 0.5rem;
}

.nearest-achievement-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 0.42rem 0.65rem;
  border: 1px solid var(--skill-row-border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(255, 255, 255, 0.03);
  box-shadow: none;
  padding: 0.72rem;
}

.nearest-achievement-rank {
  display: grid;
  width: 24px;
  height: 24px;
  grid-row: span 2;
  place-items: center;
  border: 1px solid rgba(143, 201, 223, 0.22);
  border-radius: 5px;
  color: #8fc9df;
  font-size: 0.65rem;
  font-weight: 800;
}

.nearest-achievement-skill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.nearest-achievement-copy {
  min-width: 0;
}

.nearest-achievement-title {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nearest-achievement-left {
  color: var(--text-60);
  font-size: 0.77rem;
}

.nearest-achievement-left strong { color: #dbeaf0; font-weight: 750; }

.nearest-achievement-progress {
  --nearest-progress: 0;
  grid-column: 2;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
}

.nearest-achievement-progress::before {
  content: none;
}

.nearest-achievement-progress-fill {
  display: block;
  width: calc(var(--nearest-progress) * 1%);
  height: 100%;
  border-radius: inherit;
  background: #62b4d1;
}

.nearest-achievement-meta {
  display: flex;
  grid-column: 2;
  justify-content: space-between;
  color: rgba(220, 231, 242, 0.38);
  font-size: 0.6rem;
}

.achievement-progress-list {
  display: grid;
  gap: 0.5rem;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.player-achievement-card {
  background: #111a26 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 7px;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.player-achievement-card .card-body {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 1rem;
}

.player-page-content .card.player-achievement-card,
.player-page-content .card.player-achievement-card.mb-0,
.player-page-content .card.player-achievement-card.mb-3 {
  background: #111a26 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.player-page-content .card.player-achievement-card .card-body {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Achievement Summary Cards */
.achievement-summary-card {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.68rem 0.62rem;
  text-align: center;
  transition: all 0.2s ease;
}

.achievement-summary-card:hover {
  border-color: rgba(52, 152, 219, 0.32);
  background: transparent;
  box-shadow: none;
}

.achievement-summary-icon {
  font-size: 1.3rem;
  color: var(--rs-gold);
  margin-bottom: 0.35rem;
}

.achievement-summary-value {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.08rem;
  line-height: 1.1;
}

.achievement-summary-label {
  font-size: 0.74rem;
  color: var(--text-60);
  font-weight: 600;
  line-height: 1.15;
}

/* Milestone Cards */
.milestone-card {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.85rem;
  text-align: center;
  transition: all 0.2s ease;
  cursor: help;
}

.milestone-card:hover {
  border-color: rgba(52, 152, 219, 0.32);
  background: transparent;
  box-shadow: none;
}

.milestone-card.achieved {
  border-color: var(--success);
  background: transparent;
}

.milestone-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-80);
  margin-bottom: 0.5rem;
}

.milestone-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.milestone-card.achieved .milestone-value {
  color: var(--success);
}

.leagues2-milestones-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.leagues2-milestone-card {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.75rem 0.8rem;
  text-align: left;
}

.leagues2-milestone-card.achieved {
  border-color: var(--success);
}

.leagues2-milestone-tier {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-70);
}

.leagues2-milestone-target {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--white);
}

.leagues2-milestone-state {
  font-size: 0.78rem;
  color: var(--text-60);
}

.leagues2-milestone-card.achieved .leagues2-milestone-state {
  color: var(--success);
}

.leagues2-kpi-delta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.leagues2-delta-up {
  color: #9ce76e;
}

.leagues2-delta-down {
  color: #ff8a76;
}

.leagues2-delta-flat {
  color: rgba(255, 255, 255, 0.62);
}

/* ================================
   LEAGUES II THEME (SCOPED)
================================ */
.leagues2-theme-shell {
  --blue: #6fa939;
  --darkblue: #3a6120;
  --rs-gold: #f3ed41;
  --success: #9ce76e;
  --danger: #f0764f;
  --text: #f4f6e9;
  --muted: #c7d0af;
  position: relative;
  isolation: isolate;
}

.leagues2-theme-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(145deg, rgba(22, 18, 12, 0.9) 0%, rgba(17, 24, 12, 0.78) 45%, rgba(12, 16, 9, 0.92) 100%),
    url('/img/leagues_background.jpg') center top / cover no-repeat fixed;
}

.leagues2-theme-shell .track-hero,
.leagues2-theme-shell .home-hero,
.leagues2-theme-shell .hero-section.community-hero-section {
  background:
    radial-gradient(circle at 80% 20%, rgba(243, 237, 65, 0.13) 0%, rgba(243, 237, 65, 0) 35%),
    radial-gradient(circle at 15% 40%, rgba(63, 125, 43, 0.25) 0%, rgba(63, 125, 43, 0) 45%),
    rgba(14, 18, 11, 0.72);
  border-bottom-color: rgba(243, 237, 65, 0.2);
}

.leagues2-theme-shell .player-dashboard-card,
.leagues2-theme-shell .player-overview-kpi,
.leagues2-theme-shell .player-current-panel,
.leagues2-theme-shell .feature-card,
.leagues2-theme-shell .track-form-shell,
.leagues2-theme-shell .leagues2-milestone-card {
  border-color: rgba(243, 237, 65, 0.2);
  background: linear-gradient(145deg, rgba(20, 29, 15, 0.78) 0%, rgba(33, 25, 14, 0.72) 100%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.leagues2-theme-shell .player-overview-kpi-label,
.leagues2-theme-shell .player-current-subtitle,
.leagues2-theme-shell .feature-description,
.leagues2-theme-shell .player-meta-item,
.leagues2-theme-shell .page-description {
  color: var(--muted);
}

.leagues2-theme-shell .player-overview-kpi-value,
.leagues2-theme-shell .player-name,
.leagues2-theme-shell h3,
.leagues2-theme-shell h6,
.leagues2-theme-shell .feature-title,
.leagues2-theme-shell .player-badge,
.leagues2-theme-shell .player-data-table thead th {
  color: var(--text);
}

.leagues2-theme-shell .btn-primary,
.leagues2-theme-shell .track-submit-btn,
.leagues2-theme-shell .home-track-form button {
  background: linear-gradient(135deg, #5f9830, #86be4e);
  border-color: rgba(243, 237, 65, 0.24);
  color: #f6f7ee;
}

.leagues2-theme-shell .btn-primary:hover,
.leagues2-theme-shell .track-submit-btn:hover,
.leagues2-theme-shell .home-track-form button:hover {
  background: linear-gradient(135deg, #548b29, #7eb648);
}

.leagues2-theme-shell .home-track-form {
  border-color: rgba(243, 237, 65, 0.22);
  background: linear-gradient(120deg, rgba(31, 44, 22, 0.45), rgba(40, 30, 18, 0.42));
}

.leagues2-theme-shell .home-track-form input {
  background: rgba(18, 25, 14, 0.7);
  color: #f1f3e8;
}

.leagues2-theme-shell .home-track-form input::placeholder {
  color: rgba(235, 240, 221, 0.62);
}

.leagues2-theme-shell .player-data-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

.leagues2-theme-shell .player-data-table tbody tr:hover td {
  background: rgba(243, 237, 65, 0.08);
}

.leagues2-theme-shell .leagues2-milestone-card.achieved {
  border-color: rgba(156, 231, 110, 0.65);
  background: linear-gradient(145deg, rgba(18, 41, 16, 0.9), rgba(30, 44, 19, 0.78));
}

.leagues2-theme-shell .leagues2-milestone-tier {
  color: rgba(243, 237, 65, 0.88);
}

.leagues2-theme-shell .leagues2-milestone-target {
  color: #f4f6e9;
}

.leagues2-theme-shell .leagues2-podium-row td {
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: 1rem;
}

.leagues2-theme-shell .leagues2-podium-row a {
  color: #f7f8ed;
  font-size: 1.05rem;
  font-weight: 800;
}

.leagues2-theme-shell .leagues2-podium-row td:nth-child(3) {
  font-size: 1.1rem;
  font-weight: 800;
}

.leagues2-theme-shell .leagues2-podium-row--1 {
  background:
    radial-gradient(circle at 12% 50%, rgba(243, 237, 65, 0.24), rgba(243, 237, 65, 0) 30%),
    linear-gradient(90deg, rgba(243, 237, 65, 0.28), rgba(243, 237, 65, 0.06)) !important;
  box-shadow: inset 0 2px 0 rgba(243, 237, 65, 0.7), inset 0 -2px 0 rgba(243, 237, 65, 0.4), 0 0 28px rgba(243, 237, 65, 0.12);
  transform: scale(1.012);
  position: relative;
  z-index: 2;
}

.leagues2-theme-shell .leagues2-podium-row--1 td:nth-child(3) {
  color: #f3ed41;
}

.leagues2-theme-shell .leagues2-podium-row--2 {
  background: linear-gradient(90deg, rgba(220, 226, 222, 0.2), rgba(220, 226, 222, 0.04)) !important;
  box-shadow: inset 0 1px 0 rgba(220, 226, 222, 0.32), inset 0 -1px 0 rgba(220, 226, 222, 0.18);
}

.leagues2-theme-shell .leagues2-podium-row--2 td:nth-child(3) {
  color: #dce2de;
}

.leagues2-theme-shell .leagues2-podium-row--3 {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.22), rgba(205, 127, 50, 0.04)) !important;
  box-shadow: inset 0 1px 0 rgba(205, 127, 50, 0.36), inset 0 -1px 0 rgba(205, 127, 50, 0.2);
}

.leagues2-theme-shell .leagues2-podium-row--3 td:nth-child(3) {
  color: #e4a061;
}

.leagues2-rank-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 4.8rem;
}

.leagues2-podium-row--1 .leagues2-rank-mark,
.leagues2-podium-row--2 .leagues2-rank-mark,
.leagues2-podium-row--3 .leagues2-rank-mark {
  min-height: 34px;
  padding: 0.25rem 0.55rem 0.25rem 0.35rem;
  border-radius: 999px;
}

.leagues2-podium-row--1 .leagues2-rank-mark {
  background: linear-gradient(135deg, #fff58a, #d4b72d);
  color: #3f3508;
  box-shadow: 0 4px 14px rgba(243, 237, 65, 0.28);
}

.leagues2-podium-row--2 .leagues2-rank-mark {
  background: linear-gradient(135deg, #f5f8f5, #aeb9b5);
  color: #29312f;
}

.leagues2-podium-row--3 .leagues2-rank-mark {
  background: linear-gradient(135deg, #f0b477, #a95c25);
  color: #351b0d;
}

.leagues2-podium-row--1 .leagues2-podium-medal {
  color: #5d4b09;
}

.leagues2-podium-row--2 .leagues2-podium-medal {
  color: #45504b;
}

.leagues2-podium-row--3 .leagues2-podium-medal {
  color: #5a2d12;
}

.leagues2-podium-medal {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

@media (max-width: 576px) {
  .leagues2-theme-shell .leagues2-podium-row--1 {
    transform: none;
  }

  .leagues2-theme-shell .leagues2-podium-row td {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }
}

@media (max-width: 576px) {
  .leagues2-milestones-grid {
    grid-template-columns: 1fr;
  }
}

/* Skill Mastery Bars */
.skill-mastery-bar {
  display: grid;
  grid-template-columns: minmax(140px, 190px) minmax(0, 1fr);
  gap: 0.6rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.9rem 1rem;
  margin-bottom: 0;
  transition: all 0.2s ease;
}

.skill-mastery-bar:hover {
  border-color: rgba(52, 152, 219, 0.28);
  box-shadow: none;
}

.skill-mastery-bar:last-child {
  margin-bottom: 0;
}

.skill-mastery-skill {
  min-width: 0;
}

.skill-mastery-right {
  min-width: 0;
}

.skill-mastery-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--white);
}

.skill-mastery-level {
  display: block;
  text-align: right;
  margin-bottom: 0.35rem;
  font-size: 0.77rem;
  color: var(--text-60);
  font-weight: 500;
}

.skill-icon-sm {
  width: 24px;
  height: 24px;
  opacity: 0.8;
}

.mastery-progress {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  overflow: visible;
  margin: 0 10px 0 0;
}

.mastery-progress-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mastery-diamond {
  position: absolute;
  width: 28px;
  height: 28px;
  background: rgba(20, 26, 36, 0.88);
  border: 2px solid rgba(154, 194, 228, 0.42);
  transform: rotate(45deg);
  top: 50%;
  margin-top: -14px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.36), 0 2px 7px rgba(0, 0, 0, 0.24);
}

.mastery-diamond-text {
  transform: rotate(-45deg);
  font-size: 0.66rem;
  font-weight: 700;
  color: rgba(213, 229, 242, 0.86);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.38);
  white-space: nowrap;
  line-height: 1;
}

.mastery-diamond.achieved .mastery-diamond-text {
  color: var(--white);
}

.mastery-diamond.achieved {
  background: linear-gradient(135deg, rgba(76, 199, 112, 0.88), rgba(52, 174, 96, 0.88));
  border-color: rgba(98, 214, 133, 0.75);
  box-shadow: 0 0 5px rgba(80, 220, 120, 0.28);
}

.mastery-diamond.level-200m .mastery-diamond-text {
  font-size: 0.52rem;
  letter-spacing: 0.01em;
}

.mastery-diamond.level-99 {
  left: 33.33%;
  margin-left: -14px;
}

.mastery-diamond.level-120 {
  left: 66.66%;
  margin-left: -14px;
}

.mastery-diamond.level-200m {
  right: 0;
  left: auto;
  margin-left: 0;
  margin-right: -14px;
}

/* Mastery Category Styles */
.mastery-category {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.mastery-category-header {
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mastery-category-header:hover {
  border-color: rgba(52, 152, 219, 0.22);
  background: rgba(52, 152, 219, 0.08);
}

.mastery-category-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
}

.mastery-category-title i {
  font-size: 1rem;
  color: var(--blue);
}

.mastery-category-header .mastery-category-icon {
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.mastery-category-header:not(.collapsed) i {
  transform: rotate(180deg);
}

.mastery-category-content {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .player-achievement-layout {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .nearest-achievement-item {
    padding: 0.66rem 0.74rem;
  }

  .nearest-achievement-progress {
    width: 42px;
    height: 42px;
  }

  .skill-mastery-bar {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  
  .skill-mastery-level {
    text-align: left;
    margin-bottom: 0.45rem;
    font-size: 0.75rem;
  }

  .mastery-progress {
    margin-right: 8px;
  }
}

.achievement-hover-tooltip {
  position: fixed;
  z-index: 1085;
  max-width: 260px;
  padding: 0.5rem 0.62rem;
  border-radius: 10px;
  border: 1px solid rgba(160, 205, 240, 0.35);
  background: linear-gradient(145deg, rgba(13, 18, 28, 0.96), rgba(16, 24, 36, 0.93));
  color: rgba(232, 242, 252, 0.98);
  font-size: 0.76rem;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.achievement-hover-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.player-gained-tab {
  display: grid;
  gap: 0.75rem;
}

.player-gained-layout {
  display: grid;
  grid-template-columns: minmax(360px, 440px) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.player-gained-left,
.player-gained-right {
  display: grid;
  gap: 0.6rem;
}

.player-gained-panel {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(255, 255, 255, 0.03);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem;
}

.player-gained-chart-block {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.65rem;
}

.player-gained-heatmap-block {
  padding-top: 0.5rem;
}

.player-gained-calculator-block {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
}

.player-gained-calculator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.player-gained-calculator-field {
  min-width: 0;
}

.player-gained-calculator-field .chart-control-label {
  display: block;
  margin-bottom: 0.35rem;
}

.player-plan-target-toggle {
  display: inline-flex;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.18rem;
}

.player-plan-target-option {
  position: relative;
  margin: 0;
}

.player-plan-target-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.player-plan-target-option span {
  display: inline-block;
  min-width: 64px;
  text-align: center;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.player-plan-target-option input:checked + span {
  background: rgba(52, 152, 219, 0.2);
  color: var(--white);
}

.player-gained-calculator-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.player-gained-calculator-help a {
  color: #9cd3ff;
  font-size: 0.82rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.player-gained-calculator-status {
  font-size: 0.78rem;
  color: var(--muted);
}

.player-gained-calculator-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.player-gained-calculator-result {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.55rem 0.62rem;
  display: grid;
  gap: 0.18rem;
}

.player-gained-calculator-result span {
  font-size: 0.74rem;
  color: var(--muted);
}

.player-gained-calculator-result strong {
  font-size: 0.92rem;
  color: var(--white);
}

.player-gained-calculator-breakdown {
  font-size: 0.76rem;
  color: rgba(214, 228, 242, 0.86);
}

.player-gained-panel .gains-table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(10, 12, 16, 0.26);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gained-skill-table tbody tr {
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.gained-skill-table tbody tr:hover td {
  background: rgba(52, 152, 219, 0.08);
}

.gained-skill-table tbody tr.is-active td {
  background: rgba(52, 152, 219, 0.16);
  color: var(--white);
}

.gained-skill-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.018);
}

.gained-skill-table tbody tr.is-active:nth-child(even) td,
.gained-skill-table tbody tr.is-active:hover td {
  background: rgba(52, 152, 219, 0.16);
}

.gained-skill-table .skill-name-cell {
  gap: 0.48rem;
}

.gained-skill-table .skill-icon-img {
  width: 18px;
  height: 18px;
}

.gained-overall-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.08));
  color: rgba(250, 236, 182, 0.96);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.player-gained-panel .chart-control-label {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--text-60);
}

.player-gained-panel .chart-select {
  min-width: 210px;
  font-size: 0.86rem;
  padding: 0.52rem 2.2rem 0.52rem 0.72rem;
}

.player-gained-panel .chart-select:focus {
  border-color: rgba(52, 152, 219, 0.45);
  box-shadow: 0 0 0 0.15rem rgba(52, 152, 219, 0.15);
}

.player-gained-panel .chart-time-toggle {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%), rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  padding: 0.2rem;
  gap: 0.3rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.player-gained-panel .chart-time-btn {
  padding: 0.4rem 0.62rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}

.player-gained-panel .chart-time-btn:hover {
  background: rgba(52, 152, 219, 0.12);
  color: var(--text);
  border-color: rgba(52, 152, 219, 0.22);
}

.player-gained-panel .chart-time-btn.active {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.22), rgba(52, 152, 219, 0.12));
  border-color: rgba(52, 152, 219, 0.3);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(52, 152, 219, 0.14);
}

@media (max-width: 992px) {
  .player-gained-layout {
    grid-template-columns: 1fr;
  }

  .player-gained-calculator-grid,
  .player-gained-calculator-results {
    grid-template-columns: 1fr;
  }
}

.player-activity-tab {
  display: grid;
  gap: 0.7rem;
}

.player-activity-tab h6 {
  color: var(--white);
  letter-spacing: 0.01em;
}

.player-page-content .card.player-activity-card,
.player-page-content .card.player-activity-card.mb-0,
.player-page-content .card.player-activity-card.mb-3 {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.player-page-content .card.player-activity-card .card-body {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 1rem;
}

.player-activity-controls {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.player-activity-control {
  min-width: 190px;
  flex: 1;
}

.player-activity-control-label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--text-60);
  text-transform: uppercase;
  font-weight: 700;
}

.player-activity-select {
  font-size: 0.86rem;
  padding: 0.5rem 2.1rem 0.5rem 0.7rem;
}

/* Shared form vibe aligned to player tab navigation */
.player-page-content .tracker-select,
.community-activity-sort-select.tracker-select {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.player-page-content select.tracker-select,
.community-activity-sort-select.tracker-select {
  appearance: none;
  background-image:
    linear-gradient(135deg, rgba(52, 152, 219, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23dbeeff' opacity='0.92' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: center, right 0.75rem center;
  background-size: cover, 12px 12px;
  padding-right: 2rem;
}

.player-page-content input.tracker-select,
.player-page-content textarea.tracker-select {
  background-image: linear-gradient(135deg, rgba(52, 152, 219, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding-right: 0.75rem;
}

.player-page-content .tracker-select:hover,
.community-activity-sort-select.tracker-select:hover {
  border-color: rgba(52, 152, 219, 0.22);
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.03);
}

.player-page-content select.tracker-select:hover,
.community-activity-sort-select.tracker-select:hover {
  background-image:
    linear-gradient(135deg, rgba(52, 152, 219, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ecf7ff' opacity='0.96' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.player-page-content input.tracker-select:hover,
.player-page-content textarea.tracker-select:hover {
  background-image: linear-gradient(135deg, rgba(52, 152, 219, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
}

.player-page-content .tracker-select:focus,
.community-activity-sort-select.tracker-select:focus {
  border-color: rgba(52, 152, 219, 0.3);
  color: var(--white);
  box-shadow: 0 0 0 0.15rem rgba(52, 152, 219, 0.15), 0 8px 18px rgba(52, 152, 219, 0.14);
  background-color: rgba(255, 255, 255, 0.03);
}

.player-page-content select.tracker-select:focus,
.community-activity-sort-select.tracker-select:focus {
  background-image:
    linear-gradient(135deg, rgba(52, 152, 219, 0.22) 0%, rgba(52, 152, 219, 0.12) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f6fbff' opacity='1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.player-page-content input.tracker-select:focus,
.player-page-content textarea.tracker-select:focus {
  background-image: linear-gradient(135deg, rgba(52, 152, 219, 0.22) 0%, rgba(52, 152, 219, 0.12) 100%);
}

.player-page-content .tracker-select option,
.community-activity-sort-select.tracker-select option {
  background: var(--panel-2);
  color: var(--white);
}

.player-activity-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding-top: 0.15rem;
}

.player-activity-page-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.42rem 0.7rem;
}

.player-activity-page-btn:hover:not(:disabled) {
  background: rgba(52, 152, 219, 0.16);
  border-color: rgba(52, 152, 219, 0.45);
}

.player-activity-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.player-activity-page-info {
  color: var(--text-60);
  font-size: 0.8rem;
}

.player-activity-list {
  display: grid;
  gap: 0.5rem;
}

.player-activity-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(255, 255, 255, 0.03);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.68rem 0.82rem;
}

.player-activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.player-activity-body {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.player-activity-line {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-activity-line strong {
  color: var(--blue);
}

.player-activity-time {
  color: var(--text-60);
  font-size: 0.75rem;
  line-height: 1.1;
}

.player-activity-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0.24rem 0.55rem;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .player-activity-row {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 0.58rem 0.68rem;
  }

  .player-activity-badge {
    grid-column: 2;
    justify-self: start;
    margin-top: 0.15rem;
  }
}

/* ================================
   FOOTER
================================ */
.app-footer {
  background: #111a26;
  border-top: 1px solid rgba(143, 201, 223, 0.13);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.16);
  padding: 1rem 0;
  margin-top: auto;
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.4fr) minmax(180px, 0.8fr);
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 0.45rem 0;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
  color: #edf6fc;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-brand-link svg {
  width: 15px;
  height: 15px;
  color: #8fc9df;
}

.footer-copy,
.footer-tagline {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

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

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.42rem;
  flex-wrap: wrap;
  color: rgba(220, 231, 242, 0.3);
  text-align: right;
}

.footer-meta a {
  color: var(--muted);
  font-size: 0.75rem;
  text-decoration: none;
}

.footer-meta a:hover {
  color: #8fc9df;
}

.footer-meta .footer-tagline {
  flex-basis: 100%;
}

.footer-separator {
  color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 767px) {
  .app-footer {
    padding: 0.9rem 0;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 0.15rem 0;
    text-align: center;
  }

  .footer-links {
    gap: 0.4rem;
  }

  .footer-separator {
    display: none;
  }

  .footer-meta {
    justify-content: center;
    text-align: center;
  }
}

/* Legal pages */
.legal-page {
  min-height: 70vh;
  background: #0b111a;
  color: rgba(220, 231, 242, 0.72);
}

.legal-container {
  max-width: 920px;
}

.legal-hero {
  padding: 2rem 0 2.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 15% 0%, rgba(98, 180, 209, 0.1), transparent 36%), #0d1520;
}

.legal-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1.4rem 0 0.55rem;
  color: #8fc9df;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-eyebrow svg {
  width: 16px;
  height: 16px;
}

.legal-hero h1 {
  margin: 0;
  color: #f4f8fb;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 850;
}

.legal-summary {
  max-width: 640px;
  margin: 0.75rem 0 0;
  color: rgba(220, 231, 242, 0.62);
  line-height: 1.65;
}

.legal-updated {
  margin: 1rem 0 0;
  color: rgba(220, 231, 242, 0.4);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.legal-content-wrap {
  padding-top: 2rem;
  padding-bottom: 3.5rem;
}

.legal-document {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: #111a26;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.legal-document section {
  margin-bottom: 2.4rem !important;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.legal-document section:last-of-type {
  margin-bottom: 1.5rem !important;
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-document h2 {
  margin-bottom: 1rem !important;
  color: #eaf4f8 !important;
  font-size: 1.08rem !important;
  font-weight: 800;
}

.legal-document h3 {
  color: #bcd8e4;
  font-size: 0.88rem !important;
  font-weight: 800;
}

.legal-document p,
.legal-document li {
  color: rgba(220, 231, 242, 0.66);
  font-size: 0.86rem;
  line-height: 1.75;
}

.legal-document strong {
  color: #e3edf3;
}

.legal-document a {
  color: #8fc9df;
}

.legal-document .alert-info {
  margin: 0;
  border: 1px solid rgba(98, 180, 209, 0.22);
  border-radius: 6px;
  background: rgba(98, 180, 209, 0.06);
  color: rgba(220, 231, 242, 0.72);
}

/* Existing player dialogs */
.player-modal:not(.first-track-modal) .modal-content {
  border: 1px solid rgba(143, 201, 223, 0.2);
  border-radius: 8px;
  background: #111a26;
  color: #dce7f2;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.46);
}

.player-modal:not(.first-track-modal) .modal-header-styled {
  min-height: 68px;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.player-modal:not(.first-track-modal) .modal-title-styled {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #f4f8fb;
  font-size: 1.05rem;
}

.player-modal:not(.first-track-modal) .modal-title-styled svg {
  width: 19px;
  height: 19px;
  color: #8fc9df;
}

.player-modal:not(.first-track-modal) .modal-body-styled {
  padding: 1.2rem;
}

.player-modal:not(.first-track-modal) .modal-intro {
  color: rgba(220, 231, 242, 0.62) !important;
  text-align: left;
}

.player-modal:not(.first-track-modal) .alert {
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(220, 231, 242, 0.72);
  font-size: 0.8rem;
}

.player-modal:not(.first-track-modal) .modal-alert-warning {
  border-color: rgba(222, 185, 92, 0.25);
}

.player-modal:not(.first-track-modal) .modal-alert-danger {
  border-color: rgba(218, 104, 104, 0.26);
}

.player-modal:not(.first-track-modal) .modal-alert-info,
.player-modal:not(.first-track-modal) .modal-alert-discord {
  border-color: rgba(98, 180, 209, 0.22);
}

.player-modal:not(.first-track-modal) .modal-alert-warning strong {
  color: #e1c576;
}

.player-modal:not(.first-track-modal) .modal-alert-danger strong {
  color: #ef9a9a;
}

.player-modal:not(.first-track-modal) .modal-alert-info strong {
  color: #9bd5e8;
}

.player-modal:not(.first-track-modal) .modal-input {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  background: #0b111a;
  color: #edf6fc;
}

.player-modal:not(.first-track-modal) .modal-input:focus {
  border-color: #62b4d1;
  background: #0b111a;
  box-shadow: 0 0 0 3px rgba(98, 180, 209, 0.12);
}

.player-modal:not(.first-track-modal) .modal-footer-styled {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 1rem 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  gap: 0.55rem;
}

.player-modal:not(.first-track-modal) .modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: 100%;
  border-radius: 6px;
  font-size: 0.76rem;
}

.player-modal:not(.first-track-modal) .btn-success,
.player-modal:not(.first-track-modal) .btn-primary {
  border-color: #62b4d1;
  background: #62b4d1;
  color: #07131b;
}

.player-modal:not(.first-track-modal) .btn-secondary {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
  color: #edf6fc;
}

.player-modal:not(.first-track-modal) .btn-danger {
  border-color: rgba(218, 104, 104, 0.4);
  background: #b94f57;
  color: #fff;
}

@media (max-width: 575px) {
  .legal-hero {
    padding: 1.4rem 0 1.7rem;
  }

  .legal-content-wrap {
    padding-top: 1rem;
    padding-bottom: 2rem;
  }

  .legal-document {
    padding: 1.1rem;
  }

  .player-modal:not(.first-track-modal) .modal-footer-styled {
    grid-template-columns: 1fr;
  }
}

/* ================================
   ACHIEVEMENTS PAGE
================================ */
.achievements-header {
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.achievements-header-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.achievements-header-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.05) 100%);
  border: 2px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.achievements-header-icon i {
  font-size: 2.5rem;
  color: var(--rs-gold);
}

.achievements-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.achievements-subtitle {
  font-size: 1rem;
  color: var(--text-60);
  margin: 0;
}

.achievements-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.achievements-feed .activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  text-decoration: none;
  transition: all 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
}

.achievements-feed .activity-item:last-child {
  border-bottom: none;
}

.achievements-feed .activity-item:hover {
  background: rgba(52, 152, 219, 0.08);
}

.achievements-feed .activity-item-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.achievements-feed .activity-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.achievements-feed .activity-item-name {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.achievements-feed .activity-item-detail {
  font-size: 0.8125rem;
  color: var(--muted);
}

.achievements-feed .activity-item-time {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.achievements-feed .activity-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.achievements-feed .activity-item-arrow {
  color: var(--muted) !important;
  font-size: 1.125rem;
  flex-shrink: 0;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
}

.achievements-feed .activity-item:hover .activity-item-arrow {
  transform: translateX(4px);
  color: var(--blue) !important;
}

@media (max-width: 768px) {
  .achievements-header {
    padding: 1.5rem;
  }
  
  .achievements-header-content {
    gap: 1rem;
  }
  
  .achievements-header-icon {
    width: 64px;
    height: 64px;
  }
  
  .achievements-header-icon i {
    font-size: 2rem;
  }
  
  .achievements-title {
    font-size: 1.5rem;
  }
  
  .achievements-subtitle {
    font-size: 0.875rem;
  }
  
  .achievements-feed .activity-item {
    padding: 1rem;
  }
  
  .achievements-feed .activity-badge {
    font-size: 0.6875rem;
    padding: 0.2rem 0.5rem;
  }
}

/* ================================
   DROPDOWN MENUS
================================ */
.dropdown-menu {
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  margin-top: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.dropdown-item {
  color: var(--text);
  border-radius: 6px;
  padding: 0.625rem 1rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(52, 152, 219, 0.1);
  color: var(--blue);
}

.dropdown-item:active {
  background: rgba(52, 152, 219, 0.15);
  color: var(--blue);
}

.dropdown-item:disabled {
  color: var(--text-70);
  opacity: 1;
}

.dropdown-divider {
  border-color: var(--border);
  margin: 0.5rem 0;
}

/* Celebration Animations */
@keyframes trophy-bounce {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.05);
  }
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-100%) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(400px) rotate(720deg);
    opacity: 0;
  }
}

.confetti {
  position: absolute;
  width: 24px;
  height: 24px;
  animation: confetti-fall 3s ease-in infinite;
  opacity: 0.9;
}

.confetti:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}

.confetti:nth-child(2) {
  left: 20%;
  animation-delay: 0.2s;
}

.confetti:nth-child(3) {
  left: 30%;
  animation-delay: 0.4s;
}

.confetti:nth-child(4) {
  left: 40%;
  animation-delay: 0.6s;
}

.confetti:nth-child(5) {
  left: 50%;
  animation-delay: 0.8s;
}

.confetti:nth-child(6) {
  left: 60%;
  animation-delay: 1s;
}

.confetti:nth-child(7) {
  left: 70%;
  animation-delay: 1.2s;
}

.confetti:nth-child(8) {
  left: 80%;
  animation-delay: 1.4s;
}

.confetti:nth-child(9) {
  left: 90%;
  animation-delay: 1.6s;
}

.confetti:nth-child(10) {
  left: 15%;
  animation-delay: 1.8s;
}

.confetti:nth-child(11) {
  left: 25%;
  animation-delay: 2s;
}

.confetti:nth-child(12) {
  left: 85%;
  animation-delay: 2.2s;
}

/* ================================
  LEADERBOARDS
================================ */

.leaderboard-badge {
  display: inline-block;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  color: #6c757d;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}

.leaderboard-badge-img {
  width: 18px;
  height: 18px;
  margin-left: 0.5rem;
  vertical-align: middle;
  display: inline-block;
}

.leaderboard-name-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  margin: 0 6px;
}

.leaderboard-filter-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-80);
  border-radius: 10px;
  min-height: 36px;
  padding: 0.42rem 0.62rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.leaderboard-filter-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.leaderboard-filter-btn.active,
.leaderboard-filter-btn:active {
  background: rgba(52, 152, 219, 0.14);
  border-color: rgba(52, 152, 219, 0.32);
  color: var(--white);
}

.leaderboard-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.26rem 0.46rem;
  border-radius: 10px;
  font-size: 0.74rem;
}

.leaderboard-type-icon {
  width: 0.85rem;
  height: 0.85rem;
}

.leaderboard-type-badge.type-normal {
  background: rgba(80, 220, 120, 0.12);
  color: #6fe28f;
  border: 1px solid rgba(80, 220, 120, 0.28);
}

.leaderboard-type-badge.type-skiller {
  background: rgba(52, 152, 219, 0.12);
  color: #5dade2;
  border: 1px solid rgba(52, 152, 219, 0.28);
}

.leaderboard-type-badge.type-ironman {
  background: rgba(192, 192, 192, 0.14);
  color: #d7d7d7;
  border: 1px solid rgba(192, 192, 192, 0.28);
}

.leaderboard-type-badge.type-hardcore {
  background: rgba(231, 76, 60, 0.14);
  color: #ff8679;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.leaderboard-value {
  min-width: 130px;
  text-align: right;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--success);
}

.leaderboard-value.with-date {
  min-width: 190px;
}

.leaderboard-date {
  font-size: 0.8rem;
  color: #8b949e;
  margin-top: 0.25rem;
}

.leaderboard-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--panel-2);
}

.leaderboard-pagination button {
  padding: 0.5rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.leaderboard-pagination button:hover:not(:disabled) {
  background: var(--blue);
  border-color: var(--blue);
}

.leaderboard-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.leaderboard-pagination .page-info {
  color: var(--muted);
  font-size: 0.9rem;
}

.card-hover-outline {
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-hover-outline:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(52, 152, 219, 0.35);
}

/* ================================
   404 PAGE
================================ */
.error-404-hero {
  padding: 3rem 0 2.5rem;
}

.error-404-eyebrow {
  color: var(--muted);
}

.error-404-eyebrow-text {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.error-404-title {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.error-404-desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto;
}

.error-404-section {
  max-width: 1200px;
  margin-top: 1.5rem;
}

.error-404-card-body {
  padding: 2.25rem;
}

.error-404-card-body-sm {
  padding: 1.75rem;
}

.error-404-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--panel-2);
}

.error-404-icon {
  font-size: 2.25rem !important;
  color: var(--blue) !important;
}

.error-404-card-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--muted);
}

.error-404-card-text {
  color: var(--muted);
}

.error-404-link-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.error-404-link-icon {
  color: var(--blue);
}
/* ================================
   CUSTOMIZE PAGE
================================ */

/* Custom toggle switch styling */
.customize-toggle {
  background-color: var(--border) !important;
  border: 2px solid var(--border) !important;
  position: relative;
  transition: all 0.3s ease;
}

.customize-toggle:checked {
  background-color: var(--rs-gold) !important;
  border-color: var(--rs-gold) !important;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.customize-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25) !important;
  border-color: var(--rs-gold) !important;
}

.customize-toggle:hover {
  border-color: var(--rs-gold);
}

/* Icon position button group */
.btn-check:checked + label.btn {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: var(--white) !important;
}

.btn-group label.btn:hover {
  background: rgba(52, 152, 219, 0.1) !important;
  border-color: var(--blue) !important;
  color: var(--blue) !important;
}

.customize-preview-container {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(52, 152, 219, 0.05), transparent);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.customize-preview-name {
  font-size: 2rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.customize-preview-icon {
  font-size: 2rem;
  display: inline-block;
}

.customize-option {
  background: var(--panel-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.customize-option:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.customize-option.active {
  border-color: var(--success);
  background: rgba(80, 220, 120, 0.05);
  box-shadow: 0 4px 12px rgba(80, 220, 120, 0.3);
}

.customize-option-preview {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.customize-option-label {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}

.customize-option.active .customize-option-label {
  color: var(--success);
}

/* ================================
   NAME EFFECTS
================================ */

/* None Effect */
.effect-none {
  color: var(--text);
}

/* Rainbow Effect */
.effect-rainbow {
  background: linear-gradient(90deg, 
    #ff0000, #ff7f00, #ffff00, #00ff00, 
    #0000ff, #4b0082, #9400d3
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow-flow 3s linear infinite;
}

@keyframes rainbow-flow {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Glow Effect */
.effect-glow {
  color: #3498db;
  text-shadow: 
    0 0 10px rgba(52, 152, 219, 0.8),
    0 0 20px rgba(52, 152, 219, 0.6),
    0 0 30px rgba(52, 152, 219, 0.4);
  animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { 
    text-shadow: 
      0 0 10px rgba(52, 152, 219, 0.8),
      0 0 20px rgba(52, 152, 219, 0.6),
      0 0 30px rgba(52, 152, 219, 0.4);
  }
  50% { 
    text-shadow: 
      0 0 15px rgba(52, 152, 219, 1),
      0 0 30px rgba(52, 152, 219, 0.8),
      0 0 45px rgba(52, 152, 219, 0.6);
  }
}

/* Sparkle Effect */
.effect-sparkle {
  color: #ffd700;
  position: relative;
  animation: sparkle-shimmer 1.5s ease-in-out infinite;
}

@keyframes sparkle-shimmer {
  0%, 100% { 
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    filter: brightness(1);
  }
  50% { 
    text-shadow: 0 0 15px rgba(255, 215, 0, 1);
    filter: brightness(1.3);
  }
}

/* Fire Effect */
.effect-fire {
  background: linear-gradient(180deg, #ff6b35, #f7931e, #ffd700);
  background-size: 100% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fire-flicker 2s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

@keyframes fire-flicker {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 0% 100%; }
}

/* Ice Effect */
.effect-ice {
  color: #7dd3fc;
  text-shadow: 
    0 0 10px rgba(125, 211, 252, 0.8),
    0 0 20px rgba(125, 211, 252, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.3);
  animation: ice-freeze 3s ease-in-out infinite;
}

@keyframes ice-freeze {
  0%, 100% { 
    filter: brightness(1);
    text-shadow: 
      0 0 10px rgba(125, 211, 252, 0.8),
      0 0 20px rgba(125, 211, 252, 0.5);
  }
  50% { 
    filter: brightness(1.2);
    text-shadow: 
      0 0 15px rgba(125, 211, 252, 1),
      0 0 30px rgba(125, 211, 252, 0.7);
  }
}

/* Shadow Effect */
.effect-shadow {
  color: var(--text);
  text-shadow: 
    2px 2px 0px #9b59b6,
    4px 4px 0px rgba(155, 89, 182, 0.7),
    6px 6px 0px rgba(155, 89, 182, 0.4);
  animation: shadow-shift 2s ease-in-out infinite;
}

@keyframes shadow-shift {
  0%, 100% {
    text-shadow: 
      2px 2px 0px #9b59b6,
      4px 4px 0px rgba(155, 89, 182, 0.7),
      6px 6px 0px rgba(155, 89, 182, 0.4);
  }
  50% {
    text-shadow: 
      3px 3px 0px #9b59b6,
      6px 6px 0px rgba(155, 89, 182, 0.7),
      9px 9px 0px rgba(155, 89, 182, 0.4);
  }
}

/* Gold Effect */
.effect-gold {
  background: linear-gradient(135deg, #ffd700, #ffed4e, #d4af37, #ffd700);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-shine 3s linear infinite;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

@keyframes gold-shine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Confetti Effect */
.effect-confetti {
  position: relative;
  color: var(--text);
  font-weight: 700;
  animation: confetti-float 3s ease-in-out infinite;
}

.effect-confetti::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: 
    radial-gradient(circle, #ff6b6b 2px, transparent 2px),
    radial-gradient(circle, #4ecdc4 2px, transparent 2px),
    radial-gradient(circle, #ffe66d 2px, transparent 2px),
    radial-gradient(circle, #a8e6cf 2px, transparent 2px),
    radial-gradient(circle, #ff8b94 2px, transparent 2px);
  background-size: 20px 20px, 25px 25px, 18px 18px, 22px 22px, 24px 24px;
  background-position: 0 0, 10px 10px, 5px 15px, 15px 5px, 8px 8px;
  opacity: 0.6;
  z-index: -1;
  animation: confetti-move 4s linear infinite;
}

@keyframes confetti-move {
  0% { background-position: 0 0, 10px 10px, 5px 15px, 15px 5px, 8px 8px; }
  100% { background-position: 0 50px, 10px 60px, 5px 65px, 15px 55px, 8px 58px; }
}

@keyframes confetti-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

/* Neon Effect */
.effect-neon {
  color: #00ff88;
  text-shadow: 
    0 0 5px #00ff88,
    0 0 10px #00ff88,
    0 0 20px #00ff88,
    0 0 40px #00ff88,
    0 0 80px #00ff88;
  animation: neon-flicker 1.5s infinite alternate;
}

@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow: 
      0 0 5px #00ff88,
      0 0 10px #00ff88,
      0 0 20px #00ff88,
      0 0 40px #00ff88,
      0 0 80px #00ff88;
  }
  20%, 24%, 55% {
    text-shadow: none;
  }
}

/* Toxic Effect */
.effect-toxic {
  background: linear-gradient(90deg, #39ff14, #00ff00, #32cd32, #228b22);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: toxic-pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(57, 255, 20, 0.5));
}

@keyframes toxic-pulse {
  0%, 100% { 
    background-position: 0% center;
    filter: drop-shadow(0 0 10px rgba(57, 255, 20, 0.5));
  }
  50% { 
    background-position: 100% center;
    filter: drop-shadow(0 0 20px rgba(57, 255, 20, 0.8));
  }
}

/* Blood Effect */
.effect-blood {
  background: linear-gradient(180deg, #8b0000, #dc143c, #ff0000);
  background-size: 100% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: blood-drip 3s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(139, 0, 0, 0.8));
}

@keyframes blood-drip {
  0%, 100% { 
    background-position: 0% 0%;
    filter: drop-shadow(0 2px 4px rgba(139, 0, 0, 0.8));
  }
  50% { 
    background-position: 0% 100%;
    filter: drop-shadow(0 4px 8px rgba(220, 20, 60, 0.9));
  }
}

/* Cosmic Effect */
.effect-cosmic {
  background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #4facfe);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: cosmic-wave 4s linear infinite;
  text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

@keyframes cosmic-wave {
  0% { background-position: 0% center; }
  100% { background-position: 300% center; }
}

/* Ocean Effect */
.effect-ocean {
  background: linear-gradient(90deg, #1e3a8a, #3b82f6, #06b6d4, #0ea5e9);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ocean-flow 3s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.6));
}

@keyframes ocean-flow {
  0%, 100% { 
    background-position: 0% center;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.6));
  }
  50% { 
    background-position: 100% center;
    filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.8));
  }
}

/* Leaderboard player name link styles */
.leaderboard-player a {
  text-decoration: none !important;
  color: #e6e6e6 !important;
}

.leaderboard-player a:hover {
  opacity: 0.8;
}

/* Effect styles inside leaderboard links */
.leaderboard-player a .effect-none {
  color: #e6e6e6 !important;
}

.leaderboard-player a .effect-glow {
  color: var(--white) !important;
}

.leaderboard-player a .effect-sparkle {
  color: var(--white) !important;
}

.leaderboard-player a .effect-shadow {
  color: var(--white) !important;
}

.leaderboard-player a .effect-neon {
  color: #00ff88 !important;
}

.leaderboard-player a .effect-confetti {
  color: #e6e6e6 !important;
}

.leaderboard-player a .effect-rainbow,
.leaderboard-player a .effect-fire,
.leaderboard-player a .effect-ice,
.leaderboard-player a .effect-gold,
.leaderboard-player a .effect-toxic,
.leaderboard-player a .effect-blood,
.leaderboard-player a .effect-cosmic,
.leaderboard-player a .effect-ocean {
  -webkit-text-fill-color: transparent !important;
}

/* Activity feed player name styles */
.activity-item-name strong [class*='effect-'] {
  font-weight: 700;
}

.activity-item-name .effect-none {
  color: inherit;
}

.activity-item-name .effect-glow {
  color: var(--white) !important;
}

.activity-item-name .effect-sparkle {
  color: var(--white) !important;
}

.activity-item-name .effect-shadow {
  color: var(--white) !important;
}

.activity-item-name .effect-neon {
  color: #00ff88 !important;
}

.activity-item-name .effect-confetti {
  color: inherit;
}

.activity-item-name .effect-rainbow,
.activity-item-name .effect-fire,
.activity-item-name .effect-ice,
.activity-item-name .effect-gold,
.activity-item-name .effect-toxic,
.activity-item-name .effect-blood,
.activity-item-name .effect-cosmic,
.activity-item-name .effect-ocean {
  -webkit-text-fill-color: transparent !important;
}

/* Zaros Effect (Ancient Purple/Cyan) */
.effect-zaros {
  background: linear-gradient(90deg, #6b2d5c, #9b4dca, #00bcd4, #6b2d5c);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: zaros-ancient 4s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(155, 77, 202, 0.7));
}

@keyframes zaros-ancient {
  0%, 100% { 
    background-position: 0% center;
    filter: drop-shadow(0 0 12px rgba(155, 77, 202, 0.7));
  }
  50% { 
    background-position: 100% center;
    filter: drop-shadow(0 0 20px rgba(0, 188, 212, 0.8));
  }
}

/* Saradomin Effect (Holy Blue/White) */
.effect-saradomin {
  background: linear-gradient(90deg, #ffffff, #4fc3f7, #81d4fa, #ffffff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: saradomin-holy 3s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(79, 195, 247, 0.8));
}

@keyframes saradomin-holy {
  0%, 100% { 
    background-position: 0% center;
    filter: drop-shadow(0 0 15px rgba(79, 195, 247, 0.8));
  }
  50% { 
    background-position: 100% center;
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.9));
  }
}

/* Zamorak Effect (Demonic Red/Black) */
.effect-zamorak {
  background: linear-gradient(180deg, #ff0000, #8b0000, #4a0000, #ff0000);
  background-size: 100% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: zamorak-demonic 3.5s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(139, 0, 0, 0.9));
}

@keyframes zamorak-demonic {
  0%, 100% { 
    background-position: 0% 0%;
    filter: drop-shadow(0 0 15px rgba(139, 0, 0, 0.9));
  }
  50% { 
    background-position: 0% 100%;
    filter: drop-shadow(0 0 25px rgba(255, 0, 0, 1));
  }
}

/* Guthix Effect (Nature Green/Brown) */
.effect-guthix {
  background: linear-gradient(90deg, #2e7d32, #66bb6a, #8d6e63, #4caf50);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: guthix-nature 4s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(76, 175, 80, 0.7));
}

@keyframes guthix-nature {
  0%, 100% { 
    background-position: 0% center;
    filter: drop-shadow(0 0 10px rgba(76, 175, 80, 0.7));
  }
  50% { 
    background-position: 100% center;
    filter: drop-shadow(0 0 18px rgba(141, 110, 99, 0.6));
  }
}

/* Dragonstone Effect (Royal Purple/Red Gem) */
.effect-dragonstone {
  background: linear-gradient(135deg, #9c27b0, #e91e63, #f06292, #ba68c8);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: dragonstone-gem 3s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(156, 39, 176, 0.8));
}

@keyframes dragonstone-gem {
  0%, 100% { 
    background-position: 0% 0%;
    filter: drop-shadow(0 0 15px rgba(156, 39, 176, 0.8));
  }
  50% { 
    background-position: 100% 100%;
    filter: drop-shadow(0 0 22px rgba(233, 30, 99, 0.9));
  }
}

/* Rune Effect (Magic Blue Shimmer) */
.effect-rune {
  background: linear-gradient(90deg, #00e5ff, #2196f3, #64b5f6, #00e5ff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rune-magic 2.5s linear infinite;
  filter: drop-shadow(0 0 12px rgba(33, 150, 243, 0.8));
}

@keyframes rune-magic {
  0% { 
    background-position: 0% center;
    filter: drop-shadow(0 0 12px rgba(33, 150, 243, 0.8));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 1));
  }
  100% { 
    background-position: 200% center;
    filter: drop-shadow(0 0 12px rgba(33, 150, 243, 0.8));
  }
}

/* Corrupted Effect (Dark Purple Decay) */
.effect-corrupted {
  background: linear-gradient(180deg, #4a148c, #7b1fa2, #311b92, #4a148c);
  background-size: 100% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: corrupted-decay 4s ease-in-out infinite;
  filter: drop-shadow(0 2px 8px rgba(74, 20, 140, 0.8));
}

@keyframes corrupted-decay {
  0%, 100% { 
    background-position: 0% 0%;
    filter: drop-shadow(0 2px 8px rgba(74, 20, 140, 0.8));
  }
  50% { 
    background-position: 0% 100%;
    filter: drop-shadow(0 4px 15px rgba(123, 31, 162, 0.9));
  }
}

/* Venom Effect (Sickly Green Drips) */
.effect-venom {
  background: linear-gradient(180deg, #7cb342, #9ccc65, #33691e, #558b2f);
  background-size: 100% 250%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: venom-drip 3.5s ease-in-out infinite;
  filter: drop-shadow(0 3px 10px rgba(85, 139, 47, 0.7));
}

@keyframes venom-drip {
  0%, 100% { 
    background-position: 0% 0%;
    filter: drop-shadow(0 3px 10px rgba(85, 139, 47, 0.7));
  }
  50% { 
    background-position: 0% 100%;
    filter: drop-shadow(0 5px 15px rgba(156, 204, 101, 0.9));
  }
}

/* Cursed Effect (Dark Red/Black Smoke) */
.effect-cursed {
  background: linear-gradient(90deg, #1a0000, #660000, #330000, #990000, #1a0000);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: cursed-smoke 4s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(102, 0, 0, 0.9));
}

@keyframes cursed-smoke {
  0%, 100% { 
    background-position: 0% center;
    filter: drop-shadow(0 0 12px rgba(102, 0, 0, 0.9));
  }
  50% { 
    background-position: 100% center;
    filter: drop-shadow(0 0 20px rgba(153, 0, 0, 1));
  }
}

/* Abyssal Effect (Dark Void) */
.effect-abyssal {
  background: linear-gradient(90deg, #0d47a1, #1a237e, #000051, #1a237e, #0d47a1);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: abyssal-void 5s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(26, 35, 126, 0.8));
}

@keyframes abyssal-void {
  0%, 100% { 
    background-position: 0% center;
    filter: drop-shadow(0 0 15px rgba(26, 35, 126, 0.8));
  }
  50% { 
    background-position: 100% center;
    filter: drop-shadow(0 0 25px rgba(13, 71, 161, 1));
  }
}

/* Nightmare Effect (Shifting Dark Shadows) */
.effect-nightmare {
  background: linear-gradient(135deg, #212121, #424242, #1a1a1a, #616161, #212121);
  background-size: 250% 250%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: nightmare-shadow 4.5s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(33, 33, 33, 0.9));
}

@keyframes nightmare-shadow {
  0%, 100% { 
    background-position: 0% 0%;
    filter: drop-shadow(0 0 10px rgba(33, 33, 33, 0.9));
  }
  25% {
    background-position: 100% 0%;
    filter: drop-shadow(0 0 18px rgba(66, 66, 66, 1));
  }
  50% { 
    background-position: 100% 100%;
    filter: drop-shadow(0 0 10px rgba(33, 33, 33, 0.9));
  }
  75% {
    background-position: 0% 100%;
    filter: drop-shadow(0 0 18px rgba(66, 66, 66, 1));
  }
}

/* New effects in leaderboard links */
.leaderboard-player a .effect-zaros,
.leaderboard-player a .effect-saradomin,
.leaderboard-player a .effect-zamorak,
.leaderboard-player a .effect-guthix,
.leaderboard-player a .effect-dragonstone,
.leaderboard-player a .effect-rune,
.leaderboard-player a .effect-corrupted,
.leaderboard-player a .effect-venom,
.leaderboard-player a .effect-cursed,
.leaderboard-player a .effect-abyssal,
.leaderboard-player a .effect-nightmare {
  -webkit-text-fill-color: transparent !important;
}

/* New effects in activity feed */
.activity-item-name .effect-zaros,
.activity-item-name .effect-saradomin,
.activity-item-name .effect-zamorak,
.activity-item-name .effect-guthix,
.activity-item-name .effect-dragonstone,
.activity-item-name .effect-rune,
.activity-item-name .effect-corrupted,
.activity-item-name .effect-venom,
.activity-item-name .effect-cursed,
.activity-item-name .effect-abyssal,
.activity-item-name .effect-nightmare {
  -webkit-text-fill-color: transparent !important;
}

/* ================================
   LUCIDE ICON ANIMATIONS
================================ */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.lucide-spin {
  animation: spin 1s linear infinite;
}

/* Lucide icon sizing */
.lucide {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
}

/* ================================
   COOKIE CONSENT BANNER & MODAL
================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(12, 18, 28, 0.88);
  color: var(--white);
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.16);
  z-index: 1060;
  display: none;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 240px;
}

.cookie-banner-title {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  font-size: 1rem;
}

.cookie-banner-description {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 12, 18, 0.68);
  backdrop-filter: blur(10px);
  z-index: 1065;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cookie-modal.show {
  opacity: 1;
}

.cookie-modal-content {
  background: rgba(18, 24, 34, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-modal-header {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-modal-kicker {
  margin: 0 0 0.2rem;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.cookie-modal-title {
  margin: 0;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
}

.cookie-modal-close {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cookie-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.cookie-modal-body {
  padding: 1.15rem 1.25rem 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.cookie-intro-text {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.cookie-switch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-switch-copy h6 {
  margin: 0 0 0.15rem;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
}

.cookie-switch-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.cookie-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 0.95rem;
  margin-top: 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.cookie-note i {
  flex-shrink: 0;
  color: var(--blue);
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  cursor: pointer;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-toggle-slider:before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: linear-gradient(135deg, var(--blue) 0%, #2f7bd9 100%);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(24px);
}

.cookie-toggle:hover .cookie-toggle-slider {
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.12);
}

.cookie-modal-footer {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}

.cookie-modal-footer .btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.cookie-modal-footer .btn i {
  width: 18px;
  height: 18px;
}

.cookie-modal-footer .btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, #2f7bd9 100%);
  border: none;
}

.cookie-modal-footer .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.28);
}

.cookie-modal-footer .btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.cookie-modal-footer .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .cookie-banner-actions {
    justify-content: stretch;
    flex-direction: column;
  }

  .cookie-banner-actions .btn {
    width: 100%;
  }

  .cookie-modal-content {
    max-width: 100%;
    margin: 1rem;
    border-radius: 18px;
  }

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

  .cookie-modal-body {
    padding: 1rem;
  }

  .cookie-modal-footer {
    padding: 0.9rem 1rem 1rem;
    flex-direction: column;
  }

  .cookie-modal-footer .btn {
    width: 100%;
    justify-content: center;
  }

  .cookie-modal-title {
    font-size: 1.1rem;
  }

  .cookie-switch-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .cookie-note {
    align-items: flex-start;
  }
}

/* ================================
   CUSTOMIZE TRACKER PAGE
================================ */

/* Hero Section */
.customize-hero {
  padding: 3rem 0 2rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.customize-hero-content {
  text-align: center;
}

.customize-hero-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.customize-hero-icon i {
  width: 36px;
  height: 36px;
}

.customize-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.customize-hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0;
}

/* Toggle Card */
.customize-toggle-card {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 2px solid rgba(102, 126, 234, 0.3);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  transition: all 0.3s ease;
}

.customize-toggle-card:hover {
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.customize-toggle-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.customize-toggle-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.customize-toggle-icon i {
  width: 28px;
  height: 28px;
}

.customize-toggle-info {
  flex: 1;
}

.customize-toggle-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.customize-toggle-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Power Toggle Switch */
.customize-power-toggle {
  position: relative;
  display: inline-block;
  width: 64px;
  height: 34px;
  cursor: pointer;
  flex-shrink: 0;
}

.customize-power-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.customize-power-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #cbd5e0;
  border-radius: 34px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.customize-power-slider:before {
  content: "";
  position: absolute;
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.customize-power-toggle input:checked + .customize-power-slider {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.customize-power-toggle input:checked + .customize-power-slider:before {
  transform: translateX(30px);
}

.customize-power-toggle:hover .customize-power-slider {
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Section Headers */
.customize-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  margin-top: 2rem;
}

.customize-section-header:first-child {
  margin-top: 0;
}

.customize-section-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.customize-section-icon i {
  width: 20px;
  height: 20px;
}

.customize-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: var(--text);
}

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

/* Preview Card */
.customize-preview-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: sticky;
  top: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.customize-preview-stage {
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  text-align: center;
}

.customize-preview-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.customize-preview-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
}

.customize-preview-name {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  background: var(--card-bg);
  border-radius: 12px;
  border: 2px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.customize-preview-text {
  font-weight: 700;
  font-size: inherit;
  line-height: 1.2;
}

.customize-preview-icon {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.customize-preview-footer {
  padding: 1.5rem 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.customize-preview-info-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.customize-preview-info-title i {
  width: 16px;
  height: 16px;
}

.customize-preview-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.customize-preview-badge {
  padding: 0.375rem 0.875rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.8125rem;
  color: var(--text);
}

/* Options Card */
.customize-options-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.customize-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.customize-option {
  position: relative;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 1.25rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.customize-option:hover {
  border-color: rgba(52, 152, 219, 0.55);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(52, 152, 219, 0.16);
}

.customize-option.active {
  border-color: rgba(52, 152, 219, 0.7);
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.18) 0%, rgba(52, 152, 219, 0.08) 100%);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.24);
}

.customize-option-preview {
  margin-bottom: 0.75rem;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.customize-option-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.customize-option-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.customize-option-check i {
  width: 14px;
  height: 14px;
}

.customize-option.active .customize-option-check {
  display: flex;
}

/* Divider */
.customize-divider {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

/* Icon Position */
.customize-icon-position {
  text-align: center;
}

.customize-icon-position-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.customize-icon-position-header i {
  width: 20px;
  height: 20px;
  color: #667eea;
}

.customize-position-toggle {
  display: inline-flex;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.customize-position-toggle .btn-check {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}

.customize-position-btn {
  padding: 0.875rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
  color: var(--text-muted);
}

.customize-position-btn i {
  width: 18px;
  height: 18px;
}

.customize-position-btn:hover {
  background: rgba(102, 126, 234, 0.1);
  color: var(--text);
}

.btn-check:checked + .customize-position-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* Action Buttons */
.customize-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.customize-save-btn {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.customize-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.customize-save-btn:active {
  transform: translateY(0);
}

.customize-save-btn i {
  width: 22px;
  height: 22px;
}

.customize-back-btn {
  padding: 0.875rem 2rem;
  background: var(--card-bg);
  color: var(--text-muted);
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.customize-back-btn:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.customize-back-btn i {
  width: 18px;
  height: 18px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .customize-hero {
    padding: 2rem 0 1.5rem;
  }
  
  .customize-hero-title {
    font-size: 2rem;
  }
  
  .customize-hero-description {
    font-size: 1rem;
  }
  
  .customize-toggle-content {
    flex-direction: column;
    text-align: center;
  }
  
  .customize-preview-card {
    position: static;
    margin-bottom: 2rem;
  }
  
  .customize-preview-stage {
    padding: 2rem 1.5rem;
  }
  
  .customize-preview-name {
    font-size: 1.25rem;
    padding: 0.5rem 1rem;
  }
  
  .customize-options-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.75rem;
  }
  
  .customize-option {
    padding: 1rem 0.5rem;
  }
  
  .customize-section-header {
    margin-top: 1.5rem;
  }
  
  .customize-actions {
    margin-top: 1.5rem;
  }
}

/* ================================
   UNLOCK CUSTOMIZATION PAGE
================================ */

/* Hero Section */
.unlock-hero {
  padding: 3rem 0 2rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.unlock-hero-content {
  text-align: center;
}

.unlock-hero-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.unlock-hero-icon i {
  width: 40px;
  height: 40px;
}

.unlock-hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.unlock-hero-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem 0;
}

.unlock-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--card-bg);
  border: 2px solid rgba(102, 126, 234, 0.3);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.unlock-hero-badge i {
  width: 16px;
  height: 16px;
  color: #667eea;
}

/* Pricing Card */
.unlock-pricing-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: all 0.3s ease;
}

.unlock-pricing-card:hover {
  border-color: rgba(52, 152, 219, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.unlock-pricing-header {
  padding: 1.3rem;
  background: rgba(52, 152, 219, 0.12);
  text-align: center;
  position: relative;
}

.unlock-pricing-badge {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.26rem 0.62rem;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
  backdrop-filter: blur(10px);
}

.unlock-pricing-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  backdrop-filter: blur(10px);
}

.unlock-pricing-icon i {
  width: 24px;
  height: 24px;
}

.unlock-pricing-body {
  padding: 1.6rem 1.25rem;
  text-align: center;
}

.unlock-pricing-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.unlock-pricing-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.unlock-pricing-price {
  margin-bottom: 1.35rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
}

.unlock-price-currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.unlock-price-amount {
  font-size: 2.65rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.unlock-price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.unlock-pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  max-width: 400px;
  margin: 0 auto;
}

.unlock-feature-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 1rem;
  color: var(--text);
  text-align: left;
}

.unlock-feature-item i {
  width: 20px;
  height: 20px;
  color: #10b981;
  flex-shrink: 0;
}

/* Support Banner */
.unlock-support-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  margin-bottom: 3rem;
}

.unlock-support-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.unlock-support-icon i {
  width: 28px;
  height: 28px;
}

.unlock-support-content {
  flex: 1;
}

.unlock-support-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.unlock-support-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Section Headers */
.unlock-features-section,
.unlock-preview-section {
  margin-bottom: 1rem;
}

.unlock-section-header {
  text-align: left;
  margin-bottom: 1rem;
}

/* Features Grid */
.unlock-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.unlock-feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1.15rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.unlock-feature-card:hover {
  border-color: rgba(52, 152, 219, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.unlock-feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(52, 152, 219, 0.13);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 0.85rem;
}

.unlock-feature-icon i {
  width: 28px;
  height: 28px;
}

.unlock-feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.unlock-feature-description {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Preview Grid */
.unlock-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.unlock-preview-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1.15rem 0.9rem;
  text-align: center;
  transition: all 0.2s ease;
}

.unlock-preview-item:hover {
  border-color: rgba(52, 152, 219, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}

.unlock-preview-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.unlock-preview-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.unlock-preview-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* CTA Section */
.unlock-cta-section {
  margin-top: 1rem;
}

.unlock-dev-notice {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.unlock-dev-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.unlock-dev-icon i {
  width: 20px;
  height: 20px;
}

.unlock-dev-content {
  flex: 1;
}

.unlock-dev-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.unlock-dev-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Action Buttons */
.unlock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.unlock-primary-btn {
  padding: 0.9rem 1.35rem;
  background: linear-gradient(135deg, var(--blue) 0%, #5dade2 100%);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.28);
}

.unlock-primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(52, 152, 219, 0.32);
}

.unlock-primary-btn:active {
  transform: translateY(0);
}

.unlock-primary-btn i {
  width: 22px;
  height: 22px;
}

.unlock-secondary-btn {
  padding: 0.86rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.unlock-secondary-btn:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.unlock-secondary-btn i {
  width: 18px;
  height: 18px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .unlock-pricing-body {
    padding: 1.25rem 1rem;
  }
  
  .unlock-features-grid {
    grid-template-columns: 1fr;
  }
  
  .unlock-preview-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .unlock-preview-name {
    font-size: 1.25rem;
  }
  
  .unlock-actions {
    flex-direction: column;
  }
}

/* ================================
   SUPPORT GOLD ALERT
================================ */
.support-gold-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-top: 0.9rem;
  padding: 0.82rem 0.95rem;
  border: 1px solid rgba(212, 175, 55, 0.46);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.17) 0%, rgba(201, 157, 46, 0.09) 55%, rgba(255, 255, 255, 0.03) 100%);
  color: #f7eec5;
}

.support-gold-alert--flush {
  margin-top: 0;
}

.support-gold-alert-main {
  min-width: 0;
}

.support-gold-alert-title {
  margin: 0 0 0.22rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f5df8f;
}

.support-gold-alert-copy {
  margin: 0;
  color: rgba(248, 241, 214, 0.9);
  font-size: 0.84rem;
  line-height: 1.4;
}

.support-gold-alert-copy strong {
  color: #f6e59b;
}

.support-gold-alert .btn {
  flex-shrink: 0;
  border-color: rgba(212, 175, 55, 0.62);
  color: #f6e8b0;
  background: rgba(20, 16, 6, 0.34);
}

.support-gold-alert .btn:hover,
.support-gold-alert .btn:focus {
  border-color: rgba(212, 175, 55, 0.8);
  background: rgba(212, 175, 55, 0.18);
  color: #fff2bf;
}

@media (max-width: 767px) {
  .support-gold-alert {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .support-gold-alert .btn {
    width: 100%;
  }
}

/* Competitions */
.competition-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.12) 0%, rgba(255, 255, 255, 0.03) 60%);
}

.competition-info-icon {
  display: grid;
  place-items: center;
  flex: 0 0 3rem;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  border: 1px solid rgba(52, 152, 219, 0.4);
  background: rgba(52, 152, 219, 0.12);
  color: var(--blue);
}

.competition-info-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-60);
  font-size: 0.86rem;
  line-height: 1.6;
}

.competition-info-list strong {
  color: var(--white);
}

.competition-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.competition-card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 2.6rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.12);
  color: var(--rs-gold);
}

.competition-window {
  color: var(--text-60);
  font-size: 0.8rem;
}

.competition-time-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.competition-time-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--rs-gold));
  transition: width 0.4s ease;
}

.competition-drop-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(80, 220, 120, 0.32);
  background: rgba(80, 220, 120, 0.1);
  color: #6fe28f;
  font-size: 0.78rem;
  font-weight: 600;
}

.competition-drop-badge svg {
  width: 0.85rem;
  height: 0.85rem;
}

.competition-tracker-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
}

.competition-tracker-chip .btn-close {
  --bs-btn-close-opacity: 0.7;
}

@media (max-width: 767px) {
  .competition-info-card {
    flex-direction: column;
  }
}

/* ================================
   SHARED NAVIGATION - REDESIGN
================================ */
.app-navbar {
  min-height: 70px;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(8, 13, 21, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.app-navbar .app-navbar-inner {
  min-height: 70px;
  padding-top: 0;
  padding-bottom: 0;
}

.app-navbar .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: max-content;
  margin-right: clamp(1.5rem, 3vw, 3rem);
  padding: 0;
  color: #fff;
  text-decoration: none;
}

.app-navbar .brand-mark {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 7px;
  background: rgba(212, 175, 55, 0.09);
  color: var(--rs-gold);
}

.app-navbar .brand-wordmark {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.app-navbar-content {
  display: flex;
  align-items: center;
  width: 100%;
}

.app-navbar .app-navbar-primary {
  align-items: center;
  gap: 0.1rem;
  margin-right: auto;
}

.app-navbar .nav-link {
  position: relative;
  padding: 0.55rem 0.68rem;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.76rem;
  font-weight: 650;
  white-space: nowrap;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus,
.app-navbar .nav-link.active {
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.app-navbar .nav-link.leagues2-nav-link {
  margin-left: 0.2rem;
  padding-inline: 0.68rem;
  border: 1px solid rgba(243, 237, 65, 0.32);
  border-radius: 6px;
  background: rgba(111, 169, 57, 0.12);
  color: #dce9a2;
  box-shadow: none;
}

.app-navbar .dropdown-menu.app-navbar-dropdown {
  min-width: 200px;
  margin-top: 0.65rem;
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  background: rgba(11, 18, 29, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.app-navbar .dropdown-menu.app-navbar-dropdown .dropdown-item {
  padding: 0.62rem 0.7rem;
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
}

.app-navbar .dropdown-menu.app-navbar-dropdown .dropdown-item:hover,
.app-navbar .dropdown-menu.app-navbar-dropdown .dropdown-item:focus,
.app-navbar .dropdown-menu.app-navbar-dropdown .dropdown-item.active {
  background: rgba(143, 201, 223, 0.1);
  color: #fff;
}

.app-navbar .action-group {
  align-items: center;
  flex-direction: row;
  gap: 0.45rem;
  margin-left: 1rem;
}

.app-navbar .app-navbar-search {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  width: clamp(190px, 18vw, 255px);
  height: 38px;
  margin-left: 0.8rem;
  padding-left: 0.7rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.app-navbar .app-navbar-search-mobile {
  display: none;
}

.app-navbar .app-navbar-search:focus-within {
  border-color: rgba(98, 180, 209, 0.72);
  background: rgba(98, 180, 209, 0.06);
  box-shadow: 0 0 0 3px rgba(98, 180, 209, 0.1);
}

.app-navbar .app-navbar-search > svg {
  width: 15px;
  height: 15px;
  color: rgba(220, 231, 242, 0.45);
}

.app-navbar .app-navbar-search input {
  min-width: 0;
  height: 100%;
  padding: 0 0.5rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: #edf6fc;
  font-size: 0.74rem;
}

.app-navbar .app-navbar-search input::placeholder {
  color: rgba(220, 231, 242, 0.4);
}

.app-navbar .app-navbar-search input::-webkit-search-cancel-button {
  filter: invert(1);
  opacity: 0.45;
}

.app-navbar .app-navbar-search-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: 0.55rem;
  color: rgba(220, 231, 242, 0.38);
  font-size: 0.62rem;
  font-weight: 750;
  white-space: nowrap;
  pointer-events: none;
}

.app-navbar .app-navbar-search-hint svg {
  width: 12px;
  height: 12px;
}

.app-navbar .action-btn,
.app-navbar .account-link,
.app-navbar .nav-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0.45rem 0.78rem;
}

.app-navbar .track-btn {
  border: 1px solid #62b4d1;
  background: #62b4d1;
  color: #07131b;
  box-shadow: none;
}

.app-navbar .track-btn:hover,
.app-navbar .track-btn:focus,
.app-navbar .track-btn.active {
  border-color: #78c4dc;
  background: #78c4dc;
  color: #07131b;
}

.app-navbar .login-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.78);
}

.app-navbar .login-btn:hover,
.app-navbar .login-btn:focus,
.app-navbar .login-btn.active {
  border-color: rgba(143, 201, 223, 0.44);
  background: rgba(143, 201, 223, 0.09);
  color: #fff;
}

.app-navbar .nav-logout-form {
  display: flex;
}

.app-navbar .nav-logout-btn {
  border: 0;
  background: transparent;
}

.app-breadcrumbs {
  width: 100%;
  overflow: hidden;
}

.app-breadcrumbs .breadcrumb {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: 0.72rem;
}

.app-breadcrumbs .breadcrumb-item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: rgba(255, 255, 255, 0.46);
}

.app-breadcrumbs .breadcrumb-item a,
.app-breadcrumbs .breadcrumb-item span {
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-breadcrumbs .breadcrumb-item a:hover {
  color: #8fc9df;
}

.app-breadcrumbs .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.72);
}

.app-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
  padding: 0 0.5rem;
  color: rgba(255, 255, 255, 0.25);
  content: '/';
}

.app-breadcrumbs .breadcrumb-item svg {
  width: 13px;
  height: 13px;
  margin-right: 0.3rem;
  vertical-align: -2px;
}

@media (max-width: 1199px) and (min-width: 992px) {
  .app-navbar .navbar-brand {
    margin-right: 1rem;
  }

  .app-navbar .nav-link {
    padding-inline: 0.48rem;
    font-size: 0.71rem;
  }

  .app-navbar .app-navbar-search {
    width: 185px;
    margin-left: 0.45rem;
  }

  .app-navbar .action-group {
    margin-left: 0.5rem;
  }
}

@media (max-width: 991px) {
  .app-navbar,
  .app-navbar .app-navbar-inner {
    min-height: 62px;
  }

  .app-navbar .app-navbar-inner {
    flex-wrap: nowrap;
  }

  .app-navbar .navbar-brand {
    margin-right: 0;
  }

  .app-navbar .brand-mark {
    width: 34px;
    height: 34px;
  }

  .app-navbar .navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0 !important;
    border-radius: 6px;
    outline: 0 !important;
    background: transparent;
    box-shadow: none !important;
  }

  .app-navbar .navbar-toggler:focus,
  .app-navbar .navbar-toggler:focus-visible,
  .app-navbar .navbar-toggler:active {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }

  .app-navbar .navbar-toggler-icon,
  .app-navbar .navbar-toggler-icon::before,
  .app-navbar .navbar-toggler-icon::after {
    transition: transform 0.25s ease, top 0.25s ease, bottom 0.25s ease, color 0.2s ease, box-shadow 0.2s ease !important;
  }

  .app-navbar .navbar-toggler-icon::before,
  .app-navbar .navbar-toggler-icon::after {
    content: none !important;
  }

  .app-navbar .navbar-toggler-icon > span {
    position: absolute;
    left: 0;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: top 0.25s ease, transform 0.25s ease, opacity 0.18s ease;
  }

  .app-navbar .navbar-toggler-icon > span:nth-child(1) {
    top: 1px;
  }

  .app-navbar .navbar-toggler-icon > span:nth-child(2) {
    top: 6px;
  }

  .app-navbar .navbar-toggler-icon > span:nth-child(3) {
    top: 11px;
  }

  .app-navbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon > span:nth-child(1) {
    top: 6px !important;
    transform: rotate(45deg) !important;
  }

  .app-navbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon > span:nth-child(2) {
    opacity: 0 !important;
    transform: scaleX(0.35) !important;
  }

  .app-navbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon > span:nth-child(3) {
    top: 6px !important;
    transform: rotate(-45deg) !important;
  }

  .app-navbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    top: 6px;
    transform: rotate(45deg);
    box-shadow: none;
  }

  .app-navbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    bottom: 6px;
    transform: rotate(-45deg);
  }

  .app-navbar .navbar-collapse.collapsing {
    display: block;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease !important;
  }

  .app-navbar .navbar-collapse {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    max-height: calc(100vh - 63px);
    overflow-y: auto;
    padding: 0.75rem max(1rem, calc((100vw - 960px) / 2));
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(8, 13, 21, 0.99);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.38);
  }

  .app-navbar-content {
    align-items: stretch;
    flex-direction: column;
  }

  .app-navbar .app-navbar-primary,
  .app-navbar .action-group {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    gap: 0.2rem;
    margin: 0;
  }

  .app-navbar .app-navbar-search-desktop {
    display: none;
  }

  .app-navbar .app-navbar-search-mobile {
    display: grid;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 44px;
    margin: 0 0.55rem;
  }

  .app-navbar .action-group {
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }

  .app-navbar .nav-link,
  .app-navbar .action-btn,
  .app-navbar .account-link,
  .app-navbar .nav-logout-btn {
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    padding: 0.72rem 0.8rem;
    font-size: 0.82rem;
  }

  .app-navbar .nav-link:hover,
  .app-navbar .nav-link.active {
    background: rgba(143, 201, 223, 0.08);
  }

  .app-navbar .nav-link.leagues2-nav-link {
    margin-left: 0;
  }

  .app-navbar .dropdown-menu.app-navbar-dropdown {
    margin: 0.15rem 0 0.35rem;
    padding: 0.3rem 0.3rem 0.3rem 0.85rem;
    border: 0;
    border-left: 1px solid rgba(143, 201, 223, 0.22);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .app-navbar .nav-logout-form {
    width: 100%;
  }

  .app-navbar .track-btn {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .app-breadcrumb-home-label {
    display: none;
  }

  .app-breadcrumbs .breadcrumb-item svg {
    margin-right: 0;
  }
}

/* ================================
   AUTH AND ACCOUNT PAGES - REDESIGN
================================ */
.auth-page,
.account-page {
  --auth-accent: #8fc9df;
  --auth-action: #62b4d1;
  --auth-action-hover: #78c4dc;
}

.auth-page .auth-hero {
  min-height: calc(100vh - 70px);
  padding: 1.25rem 0 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(100deg, rgba(7, 12, 19, 0.97), rgba(7, 12, 19, 0.8)),
    url('/img/background.jpg') center 42% / cover no-repeat;
}

.auth-page .auth-container {
  max-width: 1060px;
}

.auth-page .auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  grid-template-areas:
    "breadcrumbs breadcrumbs"
    "intro form";
  grid-template-rows: auto auto;
  align-items: center;
  align-content: start;
  gap: clamp(3rem, 8vw, 7rem);
  text-align: left;
}

.auth-page .auth-breadcrumbs {
  grid-area: breadcrumbs;
  align-self: start;
}

.auth-page .auth-intro {
  grid-area: intro;
  max-width: 450px;
  margin: 0;
}

.auth-page .auth-eyebrow,
.account-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.8rem;
  color: var(--auth-accent, #8fc9df);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-page .auth-eyebrow svg,
.account-eyebrow svg {
  width: 15px;
  height: 15px;
}

.auth-page .auth-page-title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.auth-page .auth-page-description {
  margin: 1rem 0 0;
  color: rgba(233, 240, 248, 0.7);
  font-size: 0.96rem;
  line-height: 1.7;
}

.auth-page .auth-form-panel {
  grid-area: form;
  max-width: 500px;
  margin: 0;
}

.auth-page .auth-card-modern,
.account-page .community-surface-card {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(12, 20, 31, 0.94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.auth-page .auth-card-body {
  padding: clamp(1.3rem, 3vw, 2rem);
}

.auth-page .auth-label,
.account-page .auth-label {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.77rem;
  font-weight: 700;
}

.auth-page .auth-input,
.account-page .auth-input {
  min-height: 48px;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: none;
  transition: none;
}

.auth-page .auth-input-with-icon {
  padding-left: 2.8rem !important;
}

.auth-page .auth-input-icon {
  left: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  transition: none;
}

.auth-page .auth-input:focus,
.auth-page .auth-input.form-control:focus,
.account-page .auth-input:focus,
.account-page .auth-input.form-control:focus {
  border-color: rgba(143, 201, 223, 0.75) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 0 0 3px rgba(143, 201, 223, 0.12) !important;
}

.auth-page .auth-input-group:focus-within .auth-input-icon {
  color: var(--auth-accent);
}

.auth-page .auth-help-text,
.account-page .auth-help-text {
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.73rem;
}

.auth-page .auth-btn-primary,
.account-page .auth-btn-primary,
.account-page .btn-primary {
  min-height: 46px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--auth-action);
  border-radius: 6px;
  background: var(--auth-action);
  color: #07131b;
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow: none;
  transition: none;
}

.auth-page .auth-btn-primary:hover:not(:disabled),
.account-page .auth-btn-primary:hover:not(:disabled),
.account-page .btn-primary:hover {
  border-color: var(--auth-action-hover);
  background: var(--auth-action-hover);
  color: #07131b;
  transform: none;
  box-shadow: none;
}

.auth-page .auth-btn-outline {
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  transition: none;
}

.auth-page .auth-btn-outline:hover {
  border-color: rgba(143, 201, 223, 0.45);
  background: rgba(143, 201, 223, 0.08);
  color: #fff;
  transform: none;
  box-shadow: none;
}

.auth-page .auth-link {
  color: var(--auth-accent);
}

.auth-page .auth-divider {
  margin: 1.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-page .auth-text-muted {
  margin-bottom: 0.7rem;
  font-size: 0.8rem;
}

.auth-page .alert,
.account-page .alert {
  padding: 0.85rem 1rem;
  border-width: 1px;
  border-radius: 6px;
  font-size: 0.8rem;
}

.auth-page .auth-security-warning {
  margin-bottom: 1.5rem;
}

.auth-page .auth-security-warning i {
  width: 18px;
  height: 18px;
}

.auth-page .auth-checkbox {
  border-width: 1px;
  transition: none;
}

.auth-page .auth-checkbox-label {
  font-size: 0.8rem;
  line-height: 1.5;
}

.auth-page .password-strength-fill,
.auth-page .password-requirement,
.auth-page .password-requirement .req-icon {
  transition: none;
}

.account-page .community-container {
  max-width: 1180px;
}

.account-hero {
  padding: 1.25rem 0 2.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(100deg, rgba(7, 12, 19, 0.96), rgba(7, 12, 19, 0.8)),
    url('/img/background.jpg') center 43% / cover no-repeat;
}

.account-hero-shell > .app-breadcrumbs {
  margin-bottom: 2.25rem;
}

.account-hero-copy {
  max-width: 650px;
}

.account-hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}

.account-hero-copy > p:last-child {
  margin: 0.8rem 0 0;
  color: rgba(233, 240, 248, 0.7);
  font-size: 0.92rem;
}

.account-content {
  padding: 2rem 0 4rem;
}

.account-page .community-surface-card .card-body {
  padding: 1.25rem;
}

.account-page .section-card-title {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
}

.account-page .dashboard-avatar {
  width: 54px;
  height: 54px;
  margin: 0;
  border: 1px solid rgba(143, 201, 223, 0.28);
  border-radius: 7px;
  background: rgba(143, 201, 223, 0.08);
  color: var(--auth-accent);
}

.account-page .dashboard-action-card,
.account-page .dashboard-tracker-card {
  border-radius: 7px;
  transition: none;
}

.account-page .dashboard-action-card:hover {
  border-color: rgba(143, 201, 223, 0.42);
  background: rgba(143, 201, 223, 0.05);
}

.account-page .dashboard-action-icon {
  border-radius: 7px;
}

.account-page .dashboard-chip {
  border-color: rgba(143, 201, 223, 0.35);
  background: rgba(143, 201, 223, 0.1);
  color: var(--auth-accent);
}

.account-page .dashboard-icon-btn {
  border-radius: 6px;
}

.account-page .settings-danger-card {
  border: 1px solid rgba(231, 76, 60, 0.55);
}

.account-page .settings-modal {
  border-radius: 8px;
  background: #111a26;
}

@media (max-width: 991px) {
  .auth-page .auth-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "breadcrumbs"
      "intro"
      "form";
    align-content: start;
    gap: 2rem;
    min-height: 0;
  }

  .auth-page .auth-intro,
  .auth-page .auth-form-panel {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .auth-page .auth-hero {
    min-height: calc(100vh - 62px);
    padding: 1rem 0 2.5rem;
    background:
      linear-gradient(180deg, rgba(7, 12, 19, 0.78), #0b111a 58%),
      url('/img/background.jpg') 61% top / auto 420px no-repeat;
  }

  .auth-page .auth-shell {
    gap: 1.5rem;
  }

  .auth-page .auth-page-title {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }

  .auth-page .auth-card-body {
    padding: 1.15rem;
  }

  .account-hero {
    padding: 1rem 0 2.2rem;
  }

  .account-hero-shell > .app-breadcrumbs {
    margin-bottom: 1.7rem;
  }

  .account-content {
    padding: 1rem 0 3rem;
  }
}

/* ================================
   POPULATION TRACKER - REDESIGN
================================ */
.population-page {
  --population-accent: #8fc9df;
  --population-action: #62b4d1;
  --population-panel: #111a26;
  color: #dce7f2;
  background: #0b111a;
}

.population-page .community-container {
  max-width: 1180px;
}

.population-hero {
  padding: 1.25rem 0 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(100deg, rgba(7, 12, 19, 0.96), rgba(7, 12, 19, 0.76)),
    url('/img/background.jpg') center 38% / cover no-repeat;
}

.population-hero .app-breadcrumbs {
  margin-bottom: 2.4rem;
}

.population-hero-layout {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.population-hero-layout > div:first-child {
  max-width: 720px;
}

.population-eyebrow,
.population-section-heading p,
.population-panel-header p {
  margin: 0 0 0.5rem;
  color: var(--population-accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.population-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.population-eyebrow svg {
  width: 15px;
  height: 15px;
}

.population-hero h1 {
  max-width: 680px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: 0;
}

.population-hero-layout > div:first-child > p:last-child {
  max-width: 630px;
  margin: 1rem 0 0;
  color: rgba(226, 236, 246, 0.7);
  font-size: 0.95rem;
  line-height: 1.65;
}

.population-status {
  display: grid;
  flex: 0 0 auto;
  gap: 0.45rem;
}

.population-page .data-freshness {
  min-width: 180px;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(6, 11, 18, 0.64);
  font-size: 0.75rem;
  backdrop-filter: none;
}

.population-page .data-freshness svg {
  width: 14px;
  height: 14px;
  color: var(--population-accent);
}

.population-live {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.population-section-heading,
.population-panel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.population-section-heading h2,
.population-panel-header h2 {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.population-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #50dc78;
  box-shadow: 0 0 0 3px rgba(80, 220, 120, 0.12);
}

.population-page .live-stat,
.population-page .trend-card,
.population-page .peak-card {
  min-height: 0;
  height: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
  backdrop-filter: none;
  transition: none;
}

.population-page .live-stat {
  min-height: 112px;
  text-align: left;
}

.population-page .live-stat:hover,
.population-page .trend-card:hover,
.population-page .peak-card:hover {
  transform: none;
  border-color: rgba(143, 201, 223, 0.34);
}

.population-page .live-stat-label,
.population-page .trend-game,
.population-page .peak-title {
  margin-bottom: 0.55rem;
  color: rgba(223, 233, 243, 0.62);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
}

.population-page .live-stat-value,
.population-page .peak-value {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.population-page .live-stat-sub,
.population-page .peak-unit,
.population-page .peak-meta {
  color: rgba(223, 233, 243, 0.5);
}

.population-sponsor {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d151f;
}

.population-sponsor a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 38px;
  color: rgba(223, 233, 243, 0.48);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.population-sponsor img {
  display: block;
  width: min(100%, 728px);
  max-height: 58px;
  object-fit: contain;
}

.population-workspace,
.population-insights {
  padding: 2rem 0 0;
}

.population-insights {
  padding-bottom: 4rem;
}

.population-panel {
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: var(--population-panel);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.population-insights > .community-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.population-panel,
.population-split-grid,
.population-split-grid > *,
.population-page .chart-container {
  min-width: 0;
}

.population-page canvas {
  max-width: 100%;
}

.population-panel-header > div:first-child > span {
  display: block;
  margin-top: 0.4rem;
  color: rgba(223, 233, 243, 0.58);
  font-size: 0.82rem;
  line-height: 1.45;
}

.population-page .rs-time-toggle {
  flex-wrap: nowrap;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #0b121c;
  backdrop-filter: none;
}

.population-page .rs-time-toggle .btn {
  min-width: 42px;
  padding: 0.45rem 0.62rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(223, 233, 243, 0.62);
  font-size: 0.72rem;
  font-weight: 750;
  transition: none;
}

.population-page .rs-time-toggle .btn:hover {
  background: rgba(143, 201, 223, 0.08);
  color: #fff;
}

.population-page .rs-time-toggle .btn.active {
  border: 0;
  background: var(--population-action);
  color: #071018;
  box-shadow: none;
}

.population-page .rs-data-notice {
  min-height: 1.2rem;
  margin: -0.45rem 0 0.65rem;
  color: rgba(223, 233, 243, 0.48);
  font-size: 0.72rem;
}

.population-main-chart {
  min-height: 480px;
  height: 54vh;
  max-height: 620px;
}

.population-chart-meta {
  min-height: 1.2rem;
  margin-top: 0.75rem;
  color: rgba(223, 233, 243, 0.52);
  font-size: 0.75rem;
}

.population-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 992px) {
  .population-split-grid .row > [class*="col-"] {
    width: 50%;
  }
}

.population-panel-header-stack {
  align-items: flex-start;
  flex-direction: column;
}

.population-split-grid .trend-card,
.population-split-grid .peak-card {
  min-height: 112px;
}

.population-split-grid .trend-change {
  justify-content: flex-start;
}

.population-split-grid .trend-card,
.population-split-grid .trend-game {
  text-align: left;
}

.population-hourly-chart {
  height: 340px;
  min-height: 340px;
}

@media (max-width: 991px) {
  .population-hero-layout {
    align-items: flex-start;
    flex-direction: column;
  }

  .population-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .population-page .data-freshness {
    min-width: 0;
  }

  .population-split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .population-hero {
    padding: 1rem 0 1.5rem;
  }

  .population-hero .app-breadcrumbs {
    margin-bottom: 1.75rem;
  }

  .population-hero-layout {
    gap: 1.4rem;
    margin-bottom: 1.5rem;
  }

  .population-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.2rem);
  }

  .population-status {
    grid-template-columns: 1fr;
  }

  .population-section-heading,
  .population-panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .population-panel {
    padding: 1rem;
  }

  .population-main-chart {
    min-height: 360px;
    height: 62vh;
    max-height: 460px;
  }

  .population-page .rs-time-toggle {
    width: 100%;
    overflow-x: auto;
  }

  .population-page .rs-time-toggle .btn {
    flex: 1 0 auto;
  }

  .population-sponsor a {
    flex-direction: column;
    gap: 0.35rem;
  }

  .population-sponsor img {
    max-height: 46px;
  }

  .population-hourly-chart {
    height: 300px;
    min-height: 300px;
  }
}

@media (max-width: 420px) {
  .population-page .live-stat,
  .population-page .trend-card,
  .population-page .peak-card {
    padding: 0.8rem;
  }

  .population-page .live-stat-value,
  .population-page .peak-value {
    font-size: 1.2rem;
  }
}

/* ================================
   COMMUNITY AND LEADERBOARDS
================================ */
.community-page,
.leaderboards-page {
  --hub-base: #0b111a;
  --hub-panel: #111a26;
  --hub-accent: #8fc9df;
  --hub-action: #62b4d1;
  min-height: 100vh;
  color: #dce7f2;
  background: var(--hub-base);
}

.community-page .community-container,
.leaderboards-page .community-container {
  max-width: 1180px;
}

.community-page-hero,
.leaderboards-hero {
  padding: 1.25rem 0 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(100deg, rgba(7, 12, 19, 0.96), rgba(7, 12, 19, 0.76)),
    url('/img/background.jpg') center 40% / cover no-repeat;
}

.community-page-hero .app-breadcrumbs,
.leaderboards-hero .app-breadcrumbs {
  margin-bottom: 2.5rem;
}

.community-page-hero-layout,
.leaderboards-hero-layout {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.community-page-hero-layout > div,
.leaderboards-hero-layout > div {
  max-width: 760px;
}

.community-page-eyebrow,
.leaderboards-eyebrow,
.community-page-section-heading p,
.leaderboards-toolbar > div > p,
.leaderboards-panel-header p,
.community-page-panel > header > span {
  margin: 0 0 0.55rem;
  color: var(--hub-accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.community-page-eyebrow,
.leaderboards-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.community-page-eyebrow svg,
.leaderboards-eyebrow svg {
  width: 15px;
  height: 15px;
}

.community-page-hero h1,
.leaderboards-hero h1 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.community-page-hero-layout > div > p:last-child,
.leaderboards-hero-layout > div > p:last-child {
  max-width: 650px;
  margin: 1rem 0 0;
  color: rgba(226, 236, 246, 0.7);
  font-size: 0.95rem;
  line-height: 1.65;
}

.community-page-primary-action,
.leaderboards-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  flex: 0 0 auto;
  padding: 0.7rem 1rem;
  border: 1px solid var(--hub-action);
  border-radius: 6px;
  background: var(--hub-action);
  color: #071018;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.community-page-primary-action:hover,
.leaderboards-primary-action:hover {
  background: #78c4dc;
  color: #071018;
}

.community-page-primary-action svg,
.leaderboards-primary-action svg,
.community-page-section-heading a svg,
.community-support-strip a svg,
.leaderboards-support-strip a svg {
  width: 16px;
  height: 16px;
}

.community-page-leaders,
.leaderboards-workspace {
  padding: 2rem 0;
  background: var(--hub-panel);
}

.community-page-activity {
  padding: 2rem 0 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--hub-base);
}

.community-page-section-heading,
.leaderboards-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.community-page-section-heading h2,
.leaderboards-toolbar h2,
.leaderboards-panel-header h2 {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.community-page-section-heading > div > span,
.leaderboards-panel-header > div > span {
  display: block;
  margin-top: 0.4rem;
  color: rgba(223, 233, 243, 0.58);
  font-size: 0.82rem;
  line-height: 1.45;
}

.community-page-section-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--hub-accent);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
}

.community-leader-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.community-page-panel,
.leaderboards-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: var(--hub-panel);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.community-page-leaders .community-page-panel {
  background: var(--hub-base);
}

.community-page-panel > header {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.community-page-panel > header h3 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}

.community-page-panel > header p {
  margin: 0.35rem 0 0;
  color: rgba(223, 233, 243, 0.55);
  font-size: 0.78rem;
}

.community-page-loader,
.leaderboards-loader {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  color: rgba(223, 233, 243, 0.52);
  font-size: 0.78rem;
}

.community-ranking-list .leaderboard-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 52px;
  gap: 0.7rem;
  padding: 0.65rem 1rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
}

.community-ranking-list .leaderboard-row:last-child {
  border-bottom: 0;
}

.community-ranking-list .leaderboard-rank {
  font-size: 0.72rem;
}

.community-ranking-list .leaderboard-player {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-ranking-list .leaderboard-player a {
  color: #fff;
  font-size: 0.82rem;
  text-decoration: none;
}

.community-ranking-list .leaderboard-value {
  color: var(--hub-accent);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.community-activity-panel {
  padding: 1.25rem;
}

.community-activity-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.community-activity-controls label,
.leaderboards-filter-bar > span {
  color: rgba(223, 233, 243, 0.55);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.community-page .community-activity-sort-select {
  width: 180px;
  min-width: 180px;
  min-height: 40px;
  padding: 0.5rem 2rem 0.5rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  background-color: #0b121c;
  color: #fff;
  font-size: 0.78rem;
}

.community-feed-shell {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: #0b121c;
}

.community-feed-loader {
  min-height: 320px;
}

.community-page .achievements-feed .activity-item {
  min-height: 68px;
  padding: 0.8rem 1rem;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  background: transparent !important;
}

.community-page .achievements-feed .activity-item:last-child {
  border-bottom: 0 !important;
}

.community-page .achievements-feed .activity-item:hover {
  background: rgba(143, 201, 223, 0.055) !important;
}

.community-page .activity-item-name {
  color: rgba(235, 242, 249, 0.78);
  font-size: 0.82rem;
}

.community-page .activity-item-name strong {
  color: #fff;
}

.community-page .player-feed-pagination {
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.community-pagination-actions {
  display: flex;
  margin-left: auto;
  gap: 0.45rem;
}

.community-page .community-pagination-btn,
.leaderboards-page .leaderboard-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 34px;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  font-size: 0.72rem;
}

.community-page .community-pagination-btn svg,
.leaderboards-page .leaderboard-page-btn svg {
  width: 14px;
  height: 14px;
}

.community-page .community-pagination-btn:disabled,
.leaderboards-page .leaderboard-page-btn:disabled {
  opacity: 0.38;
}

.community-empty-state,
.leaderboards-empty {
  padding: 4rem 1rem;
  text-align: center;
}

.community-empty-state > svg,
.leaderboards-empty > svg {
  width: 34px;
  height: 34px;
  color: rgba(143, 201, 223, 0.4);
}

.community-empty-state h3,
.leaderboards-empty h3 {
  margin: 0.8rem 0 0.35rem;
  color: #fff;
  font-size: 1rem;
}

.community-empty-state p,
.leaderboards-empty p {
  margin: 0;
  color: rgba(223, 233, 243, 0.52);
  font-size: 0.78rem;
}

.community-support-strip,
.leaderboards-support-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 7px;
  background: rgba(212, 175, 55, 0.065);
}

.community-support-strip p,
.leaderboards-support-strip p {
  margin: 0;
  color: #f2dc8b;
  font-size: 0.8rem;
  font-weight: 800;
}

.community-support-strip span,
.leaderboards-support-strip span {
  display: block;
  margin-top: 0.2rem;
  color: rgba(241, 231, 193, 0.68);
  font-size: 0.74rem;
}

.community-support-strip a,
.leaderboards-support-strip a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.4rem;
  color: #f2dc8b;
  font-size: 0.76rem;
  font-weight: 750;
  text-decoration: none;
}

/* Leaderboards workspace */
.leaderboards-workspace {
  min-height: 650px;
  padding-bottom: 4rem;
}

.leaderboards-toolbar {
  align-items: center;
}

.leaderboards-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #0b121c;
}

.leaderboards-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.5rem 0.8rem;
  border: 0;
  border-radius: 4px;
  color: rgba(223, 233, 243, 0.62);
  font-size: 0.76rem;
  font-weight: 750;
}

.leaderboards-tabs .nav-link svg {
  width: 15px;
  height: 15px;
}

.leaderboards-tabs .nav-link:hover {
  color: #fff;
  background: rgba(143, 201, 223, 0.08);
}

.leaderboards-tabs .nav-link.active {
  color: #071018;
  background: var(--hub-action);
}

.leaderboards-filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: var(--hub-base);
}

.leaderboards-filter-list {
  display: flex;
  min-width: 0;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.leaderboards-page .leaderboard-filter-btn {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(223, 233, 243, 0.65);
  font-size: 0.7rem;
  font-weight: 700;
}

.leaderboards-page .leaderboard-filter-btn:hover {
  border-color: rgba(143, 201, 223, 0.32);
  color: #fff;
}

.leaderboards-page .leaderboard-filter-btn.active {
  border-color: rgba(143, 201, 223, 0.45);
  background: rgba(143, 201, 223, 0.12);
  color: var(--hub-accent);
  box-shadow: none;
}

.leaderboards-panel-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.leaderboards-panel-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.08);
  color: #d4af37;
}

.leaderboards-panel-icon svg {
  width: 19px;
  height: 19px;
}

.leaderboards-page .admin-table-wrap {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.leaderboards-page .admin-table {
  min-width: 680px;
  color: #dce7f2;
}

.leaderboards-page .admin-table thead th {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b121c;
  color: rgba(223, 233, 243, 0.48);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leaderboards-page .admin-table tbody td {
  padding: 0.85rem 1rem;
  border-color: rgba(255, 255, 255, 0.065);
  background: transparent;
  color: rgba(235, 242, 249, 0.76);
  font-size: 0.8rem;
}

.leaderboards-page .admin-table tbody tr:hover td {
  background: rgba(143, 201, 223, 0.045);
}

.leaderboards-page .admin-link {
  color: #fff;
  text-decoration: none;
}

.leaderboards-page .leaderboard-type-badge {
  border-radius: 4px;
}

.leaderboards-page .leaderboard-pagination {
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

@media (max-width: 767px) {
  .community-page-hero,
  .leaderboards-hero {
    padding: 1rem 0 2rem;
  }

  .community-page-hero .app-breadcrumbs,
  .leaderboards-hero .app-breadcrumbs {
    margin-bottom: 1.75rem;
  }

  .community-page-hero-layout,
  .leaderboards-hero-layout,
  .community-page-section-heading,
  .leaderboards-toolbar,
  .community-support-strip,
  .leaderboards-support-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .community-page-hero h1,
  .leaderboards-hero h1 {
    font-size: clamp(2.3rem, 12vw, 3.2rem);
  }

  .community-page-primary-action,
  .leaderboards-primary-action {
    width: 100%;
  }

  .community-leader-grid {
    grid-template-columns: 1fr;
  }

  .community-activity-panel {
    padding: 1rem;
  }

  .community-activity-controls {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
  }

  .community-page .community-activity-sort-select {
    width: 100%;
  }

  .community-page .achievements-feed .activity-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .community-page .activity-badge,
  .community-page .activity-item-arrow {
    display: none;
  }

  .community-support-strip a,
  .leaderboards-support-strip a {
    width: 100%;
    justify-content: space-between;
  }

  .leaderboards-tabs {
    width: 100%;
  }

  .leaderboards-tabs .nav-item {
    flex: 1;
  }

  .leaderboards-tabs .nav-link {
    justify-content: center;
    width: 100%;
  }

  .leaderboards-filter-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .leaderboards-filter-list {
    width: 100%;
    padding-bottom: 0.2rem;
  }

  .leaderboards-panel-header {
    align-items: flex-start;
  }
}

/* ================================
   PLAYER PROFILE - REDESIGN
================================ */
.player-page {
  --player-accent: #8fc9df;
  --player-action: #62b4d1;
  --player-panel: #111a26;
  min-height: 100vh;
  color: #dce7f2;
  background: #0b111a;
}

.player-page .community-container {
  max-width: 1180px;
}

.player-page .player-hero {
  padding: 1.25rem 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(100deg, rgba(7, 12, 19, 0.97), rgba(7, 12, 19, 0.8)),
    url('/img/background.jpg') center 42% / cover no-repeat;
}

.player-page .player-hero .app-breadcrumbs {
  margin-bottom: 2rem;
}

.player-page .player-dashboard-card {
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  background: rgba(17, 26, 38, 0.92);
  box-shadow: none;
  backdrop-filter: none;
}

.player-page .player-name {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 850;
  letter-spacing: 0;
}

.player-page .player-badge {
  padding: 0.3rem 0.55rem;
  border-color: rgba(143, 201, 223, 0.28);
  border-radius: 5px;
  background: rgba(143, 201, 223, 0.08);
  color: var(--player-accent);
  font-size: 0.7rem;
}

.player-page .player-actions .btn,
.player-page .player-actions-toggle {
  min-height: 38px;
  border-radius: 5px;
  box-shadow: none;
}

.player-page .player-actions #updateStatsBtn {
  min-width: 38px;
  width: 38px;
  padding: 0;
  border-color: var(--player-action);
  background: var(--player-action);
  color: #07131b;
}

.player-page .player-actions-dropdown .dropdown-menu {
  border-radius: 7px;
  background: #111a26;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: none;
}

.player-page .player-actions-dropdown .dropdown-item {
  border-radius: 5px;
}

.player-page .support-gold-alert {
  border-radius: 7px;
  background: rgba(214, 181, 91, 0.07);
}

.player-page .player-page-content {
  padding-top: 0.25rem;
}

.player-page .player-workspace,
.player-page .player-workspace-body,
.player-page .tab-content,
.player-page .tab-pane,
.player-page .player-data-hub,
.player-page .player-overview-grid,
.player-page .player-overview-right,
.player-page .player-overview-kpis,
.player-page .player-current-panel {
  min-width: 0;
}

.player-page .player-overview-right {
  grid-template-columns: minmax(0, 1fr);
}

.player-page .player-overview-kpis,
.player-page .player-current-panel {
  width: 100%;
  max-width: 100%;
}

.player-page .player-tabs {
  gap: 0.25rem;
  padding: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: var(--player-panel);
  box-shadow: none;
  backdrop-filter: none;
}

.player-page .player-tabs .nav-link {
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  border-color: transparent;
  border-radius: 5px;
  background: transparent;
  color: rgba(220, 231, 242, 0.6);
  font-size: 0.78rem;
  transition: none;
}

.player-page .player-tabs .nav-link:hover {
  border-color: rgba(143, 201, 223, 0.18);
  background: rgba(143, 201, 223, 0.05);
  color: #fff;
}

.player-page .player-tabs .nav-link.active {
  border-color: rgba(143, 201, 223, 0.3);
  background: rgba(143, 201, 223, 0.11);
  color: #e8f8ff;
  box-shadow: none;
}

.player-page .player-page-content .card,
.player-page .player-page-content .stat-card,
.player-page .player-page-content .record-card,
.player-page .player-page-content .closest-skill-card,
.player-page .player-page-content .achievement-summary-card,
.player-page .player-page-content .milestone-card,
.player-page .player-page-content .skill-category,
.player-page .player-page-content .mastery-category,
.player-page .player-closest-panel,
.player-page .player-current-panel,
.player-page .player-overview-kpi {
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: var(--player-panel);
  box-shadow: none;
  backdrop-filter: none;
}

.player-page .player-page-content .card.mb-3,
.player-page .player-page-content .card.mb-0,
.player-page .player-page-content .card {
  border-radius: 7px;
}

.player-page .player-page-content .skill-category,
.player-page .player-page-content .mastery-category {
  border-radius: 7px;
}

.player-page .player-page-content .skill-category-header:hover,
.player-page .player-page-content .mastery-category-header:hover {
  background: rgba(143, 201, 223, 0.06);
}

.player-page .tracker-select,
.player-page .form-select {
  border-radius: 5px;
}

.first-track-modal .modal-dialog {
  --player-accent: #8fc9df;
  --player-action: #62b4d1;
  max-width: 560px;
}

.first-track-modal .modal-content {
  border: 1px solid rgba(143, 201, 223, 0.25);
  border-radius: 8px;
  background: #111a26;
  color: #dce7f2;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.first-track-modal-header {
  position: relative;
  padding: 1.35rem 1.35rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.first-track-modal-header .btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.first-track-modal-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(80, 220, 120, 0.3);
  border-radius: 6px;
  background: rgba(80, 220, 120, 0.08);
  color: #78df96;
}

.first-track-modal-icon svg {
  width: 19px;
  height: 19px;
}

.first-track-modal-header > p {
  margin: 0 0 0.35rem;
  color: var(--player-accent);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.first-track-modal-header h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 450px;
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1.25;
}

.first-track-modal-header > span {
  display: block;
  margin-top: 0.55rem;
  color: rgba(220, 231, 242, 0.58);
  font-size: 0.78rem;
  line-height: 1.5;
}

.first-track-modal-body {
  padding: 1.2rem 1.35rem;
}

.first-track-benefits {
  display: grid;
  gap: 0.7rem;
}

.first-track-benefits > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
}

.first-track-benefits > div > svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border: 1px solid rgba(143, 201, 223, 0.18);
  border-radius: 6px;
  background: rgba(143, 201, 223, 0.06);
  color: var(--player-accent);
}

.first-track-benefits span {
  display: grid;
  gap: 0.15rem;
}

.first-track-benefits strong {
  color: #edf6fc;
  font-size: 0.8rem;
}

.first-track-benefits small {
  color: rgba(220, 231, 242, 0.52);
  font-size: 0.7rem;
  line-height: 1.4;
}

.first-track-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.8rem;
  border-left: 2px solid #e0b557;
  background: rgba(224, 181, 87, 0.07);
}

.first-track-warning svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #e7c36e;
}

.first-track-warning span {
  color: rgba(239, 225, 187, 0.7);
  font-size: 0.72rem;
  line-height: 1.5;
}

.first-track-warning strong {
  color: #f7df9e;
}

.first-track-modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 1rem 1.35rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.first-track-primary,
.first-track-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 43px;
  width: 100%;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
}

.first-track-modal-actions > .first-track-primary:first-child:nth-last-child(2) {
  grid-column: 1 / -1;
}

.first-track-primary,
.first-track-primary:hover {
  border-color: var(--player-action);
  background: var(--player-action);
  color: #07131b;
}

.first-track-secondary,
.first-track-secondary:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.035);
  color: #eef6fc;
}

.first-track-primary svg,
.first-track-secondary svg {
  width: 16px;
  height: 16px;
}

.first-track-dismiss {
  grid-column: 1 / -1;
  justify-self: center;
  padding: 0.3rem 0.6rem;
  border: 0;
  background: transparent;
  color: rgba(220, 231, 242, 0.45);
  font-size: 0.7rem;
}

.first-track-dismiss:hover {
  color: #fff;
}

@media (max-width: 767px) {
  .player-page .player-hero {
    padding: 1rem 0 0.75rem;
  }

  .player-page .player-hero .app-breadcrumbs {
    margin-bottom: 1.4rem;
  }

  .player-page .player-dashboard-identity {
    align-items: stretch;
  }

  .player-page .player-actions {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }

  .player-page .player-actions > .btn:not(#updateStatsBtn):not(.player-actions-toggle) {
    min-width: 0;
  }

  .player-page .player-tabs {
    max-width: 100%;
    margin-inline: 0;
  }

  .first-track-modal {
    padding-inline: 0.5rem;
  }

  .first-track-modal-actions {
    grid-template-columns: 1fr;
  }

  .first-track-dismiss {
    grid-column: 1;
  }
}

.app-confirm-modal .modal-dialog,
.dashboard-discord-modal .modal-dialog {
  max-width: 480px;
}

.app-confirm-modal .modal-content,
.dashboard-discord-modal .modal-content {
  overflow: hidden;
  border: 1px solid rgba(143, 201, 223, 0.22);
  border-radius: 8px;
  background: #111a26;
  color: #dce7f2;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.app-confirm-modal-header,
.dashboard-discord-header {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 1.2rem 3.25rem 1.1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.app-confirm-modal-header .btn-close,
.dashboard-discord-header .btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.app-confirm-modal-icon,
.dashboard-discord-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(143, 201, 223, 0.24);
  border-radius: 6px;
  background: rgba(143, 201, 223, 0.07);
  color: #8fc9df;
}

.app-confirm-modal-icon svg,
.dashboard-discord-icon svg {
  width: 18px;
  height: 18px;
}

.app-confirm-modal-header p,
.dashboard-discord-header p {
  margin: 0 0 0.2rem;
  color: #8fc9df;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-confirm-modal-header h2,
.dashboard-discord-header h2 {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 850;
}

.app-confirm-modal-body,
.dashboard-discord-body {
  padding: 1.1rem 1.2rem;
  color: rgba(220, 231, 242, 0.64);
  font-size: 0.78rem;
  line-height: 1.55;
}

.dashboard-discord-body p {
  margin: 0;
}

.app-confirm-modal-actions,
.dashboard-discord-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 1rem 1.2rem 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.app-modal-primary,
.app-modal-secondary,
.dashboard-discord-primary,
.dashboard-discord-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  width: 100%;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
}

.app-modal-primary,
.app-modal-primary:hover,
.dashboard-discord-primary,
.dashboard-discord-primary:hover {
  border-color: #62b4d1;
  background: #62b4d1;
  color: #07131b;
}

.app-modal-secondary,
.app-modal-secondary:hover,
.dashboard-discord-secondary,
.dashboard-discord-secondary:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
  color: #edf6fc;
}

.app-modal-primary svg,
.dashboard-discord-primary svg {
  width: 16px;
  height: 16px;
}

.dashboard-discord-never {
  grid-column: 1 / -1;
  justify-self: center;
  padding: 0.3rem 0.6rem;
  border: 0;
  background: transparent;
  color: rgba(220, 231, 242, 0.45);
  font-size: 0.7rem;
}

.dashboard-discord-never:hover {
  color: #fff;
}

.premium-gentle-cta {
  border-color: rgba(143, 201, 223, 0.18) !important;
  border-radius: 7px !important;
  background: rgba(143, 201, 223, 0.035) !important;
}

.premium-gentle-cta p,
.premium-gentle-cta .support-gold-alert-title {
  color: #dceaf2 !important;
}

.premium-gentle-cta span,
.premium-gentle-cta .support-gold-alert-copy {
  color: rgba(220, 231, 242, 0.6) !important;
}

.premium-gentle-cta a,
.premium-gentle-cta .btn {
  border-color: rgba(143, 201, 223, 0.28) !important;
  background: rgba(143, 201, 223, 0.07) !important;
  color: #bde6f5 !important;
}

@media (max-width: 575px) {
  .app-confirm-modal-actions,
  .dashboard-discord-actions {
    grid-template-columns: 1fr;
  }

  .dashboard-discord-never {
    grid-column: 1;
  }
}

/* Admin workspace */
.admin-page {
  --admin-panel: #111a26;
  --admin-border: rgba(255, 255, 255, 0.1);
  --admin-accent: #8fc9df;
  --admin-action: #62b4d1;
  min-height: 75vh;
  background: #0b111a;
  color: #dce7f2;
}

.admin-container { max-width: 1240px; }

.admin-hero {
  padding: 1.25rem 0 0;
  border-bottom: 1px solid var(--admin-border);
  background: radial-gradient(circle at 12% 0%, rgba(98, 180, 209, 0.1), transparent 32%), #0d1520;
}

.admin-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0 1.35rem;
}

.admin-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.45rem;
  color: var(--admin-accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-eyebrow svg { width: 15px; height: 15px; }
.admin-hero h1 { margin: 0; color: #f4f8fb; font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 850; }
.admin-hero-row > div > p:last-child { margin: 0.5rem 0 0; color: rgba(220, 231, 242, 0.55); font-size: 0.82rem; }

.admin-status,
.admin-count {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  padding: 0.42rem 0.65rem;
  border: 1px solid rgba(143, 201, 223, 0.18);
  border-radius: 5px;
  color: rgba(220, 231, 242, 0.62);
  font-size: 0.68rem;
  font-weight: 750;
}

.admin-status > span { width: 7px; height: 7px; border-radius: 50%; background: #67cf89; }
.admin-status.is-alert > span { background: #e06b73; }

.admin-section-nav { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; }
.admin-section-nav::-webkit-scrollbar { display: none; }
.admin-section-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  border-bottom: 2px solid transparent;
  color: rgba(220, 231, 242, 0.5);
  font-size: 0.74rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.admin-section-nav a:hover,
.admin-section-nav a.active { border-bottom-color: var(--admin-action); color: #edf7fb; }
.admin-section-nav svg { width: 15px; height: 15px; }
.admin-content { padding-top: 1.5rem; padding-bottom: 3rem; }
.admin-content > .alert { border-radius: 6px; font-size: 0.78rem; }

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.admin-stat {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0.25rem 0.6rem;
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid var(--admin-border);
  border-radius: 7px;
  background: var(--admin-panel);
}

.admin-stat > svg {
  grid-row: 1 / 3;
  align-self: center;
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 5px;
  background: rgba(143, 201, 223, 0.07);
  color: var(--admin-accent);
}

.admin-stat span { overflow: hidden; color: rgba(220, 231, 242, 0.46); font-size: 0.62rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.admin-stat strong { color: #f4f8fb; font-size: 1.1rem; line-height: 1; }

.admin-dashboard-grid,
.admin-job-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.admin-panel {
  min-width: 0;
  border: 1px solid var(--admin-border);
  border-radius: 7px;
  background: var(--admin-panel);
  color: #dce7f2;
}

.admin-panel > .card-body,
.admin-panel:not(.admin-table-panel):not(.admin-filter-panel) { padding: 1.1rem; }

.admin-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.admin-panel-heading p { margin: 0 0 0.2rem; color: var(--admin-accent); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.admin-panel-heading h2,
.admin-panel h6 { margin: 0; color: #f2f7fa; font-size: 0.95rem; font-weight: 800; }
.admin-panel-heading > svg { width: 19px; height: 19px; color: rgba(143, 201, 223, 0.55); }
.admin-panel-heading > span { color: rgba(220, 231, 242, 0.45); font-size: 0.7rem; }

.admin-attention,
.admin-empty-compact,
.admin-action-row a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}

.admin-attention,
.admin-action-row { margin-bottom: 0.65rem; }
.admin-attention > span,
.admin-empty-compact > span,
.admin-action-row a > span { display: grid; flex: 1; }
.admin-attention strong,
.admin-empty-compact strong,
.admin-action-row strong { color: #eaf3f7; font-size: 0.78rem; }
.admin-attention small,
.admin-empty-compact small,
.admin-action-row small { color: rgba(220, 231, 242, 0.45); font-size: 0.68rem; }
.admin-attention a,
.admin-secondary-link { color: var(--admin-accent); font-size: 0.72rem; font-weight: 750; text-decoration: none; }
.admin-attention svg,
.admin-empty-compact > svg,
.admin-action-row svg { width: 17px; height: 17px; color: var(--admin-accent); }
.admin-action-row a { margin: 0; text-decoration: none; }

.admin-health-list { margin: 0 0 1rem; }
.admin-health-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.admin-health-list dt { color: rgba(220, 231, 242, 0.46); font-size: 0.72rem; font-weight: 600; }
.admin-health-list dd { margin: 0; color: #eaf3f7; font-size: 0.72rem; text-align: right; }

.admin-filter-panel { margin-bottom: 1rem; padding: 1rem; }
.admin-page .admin-filter .form-label { margin-bottom: 0.35rem; color: rgba(220, 231, 242, 0.52); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.admin-page .form-control,
.admin-page .form-select { min-height: 40px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 5px; background-color: #0b111a; color: #eaf3f7; font-size: 0.76rem; }
.admin-page .form-control:focus,
.admin-page .form-select:focus { border-color: var(--admin-action); background-color: #0b111a; color: #fff; box-shadow: 0 0 0 3px rgba(98, 180, 209, 0.1); }

.admin-primary-btn,
.admin-secondary-btn,
.admin-row-action,
.admin-success-action,
.admin-danger-action { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; min-height: 36px; border-radius: 5px; font-size: 0.7rem; font-weight: 800; }
.admin-primary-btn,
.admin-primary-btn:hover { border-color: var(--admin-action); background: var(--admin-action); color: #07131b; }
.admin-secondary-btn,
.admin-row-action,
.admin-secondary-btn:hover,
.admin-row-action:hover { border-color: rgba(143, 201, 223, 0.24); background: rgba(143, 201, 223, 0.06); color: #bfe4f1; }
.admin-success-action,
.admin-success-action:hover { border-color: rgba(103, 207, 137, 0.3); background: rgba(103, 207, 137, 0.08); color: #91e1aa; }
.admin-danger-action,
.admin-danger-action:hover { border-color: rgba(224, 107, 115, 0.3); background: rgba(224, 107, 115, 0.07); color: #f1a0a6; }
.admin-primary-btn svg,
.admin-secondary-btn svg,
.admin-row-action svg,
.admin-success-action svg,
.admin-danger-action svg { width: 14px; height: 14px; }

.admin-table-panel { overflow: hidden; }
.admin-table-panel > .admin-panel-heading { margin: 0; padding: 1rem 1.1rem; border-bottom: 1px solid var(--admin-border); }
.admin-page .admin-table { min-width: 760px; color: rgba(220, 231, 242, 0.68); }
.admin-page .admin-table > :not(caption) > * > * { padding: 0.8rem 1rem; border-color: rgba(255, 255, 255, 0.07); background: transparent; color: inherit; font-size: 0.72rem; }
.admin-page .admin-table thead th { color: rgba(220, 231, 242, 0.42); font-size: 0.62rem; letter-spacing: 0.05em; text-transform: uppercase; }
.admin-page .admin-table tbody tr:hover td { background: rgba(143, 201, 223, 0.025); }
.admin-page .admin-table .admin-link { color: #dff3fb; text-decoration: none; }
.admin-page .admin-table td small { display: block; margin-top: 0.15rem; color: rgba(220, 231, 242, 0.4); }
.admin-page .badge { border-radius: 4px; font-size: 0.6rem; font-weight: 750; }
.admin-page .admin-pagination .pagination { margin-bottom: 0; }
.admin-page .admin-pagination .page-link { border-color: rgba(255, 255, 255, 0.1); background: var(--admin-panel); color: rgba(220, 231, 242, 0.65); font-size: 0.7rem; }

.admin-back-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-bottom: 1rem; color: var(--admin-accent); font-size: 0.72rem; font-weight: 750; text-decoration: none; }
.admin-back-link svg { width: 14px; height: 14px; }
.admin-panel .text-muted { color: rgba(220, 231, 242, 0.46) !important; font-size: 0.74rem; }

.admin-job-grid .admin-job-note { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.55rem; padding: 0.75rem 0.9rem; border-left: 2px solid var(--admin-accent); background: rgba(143, 201, 223, 0.04); color: rgba(220, 231, 242, 0.55); font-size: 0.72rem; }
.admin-job-note svg { width: 16px; height: 16px; color: var(--admin-accent); }

@media (max-width: 991px) {
  .admin-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .admin-hero-row { align-items: flex-start; flex-direction: column; gap: 0.8rem; padding: 1.2rem 0 1rem; }
  .admin-stat-grid,
  .admin-dashboard-grid,
  .admin-job-grid { grid-template-columns: 1fr; }
  .admin-stat-grid { gap: 0.5rem; }
  .admin-stat { grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; }
  .admin-stat > svg { grid-row: auto; }
  .admin-stat strong { font-size: 1rem; }
  .admin-job-grid .admin-job-note { grid-column: 1; }
}

/* Player mastery and secret achievements */
.player-achievement-kicker {
  margin: 0 0 0.22rem;
  color: #8fc9df;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.true-mastery-intro,
.secret-achievements-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.true-mastery-intro {
  padding: 1.1rem;
  border: 1px solid rgba(143, 201, 223, 0.16);
  border-radius: 7px;
  background: #111a26;
}

.true-mastery-intro h2,
.secret-achievements-head h2 {
  margin: 0;
  color: #f3f8fb;
  font-size: 1.05rem;
  font-weight: 800;
}

.true-mastery-intro span,
.secret-achievements-head span {
  color: rgba(220, 231, 242, 0.52);
  font-size: 0.74rem;
}

.true-mastery-count,
.secret-achievements-head > strong {
  flex: 0 0 auto;
  padding: 0.4rem 0.58rem;
  border: 1px solid rgba(143, 201, 223, 0.2);
  border-radius: 5px;
  color: #bfe4f1 !important;
  font-size: 0.68rem !important;
  white-space: nowrap;
}

.mastery-legend {
  color: rgba(220, 231, 242, 0.4);
  font-size: 0.62rem;
}

.player-achievement-main {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.nearest-achievements-card { position: sticky; top: 0.75rem; }

.achievement-category-list { gap: 0.55rem; }

.achievement-category {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.018);
}

.achievement-category summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  gap: 0.75rem;
  align-items: center;
  min-height: 46px;
  padding: 0.65rem 0.8rem;
  color: #edf5f8;
  cursor: pointer;
  list-style: none;
}

.achievement-category summary::-webkit-details-marker { display: none; }
.achievement-category summary:hover { background: rgba(143, 201, 223, 0.04); }
.achievement-category summary:focus-visible { outline: 2px solid #62b4d1; outline-offset: -2px; }

.achievement-category-title {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 800;
}

.achievement-category-title svg { width: 16px; height: 16px; color: #8fc9df; }
.achievement-category-count { color: rgba(220, 231, 242, 0.48); font-size: 0.65rem; font-weight: 750; }
.achievement-category-chevron { width: 16px; height: 16px; color: rgba(220, 231, 242, 0.42); transition: transform 0.16s ease; }
.achievement-category[open] .achievement-category-chevron { transform: rotate(180deg); }

.achievement-category-rows {
  display: grid;
  gap: 0.5rem;
  padding: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.achievement-category-rows .skill-mastery-bar {
  padding: 0.68rem 0.75rem;
  border-radius: 6px;
  box-shadow: none;
}

.achievements-modern-tab .player-achievement-card,
.achievements-modern-tab .nearest-achievement-item,
.achievements-modern-tab .skill-mastery-bar {
  border-radius: 7px;
}

.skill-mastery-skill small {
  display: block;
  margin-top: 0.12rem;
  color: rgba(220, 231, 242, 0.42);
  font-size: 0.63rem;
}

.mastery-milestones {
  display: grid;
  grid-template-columns: repeat(9, minmax(34px, 1fr));
  gap: 0.32rem;
}

.mastery-milestone {
  display: grid;
  min-height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(220, 231, 242, 0.34);
  font-size: 0.58rem;
  font-weight: 800;
  cursor: help;
}

.mastery-milestone.is-earned {
  border-color: rgba(103, 207, 137, 0.38);
  background: rgba(103, 207, 137, 0.1);
  color: #a8e8ba;
}

.secret-achievements-panel {
  padding: 1.1rem;
  border: 1px solid rgba(143, 201, 223, 0.16);
  border-radius: 7px;
  background: #111a26;
}

.secret-achievements-head {
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.secret-achievements-head > div:nth-child(2) { flex: 1; }
.secret-achievements-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(143, 201, 223, 0.24);
  border-radius: 6px;
  background: rgba(143, 201, 223, 0.07);
  color: #8fc9df;
}
.secret-achievements-mark svg { width: 18px; height: 18px; }

.secret-achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.secret-achievement {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}

.secret-achievement.is-locked { opacity: 0.74; }
.secret-achievement.is-unlocked { border-color: rgba(143, 201, 223, 0.3); background: rgba(143, 201, 223, 0.055); }
.secret-achievement-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 5px;
  background: rgba(143, 201, 223, 0.08);
  color: #8fc9df;
}
.secret-achievement-icon svg { width: 16px; height: 16px; }
.secret-achievement h3 { margin: 0 0 0.18rem; color: #edf5f8; font-size: 0.76rem; font-weight: 800; }
.secret-achievement p { margin: 0; color: rgba(220, 231, 242, 0.48); font-size: 0.65rem; line-height: 1.35; }
.secret-achievement-hint-label { display: block; margin-bottom: 0.14rem; color: #8fc9df; font-size: 0.56rem; font-weight: 800; text-transform: uppercase; }
.secret-achievement time { display: block; margin-top: 0.25rem; color: #8fc9df; font-size: 0.6rem; }
.secret-achievement-state { color: rgba(220, 231, 242, 0.38); font-size: 0.58rem !important; font-weight: 800; text-transform: uppercase; }
.secret-achievement.is-unlocked .secret-achievement-state { color: #8fc9df; }
.player-activity-icon.is-secret { display: grid; place-items: center; border: 1px solid rgba(143, 201, 223, 0.28); background: rgba(143, 201, 223, 0.08); color: #8fc9df; }
.player-activity-icon.is-secret svg { width: 18px; height: 18px; }

@media (max-width: 991px) {
  .nearest-achievements-card { position: static; }
  .secret-achievement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .true-mastery-intro,
  .secret-achievements-head { align-items: flex-start; flex-wrap: wrap; }
  .true-mastery-count,
  .secret-achievements-head > strong { margin-left: 0; }
  .mastery-legend { display: none; }
  .achievement-category summary { gap: 0.5rem; padding-inline: 0.65rem; }
  .achievement-category-rows { padding: 0.55rem; }
  .achievement-category-rows .skill-mastery-bar { padding: 0.65rem; }
  .mastery-milestones { grid-template-columns: repeat(5, minmax(38px, 1fr)); }
  .secret-achievement-grid { grid-template-columns: 1fr; }
}

/* Unified player tracker surfaces */
.player-page {
  --tracker-panel: #111a26;
  --tracker-row: #0e1722;
  --tracker-row-alt: #101b27;
  --tracker-border: rgba(255, 255, 255, 0.1);
  --tracker-divider: rgba(255, 255, 255, 0.075);
  --tracker-hover: rgba(143, 201, 223, 0.07);
  --tracker-selected: rgba(98, 180, 209, 0.14);
  --tracker-gap: 0.8rem;
}

.player-page .tab-content > .player-gained-tab.active,
.player-page .tab-content > .player-activity-tab.active,
.player-page .tab-content > .achievements-modern-tab.active {
  display: grid;
  gap: var(--tracker-gap);
}

.player-page .player-data-hub,
.player-page .player-overview-right,
.player-page .player-gained-left,
.player-page .player-gained-right,
.player-page .player-achievement-main {
  gap: var(--tracker-gap);
}

.player-page :is(.player-closest-panel, .nearest-achievements-card) {
  position: sticky;
  top: calc(70px + var(--tracker-gap));
  z-index: 2;
}

.player-page .player-overview-grid,
.player-page .player-gained-layout,
.player-page .player-achievement-layout {
  gap: var(--tracker-gap);
  margin-bottom: 0 !important;
}

.player-page .player-closest-panel,
.player-page .player-current-panel,
.player-page .player-gained-panel,
.player-page .player-achievement-card,
.player-page .player-activity-card,
.player-page .player-page-content .player-achievement-card,
.player-page .player-page-content .player-activity-card,
.player-page .true-mastery-intro,
.player-page .secret-achievements-panel {
  border: 1px solid var(--tracker-border) !important;
  border-radius: 7px !important;
  background: var(--tracker-panel) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.player-page .player-closest-panel,
.player-page .player-current-panel,
.player-page .player-gained-panel,
.player-page .true-mastery-intro,
.player-page .secret-achievements-panel {
  padding: 0.85rem;
}

.player-page .player-page-content .player-achievement-card .card-body,
.player-page .player-page-content .player-activity-card .card-body,
.player-page .player-achievement-card .card-body,
.player-page .player-activity-card .card-body {
  padding: 0.85rem;
}

.player-page :is(.player-panel-head, .player-current-head, .player-achievement-head),
.player-page .player-activity-card .card-body > .d-flex:first-child,
.player-page .secret-achievements-head {
  min-height: 34px;
  margin-bottom: 0.75rem !important;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--tracker-divider);
}

.player-page :is(.player-panel-head, .player-current-head, .player-achievement-head) h6,
.player-page .player-activity-card h6,
.player-page .secret-achievements-head h2 {
  margin: 0;
  color: #edf5f8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.player-page :is(.player-current-subtitle, .mastery-legend) {
  color: rgba(220, 231, 242, 0.46);
  font-size: 0.66rem;
}

.player-page :is(.player-overview-kpi, .achievement-summary-card, .player-gained-calculator-result) {
  border: 1px solid var(--tracker-border);
  border-radius: 6px;
  background: var(--tracker-row);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.player-page :is(.closest120-card, .nearest-achievement-item, .skill-mastery-bar, .secret-achievement) {
  border-top-color: var(--tracker-border);
  border-right-color: var(--tracker-border);
  border-bottom-color: var(--tracker-border);
  border-radius: 6px;
  background: var(--tracker-row);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.player-page :is(.closest120-card, .nearest-achievement-item, .skill-mastery-bar, .secret-achievement):hover {
  background: var(--tracker-hover);
}

.player-page .secret-achievement.is-unlocked {
  border-color: rgba(103, 207, 137, 0.34);
  background: rgba(103, 207, 137, 0.08);
}

.player-page .secret-achievement.is-unlocked:hover {
  background: rgba(103, 207, 137, 0.12);
}

.player-page .secret-achievement.is-unlocked .secret-achievement-icon {
  background: rgba(103, 207, 137, 0.14);
  color: #a8e8ba;
}

.player-page .secret-achievement.is-unlocked h3,
.player-page .secret-achievement.is-unlocked time,
.player-page .secret-achievement.is-unlocked .secret-achievement-state {
  color: #a8e8ba;
}

.player-page .milestone-skill-icon {
  border-radius: 5px;
  background: var(--tracker-row-alt);
}

.player-page .closest120-progress {
  background: conic-gradient(var(--player-action) calc(var(--closest-progress) * 1%), rgba(255, 255, 255, 0.12) 0);
}

.player-page .closest120-progress::before { background: var(--tracker-row); }
.player-page .nearest-achievement-progress-fill { background: var(--player-action); }

.player-page .gains-table-wrap,
.player-page .player-gained-panel .gains-table-wrap {
  border: 1px solid var(--tracker-border);
  border-radius: 6px;
  background: var(--tracker-row);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.player-page .player-data-table thead th {
  border-bottom-color: var(--tracker-border);
  background: #14202d;
  color: rgba(220, 231, 242, 0.58);
}

.player-page .player-data-table tbody td {
  border-bottom-color: var(--tracker-divider);
  background: var(--tracker-row);
}

.player-page .player-data-table tbody tr:nth-child(even) td { background: var(--tracker-row-alt); }
.player-page .player-data-table tbody tr:hover td { background: var(--tracker-hover); }
.player-page .gained-skill-table tbody tr.is-active td,
.player-page .gained-skill-table tbody tr.is-active:nth-child(even) td,
.player-page .gained-skill-table tbody tr.is-active:hover td { background: var(--tracker-selected); }

.player-page .achievement-category {
  border-color: var(--tracker-border);
  background: var(--tracker-row);
}

.player-page .achievement-category summary:hover { background: var(--tracker-hover); }
.player-page .achievement-category-rows { border-top-color: var(--tracker-divider); }

@media (max-width: 767px) {
  .player-page { --tracker-gap: 0.65rem; }
  .player-page .player-closest-panel,
  .player-page .player-current-panel,
  .player-page .player-gained-panel,
  .player-page .true-mastery-intro,
  .player-page .secret-achievements-panel { padding: 0.7rem; }
}

@media (max-width: 991px) {
  .player-page :is(.player-closest-panel, .nearest-achievements-card) {
    position: static;
  }
}

.achievement-unlock-toast {
  width: min(390px, calc(100vw - 2rem));
  border: 1px solid rgba(143, 201, 223, 0.3) !important;
  border-radius: 7px;
  background: #111a26 !important;
  color: #dce7f2;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.achievement-unlock-toast .toast-body { min-width: 0; padding: 0.85rem; }
.achievement-unlock-toast .btn-close { flex: 0 0 auto; filter: invert(1); opacity: 0.55; }

.achievement-toast-heading {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.achievement-toast-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(143, 201, 223, 0.28);
  border-radius: 6px;
  background: rgba(143, 201, 223, 0.08);
  color: #8fc9df;
}

.achievement-toast-mark svg { width: 17px; height: 17px; }
.achievement-toast-heading strong { display: block; color: #f3f8fb; font-size: 0.82rem; }
.achievement-toast-heading div > span { display: block; margin-top: 0.1rem; color: rgba(220, 231, 242, 0.5); font-size: 0.67rem; }

.achievement-toast-list {
  display: grid;
  gap: 0;
  max-height: 220px;
  margin: 0.75rem 0 0;
  padding: 0;
  overflow-y: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  list-style: none;
}

.achievement-toast-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  color: #e5eef3;
  font-size: 0.74rem;
}

.achievement-toast-list li:last-child { border-bottom: 0; }
.achievement-toast-list li > svg { width: 15px; height: 15px; color: #8fc9df; }
.achievement-toast-list small { color: #8fc9df; font-size: 0.58rem; font-weight: 800; text-transform: uppercase; }

.tracker-completion-celebration {
  position: relative;
  display: grid;
  justify-items: center;
  overflow: hidden;
  padding: 1.15rem 0.9rem 1rem;
  border: 1px solid rgba(214, 181, 91, 0.34);
  border-radius: 7px;
  background: #0e1722;
  text-align: center;
  animation: tracker-celebration-arrive 0.45s ease-out both;
}

.tracker-completion-celebration::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: #d6b55b;
}

.tracker-completion-emblem {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 0.6rem;
  place-items: center;
  border: 1px solid rgba(214, 181, 91, 0.42);
  border-radius: 7px;
  background: rgba(214, 181, 91, 0.1);
  color: #e2c66f;
  box-shadow: 0 0 0 5px rgba(214, 181, 91, 0.045);
}

.tracker-completion-emblem svg { width: 23px; height: 23px; }

.tracker-completion-eyebrow {
  margin-bottom: 0.22rem;
  color: #8fc9df;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tracker-completion-celebration > strong {
  color: #fff4cf;
  font-size: 0.93rem;
  line-height: 1.2;
}

.tracker-completion-celebration > p {
  max-width: 290px;
  margin: 0.42rem 0 0.75rem;
  color: rgba(220, 231, 242, 0.58);
  font-size: 0.7rem;
  line-height: 1.45;
}

.tracker-completion-stat {
  display: inline-flex;
  gap: 0.38rem;
  align-items: center;
  padding: 0.38rem 0.55rem;
  border: 1px solid rgba(143, 201, 223, 0.2);
  border-radius: 5px;
  background: rgba(143, 201, 223, 0.06);
  color: #bfe4f1;
  font-size: 0.62rem;
  font-weight: 750;
}

.tracker-completion-stat svg { width: 13px; height: 13px; }

.tracker-completion-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tracker-completion-confetti i {
  position: absolute;
  width: 5px;
  height: 10px;
  border-radius: 1px;
  background: #d6b55b;
  animation: tracker-confetti-arrive 0.65s ease-out both;
}

.tracker-completion-confetti i:nth-child(1) { top: 15%; left: 10%; transform: rotate(-24deg); }
.tracker-completion-confetti i:nth-child(2) { top: 29%; left: 18%; height: 6px; background: #62b4d1; transform: rotate(38deg); animation-delay: 0.08s; }
.tracker-completion-confetti i:nth-child(3) { top: 12%; right: 12%; background: #67cf89; transform: rotate(27deg); animation-delay: 0.14s; }
.tracker-completion-confetti i:nth-child(4) { top: 31%; right: 19%; height: 6px; background: #8fc9df; transform: rotate(-42deg); animation-delay: 0.2s; }
.tracker-completion-confetti i:nth-child(5) { bottom: 18%; left: 9%; height: 7px; background: #67cf89; transform: rotate(52deg); animation-delay: 0.12s; }
.tracker-completion-confetti i:nth-child(6) { right: 8%; bottom: 20%; height: 7px; transform: rotate(-34deg); animation-delay: 0.18s; }

@keyframes tracker-celebration-arrive {
  from { opacity: 0; transform: translateY(6px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes tracker-confetti-arrive {
  from { opacity: 0; translate: 0 -10px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tracker-completion-celebration,
  .tracker-completion-confetti i { animation: none; }
}



