/* ==========================================================================
   PuckPathway Hockey OS - Stylesheet
   ========================================================================== */

:root {
  --bg-primary: #06090e;
  --bg-secondary: #0b111c;
  --bg-card: rgba(15, 23, 42, 0.85);
  --border-color: rgba(56, 189, 248, 0.25);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --accent-sky: #38bdf8;
  --accent-blue: #2563eb;
  --accent-emerald: #10b981;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-sky);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

/* TOP MISSION BANNER */
.mission-banner {
  background: rgba(11, 17, 28, 0.95);
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.mission-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mission-tag {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  font-family: monospace;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.65rem;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* TOP NAVBAR REDESIGN */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.65rem 1.5rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

body.dark .top-nav,
body.dark-mode .top-nav {
  background: rgba(6, 9, 14, 0.92);
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  white-space: nowrap !important;
  flex-shrink: 0;
  color: #0f172a;
}

body.dark .nav-brand,
body.dark-mode .nav-brand {
  color: #ffffff;
}

.nav-brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1.5px solid rgba(56, 189, 248, 0.6);
  object-fit: cover;
  flex-shrink: 0;
}

.nav-brand-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-family: monospace;
  font-weight: 800;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(2, 132, 199, 0.3);
  padding: 1px 6px;
  border-radius: 6px;
  margin-left: 0.35rem;
  vertical-align: middle;
}

body.dark .nav-brand-badge,
body.dark-mode .nav-brand-badge {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.4);
}

/* Nav Role Group (4 Fast Role Portals) */
.nav-role-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(241, 245, 249, 0.85);
  padding: 0.25rem 0.4rem;
  border-radius: 9999px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  flex-shrink: 0;
}

body.dark .nav-role-group,
body.dark-mode .nav-role-group {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(51, 65, 85, 0.7);
}

.nav-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap !important;
  transition: all 0.15s ease;
}

.nav-role-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.nav-role-pill.pill-athlete {
  color: #0369a1;
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.25);
}
body.dark .nav-role-pill.pill-athlete,
body.dark-mode .nav-role-pill.pill-athlete {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
}

.nav-role-pill.pill-parent {
  color: #be185d;
  background: rgba(219, 39, 119, 0.1);
  border: 1px solid rgba(219, 39, 119, 0.25);
}
body.dark .nav-role-pill.pill-parent,
body.dark-mode .nav-role-pill.pill-parent {
  color: #f472b6;
  background: rgba(244, 114, 182, 0.12);
  border-color: rgba(244, 114, 182, 0.3);
}

.nav-role-pill.pill-coach {
  color: #4338ca;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
}
body.dark .nav-role-pill.pill-coach,
body.dark-mode .nav-role-pill.pill-coach {
  color: #818cf8;
  background: rgba(129, 140, 248, 0.12);
  border-color: rgba(129, 140, 248, 0.3);
}

.nav-role-pill.pill-scout {
  color: #b45309;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
body.dark .nav-role-pill.pill-scout,
body.dark-mode .nav-role-pill.pill-scout {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
}

/* Nav Platform Links */
.nav-center-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}

.nav-link-item {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap !important;
  color: #475569;
  transition: color 0.15s ease;
}

.nav-link-item:hover {
  color: #0284c7;
  text-decoration: none;
}

body.dark .nav-link-item,
body.dark-mode .nav-link-item {
  color: #94a3b8;
}
body.dark .nav-link-item:hover,
body.dark-mode .nav-link-item:hover {
  color: #38bdf8;
}

/* Nav Actions (CTA Buttons) */
.nav-actions-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap !important;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.nav-btn-ghost {
  background: transparent;
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.5);
}
.nav-btn-ghost:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0284c7;
}

body.dark .nav-btn-ghost,
body.dark-mode .nav-btn-ghost {
  color: #f1f5f9;
  border-color: rgba(71, 85, 105, 0.7);
}
body.dark .nav-btn-ghost:hover,
body.dark-mode .nav-btn-ghost:hover {
  background: rgba(30, 41, 59, 0.8);
  color: #38bdf8;
}

.nav-btn-primary {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff !important;
  border: 1px solid #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}
.nav-btn-primary:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

.nav-btn-secondary {
  background: #0f172a;
  color: #ffffff !important;
  border: 1px solid #1e293b;
}
.nav-btn-secondary:hover {
  background: #1e293b;
  transform: translateY(-1px);
}
body.dark .nav-btn-secondary,
body.dark-mode .nav-btn-secondary {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(56, 189, 248, 0.4);
}

/* Fallback for legacy .nav-links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: nowrap;
}
.nav-links a,
.nav-links button {
  white-space: nowrap !important;
}

/* HERO SECTION - GUARANTEED BLUE OR BLACK WORDING */
.hero {
  padding: 4.25rem 1.5rem 3.5rem;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 15%, rgba(2, 132, 199, 0.08) 0%, rgba(248, 250, 252, 0) 70%);
}

body.dark .hero,
body.dark-mode .hero {
  background: radial-gradient(circle at 50% 15%, rgba(56, 189, 248, 0.15) 0%, rgba(6, 9, 14, 0) 70%);
}

.hero-content {
  max-width: 880px;
  margin: 0 auto;
}

/* Hero Title - Explicitly Dark Blue & Black */
.hero h1,
.hero-title {
  font-size: 3.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  color: #0b192c !important; /* Bold deep black-blue text */
  -webkit-text-fill-color: initial !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hero h1 .hero-blue-accent,
.hero-blue-accent {
  color: #0284c7 !important; /* Vibrant hockey blue text */
  -webkit-text-fill-color: initial !important;
}

@media (max-width: 640px) {
  .hero h1,
  .hero-title {
    font-size: 2.2rem;
  }
}

/* Hero Subtitle - Crisp Dark Slate Black Text */
.hero p,
.hero-subtitle {
  font-size: 1.25rem;
  color: #1e293b !important; /* Crisp dark slate / black text */
  font-weight: 600;
  line-height: 1.6;
  margin: 0 auto 2rem auto;
  max-width: 820px;
}

body.dark .hero h1,
body.dark-mode .hero h1 {
  color: #f8fafc !important;
}
body.dark .hero h1 .hero-blue-accent,
body.dark-mode .hero h1 .hero-blue-accent {
  color: #38bdf8 !important;
}
body.dark .hero p,
body.dark-mode .hero p {
  color: #cbd5e1 !important;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 1rem;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  font-family: inherit;
}

.btn.primary {
  background: #007bff;
  color: #fff;
  padding: 10px 15px;
  border-radius: 6px;
  border: none;
}

.btn.primary:hover {
  background: #0069d9;
  transform: translateY(-1px);
}

.btn.secondary {
  background: rgba(15, 23, 42, 0.85);
  color: #f1f5f9;
  border: 1px solid rgba(71, 85, 105, 0.7);
}

.btn.secondary:hover {
  background: rgba(30, 41, 59, 0.95);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
}

.btn.demo {
  background: rgba(6, 78, 59, 0.5);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.btn.demo:hover {
  background: rgba(6, 78, 59, 0.8);
  color: #a7f3d0;
  transform: translateY(-2px);
}

/* SECTIONS */
.section {
  padding: 4.5rem 1.5rem;
  max-width: 1150px;
  margin: 0 auto;
}

.section h2 {
  font-size: 2.25rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  color: #0b192c;
}

body.dark .section h2,
body.dark-mode .section h2 {
  color: #ffffff;
}

.section > p {
  text-align: center;
  color: #334155;
  font-size: 1.05rem;
  margin: 0 0 2.75rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

body.dark .section > p,
body.dark-mode .section > p {
  color: #94a3b8;
}

/* BLURRED DASHBOARD TEASER */
.dashboard-teaser,
.section.blurred-dashboard {
  padding: 4.5rem 1.5rem;
  max-width: 1150px;
  margin: 0 auto;
}

.dashboard-teaser h2 {
  font-size: 2.25rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  color: #0b192c;
}

body.dark .dashboard-teaser h2,
body.dark-mode .dashboard-teaser h2 {
  color: #ffffff;
}

.dashboard-teaser > p {
  text-align: center;
  color: #334155;
  font-size: 1.05rem;
  margin: 0 0 2.75rem;
}

body.dark .dashboard-teaser > p,
body.dark-mode .dashboard-teaser > p {
  color: #94a3b8;
}

.locked { opacity: 0.6; position: relative; }
.lock-icon { font-size: 20px; font-weight: bold; }

.feature-grid, .dashboard-grid, .demo-stats-grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.feature-card, .dash-box, .demo-stat, .social-post, .combine-test {
  padding: 15px;
  background: #f3f3f3;
  border-radius: 8px;
  margin-bottom: 10px;
  color: #1e293b;
}

.dashboard-blur {
  filter: blur(3px);
  position: relative;
}

.blur-overlay {
  position: absolute;
  top: 40%;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}

.blur-overlay p,
.overlay p {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.preview-card .card-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-family: monospace;
  color: var(--accent-sky);
  margin-bottom: 0.5rem;
}

.preview-card .card-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

/* DEMO PLAYER PREVIEW */
.demo-player {
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
}

.demo-player-preview {
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
}

.demo-player-card,
.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.75rem;
  padding: 2.5rem;
  max-width: 850px;
  margin: 0 auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.demo-player-card h3,
.demo-card h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.demo-badge {
  font-size: 0.75rem;
  font-family: monospace;
  background: rgba(56, 189, 248, 0.2);
  color: var(--accent-sky);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.demo-player-card > p,
.demo-card > p {
  color: var(--text-secondary);
  margin: 0 0 1.75rem;
  font-size: 1rem;
}

.demo-locked,
.demo-stats.locked {
  position: relative;
  background: rgba(11, 17, 28, 0.95);
  border: 1px dashed rgba(56, 189, 248, 0.4);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.demo-locked p,
.demo-stats.locked p {
  margin: 0.5rem 0 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: #f1f5f9;
}

.demo-stats-grid {
  margin-top: 1rem;
}

.demo-stat {
  text-align: center;
  font-family: monospace;
  font-weight: 700;
  font-size: 0.95rem;
}

/* LOCKED FEATURE CARDS */
.feature-card.locked {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.feature-card.locked:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  color: #0f172a;
}

.feature-card p {
  color: #475569;
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.feature-card .lock-icon {
  font-size: 0.85rem;
  font-weight: 700;
  font-family: monospace;
  color: var(--accent-sky);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  text-decoration: none;
  animation: none;
}

.feature-card .lock-icon:hover {
  color: #bae6fd;
}

/* WHY SECTION */
.why-section,
.why {
  background: rgba(15, 23, 42, 0.4);
  border-radius: 2.25rem;
  border: 1px solid rgba(51, 65, 85, 0.5);
  padding: 4rem 2rem;
  margin: 2rem auto 4rem;
  max-width: 1150px;
}

.why-section h2,
.why h2 {
  font-size: 2.25rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.why-list,
.why ul {
  list-style: none;
  padding: 0;
  margin: 2rem auto 0;
  max-width: 650px;
}

.why-list li,
.why li {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f1f5f9;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 1rem;
  border-left: 4px solid var(--accent-sky);
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.why-list li:hover,
.why li:hover {
  transform: translateX(4px);
  background: rgba(30, 41, 59, 0.8);
}

.why-list li::before,
.why li::before {
  content: "⚡";
  margin-right: 0.85rem;
  font-size: 1.2rem;
}

/* FOOTER */
.site-footer,
.footer {
  border-top: 1px solid rgba(51, 65, 85, 0.6);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  background: #04060a;
}

.site-footer p,
.footer p {
  margin: 0 0 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-nav,
.footer nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-nav a,
.footer nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-family: monospace;
  transition: color 0.2s;
}

.footer-nav a:hover,
.footer nav a:hover {
  color: var(--accent-sky);
}

.footer-mission {
  max-width: 800px;
  margin: 1.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(51, 65, 85, 0.3);
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.6;
}

/* AUTH PAGES */
.auth-page {
  max-width: 440px;
  margin: 3.5rem auto 4rem;
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  text-align: center;
  position: relative;
}

.auth-page h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0 0 1.5rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: left;
}

.auth-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: -0.65rem;
}

.auth-form input,
.auth-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  background: rgba(11, 17, 28, 0.95);
  border: 1px solid rgba(71, 85, 105, 0.7);
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.auth-form input:focus,
.auth-form select:focus {
  border-color: var(--accent-sky);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.auth-form .btn.primary {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem;
  font-size: 1rem;
  border-radius: 0.85rem;
}

.auth-page p {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auth-page a {
  color: var(--accent-sky);
  text-decoration: none;
  font-weight: 600;
}

.auth-page a:hover {
  text-decoration: underline;
}

/* QUICK PERSONAS COMPONENT */
.quick-personas {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(51, 65, 85, 0.4);
  text-align: left;
}

.quick-personas-title {
  font-size: 0.75rem;
  font-family: monospace;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.persona-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.persona-chip {
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(71, 85, 105, 0.4);
  color: #e2e8f0;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.persona-chip:hover {
  border-color: var(--accent-sky);
  background: rgba(30, 41, 59, 0.95);
  transform: translateY(-1px);
}

/* APP SHELL & DASHBOARD */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.5rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.app-header .logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.player-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #f1f5f9;
}

.tier-badge {
  background: rgba(56, 189, 248, 0.2);
  color: var(--accent-sky);
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-family: monospace;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.app-tabs,
.app-nav {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(11, 17, 28, 0.95);
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  overflow-x: auto;
  scrollbar-width: none;
}

.app-tabs::-webkit-scrollbar,
.app-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn,
.nav-btn {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(71, 85, 105, 0.4);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1.1rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn:hover,
.nav-btn:hover {
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.4);
}

.tab-btn.active {
  background: #222;
  color: #fff;
  border-color: #444;
}

.nav-btn.active {
  background: #222;
  color: #fff;
}

.app-main {
  max-width: 900px;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
}

.app-view {
  display: none;
  padding: 20px;
}

.app-view.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-view h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 1.5rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.app-view h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #e2e8f0;
}

/* SECTION CARDS IN APP */
.tier-section,
.xp-section,
.skills-rings,
.missions-preview,
.highlight-preview,
.skill-tree,
.video-item,
.profile-header,
.profile-stats,
.combine-results,
.highlight-reel,
.share-link,
.iq-scenario,
.combine-test,
.post-composer,
.social-post,
.settings-section,
.ar-card,
.upload-area,
.analysis-output,
.tier-ladder,
.tier-requirements,
.goalie-tree,
.pathway-card,
.levelup-rewards,
.friend-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.upload-area input[type="file"] {
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
  padding: 0.65rem 0.85rem;
  background: rgba(11, 17, 28, 0.9);
  border: 1px dashed rgba(56, 189, 248, 0.5);
  border-radius: 0.75rem;
  color: #cbd5e1;
  font-size: 0.9rem;
  cursor: pointer;
}

.upload-area h3,
.analysis-output h3 {
  margin: 0 0 0.5rem;
  color: #ffffff;
  font-size: 1.25rem;
}

.analysis-output p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

.ar-card h3 {
  margin: 0 0 0.5rem;
  color: #ffffff;
  font-size: 1.25rem;
}

.ar-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.settings-section h3 {
  margin: 0 0 0.75rem;
  color: #ffffff;
  font-size: 1.25rem;
}

.settings-section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
}

.settings-section label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(71, 85, 105, 0.4);
  border-radius: 0.65rem;
  color: #f1f5f9;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.settings-section label:hover {
  background: rgba(30, 41, 59, 0.75);
  border-color: var(--accent-sky);
}

.settings-section input[type="checkbox"] {
  accent-color: var(--accent-sky);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.post-composer textarea {
  width: 100%;
  height: 80px;
  box-sizing: border-box;
  margin-bottom: 10px;
  background: rgba(11, 17, 28, 0.9);
  border: 1px solid rgba(71, 85, 105, 0.6);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  outline: none;
  transition: all 0.2s ease;
}

.post-composer textarea:focus {
  border-color: var(--accent-sky);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.social-post h3 {
  font-size: 1.15rem;
  color: #ffffff;
  margin: 0 0 0.4rem;
}

.social-post p {
  color: #e2e8f0;
  font-size: 0.95rem;
  margin: 0 0 0.85rem;
}

.social-post span {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f59e0b;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(245, 158, 11, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.social-post span:hover {
  transform: scale(1.05);
  background: rgba(245, 158, 11, 0.25);
}

.combine-test h3 {
  margin: 0 0 0.5rem;
  color: #ffffff;
  font-size: 1.25rem;
}

.combine-test p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 0.85rem;
}

.combine-test input {
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  background: rgba(11, 17, 28, 0.9);
  border: 1px solid rgba(71, 85, 105, 0.6);
  border-radius: 0.75rem;
  color: #ffffff;
  font-size: 0.95rem;
  font-family: monospace;
  outline: none;
  transition: all 0.2s ease;
}

.combine-test input:focus {
  border-color: var(--accent-sky);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.iq-options {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.iq-options li {
  padding: 0.85rem 1.15rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(71, 85, 105, 0.5);
  border-radius: 0.75rem;
  color: #f1f5f9;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.iq-options li:hover {
  border-color: var(--accent-sky);
  background: rgba(30, 41, 59, 0.95);
  transform: translateX(4px);
}

.iq-options li.selected-correct {
  border-color: #10b981;
  background: rgba(6, 78, 59, 0.5);
  color: #6ee7b7;
}

.iq-options li.selected-incorrect {
  border-color: #ef4444;
  background: rgba(127, 29, 29, 0.4);
  color: #fca5a5;
}

.iq-feedback {
  background: rgba(11, 17, 28, 0.8);
  border: 1px dashed rgba(56, 189, 248, 0.35);
  border-radius: 0.75rem;
  padding: 0.85rem 1.15rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.iq-feedback p {
  margin: 0;
}

.tier-section p,
.profile-header p {
  color: #38bdf8;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.xp-bar {
  width: 100%;
  height: 12px;
  background: #ddd;
  border-radius: 6px;
  overflow: hidden;
  margin: 0.75rem 0 0.5rem;
}

.xp-fill {
  height: 12px;
  background: #4caf50;
  border-radius: 6px;
  transition: width 0.4s ease;
}

.xp-bar.animated .xp-fill {
  transition: width 1s ease;
}

.animated .xp-fill {
  transition:width 1s ease;
}

.xp-fill[data-fill="60"] {
  width: 60%;
}

.skills-rings ul,
.missions-preview ul,
.skill-tree ul,
.goalie-tree ul,
.pathway-card ul,
#view-iq ul,
#view-missions ul,
#view-dailymissions ul,
#view-xp ul,
#view-goalie ul,
#view-pathways ul,
#view-levelup ul,
.levelup-rewards ul,
#view-compare ul,
.compare-grid ul,
.mission-list,
.profile-stats ul,
.combine-results ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-rings li,
.missions-preview li,
.skill-tree li,
.goalie-tree li,
.pathway-card li,
#view-iq li,
#view-missions li,
#view-dailymissions li,
#view-xp li,
#view-goalie li,
#view-pathways li,
#view-levelup li,
.levelup-rewards li,
#view-compare li,
.compare-grid li,
.mission-list li,
.profile-stats li,
.combine-results li {
  padding: 0.65rem 0.95rem;
  margin-bottom: 0.5rem;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 0.75rem;
  font-size: 0.95rem;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mission-list li {
  cursor: pointer;
  transition: all 0.2s ease;
}

.mission-list li:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(56, 189, 248, 0.4);
}

.mission-list li.completed {
  opacity: 0.6;
  text-decoration: line-through;
}

.skills-rings li::before {
  content: "⚡";
  color: #38bdf8;
  margin-right: 0.5rem;
}

.missions-preview li::before {
  content: "🎯";
  margin-right: 0.5rem;
}

#view-missions li::before,
#view-dailymissions li::before,
.mission-list li::before {
  content: "✓";
  color: #10b981;
  font-weight: bold;
  margin-right: 0.5rem;
}

#view-xp li::before {
  content: "⭐";
  margin-right: 0.5rem;
}

#view-xp p {
  color: #38bdf8;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0.75rem 0 1.25rem;
}

#view-xp h3 {
  color: #ffffff;
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem;
}

#view-iq li::before {
  content: "🧠";
  margin-right: 0.5rem;
}

#view-goalie li::before,
.goalie-tree li::before {
  content: "🥅";
  margin-right: 0.5rem;
}

.goalie-tree h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#view-pathways li::before,
.pathway-card li::before {
  content: "🏒";
  margin-right: 0.5rem;
}

.pathway-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* BADGES VIEW */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.badge {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.25rem 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
  cursor: pointer;
}

.badge:hover {
  transform: translateY(-4px);
  border-color: var(--accent-sky);
  box-shadow: 0 15px 30px -5px rgba(56, 189, 248, 0.25);
  background: rgba(30, 41, 59, 0.85);
}

/* LEVEL UP VIEW */
#view-levelup h1 {
  color: #38bdf8;
  font-size: 2.25rem;
  text-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
  margin-bottom: 0.5rem;
}

#view-levelup > p {
  font-size: 1.25rem;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 1.5rem;
}

.levelup-rewards p {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.85rem;
}

#view-levelup li::before,
.levelup-rewards li::before {
  content: "🎁";
  margin-right: 0.5rem;
}

/* FRIENDS VIEW */
.friend-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.friend-card:hover {
  transform: translateX(4px);
  border-color: var(--accent-sky);
  background: rgba(30, 41, 59, 0.85);
}

.friend-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.friend-card h3::before {
  content: "👤";
  font-size: 1rem;
}

.friend-card p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
}

/* COMPARE VIEW */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.compare-grid > div {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.compare-grid > div:hover {
  border-color: var(--accent-sky);
  background: rgba(30, 41, 59, 0.85);
}

.compare-grid h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #38bdf8;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.compare-grid li::before,
#view-compare li::before {
  content: "📊";
  margin-right: 0.5rem;
}

/* PROFILE EDITOR VIEW */
#view-profileeditor {
  max-width: 600px;
}

#view-profileeditor label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
  margin: 1rem 0 0.4rem;
}

#view-profileeditor input[type="text"],
#view-profileeditor select,
#view-profileeditor textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  background: rgba(11, 17, 28, 0.9);
  border: 1px solid rgba(71, 85, 105, 0.6);
  color: #ffffff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
}

#view-profileeditor textarea {
  height: 100px;
  resize: vertical;
}

#view-profileeditor input[type="text"]:focus,
#view-profileeditor select:focus,
#view-profileeditor textarea:focus {
  border-color: var(--accent-sky);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

#view-profileeditor .btn.primary {
  margin-top: 1rem;
}

/* UPLOAD MANAGER VIEW */
#view-uploadmanager input[type="file"] {
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
  padding: 0.85rem 1rem;
  background: rgba(11, 17, 28, 0.9);
  border: 1px dashed rgba(56, 189, 248, 0.5);
  border-radius: 0.85rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  cursor: pointer;
  margin-bottom: 1.5rem;
  display: block;
}

.upload-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.upload-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.85rem;
  padding: 0.95rem 1.25rem;
  color: #f1f5f9;
  font-size: 0.95rem;
  font-family: monospace;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.upload-item::before {
  content: "🎬";
  font-size: 1.1rem;
}

.upload-item:hover {
  border-color: var(--accent-sky);
  background: rgba(30, 41, 59, 0.85);
  transform: translateX(4px);
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-item h3 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
  color: #ffffff;
}

.video-item p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.85rem;
  font-family: monospace;
}

/* TIER LADDER & PROGRESSION */
.tier-ladder {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tier-step {
  padding: 0.75rem 1.15rem;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(71, 85, 105, 0.4);
  border-radius: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.tier-step::before {
  content: "▫";
  color: #64748b;
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

.tier-step.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-sky);
  color: #38bdf8;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.tier-step.active::before {
  content: "⚡";
  color: #38bdf8;
  margin-right: 0.75rem;
}

.tier-requirements h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
  color: #ffffff;
}

.tier-requirements ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tier-requirements li {
  padding: 0.65rem 0.95rem;
  margin-bottom: 0.5rem;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 0.75rem;
  font-size: 0.95rem;
  color: #f1f5f9;
  display: flex;
  align-items: center;
}

.tier-requirements li::before {
  content: "🎯";
  margin-right: 0.75rem;
}

/* MODAL SYSTEM */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(11, 17, 28, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  margin: 12% auto;
  padding: 2.25rem 2rem;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
  text-align: center;
  position: relative;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-content h3 {
  margin: 0 0 1rem;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
}

.modal-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.modal-content .btn.primary {
  min-width: 120px;
  padding: 0.75rem 1.5rem;
}

/* COMPONENT BASELINE STYLES */
body { font-family:Arial; background:#fafafa; color:#222; }
h1,h2,h3 { margin-bottom:10px; }
ul { padding-left:20px; }
input,select,textarea { width:100%; padding:8px; margin-bottom:10px; border-radius:6px; border:1px solid #ccc; }
input,select,textarea { box-sizing:border-box; }

.app-view { display:none; padding:20px; }
.app-view.active { display:block; }

.badge-grid { display:grid; gap:10px; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); }
.badge { background:#eee; padding:10px; border-radius:6px; text-align:center; }

.friend-card, .pathway-card, .goalie-tree, .combine-test, .video-item {
  background:#f3f3f3; padding:15px; border-radius:8px; margin-bottom:10px;
}

.card { background:#f3f3f3; padding:15px; border-radius:8px; margin-bottom:10px; }
.grid { display:grid; gap:15px; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); }
.btn { padding:10px 15px; border-radius:6px; border:none; cursor:pointer; }
.btn.primary { background:#007bff; color:#fff; }
.btn.secondary { background:#555; color:#fff; }

.compare-grid { display:flex; gap:20px; }
.compare-table { width:100%; border-collapse:collapse; margin-top:15px; }
.compare-table th, .compare-table td { padding:10px 15px; text-align:left; border:1px solid #cbd5e1; }
.compare-table th { background:#f1f5f9; font-weight:700; color:#0f172a; }

.modal { display:none; position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.6); }
.modal-content { background:#fff; padding:20px; margin:100px auto; width:300px; border-radius:8px; }

.popup { display:none; position:fixed; bottom:20px; left:50%; transform:translateX(-50%); background:#222; color:#fff; padding:10px 20px; border-radius:6px; }
.popup { transition:opacity 0.3s ease; }
.notif-panel {
  background:#fff;
  padding:15px;
  border-radius:8px;
  margin-bottom:20px;
}
.fade { animation:fadeIn 0.5s ease; }
@keyframes fadeIn {
  from { opacity:0; }
  to { opacity:1; }
}
.modal-content { animation:popIn 0.3s ease; }
@keyframes popIn {
  from { transform:scale(0.8); opacity:0; }
  to { transform:scale(1); opacity:1; }
}

/* Readability and layout enhancements */
.modal { z-index: 9999; }
.modal-content {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  text-align: center;
  color: #0f172a;
  max-width: 90%;
  box-sizing: border-box;
}
.modal-content h3 { color: #0f172a; margin-top: 0; }
.modal-content p { color: #334155; }
.popup { z-index: 10000; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); }
.badge { color: #0f172a; font-weight: 700; }
.friend-card, .pathway-card, .goalie-tree, .combine-test, .video-item { color: #0f172a; }
.friend-card h2, .friend-card h3,
.pathway-card h2, .pathway-card h3,
.goalie-tree h2, .goalie-tree h3,
.combine-test h2, .combine-test h3,
.video-item h2, .video-item h3 { color: #0f172a; }
.friend-card p, .pathway-card p, .goalie-tree p, .combine-test p, .video-item p,
.friend-card li, .pathway-card li, .goalie-tree li, .combine-test li, .video-item li { color: #334155; }
.combine-test input {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}
.compare-grid > div { flex: 1; min-width: 220px; }

/* THEME TOGGLING SUPPORT */
.dark {
  background:#111;
  color:#eee;
}

.dark .app-view,
.dark .feature-card,
.dark .dash-box,
.dark .demo-stat,
.dark .social-post,
.dark .combine-test,
.dark .video-item {
  background:#222;
  color:#eee;
}

.dark .card {
  background:#222;
  color:#eee;
}

.dark .notif-panel {
  background:#222;
  color:#eee;
  border:1px solid #333;
}

.dark .compare-table th, .dark .compare-table td { border-color:#334155; }
.dark .compare-table th { background:#1e293b; color:#f8fafc; }
.dark .compare-table td { color:#cbd5e1; }
.dark input, .dark select, .dark textarea { background:#1e293b; color:#f8fafc; border-color:#334155; }

body.dark,
body.dark-mode {
  --bg-primary: #06090e;
  --bg-secondary: #0b111c;
  --bg-card: rgba(15, 23, 42, 0.85);
  --border-color: rgba(56, 189, 248, 0.25);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body:not(.dark):not(.dark-mode),
body:not(.dark) {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --border-color: #cbd5e1;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  background-color: #f8fafc;
  color: #0f172a;
}

body:not(.dark) .app-header,
body:not(.dark-mode) .app-header {
  background: #ffffff;
  border-bottom-color: #e2e8f0;
}

body:not(.dark) .app-header a,
body:not(.dark-mode) .app-header a {
  color: #0f172a !important;
}

body:not(.dark) .player-name,
body:not(.dark-mode) .player-name {
  color: #0f172a;
}

body:not(.dark) .app-tabs,
body:not(.dark-mode) .app-tabs {
  background: #f1f5f9;
  border-bottom-color: #e2e8f0;
}

body:not(.dark) .tab-btn,
body:not(.dark-mode) .tab-btn {
  color: #475569;
}

body:not(.dark) .tab-btn:hover,
body:not(.dark-mode) .tab-btn:hover {
  color: #0f172a;
  background: #e2e8f0;
}

body:not(.dark) .tab-btn.active,
body:not(.dark-mode) .tab-btn.active {
  color: #0284c7;
  border-bottom-color: #0284c7;
}

body:not(.dark) .app-view h1,
body:not(.dark) .app-view h2,
body:not(.dark) .app-view h3,
body:not(.dark-mode) .app-view h1,
body:not(.dark-mode) .app-view h2,
body:not(.dark-mode) .app-view h3 {
  color: #0f172a;
}

body:not(.dark) .mission-banner,
body:not(.dark-mode) .mission-banner {
  background: #e2e8f0;
  border-bottom-color: #cbd5e1;
  color: #334155;
}

body:not(.dark) .footer,
body:not(.dark-mode) .footer {
  background: #ffffff;
  border-top-color: #e2e8f0;
  color: #64748b;
}

body:not(.dark) .footer a,
body:not(.dark-mode) .footer a {
  color: #0284c7;
}

body:not(.dark) .btn,
body:not(.dark-mode) .btn {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #cbd5e1;
}

body:not(.dark) .btn:hover,
body:not(.dark-mode) .btn:hover {
  background: #cbd5e1;
}

@media(max-width:600px){
  .app-nav, .app-tabs {
    display:flex;
    overflow-x:auto;
    white-space:nowrap;
  }

  .tab-btn {
    flex:0 0 auto;
    margin-right:10px;
  }

  .app-view {
    padding:10px;
  }

  .feature-grid, .dashboard-grid, .demo-stats-grid {
    grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
  }
}

.app-view button:not(.btn) {
  background: #0284c7;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  margin: 10px 0;
  display: inline-block;
}

.app-view button:not(.btn):hover {
  background: #0369a1;
}

.mobile-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 12px;
  margin: 10px auto;
  max-width: 400px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.mobile-nav .tab-btn {
  font-size: 1.25rem;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-nav .tab-btn:hover,
.mobile-nav .tab-btn.active {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  transform: scale(1.08);
}

/* ==========================================================================
   ROLE-BASED WORKSPACE, X-PROFILE, LOGO STAMPING, PACKAGES & ADMIN STYLES
   ========================================================================== */

/* Role Switcher Toolbar */
.role-switcher-container {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  padding: 4px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.75rem;
}

.role-switcher-label {
  font-family: monospace;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  margin-right: 4px;
}

.role-chip-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.role-chip-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #ffffff;
  border-color: #38bdf8;
}

.role-chip-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* X.com-style Profile & The Wire */
.x-profile-card {
  background: #0b111e;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

.x-profile-banner {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: #1e293b;
}

.x-profile-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(11, 17, 30, 0.85) 100%);
}

.x-profile-header {
  padding: 0 20px 16px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: -65px;
}

.x-avatar-container {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 9999px;
  border: 4px solid #0b111e;
  background: #1e293b;
  overflow: visible;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.x-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  object-fit: cover;
  display: block;
}

.x-avatar-logo-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: #0284c7;
  border: 3px solid #0b111e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.x-avatar-logo-badge:hover {
  transform: scale(1.15);
}

.x-profile-actions {
  display: flex;
  gap: 10px;
}

.x-profile-body {
  padding: 12px 20px 20px;
}

.x-profile-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.x-profile-handle {
  color: #94a3b8;
  font-size: 0.85rem;
  margin: 2px 0 10px;
  font-family: monospace;
}

.x-profile-bio {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.x-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #94a3b8;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.x-stats-bar {
  display: flex;
  gap: 24px;
  padding: 12px 0;
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  margin-bottom: 16px;
}

.x-stat-item strong {
  color: #ffffff;
  font-size: 1.05rem;
}

.x-stat-item span {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-left: 4px;
}

.x-tabs-nav {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
}

.x-tab-nav-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: #94a3b8;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.x-tab-nav-btn:hover {
  color: #38bdf8;
}

.x-tab-nav-btn.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
}

/* Post Composer */
.x-composer-card {
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
}

.x-composer-textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1rem;
  outline: none;
  resize: none;
  min-height: 70px;
  font-family: inherit;
}

.x-composer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.x-composer-tools {
  display: flex;
  gap: 8px;
}

.x-tool-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #38bdf8;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.x-tool-btn:hover {
  background: rgba(56, 189, 248, 0.2);
}

/* Feed Post Item */
.x-post-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  transition: border-color 0.2s ease;
}

.x-post-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
}

.x-post-header {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.x-post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  object-fit: cover;
  position: relative;
}

.x-post-content {
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 12px;
  white-space: pre-line;
}

.x-post-footer {
  display: flex;
  gap: 24px;
  color: #94a3b8;
  font-size: 0.85rem;
}

.x-post-action {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.x-post-action:hover,
.x-post-action.active {
  color: #38bdf8;
}

/* Direct Messaging (DM) Box */
.dm-modal-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 520px;
  background: #0b111e;
  border: 1px solid #38bdf8;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  z-index: 100;
  overflow: hidden;
}

.dm-modal-header {
  padding: 12px 16px;
  background: #0f172a;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dm-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #070a12;
}

.dm-bubble {
  max-width: 80%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.dm-bubble.sent {
  align-self: flex-end;
  background: #0284c7;
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.dm-bubble.received {
  align-self: flex-start;
  background: #1e293b;
  color: #e2e8f0;
  border-bottom-left-radius: 2px;
}

.dm-input-row {
  padding: 10px 14px;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 8px;
}

.dm-input-row input {
  flex: 1;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 0.88rem;
  outline: none;
}

/* Logo Stamping Picker */
.logo-picker-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 16px;
}

.logo-picker-content {
  background: #0b111e;
  border: 1px solid #38bdf8;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  padding: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.logo-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.logo-picker-card {
  padding: 12px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.logo-picker-card:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  transform: translateY(-2px);
}

/* Packages & Pricing Matrix */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.package-card {
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.2s ease;
}

.package-card.highlight {
  border-color: #38bdf8;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
  transform: scale(1.02);
}

.package-role-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.package-price-val {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  margin: 8px 0;
}

.package-price-val span {
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 500;
}

.package-features-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.package-features-list li {
  font-size: 0.85rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Admin Operations Center */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.admin-kpi-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
}

.admin-kpi-card .val {
  font-size: 1.8rem;
  font-weight: 800;
  color: #38bdf8;
  font-family: monospace;
}

.admin-kpi-card .lbl {
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 4px;
}

.admin-table-container {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow-x: auto;
  margin-bottom: 24px;
}

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

.admin-table th {
  background: #1e293b;
  padding: 12px 16px;
  color: #94a3b8;
  font-weight: 700;
  font-family: monospace;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

/* ==========================================
   BLUE-LINE PAYWALL & FEATURE GATING SYSTEM
   ========================================== */

.paywall-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.paywall-modal-overlay.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.paywall-modal-card {
  background: linear-gradient(135deg, #0f172a 0%, #090d16 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(14, 165, 233, 0.15);
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  padding: 2.25rem;
  position: relative;
  animation: popIn 0.3s ease;
  color: #f8fafc;
}

.paywall-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.paywall-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: #ef4444;
}

.paywall-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.paywall-lock-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  animation: pulse 2s infinite;
}

.paywall-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.paywall-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0.25rem 0 0.5rem;
}

.paywall-subtitle {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
  max-width: 520px;
  margin: 0 auto;
}

.paywall-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

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

.paywall-tier-col {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.25rem;
  position: relative;
}

.paywall-tier-col.pro-plan {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
}

.paywall-tier-col .tier-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #94a3b8;
  font-family: monospace;
  margin-bottom: 0.25rem;
}

.paywall-tier-col .tier-tag.pro-tag {
  color: #38bdf8;
}

.paywall-tier-col h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.25rem;
}

.paywall-tier-col .tier-price {
  font-size: 1.4rem;
  font-weight: 900;
  color: #38bdf8;
  margin-bottom: 0.75rem;
}

.paywall-tier-col .tier-price span {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 400;
}

.paywall-tier-col .tier-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.6;
}

.paywall-tier-col .tier-perks li {
  margin-bottom: 0.35rem;
  color: #cbd5e1;
}

.paywall-tier-col .tier-perks li.locked-perk {
  color: #64748b;
  text-decoration: line-through;
}

.paywall-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.paywall-upgrade-btn {
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  color: #ffffff;
  padding: 0.85rem;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.paywall-upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.6);
}

.paywall-testdrive-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #e2e8f0;
  padding: 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.paywall-testdrive-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #ffffff;
}

.paywall-cancel-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0.35rem;
  text-decoration: underline;
}

.paywall-cancel-btn:hover {
  color: #94a3b8;
}

/* Inline Paywall Shield Inside Locked Views */
.inline-paywall-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  max-width: 650px;
  margin: 2rem auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.inline-paywall-card .lock-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.inline-paywall-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0.25rem 0 0.5rem;
}

.inline-paywall-card p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.tab-btn.pro-locked-tab {
  position: relative;
  border-color: rgba(245, 158, 11, 0.3) !important;
}

.tab-btn.pro-locked-tab::after {
  content: " 🔒";
  font-size: 0.7rem;
}

/* ==========================================================================
   HOMEPAGE ROLE FEATURES BREAKDOWN & PLATFORM MATRIX STYLES
   ========================================================================== */

.role-features-section {
  max-width: 1240px;
  margin: 2.5rem auto 4rem auto;
  padding: 0 1.5rem;
}

.section-header-block {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-tag-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.section-header-block h2 {
  font-size: 2.1rem;
  font-weight: 800;
  color: #0b192c;
  margin: 0.5rem 0 0.75rem 0;
  letter-spacing: -0.02em;
}

body.dark .section-header-block h2,
body.dark-mode .section-header-block h2 {
  color: #f8fafc;
}

.section-subtitle {
  color: #334155;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 500;
}

body.dark .section-subtitle,
body.dark-mode .section-subtitle {
  color: #cbd5e1;
}

.section-subtitle strong {
  color: #0284c7;
}

body.dark .section-subtitle strong,
body.dark-mode .section-subtitle strong {
  color: #38bdf8;
}

/* Interactive Role Selector Pills */
.role-selector-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.role-selector-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.15rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 9999px;
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.role-selector-pill:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: #38bdf8;
  color: #ffffff;
}

.role-selector-pill.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
}

.role-pill-price {
  font-family: monospace;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  color: #7dd3fc;
}

/* 4-Column Grid of Role Cards */
.role-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.role-feature-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.role-feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.role-card-pro {
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(11, 25, 44, 0.9) 100%);
}

.highlighted-role-card {
  border: 2px solid #38bdf8 !important;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4) !important;
}

.card-top-badge {
  margin-bottom: 1rem;
}

.badge-tag-all {
  display: inline-block;
  background: linear-gradient(90deg, #2563eb, #0284c7);
  color: #ffffff;
  font-size: 0.68rem;
  font-family: monospace;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-tag-athlete {
  display: inline-block;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 0.68rem;
  font-family: monospace;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-tag-parent {
  display: inline-block;
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
  font-size: 0.68rem;
  font-family: monospace;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-header {
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}

.card-role-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.role-icon-large {
  font-size: 2rem;
  line-height: 1;
}

.card-role-title-row h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.role-subtitle {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin: 0.2rem 0 0 0;
  line-height: 1.3;
  font-weight: 500;
}

.card-pricing-block {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.pricing-currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: #38bdf8;
}

.pricing-amount {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  font-family: monospace;
}

.pricing-period {
  font-size: 0.88rem;
  color: #93c5fd;
  margin-left: 0.35rem;
  font-weight: 600;
}

.card-summary-box {
  background: rgba(11, 17, 28, 0.6);
  border-left: 3px solid #38bdf8;
  padding: 0.75rem 0.85rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.card-summary-box strong {
  color: #ffffff;
}

.feature-category-group {
  margin-bottom: 1.25rem;
}

.category-header {
  font-size: 0.78rem;
  font-family: monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.category-header.gated {
  color: #f59e0b;
}

.feature-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-bullets li {
  font-size: 0.85rem;
  color: #f8fafc;
  line-height: 1.45;
  margin-bottom: 0.55rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.check-icon {
  color: #10b981;
  font-weight: 900;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: -1px;
}

.lock-icon-small {
  font-size: 0.85rem;
  flex-shrink: 0;
}

.gated-category {
  background: rgba(245, 158, 11, 0.05);
  border: 1px dashed rgba(245, 158, 11, 0.3);
  padding: 0.75rem;
  border-radius: 8px;
}

.gated-bullets li {
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 500;
}

.card-action {
  margin-top: auto;
  padding-top: 1.25rem;
}

.card-action .btn.full-width {
  width: 100%;
  display: block;
  text-align: center;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ==========================================================================
   PLATFORM MATRIX TABLE STYLES
   ========================================================================== */

.feature-matrix-container {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: 14px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  margin-top: 2rem;
}

.matrix-header-block {
  text-align: center;
  margin-bottom: 1.75rem;
}

.matrix-header-block h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.35rem 0;
}

.matrix-header-block p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin: 0;
}

.matrix-table-wrapper {
  overflow-x: auto;
}

.platform-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.platform-matrix-table th,
.platform-matrix-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
  text-align: left;
}

.matrix-th-feature {
  width: 38%;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-family: monospace;
  text-transform: uppercase;
}

.matrix-th-role {
  width: 15.5%;
  text-align: center;
  vertical-align: top;
}

.matrix-th-role.highlight-pro {
  background: rgba(56, 189, 248, 0.08);
  border-top: 2px solid #38bdf8;
  border-radius: 6px 6px 0 0;
}

.th-role-title {
  font-weight: 800;
  color: #ffffff;
  font-size: 0.92rem;
}

.th-role-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-family: monospace;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin: 0.25rem 0;
}

.th-role-price {
  font-family: monospace;
  font-size: 0.82rem;
  color: #94a3b8;
}

.matrix-cat-row td {
  background: rgba(11, 17, 28, 0.8);
  color: #38bdf8;
  font-weight: 700;
  font-family: monospace;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.65rem 1rem;
  border-top: 1px solid rgba(56, 189, 248, 0.2);
}

.feature-name {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.feature-name strong {
  color: #f8fafc;
  font-size: 0.88rem;
}

.feature-name span {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.status-cell {
  text-align: center;
  vertical-align: middle;
}

.status-cell.pro-access {
  background: rgba(56, 189, 248, 0.04);
}

.check-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.check-badge-light {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  font-family: monospace;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.dash-text {
  color: #475569;
  font-weight: bold;
}

/* ==========================================================================
   22 ENTERPRISE MODULES DIRECTORY (SCREENSHOT REPLICA) STYLES
   ========================================================================== */

.modules-directory-section {
  max-width: 1240px;
  margin: 3.5rem auto 4.5rem auto;
  padding: 0 1.5rem;
}

.modules-search-bar-wrap {
  position: relative;
  max-width: 820px;
  margin: 1.75rem auto 2.5rem auto;
}

.modules-search-input {
  width: 100%;
  background: #070d19;
  border: 1.5px solid #0284c7;
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.3);
  border-radius: 9999px;
  padding: 0.9rem 1.25rem 0.9rem 3rem;
  color: #f8fafc;
  font-size: 0.95rem;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.modules-search-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.5);
  background: #0a1324;
}

.modules-search-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
  color: #38bdf8;
  pointer-events: none;
}

.module-category-block {
  margin-bottom: 2rem;
}

.module-category-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 800;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.9rem;
  padding-left: 0.25rem;
}

.module-category-count {
  background: rgba(30, 58, 138, 0.5);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.72rem;
  padding: 0.1rem 0.5rem;
  border-radius: 9999px;
  font-weight: 700;
}

.modules-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.9rem;
}

.module-tile-card {
  background: #0b1222;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.module-tile-card:hover {
  background: #101c33;
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.module-tile-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(51, 65, 85, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.module-tile-content {
  flex: 1;
  min-width: 0;
}

.module-tile-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.module-tile-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.98rem;
}

.module-tile-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin: 0;
  font-weight: 500;
}

.module-role-badge-row {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.badge-entitled-pro {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-family: monospace;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.badge-entitled-wire {
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
  font-family: monospace;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.badge-entitled-locked {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  font-family: monospace;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.badge-entitled-included {
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #38bdf8;
  font-family: monospace;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* Why Each Role Uses PuckPathway Grid */
.why-roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.why-role-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 14px;
  padding: 1.4rem;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
}

.why-role-card.highlight-scout {
  border-top: 3px solid #38bdf8;
}

.why-role-card.highlight-coach {
  border-top: 3px solid #2563eb;
}

.why-role-card.highlight-athlete {
  border-top: 3px solid #10b981;
}

.why-role-card.highlight-parent {
  border-top: 3px solid #a855f7;
}

.why-role-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.why-role-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.why-role-price {
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.why-role-summary {
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.why-role-summary strong {
  color: #38bdf8;
}

.why-role-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  font-size: 0.84rem;
  color: #e2e8f0;
  line-height: 1.45;
}

.why-role-highlights li {
  margin-bottom: 0.45rem;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.why-role-action {
  margin-top: auto;
}

.why-role-action a {
  display: block;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
}

/* =========================================================================
   HOME SCREEN PRICING, PAYMENTS & CHECKOUT MODAL STYLES
   ========================================================================= */
.pricing-hero-ticker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}

.pricing-ticker-chip {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-family: monospace;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pricing-ticker-chip strong {
  color: #38bdf8;
}

.pricing-ticker-chip.wire-guarantee {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #7dd3fc;
  font-weight: 700;
}

.billing-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem auto 2.5rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.6);
  padding: 0.35rem 0.5rem;
  border-radius: 9999px;
  width: fit-content;
}

.billing-toggle-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.billing-toggle-btn.active {
  background: #38bdf8;
  color: #0b1120;
}

.billing-save-badge {
  background: #10b981;
  color: #ffffff;
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  font-weight: 800;
  text-transform: uppercase;
  margin-left: 0.25rem;
}

.home-payment-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

.home-payment-modal-card {
  background: #0b1222;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.15);
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  position: relative;
  color: #f1f5f9;
}

.home-payment-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 1.25rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.home-payment-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.payment-method-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 1.25rem 0 1rem;
}

.payment-method-tab {
  background: #1e293b;
  border: 1px solid rgba(71, 85, 105, 0.5);
  padding: 0.6rem 0.5rem;
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s;
}

.payment-method-tab:hover {
  border-color: #38bdf8;
  background: #1e293b;
}

.payment-method-tab.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

.payment-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.payment-form-full {
  grid-column: span 2;
}

.payment-input-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
}

.payment-input-group input {
  width: 100%;
  background: #1e293b;
  border: 1px solid #334155;
  color: #fff;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
  box-sizing: border-box;
}

.payment-input-group input:focus {
  border-color: #38bdf8;
  outline: none;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.payment-summary-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.payment-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}

.payment-summary-row.total-row {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.payment-submit-btn {
  width: 100%;
  background: #38bdf8;
  color: #0b1120;
  border: none;
  padding: 0.85rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.payment-submit-btn:hover {
  background: #0284c7;
  color: #ffffff;
  transform: translateY(-1px);
}



/* High Contrast Polish for Crystal-Clear Text Visibility */
.modules-search-input {
  background: #0b1222 !important;
  border: 1.5px solid #38bdf8 !important;
  color: #ffffff !important;
  font-size: 0.92rem !important;
}

.modules-search-input::placeholder {
  color: #94a3b8 !important;
}

.role-selector-pill {
  background: #0f172a !important;
  border: 1px solid #334155 !important;
  color: #f1f5f9 !important;
}

.role-selector-pill:hover,
.role-selector-pill.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
}

.pricing-ticker-chip {
  background: #0f172a !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  color: #f8fafc !important;
}

.why-role-card {
  background: #0b1222 !important;
  border: 1px solid #334155 !important;
}

.why-role-summary {
  color: #f8fafc !important;
  font-size: 0.86rem !important;
}

.dash-box {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.demo-stat {
  color: #38bdf8 !important;
  font-weight: 700 !important;
  background: #0f172a !important;
}

/* ATHLETE DASHBOARD INTERACTIVE BUTTONS & ENDPOINT CARDS */
.dashboard-action-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dashboard-action-card {
  padding: 0.85rem 1.15rem;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  transition: all 0.2s ease;
}

body:not(.dark):not(.dark-mode) .dashboard-action-card,
body:not(.dark) .dashboard-action-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.dashboard-action-card:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

body:not(.dark):not(.dark-mode) .dashboard-action-card:hover,
body:not(.dark) .dashboard-action-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.dashboard-action-card.completed {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(6, 78, 59, 0.25);
}

.dashboard-card-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 200px;
}

.dashboard-card-icon {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.12);
  flex-shrink: 0;
}

.dashboard-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dashboard-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #f8fafc;
}

body:not(.dark):not(.dark-mode) .dashboard-card-title,
body:not(.dark) .dashboard-card-title {
  color: #0f172a;
}

.dashboard-card-sub {
  font-size: 0.8rem;
  color: #94a3b8;
}

body:not(.dark):not(.dark-mode) .dashboard-card-sub,
body:not(.dark) .dashboard-card-sub {
  color: #64748b;
}

.dashboard-card-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.btn-action-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap !important;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.btn-action-sm.train-btn {
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}
.btn-action-sm.train-btn:hover {
  background: #0284c7;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-action-sm.nav-btn-sm {
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  border-color: rgba(71, 85, 105, 0.6);
}
.btn-action-sm.nav-btn-sm:hover {
  background: rgba(30, 41, 59, 0.95);
  color: #ffffff;
  border-color: #38bdf8;
  transform: translateY(-1px);
}

body:not(.dark):not(.dark-mode) .btn-action-sm.nav-btn-sm,
body:not(.dark) .btn-action-sm.nav-btn-sm {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}
body:not(.dark):not(.dark-mode) .btn-action-sm.nav-btn-sm:hover,
body:not(.dark) .btn-action-sm.nav-btn-sm:hover {
  background: #e2e8f0;
  color: #0284c7;
}

.btn-mission-complete {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.85rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap !important;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff !important;
  border: 1px solid #10b981;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
  transition: all 0.15s ease;
}

.btn-mission-complete:hover {
  background: linear-gradient(135deg, #047857, #059669);
  transform: translateY(-1px);
}

.btn-mission-complete.done {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981 !important;
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: none;
  cursor: default;
}

.highlight-clip-card {
  padding: 0.85rem 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

body:not(.dark):not(.dark-mode) .highlight-clip-card,
body:not(.dark) .highlight-clip-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

/* =========================================================================
   MOBILE-FIRST RESPONSIVE ARCHITECTURE & TOUCH ERGONOMICS
   ========================================================================= */

/* Anti-Horizontal-Wobble Global Invariant */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* 44px Minimum Touch Targets for Interactive Action Elements */
button, .btn, .nav-btn, .nav-role-pill, .role-chip-btn, .tab-btn {
  touch-action: manipulation;
}

/* Mobile Hamburger Menu Toggle Button */
.mobile-nav-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  color: inherit;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  transition: all 0.15s ease;
  min-height: 38px;
  min-width: 38px;
}

body.dark .mobile-nav-toggle-btn,
body.dark-mode .mobile-nav-toggle-btn {
  color: #f8fafc;
  border-color: rgba(56, 189, 248, 0.3);
}

.mobile-nav-toggle-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Slide-Over Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  justify-content: flex-end;
}

.mobile-nav-drawer.hidden {
  display: none !important;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mobile-drawer-panel {
  position: relative;
  width: 88vw;
  max-width: 360px;
  height: 100%;
  background: #090d16;
  border-left: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.25rem;
  box-sizing: border-box;
  z-index: 1;
  animation: drawerSlideIn 0.25s ease-out;
}

@keyframes drawerSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
  margin-bottom: 1rem;
}

.mobile-drawer-close-btn {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  color: #94a3b8;
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.mobile-drawer-section {
  margin-bottom: 1.25rem;
}

.mobile-drawer-section-title {
  display: block;
  font-family: monospace;
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.mobile-drawer-role-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-drawer-role-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(51, 65, 85, 0.6);
  text-decoration: none;
  transition: all 0.15s ease;
}

.mobile-drawer-role-item:hover, .mobile-drawer-role-item:active {
  background: rgba(30, 41, 59, 0.9);
  border-color: #38bdf8;
  transform: translateX(3px);
}

.mobile-drawer-role-item.role-athlete { border-left: 3.5px solid #0284c7; }
.mobile-drawer-role-item.role-parent { border-left: 3.5px solid #db2777; }
.mobile-drawer-role-item.role-coach { border-left: 3.5px solid #6366f1; }
.mobile-drawer-role-item.role-scout { border-left: 3.5px solid #f59e0b; }

.mobile-drawer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.15s ease;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.mobile-drawer-link:hover, .mobile-drawer-link:active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
}

.mobile-drawer-actions {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(51, 65, 85, 0.6);
}

/* Tablet & Mobile Top Nav Layout (< 992px) */
@media (max-width: 991px) {
  .mobile-nav-toggle-btn {
    display: inline-flex !important;
  }

  .nav-center-links {
    display: none !important;
  }

  .nav-role-group {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    max-width: calc(100vw - 230px);
  }

  .nav-role-group::-webkit-scrollbar {
    display: none;
  }
}

/* Smartphone Layout (< 640px) */
@media (max-width: 640px) {
  .top-nav {
    padding: 0.5rem 0.85rem !important;
  }

  .nav-container {
    gap: 0.5rem !important;
  }

  .nav-brand {
    font-size: 1.05rem !important;
    gap: 0.45rem !important;
  }

  .nav-brand img {
    width: 28px !important;
    height: 28px !important;
  }

  .nav-role-group {
    display: none !important; /* Prominently available in drawer & bottom nav */
  }

  .nav-actions-group .nav-btn-primary,
  .nav-actions-group .nav-btn-secondary {
    display: none !important; /* Full width inside drawer */
  }

  .nav-actions-group .nav-btn-ghost {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.8rem !important;
    min-height: 36px;
  }

  /* Hero Section Mobile Fluidity */
  .hero {
    padding: 2.25rem 1rem 1.75rem 1rem !important;
    text-align: center !important;
  }

  .hero h1,
  .hero-title {
    font-size: clamp(1.85rem, 6.8vw, 2.5rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 0.85rem !important;
  }

  .hero p,
  .hero-subtitle {
    font-size: clamp(0.95rem, 3.4vw, 1.15rem) !important;
    line-height: 1.5 !important;
    margin-bottom: 1.25rem !important;
    padding: 0 0.25rem !important;
  }

  .pricing-hero-ticker {
    flex-direction: column !important;
    gap: 0.4rem !important;
    width: 100% !important;
    max-width: 340px !important;
    margin: 0 auto 1.25rem auto !important;
  }

  .pricing-ticker-chip {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .hero-dashboard-launchpad {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    gap: 0.5rem !important;
  }

  .hero-dashboard-launchpad a {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.75rem 1rem !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
  }

  /* Grids & Bento Sections */
  .bento-grid,
  .features-grid,
  .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .stats-grid,
  .demo-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  .card,
  .feature-card,
  .dashboard-teaser {
    padding: 1rem !important;
  }

  /* Athlete OS Header (< 640px) */
  .app-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
    padding: 0.65rem 0.85rem !important;
  }

  .player-info {
    width: 100% !important;
    justify-content: space-between !important;
  }

  .role-switcher-container {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    order: 3 !important;
  }

  .role-switcher-container::-webkit-scrollbar {
    display: none;
  }

  .role-chip-btn {
    flex-shrink: 0 !important;
    min-height: 36px;
  }

  .app-tabs {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 0.35rem 0.5rem !important;
  }

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

  .tab-btn {
    flex-shrink: 0 !important;
    min-height: 40px !important;
  }

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

  .mission-action-card,
  .dashboard-action-card {
    padding: 0.85rem !important;
  }

  /* Input Zoom Prevention */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Responsive Tables, Canvases & Modals (< 640px) */
  table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  canvas {
    max-width: 100% !important;
    height: auto !important;
  }

  .modal-dialog,
  .inline-paywall-card {
    max-width: 95vw !important;
    padding: 1rem !important;
  }
}



