/* ==========================================================================
   eFootball™ Forensic Lab (efootball-lab.com) — Official Design System & Stylesheet
   Merging the acclaimed aesthetic of SKILLS_INFOGRAPHICS_GUIDE.html &
   STATS_INFOGRAPHICS_GUIDE.html with 100% Mobile Optimization and 18-Language Parity
   ========================================================================== */

:root {
  --bg-dark: #0a0d14;
  --bg-card: #111622;
  --bg-card-hover: #182032;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(0, 242, 254, 0.15);
  --border-glow: rgba(0, 242, 254, 0.4);

  --accent-cyan: #06b6d4;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;
  --accent-blue: #3b82f6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, "PingFang SC", "Microsoft YaHei", monospace;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

button, input, select, textarea {
  -webkit-appearance: none;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(6, 182, 212, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(168, 85, 247, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
  line-height: 1.5;
}

.mono { font-family: var(--font-mono); }
.notranslate { translate: no; }

/* RTL Arabic Support & SVG LTR Isolation */
html[dir="rtl"], body.rtl-mode {
  font-family: 'Noto Sans Arabic', 'Plus Jakarta Sans', sans-serif;
  direction: rtl;
  text-align: right;
}

/* Ensure all technical diagrams, pitch vectors, and SVG coordinate spaces remain strictly LTR */
#modal-skill-diagram-container,
#modalDiagramContainer,
.detail-hero-banner,
.diagram-stage,
svg {
  direction: ltr !important;
  text-align: left !important;
}

/* Stable Application Shell in RTL Mode */
body.rtl-mode .header-navbar {
  direction: ltr; /* Keeps brand on left and controls/language selector anchored on right */
}
body.rtl-mode .header-search-input {
  direction: rtl;
  text-align: right;
}
body.rtl-mode .navbar-brand .brand-text-col {
  direction: rtl;
  text-align: right;
}
body.rtl-mode .detail-top-nav {
  direction: ltr; /* Keeps back button on start and breadcrumb trail ordered */
}
body.rtl-mode .detail-top-nav .detail-breadcrumbs {
  direction: rtl;
}

/* Arabic Typography & Bidi Safety */
body.rtl-mode .detail-header-identity h1 {
  line-height: 1.4;
}
body.rtl-mode .detail-content-wrap,
body.rtl-mode .stat-desc,
body.rtl-mode .tech-comment,
body.rtl-mode .condition-box div {
  line-height: 1.7;
}

/* Metric, Numbers & Formula Bidi Protection */
body.rtl-mode .mono,
body.rtl-mode .stat-boost-val,
body.rtl-mode .id-badge,
body.rtl-mode .tier-badge,
body.rtl-mode .notranslate {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

html[dir="rtl"] .search-box input, body.rtl-mode .search-box input {
  padding: 0.85rem 2.85rem 0.85rem 1rem;
}
html[dir="rtl"] .search-icon, body.rtl-mode .search-icon {
  left: auto;
  right: 1rem;
}

/* RTL Family Borders */
body.rtl-mode .skill-card[data-family="Habilidades de tiro"] { border-left: 1px solid var(--border-color); border-right: 4px solid var(--accent-rose); }
body.rtl-mode .skill-card[data-family="Habilidades de pase"] { border-left: 1px solid var(--border-color); border-right: 4px solid var(--accent-emerald); }
body.rtl-mode .skill-card[data-family="Habilidades de regate"] { border-left: 1px solid var(--border-color); border-right: 4px solid var(--accent-cyan); }
body.rtl-mode .skill-card[data-family="Habilidades defensivas"] { border-left: 1px solid var(--border-color); border-right: 4px solid var(--accent-blue); }
body.rtl-mode .skill-card[data-family="Habilidades de portero"] { border-left: 1px solid var(--border-color); border-right: 4px solid var(--accent-amber); }
body.rtl-mode .skill-card[data-family="Habilidades de mentalidad"] { border-left: 1px solid var(--border-color); border-right: 4px solid var(--accent-purple); }
body.rtl-mode .condition-box { border-left: 1px solid rgba(6, 182, 212, 0.25); border-right: 3px solid var(--accent-cyan); }
body.rtl-mode .stat-summary-box { border-left: none; border-right: 3px solid var(--accent-cyan); }
body.rtl-mode .modal-close { right: auto; left: 1.5rem; }

/* ==========================================================================
   Google Stitch / M3 Top App Bar (Horizontal Responsive Navigation)
   ========================================================================== */
.app-header {
  background: rgba(10, 15, 29, 0.94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
  padding: max(0.55rem, env(safe-area-inset-top, 0px)) max(1.25rem, env(safe-area-inset-right, 0px)) 0.55rem max(1.25rem, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

body {
  padding-top: 62px;
}

.header-navbar {
  max-width: 1680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

/* Navbar Left: Brand Logo & Title + Navigation Tabs (Inline Parity with eFootBase & eFHUB) */
.navbar-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  flex: 0 1 auto;
}

.navbar-nav {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: visible !important;
}

.navbar-nav::-webkit-scrollbar {
  display: none;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-logo-wrap {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.4));
}

.navbar-brand:hover .brand-logo-wrap {
  transform: scale(1.08) rotate(3deg);
}

.brand-emblem-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-title {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0;
  line-height: 1.15;
}

.brand-title-main {
  display: inline-flex;
  align-items: center;
}

.brand-title-sub {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.brand-forensic-badge {
  background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 950;
  letter-spacing: 0.06em;
  padding: 0 2px;
  text-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
}

.brand-lab-badge {
  color: #f8fafc;
  font-weight: 950;
  letter-spacing: 0.05em;
  padding: 0 2px;
  opacity: 0.95;
}

.brand-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.12rem 0.45rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  font-family: var(--font-mono);
}

.brand-live-badge.badge-offline {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid rgba(239, 68, 68, 0.45) !important;
  color: #f87171 !important;
}

.pulse-dot.dot-offline {
  background: #ef4444 !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8) !important;
}

.tm-sup {
  font-size: 0.52em;
  vertical-align: super;
  color: var(--accent-cyan);
  margin-left: 2px;
}

/* Nav tabs - directly adjacent to brand on the left (eFootBase style) */
.navbar-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-tab-btn,
.nav-tab-link {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 0.28rem 0.42rem;
  border-radius: 6px;
  font-size: 0.77rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  touch-action: manipulation;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap !important;
}

.nav-tab-btn:hover,
.nav-tab-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-tab-btn.active {
  background: #1e293b;
  color: #ffffff;
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Navbar Right Group: Search Pill + Lang Dropdown + Neon Lime CTA + Socials */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0 !important;
  margin-left: auto;
}

/* Header Search Pill (like eFootBase / eFHUB) */
.header-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 0.28rem 0.55rem;
  width: 120px;
  max-width: 140px;
  min-width: 100px;
  flex-shrink: 1;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-search-wrap:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(30, 41, 59, 0.75);
}

.header-search-wrap:focus-within {
  width: 290px;
  background: rgba(15, 23, 42, 0.95);
  border-color: #00f2fe;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.3);
}

.header-search-icon {
  font-size: 0.85rem;
  color: #94a3b8;
  flex-shrink: 0;
}

.header-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: inherit;
  width: 100%;
}

.header-search-input::placeholder {
  color: #64748b;
  font-size: 0.8rem;
}

.header-search-kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.65rem;
  color: #94a3b8;
  font-family: var(--font-mono);
  line-height: 1;
  flex-shrink: 0;
  pointer-events: none;
}

/* Community Telegram Pill */
.header-pill-btn.pill-telegram {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 0.4rem 0.95rem;
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap !important;
}

.header-pill-btn.pill-telegram:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

/* Vibrant Neon Lime Call to Action (eFootBase & eFHUB Parity) */
.header-cta-btn.cta-neon-lime {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #a3e635 0%, #84cc16 100%);
  color: #022c22;
  border: none;
  border-radius: 9999px;
  padding: 0.42rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(163, 230, 53, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.02em;
  white-space: nowrap !important;
}

.header-cta-btn.cta-neon-lime:hover {
  background: linear-gradient(135deg, #bef264 0%, #a3e635 100%);
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(163, 230, 53, 0.7);
  color: #022c22;
}

/* Minimalist Icon Link (𝕏) */
.header-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.header-icon-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Language Dropdown Selector */
.lang-dropdown-wrapper {
  position: relative;
  flex-shrink: 0 !important;
}

.lang-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: #fff;
  padding: 0.38rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-dropdown-trigger:hover,
.lang-dropdown-wrapper.open .lang-dropdown-trigger {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.12);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
}

.current-lang-tag {
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.chevron-arrow {
  font-size: 0.7rem;
  color: var(--accent-cyan);
  transition: transform 0.2s;
}

.lang-dropdown-wrapper.open .chevron-arrow {
  transform: rotate(180deg);
}

.lang-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(10, 16, 28, 0.96);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 242, 254, 0.15);
  padding: 0.75rem;
  width: 330px;
  z-index: 1100;
  animation: fadeInDown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-dropdown-wrapper.open .lang-dropdown-panel {
  display: block;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.lang-panel-header {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-flags-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.flag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 11px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  line-height: 0;
  vertical-align: middle;
}
.flag-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.quick-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.32rem 0.45rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap !important;
}

.quick-lang-btn:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: rgba(0, 242, 254, 0.4);
  color: #fff;
}

.quick-lang-btn.active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #030712;
  font-weight: 800;
}

/* Social Buttons */
.header-social-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.social-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap !important;
  border: 1px solid transparent;
}

.social-header-btn .social-text {
  font-size: 0.72rem;
}

.btn-x {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.22);
}
.btn-x:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.18);
}

.btn-tg-group {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
}
.btn-tg-group:hover {
  background: rgba(56, 189, 248, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(56, 189, 248, 0.25);
}

.btn-tg-user {
  background: rgba(96, 165, 250, 0.15);
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.35);
}
.btn-tg-user:hover {
  background: rgba(96, 165, 250, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(96, 165, 250, 0.25);
}

.btn-paypal {
  background: rgba(0, 112, 186, 0.15);
  color: #60a5fa;
  border-color: rgba(0, 112, 186, 0.35);
}
.btn-paypal:hover {
  background: rgba(0, 112, 186, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(96, 165, 250, 0.3);
}

.social-icon {
  font-size: 0.84rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Navigation Breakpoints (Google Stitch Desktop & Mobile Parity) */
@media (max-width: 1400px) {
  .app-header {
    padding: 0.5rem 1rem;
  }
  .header-navbar {
    gap: 0.65rem;
  }
  .navbar-left {
    gap: 0.55rem;
  }
  .nav-links {
    gap: 0.15rem;
  }
  .header-search-wrap {
    width: 125px;
  }
  .header-search-wrap:focus-within {
    width: 180px;
  }
  .nav-tab-btn,
  .nav-group-trigger {
    padding: 0.3rem 0.44rem;
    font-size: 0.76rem;
    gap: 0.22rem;
  }
  .tab-icon {
    font-size: 0.82rem;
  }
}

@media (max-width: 1180px) {
  .app-header {
    padding: 0.45rem 0.75rem;
  }
  .header-navbar {
    gap: 0.45rem;
  }
  .navbar-left {
    gap: 0.45rem;
  }
  .nav-links {
    gap: 0.12rem;
  }
  .header-search-wrap {
    width: 36px;
    padding: 0.3rem 0.4rem;
  }
  .header-search-input {
    display: none;
  }
  .header-search-wrap:focus-within {
    width: 150px;
  }
  .header-search-wrap:focus-within .header-search-input {
    display: block;
    width: 100px;
  }
  .header-search-kbd {
    display: none;
  }
  .nav-tab-btn,
  .nav-group-trigger {
    padding: 0.28rem 0.36rem;
    font-size: 0.73rem;
    gap: 0.2rem;
  }
}

@media (max-width: 1060px) {
  .header-pill-btn.pill-telegram .pill-text {
    display: none;
  }
  .header-pill-btn.pill-telegram {
    padding: 0.38rem 0.55rem;
  }
  .header-search-wrap {
    width: 110px;
  }
}

@media (max-width: 950px) {
  .header-telegram-link,
  .header-contact-btn {
    display: none !important;
  }
  .btn-mobile-hub {
    display: inline-flex !important;
  }
  .desktop-nav {
    display: none !important;
  }
  .desktop-nav .nav-group-dropdown {
    display: none !important;
  }

  /* Mobile Hero Optimization: Hide CTA buttons & 3D mockup showcase on mobile */
  .home-cta-row,
  .home-hero-media {
    display: none !important;
  }

  html, body {
    overflow-x: clip !important;
    max-width: 100vw !important;
  }

  .app-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    padding: max(0.45rem, env(safe-area-inset-top, 0px)) max(0.75rem, env(safe-area-inset-right, 0px)) 0.45rem max(0.75rem, env(safe-area-inset-left, 0px)) !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  body {
    padding-top: calc(56px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Single-row flex layout on mobile: Brand on left, Actions (Lang + Hub) on right */
  .header-navbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0.5rem !important;
    box-sizing: border-box !important;
  }

  .navbar-left {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .navbar-brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    min-width: 0 !important;
    text-decoration: none !important;
  }
  .brand-logo-wrap {
    width: 28px !important;
    height: 28px !important;
    flex-shrink: 0 !important;
  }
  .brand-emblem-img {
    width: 28px !important;
    height: 28px !important;
  }
  .brand-title {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    line-height: 1.05 !important;
    gap: 0.05rem !important;
    min-width: 0 !important;
  }
  .brand-title-main {
    font-size: 0.95rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    letter-spacing: -0.01em !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }
  .brand-title-sub {
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    line-height: 1.1 !important;
    display: flex !important;
    gap: 0.2rem !important;
    white-space: nowrap !important;
  }
  .brand-forensic-badge {
    padding: 0 !important;
  }
  .brand-lab-badge {
    padding: 0 !important;
  }
  .brand-live-badge {
    display: none !important;
  }

  .navbar-right {
    display: flex !important;
    align-items: center !important;
    justify-self: end !important;
    gap: 0.35rem !important;
    flex-shrink: 0 !important;
  }

  /* Hide the redundant header search box on mobile (each page has its own prominent search bar) */
  .header-search-wrap {
    display: none !important;
  }

  .lang-dropdown-trigger {
    padding: 0.32rem 0.5rem !important;
    font-size: 0.75rem !important;
    gap: 0.2rem !important;
  }
  .current-lang-tag {
    font-size: 0.72rem !important;
  }

  .header-pill-btn.pill-telegram {
    padding: 0.35rem 0.55rem !important;
    font-size: 0.75rem !important;
  }
  .header-pill-btn.pill-telegram .pill-text {
    display: none !important;
  }

  .header-cta-btn.cta-neon-lime {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.75rem !important;
    border-radius: 8px !important;
  }
  .header-cta-btn.cta-neon-lime .cta-text {
    display: none !important; /* Shows icon ☕ only on mobile, saving 70px */
  }

  .header-icon-link {
    padding: 0.25rem 0.45rem !important;
    font-size: 0.85rem !important;
  }

  .lang-dropdown-panel {
    right: 0 !important;
    width: min(290px, 90vw) !important;
  }

  /* Full-width swipeable navigation bar */
  .navbar-nav {
    grid-area: nav !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 0.15rem 0 !important;
    margin: 0 !important;
  }
  .navbar-nav::-webkit-scrollbar {
    display: none !important;
  }

  .nav-links {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0.4rem !important;
    width: max-content !important;
    padding: 0 0.1rem !important;
  }

  .nav-tab-btn {
    padding: 0.38rem 0.8rem !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
  }
}


/* ==========================================================================
   Navigation Option A (Desktop Dropdowns) & Solution 2 (Mobile Hub Drawer)
   ========================================================================== */

/* Grouped Dropdown Navigation (Desktop) */
.nav-group-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  list-style: none;
}

.nav-group-trigger {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 0.28rem 0.42rem;
  border-radius: 6px;
  font-size: 0.77rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  touch-action: manipulation;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap !important;
  font-family: inherit;
}

.nav-group-trigger:hover,
.nav-group-item:hover .nav-group-trigger,
.nav-group-item.dropdown-open .nav-group-trigger {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-group-trigger.active {
  background: rgba(0, 242, 254, 0.12);
  color: #00f2fe;
  border-color: rgba(0, 242, 254, 0.3);
  font-weight: 700;
}

.dropdown-chevron {
  font-size: 0.72rem;
  transition: transform 0.2s ease;
  margin-left: 0.15rem;
  color: #64748b;
}

.nav-group-item:hover .dropdown-chevron,
.nav-group-item.dropdown-open .dropdown-chevron {
  transform: rotate(180deg);
  color: #00f2fe;
}

.nav-group-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  background: rgba(10, 17, 34, 0.98);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 242, 254, 0.18);
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  z-index: 99999 !important;
  box-sizing: border-box;
  pointer-events: auto;
}

.nav-group-dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.nav-group-item:hover > .nav-group-dropdown,
.nav-group-item.dropdown-open > .nav-group-dropdown {
  display: flex !important;
  animation: dropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 951px) {
  .app-header,
  .header-navbar,
  .navbar-left,
  .navbar-nav,
  .desktop-nav,
  .nav-links,
  .nav-group-item {
    overflow: visible !important;
  }
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-dropdown-btn {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  width: 100% !important;
  padding: 0.55rem 0.75rem !important;
  border-radius: 8px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  color: #cbd5e1 !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  font-family: inherit !important;
}

.nav-dropdown-btn:hover {
  background: rgba(0, 242, 254, 0.14) !important;
  color: #ffffff !important;
  border-color: rgba(0, 242, 254, 0.25) !important;
  transform: translateX(2px);
}

.nav-dropdown-btn.active {
  background: rgba(0, 242, 254, 0.22) !important;
  color: #00f2fe !important;
  font-weight: 700 !important;
  border-color: #00f2fe !important;
}

.slot-num {
  font-family: monospace;
  font-size: 0.68rem;
  color: #64748b;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-weight: 700;
  flex-shrink: 0;
}

.badge-prod-active {
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  margin-left: auto;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* Mobile Hub Trigger Button (.btn-mobile-hub) */
.btn-mobile-hub {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(14, 23, 42, 0.85) 100%);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 8px;
  color: #00f2fe;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  font-family: inherit;
}

.btn-mobile-hub:hover,
.btn-mobile-hub:active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.25) 0%, rgba(14, 23, 42, 0.95) 100%);
  border-color: #00f2fe;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.4);
}

.btn-mobile-hub .hub-icon {
  font-size: 1.15rem;
  line-height: 1;
}

/* Mobile Bottom-Sheet Navigation Modal (Solution 2) */
.mobile-hub-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2100;
  opacity: 0;
  pointer-events: none;
  touch-action: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-hub-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-hub-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 85vh;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(6, 12, 24, 0.99) 100%);
  border-top: 1px solid rgba(0, 242, 254, 0.3);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8), 0 -2px 16px rgba(0, 242, 254, 0.18);
  z-index: 2200;
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  padding-bottom: max(1.2rem, env(safe-area-inset-bottom, 16px));
}

.mobile-hub-sheet.active {
  transform: translateY(0);
}

.sheet-grab-bar {
  width: 44px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  margin: 0.65rem auto 0.25rem auto;
  flex-shrink: 0;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.25rem 0.6rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.sheet-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hub-logo-emblem {
  font-size: 1.2rem;
}

.sheet-subtitle {
  margin: 0.2rem 0 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
}

.sheet-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #94a3b8;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.sheet-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.sheet-body {
  padding: 0.85rem 1rem 1rem 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  max-height: calc(85vh - 90px);
}

.hub-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  width: 100%;
  box-sizing: border-box;
}

.hub-card-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  background: rgba(24, 34, 53, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 0.75rem 0.85rem !important;
  cursor: pointer !important;
  position: relative !important;
  transition: all 0.2s ease !important;
  text-align: left !important;
  min-height: 64px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  font-family: inherit !important;
}

.hub-card-btn:hover,
.hub-card-btn:active {
  background: rgba(0, 242, 254, 0.12) !important;
  border-color: rgba(0, 242, 254, 0.4) !important;
  transform: translateY(-1px);
}

.hub-card-btn.active {
  background: rgba(0, 242, 254, 0.18) !important;
  border-color: #00f2fe !important;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25) !important;
}

.hub-card-slot {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  font-family: monospace;
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 700;
}

.hub-card-icon {
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
  line-height: 1;
}

.hub-card-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.25;
}

/* ==========================================================================
   DOMAIN GATING: PREVIEW EDGE VS PRODUCCIÓN (REGLA DE EXCLUSIÓN MUTUA)
   Lo publicado NO está en Preview y viceversa.
   ========================================================================== */

/* En Producción: Ocultar módulos en desarrollo (Preview Edge Only) */
html.is-production .preview-edge-only,
body.is-production .preview-edge-only {
  display: none !important;
}

/* En Preview Edge: Ocultar módulos ya publicados (Prod Only) */
html.is-preview .prod-only,
body.is-preview .prod-only,
body:not(.is-production) .prod-only {
  display: none !important;
}

.is-production .prod-nav-direct {
  display: inline-flex !important;
}



/* ==========================================================================
   Module Header Banners
   ========================================================================== */
.module-header-banner {
  background: linear-gradient(135deg, rgba(14, 23, 42, 0.85) 0%, rgba(8, 14, 27, 0.95) 100%);
  border: 1px solid rgba(0, 242, 254, 0.18);
  border-left: 4px solid var(--accent-cyan);
  border-radius: 12px;
  padding: 1.25rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}
.module-header-banner::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(0, 242, 254, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.module-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulseGlow 2s infinite ease-in-out;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.module-main-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem 0;
  line-height: 1.25;
}
.module-lead-desc {
  font-size: 0.86rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
  max-width: 1000px;
}

/* ==========================================================================
   Main Container & Section Modules
   ========================================================================== */
.app-main {
  max-width: 1600px;
  margin: 1.75rem auto 4rem auto;
  padding: 0 1.5rem;
  min-height: 75vh;
}

.module-section {
  display: none;
  animation: fadeIn 0.24s ease-out;
  scroll-margin-top: 5.5rem;
}

/* Mobile Touch & Tap Latency Optimization (eliminates 300ms tap delay) */
button,
a,
input,
select,
.hub-card-btn,
.nav-tab-btn,
.nav-dropdown-btn,
.home-cta-btn,
.instruction-card,
.skill-card,
.stat-card,
.booster-card,
.ps-card,
.ps-subnav-btn,
.filter-btn,
.subnav-btn {
  touch-action: manipulation;
}
.module-section.active {
  display: block;
}
:target {
  scroll-margin-top: 5.5rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Live Stats Summary Bar */
.stats-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.summary-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.summary-val {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.summary-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* View Mode Toolbar */
.view-mode-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.85rem;
}

/* Filters & Toolbar */
.filters-bar, .toolbar-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Mandato Canónico 11: Subnavegación / Filtros Fijados Skills (05) */
#skillsFiltersBar {
  position: -webkit-sticky;
  position: sticky;
  top: 72px;
  z-index: 95;
  background: rgba(10, 15, 29, 0.94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

@media (max-width: 768px) {
  #skillsFiltersBar {
    top: 60px;
    padding: 0.85rem;
    border-radius: 12px;
    gap: 0.65rem;
  }
}

.filters-top-row, .toolbar-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-box {
  width: 100%;
  position: relative;
}

.search-box input {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.85rem 1rem 0.85rem 2.85rem;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s;
}

.search-box input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.25);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

.view-mode-toggle {
  display: inline-flex;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
}

.view-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.42rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
  white-space: nowrap !important;
}

.view-toggle-btn:hover {
  color: #fff;
}

.view-toggle-btn.active {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.35);
}

.filter-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filter-btn, .filter-pill {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
  white-space: nowrap !important;
}

.filter-btn:hover, .filter-pill:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active, .filter-pill.active {
  background: var(--accent-cyan);
  color: #000;
  font-weight: 800;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.35);
}

.filter-count {
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.25);
  font-family: var(--font-mono);
}

.filter-btn.active .filter-count, .filter-pill.active .filter-count {
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
}

/* ==========================================================================
   SKILLS CARDS GRID & COMPONENTS (Exact Match of SKILLS_INFOGRAPHICS_GUIDE.html)
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.skill-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Family Accent Glow Borders */
.skill-card[data-family="Habilidades de tiro"] { border-left: 4px solid var(--accent-rose); }
.skill-card[data-family="Habilidades de pase"] { border-left: 4px solid var(--accent-emerald); }
.skill-card[data-family="Habilidades de regate"] { border-left: 4px solid var(--accent-cyan); }
.skill-card[data-family="Habilidades defensivas"] { border-left: 4px solid var(--accent-blue); }
.skill-card[data-family="Habilidades de portero"] { border-left: 4px solid var(--accent-amber); }
.skill-card[data-family="Habilidades de mentalidad"] { border-left: 4px solid var(--accent-purple); }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.family-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.25;
}
.fam-tiro { background: rgba(244, 63, 94, 0.15); color: #fda4af; border: 1px solid rgba(244, 63, 94, 0.3); }
.fam-pase { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }
.fam-regate { background: rgba(6, 182, 212, 0.15); color: #67e8f9; border: 1px solid rgba(6, 182, 212, 0.3); }
.fam-defensivas { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.3); }
.fam-portero { background: rgba(245, 158, 11, 0.15); color: #fde68a; border: 1px solid rgba(245, 158, 11, 0.3); }
.fam-mentalidad { background: rgba(168, 85, 247, 0.15); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.3); }

.id-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap !important;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  text-align: center;
}
.tier-st { background: linear-gradient(135deg, #eab308, #ca8a04); color: #000; }
.tier-std { background: rgba(100, 116, 139, 0.3); color: #cbd5e1; border: 1px solid rgba(100, 116, 139, 0.3); }
.tier-unreleased { background: linear-gradient(135deg, #475569, #334155); color: #f1f5f9; border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 0 10px rgba(71, 85, 105, 0.35); }
.tier-proto { background: rgba(14, 165, 233, 0.15); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.35); }

.skill-thumb-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 0.5rem;
  margin-bottom: 0.85rem;
  background: transparent;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  position: relative;
}
.skill-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
}

.skill-title-block {
  margin-bottom: 0.85rem;
}
.skill-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.2rem;
}
.skill-subname {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0;
  font-family: var(--font-mono);
}

.condition-box {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.75rem;
  font-size: 0.825rem;
  line-height: 1.45;
}
.condition-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.condition-text {
  color: #e2e8f0;
  font-weight: 500;
}

.desc-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.tactical-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 0.75rem;
  font-size: 0.825rem;
  line-height: 1.45;
}
.tactical-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-emerald);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.tactical-text { color: #cbd5e1; }

.effect-badge-row {
  margin-bottom: 1rem;
}
.effect-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #67e8f9;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
}

/* Forensic View Elements */
.tokens-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.token-pill {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  color: #94a3b8;
  font-family: var(--font-mono);
}
.param-pill {
  font-size: 0.7rem;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  color: #d8b4fe;
  font-family: var(--font-mono);
}

.mech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}
.mech-STAT_INJECTION { background: rgba(6, 182, 212, 0.15); color: #67e8f9; border: 1px solid rgba(6, 182, 212, 0.3); }
.mech-KINEMATIC_PHYSICS { background: rgba(245, 158, 11, 0.15); color: #fde68a; border: 1px solid rgba(245, 158, 11, 0.3); }
.mech-BLEND_TREE_ANIMATION { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.3); }
.mech-GAME_STATE_MODIFIER { background: rgba(168, 85, 247, 0.15); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.3); }
.mech-INTER_ACTOR_TAG { background: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }

.spec-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 0.75rem;
  font-size: 0.825rem;
  line-height: 1.45;
}
.spec-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.spec-text { color: #e2e8f0; }
.spec-formula {
  font-family: var(--font-mono);
  color: #67e8f9;
  font-size: 0.85rem;
  font-weight: 700;
  word-break: break-word;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}
.btn-card-detail {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-card-detail:hover {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

/* ==========================================================================
   STATS CARDS GRID & COMPONENTS (Exact Match of STATS_INFOGRAPHICS_GUIDE.html)
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 242, 254, 0.12);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.category-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}
.category-attack { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.category-defence { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.category-strength { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

.target-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  max-width: 100%;
  word-break: break-word;
  white-space: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
}

.stat-identity {
  margin-bottom: 0.75rem;
}
.stat-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.stat-token {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 0.15rem;
}

.stat-summary-box {
  font-size: 0.82rem;
  color: #cbd5e1;
  background: rgba(7, 13, 25, 0.6);
  border-left: 3px solid var(--accent-cyan);
  padding: 0.55rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

.stat-mechanic-box {
  font-size: 0.76rem;
  color: #94a3b8;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.btn-detail {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(56, 189, 248, 0.25));
  border: 1px solid var(--accent-cyan);
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-detail:hover {
  background: var(--accent-cyan);
  color: #060b14;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

/* ==========================================================================
   Comparative Tables View
   ========================================================================== */
.skills-table-wrap, .table-container, .table-responsive {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow-x: auto;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.skills-table, .forensic-table, .data-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

body.rtl-mode .skills-table, body.rtl-mode .forensic-table, body.rtl-mode .data-table {
  text-align: right;
}

.skills-table th, .forensic-table th, .data-table th {
  background: rgba(15, 23, 42, 0.95);
  padding: 0.85rem 1rem;
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap !important;
}

.skills-table td, .forensic-table td, .data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  vertical-align: middle;
}

.skills-table tr:hover td, .forensic-table tr:hover td, .data-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   Full-Page Detail View (Skills & Stats Ficha Completa)
   Replaces floating modal with full-page dedicated view
   ========================================================================== */
.detail-full-page {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding-bottom: 3rem;
  width: 100%;
}

.detail-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #67e8f9;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.6rem 1.15rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.btn-detail-back:hover {
  background: rgba(6, 182, 212, 0.25);
  border-color: #22d3ee;
  color: #fff;
  transform: translateX(-3px);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}
.btn-detail-back .back-arrow {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.2s;
}
.btn-detail-back:hover .back-arrow {
  transform: translateX(-2px);
}

.detail-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.detail-breadcrumbs .crumb-link {
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.15s;
}
.detail-breadcrumbs .crumb-link:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}
.detail-breadcrumbs .crumb-sep {
  color: #475569;
}
.detail-breadcrumbs .crumb-current {
  color: #fff;
  font-weight: 700;
}

.detail-content-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.detail-header-identity {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.75rem;
}

.detail-identity-main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  min-width: 280px;
}

.detail-thumb-small {
  width: 160px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(0, 242, 254, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 242, 254, 0.2);
  background: #020617;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.detail-thumb-small:hover {
  transform: scale(1.05);
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 242, 254, 0.4);
}

.detail-thumb-small img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #020617;
}

.detail-title-group {
  flex: 1;
}

.detail-title-group h1 {
  font-size: 2.25rem;
  font-weight: 900;
  color: #fff;
  margin: 0.35rem 0 0.3rem 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.detail-subname {
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .detail-identity-main {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
  }
  .detail-thumb-small {
    width: 112px;
    height: 63px;
    flex-shrink: 0;
  }
  .detail-title-group h1 {
    font-size: 1.45rem !important;
  }
}

@media (max-width: 768px) {
  .detail-content-wrap {
    padding: 1.25rem;
  }
  .detail-title-group h1 {
    font-size: 1.65rem;
  }
}

/* ==========================================================================
   Interactive Modals & Lightbox
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-backdrop.show, .modal-backdrop.active {
  display: flex;
}

/* Skills Modal Box */
.modal-box {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}
.modal-close:hover { background: rgba(244, 63, 94, 0.3); color: #fda4af; }

/* Stats Modal Dialog */
.modal-dialog {
  background: #090f1d;
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(6, 182, 212, 0.2);
  display: flex;
  flex-direction: column;
}

.modal-header {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}
.modal-close-btn:hover {
  color: #fff;
  transform: scale(1.15);
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.spec-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1rem;
}
.spec-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.spec-card-content {
  font-size: 0.88rem;
  color: #e2e8f0;
}

/* Tactical Vector Diagram in Modal */
.modal-diagram-wrap {
  background: rgba(7, 13, 25, 0.95);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.modal-diagram-header {
  background: rgba(6, 182, 212, 0.08);
  border-bottom: 1px solid rgba(6, 182, 212, 0.15);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.modal-diagram-body {
  padding: 1rem;
  text-align: center;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.6) 0%, rgba(6, 11, 20, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
}
.modal-diagram-body svg {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  display: block;
  margin: 0 auto;
}

/* 18-Language Matrix */
.trans-matrix {
  margin-top: 0.5rem;
}
.trans-matrix-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}
.trans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.trans-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
}
.trans-flag {
  display: inline-flex;
  flex-shrink: 0;
}
.trans-lang { color: var(--text-muted); font-size: 0.7rem; width: 26px; }
.trans-val { color: #fff; font-weight: 700; white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; }

/* Stat Boost Grid (Super-sub, Momentum, etc.) */
.stat-boost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.55rem;
  margin-top: 0.75rem;
}
.stat-boost-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
}
.stat-boost-name { color: #e2e8f0; font-weight: 600; }
.stat-boost-val {
  color: #34d399;
  font-weight: 800;
  font-family: var(--font-mono);
  background: rgba(16, 185, 129, 0.22);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Lightbox & Interactive Mobile Diagram Zoom */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  flex-direction: column;
  touch-action: none;
  user-select: none;
}
.lightbox-backdrop.show { display: flex; }

.lightbox-viewport {
  width: 100%;
  height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  touch-action: none;
}

.lightbox-content-box {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  transform-origin: center center;
  transition: transform 0.15s ease-out;
  cursor: grab;
  touch-action: none;
}
.lightbox-content-box:active {
  cursor: grabbing;
}

.lightbox-backdrop img {
  max-width: 95vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

.lightbox-svg-wrap {
  width: 95vw;
  max-width: 1100px;
  height: auto;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.lightbox-svg-wrap svg {
  width: 100%;
  height: auto;
  max-height: 80vh;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.85));
}

.lightbox-zoom-hint {
  position: absolute;
  top: 1.15rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 130px);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: #67e8f9;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 2510;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.lightbox-close-btn {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2520;
  transition: background 0.2s, transform 0.2s;
}

@media (max-width: 480px) {
  .lightbox-zoom-hint {
    top: 1rem;
    left: 1rem;
    transform: none;
    max-width: calc(100vw - 85px);
    font-size: 0.68rem;
    padding: 0.32rem 0.65rem;
  }
  .lightbox-close-btn {
    top: 0.85rem;
    right: 0.85rem;
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }
}
.lightbox-close-btn:hover {
  background: rgba(239, 68, 68, 0.4);
  border-color: #ef4444;
  transform: scale(1.08);
}

.lightbox-caption {
  color: #cbd5e1;
  font-size: 0.88rem;
  margin-top: 0.75rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
  z-index: 2510;
}

/* Clickable / Tappable Diagram Affordances */
#modalDiagramContainer,
#modal-skill-diagram-container {
  cursor: zoom-in;
  position: relative;
  transition: opacity 0.2s;
}
#modalDiagramContainer:hover,
#modal-skill-diagram-container:hover {
  opacity: 0.95;
}
.diagram-tap-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

/* Radar Best Box */

/* =============================================================================
   NETWORK RADAR & SERVER TELEMETRY STYLES (Google Stitch Glassmorphism HUD)
   ============================================================================= */

/* HUD Ribbon */
.radar-hud-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hud-ribbon-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: var(--stitch-surface-glass, rgba(15, 23, 42, 0.6));
  border: 1px solid rgba(0, 242, 254, 0.15);
  border-radius: var(--stitch-radius-md, 12px);
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.hud-ribbon-card:hover {
  border-color: rgba(0, 242, 254, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 242, 254, 0.08);
}

.hrc-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 10px;
}

.hrc-val {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.hrc-lbl {
  font-size: 0.75rem;
  color: var(--text-dim, #94a3b8);
  margin-top: 2px;
}

/* Diagnostic Test Card */
.radar-ping-card {
  padding: 1.5rem;
  margin-bottom: 2rem;
  background: var(--stitch-surface-glass, rgba(15, 23, 42, 0.65));
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: var(--stitch-radius-lg, 16px);
  backdrop-filter: blur(16px);
}

.radar-ping-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.rph-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 720px;
}

.rph-icon {
  font-size: 1.75rem;
  padding: 0.6rem;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 12px;
}

.rph-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.02em;
}

.rph-desc {
  font-size: 0.85rem;
  color: var(--text-dim, #94a3b8);
  line-height: 1.5;
  margin: 0;
}

.btn-radar-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #060c18;
  border: none;
  border-radius: 9999px;
  padding: 0.7rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap !important;
}

.btn-radar-action:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
}

.btn-radar-action:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spinner-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #060c18;
  border-top-color: transparent;
  border-radius: 50%;
  animation: radarSpin 0.7s linear infinite;
}

@keyframes radarSpin {
  to { transform: rotate(360deg); }
}

.radar-test-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-top: 1.25rem;
  overflow: hidden;
}

.radar-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00f2fe, #10b981);
  transition: width 0.2s ease;
}

.radar-test-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.radar-live-log {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.radar-ping-tag {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  color: var(--accent-cyan, #00f2fe);
}

.radar-diag-empty {
  text-align: center;
  padding: 1.75rem 1rem;
  color: var(--text-dim, #94a3b8);
}

.diag-empty-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.diag-empty-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.diag-empty-desc {
  font-size: 0.82rem;
  max-width: 500px;
  margin: 0 auto;
}

.radar-diag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.radar-metric-tile {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 1rem;
}

.rm-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim, #94a3b8);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rm-val {
  font-size: 1.55rem;
  font-weight: 900;
  margin: 0.35rem 0 0.15rem;
  font-family: var(--font-mono, monospace);
}

.rm-unit {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim, #94a3b8);
}

.rm-sub {
  font-size: 0.73rem;
  color: #94a3b8;
}

.radar-diag-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: var(--text-dim, #94a3b8);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.diag-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.meta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* =============================================================================
   MANDATO CANÓNICO 11: SUBNAV BAR Y NAVEGACIÓN FIJADA RADAR DE RED (04)
   ============================================================================= */
.radar-subnav-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  background: rgba(10, 15, 29, 0.88);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  position: sticky;
  top: 72px;
  z-index: 95;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.25s ease;
}

.radar-subnav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
}

.radar-subnav-btn span:first-child {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #00f2fe;
}

.radar-subnav-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.radar-subnav-btn.active {
  background: rgba(0, 242, 254, 0.15);
  color: #00f2fe;
  border-color: rgba(0, 242, 254, 0.35);
  font-weight: 700;
}

@media (max-width: 768px) {
  .radar-subnav-bar {
    top: 60px;
    padding: 0.45rem 0.6rem;
    gap: 0.4rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .radar-subnav-bar::-webkit-scrollbar {
    display: none;
  }
  .radar-subnav-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* Map Wrapper & SVG styling */
.radar-map-wrapper {
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  background: var(--stitch-surface-glass, rgba(15, 23, 42, 0.65));
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: var(--stitch-radius-lg, 16px);
  backdrop-filter: blur(16px);
  position: relative;
}

.radar-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.rmh-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.25rem;
  letter-spacing: -0.01em;
}

.rmh-subtitle {
  font-size: 0.84rem;
  color: var(--text-dim, #94a3b8);
  margin: 0;
}

.radar-region-filter-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.radar-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-cyan, #00f2fe);
}

.rfl-icon {
  font-size: 0.95rem;
}

.radar-region-pills {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

/* Latency Color Legend Bar */
.radar-map-legend-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.1rem;
  margin-bottom: 1.1rem;
  background: rgba(11, 17, 32, 0.7);
  border: 1px solid rgba(0, 242, 254, 0.16);
  border-radius: var(--stitch-radius-md, 10px);
  flex-wrap: wrap;
}

.rml-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #fff;
  font-weight: 700;
}

.rml-beacon {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan, #00f2fe);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan, #00f2fe);
  display: inline-block;
}

.rml-items {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.rml-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
}

.rml-color-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.rml-color-dot.dot-optimal {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
}

.rml-color-dot.dot-good {
  background: #06b6d4;
  box-shadow: 0 0 6px rgba(6, 182, 212, 0.7);
}

.rml-color-dot.dot-fair {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.7);
}

.rml-color-dot.dot-high {
  background: #f43f5e;
  box-shadow: 0 0 6px rgba(244, 63, 94, 0.7);
}

.rml-text {
  color: #cbd5e1;
  font-weight: 500;
}

.map-region-filter {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-region-filter:hover {
  background: rgba(0, 242, 254, 0.12);
  color: var(--accent-cyan, #00f2fe);
  border-color: rgba(0, 242, 254, 0.3);
}

.map-region-filter.active {
  background: var(--accent-cyan, #00f2fe);
  color: #060c18;
  border-color: var(--accent-cyan, #00f2fe);
  box-shadow: 0 2px 10px rgba(0, 242, 254, 0.35);
}

.radar-svg-container {
  width: 100%;
  aspect-ratio: 2 / 1;
  background: radial-gradient(circle at 50% 50%, #0c162d 0%, #060a14 100%);
  border: 1px solid rgba(0, 242, 254, 0.15);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.7);
}

.radar-world-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.radar-world-land {
  transition: fill 0.3s ease;
}

.radar-world-land:hover {
  fill: #14223d;
}

.radar-map-node-group {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.radar-map-node-group:hover {
  filter: drop-shadow(0 0 8px currentColor);
}

.radar-node-pulse {
  animation: radarNodeRipple 2.2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  transform-origin: center;
}

@keyframes radarNodeRipple {
  0% {
    r: 4;
    opacity: 0.85;
  }
  100% {
    r: 16;
    opacity: 0;
  }
}

.radar-map-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(11, 17, 32, 0.94);
  border: 1px solid var(--accent-cyan, #00f2fe);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 242, 254, 0.2);
  backdrop-filter: blur(8px);
  z-index: 100;
  min-width: 180px;
}

.tt-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-weight: 800;
  color: #fff;
  font-size: 0.88rem;
}

.tt-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.75rem;
}

.tt-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.tt-lbl {
  color: var(--text-dim, #94a3b8);
}

/* Netcode Section */
.radar-netcode-section {
  padding: 2rem 1.5rem;
  margin-bottom: 2.5rem;
  background: var(--stitch-surface-glass, rgba(15, 23, 42, 0.65));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--stitch-radius-lg, 16px);
  backdrop-filter: blur(16px);
}

.radar-p2p-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 1.75rem 0;
}

.netcode-card {
  padding: 1.5rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: all 0.25s ease;
}

.dedicated-card {
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.04);
}

.dedicated-card:hover {
  border-color: rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
}

.p2p-card {
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow: inset 0 0 20px rgba(245, 158, 11, 0.04);
}

.p2p-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
}

.nc-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.85rem;
  letter-spacing: 0.03em;
}

.nc-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.5rem;
}

.nc-desc {
  font-size: 0.84rem;
  color: var(--text-dim, #94a3b8);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.nc-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.nc-features li {
  position: relative;
  padding-left: 1.2rem;
  line-height: 1.45;
}

.nc-features li::before {
  content: "•";
  position: absolute;
  left: 0.25rem;
  color: var(--accent-cyan, #00f2fe);
  font-size: 1.1rem;
}

.netcode-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 1.5rem;
}

.netcode-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
  text-align: left;
}

.netcode-table th {
  background: rgba(15, 23, 42, 0.85);
  padding: 0.85rem 1rem;
  color: #fff;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.netcode-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.netcode-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Single Line Title on Desktop (Gated for min-width: 992px) */
@media (min-width: 992px) {
  .radar-single-line-desktop {
    white-space: nowrap !important;
    font-size: clamp(1.2rem, 1.95vw, 1.85rem) !important;
    letter-spacing: -0.015em !important;
  }
}

/* Forensic Handicap & Scripting Demystification Banner */
.netcode-forensic-banner {
  margin-top: 1.75rem;
  padding: 1.75rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: inset 0 0 25px rgba(56, 189, 248, 0.04), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nc-forensic-header {
  margin-bottom: 1.5rem;
}

.badge-forensic {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.nc-forensic-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0.5rem 0 0.5rem;
  letter-spacing: -0.02em;
}

.nc-forensic-lead {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 1000px;
}

.nc-forensic-lead strong {
  color: #38bdf8;
}

.nc-forensic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.nc-forensic-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 1.15rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.nc-forensic-item:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.3);
}

.ncf-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  padding: 0.4rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.ncf-content h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 0.4rem;
}

.ncf-content p {
  font-size: 0.81rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

/* Optimization Cards */
.radar-optimization-section {
  margin-bottom: 2.5rem;
}

.radar-opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.opt-card {
  padding: 1.35rem;
  border-radius: 12px;
  background: var(--stitch-surface-glass, rgba(15, 23, 42, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.opt-card:hover {
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.opt-icon {
  font-size: 1.6rem;
  margin-bottom: 0.65rem;
}

.opt-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.45rem;
  letter-spacing: -0.01em;
}

.opt-desc {
  font-size: 0.82rem;
  color: var(--text-dim, #94a3b8);
  line-height: 1.5;
  margin: 0;
}

/* Datacenter Catalog Table Card */
.radar-table-card {
  padding: 1.5rem;
  background: var(--stitch-surface-glass, rgba(15, 23, 42, 0.65));
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: var(--stitch-radius-lg, 16px);
  backdrop-filter: blur(16px);
}

.radar-table-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.rth-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.2rem;
}

.rth-subtitle {
  font-size: 0.82rem;
  color: var(--text-dim, #94a3b8);
  margin: 0;
}

.rth-count-badge {
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--accent-cyan, #00f2fe);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
}

.radar-controls-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.radar-search-input-wrap {
  position: relative;
  flex: 1 1 240px;
}

.rsi-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: var(--text-dim, #94a3b8);
}

.rsi-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.55rem 0.85rem 0.55rem 2.2rem;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.rsi-input:focus {
  border-color: var(--accent-cyan, #00f2fe);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.rsi-select {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

.radar-ping-pills {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.radar-ping-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radar-ping-pill:hover {
  background: rgba(255, 255, 255, 0.12);
}

.radar-ping-pill.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan, #00f2fe);
  color: var(--accent-cyan, #00f2fe);
}

.radar-ping-pill.pill-opt.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #10b981;
}

.radar-ping-pill.pill-good.active {
  background: rgba(6, 182, 212, 0.2);
  border-color: #06b6d4;
  color: #06b6d4;
}

.radar-ping-pill.pill-fair.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #f59e0b;
}

.radar-ping-pill.pill-high.active {
  background: rgba(244, 63, 94, 0.2);
  border-color: #f43f5e;
  color: #f43f5e;
}

.sortable-th {
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.sortable-th:hover {
  color: var(--accent-cyan, #00f2fe);
}

.radar-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #10b981;
  font-weight: 600;
}

.radar-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.ping-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
}

.ping-pill.optimal {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
}

.ping-pill.good {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #06b6d4;
}

.ping-pill.fair {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #f59e0b;
}

.ping-pill.high {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #f43f5e;
}

@media (max-width: 768px) {
  .radar-hud-ribbon {
    grid-template-columns: 1fr;
  }
  .radar-ping-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-radar-action {
    width: 100%;
    justify-content: center;
  }
  .radar-map-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .radar-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .top10-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .top10-sort-controls {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
  .top10-sort-btn {
    flex: 1;
    text-align: center;
  }
  .radar-top10-container {
    padding: 0.85rem;
  }
  .top10-table th, .top10-table td {
    padding: 0.6rem 0.65rem;
  }
}



/* Footer HUD & Enterprise Legal Disclaimers */
.app-footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  margin-top: 5rem;
  background: radial-gradient(circle at 50% 0%, rgba(15, 23, 42, 0.75) 0%, rgba(7, 10, 18, 0.95) 100%);
  position: relative;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.footer-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.footer-divider {
  width: 100%;
  max-width: 820px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  margin: 0.35rem 0 0.65rem;
}

.footer-copyright {
  font-size: 0.82rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.footer-brand-name {
  color: #f8fafc;
  font-weight: 700;
}

.footer-disclaimer {
  font-size: 0.74rem;
  line-height: 1.6;
  color: #64748b;
  max-width: 780px;
  text-align: center;
  margin: 0 auto;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.legal-link-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(148, 163, 184, 0.35);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s ease;
  padding: 3px 6px;
  border-radius: 4px;
}

.legal-link-btn:hover {
  color: #38bdf8;
  text-decoration-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

.legal-sep {
  color: #475569;
  user-select: none;
  font-size: 0.8rem;
}

.footer-powered {
  font-size: 0.72rem;
  color: #475569;
  margin-top: 0.35rem;
  letter-spacing: 0.025em;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-tg {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.btn-tg:hover { background: rgba(56, 189, 248, 0.25); transform: translateY(-1px); }

/* ==========================================================================
   ENTERPRISE LEGAL MODAL (Terms of Service, Privacy Policy, Fair Use)
   ========================================================================== */
.legal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: legalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-modal-backdrop.show {
  display: flex;
}

@keyframes legalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.legal-modal-dialog {
  background: #0b1120;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 18px;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 35px rgba(0, 242, 254, 0.08);
  overflow: hidden;
  animation: legalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes legalSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.7);
}

.legal-modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.legal-modal-icon {
  font-size: 1.4rem;
}

.legal-modal-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.legal-modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 1.4rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.legal-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.legal-modal-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(10, 15, 28, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
}

.legal-tab-btn {
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap !important;
  font-family: inherit;
}

.legal-tab-btn:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
}

.legal-tab-btn.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
}

.legal-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  color: #cbd5e1;
  font-size: 0.84rem;
  line-height: 1.65;
  flex: 1;
}

.legal-modal-body h4 {
  font-size: 0.95rem;
  color: #f8fafc;
  margin: 1.25rem 0 0.5rem;
}

.legal-modal-body h4:first-child {
  margin-top: 0;
}

.legal-modal-body p {
  margin: 0 0 0.85rem;
  color: #94a3b8;
}

.legal-modal-body ul {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
  color: #94a3b8;
}

.legal-modal-body li {
  margin-bottom: 0.35rem;
}

.legal-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.7);
}

.legal-modal-brand {
  font-size: 0.72rem;
  color: #64748b;
  font-family: var(--font-mono, monospace);
}

.legal-btn-dismiss {
  padding: 0.45rem 1.25rem;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.legal-btn-dismiss:hover {
  background: rgba(56, 189, 248, 0.28);
  color: #fff;
  transform: translateY(-1px);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & TOUCH OPTIMIZATION (Mandatory Perfection)
   ========================================================================== */
@media (max-width: 768px) {

  /* Horizontal swipeable 18-Language Flags Bar */
  .quick-lang-group {
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 4px 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 3px;
  }
  .quick-lang-group::-webkit-scrollbar {
    display: none;
  }
  .quick-lang-btn {
    padding: 0.2rem 0.35rem;
    font-size: 0.65rem;
  }

  .nav-container {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-container::-webkit-scrollbar {
    display: none;
  }
  .nav-links {
    flex-wrap: nowrap;
    gap: 0.35rem;
    padding: 3px 6px;
    width: auto;
  }
  .nav-tab-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    white-space: nowrap !important;
    flex-shrink: 0;
  }

  .header-actions-row {
    width: 100%;
    gap: 0.4rem;
  }
  .header-social-group {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
  }
  .social-header-btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 9999px;
    white-space: nowrap !important;
  }

  .app-main {
    margin: 0.85rem auto 2.5rem auto;
    padding: 0 0.65rem;
  }

  /* Compact 2-column mobile stats counters (matching SKILLS_INFOGRAPHICS_GUIDE.html) */
  .stats-summary-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.45rem !important;
    margin-bottom: 0.85rem !important;
  }
  .summary-card {
    padding: 0.6rem 0.75rem !important;
    gap: 0.6rem !important;
    border-radius: 12px !important;
  }
  .summary-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.1rem !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }
  .summary-val {
    font-size: 1.25rem !important;
    line-height: 1 !important;
  }
  .summary-lbl {
    font-size: 0.65rem !important;
    margin-top: 0.15rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Filter Toolbar Mobile Optimization */
  .filters-bar, .toolbar-panel {
    padding: 0.85rem;
    border-radius: 14px;
    margin-bottom: 1.25rem;
    gap: 0.75rem;
  }
  .filters-top-row, .toolbar-row-top {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .search-box {
    min-width: 100%;
  }
  .search-box input {
    padding: 0.68rem 0.85rem 0.68rem 2.45rem;
    font-size: 0.88rem;
    border-radius: 10px;
  }
  .search-icon {
    left: 0.85rem;
    font-size: 0.95rem;
  }

  /* Horizontal swipeable filters */
  .filter-pills-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    gap: 0.4rem;
    width: 100%;
  }
  .filter-pills-row::-webkit-scrollbar {
    display: none;
  }
  .filter-btn, .filter-pill {
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
    flex-shrink: 0;
  }
  .filter-count {
    font-size: 0.65rem;
    padding: 0.05rem 0.35rem;
  }

  /* 1-COLUMN CLEAN CARDS ON MOBILE (SKILLS & STATS) */
  .skills-grid, .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .skill-card, .stat-card {
    padding: 0.95rem;
    border-radius: 16px;
  }
  .skill-name, .stat-name {
    font-size: 1.05rem;
  }
  .skill-subname, .stat-token {
    font-size: 0.72rem;
  }
  .condition-box, .desc-box, .tactical-box, .spec-box, .stat-summary-box {
    padding: 0.55rem 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.78rem;
    line-height: 1.4;
    border-radius: 8px;
  }
  .condition-label, .tactical-label, .spec-label {
    font-size: 0.65rem;
  }

  /* Mobile Modals */
  .modal-backdrop {
    padding: 0.65rem;
  }
  .modal-box, .modal-dialog {
    padding: 1.15rem 0.85rem;
    border-radius: 16px;
    max-height: 94vh;
    width: 100%;
  }
  .modal-header {
    padding: 0.85rem;
  }
  .modal-body {
    padding: 0.85rem;
    gap: 1rem;
  }
  .modal-close, .modal-close-btn {
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
  }
  .modal-spec-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .trans-grid {
    grid-template-columns: 1fr;
    padding: 0.65rem;
    gap: 0.35rem;
  }
  .stat-boost-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }
  .stat-boost-pill {
    padding: 0.35rem 0.55rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  .brand-live-badge {
    display: none !important;
  }
  .stats-summary-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .stat-boost-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stitch-theme-panel {
    bottom: 16px;
    right: 16px;
  }
}

/* ==========================================================================
   MODULE 0: HOME LANDING PAGE (Google Stitch / Cybernetic Forensic Hub)
   ========================================================================== */
.home-hero {
  padding: 3.5rem 1.5rem 2.5rem 1.5rem;
  max-width: 1360px;
  margin: 0 auto 2.5rem auto;
  position: relative;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  text-align: left;
}

.home-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid var(--stitch-sys-border-glow);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.2);
}

.home-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1.6rem;
  background: linear-gradient(135deg, #ffffff 40%, #cbd5e1 75%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: left;
}

.home-hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 0 2rem 0;
  text-align: left;
}

/* Home Omnibox Search */
.home-omnibox-wrap {
  width: 100%;
  max-width: 580px;
  margin: 0 0 0.75rem 0;
  position: relative;
}

.home-omnibox {
  display: flex;
  align-items: center;
  background: rgba(17, 22, 34, 0.92);
  border: 1.5px solid rgba(0, 242, 254, 0.25);
  border-radius: 14px;
  padding: 0.65rem 1.25rem;
  gap: 0.85rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 16px rgba(0, 242, 254, 0.12);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-omnibox:focus-within,
.home-omnibox:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.65), 0 0 24px var(--stitch-sys-color-primary-glow);
  transform: translateY(-2px);
}

.home-omnibox-icon {
  font-size: 1.25rem;
  opacity: 0.8;
  flex-shrink: 0;
}

.home-omnibox-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 1.02rem;
  font-family: var(--font-sans);
}

.home-omnibox-input::placeholder {
  color: #64748b;
  font-size: 0.95rem;
}

.home-omnibox-kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-weight: 600;
  flex-shrink: 0;
}

/* Home CTA Row (Más Contenido & Refinado) */
.home-cta-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.home-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 1.15rem;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.home-cta-btn .cta-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.home-cta-primary {
  background: linear-gradient(135deg, #00f2fe 0%, #06b6d4 100%);
  color: #060c18;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
}
.home-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 242, 254, 0.55);
}

.home-cta-secondary {
  background: rgba(168, 85, 247, 0.12);
  color: #d8b4fe;
  border: 1.5px solid rgba(168, 85, 247, 0.4);
}
.home-cta-secondary:hover {
  background: rgba(168, 85, 247, 0.22);
  color: #ffffff;
  border-color: #a855f7;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(168, 85, 247, 0.3);
}

/* Right Column: 3D Floating Forensic Mockup Showcase (eFootBox Parity) */
.home-hero-media {
  position: relative;
  width: 100%;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.hero-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ambient Backdrops */
.mockup-ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(65px);
  pointer-events: none;
  opacity: 0.55;
  z-index: 1;
}

.glow-cyan {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.45) 0%, rgba(6, 182, 212, 0) 70%);
  top: 10%;
  left: 5%;
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

.glow-purple {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, rgba(139, 92, 246, 0) 70%);
  bottom: 10%;
  right: 5%;
  animation: pulseGlow 8s ease-in-out infinite alternate-reverse;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.45; }
  100% { transform: scale(1.1); opacity: 0.7; }
}

/* Floating Emblem */
.mockup-emblem-float {
  position: absolute;
  top: -24px;
  right: 15px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(10, 16, 28, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(0, 242, 254, 0.6);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.45), 0 10px 20px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: floatEmblem 4s ease-in-out infinite;
}

.mockup-emblem-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.6));
}

@keyframes floatEmblem {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(4deg); }
}

/* Floating Cards Common */
.mockup-card {
  position: absolute;
  border-radius: 18px;
  box-sizing: border-box;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

/* Back Card (Physics & Attributes) */
.mockup-card-back {
  width: 380px;
  top: 15px;
  left: 20px;
  padding: 1.5rem 1.6rem;
  background: rgba(15, 23, 42, 0.75);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(168, 85, 247, 0.15);
  transform: perspective(1000px) rotateY(-8deg) rotateX(6deg) rotate(4deg);
  z-index: 2;
  opacity: 0.88;
}

.mockup-card-back:hover {
  transform: perspective(1000px) rotateY(-4deg) rotateX(4deg) rotate(2deg) translateY(-6px);
  opacity: 1;
  border-color: rgba(168, 85, 247, 0.6);
}

/* Front Card (Croqueta Especial - Core Engine) */
.mockup-card-front {
  width: 410px;
  bottom: 10px;
  right: 15px;
  padding: 1.6rem 1.75rem;
  background: rgba(11, 18, 33, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(0, 242, 254, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 30px rgba(0, 242, 254, 0.22);
  transform: perspective(1000px) rotateY(-5deg) rotateX(3deg) rotate(-2.5deg);
  z-index: 5;
}

.mockup-card-front:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) rotate(0deg) translateY(-8px);
  border-color: var(--accent-cyan);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 242, 254, 0.35);
}

/* Card Inner Components */
.mcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.mcard-chip {
  font-size: 0.68rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}

.chip-cyan {
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: var(--accent-cyan);
}

.chip-purple {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.mcard-code {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: #94a3b8;
  font-weight: 700;
}

.mcard-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

.mcard-meta {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #64748b;
  margin-bottom: 1rem;
}

.mcard-stats-row {
  display: flex;
  gap: 1.5rem;
  margin: 0.75rem 0 1rem 0;
}

.mcard-stat {
  display: flex;
  flex-direction: column;
}

.mstat-val {
  font-size: 1.35rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: #e2e8f0;
}

.mstat-lbl {
  font-size: 0.72rem;
  color: #94a3b8;
}

.mcard-engine-tag {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #c084fc;
}

.engine-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot-purple {
  background: #c084fc;
  box-shadow: 0 0 8px #c084fc;
}

.mcard-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.mcard-metric-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  text-align: center;
}

.mm-val {
  font-size: 1.05rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.mm-lbl {
  font-size: 0.64rem;
  color: #94a3b8;
  margin-top: 0.15rem;
}

.mcard-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mcard-tl-step {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tl-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748b;
}

.mcard-tl-step.active .tl-bullet {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.tl-text {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: #94a3b8;
}

.mcard-tl-step.active .tl-text {
  color: #ffffff;
  font-weight: 700;
}

.mcard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
  font-size: 0.7rem;
}

.mcard-reqs {
  color: #94a3b8;
}

.req-tag {
  color: #cbd5e1;
  font-weight: 600;
  transition: all 0.2s ease;
}

.req-tag.clickable-tag {
  cursor: pointer;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.35);
  padding-bottom: 1px;
}

.req-tag.clickable-tag:hover {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.mcard-badge-verified {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Home Metrics Bar */
.home-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto 3rem auto;
}

.home-metric-card {
  background: rgba(17, 22, 34, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.home-metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
}

.home-metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.home-metric-val {
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  color: #ffffff;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-metric-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ecosystem Features Section (eFootBox 2x2 Numbered Layout) */
.home-features-section {
  max-width: 1200px;
  margin: 0 auto 3.5rem auto;
  contain: layout style;
}

.section-heading-center {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.5rem auto;
}

.section-eyebrow-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 0.28rem 0.8rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
}

.section-title-large {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.section-subtitle-large {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Core Modules Hub Grid */
.home-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3.5rem auto;
}

.home-hub-card {
  background: rgba(17, 22, 34, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-card-skills {
  border-top: 3px solid var(--accent-cyan);
}
.hub-card-stats {
  border-top: 3px solid var(--accent-purple);
}
.hub-card-pitch {
  border-top: 3px solid var(--accent-emerald);
}
.hub-card-loc {
  border-top: 3px solid #38bdf8;
}

/* Watermark Number on Hub Cards (eFootBox 01, 02, 03, 04) */
.hub-card-num-watermark {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 3.5rem;
  font-weight: 950;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.035);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.home-hub-card:hover .hub-card-num-watermark {
  color: rgba(0, 242, 254, 0.08);
  transform: translateY(-2px);
}

.hub-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.hub-card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.hub-card-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: 9999px;
}

/* Upcoming Hub Cards Styling */
.hub-card-upcoming {
  cursor: default;
  opacity: 0.88;
}

.hub-upcoming-pill {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.24rem 0.6rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
}

.hub-btn-disabled {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #64748b !important;
  cursor: not-allowed !important;
  pointer-events: none;
}

.hub-card-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.hub-card-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex: 1;
}

.hub-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.hub-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.hub-card-footer {
  margin-top: auto;
}

.hub-action-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  min-height: 44px !important;
  padding: 0.75rem 1.25rem !important;
  box-sizing: border-box !important;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  width: 100%;
  justify-content: center;
}

.hub-card-skills:hover .hub-action-btn {
  background: var(--accent-cyan);
  color: #060c18;
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.4);
}

.hub-card-stats:hover .hub-action-btn {
  background: var(--accent-purple);
  color: #ffffff;
  border-color: var(--accent-purple);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
}

/* Featured Forensic Spotlight: Special Double Touch */
.home-featured-spotlight {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.92) 0%, rgba(15, 23, 42, 0.96) 100%);
  border: 1.5px solid rgba(0, 242, 254, 0.3);
  border-left: 5px solid var(--accent-cyan);
  border-radius: 18px;
  padding: 2rem 2.25rem;
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 242, 254, 0.12);
  box-sizing: border-box;
  width: 100%;
}

.spotlight-visual {
  flex-shrink: 0;
}

.spotlight-diagram-glow {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.25) 0%, rgba(16, 185, 129, 0.1) 70%);
  border: 1px solid rgba(0, 242, 254, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(0, 242, 254, 0.25);
}

.spotlight-combo-icon {
  font-size: 2.2rem;
}

.spotlight-info {
  flex: 1;
  min-width: 0;
}

.spotlight-badge {
  display: inline-block;
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  margin-bottom: 0.65rem;
  font-family: var(--font-mono);
}

.spotlight-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.spotlight-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 820px;
}

.spotlight-btn {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(56, 189, 248, 0.25) 100%);
  border: 1px solid var(--accent-cyan);
  color: #ffffff;
  padding: 0.6rem 1.35rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.spotlight-btn:hover {
  background: var(--accent-cyan);
  color: #060c18;
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.45);
  transform: translateY(-2px);
}

@media (max-width: 820px) {
  .home-featured-spotlight {
    flex-direction: column !important;
    text-align: center !important;
    padding: 1.5rem 1.25rem !important;
    gap: 1.25rem !important;
    margin-bottom: 2rem !important;
  }
  .spotlight-desc {
    font-size: 0.88rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .spotlight-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* 3 Technical Pillars Section */
.home-pillars-section {
  max-width: 1200px;
  margin: 0 auto 2rem auto;
}

.pillars-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2rem;
}

.home-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  background: rgba(17, 22, 34, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.pillar-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
}

.pillar-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.pillar-head {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.65rem;
}

.pillar-body {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Responsive Breakpoints for Landing Page */
@media (max-width: 992px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .home-hero-content {
    align-items: center;
  }
  .home-hero-grid .home-hero-title,
  .home-hero-grid .home-hero-subtitle {
    text-align: center;
  }
  .home-hero-grid .home-omnibox-wrap {
    margin: 0 auto 0.75rem auto;
  }
  .home-hero-grid .home-cta-row {
    justify-content: center;
  }
  .home-hero-media,
  .hero-mockup-wrapper,
  .home-hero-mockup {
    display: none !important;
  }
  .home-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-hub-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .home-pillars-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-main {
    margin: 0.5rem auto 2.5rem auto !important;
    padding: 0 0.75rem !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: clip !important;
  }

  .home-hero {
    padding: 1.5rem 0.25rem 1.25rem 0.25rem !important;
    margin: 0 auto 1.5rem auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .home-hero-grid {
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .home-hero-content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    align-items: center !important;
  }

  .home-eyebrow {
    font-size: 0.62rem !important;
    letter-spacing: 0.03em !important;
    padding: 0.35rem 0.65rem !important;
    max-width: calc(100% - 1rem) !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.4 !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
    display: inline-flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    border-radius: 12px !important;
  }

  .home-eyebrow span:not(.pulse-dot) {
    white-space: normal !important;
    word-break: break-word !important;
    text-align: center !important;
  }

  .home-hero-title {
    font-size: clamp(1.25rem, 5.5vw, 1.65rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 0.85rem !important;
    padding: 0 0.5rem !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }

  .home-hero-subtitle {
    font-size: 0.86rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1.35rem !important;
    padding: 0 0.5rem !important;
    text-align: center !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .home-omnibox-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0.5rem !important;
    box-sizing: border-box !important;
  }

  .home-omnibox {
    padding: 0.55rem 0.85rem !important;
    gap: 0.5rem !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .home-omnibox-input {
    font-size: 0.86rem !important;
    min-width: 0 !important;
  }

  .home-omnibox-input::placeholder {
    font-size: 0.8rem !important;
  }

  .home-omnibox-kbd {
    display: none !important;
  }

  /* Mobile Hero Optimization: Hide CTA buttons & 3D mockup showcase on mobile */
  .home-cta-row,
  .home-hero-media {
    display: none !important;
  }

  .home-metrics-bar {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    margin-bottom: 2rem !important;
  }
  .home-metric-card {
    padding: 1rem 1.15rem !important;
  }

  .home-hub-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    margin-bottom: 2.25rem !important;
  }
  .home-hub-card {
    padding: 1.35rem 1.15rem !important;
    border-radius: 14px !important;
  }
  .hub-card-title {
    font-size: 1.35rem !important;
  }
  .hub-card-desc {
    font-size: 0.88rem !important;
  }

  .home-pillars-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .pillar-card {
    padding: 1.25rem !important;
    border-radius: 14px !important;
  }
}


/* ==========================================================================
   ENHANCED MOBILE & IOS SAFARI OPTIMIZATIONS (100% Responsiveness Standard)
   ========================================================================== */

/* 1. Prevent iOS Safari auto-zoom on input focus (< 16px causes forced zoom) */
@media (max-width: 768px) {
  input, select, textarea, .search-box input, .header-search-input {
    font-size: 16px !important;
  }
}

/* 2. Fix iOS Safari lag and scaling bug with background-attachment: fixed */
@supports (-webkit-touch-callout: none) {
  body {
    background-attachment: scroll !important;
  }
}

/* 3. Hero Mockup 3D Cards Hidden for Mobile Screens */
@media (max-width: 768px) {
  .home-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .home-hero-media,
  .hero-mockup-wrapper,
  .home-hero-mockup {
    display: none !important;
  }

  /* 4. Skills & Stats View Mode Switcher Toolbar Mobile Optimization */
  .view-mode-toolbar {
    justify-content: flex-start !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    margin-bottom: 0.85rem !important;
    padding-bottom: 4px !important;
  }
  .view-mode-toolbar::-webkit-scrollbar {
    display: none !important;
  }
  .view-mode-toggle {
    width: max-content !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
  }
  .view-toggle-btn {
    padding: 0.38rem 0.75rem !important;
    font-size: 0.75rem !important;
    white-space: nowrap !important;
  }

  /* 5. Detail Full-Page Views (statDetailPage & skillDetailPage) Mobile Containment */
  .detail-content-wrap {
    padding: 1.15rem 0.85rem !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .modal-spec-grid {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
    width: 100% !important;
  }

  .spec-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.85rem !important;
    overflow: hidden !important;
  }

  .spec-card-content,
  .spec-card-content.mono {
    font-size: 0.82rem !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }

  .detail-header-identity {
    gap: 0.85rem !important;
    padding-bottom: 1rem !important;
    margin-bottom: 1.15rem !important;
  }

  .detail-header-identity h1 {
    font-size: 1.5rem !important;
    word-break: break-word !important;
  }
}

/* ==========================================================================
   FORENSIC ACCORDION & PROGRESSIVE DISCLOSURE COMPONENT
   ========================================================================== */
.forensic-accordion {
  margin: 1.75rem 0;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(0, 242, 254, 0.25);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.forensic-accordion:hover {
  border-color: rgba(0, 242, 254, 0.45);
  box-shadow: 0 6px 28px rgba(0, 242, 254, 0.12);
}

.forensic-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.35rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.65) 100%);
  border: none;
  cursor: pointer;
  color: #f8fafc;
  font-family: inherit;
  text-align: left;
  user-select: none;
  gap: 0.75rem;
  transition: background 0.2s ease;
}

.forensic-accordion-toggle:hover {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.accordion-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.accordion-icon {
  font-size: 1.2rem;
  display: inline-block;
  transform: translateY(-1px);
}

.accordion-title {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  color: #f1f5f9;
}

.accordion-badge {
  font-size: 0.68rem;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(0, 242, 254, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(0, 242, 254, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.accordion-chevron-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #94a3b8;
  font-size: 0.78rem;
}

.accordion-chevron {
  display: inline-block;
  font-size: 0.75rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.forensic-accordion.open .accordion-chevron {
  transform: rotate(180deg);
  color: #00f2fe;
}

.forensic-accordion-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.3s ease;
  padding: 0 1.25rem;
}

.forensic-accordion.open .forensic-accordion-body {
  max-height: 2500px;
  opacity: 1;
  padding: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}



/* ==========================================================================
   Core Web Vitals Optimizations (Zero-CLS & INP Acceleration)
   ========================================================================== */

/* 1. Pre-route instant display matching URL before JS hydration */
html.route-skills #section-home,
html.route-stats #section-home {
  display: none !important;
}
html.route-skills #section-skills {
  display: block !important;
}
html.route-stats #section-stats {
  display: block !important;
}


/* 3. Grid stability & 60fps locked scroll with content-visibility (Zero Lag, Zero CLS) */
.skill-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 380px;
  contain: layout style;
}
.stat-card,
.stat-card-forensic {
  contain: layout style;
}

/* Responsive Mobile Full-Width Language Sheet */
@media (max-width: 640px) {
  .app-header,
  .header-navbar,
  .navbar-right {
    overflow: visible !important;
  }
  .lang-dropdown-wrapper.open .lang-dropdown-panel {
    display: block !important;
    position: fixed !important;
    top: calc(52px + env(safe-area-inset-top, 0px)) !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: calc(100vw - 20px) !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    z-index: 9999 !important;
    padding: 0.85rem !important;
    border-radius: 16px !important;
    background: rgba(10, 16, 28, 0.98) !important;
    border: 1px solid rgba(0, 242, 254, 0.4) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.92), 0 0 24px rgba(0, 242, 254, 0.25) !important;
  }
  .lang-flags-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }
  .quick-lang-btn {
    padding: 0.55rem 0.45rem !important;
    font-size: 0.78rem !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
  }
}

/* ==========================================================================
   Mobile Optimization: Suppress verbose AI Header Banners on small screens
   ========================================================================== */
@media (max-width: 768px) {
  .module-header-banner {
    display: none !important;
  }
}

/* ==========================================================================
   3 Build Progression Tiers (Community Architecture)
   ========================================================================== */
.build-tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}
.build-tier-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.build-tier-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 242, 254, 0.35);
}
.build-tier-card.tier-base {
  border-left: 3px solid #94a3b8;
}
.build-tier-card.tier-optimal {
  border-left: 3px solid var(--accent-cyan);
  background: linear-gradient(135deg, rgba(14, 23, 42, 0.9) 0%, rgba(6, 182, 212, 0.08) 100%);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.12);
}
.build-tier-card.tier-elite {
  border-left: 3px solid var(--accent-amber);
  background: linear-gradient(135deg, rgba(14, 23, 42, 0.9) 0%, rgba(245, 158, 11, 0.08) 100%);
}
.build-tier-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.build-tier-name {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tier-base .build-tier-name { color: #cbd5e1; }
.tier-optimal .build-tier-name { color: var(--accent-cyan); }
.tier-elite .build-tier-name { color: #fde68a; }

.build-tier-val {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.tier-optimal .build-tier-val {
  color: var(--accent-cyan);
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.35);
}
.tier-elite .build-tier-val {
  color: #fde68a;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}
.build-tier-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
}

/* Compact Build Tiers in Cards List */
.stat-build-pills {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}
.stat-build-pill {
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}
.stat-build-pill.pill-optimal {
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

/* ==========================================================================
   Multi-Link Engine Forensics (Core Engine Kinematic Telemetry) - Module 06
   ========================================================================== */
.stat-engine-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: var(--accent-cyan);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.engine-links-section {
  background: rgba(10, 18, 36, 0.7);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  position: relative;
  overflow: hidden;
}

.engine-links-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.engine-links-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.engine-links-title-wrap h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.engine-links-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.engine-links-subtext {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

.engine-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.9rem;
}

.engine-link-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.engine-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 242, 254, 0.4);
}

.engine-link-card.has-golden {
  border-left-color: var(--accent-amber);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(245, 158, 11, 0.06) 100%);
}

.engine-link-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.engine-link-idx {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.engine-link-card.has-golden .engine-link-idx {
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
}

.engine-link-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
}

.engine-link-formula {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: #67e8f9;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  border-left: 2px solid rgba(0, 242, 254, 0.5);
  word-break: break-word;
}

.engine-link-breakpoints {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
}

.engine-link-golden-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 0.25rem 0.55rem;
  border-radius: 5px;
  margin-top: 0.25rem;
  width: fit-content;
}

/* Dynamic Live Golden Alert in Condition Simulator */
.stat-golden-live-banner {
  margin-top: 0.75rem;
  padding: 0.65rem 0.95rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.stat-golden-live-banner.gold {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fef08a;
}

.stat-golden-live-banner.cyan {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.22) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(6, 182, 212, 0.5);
  color: #a5f3fc;
}

@media (max-width: 640px) {
  .engine-links-section {
    padding: 0.9rem;
  }
  .engine-links-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Aerial Duel & Heading Ballistics (Module 06)
   ========================================================================== */
.aerial-duel-section {
  background: rgba(10, 18, 36, 0.75);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  position: relative;
  overflow: hidden;
}

.aerial-header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.aerial-title-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.aerial-title-box h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.aerial-equiv-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fde68a;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.15);
  letter-spacing: 0.03em;
}

.aerial-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

.aerial-scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.9rem;
}

.aerial-scenario-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.aerial-scenario-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 242, 254, 0.4);
}

.aerial-scenario-card.type-clearance {
  border-left-color: #10b981;
}

.aerial-scenario-card.type-shot {
  border-left-color: #f43f5e;
}

.aerial-scenario-card.type-pass {
  border-left-color: #06b6d4;
}

.aerial-scenario-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.aerial-scenario-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
}

.aerial-scenario-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.aerial-scenario-badge.badge-success {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.aerial-scenario-badge.badge-info {
  background: rgba(6, 182, 212, 0.18);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #67e8f9;
}

.aerial-scenario-badge.badge-warning {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
}

.aerial-scenario-badge.badge-danger {
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: #fda4af;
}

.aerial-scenario-action {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
}

.aerial-scenario-formula {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: #67e8f9;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  border-left: 2px solid rgba(0, 242, 254, 0.5);
  word-break: break-word;
}

.aerial-scenario-note {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
}

/* Heading Dual Phase Pillars */
.heading-phases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.9rem;
}

.heading-phase-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.heading-phase-card.phase-1 {
  border-left: 3px solid #64748b;
}

.heading-phase-card.phase-2 {
  border-left: 3px solid var(--accent-cyan);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(6, 182, 212, 0.08) 100%);
}

.heading-phase-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.heading-phase-card.phase-1 .heading-phase-tag { color: #94a3b8; }
.heading-phase-card.phase-2 .heading-phase-tag { color: var(--accent-cyan); }

.heading-phase-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.heading-phase-desc {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

.heading-phase-formula {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #67e8f9;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  word-break: break-word;
}

@media (max-width: 640px) {
  .aerial-duel-section {
    padding: 0.9rem;
  }
  .aerial-scenarios-grid,
  .heading-phases-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MODULE 03: PITCH ZONES & TACTICAL BALLISTICS (#section-pitch)
   ========================================================================== */
.pitch-module-wrap {
  width: 100%;
  max-width: 1640px;
  margin: 0 auto;
  padding-bottom: 2rem;
  overflow-x: hidden;
}

.pitch-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  background: rgba(10, 15, 30, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--stitch-sys-border);
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  position: relative;
}

@media (max-width: 768px) {
  .pitch-toolbar {
    padding: 0.4rem 0.5rem;
    gap: 0.4rem;
    overflow: visible;
  }
  /* Stack all toolbar rows vertically on mobile */
  .pitch-toolbar > div {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.4rem !important;
  }
  /* Toolbar sections: full width, wrap contents */
  .pitch-toolbar .toolbar-section {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.3rem;
    box-sizing: border-box;
  }
  /* Category filter buttons: wrap in grid for compact mobile layout */
  .pitch-toolbar #pz-category-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.25rem !important;
    width: 100%;
  }
  .pitch-toolbar #pz-category-filters .filter-btn {
    flex: 0 1 auto;
    font-size: 0.68rem !important;
    padding: 0.22rem 0.45rem !important;
    min-height: 32px;
    touch-action: manipulation;
  }
  /* Select dropdown: full width on mobile */
  .pitch-toolbar #pz-select-playstyle,
  .pitch-toolbar .tool-select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 0.75rem !important;
    padding: 0.4rem 0.5rem !important;
    min-height: 44px;
    touch-action: manipulation;
  }
  /* Skill/ability buttons: allow wrapping */
  .pitch-toolbar .tool-btn {
    white-space: normal !important;
    font-size: 0.68rem !important;
    padding: 0.25rem 0.45rem !important;
    min-height: 36px;
    touch-action: manipulation;
  }
  /* Medidas + Clear row: horizontal compact */
  .pitch-toolbar .toolbar-section:has(#pz-btn-dim) {
    flex-direction: row !important;
    width: auto;
    flex-wrap: nowrap;
  }
  /* Dynamic buttons wrapper */
  .pitch-toolbar #pz-dynamic-buttons-wrapper {
    padding: 0.35rem 0.4rem !important;
  }
}

.toolbar-section {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.toolbar-sec-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  color: #00f2fe;
  letter-spacing: 0.06em;
  margin-right: 0.2rem;
  white-space: nowrap !important;
}

.tool-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap !important;
}

.tool-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.tool-btn.active {
  background: rgba(0, 242, 254, 0.12);
  border-color: #00f2fe;
  color: #00f2fe;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
}

.tool-btn.active.btn-curler {
  background: rgba(56, 189, 248, 0.14);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.28);
}

.tool-btn.active.btn-blitz {
  background: rgba(16, 185, 129, 0.14);
  border-color: #10b981;
  color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.28);
}

.tool-btn.active.btn-dipping {
  background: rgba(245, 158, 11, 0.16);
  border-color: #f59e0b;
  color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.tool-btn.active.btn-rising {
  background: rgba(168, 85, 247, 0.16);
  border-color: #a855f7;
  color: #c084fc;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
}
.tool-btn.active.btn-shooting {
  background: rgba(239, 68, 68, 0.16);
  border-color: #ef4444;
  color: #f87171;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
}

.btn-reset {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.btn-reset:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.pitch-card {
  background: var(--stitch-sys-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--stitch-sys-border);
  border-radius: 12px;
  padding: 0.85rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 242, 254, 0.02);
  position: relative;
  overflow: hidden;
  max-width: 1640px;
  margin: 0 auto;
}

.pitch-viewport {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  cursor: crosshair;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  touch-action: none;
}

.pitch-svg {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  user-select: none;
}

.telemetry-grid {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 0.75rem;
  width: 100%;
  max-width: 1640px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: nowrap;
}

.metric-box {
  flex: 1 1 0;
  min-width: 0;
  background: var(--stitch-sys-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--stitch-sys-border);
  border-radius: 8px;
  padding: 0.45rem 0.25rem;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.metric-box:hover {
  border-color: var(--stitch-sys-border-glow);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 12px rgba(0, 242, 254, 0.2);
}

.metric-box .label {
  font-size: 0.6rem;
  color: #94a3b8;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  margin-bottom: 0.15rem;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-box .val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ballistics-panel {
  background: var(--stitch-sys-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--stitch-sys-border);
  border-radius: 10px;
  padding: 0.85rem 1.35rem;
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1640px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.bal-header {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.4rem;
}

.bal-data-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
}

.bal-data-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: #94a3b8;
}

.bal-data-item span:last-child {
  font-family: var(--font-mono);
  color: #f1f5f9;
  font-weight: 600;
}

.target-marker {
  pointer-events: none;
  animation: pulseTarget 1.5s infinite;
}

@keyframes pulseTarget {
  0% { r: 1.2; opacity: 1; }
  50% { r: 2.6; opacity: 0.4; }
  100% { r: 1.2; opacity: 1; }
}

@media (max-width: 900px) {
  .telemetry-grid {
    flex-wrap: wrap;
    overflow-x: hidden;
    padding-bottom: 0.25rem;
  }
  .metric-box {
    min-width: 90px;
    flex: 1 1 calc(25% - 0.4rem);
  }
  .ballistics-panel {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}
/* Playstyles Active Buttons */
.tool-btn.btn-ps-at:hover, .tool-btn.btn-ps-at.active {
  background: rgba(245, 158, 11, 0.16);
  border-color: #f59e0b;
  color: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
}

.tool-btn.btn-ps-cc:hover, .tool-btn.btn-ps-cc.active {
  background: rgba(0, 242, 254, 0.16);
  border-color: #00f2fe;
  color: #00f2fe;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.35);
}

.tool-btn.btn-ps-df:hover, .tool-btn.btn-ps-df.active {
  background: rgba(168, 85, 247, 0.16);
  border-color: #a855f7;
  color: #a855f7;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.35);
}

/* Tactical Slot Sectors */
.tactical-slot-group {
  transition: opacity 0.25s ease;
  cursor: pointer;
}
.tactical-slot-group:hover rect {
  stroke-opacity: 0.8;
}

@media (max-width: 850px) {
  #pz-playstyle-card > div:nth-child(2) {
    grid-template-columns: 1fr !important;
  }
}



/* =============================================================================
   MÓDULO 01: ASISTENCIA DE PASE DECODIFICADA (PA1, PA2, PA3, PA4, SMART ASSIST)
   eFootball™ Forensic Lab — Glassmorphism HUD & Material 3 / Stitch Design System
   ============================================================================= */

.pa-module-wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 2rem 4rem 2rem;
  color: #e2e8f0;
}

/* =============================================================================
   1. HERO HEADER V2: 2 COLUMNAS (TÍTULO + ESCALA JERÁRQUICA DE ASISTENCIA)
   ============================================================================= */
.pa-hero-header-v2 {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 0;
  border-bottom: none;
}

.pa-hero-main-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 100%;
  width: 100%;
}

.pa-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #00f2fe;
  text-transform: uppercase;
}

.pa-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #00f2fe;
  box-shadow: 0 0 10px #00f2fe;
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.pa-title-large {
  font-family: 'Barlow Condensed', 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0;
}

.pa-title-accent {
  background: linear-gradient(135deg, #00f2fe 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pa-subtitle-large {
  font-size: 1.05rem;
  line-height: 1.5;
  color: #94a3b8;
  max-width: 100%;
  width: 100%;
  margin: 0;
}

/* Escala Horizontal: Tarjeta Espectral de Progresión de Asistencia */
.pa-assist-spectrum-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
  padding: 1.1rem 1.4rem 1.25rem 1.4rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.pa-spectrum-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pa-spectrum-tag {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  white-space: nowrap;
}

.pa-spectrum-tag.tag-more {
  color: #EE8445;
}

.pa-spectrum-tag.tag-less {
  color: #94a3b8;
}

.pa-spectrum-gradient-line {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #EE8445 0%, #0E5A41 22%, #277A5A 48%, #8CC4A9 74%, #ffffff 100%);
  opacity: 0.55;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.2);
}

.pa-spectrum-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}

.pa-spectrum-node {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
}

.pa-spectrum-node:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.pa-scale-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 32px;
  height: auto;
  padding: 4px 6px;
  border-radius: 16px;
  box-sizing: border-box;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: normal !important;
  text-align: center;
  line-height: 1.15;
  word-break: break-word;
  overflow-wrap: break-word;
}

.badge-smart { background: #EE8445; border: 2px solid #EE8445; color: #121815; }
.badge-l1 { background: #0E5A41; border: 2px solid #0E5A41; color: #ffffff; }
.badge-l2 { background: #277A5A; border: 2px solid #277A5A; color: #ffffff; }
.badge-l3 { background: #8CC4A9; border: 2px solid #8CC4A9; color: #121815; }
.badge-l4 { background: #ffffff; border: 2px solid #ffffff; color: #121815; }

.pa-spectrum-node .pa-scale-desc {
  font-size: 0.82rem;
  line-height: 1.35;
  color: #94a3b8;
  margin: 0;
}

.pa-spectrum-bottom-bar {
  display: none;
}

@media (max-width: 900px) {
  .pa-spectrum-top-bar {
    justify-content: flex-start;
  }
  .pa-spectrum-top-bar .desktop-only,
  .pa-spectrum-top-bar .pa-spectrum-gradient-line {
    display: none !important;
  }
  .pa-spectrum-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .pa-spectrum-bottom-bar {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0.6rem;
    margin-top: 0.35rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
  }
  .pa-spectrum-bottom-bar .tag-less {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
  }
}

/* =============================================================================
   TARJETA FORENSE: PARIDAD EN MOTOR EFOOTBALL MOBILE
   ============================================================================= */
.pa-mobile-parity-card {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(0, 242, 254, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

.mobile-parity-header {
  margin-bottom: 1.25rem;
}

.mobile-parity-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #00f2fe;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.mobile-parity-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-parity-subtitle {
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.45;
}

.mobile-parity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

@media (max-width: 900px) {
  .mobile-parity-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.mobile-parity-item {
  padding: 1.15rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mobile-parity-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.mobile-parity-item.item-smart {
  background: rgba(238, 132, 69, 0.04);
  border-color: rgba(238, 132, 69, 0.2);
}

.parity-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.parity-mode-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
}

.parity-engine-equiv {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.parity-mode-badge.mode-assisted + .parity-engine-equiv {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.parity-mode-badge.mode-manual + .parity-engine-equiv,
.parity-engine-equiv.equiv-no {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.parity-mode-badge.mode-smart + .parity-engine-equiv {
  background: rgba(238, 132, 69, 0.15);
  color: #fb923c;
  border: 1px solid rgba(238, 132, 69, 0.3);
}

.parity-item-body {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #94a3b8;
  margin: 0;
}

/* =============================================================================
   2. HECHOS FUNDAMENTALES DEL MOTOR (3 FACT CARDS)
   ============================================================================= */
.pa-facts-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.pa-fact-card-v2 {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pa-fact-card-v2:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.4);
}

.pa-fact-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pa-fact-title-v2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.1;
  color: #f8fafc;
  margin: 0;
}

.pa-fact-p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0;
}

/* =============================================================================
   SUBNAV BAR DE ANCLAJE SUAVE
   ============================================================================= */
.pa-subnav-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  background: rgba(10, 15, 29, 0.88);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  position: relative;
  top: auto;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
}

.pa-subnav-btn {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  text-align: left;
  gap: 0.55rem;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pa-subnav-btn span:first-child {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #00f2fe;
  flex-shrink: 0;
  line-height: 1.35;
}

.pa-subnav-btn span:last-child,
.pa-subnav-btn [data-i18n] {
  text-align: left !important;
  display: inline-block;
  line-height: 1.35;
}

.pa-subnav-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.pa-subnav-btn.active {
  background: rgba(0, 242, 254, 0.15);
  color: #00f2fe;
  border-color: rgba(0, 242, 254, 0.35);
  font-weight: 700;
}

/* =============================================================================
   BOTÓN FLOTANTE TOP (MÓVIL Y DESKTOP)
   ============================================================================= */
/* =============================================================================
   BOTÓN FLOTANTE TOP CANÓNICO (MÓVIL Y DESKTOP — MANDATO CANÓNICO 11)
   ============================================================================= */
.floating-top-btn,
.pa-floating-top-btn {
  touch-action: manipulation;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.65rem 1.15rem;
  background: rgba(10, 15, 29, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 242, 254, 0.45);
  border-radius: 9999px;
  color: #00f2fe;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 16px rgba(0, 242, 254, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.2s ease;
}

.floating-top-btn svg,
.pa-floating-top-btn svg {
  width: 15px;
  height: 15px;
  stroke: #00f2fe;
  transition: transform 0.2s ease;
}

.floating-top-btn.visible,
.pa-floating-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-top-btn:hover,
.pa-floating-top-btn:hover {
  background: rgba(0, 242, 254, 0.2);
  border-color: #00f2fe;
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 242, 254, 0.35);
  transform: translateY(-2px);
}

.floating-top-btn:hover svg,
.pa-floating-top-btn:hover svg {
  transform: translateY(-2px);
}

.floating-top-btn:active,
.pa-floating-top-btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .floating-top-btn,
  .pa-floating-top-btn {
    bottom: 1.25rem;
    right: 1.15rem;
    padding: 0.55rem 0.95rem;
    font-size: 0.8rem;
    min-height: 44px;
    min-width: 44px;
  }
}

/* =============================================================================
   BOTONES DE PASE IMPRESIONANTE (STUNNING PASS)
   ============================================================================= */
.calib-stunning-btn,
.btn-stunning-pass {
  background: rgba(168, 85, 247, 0.12) !important;
  border: 1px solid rgba(168, 85, 247, 0.35) !important;
  color: #d8b4fe !important;
  transition: all 0.2s ease !important;
}

.calib-stunning-btn:hover,
.btn-stunning-pass:hover {
  background: rgba(168, 85, 247, 0.22) !important;
  border-color: rgba(168, 85, 247, 0.6) !important;
  color: #f3e8ff !important;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.3) !important;
}

.calib-stunning-btn.active,
.btn-stunning-pass.active {
  background: rgba(168, 85, 247, 0.32) !important;
  border-color: #c084fc !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.5) !important;
  font-weight: 700 !important;
}

/* Resalte morado para la barra de fuerza en modo impresionante */
.pa-range-slider.stunning-mode::-webkit-slider-thumb {
  background: #c084fc !important;
  box-shadow: 0 0 14px #a855f7 !important;
}
.pa-range-slider.stunning-mode::-moz-range-thumb {
  background: #c084fc !important;
  box-shadow: 0 0 14px #a855f7 !important;
}

/* =============================================================================
   SECCIÓN GENERAL (CONTINUOUS FLOW — NUNCA DISPLAY: NONE!)
   ============================================================================= */
.pa-sec-block {
  display: flex !important;
  flex-direction: column;
  gap: 2rem;
  scroll-margin-top: 130px;
}

.pa-sec-header-v2 {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.pa-sec-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 4.5rem;
  line-height: 0.85;
  color: #10b981;
  flex-shrink: 0;
}

.pa-sec-header-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pa-sec-title-v2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1;
  color: #f8fafc;
  margin: 0;
}

.pa-sec-desc-v2 {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #94a3b8;
  max-width: 100%;
  margin: 0;
}

/* =============================================================================
   SECCIÓN 01: 5 TARJETAS DE CONOS (WHO GETS THE BALL)
   ============================================================================= */
.pa-cards-5-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
}

.pa-level-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pa-level-card:hover {
  transform: translateY(-4px);
}

.card-smart:hover { border-color: #EE8445; box-shadow: 0 10px 25px rgba(238, 132, 69, 0.2); }
.card-l1:hover { border-color: #0E5A41; box-shadow: 0 10px 25px rgba(14, 90, 65, 0.3); }
.card-l2:hover { border-color: #277A5A; box-shadow: 0 10px 25px rgba(39, 122, 90, 0.3); }
.card-l3:hover { border-color: #8CC4A9; box-shadow: 0 10px 25px rgba(140, 196, 169, 0.2); }
.card-l4:hover { border-color: #ffffff; box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15); }

.pa-lvl-pill-wrap {
  display: flex;
}

.pa-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  height: auto;
  padding: 4px 10px;
  border-radius: 14px;
  box-sizing: border-box;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.15;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
}

.pa-svg-viewport {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #0d261b;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pa-cone-svg {
  width: 100%;
  height: auto;
  display: block;
}

.pa-outcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
}

.outcome-mate {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.outcome-space {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.outcome-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-mate { background: #10b981; }
.dot-space { background: #94a3b8; }

.pa-lvl-card-desc {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0;
}

/* =============================================================================
   SECCIÓN 02: BARRAS DE FUERZA Y BARRAS VISUALES DE PORCENTAJE
   ============================================================================= */
.pa-power-panels-v2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.pa-power-card-v2 {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.25rem 1.4rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.pa-pcard-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.6rem;
}

.pa-pcard-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.1;
  color: #f8fafc;
  margin: 0;
}

.pa-pcard-sub {
  font-size: 0.8rem;
  line-height: 1.35;
  color: #00f2fe;
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
}

.pa-meter-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0;
}

.pa-meter-rows {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.pa-meter-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
}

.pa-meter-badge-col {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pa-meter-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  border-radius: 13px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pa-meter-subbadge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #EE8445;
  text-align: center;
  letter-spacing: 0.03em;
}

.pa-meter-bar-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pa-bar-and-pct {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.pa-bar-track {
  flex: 1;
  height: 9px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.pa-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.4s ease;
}

.fill-l1 { background: #0E5A41; }
.fill-l2 { background: #277A5A; }
.fill-l3 { background: #6FB495; }
.fill-l4 { background: #ffffff; }

.pa-bar-pct-val {
  width: 44px;
  text-align: right;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  color: #ffffff;
}

.pa-bar-explanation {
  font-size: 0.8rem;
  line-height: 1.35;
  color: #94a3b8;
}

/* =============================================================================
   SECCIÓN 03: PASES AL HUECO Y CENTROS (3 PANELES)
   ============================================================================= */
.pa-through-3-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.pa-through-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.75rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.pa-through-head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pa-through-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 1;
  color: #f8fafc;
  margin: 0;
}

.pa-through-sub {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #94a3b8;
  margin: 0;
}

.pa-through-svg-wrap {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #0d261b;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pa-through-svg {
  width: 100%;
  height: auto;
  display: block;
}

.pa-through-footnote {
  font-size: 0.92rem;
  line-height: 1.45;
  color: #cbd5e1;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pa-matrix-mini {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.mini-header-row,
.mini-data-row {
  display: grid;
  grid-template-columns: 120px repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 0.5rem;
}

.mini-head-col {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-align: center;
  letter-spacing: 0.05em;
}

.mini-lbl-col {
  color: #94a3b8;
  font-size: 0.85rem;
}

.mini-val-col {
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #ffffff;
}

.val-none {
  color: #64748b;
  font-family: sans-serif;
  font-size: 0.9rem;
  font-weight: normal;
}

.pa-crosses-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pa-cross-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
}

.pa-cross-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #00f2fe;
  letter-spacing: 0.05em;
}

.pa-cross-desc {
  font-size: 0.92rem;
  line-height: 1.45;
  color: #cbd5e1;
}

/* =============================================================================
   SECCIÓN 04: SIMULADOR INTERACTIVO DE TRAYECTORIA EN CANCHA
   ============================================================================= */
.pa-sim-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

.pa-sim-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.4rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  width: 100%;
}

.pa-ctrl-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: nowrap;
}

@media (max-width: 900px) {
  .pa-ctrl-group {
    flex-wrap: wrap;
  }
}

.pa-ctrl-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #94a3b8;
  min-width: 120px;
  flex-shrink: 0;
}

.pa-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pa-type-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pa-type-group::-webkit-scrollbar {
  display: none;
}
.pa-type-group .pa-btn-opt {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.38rem 0.72rem;
  font-size: 0.82rem;
}

.pa-btn-opt {
  padding: 0.38rem 0.75rem;
  font-size: 0.82rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  touch-action: manipulation;
}

.pa-btn-opt:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.pa-btn-opt.active {
  background: #00f2fe;
  color: #060c18;
  border-color: #00f2fe;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.35);
}

.pa-btn-opt.color-smart.active { background: #EE8445; color: #121815; border-color: #EE8445; }
.pa-btn-opt.color-l1.active { background: #0E5A41; color: #ffffff; border-color: #0E5A41; }
.pa-btn-opt.color-l2.active { background: #277A5A; color: #ffffff; border-color: #277A5A; }
.pa-btn-opt.color-l3.active { background: #8CC4A9; color: #121815; border-color: #8CC4A9; }
.pa-btn-opt.color-l4.active { background: #ffffff; color: #121815; border-color: #ffffff; }

.pa-sliders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pa-ctrl-slider-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pa-slider-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #94a3b8;
}

.pa-slider-info strong {
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
}

.pa-canvas-wrapper {
  position: relative;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #06140e;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  touch-action: none;
}

.pa-pitch-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: rgba(0, 242, 254, 0.08);
  border-bottom: 1px solid rgba(0, 242, 254, 0.15);
  font-size: 0.8rem;
  font-weight: 600;
  color: #00f2fe;
  text-align: center;
}

.pa-pitch-canvas {
  width: 100%;
  height: auto;
  max-height: 520px;
  display: block;
  margin: 0 auto;
  cursor: crosshair;
}

.pa-canvas-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem 1.25rem;
  padding: 0.85rem 1.4rem;
  background: rgba(6, 12, 24, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: #94a3b8;
  width: 100%;
}

@media (max-width: 860px) {
  .pa-sliders-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .pa-pitch-canvas {
    height: auto;
    max-height: 340px;
  }
  .pa-canvas-legend {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.74rem;
  }
}

.pa-legend-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.legend-color {
  width: 14px;
  height: 4px;
  border-radius: 2px;
  flex-shrink: 0;
}

.legend-color.dashed {
  background: repeating-linear-gradient(90deg, currentColor 0, currentColor 4px, transparent 4px, transparent 7px) !important;
}

.legend-color.color-smart { color: #00f2fe; background: #00f2fe; box-shadow: 0 0 6px rgba(0, 242, 254, 0.4); }
.legend-color.color-l1 { color: #10b981; background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.4); }
.legend-color.color-l2 { color: #eab308; background: #eab308; box-shadow: 0 0 6px rgba(234, 179, 8, 0.4); }
.legend-color.color-l3 { color: #f97316; background: #f97316; box-shadow: 0 0 6px rgba(249, 115, 22, 0.4); }
.legend-color.color-l4 { color: #ec4899; background: #ec4899; box-shadow: 0 0 6px rgba(236, 72, 153, 0.4); }

/* =============================================================================
   PANEL DE TELEMETRÍA Y DIAGNÓSTICO EN VIVO
   ============================================================================= */
.pa-telemetry-panel {
  padding: 1.25rem 1.4rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 1240px;
}

.pa-telem-overview {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.telem-sc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #00f2fe;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.telem-sc-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.4rem;
  font-size: 0.82rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.telem-sc-metrics strong {
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
}

.telem-sc-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.pa-telem-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.pa-telem-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.8rem 0.95rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s, border-color 0.2s;
}

.pa-telem-card.color-smart { border-left: 3px solid #00f2fe; }
.pa-telem-card.color-l1 { border-left: 3px solid #10b981; }
.pa-telem-card.color-l2 { border-left: 3px solid #eab308; }
.pa-telem-card.color-l3 { border-left: 3px solid #f97316; }
.pa-telem-card.color-l4 { border-left: 3px solid #ec4899; }

.telem-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.telem-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.telem-badge.color-smart { background: rgba(0, 242, 254, 0.2); color: #00f2fe; }
.telem-badge.color-l1 { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.telem-badge.color-l2 { background: rgba(234, 179, 8, 0.2); color: #eab308; }
.telem-badge.color-l3 { background: rgba(249, 115, 22, 0.2); color: #f97316; }
.telem-badge.color-l4 { background: rgba(236, 72, 153, 0.2); color: #ec4899; }

.telem-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f1f5f9;
  flex: 1;
}

.telem-dist {
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #00f2fe;
}

.telem-desc {
  font-size: 0.75rem;
  line-height: 1.4;
  color: #94a3b8;
}

.pa-forensic-theory-wrap {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 1240px;
  margin: 1.5rem auto 0 auto;
}

/* Reducción mobile solicitada expresamente */
@media (max-width: 768px) {
  .pa-telemetry-panel {
    padding: 0.75rem 0.85rem;
  }
  .telem-sc-title {
    font-size: 0.82rem;
  }
  .telem-sc-metrics {
    font-size: 0.72rem;
    gap: 0.35rem 0.65rem;
    padding: 0.4rem 0.6rem;
  }
  .telem-sc-desc {
    font-size: 0.72rem;
    line-height: 1.35;
  }
  .pa-telem-cards-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    margin-top: 0.6rem;
  }
  .pa-telem-card {
    padding: 0.55rem 0.7rem;
    gap: 0.25rem;
  }
  .telem-header {
    gap: 0.35rem;
  }
  .telem-badge {
    font-size: 0.65rem;
    padding: 0.12rem 0.35rem;
  }
  .telem-name {
    font-size: 0.72rem;
  }
  .telem-dist {
    font-size: 0.72rem;
  }
  .telem-desc {
    font-size: 0.68rem;
    line-height: 1.3;
    color: #94a3b8;
  }
}

@media (max-width: 600px) {
  .pa-live-outcome-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .pa-hero-header-v2 {
    flex-direction: column;
    align-items: flex-start;
  }
  .pa-assist-scale-card {
    width: 100%;
  }
  .pa-cards-5-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pa-through-3-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .pa-facts-grid-v2 {
    grid-template-columns: 1fr;
  }
  .pa-power-panels-v2 {
    grid-template-columns: 1fr;
  }
  .pa-cards-5-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pa-pitch-canvas {
    height: auto;
    max-height: 340px;
  }
}

@media (max-width: 600px) {
  .pa-module-wrap {
    padding: 1rem 1rem 3rem 1rem;
  }
  .pa-cards-5-grid {
    grid-template-columns: 1fr;
  }
  .pa-slider-row {
    grid-template-columns: 1fr;
  }
  .pa-meter-row {
    grid-template-columns: 1fr;
  }
  .pa-cross-row {
    grid-template-columns: 1fr;
  }
}

/* Playstyles Toolbar & Filters */
.filter-btn.active {
  background: rgba(0, 242, 254, 0.18) !important;
  border-color: #00f2fe !important;
  color: #00f2fe !important;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3) !important;
}
.btn-quick-ps:hover, .btn-quick-ps.active {
  background: rgba(34, 197, 94, 0.18) !important;
  border-color: #22c55e !important;
  color: #22c55e !important;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.3) !important;
}
#pz-select-playstyle:focus {
  outline: none;
  border-color: #00f2fe !important;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.4) !important;
}

/* Dynamic Playstyle Buttons */
.btn-dynamic-ps {
  font-size: 0.76rem !important;
  padding: 0.28rem 0.65rem !important;
  border-radius: 6px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
  transition: all 0.2s ease !important;
}
.btn-dynamic-ps:hover, .btn-dynamic-ps.active {
  background: rgba(34, 197, 94, 0.2) !important;
  border-color: #22c55e !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4) !important;
}

/* Domain Gating: Preview Edge vs Production */
.is-production .preview-edge-only {
  display: none !important;
}


/* ==========================================================================
   MODULE 03: TACTICS, MANAGERS & FORMATIONS (#tacticsTab)
   Google Stitch & Material 3 Dark Architecture
   ========================================================================== */

.tactics-module-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem 1rem;
}

/* Hero Header */
.tactics-hero-header {
  margin-bottom: 2rem;
  text-align: center;
}

.tactics-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-amber);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  background: rgba(245, 158, 11, 0.1);
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.tactics-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 10px var(--accent-amber);
  animation: pulseDot 2s infinite ease-in-out;
}

.tactics-main-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem 0;
  line-height: 1.2;
}

.tactics-main-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 880px;
  margin: 0 auto 1.75rem auto;
}

/* Subnavegación y Filtros (Mandato Canónico 11) */
.tactics-subnav-sticky-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
  margin-bottom: 2rem;
  background: transparent;
  border-radius: 14px;
}

/* Nav Toolbar (3 Sub-views) */
.tactics-nav-toolbar {
  display: inline-flex;
  background: rgba(13, 18, 32, 0.9);
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 0.35rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 768px) {
  .tactics-subnav-sticky-wrapper {
    position: relative;
    padding: 0.4rem 0.5rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .tactics-subnav-sticky-wrapper::-webkit-scrollbar {
    display: none;
  }
  .tactics-nav-toolbar {
    flex-wrap: nowrap;
    width: max-content;
    padding: 0.25rem;
    gap: 0.25rem;
  }
  .tactics-subnav-btn {
    min-height: 44px;
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }
  .tactics-styles-selector-row {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
  }
  .tactics-module-wrapper {
    padding: 1rem 0.65rem 4rem 0.65rem;
    overflow-x: hidden;
  }
}

.tactics-subnav-btn {
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tactics-subnav-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.tactics-subnav-btn.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--accent-amber);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

/* Subview Panels */
.tactics-subview-panel {
  display: none;
}

.tactics-subview-panel.active {
  display: block;
  animation: fadeInTactics 0.25s ease-out;
}

@keyframes fadeInTactics {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Style Selectors */
.tactics-styles-selector-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.tactics-style-card-btn {
  touch-action: manipulation;
  background: rgba(13, 18, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tactics-style-card-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.tactics-style-card-btn.active {
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

.style-btn-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.style-icon {
  font-size: 1.5rem;
}

.style-line-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.style-btn-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.style-btn-sub {
  font-size: 0.75rem;
  color: #64748b;
}

/* Style Inspector */
.tactics-style-inspector {
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.style-inspector-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.style-inspector-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
}

.style-big-icon {
  font-size: 2.5rem;
}

.style-inspector-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.style-tag {
  font-size: 0.8rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.style-inspector-lead {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0.5rem 0 0 0;
}

.tactics-btn-infographic {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid var(--accent-cyan);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1.15rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tactics-btn-infographic:hover {
  background: var(--accent-cyan);
  color: #000000;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

/* Metrics Grid */
.style-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tactics-metric-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.t-met-lbl {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.t-met-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
}

.t-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin: 0.25rem 0;
}

.t-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease-out;
}

.t-met-hint {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

/* Pros & Cons */
.style-analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.analysis-card {
  padding: 1.25rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.analysis-card h4 {
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0 0 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.analysis-card ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.55;
}

.analysis-card li {
  margin-bottom: 0.4rem;
}

.style-synergies-section h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.75rem 0;
}

.style-synergies-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.synergy-pill {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
}

/* Calculator Section */
.tactics-calc-section {
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid rgba(245, 158, 11, 0.2);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.04), rgba(13, 18, 32, 0.85));
}

.calc-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.calc-header-icon {
  font-size: 2.2rem;
}

.calc-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.25rem 0;
}

.calc-desc {
  font-size: 0.92rem;
  color: #94a3b8;
  margin: 0;
}

.calc-workbench-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 900px) {
  .calc-workbench-grid {
    grid-template-columns: 1fr;
  }
}

.calc-inputs-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.calc-control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-label-row label, .calc-control-group > label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2e8f0;
}

.calc-stat-badge {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.12);
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.calc-range-slider {
  width: 100%;
  accent-color: var(--accent-cyan);
  cursor: pointer;
  height: 6px;
}

.affinity-tier-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tier-pill-btn {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tier-pill-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.tier-pill-btn.active {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--accent-amber);
  color: var(--accent-amber);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.calc-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #cbd5e1;
  cursor: pointer;
  user-select: none;
}

.calc-checkbox-label input {
  accent-color: var(--accent-amber);
  width: 16px;
  height: 16px;
}

.calc-presets-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.calc-presets-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.coach-presets-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.coach-preset-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.8rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.coach-preset-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Calculator Result Card */
.calc-result-card {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.res-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.res-num-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.res-base {
  font-size: 2.2rem;
  font-weight: 800;
  color: #64748b;
}

.res-arrow {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.2);
}

.res-final {
  font-size: 3.5rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.res-jump-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: #000000;
  margin-bottom: 0.5rem;
}

.res-tier-info {
  display: block;
  font-size: 0.82rem;
  color: #94a3b8;
}

.boost-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
}

.boost-badge.b1 { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.boost-badge.b2 { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.boost-badge.b3 { background: rgba(250, 204, 21, 0.15); color: #facc15; }
.boost-badge.b4 { background: rgba(244, 63, 94, 0.15); color: #f43f5e; }

/* Subview 2: Individual Instructions */
.tactics-inst-filters, .tactics-formation-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tactics-pill {
  background: rgba(13, 18, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tactics-pill:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.tactics-pill.active {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.instructions-layout-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .instructions-layout-grid {
    grid-template-columns: 1fr;
  }
}

.instructions-cards-col,
.instructions-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  width: 100%;
}

.inst-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-cyan);
  transition: all 0.2s ease;
}

.instruction-card:hover .inst-card-cta {
  color: #38bdf8;
  transform: translateX(3px);
}

/* Dedicated Full Detail Page / Window */
#instructionDetailPage {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1.75rem 2.25rem;
  margin-top: 0.5rem;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: fadeIn 0.25s ease-out;
}

.instruction-detail-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.instruction-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  transition: all 0.2s ease;
}

.instruction-back-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  transform: translateX(-2px);
}

.instruction-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 1.6rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.instruction-close-btn:hover {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.4);
}

@media (max-width: 768px) {
  #instructionDetailPage {
    padding: 1.25rem 1rem;
    border-radius: 12px;
  }
  .instructions-catalog-grid {
    grid-template-columns: 1fr;
  }
}

.instruction-card {
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.65);
  text-decoration: none !important;
  color: inherit !important;
  user-select: none;
}

.instruction-card * {
  text-decoration: none !important;
}

.instruction-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.instruction-card.active {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.18);
  background: rgba(0, 242, 254, 0.04);
}

.inst-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.inst-icon-wrap {
  font-size: 1.6rem;
}

.inst-title-wrap {
  flex: 1;
}

.inst-name {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.inst-en {
  font-size: 0.75rem;
  color: #64748b;
}

.inst-phase-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.inst-phase-badge.attack { background: rgba(244, 63, 94, 0.15); color: #f43f5e; border: 1px solid rgba(244, 63, 94, 0.3); }
.inst-phase-badge.defense { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.inst-phase-badge.mixed { background: rgba(168, 85, 247, 0.15); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); }

.inst-short-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 0.85rem 0;
}

.inst-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.inst-pos-tag {
  font-size: 0.75rem;
  color: #64748b;
}

.instruction-inspector-card {
  border-radius: 16px;
  padding: 1.5rem;
  position: sticky;
  top: 90px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.inspector-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.inspector-big-icon {
  font-size: 2.2rem;
}

.inspector-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.inspector-en {
  font-size: 0.8rem;
  color: #94a3b8;
}

.inspector-block-lbl {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.inspector-text {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
}

.inst-positions-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pos-badge-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* Subview 3: Formations Board */
.tactics-formations-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
}

.formation-chip-btn {
  background: rgba(13, 18, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.65rem 1.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.formation-chip-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.formation-chip-btn.active {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.form-chip-num {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.formation-chip-btn.active .form-chip-num {
  color: var(--accent-cyan);
}

.formation-workbench-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 1.75rem;
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .formation-workbench-grid {
    grid-template-columns: 1fr;
  }
}

.pitch-board-wrap {
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pitch-board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.pitch-board-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.pitch-dim-badge {
  font-size: 0.78rem;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.tactical-pitch-svg-box {
  width: 100%;
  aspect-ratio: 1000 / 680;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.tactical-pitch-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pitch-board-footer {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

.pitch-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.dot-gk { background: #f59e0b; }
.legend-dot.dot-def { background: #38bdf8; }
.legend-dot.dot-mid { background: #a855f7; }
.legend-dot.dot-fwd { background: #f43f5e; }

.formation-dossier-card {
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dossier-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.dossier-form-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}

.dossier-cat-badge {
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

.dossier-lbl {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.dossier-quote {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.55;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.85rem;
  border-radius: 8px;
  border-left: 3px solid var(--accent-cyan);
  margin: 0;
}

.dossier-pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .dossier-pros-cons-grid {
    grid-template-columns: 1fr;
  }
}

.dossier-col-box {
  padding: 0.85rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.dossier-col-box h5 {
  font-size: 0.82rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
}

.dossier-col-box ul {
  margin: 0;
  padding-left: 1.15rem;
  color: #cbd5e1;
  font-size: 0.82rem;
  line-height: 1.45;
}

.dossier-col-box li {
  margin-bottom: 0.35rem;
}

.recommended-styles-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.rec-style-chip {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
}

/* ==========================================================================
   MODULE 06: DUAL PLAYING STYLES (Stitch / Material 3 Tokens & Layout)
   ========================================================================== */
.ps-module-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
  color: #f1f5f9;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Hero HUD Header */
.ps-hero-header {
  background: radial-gradient(120% 120% at 50% 0%, rgba(14, 165, 233, 0.12) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 20px;
  padding: 1.25rem 1.75rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.ps-hero-header::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.ps-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.ps-pulse-dot {
  width: 8px;
  height: 8px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 12px #38bdf8;
  animation: ps-pulse 2s infinite;
}

@keyframes ps-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.ps-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0.25rem 0 0.6rem;
  background: linear-gradient(135deg, #ffffff 40%, #bae6fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.ps-subtitle {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 900px;
  margin-bottom: 0;
}

/* Quick Metrics Row */
.ps-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
}

.ps-metric-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.2s ease;
}

.ps-metric-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(30, 41, 59, 0.6);
  transform: translateY(-2px);
}

.ps-metric-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.65rem;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1.1;
}

.ps-metric-lbl {
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Filter & Search Toolbar */
.ps-toolbar {
  position: sticky;
  top: 72px;
  z-index: 100;
  background: rgba(10, 15, 29, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.55);
  transition: top 0.2s ease, padding 0.2s ease;
}

.ps-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ps-pill {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ps-pill:hover {
  background: rgba(51, 65, 85, 0.8);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.2);
}

.ps-pill.active {
  background: rgba(14, 165, 233, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.ps-filter-subrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.ps-pos-select-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ps-select-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ps-pos-select {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px;
  color: #f1f5f9;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ps-pos-select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.ps-search-wrap {
  flex: 1;
  min-width: 260px;
  position: relative;
  display: flex;
  align-items: center;
}

.ps-search-icon {
  position: absolute;
  left: 0.9rem;
  font-size: 0.9rem;
  color: #64748b;
  pointer-events: none;
}

.ps-search-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.55rem 2.2rem 0.55rem 2.4rem;
  color: #ffffff;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.ps-search-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.ps-search-clear {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
}

/* Full-Width Catalog View & Detail Architecture */
.ps-catalog-view {
  width: 100%;
}

.ps-catalog-main {
  width: 100%;
}

#playstyleDetailPage .ps-inspector-panel {
  max-width: 960px;
  margin: 0 auto;
}

.ps-inspector-panel {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(24px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.ps-insp-header {
  margin-bottom: 1.25rem;
}

.ps-insp-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.ps-insp-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ps-insp-type-pill.offensive {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.ps-insp-type-pill.defensive {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.ps-insp-id-pill,
.ps-insp-bit-pill {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
}

.ps-insp-sym-pill {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
}

.ps-insp-gk-pill {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
}

.ps-insp-name {
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0.25rem 0;
  line-height: 1.2;
}

.ps-insp-name-sub {
  font-size: 0.82rem;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
}

.ps-insp-name-sub strong {
  color: #cbd5e1;
}

/* Description Box */
.ps-insp-desc-box {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin-top: 1rem;
}

.ps-insp-desc-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.ps-insp-desc-text {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
}

/* Active Positions Bar */
.ps-active-positions-bar {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ps-ap-badge {
  display: inline-block;
  width: fit-content;
  background: #16a34a;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

.ps-ap-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.ps-pos-chip-active {
  background: rgba(34, 197, 94, 0.2);
  border: 1.5px solid #22c55e;
  color: #4ade80;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.ps-ap-note {
  font-size: 0.75rem;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
  margin-left: 0.25rem;
}

/* Tactical Display Card (Infographic + 1:1 Pitch) */
.ps-tactical-display-card {
  margin-top: 1.25rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.ps-tactical-block {
  margin-top: 1.25rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.ps-tactical-tag-mono {
  font-size: 0.72rem;
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
  background: rgba(148, 163, 184, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.ps-tactical-block-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0 0 1rem 0;
}

.ps-axis-pill {
  font-size: 0.72rem;
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.08);
}

/* Tactical Subnav Jump Bar */
.ps-subnav-bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem auto 1.25rem auto;
  max-width: 820px;
  padding: 0.5rem 0.75rem;
  background: rgba(10, 15, 29, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  transition: top 0.2s ease;
}

.ps-subnav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 44px;
}

.ps-subnav-btn:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.4);
  color: #00f2fe;
  transform: translateY(-1px);
}


.ps-td-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ps-td-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ps-td-icon {
  font-size: 1.1rem;
}

.ps-td-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.ps-tactical-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 1fr);
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 820px) {
  .ps-tactical-layout-grid {
    grid-template-columns: 1fr;
  }
}

.ps-infographic-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #070a13;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.ps-infographic-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.ps-infographic-img:hover {
  transform: scale(1.015);
}

.ps-pitch-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(11, 19, 41, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
}

.ps-pitch-col-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ps-pitch-col-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ps-compat-matrix-wrap.centered {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Symmetry Alert */
.ps-symmetry-alert-box {
  margin-top: 1rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(5, 150, 105, 0.06) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.ps-sym-alert-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.ps-sym-alert-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 0.25rem;
}

.ps-sym-alert-desc {
  font-size: 0.8rem;
  color: #a7f3d0;
  line-height: 1.5;
}

/* Compatibility Formation Card */
.ps-compat-card {
  margin-top: 1.25rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.1rem;
}

.ps-compat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.ps-compat-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ps-compat-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.ps-compat-badges-legend {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  color: #94a3b8;
}

.ps-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ps-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot-active {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.dot-inactive {
  background: #475569;
}

.ps-compat-matrix-wrap {
  margin-top: 0.5rem;
}

.ps-horizontal-pitch-container {
  display: block;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
}

.ps-horizontal-pitch-svg {
  width: 100%;
  max-height: 520px;
  height: auto;
  display: block;
  margin: 0 auto;
  user-select: none;
}

.ps-tactical-display-card .tactical-slot-group {
  cursor: pointer;
}

.ps-tactical-display-card .tactical-slot-group rect {
  transition: all 0.2s ease;
}

.ps-tactical-display-card .tactical-slot-group:hover rect {
  filter: brightness(1.2) drop-shadow(0 0 6px rgba(34, 197, 94, 0.9));
}

@media (max-width: 600px) {
  .ps-tactical-display-card {
    padding: 0.75rem;
    border-radius: 12px;
  }
  .ps-horizontal-pitch-svg {
    max-height: 360px;
  }
}

.ps-mini-pitch-formation {
  width: 100%;
  aspect-ratio: 105 / 80;
  background: #0f2318;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.ps-formation-field {
  width: 100%;
  height: 100%;
  position: relative;
}

.ps-fline.fline-half {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.ps-fcircle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.ps-fbox-top {
  position: absolute;
  top: 0;
  left: 28%;
  right: 28%;
  height: 16%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-top: none;
}

.ps-fbox-bottom {
  position: absolute;
  bottom: 0;
  left: 28%;
  right: 28%;
  height: 16%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: none;
}

.ps-pos-slot {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
  z-index: 2;
}

.ps-pos-slot.compat {
  background: rgba(16, 185, 129, 0.25);
  border: 1.5px solid #10b981;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.ps-pos-slot.incompat {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748b;
  opacity: 0.5;
}

.ps-rule-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  margin-top: 0.75rem;
}

.ps-rule-quote-icon {
  font-size: 1rem;
  line-height: 1;
}

.ps-rule-quote-text {
  font-size: 0.75rem;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
}

/* Cards Showcase */
.ps-cards-showcase-section {
  margin-top: 1.25rem;
}

.ps-cards-showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.ps-showcase-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.ps-showcase-count {
  font-size: 0.72rem;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
}

.ps-showcase-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ps-mini-card-item {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ps-mc-badge-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.ps-mc-pos {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  color: #38bdf8;
}

.ps-card-type-tag {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.ps-card-type-tag.epic {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.ps-card-date-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-block;
  margin-top: 0.2rem;
}

.ps-card-type-tag.highlight {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.ps-mc-info {
  flex: 1;
  min-width: 0;
}

.ps-mc-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-mc-sub {
  font-size: 0.72rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ps-mc-dual-styles {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', monospace;
}

.ps-mc-style-line {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.ps-mc-style-line.off {
  color: #38bdf8;
}

.ps-mc-style-line.def {
  color: #fbbf24;
}

/* Right: Catalog Column & Cards Grid */
.ps-catalog-col {
  min-width: 0;
}

.ps-catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.ps-catalog-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ps-catalog-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.ps-badge-count {
  background: rgba(14, 165, 233, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

.ps-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); width: 100%;
  gap: 1.15rem;
}

.ps-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.35rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.ps-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(30, 41, 59, 0.75);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.6);
}

.ps-card.selected {
  border-color: #38bdf8;
  background: rgba(14, 165, 233, 0.14);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.35), inset 0 0 12px rgba(56, 189, 248, 0.1);
}

.ps-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.ps-card-type-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.ps-card-arrow {
  font-size: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

/* Official Playstyle Icons */
.ps-filter-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  border-radius: 3px;
  margin-right: 0.35rem;
}

.ps-filter-icon-img-sm {
  width: 14px;
  height: 14px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  border-radius: 2px;
}

.ps-filter-icon-img-xs {
  width: 13px;
  height: 13px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  border-radius: 2px;
}

.ps-pill-dual-icons {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.ps-dual-icons-mini {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.ps-card-arrow-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  border-radius: 3px;
}

.ps-card-dual-icons {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  vertical-align: middle;
}

.ps-insp-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  border-radius: 3px;
  margin-right: 0.35rem;
}

.ps-mc-icon-img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  border-radius: 2px;
}

.ps-inline-icon-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  border-radius: 2px;
  margin: 0 3px;
}

.ps-card.ps-card-sym {
  border-color: rgba(52, 211, 153, 0.4);
}

.ps-card.ps-card-sym:hover {
  border-color: #34d399;
  box-shadow: 0 8px 24px rgba(52, 211, 153, 0.2);
}

.ps-card-type-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.ps-card-sym-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
}

.ps-card-gk-badge {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
}

.ps-card-bit-badge {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: #94a3b8;
  padding: 0.15rem 0.45rem;
}

.ps-card-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

.ps-card-name-en {
  font-size: 0.78rem;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
  display: block;
  margin-top: 0.15rem;
}

.ps-card-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 1rem;
  flex: 1;
}

.ps-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.75rem;
  margin-top: auto;
}

.ps-card-positions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.ps-tag-pos {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  border-radius: 4px;
  font-size: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  padding: 0.15rem 0.35rem;
}

.ps-tag-pos.more {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.ps-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #38bdf8;
  transition: transform 0.2s ease;
}

.ps-card:hover .ps-card-cta {
  transform: translateX(3px);
}

.ps-no-results {
  grid-column: 1 / -1;
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
}

.ps-no-res-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.ps-no-res-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.ps-no-res-sub {
  font-size: 0.85rem;
  color: #94a3b8;
  max-width: 480px;
  margin: 0 auto;
}

/* AI COM Card & Styles */
.ps-card.ps-card-ai {
  border-left: 3px solid #ec4899;
}
.ps-card.ps-card-ai:hover {
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: 0 12px 24px -8px rgba(236, 72, 153, 0.25);
}
.ps-card.ps-card-ai.selected {
  border-color: #ec4899;
  background: rgba(236, 72, 153, 0.12);
  box-shadow: 0 0 24px rgba(236, 72, 153, 0.35);
}

/* AI COM Forensic Banner */
.ps-ai-com-forensic-banner {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(236, 72, 153, 0.4);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}
.ps-ai-banner-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.ps-ai-banner-icon {
  font-size: 2rem;
  line-height: 1;
}
.ps-ai-banner-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f472b6;
  margin: 0;
  line-height: 1.3;
}
.ps-ai-banner-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}
.ps-ai-quote-box {
  background: rgba(15, 23, 42, 0.6);
  border-left: 3px solid #ec4899;
  border-radius: 0 8px 8px 0;
  padding: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}
.ps-ai-quote-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #f472b6;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.ps-ai-quote-text {
  font-size: 0.88rem;
  color: #e2e8f0;
  font-style: italic;
  margin: 0;
  line-height: 1.45;
}
.ps-ai-myth-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.ps-ai-myth-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: #f87171;
  margin-bottom: 0.35rem;
}
.ps-ai-myth-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

/* Position Proficiency Callout in Pitch Section */
.ps-pos-proficiency-callout {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-top: 1.25rem;
}
.ps-pp-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.ps-pp-icon {
  font-size: 1.15rem;
}
.ps-pp-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fbbf24;
  margin: 0;
  line-height: 1.3;
}
.ps-pp-desc {
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.5;
  margin: 0;
}



/* Top 10 Closest Datacenters Diagnostic Section */
.radar-top10-container {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(11, 17, 32, 0.75);
  border: 1px solid rgba(0, 242, 254, 0.22);
  border-radius: var(--stitch-radius-lg, 14px);
  backdrop-filter: blur(12px);
}

.top10-header-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.thb-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-cyan, #00f2fe);
  background: rgba(0, 242, 254, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 242, 254, 0.25);
  margin-bottom: 0.35rem;
}

.thb-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.25rem;
}

.thb-subtitle {
  font-size: 0.8rem;
  color: var(--text-dim, #94a3b8);
  margin: 0;
  max-width: 650px;
}

.top10-sort-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.top10-sort-btn {
  background: transparent;
  border: none;
  color: var(--text-dim, #94a3b8);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.top10-sort-btn:hover {
  color: #fff;
}

.top10-sort-btn.active {
  background: var(--accent-cyan, #00f2fe);
  color: #0b1120;
  box-shadow: 0 2px 8px rgba(0, 242, 254, 0.3);
}

.top10-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 10, 20, 0.4);
}

.top10-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.top10-table th {
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-dim, #94a3b8);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.top10-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.top10-table tr:last-child td {
  border-bottom: none;
}

.top10-table tr:hover td {
  background: rgba(0, 242, 254, 0.04);
}

.top10-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.top10-rank.rank-1 {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #1e1b4b;
  border-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
}

.top10-rank.rank-2 {
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
  color: #0f172a;
  border-color: #cbd5e1;
}

.top10-rank.rank-3 {
  background: linear-gradient(135deg, #f97316, #b45309);
  color: #fff;
  border-color: #ea580c;
}

.top10-server-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top10-city-name {
  font-weight: 700;
  color: #fff;
}

.top10-cloud-id {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  color: var(--accent-cyan, #00f2fe);
}

.top10-dist-val {
  font-weight: 700;
  color: #f1f5f9;
  font-family: var(--font-mono, monospace);
}

.top10-ping-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mini-latency-bar {
  width: 60px;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
}

.mini-latency-fill {
  height: 100%;
  border-radius: 9999px;
}

.top10-frame-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.match-rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.match-rec-badge.rec-primary {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.match-rec-badge.rec-opt {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.match-rec-badge.rec-good {
  background: rgba(6, 182, 212, 0.12);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.match-rec-badge.rec-fair {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.top10-action-btn {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--accent-cyan, #00f2fe);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.top10-action-btn:hover {
  background: var(--accent-cyan, #00f2fe);
  color: #060c18;
  box-shadow: 0 2px 8px rgba(0, 242, 254, 0.35);
}

/* Map focus pulse */
@keyframes nodeFocusBeacon {
  0% { transform: scale(1); stroke-width: 2px; stroke: #fff; }
  50% { transform: scale(2.6); stroke-width: 4px; stroke: #00f2fe; }
  100% { transform: scale(1); stroke-width: 2px; stroke: #fff; }
}

.focused-node .radar-node-dot {
  animation: nodeFocusBeacon 0.9s ease-in-out infinite;
}

/* Telemetría Comparativa de 5 Niveles */
.pa-telem-compare-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pa-telem-level-chip {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pa-telem-level-chip.inactive-level {
  opacity: 0.45;
}

.pa-telem-level-chip .chip-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.pa-telem-level-chip .chip-dist {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #f1f5f9;
}

.pa-telem-level-chip .chip-desc {
  font-size: 0.74rem;
  line-height: 1.35;
  color: #94a3b8;
}

@media (max-width: 900px) {
  .pa-telem-compare-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}


/* Crisp SVG / FlagCDN styling to prevent broken emoji text on Windows */
.datacenter-flag-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 16px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
}

.datacenter-flag-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Matchmaking recommendation chips without emoji clutter */
.match-rec-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.match-rec-chip.rec-best {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.match-rec-chip.rec-good {
  background: rgba(6, 182, 212, 0.12);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.match-rec-chip.rec-fair {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.match-rec-chip.rec-high {
  background: rgba(244, 63, 94, 0.12);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.35);
}


/* --- Tactics Kinematic & Matrix Extensions --- */
.axis-pill {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.inst-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.matrix-tile {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
}
.matrix-tile .tile-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}
.matrix-tile .tile-desc {
  font-size: 0.78rem;
  line-height: 1.35;
  color: #cbd5e1;
  margin: 0;
}
.fluid-states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.fluid-state-box {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.75rem;
}
.fluid-state-box .state-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-emerald);
  margin-bottom: 0.35rem;
}
.fluid-state-box p {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.35;
}
.hierarchy-layers-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.h-layer-item {
  font-size: 0.82rem;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.4);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border-left: 3px solid rgba(255, 255, 255, 0.2);
}


/* Technical & Browser Environment Disclaimer */
.radar-disclaimer-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-left: 4px solid var(--accent-cyan, #00f2fe);
  border-radius: var(--stitch-radius-md, 10px);
  backdrop-filter: blur(12px);
}

.rdb-icon {
  font-size: 1.25rem;
  line-height: 1.3;
  flex-shrink: 0;
}

.rdb-content {
  flex: 1;
}

.rdb-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.rdb-desc {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0;
}

/* Status Filter Pills (All / Active / Inactive) */
.radar-status-pills {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.radar-status-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radar-status-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.radar-status-pill.active {
  background: var(--accent-cyan, #00f2fe);
  color: #060c18;
  border-color: var(--accent-cyan, #00f2fe);
  box-shadow: 0 2px 10px rgba(0, 242, 254, 0.35);
}

.radar-status-pill.pill-online.active {
  background: #10b981;
  color: #060c18;
  border-color: #10b981;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

.radar-status-pill.pill-offline.active {
  background: #f43f5e;
  color: #fff;
  border-color: #f43f5e;
  box-shadow: 0 2px 10px rgba(244, 63, 94, 0.4);
}

/* Catalog KPI Header Tags */
.rth-kpi-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.kpi-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.kpi-tag.kpi-online {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.kpi-tag.kpi-offline {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

/* Offline badge & pill */
.radar-status-badge.status-offline {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.radar-status-dot.dot-offline {
  background: #f43f5e;
  box-shadow: 0 0 6px #f43f5e;
}

.ping-pill.offline {
  background: rgba(255, 255, 255, 0.06);
  color: #64748b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: line-through;
}

/* Map offline node styling */
.radar-map-node-group.node-offline .radar-node-pulse {
  display: none;
}

.radar-map-node-group.node-offline .radar-node-dot {
  fill: #1e293b;
  stroke: #64748b;
  stroke-width: 1px;
  opacity: 0.55;
}


/* =========================================================================
   TACTICS: PLAYER PLAYSTYLE INTERACTIONS MATRIX
   ========================================================================= */
.playstyle-interactions-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.p-interaction-tile {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.75rem 0.95rem;
  transition: all 0.2s ease;
}

.p-interaction-tile:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.85);
}

.p-interaction-tile.synergy {
  border-left: 3px solid var(--accent-emerald, #10b981);
}

.p-interaction-tile.conflict {
  border-left: 3px solid #f43f5e;
}

.p-interaction-tile.neutral {
  border-left: 3px solid var(--accent-cyan, #38bdf8);
}

.p-tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.p-style-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.p-synergy-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.p-synergy-badge.synergy-tag {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.p-synergy-badge.conflict-tag {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.p-tile-effect {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0;
}

/* Effective Server IP Styles with Copy Interaction */
.server-ip-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  background: rgba(15, 23, 42, 0.55);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 242, 254, 0.15);
}

.server-ip-code {
  color: var(--accent-cyan, #00f2fe);
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.row-offline .server-ip-code {
  color: #64748b;
}

.btn-copy-server-ip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  cursor: pointer;
  padding: 2px 5px;
  font-size: 0.72rem;
  color: #94a3b8;
  transition: all 0.2s ease;
  line-height: 1;
}

.btn-copy-server-ip:hover {
  background: rgba(0, 242, 254, 0.2);
  border-color: var(--accent-cyan, #00f2fe);
  color: #fff;
  transform: scale(1.08);
}

.btn-copy-server-ip.mini {
  padding: 1px 4px;
  font-size: 0.65rem;
}

.btn-copy-server-ip.copied {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.2);
}


/* ==========================================================================
   Stitch UI: 12 Canonical Ecosystem Hub Grid & Hero Metrics (Landing Home)
   ========================================================================== */

/* Ecosystem Features Grid: Responsive Mobile-First */
.home-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
  max-width: 1360px !important;
  margin: 0 auto 3.5rem auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (min-width: 1440px) {
  .home-hub-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (max-width: 1100px) and (min-width: 641px) {
  .home-hub-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }
}

@media (max-width: 640px) {
  .home-hub-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-bottom: 2.25rem !important;
  }
}

/* Card Header Meta Wrap & Badges */
.hub-card-meta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  z-index: 1;
}

.hub-card-slot-badge {
  font-size: 0.68rem;
  font-family: var(--font-mono, monospace);
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}

.hub-card-eyebrow {
  font-size: 0.65rem;
  font-family: var(--font-mono, monospace);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #64748b;
  text-transform: uppercase;
}

/* Icon Wrap Color Variants */
.icon-cyan { background: rgba(0, 242, 254, 0.15) !important; color: #00f2fe !important; border: 1px solid rgba(0, 242, 254, 0.3) !important; }
.icon-emerald { background: rgba(16, 185, 129, 0.15) !important; color: #10b981 !important; border: 1px solid rgba(16, 185, 129, 0.3) !important; }
.icon-amber { background: rgba(245, 158, 11, 0.15) !important; color: #f59e0b !important; border: 1px solid rgba(245, 158, 11, 0.3) !important; }
.icon-sky { background: rgba(56, 189, 248, 0.15) !important; color: #38bdf8 !important; border: 1px solid rgba(56, 189, 248, 0.3) !important; }
.icon-purple { background: rgba(168, 85, 247, 0.15) !important; color: #a855f7 !important; border: 1px solid rgba(168, 85, 247, 0.3) !important; }
.icon-rose { background: rgba(244, 63, 94, 0.15) !important; color: #f43f5e !important; border: 1px solid rgba(244, 63, 94, 0.3) !important; }
.icon-orange { background: rgba(249, 115, 22, 0.15) !important; color: #f97316 !important; border: 1px solid rgba(249, 115, 22, 0.3) !important; }
.icon-indigo { background: rgba(129, 140, 248, 0.15) !important; color: #818cf8 !important; border: 1px solid rgba(129, 140, 248, 0.3) !important; }
.icon-mint { background: rgba(52, 211, 153, 0.15) !important; color: #34d399 !important; border: 1px solid rgba(52, 211, 153, 0.3) !important; }
.icon-teal { background: rgba(20, 184, 166, 0.15) !important; color: #14b8a6 !important; border: 1px solid rgba(20, 184, 166, 0.3) !important; }
.icon-azure { background: rgba(14, 165, 233, 0.15) !important; color: #0ea5e9 !important; border: 1px solid rgba(14, 165, 233, 0.3) !important; }

/* Slot Chromatic Top Borders & Action Button Hovers */
.hub-card-slot-01 { border-top: 3px solid #00f2fe !important; }
.hub-card-slot-01:hover .hub-action-btn { background: #00f2fe !important; color: #060c18 !important; border-color: #00f2fe !important; box-shadow: 0 4px 16px rgba(0, 242, 254, 0.4) !important; }

.hub-card-slot-02 { border-top: 3px solid #10b981 !important; }
.hub-card-slot-02:hover .hub-action-btn { background: #10b981 !important; color: #060c18 !important; border-color: #10b981 !important; box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4) !important; }

.hub-card-slot-03 { border-top: 3px solid #f59e0b !important; }
.hub-card-slot-03:hover .hub-action-btn { background: #f59e0b !important; color: #060c18 !important; border-color: #f59e0b !important; box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4) !important; }

.hub-card-slot-04 { border-top: 3px solid #38bdf8 !important; }
.hub-card-slot-04:hover .hub-action-btn { background: #38bdf8 !important; color: #060c18 !important; border-color: #38bdf8 !important; box-shadow: 0 4px 16px rgba(56, 189, 248, 0.4) !important; }

.hub-card-slot-05 { border-top: 3px solid #00f2fe !important; }
.hub-card-slot-05:hover .hub-action-btn { background: #00f2fe !important; color: #060c18 !important; border-color: #00f2fe !important; box-shadow: 0 4px 16px rgba(0, 242, 254, 0.4) !important; }

.hub-card-slot-06 { border-top: 3px solid #a855f7 !important; }
.hub-card-slot-06:hover .hub-action-btn { background: #a855f7 !important; color: #ffffff !important; border-color: #a855f7 !important; box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4) !important; }

.hub-card-slot-07 { border-top: 3px solid #f43f5e !important; }
.hub-card-slot-07:hover .hub-action-btn { background: #f43f5e !important; color: #ffffff !important; border-color: #f43f5e !important; box-shadow: 0 4px 16px rgba(244, 63, 94, 0.4) !important; }

.hub-card-slot-08 { border-top: 3px solid #f97316 !important; }
.hub-card-slot-08:hover .hub-action-btn { background: #f97316 !important; color: #ffffff !important; border-color: #f97316 !important; box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4) !important; }

.hub-card-slot-09 { border-top: 3px solid #818cf8 !important; }
.hub-card-slot-09:hover .hub-action-btn { background: #818cf8 !important; color: #ffffff !important; border-color: #818cf8 !important; box-shadow: 0 4px 16px rgba(129, 140, 248, 0.4) !important; }

.hub-card-slot-10 { border-top: 3px solid #34d399 !important; }
.hub-card-slot-10:hover .hub-action-btn { background: #34d399 !important; color: #060c18 !important; border-color: #34d399 !important; box-shadow: 0 4px 16px rgba(52, 211, 153, 0.4) !important; }

.hub-card-slot-11 { border-top: 3px solid #14b8a6 !important; }
.hub-card-slot-11:hover .hub-action-btn { background: #14b8a6 !important; color: #060c18 !important; border-color: #14b8a6 !important; box-shadow: 0 4px 16px rgba(20, 184, 166, 0.4) !important; }

.hub-card-slot-12 { border-top: 3px solid #0ea5e9 !important; }
.hub-card-slot-12:hover .hub-action-btn { background: #0ea5e9 !important; color: #ffffff !important; border-color: #0ea5e9 !important; box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4) !important; }


/* =============================================================================
   MODULE 10: OFFICIAL LIVE UPDATES DIRECTORY (#liveUpdatesTab)
   Mobile First, High Forensic Polish, Stitch Design Tokens
   ============================================================================= */

#section-live-updates {
  width: 100%;
  overflow-x: hidden;
  padding: 16px 0 40px;
}

.lu-module-wrapper {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Hero Sentinel */
.lu-hero-sentinel {
  background: linear-gradient(180deg, rgba(14, 20, 36, 0.85) 0%, rgba(10, 15, 27, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.lu-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.lu-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  display: inline-block;
}

.lu-badge-text {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #34d399;
}

.lu-badge-slot {
  font-size: 0.7rem;
  font-family: var(--font-mono, monospace);
  color: #94a3b8;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 8px;
}

.lu-hero-title {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.25;
}

.lu-hero-subtitle {
  font-size: 0.94rem;
  color: #94a3b8;
  max-width: 860px;
  line-height: 1.6;
}

/* Timeline Toolbar */
.lu-toolbar {
  position: -webkit-sticky;
  position: sticky;
  top: 64px;
  z-index: 100;
  background: rgba(7, 10, 18, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 12px 16px;
  margin: 0 -16px 24px -16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  transition: all 0.2s ease;
}

#section-live-updates .floating-top-btn {
  border-color: rgba(52, 211, 153, 0.45);
  color: #34d399;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 16px rgba(52, 211, 153, 0.2);
}

#section-live-updates .floating-top-btn svg {
  stroke: #34d399;
}

#section-live-updates .floating-top-btn:hover {
  background: rgba(52, 211, 153, 0.2);
  border-color: #34d399;
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(52, 211, 153, 0.35);
}

.lu-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.lu-pill {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.lu-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}

.lu-pill.active {
  background: #34d399;
  color: #060c18 !important;
  border-color: #34d399;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.4);
}

.lu-pill-major.active {
  background: #fbbf24 !important;
  color: #060c18 !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.4) !important;
}

.lu-pill-count {
  font-size: 0.74rem;
  opacity: 0.85;
  font-family: var(--font-mono, monospace);
}

.lu-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  padding: 0 16px;
  min-height: 44px;
  min-width: 280px;
  flex: 1;
  max-width: 380px;
  transition: border-color 0.2s ease;
}

.lu-search-wrap:focus-within {
  border-color: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.2);
}

.lu-search-icon {
  font-size: 0.9rem;
  opacity: 0.7;
}

.lu-search-input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.84rem;
  width: 100%;
  outline: none;
  padding: 8px 0;
  font-family: inherit;
}

.lu-search-input::placeholder {
  color: #64748b;
}

.lu-search-clear {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.lu-search-clear:hover {
  color: #ffffff;
}

/* Updates Grid */
.lu-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lu-card {
  background: #0d1222;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 24px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  position: relative;
}

.lu-card:hover {
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lu-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.lu-date-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  font-family: var(--font-mono, monospace);
  letter-spacing: -0.02em;
}

.lu-calendar-icon {
  font-size: 1.15rem;
}

.lu-header-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lu-type-chip {
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
}

.chip-gold {
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.chip-emerald {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.chip-cyan {
  background: rgba(0, 242, 254, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(0, 242, 254, 0.4);
}

.lu-totals-pill {
  font-size: 0.76rem;
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Packs Flow */
.lu-packs-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.lu-pack-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.lu-pack-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.lu-pack-count {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
}

/* Files Directory Section (Collapsible Accordion) */
.lu-files-section {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.lu-files-section:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.lu-files-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  cursor: pointer;
  user-select: none;
  background: transparent;
  transition: background 0.18s ease;
}

.lu-files-header:hover {
  background: rgba(255, 255, 255, 0.035);
}

.lu-files-header:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: -2px;
}

.lu-files-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f1f5f9;
}

.lu-files-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lu-files-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.18s ease, color 0.18s ease;
}

.lu-files-header:hover .lu-files-chevron {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

.lu-files-section.expanded .lu-files-chevron {
  transform: rotate(180deg);
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.lu-cloud-delivery-badge {
  font-size: 0.72rem;
  color: #10b981;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lu-files-list {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.lu-files-section.expanded .lu-files-list {
  display: flex;
}

.lu-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 8px 12px;
  transition: all 0.15s ease;
}

.lu-file-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.lu-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.lu-ext-badge {
  font-size: 0.68rem;
  font-family: var(--font-mono, monospace);
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.badge-xlsx {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-7z {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.badge-html {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-pdf {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge-mp4 {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.lu-file-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lu-file-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
  font-family: var(--font-mono, monospace);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lu-file-desc {
  font-size: 0.74rem;
  color: #94a3b8;
}

.lu-file-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}


.lu-btn-coming-soon {
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  color: #fbbf24 !important;
  cursor: default !important;
  opacity: 0.9;
  user-select: none;
}
.lu-btn-coming-soon:hover {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  color: #fde68a !important;
}

.lu-btn-action {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  border: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.lu-btn-inspect {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #34d399;
}

.lu-btn-inspect:hover {
  background: #34d399;
  color: #060c18;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.3);
}

.lu-btn-download {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.lu-btn-download:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Roster Modal */
.lu-modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2500;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  touch-action: none;
  overscroll-behavior: contain;
}

.lu-modal-backdrop.show {
  display: flex;
}

.lu-modal-dialog {
  background: #0b101d;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 16px;
  width: 100%;
  max-width: 1360px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.lu-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.lu-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lu-modal-icon {
  font-size: 1.25rem;
}

.lu-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.3;
}

.lu-modal-close {
  min-height: 44px;
  min-width: 44px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.lu-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.lu-modal-toolbar {
  padding: 12px 20px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.lu-modal-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 0 12px;
  min-height: 44px;
  flex: 1;
  max-width: 500px;
}

.lu-modal-search {
  background: transparent;
  border: none;
  color: #f8fafc;
  font-size: 0.85rem;
  width: 100%;
  outline: none;
  font-family: inherit;
}

.lu-modal-search::placeholder {
  color: #64748b;
}

.lu-roster-count-badge {
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 4px 10px;
  border-radius: 12px;
}

.lu-table-scroll-wrap {
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(90vh - 140px);
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

.lu-roster-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  white-space: nowrap;
}

.lu-roster-table th {
  background: #090e1a;
  color: #94a3b8;
  padding: 10px 12px;
  text-align: left;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
  letter-spacing: 0.03em;
}

.lu-roster-table td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
}

.lu-roster-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.td-pid {
  font-family: var(--font-mono, monospace);
  color: #94a3b8;
  font-size: 0.78rem;
}

.td-pack {
  color: #fbbf24;
  font-weight: 600;
}

.td-actual-pack {
  color: #cbd5e1;
}

.td-name {
  font-weight: 700;
  color: #ffffff;
}

.td-team {
  color: #94a3b8;
}

.td-nat {
  color: #cbd5e1;
}

.td-att {
  color: #38bdf8;
  font-size: 0.8rem;
  font-weight: 600;
}

.td-def {
  color: #34d399;
  font-size: 0.8rem;
  font-weight: 600;
}

.lu-pos-badge {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid #34d399;
  color: #34d399;
  padding: 3px 7px;
  border-radius: 4px;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  display: inline-block;
}

.lu-cardtype-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-block;
}

.lu-cardtype-badge.type-epic {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}

.lu-cardtype-badge.type-show-time {
  background: rgba(0, 242, 254, 0.18);
  border-color: rgba(0, 242, 254, 0.4);
  color: #00f2fe;
}

.lu-cardtype-badge.type-big-time {
  background: rgba(244, 63, 94, 0.18);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fb7185;
}

.lu-cardtype-badge.type-highlight {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.lu-cardtype-badge.type-potw {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.lu-table-empty, .lu-cards-empty {
  text-align: center;
  padding: 32px 16px;
  color: #94a3b8;
  font-size: 0.88rem;
}

/* Mobile Cards View */
.lu-mobile-cards-list {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
}

.lu-mobile-player-card {
  background: #0e1424;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lu-m-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lu-m-pid {
  font-size: 0.72rem;
  color: #94a3b8;
}

.lu-m-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lu-m-card-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lu-m-name {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.lu-m-team-nat {
  font-size: 0.78rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lu-m-dot {
  opacity: 0.5;
}

.lu-m-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  flex-wrap: wrap;
}

.lu-m-pack-pill {
  font-size: 0.74rem;
  color: #fbbf24;
  font-weight: 600;
}

.lu-m-styles {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 600;
}

.lu-m-style-att {
  color: #38bdf8;
}

.lu-m-style-def {
  color: #34d399;
}

/* Toast */
.lu-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  background: #0f172a;
  border: 1px solid #34d399;
  color: #f8fafc;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  font-size: 0.85rem;
  font-weight: 600;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  max-width: 90vw;
}

.lu-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.lu-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  gap: 12px;
  color: #94a3b8;
}

.lu-empty-icon {
  font-size: 2.2rem;
  opacity: 0.7;
}

.lu-empty-text {
  font-size: 0.95rem;
  text-align: center;
}

/* =============================================================================
   MOBILE FIRST OPTIMIZATIONS (Smartphones 360px - 420px & Tablets <= 768px)
   ============================================================================= */

/* =============================================================================
   MODULE 10: IN-GAME PICTURES & BANNERS GALLERY
   ============================================================================= */
.lu-pictures-section {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.lu-pictures-section:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.lu-pictures-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  cursor: pointer;
  user-select: none;
  background: transparent;
  transition: background 0.18s ease;
}

.lu-pictures-header:hover {
  background: rgba(255, 255, 255, 0.035);
}

.lu-pictures-header:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: -2px;
}

.lu-pictures-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f1f5f9;
}

.lu-pictures-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lu-pictures-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.18s ease, color 0.18s ease;
}

.lu-pictures-header:hover .lu-pictures-chevron {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

.lu-pictures-section.expanded .lu-pictures-chevron {
  transform: rotate(180deg);
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.lu-pictures-gallery {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 16px 16px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.lu-pictures-section.expanded .lu-pictures-gallery {
  display: grid;
}

.lu-pictures-gallery::-webkit-scrollbar {
  width: 6px;
}
.lu-pictures-gallery::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.lu-pic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  min-height: 120px;
}

.lu-pic-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), 0 0 12px rgba(56, 189, 248, 0.2);
}

.lu-pic-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #090d16;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lu-pic-card.portrait .lu-pic-thumb-wrap {
  aspect-ratio: 3 / 4;
}

.lu-pic-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.lu-pic-card:hover .lu-pic-thumb {
  transform: scale(1.05);
}

.lu-pic-platform-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
}

.lu-pic-platform-badge.pc_console {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
}

.lu-pic-platform-badge.mobile {
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.35);
}

.lu-pic-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 6px 8px;
  background: rgba(15, 23, 42, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.lu-pic-cat-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 65%;
}

.lu-pic-dim-tag {
  font-size: 0.62rem;
  color: #64748b;
  font-family: monospace;
  white-space: nowrap;
}

/* =============================================================================
   MODULE 10: RENDERED PLAYER CARDS GALLERY
   ============================================================================= */
.lu-cards-gallery-section {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.lu-cards-gallery-section:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.lu-cards-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  cursor: pointer;
  user-select: none;
  background: transparent;
  transition: background 0.18s ease;
}

.lu-cards-gallery-header:hover {
  background: rgba(255, 255, 255, 0.035);
}

.lu-cards-gallery-header:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: -2px;
}

.lu-cards-gallery-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f1f5f9;
}

.lu-cards-gallery-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lu-cards-gallery-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.18s ease, color 0.18s ease;
}

.lu-cards-gallery-header:hover .lu-cards-gallery-chevron {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

.lu-cards-gallery-section.expanded .lu-cards-gallery-chevron {
  transform: rotate(180deg);
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.lu-cards-gallery-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding: 14px 16px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.lu-cards-gallery-section.expanded .lu-cards-gallery-grid {
  display: grid;
}

.lu-card-item-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  touch-action: manipulation;
}

.lu-card-item-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), 0 0 12px rgba(56, 189, 248, 0.2);
}

.lu-card-item-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 361 / 512;
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6px;
}

.lu-card-item-thumb-wrap.mobile {
  aspect-ratio: 1 / 1;
  padding: 10px;
}

.lu-card-item-thumb {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.lu-card-item-btn:hover .lu-card-item-thumb {
  transform: scale(1.05);
}

.lu-card-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 6px 8px;
  background: rgba(15, 23, 42, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.lu-card-item-name {
  font-size: 0.68rem;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 65%;
}

.lu-card-item-dim {
  font-size: 0.62rem;
  color: #64748b;
  font-family: monospace;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .lu-cards-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 8px;
    max-height: 380px;
  }
}

/* Lightbox Modal Specifics (Ventana amplia con respiración y cero recorte) */
.lu-lightbox-dialog {
  width: 95%;
  max-width: 1060px;
  max-height: 94vh;
}

.lu-lightbox-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 24px 28px;
  overflow-y: auto;
  max-height: calc(94vh - 70px);
}

.lu-lightbox-img-wrap {
  width: 100%;
  min-height: 280px;
  aspect-ratio: 16 / 9;
  contain: layout;
  max-height: clamp(280px, 52vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  padding: 10px;
}

.lu-lightbox-img {
  max-width: 100%;
  max-height: clamp(260px, 48vh, 520px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lu-lightbox-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.lu-lightbox-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lu-lightbox-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.lu-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 4px;
}

@media (max-width: 768px) {
  #section-live-updates {
    padding: 10px 0 32px;
  }

  .lu-module-wrapper {
    padding: 0 12px;
  }

  .lu-hero-sentinel {
    padding: 18px 16px;
    margin-bottom: 16px;
    border-radius: 14px;
  }

  .lu-hero-title {
    font-size: 1.45rem;
  }

  .lu-hero-subtitle {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .lu-toolbar {
    top: 56px;
    padding: 10px 12px;
    margin: 0 -12px 18px -12px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .lu-filter-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .lu-pill {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 0.78rem;
  }

  .lu-search-wrap {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .lu-card {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .lu-date-badge {
    font-size: 1.1rem;
  }

  .lu-file-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px;
  }

  .lu-file-actions {
    justify-content: flex-end;
    width: 100%;
    gap: 6px;
  }

  
.lu-btn-coming-soon {
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  color: #fbbf24 !important;
  cursor: default !important;
  opacity: 0.9;
  user-select: none;
}
.lu-btn-coming-soon:hover {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  color: #fde68a !important;
}

.lu-btn-action {
    flex: 1;
    font-size: 0.74rem;
    padding: 8px 10px;
  }

  /* Bottom sheet modal on mobile */
  .lu-modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .lu-modal-dialog {
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
    border-bottom: none;
    border-left: none;
    border-right: none;
  }

  .lu-modal-header {
    padding: 14px 16px;
  }

  .lu-modal-title {
    font-size: 1rem;
  }

  .lu-modal-toolbar {
    padding: 10px 14px;
    flex-direction: column;
    align-items: stretch;
  }

  .lu-modal-search-wrap {
    max-width: 100%;
  }

  .lu-table-scroll-wrap {
    max-height: calc(92vh - 150px);
  }
}

/* Specific narrow smartphone view (<= 640px): show cards list instead of wide table */
@media (max-width: 768px) {
  .lu-pictures-gallery {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
    max-height: 380px;
  }
  .lu-lightbox-details {
    flex-direction: column;
    align-items: stretch;
  }
  .lu-lightbox-actions {
    flex-direction: column;
    width: 100%;
  }
}

.lu-btn-coming-soon {
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  color: #fbbf24 !important;
  cursor: default !important;
  opacity: 0.9;
  user-select: none;
}
.lu-btn-coming-soon:hover {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  color: #fde68a !important;
}

@media (max-width: 640px) {
  .lu-roster-table {
    display: none;
  }

  .lu-mobile-cards-list {
    display: flex;
  }
}


/* ==========================================================================
   MODULE 08: BUILD OPTIMIZER & FORENSIC PROGRESSION SOLVER (#builderTab)
   ========================================================================== */

.optimizer-hero {
  padding: 36px 20px 24px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.optimizer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid var(--stitch-sys-color-primary-glow);
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.optimizer-title {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 8px;
}

.optimizer-title span {
  background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.optimizer-subtitle {
  color: #94a3b8;
  font-size: 0.95rem;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.55;
}

/* Metagame Presets Selector (Mandato Canónico 11: Subnavegación / Filtros Fijados) */
.builder-presets-wrap {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 72px;
  z-index: 100;
  background: rgba(7, 10, 18, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--stitch-sys-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
}

@media (max-width: 768px) {
  .builder-presets-wrap {
    top: 60px;
    padding: 8px 10px;
    border-radius: 10px;
    gap: 6px;
  }
}

.builder-presets-label {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.builder-presets-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
}

.builder-preset-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  min-height: 44px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--stitch-sys-border);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.builder-preset-pill:hover {
  border-color: var(--stitch-sys-color-primary);
  background: rgba(0, 242, 254, 0.08);
  color: #fff;
}

.builder-preset-pill.active {
  border-color: var(--stitch-sys-color-primary);
  background: rgba(0, 242, 254, 0.16);
  color: var(--stitch-sys-color-primary);
  box-shadow: 0 0 16px var(--stitch-sys-color-primary-glow);
}

.preset-pos {
  font-size: 0.7rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 242, 254, 0.12);
  color: var(--stitch-sys-color-primary);
  font-family: var(--font-mono);
}

/* Optimizer Grid Layout */
.optimizer-container {
  max-width: 1360px;
  margin: 20px auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
}

@media (max-width: 1024px) {
  .optimizer-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 12px;
  }
}

/* Card Panels */
.opt-card {
  background: var(--stitch-sys-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--stitch-sys-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

@media (max-width: 480px) {
  .opt-card {
    padding: 16px 12px;
    border-radius: 12px;
    gap: 16px;
  }
}

.opt-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--stitch-sys-border);
}

.opt-card-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.efficiency-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 800;
  border: 1px solid transparent;
}

.efficiency-badge.optimal {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.4);
}

.efficiency-badge.suboptimal {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

/* Dropzone & Paste Box */
.dropzone-box {
  border: 2px dashed rgba(0, 242, 254, 0.35);
  background: rgba(0, 242, 254, 0.03);
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.dropzone-box:hover,
.dropzone-box.dragover {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.2);
}

.dropzone-icon {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.dropzone-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.dropzone-hint {
  font-size: 0.8rem;
  color: #94a3b8;
  font-family: var(--font-mono);
}

/* Player Meta Box */
.player-meta-box {
  display: flex;
  gap: 14px;
  align-items: center;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 14px;
  border-radius: 10px;
}

.player-meta-thumb {
  width: 52px;
  height: 68px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 8px;
  border: 1px solid #334155;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.player-meta-thumb .ovr {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}

.player-meta-thumb .pos {
  font-size: 0.65rem;
  color: #00f2fe;
  font-weight: 800;
  font-family: var(--font-mono);
}

.player-name-val {
  font-size: 1.18rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.01em;
}

.player-tags {
  display: flex;
  gap: 6px;
  font-size: 0.76rem;
  color: #94a3b8;
  font-family: var(--font-mono);
  margin-top: 4px;
  flex-wrap: wrap;
}

.player-tag {
  background: #1e293b;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #334155;
}

.btn-clear-player {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 36px;
}

.btn-clear-player:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
}

/* Modifiers Bar (DT Boost & Booster Checkbox) */
.builder-modifiers-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.5);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.modifier-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.modifier-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
}

.builder-select {
  background: #0f172a;
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  outline: none;
  min-height: 44px;
  cursor: pointer;
}

.builder-select:focus {
  border-color: var(--stitch-sys-color-primary);
}

.builder-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  min-height: 44px;
  user-select: none;
}

.builder-checkbox-label input[type='checkbox'] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--stitch-sys-color-primary);
}

/* Sliders Group */
.sliders-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slider-row {
  display: grid;
  grid-template-columns: 160px 1fr 48px;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.45);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

@media (max-width: 480px) {
  .slider-row {
    grid-template-columns: 120px 1fr 38px;
    gap: 8px;
    padding: 6px 8px;
  }
}

.slider-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slider-cost-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.slider-input {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #1e293b;
  outline: none;
  touch-action: pan-y;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #00f2fe;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
  transition: transform 0.1s ease;
}

.slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-val {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.05rem;
  color: #38bdf8;
  text-align: right;
}

.points-budget-meter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0f172a;
  border: 1px solid #1e293b;
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.budget-used {
  color: #00f2fe;
  font-weight: 800;
}

.budget-used.over-budget {
  color: #ef4444;
}

/* Right Panel: Audit Report & Metrics */
.audit-verdict-box {
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.audit-verdict-box.warning {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.audit-verdict-box.optimal {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.verdict-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.verdict-title {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.verdict-desc {
  font-size: 0.84rem;
  line-height: 1.45;
  color: #cbd5e1;
}

/* Diagnostics List */
.diag-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.diag-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(15, 23, 42, 0.5);
  padding: 10px 12px;
  border-radius: 8px;
  border-left: 3px solid #64748b;
  font-size: 0.84rem;
}

.diag-item.red {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.diag-item.amber {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.05);
}

.diag-item.emerald {
  border-left-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}

.diag-title {
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 2px;
}

.diag-detail {
  color: #94a3b8;
  line-height: 1.4;
}

.kinematic-header {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Kinematic Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 540px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

.metric-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
}

.metric-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 4px;
}

.metric-card-val {
  font-size: 1.45rem;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-mono);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.metric-card-val .unit {
  font-size: 0.85rem;
  color: #38bdf8;
  font-weight: 700;
}

.metric-card-sub {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.35;
}

/* Actions Footer */
.actions-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.btn-optimize {
  flex: 1;
  min-width: 200px;
  min-height: 44px;
  background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 100%);
  color: #070a12;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
  transition: all 0.2s ease;
}

.btn-optimize:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 242, 254, 0.5);
}

.btn-secondary {
  min-height: 44px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-secondary:hover {
  background: #334155;
}

.copied-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #10b981;
  color: #070a12;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 10000;
}

.copied-toast.show {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================================
   MODULE 09: CANONICAL BOOSTERS & DYNAMIC STACKS (#boostersTab)
   Google Stitch Glassmorphism & 100% Mobile-First Architecture
   ========================================================================== */

.boosters-module-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem 1rem;
}

/* Hero HUD */
.boosters-hero-header {
  text-align: center;
  margin-bottom: 2rem;
}

.boosters-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(129, 140, 248, 0.1);
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #a5b4fc;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.boosters-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #818cf8;
  box-shadow: 0 0 10px #818cf8;
  animation: pulse 1.8s infinite;
}

.boosters-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.boosters-subtitle {
  max-width: 750px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #94a3b8;
}

/* View Navigation Switcher */
.boosters-view-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.boosters-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  min-height: 44px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.boosters-view-btn:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(129, 140, 248, 0.3);
  color: #ffffff;
}

.boosters-view-btn.active {
  background: rgba(129, 140, 248, 0.15);
  border-color: #818cf8;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(129, 140, 248, 0.25);
}

.view-count-badge {
  padding: 0.15rem 0.45rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 0.75rem;
  color: #94a3b8;
}

.view-accent-pill {
  padding: 0.15rem 0.5rem;
  background: linear-gradient(135deg, #818cf8, #c084fc);
  color: #060c18;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* Category Filter Pills */
.boosters-cat-pills {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.boosters-cat-pills::-webkit-scrollbar {
  display: none;
}

.b-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  min-height: 44px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  user-select: none;
}

.b-cat-pill:hover {
  background: rgba(30, 41, 59, 0.7);
  color: #ffffff;
}

.b-cat-pill.active {
  background: rgba(129, 140, 248, 0.16);
  border-color: #818cf8;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(129, 140, 248, 0.2);
}

/* Search Row */
.boosters-search-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.boosters-stat-filter-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 250px;
}

.boosters-stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
}

.boosters-stat-select {
  flex: 1;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.boosters-stat-select:focus {
  border-color: #818cf8;
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.25);
}

.boosters-search-wrap {
  position: relative;
  flex: 1.2;
  min-width: 280px;
}

.boosters-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 0.9rem;
  pointer-events: none;
}

.boosters-search-input {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 2.2rem 0.5rem 2.4rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.boosters-search-input:focus {
  border-color: #818cf8;
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.25);
}

.boosters-clear-btn {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  font-size: 0.85rem;
}

.boosters-clear-btn:hover {
  color: #ffffff;
}

/* Cards Grid */
.boosters-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
}

.booster-card {
  position: relative;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.booster-card:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(129, 140, 248, 0.15);
}

/* Category Accent Borders */
.booster-card.cat-offensive { border-top: 3px solid #f59e0b; }
.booster-card.cat-playmaking { border-top: 3px solid #00f2fe; }
.booster-card.cat-physical { border-top: 3px solid #10b981; }
.booster-card.cat-defending { border-top: 3px solid #ef4444; }
.booster-card.cat-goalkeeping { border-top: 3px solid #3b82f6; }

.b-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.b-card-id-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.b-card-id {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #818cf8;
  background: rgba(129, 140, 248, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.b-card-cat-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.b-card-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.b-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.2rem 0;
  line-height: 1.3;
}

.b-card-en-sub {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.b-card-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
  flex: 1;
}

.booster-stat-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 0.76rem;
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.booster-stat-chip.highlighted-stat {
  background: rgba(129, 140, 248, 0.25);
  border-color: #818cf8;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.3);
}

.chip-icon {
  margin-right: 0.35rem;
  font-size: 0.85rem;
}

.chip-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip-boost {
  font-weight: 800;
  color: #10b981;
  font-size: 0.75rem;
  margin-left: 0.3rem;
}

.b-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  gap: 0.5rem;
}

.b-card-positions {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.booster-pos-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.b-card-inspect-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 44px;
  padding: 0.4rem 0.8rem;
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 8px;
  color: #a5b4fc;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.b-card-inspect-btn:hover {
  background: #818cf8;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(129, 140, 248, 0.4);
}

/* Table View */
.boosters-table-wrap {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.boosters-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.boosters-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.boosters-table th {
  padding: 0.85rem 1rem;
  background: rgba(30, 41, 59, 0.7);
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.boosters-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  vertical-align: middle;
}

.booster-tbl-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

.booster-tbl-row:hover {
  background: rgba(129, 140, 248, 0.08);
}

.tbl-col-id {
  font-family: monospace;
  font-weight: 700;
  color: #818cf8;
  white-space: nowrap;
}

.tbl-col-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tbl-icon {
  font-size: 1.35rem;
}

.tbl-name-main {
  font-weight: 700;
  color: #ffffff;
}

.tbl-name-sub {
  font-size: 0.75rem;
  color: #64748b;
}

.tbl-cat-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}

.tbl-cat-badge.cat-offensive { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.tbl-cat-badge.cat-playmaking { background: rgba(0, 242, 254, 0.15); color: #00f2fe; }
.tbl-cat-badge.cat-physical { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.tbl-cat-badge.cat-defending { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.tbl-cat-badge.cat-goalkeeping { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }

.tbl-stat-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.76rem;
  margin: 0.15rem;
  white-space: nowrap;
}

.tbl-stat-tag small {
  color: #10b981;
  font-weight: 800;
}

.tbl-inspect-btn {
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 8px;
  color: #a5b4fc;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.tbl-inspect-btn:hover {
  background: #818cf8;
  color: #ffffff;
}

/* Calculator View */
.boosters-calc-view {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.75rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.calc-panel-header {
  text-align: center;
  margin-bottom: 2rem;
}

.calc-panel-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.4rem 0;
}

.calc-panel-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  max-width: 680px;
  margin: 0 auto;
}

.calc-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.calc-control-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.calc-card-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  color: #818cf8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calc-control-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
}

.calc-select {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.85rem;
  outline: none;
}

.calc-select:focus {
  border-color: #818cf8;
}

.calc-boost-amount-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.amount-lbl {
  font-size: 0.78rem;
  color: #94a3b8;
}

.calc-val-btn {
  flex: 1;
  min-height: 44px;
  padding: 0.35rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.calc-val-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.calc-val-btn.active {
  background: #818cf8;
  border-color: #818cf8;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.4);
}

.calc-toggle-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.calc-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: #cbd5e1;
  cursor: pointer;
  user-select: none;
  min-height: 44px;
}

.calc-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #818cf8;
  cursor: pointer;
}

/* Live Calculator Results */
.calc-results-wrap {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
}

.calc-results-header {
  display: grid;
  grid-template-columns: 2fr 1.6fr 2.4fr;
  padding: 0.75rem 1.25rem;
  background: rgba(30, 41, 59, 0.8);
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.calc-stat-rows-list {
  max-height: 550px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.calc-stat-row {
  display: grid;
  grid-template-columns: 2fr 1.6fr 2.4fr;
  align-items: center;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}

.calc-stat-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.calc-stat-row.is-boosted {
  background: rgba(129, 140, 248, 0.06);
}

.calc-stat-name-col {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calc-stat-icon {
  font-size: 1rem;
}

.calc-stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
}

.calc-stat-vals-col {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: monospace;
}

.calc-base-val {
  color: #94a3b8;
  font-size: 0.85rem;
}

.calc-arrow {
  color: #64748b;
  font-size: 0.75rem;
}

.calc-final-val {
  font-weight: 800;
  font-size: 0.95rem;
}

.calc-final-val.tier-elite { color: #00f2fe; text-shadow: 0 0 8px rgba(0, 242, 254, 0.5); }
.calc-final-val.tier-high { color: #10b981; }
.calc-final-val.tier-mid { color: #fbbf24; }

.calc-gain-badge {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid #10b981;
  color: #10b981;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.calc-gain-zero {
  color: #64748b;
  font-size: 0.75rem;
}

.calc-cap-badge {
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  animation: pulse 1.5s infinite;
}

.calc-stat-bar-col {
  padding-left: 0.5rem;
}

.calc-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.calc-progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.calc-progress-fill.tier-elite {
  background: linear-gradient(90deg, #00f2fe, #38bdf8);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.calc-progress-fill.tier-high {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.calc-progress-fill.tier-mid {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

/* Detail Modal / Bottom Sheet */
.booster-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 12, 24, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.booster-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.booster-detail-modal {
  position: fixed;
  z-index: 9999;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Desktop Modal Position */
@media (min-width: 641px) {
  .booster-detail-modal {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%) scale(0.96);
    width: 90%;
    max-width: 760px;
    max-height: 85vh;
    border-radius: 20px;
  }

  .booster-detail-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
  }

  .booster-modal-drag-handle {
    display: none;
  }
}

/* Mobile Bottom Sheet */
@media (max-width: 640px) {
  .booster-detail-modal {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 88vh;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    transform: translateY(100%);
  }

  .booster-detail-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .booster-modal-drag-handle {
    width: 44px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    margin: 0.75rem auto 0.25rem auto;
  }

  .calc-results-header,
  .calc-stat-row {
    grid-template-columns: 1.8fr 2fr;
  }

  .calc-stat-bar-col {
    display: none;
  }
}

.booster-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.booster-modal-title-group {
  flex: 1;
}

.m-title-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.m-id-pill {
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #818cf8;
  background: rgba(129, 140, 248, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.m-cat-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.m-cat-pill.cat-offensive { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.m-cat-pill.cat-playmaking { background: rgba(0, 242, 254, 0.15); color: #00f2fe; }
.m-cat-pill.cat-physical { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.m-cat-pill.cat-defending { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.m-cat-pill.cat-goalkeeping { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }

.m-booster-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.m-title-icon {
  font-size: 1.5rem;
}

.m-booster-en {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 0.2rem;
}

.booster-modal-close-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #94a3b8;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.booster-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ffffff;
}

.booster-modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.m-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.m-section h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.75rem 0;
}

.m-scale-wrap {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.m-scale-lbl {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-right: 0.25rem;
}

.m-scale-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0.35rem 0.55rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.m-scale-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.m-scale-btn.active {
  background: #818cf8;
  border-color: #818cf8;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.4);
}

.m-stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.m-stat-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
}

.m-stat-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.m-stat-icon {
  font-size: 1.15rem;
}

.m-stat-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.m-stat-surge {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.m-surge-tag {
  font-size: 1.1rem;
  font-weight: 800;
  color: #10b981;
}

.m-surge-lbl {
  font-size: 0.7rem;
  color: #64748b;
}

.m-synergies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.m-syn-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.85rem;
}

.m-syn-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #818cf8;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.m-syn-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.m-syn-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.m-syn-tag.pos { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.m-syn-tag.skill { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.m-syn-tag.style { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.m-action-box {
  text-align: center;
}

.m-jump-calc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.25), rgba(192, 132, 252, 0.25));
  border: 1px solid #818cf8;
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.m-jump-calc-btn:hover {
  background: linear-gradient(135deg, #818cf8, #c084fc);
  color: #060c18;
  box-shadow: 0 4px 20px rgba(129, 140, 248, 0.4);
}

.m-lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}

.m-lang-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 0.78rem;
}

.m-lang-flag {
  font-size: 1rem;
}

.m-lang-code {
  font-family: monospace;
  font-weight: 700;
  color: #64748b;
  font-size: 0.72rem;
}

.m-lang-name {
  color: #cbd5e1;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.boosters-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #94a3b8;
}

.empty-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}



/* =============================================================================
   MODULE 12: FORENSIC MULTILINGUAL SSOT DICTIONARY (#section-translations)
   Buscador y Comparador Universal de 18 Idiomas WESYS (eFootball™ Forensic Lab)
   Mobile First, High Forensic Polish, Stitch Design Tokens
   ============================================================================= */

#section-translations {
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  padding: 16px 0 40px;
}

.th-wrapper {
  max-width: 1560px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
  width: 100%;
  box-sizing: border-box;
}

/* Hero Header */
.th-hero {
  background: linear-gradient(135deg, rgba(13, 18, 32, 0.94) 0%, rgba(10, 15, 29, 0.88) 100%);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 18px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

/* Translations Hub Pad Toolbar */
.th-pad-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 0.85rem;
}

.th-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.th-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-cyan, #00f2fe);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
}

.th-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan, #00f2fe);
  box-shadow: 0 0 8px var(--accent-cyan, #00f2fe);
}

.th-meta-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.th-pill-stat {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  color: #94a3b8;
}

.th-pill-gold {
  color: var(--accent-amber, #f59e0b);
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
}

.th-export-group {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.th-btn-export {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 8px;
  color: var(--accent-cyan, #00f2fe);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 34px;
}

.th-btn-export:hover {
  background: var(--accent-cyan, #00f2fe);
  color: #02121d;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.45);
  transform: translateY(-1px);
}

.th-title {
  font-size: 1.95rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.025em;
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.th-subtitle {
  font-size: 0.92rem;
  color: #94a3b8;
  max-width: 950px;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

/* Fast Search Bar (<50ms) */
.th-search-bar {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.th-search-icon {
  position: absolute;
  left: 16px;
  font-size: 1.05rem;
  color: #64748b;
  pointer-events: none;
}

.th-search-input {
  width: 100%;
  background: rgba(8, 12, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 13px 92px 13px 48px;
  font-size: 0.95rem;
  color: #fff;
  outline: none;
  font-family: var(--font-sans);
  box-sizing: border-box;
  transition: all 0.2s ease;
  min-height: 48px;
}

.th-search-input:focus {
  border-color: var(--accent-cyan, #00f2fe);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.2);
  background: rgba(8, 12, 22, 0.98);
}

.th-clear-btn {
  position: absolute;
  right: 60px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.th-clear-btn:hover {
  background: rgba(244, 63, 94, 0.3);
  color: #fff;
}

.th-search-kbd {
  position: absolute;
  right: 14px;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

/* Category Pills Bar with Drag-to-Scroll (Mandato Canónico 11: Sticky Subnav) */
.th-pills-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  position: sticky;
  top: 72px;
  z-index: 100;
  margin-bottom: 1.75rem;
  width: 100%;
  background: rgba(10, 15, 29, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: top 0.2s ease, background 0.2s ease;
}

.th-pills-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  scroll-behavior: smooth;
  flex: 1;
}

.th-pills-container::-webkit-scrollbar {
  display: none;
}

.th-pills-container.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.th-cat-pill {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  color: #94a3b8;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  flex-shrink: 0;
  min-height: 42px;
  box-sizing: border-box;
}

.th-cat-pill:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(30, 41, 59, 0.85);
}

.th-cat-pill.active {
  background: var(--accent-cyan, #00f2fe);
  border-color: var(--accent-cyan, #00f2fe);
  color: #02121d;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.45);
}

.th-pills-scroll-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--accent-cyan, #00f2fe);
  font-size: 1.35rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  z-index: 2;
  line-height: 1;
  padding-bottom: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.th-pills-scroll-btn:hover {
  background: var(--accent-cyan, #00f2fe);
  color: #02121d;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.5);
  transform: scale(1.08);
}

/* Section Cards & Tables */
.th-section-card {
  background: var(--bg-card, #0d1220);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.th-section-card:hover {
  border-color: rgba(0, 242, 254, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 242, 254, 0.1);
}

.th-section-header {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98) 0%, rgba(13, 18, 32, 0.85) 100%);
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.th-section-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.th-section-count {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 12px;
  border-radius: 9999px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  font-family: var(--font-mono, monospace);
}

.th-section-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.th-header-pad-selector {
  margin: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.th-header-pad-selector .btn-pad-toggle {
  padding: 4px 12px;
  font-size: 0.78rem;
  min-height: 32px;
}

.th-table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.th-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.th-table thead th {
  background: rgba(10, 15, 29, 0.98);
  color: var(--accent-blue, #38bdf8);
  font-weight: 800;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.th-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background-color 0.15s ease;
}

.th-table tbody tr:last-child {
  border-bottom: none;
}

.th-table tbody tr:hover {
  background-color: rgba(0, 242, 254, 0.035);
}

.th-table td {
  padding: 13px 20px;
  vertical-align: middle;
}

.th-col-id {
  font-family: var(--font-mono, monospace);
  color: var(--accent-cyan, #00f2fe);
  font-weight: 700;
  font-size: 0.75rem;
  width: 105px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.th-col-eng {
  color: #94a3b8;
  font-weight: 500;
  width: 24%;
  font-size: 0.88rem;
}

.th-col-trans {
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.92rem;
}

.th-trans-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  display: inline-block;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

.th-trans-title:hover {
  color: var(--accent-cyan, #00f2fe);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.th-trans-cmd {
  color: var(--accent-amber, #f59e0b);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  margin-top: 5px;
  margin-bottom: 5px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.15s ease;
}

.th-trans-cmd:hover {
  background: rgba(245, 158, 11, 0.2);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.th-trans-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0;
}

.th-option-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.th-trans-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.th-option-card {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.th-option-card:hover {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(56, 189, 248, 0.45);
}

.th-option-card .th-option-badge {
  display: inline-block;
  margin-bottom: 4px;
}

.th-option-desc {
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.45;
}

.th-modal-options-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.th-modal-option-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 6px;
  padding: 6px 10px;
}

.th-modal-option-desc {
  color: #cbd5e1;
  font-size: 0.76rem;
  line-height: 1.4;
  margin-top: 4px;
}

.th-trans-desc {
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 400;
  margin-top: 6px;
  line-height: 1.5;
  background: rgba(15, 23, 42, 0.6);
  padding: 7px 12px;
  border-radius: 6px;
  border-left: 3px solid var(--accent-cyan, #00f2fe);
}

.th-col-trans[dir="rtl"] {
  text-align: right;
  direction: rtl;
}

.th-col-trans[dir="rtl"] .th-trans-desc {
  border-left: none;
  border-right: 3px solid var(--accent-cyan, #00f2fe);
  text-align: right;
}

.th-col-badge {
  width: 170px;
  text-align: right;
}

.th-col-actions {
  width: 130px;
  text-align: center;
}

.th-btn-inspect {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 999px;
  color: var(--accent-blue, #38bdf8);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: 36px;
}

.th-btn-inspect:hover {
  background: var(--accent-blue, #38bdf8);
  color: #02121d;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}

/* Semantic Badges */
.th-type-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 9999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.th-type-showtime {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber, #f59e0b);
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.th-type-standard {
  background-color: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
}

.th-type-attack {
  background-color: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.th-type-defence {
  background-color: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.th-type-strength {
  background-color: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.th-type-category {
  background-color: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.th-type-economy {
  background-color: rgba(234, 179, 8, 0.15);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.th-type-booster {
  background-color: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.th-type-training {
  background-color: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.th-type-contracts {
  background-color: rgba(244, 63, 94, 0.15);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.th-type-modes {
  background-color: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.th-route-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  white-space: normal;
  text-align: right;
  line-height: 1.35;
}

/* Cross-Category Notice Banner */
.th-cross-notice {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.15) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.th-cross-content {
  flex: 1;
}

.th-cross-title {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--accent-amber, #f59e0b);
  margin-bottom: 4px;
}

.th-cross-desc {
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.th-cross-tags {
  display: inline-block;
  margin-top: 4px;
  color: var(--accent-cyan, #00f2fe);
  font-weight: 600;
  font-size: 0.8rem;
}

.th-cross-btn {
  background: linear-gradient(135deg, #00f2fe, #38bdf8);
  color: #02121d;
  border: none;
  border-radius: 9999px;
  padding: 10px 20px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(0, 242, 254, 0.3);
  min-height: 40px;
}

.th-cross-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.5);
}

.th-empty-search {
  padding: 56px 20px;
  text-align: center;
  color: #64748b;
  font-size: 0.95rem;
}

/* 18-Language Comparator Modal */
.th-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 1rem;
  box-sizing: border-box;
}

.th-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.th-modal-dialog {
  background: #0c1220;
  border: 1px solid var(--stitch-sys-border-glow, rgba(0, 242, 254, 0.25));
  border-radius: 18px;
  width: 95%;
  max-width: 1100px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 242, 254, 0.2);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.th-modal-backdrop.open .th-modal-dialog {
  transform: scale(1);
}

.th-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  background: rgba(15, 23, 42, 0.85);
}

.th-modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.th-modal-icon {
  font-size: 1.75rem;
}

.th-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

.th-modal-subtitle {
  font-size: 0.82rem;
  color: var(--accent-cyan, #00f2fe);
  font-family: var(--font-mono, monospace);
  margin-top: 3px;
}

.th-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.th-modal-close:hover {
  background: rgba(244, 63, 94, 0.3);
  border-color: #f43f5e;
  transform: scale(1.05);
}

.th-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.th-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1rem;
}

.th-modal-lang-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.th-modal-lang-card:hover {
  border-color: rgba(0, 242, 254, 0.35);
  background: rgba(15, 23, 42, 0.9);
}

.th-modal-lang-card.is-current-lang {
  border-color: var(--accent-cyan, #00f2fe);
  background: rgba(0, 242, 254, 0.05);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.15);
}

.th-modal-lang-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.th-modal-lang-meta {
  display: flex;
  align-items: center;
  gap: 7px;
}

.th-modal-flag {
  display: flex;
  align-items: center;
}

.th-modal-flag svg {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  vertical-align: middle;
}

.th-modal-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-cyan, #00f2fe);
  background: rgba(0, 242, 254, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.th-modal-lang-name {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
}

.th-modal-btn-copy {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  color: var(--accent-cyan, #00f2fe);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.th-modal-btn-copy:hover {
  background: var(--accent-cyan, #00f2fe);
  color: #02121d;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.th-modal-trans-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  word-break: break-word;
  line-height: 1.35;
  margin-top: 2px;
}

.th-modal-trans-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.45;
  margin-top: 6px;
  background: rgba(10, 15, 29, 0.5);
  padding: 6px 10px;
  border-radius: 6px;
  border-left: 2px solid var(--accent-cyan, #00f2fe);
}

.th-modal-trans-desc[dir="rtl"] {
  border-left: none;
  border-right: 2px solid var(--accent-cyan, #00f2fe);
  text-align: right;
}

/* Toast Notification */
.th-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(13, 18, 32, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--accent-cyan, #00f2fe);
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 242, 254, 0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 10000;
}

.th-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================================
   MOBILE-FIRST OPTIMIZATIONS (360px - 420px Viewports)
   Strict Mandate: Zero overflow-x, Minimum 44x44px touch targets
   ============================================================================= */

@media (max-width: 768px) {
  .th-wrapper {
    padding: 1rem 0.75rem 3rem;
  }

  .th-pills-bar {
    top: 60px;
    padding: 6px 0;
  }

  .th-hero {
    padding: 1.25rem 1rem;
    border-radius: 14px;
  }

  .th-hero-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .th-pad-toolbar {
    width: 100%;
    margin-bottom: 0.75rem;
  }
  .th-pad-toolbar .controller-pad-selector {
    width: 100%;
    display: flex;
  }
  .th-pad-toolbar .btn-pad-toggle {
    flex: 1;
    justify-content: center;
    min-height: 44px;
    font-size: 0.82rem;
  }

  .th-meta-right {
    width: 100%;
    justify-content: space-between;
  }

  .th-export-group {
    width: 100%;
    gap: 0.5rem;
    margin-top: 0.4rem;
  }

  .th-btn-export {
    flex: 1;
    justify-content: center;
    min-height: 44px;
    font-size: 0.8rem;
  }

  .th-title {
    font-size: 1.45rem;
  }

  .th-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
  }

  .th-search-input {
    font-size: 0.88rem;
    padding: 12px 75px 12px 42px;
    min-height: 44px;
  }

  .th-search-kbd {
    display: none;
  }

  .th-clear-btn {
    right: 14px;
    width: 32px;
    height: 32px;
  }

  .th-cat-pill {
    min-height: 44px;
    font-size: 0.78rem;
    padding: 0.45rem 0.9rem;
  }

  .th-pills-scroll-btn {
    width: 44px;
    height: 44px;
  }

  .th-section-header {
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .th-section-actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }

  .th-section-actions .th-header-pad-selector {
    flex: 0 1 auto;
    width: auto;
  }

  .th-section-actions .th-header-pad-selector .btn-pad-toggle {
    min-height: 38px;
    padding: 6px 12px;
    font-size: 0.8rem;
    flex: initial;
  }

  .th-section-actions .th-section-count {
    white-space: nowrap;
    margin-left: auto;
  }

  .th-table thead th {
    padding: 10px 14px;
  }

  .th-table td {
    padding: 10px 14px;
  }

  .th-col-eng {
    width: auto;
  }

  .th-btn-inspect {
    min-height: 44px;
    padding: 6px 14px;
    font-size: 0.78rem;
  }

  .th-cross-notice {
    flex-direction: column;
    align-items: flex-start;
  }

  .th-cross-btn {
    width: 100%;
    text-align: center;
    min-height: 44px;
  }

  /* Bottom-Sheet Layout for 18-Language Modal on Mobile */
  .th-modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .th-modal-dialog {
    width: 100%;
    height: 92vh;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    margin: 0;
  }

  .th-modal-header {
    padding: 1rem 1.25rem;
  }

  .th-modal-body {
    padding: 1rem;
  }

  .th-modal-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .th-modal-btn-copy {
    width: 44px;
    height: 44px;
  }

  .th-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    justify-content: center;
    font-size: 0.82rem;
    padding: 10px 16px;
  }
}

@media (max-width: 480px) {
  .th-wrapper {
    padding: 0.75rem 0.5rem 3rem;
  }

  .th-hero {
    padding: 1rem 0.75rem;
  }

  .th-title {
    font-size: 1.3rem;
  }

  .th-section-title {
    font-size: 0.95rem;
  }
}


/* ==========================================================================
   MODULE 11: SUITE DE UTILIDADES Y MODS DE LA COMUNIDAD (tools/eFootball-Lab)
   4 Pilares: Cards Generator, Smart Farmer, 3D Face Viewer, EvoMod de Endo
   Mobile-First (360px-420px), Cero Overflow-X, Touch Targets >= 44x44px
   ========================================================================== */

.util-module-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem 1rem;
}

/* Hero Sentinel */
.util-hero-header {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.util-hero-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #f59e0b, #06b6d4, #10b981, #a855f7);
}

.util-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.util-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.util-badge-verified {
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 4px 12px;
  border-radius: 20px;
}

.util-main-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.util-main-subtitle {
  color: #94a3b8;
  font-size: 0.96rem;
  line-height: 1.6;
  max-width: 880px;
  margin-bottom: 1.5rem;
}

/* Metric Chips */
.util-metric-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.util-metric-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.util-chip-num {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-cyan);
}

.util-chip-label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
}

/* Sub Navigation Toolbar */
.util-nav-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: rgba(13, 18, 32, 0.85);
  padding: 0.4rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.util-subnav-btn {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1 1 auto;
  justify-content: center;
}

.util-subnav-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.util-subnav-btn.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.4);
  color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.25);
}

.util-subnav-icon {
  font-size: 1.15rem;
}

/* Panels */
.util-subview-panel {
  display: none;
}

.util-subview-panel.active {
  display: block;
  animation: fadeInUtil 0.25s ease-out;
}

@keyframes fadeInUtil {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.util-pillar-layout {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* App Info Card */
.util-app-card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
}

.util-app-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.util-app-icon-wrap {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.util-app-icon-wrap.icon-gold {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
}

.util-app-icon-wrap.icon-cyan {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.3);
}

.util-app-icon-wrap.icon-green {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}

.util-app-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.util-app-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
}

.util-version-badge {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--accent-cyan);
}

.util-version-badge.badge-green {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #10b981;
}

.util-app-tagline {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Specs Grid */
.util-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.util-spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.util-spec-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.util-spec-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f1f5f9;
}

.util-spec-val.checksum-pill {
  color: var(--accent-cyan);
  font-size: 0.8rem;
}

.util-spec-val.color-green {
  color: #10b981;
}

/* Features Grid */
.util-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.util-feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.util-feat-icon {
  font-size: 1.3rem;
  line-height: 1;
  padding-top: 2px;
}

.util-feat-body h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.util-feat-body p {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* Buttons & Actions Bar */
.util-card-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.util-primary-btn {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.3);
  transition: all 0.2s ease;
  text-decoration: none;
}

.util-primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(6, 182, 212, 0.45);
}

.util-secondary-btn {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.util-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.util-secondary-btn.btn-sm {
  min-height: 36px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
}

/* Interactive Card Styles */
.util-interactive-card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
}

.util-interactive-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.util-eyebrow-accent {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-amber);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}

.util-interactive-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.util-interactive-desc {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 720px;
}

.util-preset-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.util-pill-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.util-pill-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Web Card Simulator Layout */
.util-card-sim-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.75rem;
  align-items: start;
}

.util-card-sim-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.util-form-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.util-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 180px;
}

.util-form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
}

.util-input, .util-select {
  min-height: 44px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ffffff;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  width: 100%;
}

.util-input:focus, .util-select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.util-card-export-row {
  margin-top: 0.5rem;
}

/* Card Foil Mockup Preview */
.util-card-preview-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.util-card-foil-container {
  width: 280px;
  height: 420px;
  border-radius: 18px;
  padding: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
}

.util-card-foil-container:hover {
  transform: translateY(-4px) scale(1.02);
}

/* Foil Themes */
.util-card-foil-container.epic {
  background: linear-gradient(145deg, #781d32 0%, #2a0812 50%, #d4af37 100%);
  border: 2px solid #d4af37;
}

.util-card-foil-container.showtime {
  background: linear-gradient(145deg, #0f4c81 0%, #061e38 50%, #00f2fe 100%);
  border: 2px solid #00f2fe;
}

.util-card-foil-container.highlight {
  background: linear-gradient(145deg, #371b58 0%, #150030 50%, #a855f7 100%);
  border: 2px solid #a855f7;
}

.util-card-foil-container.bigtime {
  background: linear-gradient(145deg, #1e1b4b 0%, #0f172a 50%, #f43f5e 100%);
  border: 2px solid #f43f5e;
}

.util-card-foil-container.potw {
  background: linear-gradient(145deg, #064e3b 0%, #022c22 50%, #10b981 100%);
  border: 2px solid #10b981;
}

.util-card-canvas-wrap {
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 23, 0.85);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.util-card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.util-card-ovr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.util-card-ovr-num {
  font-family: var(--font-mono);
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.util-card-pos-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f59e0b;
  color: #000;
  margin-top: 2px;
}

.util-card-booster-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  border-radius: 12px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.util-card-silhouette-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 170px;
  position: relative;
}

.util-card-silhouette-glow {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
}

.util-silhouette-graphic {
  font-size: 5.5rem;
  opacity: 0.85;
}

.util-card-bottom-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.util-card-stars {
  color: #f59e0b;
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 2px;
}

.util-card-player-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.util-card-st-badge-row {
  margin-bottom: 4px;
}

.util-st-badge-chip {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #00f2fe;
  padding: 2px 8px;
  border-radius: 10px;
}

.util-card-team-row {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* Smart Farmer Profiles Grid */
.util-profiles-card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
}

.util-profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.util-profile-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.util-profile-box:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.util-profile-box.active {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.2);
}

.profile-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.profile-icon {
  font-size: 1.5rem;
}

.profile-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.util-profile-box.active .profile-badge {
  background: rgba(6, 182, 212, 0.2);
  color: #06b6d4;
}

.profile-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.profile-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.profile-footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-footer .meta-label {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
}

.profile-footer .meta-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: #38bdf8;
}

/* Telemetry HUD Console */
.util-telemetry-hud-box {
  background: #080c14;
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.7);
}

.hud-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #64748b;
}

.hud-pulse-dot.active {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.hud-status-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: 0.05em;
}

.hud-rva-pill {
  font-size: 0.75rem;
  color: #06b6d4;
  background: rgba(6, 182, 212, 0.1);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.hud-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hud-metric-cell {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cell-label {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 700;
}

.cell-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f1f5f9;
}

.score-glow {
  color: #f59e0b;
}

.hud-log-console {
  background: #030508;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #94a3b8;
  max-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.log-line.highlight {
  color: #38bdf8;
}

/* Guide Cards */
.util-guide-card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
}

.util-guide-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.util-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.util-step-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #000;
  font-weight: 900;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.util-step-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.util-step-item p {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.45;
}

.path-snippet {
  display: block;
  font-size: 0.75rem;
  color: #38bdf8;
  margin-top: 4px;
  word-break: break-all;
}

.util-paths-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 10px;
}

.path-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.path-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #f59e0b;
  min-width: 140px;
}

.path-code {
  flex: 1 1 auto;
  font-size: 0.78rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 8px;
  border-radius: 6px;
}

.btn-copy-path {
  min-height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 0.75rem;
  cursor: pointer;
}

/* 3D Face Viewer Stage */
.util-3d-stage-card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
}

.util-3d-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.util-3d-controls-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.util-btn-group {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 2px;
}

.util-mode-btn {
  min-height: 34px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.util-mode-btn:hover {
  color: #fff;
}

.util-mode-btn.active {
  background: rgba(6, 182, 212, 0.2);
  color: #06b6d4;
}

.util-3d-canvas-wrapper {
  position: relative;
  width: 100%;
  height: 460px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #070a10;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: grab;
}

.util-3d-canvas-wrapper:active {
  cursor: grabbing;
}

.util-face-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.util-3d-overlay-hud {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}

.hud-item {
  font-size: 0.72rem;
  color: #cbd5e1;
  background: rgba(8, 12, 20, 0.75);
  backdrop-filter: blur(8px);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-item .hud-tag {
  color: #64748b;
  font-weight: 700;
}

.util-3d-hint {
  position: absolute;
  bottom: 12px;
  background: rgba(8, 12, 20, 0.75);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  color: #94a3b8;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Showcase Switcher */
.util-showcase-switcher {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.switcher-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
}

.switcher-chips-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.switcher-chip {
  min-height: 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.switcher-chip:hover {
  background: rgba(255, 255, 255, 0.08);
}

.switcher-chip.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.4);
  color: #06b6d4;
}

.chip-cat {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

.chip-cat.badge-epic {
  background: #f59e0b;
  color: #000;
}

.chip-cat.badge-real {
  background: #3b82f6;
  color: #fff;
}

/* Forensic Catalog Card */
.util-catalog-card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
}

.util-catalog-metrics {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stat-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-pill.gold {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.stat-pill.cyan {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.3);
  color: #06b6d4;
}

.stat-pill.green {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.util-table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.util-search-box {
  position: relative;
  flex: 1 1 280px;
}

.util-search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  opacity: 0.5;
}

.util-search-input {
  width: 100%;
  min-height: 44px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem 1rem 0.5rem 36px;
  color: #fff;
  font-size: 0.88rem;
}

.util-filter-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-pill {
  min-height: 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.4);
  color: #06b6d4;
}

.util-table-responsive-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.75rem;
  -webkit-overflow-scrolling: touch;
}

.util-faces-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.util-faces-table th {
  background: #0f1523;
  color: #94a3b8;
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.util-faces-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  white-space: nowrap;
}

.util-faces-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.cat-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.badge-epic {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.badge-showtime {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
}

.badge-real {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.pak-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #64748b;
}

.util-table-action-btn {
  min-height: 32px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #06b6d4;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.util-table-action-btn:hover {
  background: #06b6d4;
  color: #000;
}

.util-table-footer {
  font-size: 0.78rem;
  color: #64748b;
  text-align: right;
  padding: 4px;
}

/* PayPal Creator Support Card */
.util-paypal-card {
  border: 1px solid rgba(0, 112, 186, 0.4);
  background: linear-gradient(135deg, rgba(0, 112, 186, 0.08) 0%, rgba(0, 48, 135, 0.12) 100%);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 112, 186, 0.15);
}

.util-paypal-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.util-paypal-icon-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.paypal-logo-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #0070ba;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 8px 24px rgba(0, 112, 186, 0.4);
}

.util-paypal-text-col {
  flex: 1 1 360px;
}

.util-paypal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.util-paypal-desc {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.util-paypal-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.paypal-email-badge {
  font-size: 0.82rem;
  color: #38bdf8;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.paypal-verified-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
}

.util-paypal-action-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
  min-width: 200px;
}

.util-paypal-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0070ba;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 112, 186, 0.4);
  transition: all 0.2s ease;
}

.util-paypal-btn:hover {
  background: #005ea6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 112, 186, 0.55);
}

/* Toast Message */
.util-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(13, 18, 32, 0.95);
  border: 1px solid var(--accent-cyan);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  z-index: 10000;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.util-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   MOBILE FIRST OPTIMIZATION (RULE 9 MANDATE): 360px - 420px VIEWPORT
   Zero Horizontal Overflow, Ergonomic Touch Targets, Clean Glassmorphism
   ========================================================================== */

@media (max-width: 768px) {
  .util-module-wrapper {
    padding: 1rem 0.5rem 3rem 0.5rem;
  }

  .util-hero-header {
    padding: 1.25rem 1rem;
    margin-bottom: 1.25rem;
  }

  .util-main-title {
    font-size: 1.55rem;
  }

  .util-main-subtitle {
    font-size: 0.88rem;
  }

  .util-nav-toolbar {
    flex-direction: column;
    gap: 0.35rem;
  }

  .util-subnav-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 0.65rem 1rem;
  }

  .util-card-sim-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .util-card-preview-col {
    order: -1;
  }

  .util-card-foil-container {
    width: 250px;
    height: 380px;
  }

  .util-3d-canvas-wrapper {
    height: 320px;
  }

  .util-3d-stage-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .util-3d-controls-toolbar {
    width: 100%;
    justify-content: space-between;
  }

  .util-paypal-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .util-paypal-action-col {
    width: 100%;
  }

  .util-paypal-btn {
    width: 100%;
  }

  .util-toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    text-align: center;
  }
}

/* Sticky Subnav & Filters Container (Mandato Canónico 11) */
.boosters-sticky-subnav-wrap {
  position: -webkit-sticky;
  position: sticky;
  top: 72px;
  z-index: 90;
  background: rgba(10, 15, 29, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 0.75rem 0.65rem 0.5rem 0.65rem;
  margin: 0 0 1.25rem 0;
  border-bottom: 1px solid rgba(129, 140, 248, 0.22);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.2s ease;
}

@media (max-width: 768px) {
  .boosters-sticky-subnav-wrap {
    top: 60px;
    padding: 0.5rem 0.35rem 0.35rem 0.35rem;
  }
}


/* Sticky Subnav Toolbar for Utilities & Mods (Mandato Canónico 11) */
.util-sticky-subnav-wrap {
  position: -webkit-sticky;
  position: sticky;
  top: 72px;
  z-index: 95;
  background: rgba(10, 15, 29, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 0.65rem 0.5rem 0.5rem 0.5rem;
  margin: 0 0 1.5rem 0;
  border-bottom: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.2s ease;
}

@media (max-width: 768px) {
  .util-sticky-subnav-wrap {
    top: 60px;
    padding: 0.45rem 0.35rem 0.35rem 0.35rem;
  }
}


/* MANDATO CANÓNICO 9 & 11 — RESPONSIVE PLAYSTYLES TOOLBAR & SUBNAV */
@media (max-width: 768px) {
  .ps-toolbar {
    position: relative !important;
    top: auto !important;
    padding: 0.75rem 0.85rem;
    gap: 0.75rem;
    border-radius: 12px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }
  .ps-filter-subrow {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    width: 100%;
  }
  .ps-pos-select-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }
  .ps-pos-select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }
  .ps-search-wrap {
    width: 100%;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  .ps-search-input {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .ps-subnav-bar {
    position: relative;
    padding: 0.4rem 0.5rem;
    gap: 0.35rem;
    border-radius: 10px;
  }
  .ps-subnav-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.76rem;
    min-height: 44px;
  }
}

/* Responsive Playstyle Card Body (Mandato Mobile-First) */
.pz-playstyle-card-body {
  padding: 1.25rem;
  background: #070a13;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .pz-playstyle-card-body {
    grid-template-columns: 1fr;
    padding: 0.85rem;
    gap: 1rem;
  }
}


/* ==========================================================================
   Header Community & Telegram Action Buttons (Desktop)
   ========================================================================== */
.header-telegram-link,
.header-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  padding: 0;
}

.header-telegram-link:hover {
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.35);
  transform: translateY(-1px);
}

.header-contact-btn:hover {
  color: #00f2fe;
  background: rgba(0, 242, 254, 0.15);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.35);
  transform: translateY(-1px);
}

/* ==========================================================================
   Cookie & LocalStorage Consent Notice (EU GDPR & ePrivacy Compliant)
   ========================================================================== */
.cookie-consent-banner {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  width: min(840px, calc(100vw - 1.5rem));
  background: rgba(10, 15, 29, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 242, 254, 0.15);
  padding: 1.15rem 2.8rem 1.15rem 1.4rem;
  z-index: 2000;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
  box-sizing: border-box;
}

.cookie-consent-banner.active {
  display: block;
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
}

.cookie-banner-close:hover {
  color: #00f2fe;
  background: rgba(0, 242, 254, 0.1);
  transform: scale(1.1);
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.cookie-banner-text-group {
  flex: 1 1 360px;
  min-width: 0;
}

.cookie-banner-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.cookie-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.cookie-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.cookie-desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #94a3b8;
  margin: 0;
}

.cookie-desc code {
  background: rgba(0, 242, 254, 0.12);
  color: #38bdf8;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, #00f2fe 0%, #0284c7 100%);
  color: #030712;
  border: none;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.35);
}

.cookie-btn-accept:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0369a1 100%);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
}

.cookie-btn-essential {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-btn-essential:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.cookie-link-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.76rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  transition: color 0.2s ease;
}

.cookie-link-btn:hover {
  color: #38bdf8;
}

@media (max-width: 640px) {
  .cookie-consent-banner {
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0.75rem));
    padding: 1rem 1.1rem;
    border-radius: 14px;
  }
  .cookie-banner-actions {
    width: 100%;
    margin-top: 0.5rem;
  }
  .cookie-btn {
    flex: 1 1 auto;
    min-height: 44px;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   Community & Contact Page Styles (#section-contact)
   ========================================================================== */
.contact-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

.contact-hero-banner {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(6, 12, 24, 0.95) 100%);
  border: 1px solid rgba(0, 242, 254, 0.25);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.contact-hero-banner::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 450px;
  height: 250px;
  background: radial-gradient(ellipse, rgba(0, 242, 254, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.contact-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #38bdf8;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.contact-hero-title {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 950;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.contact-hero-subtitle {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: #94a3b8;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.55;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 242, 254, 0.15);
}

.contact-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.contact-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.icon-telegram { background: rgba(14, 165, 233, 0.15); border-color: rgba(14, 165, 233, 0.35); }
.icon-direct   { background: rgba(0, 242, 254, 0.15); border-color: rgba(0, 242, 254, 0.35); }
.icon-x        { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); }
.icon-paypal   { background: rgba(234, 179, 8, 0.15); border-color: rgba(234, 179, 8, 0.35); }

.contact-card-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
  font-family: var(--font-mono, monospace);
}

.contact-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.5rem;
}

.contact-card-desc {
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 1.25rem;
  flex: 1 1 auto;
}

.contact-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  min-height: 44px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.btn-tg-main {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}
.btn-tg-main:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.55);
  transform: translateY(-1px);
}

.btn-tg-direct {
  background: linear-gradient(135deg, #00f2fe 0%, #0284c7 100%);
  color: #030712;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.35);
}
.btn-tg-direct:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0369a1 100%);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.55);
  transform: translateY(-1px);
}

.btn-x-main {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-x-main:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.btn-paypal-main {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  color: #0b0f19;
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.35);
}
.btn-paypal-main:hover {
  background: linear-gradient(135deg, #facc15 0%, #d97706 100%);
  box-shadow: 0 6px 20px rgba(234, 179, 8, 0.55);
  transform: translateY(-1px);
}

/* Feedback Box */
.contact-feedback-box {
  padding: 2rem 1.75rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.25);
}

.feedback-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feedback-icon {
  font-size: 2rem;
  line-height: 1;
}

.feedback-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 0.35rem;
}

.feedback-subtitle {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.45;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feedback-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .feedback-fields-row {
    grid-template-columns: 1fr;
  }
}

.feedback-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.feedback-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}

.feedback-select,
.feedback-input,
.feedback-textarea {
  background: rgba(10, 15, 29, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.feedback-select:focus,
.feedback-input:focus,
.feedback-textarea:focus {
  outline: none;
  border-color: #00f2fe;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

.btn-send-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #00f2fe 100%);
  color: #030712;
  font-size: 0.92rem;
  font-weight: 900;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  min-height: 48px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  font-family: inherit;
}

.btn-send-email:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.55), 0 0 12px rgba(0, 242, 254, 0.4);
}

.btn-send-email:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-send-tg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #0284c7 0%, #00f2fe 100%);
  color: #030712;
  font-size: 0.9rem;
  font-weight: 900;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  min-height: 48px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.35);
  font-family: inherit;
}

.btn-send-tg:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 242, 254, 0.55);
}

.btn-send-tg-secondary {
  background: rgba(2, 132, 199, 0.12) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  color: #38bdf8 !important;
  box-shadow: none !important;
}

.btn-send-tg-secondary:hover {
  background: rgba(2, 132, 199, 0.25) !important;
  border-color: #00f2fe !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3) !important;
}

.feedback-status-msg {
  margin-top: 1.15rem;
  padding: 0.95rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.55;
  animation: fadeIn 0.3s ease;
}

.feedback-status-msg.status-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1.5px solid rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
}

.feedback-status-msg.status-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  color: #fde68a;
}

/* Hub Sheet Contact Button */
.hub-card-contact {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.15) 0%, rgba(15, 23, 42, 0.8) 100%) !important;
  border-color: rgba(2, 132, 199, 0.35) !important;
}
.hub-card-contact:hover {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  border-color: #38bdf8 !important;
}


/* =============================================================================
   CONDITION & STAT MODIFIERS FORENSIC SIMULATOR (MÓDULO 06)
   ============================================================================= */
.condition-forensic-section {
  background: rgba(10, 15, 29, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.cond-header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cond-header-title-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cond-header-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cond-group-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  white-space: normal;
  text-align: right;
  word-break: break-word;
  line-height: 1.25;
}

.cond-group-0 {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #38bdf8;
}
.cond-group-1 {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}
.cond-group-2 {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}
.cond-group-3 {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #cbd5e1;
}

/* Arrow Selector Toolbar */
.cond-arrow-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cond-toolbar-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cond-arrow-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.cond-arrow-btn {
  min-height: 52px;
  min-width: 44px;
  padding: 0.45rem 0.35rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
  color: #cbd5e1;
  font-family: inherit;
}

.cond-arrow-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.cond-letter-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

.cond-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.cond-arrow-btn.active {
  background: rgba(15, 23, 42, 0.95);
  font-weight: 800;
  transform: translateY(-2px);
}

.cond-arrow-btn.arrow-A.active {
  border-color: #1488C8;
  color: #38bdf8;
  box-shadow: 0 0 16px rgba(20, 136, 200, 0.4);
}
.cond-arrow-btn.arrow-B.active {
  border-color: #2E9A55;
  color: #4ade80;
  box-shadow: 0 0 16px rgba(46, 154, 85, 0.4);
}
.cond-arrow-btn.arrow-C.active {
  border-color: #B88700;
  color: #facc15;
  box-shadow: 0 0 16px rgba(184, 135, 0, 0.4);
}
.cond-arrow-btn.arrow-D.active {
  border-color: #DD6B1F;
  color: #fb923c;
  box-shadow: 0 0 16px rgba(221, 107, 31, 0.4);
}
.cond-arrow-btn.arrow-E.active {
  border-color: #CF3A2E;
  color: #f87171;
  box-shadow: 0 0 16px rgba(207, 58, 46, 0.4);
}

.cond-arrow-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.cond-arrow-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Controls: OVR Slider & Booster */
.cond-controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .cond-controls-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.cond-control-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cond-control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cond-control-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cond-control-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 800;
  color: #00f2fe;
}

.cond-slider-input {
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  accent-color: #00f2fe;
  cursor: pointer;
  margin: 0.75rem 0 0.5rem 0;
  -webkit-appearance: none;
  appearance: none;
}

.cond-slider-input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
}

.cond-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00f2fe;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
  cursor: pointer;
  margin-top: -6px;
}

.cond-slider-input::-moz-range-track {
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
}

.cond-slider-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00f2fe;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
  border: none;
  cursor: pointer;
}

.cond-booster-pills {
  display: flex;
  gap: 0.35rem;
}

.cond-booster-btn {
  flex: 1;
  min-height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.cond-booster-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.cond-booster-btn.active {
  background: rgba(0, 242, 254, 0.2);
  border-color: #00f2fe;
  color: #00f2fe;
}

/* Results Display Box */
.cond-result-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  background: rgba(7, 13, 25, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.85rem;
}

@media (max-width: 540px) {
  .cond-result-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cond-stat-chip {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
  text-align: center;
  min-width: 0;
  overflow: hidden;
}

.cond-chip-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  word-break: break-word;
  white-space: normal;
  line-height: 1.15;
}

.cond-chip-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.cond-chip-val.positive {
  color: #34d399;
}
.cond-chip-val.negative {
  color: #f87171;
}
.cond-chip-val.neutral {
  color: #94a3b8;
}
.cond-chip-val.final-val {
  color: #00f2fe;
  font-size: 1.35rem;
}

.cond-formula-hint {
  font-size: 0.75rem;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  margin-top: -0.25rem;
}

/* Stamina Tank Special Card */
.cond-stamina-card {
  background: linear-gradient(135deg, rgba(14, 23, 42, 0.9) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cond-cliff-alert {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  color: #fca5a5;
  font-size: 0.82rem;
  line-height: 1.45;
}

/* Weak Foot Card */
.cond-wf-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cond-wf-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cond-wf-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

@media (max-width: 640px) {
  .cond-wf-pills {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cond-wf-pill {
  min-height: 44px;
  padding: 0.35rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  transition: all 0.2s ease;
  font-family: inherit;
  word-break: break-word;
  text-align: center;
  min-width: 0;
  overflow: hidden;
}

.cond-wf-pill span {
  max-width: 100%;
  word-break: break-word;
  white-space: normal;
  line-height: 1.15;
}

.cond-wf-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cond-wf-pill.active {
  background: rgba(6, 182, 212, 0.18);
  border-color: #06b6d4;
  color: #67e8f9;
}

.cond-wf-effect-box {
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cond-wf-effect-text {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
  flex: 1;
  min-width: 200px;
}

.cond-wf-stat-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 800;
  color: #38bdf8;
  padding: 0.25rem 0.65rem;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 6px;
  border: 1px solid rgba(6, 182, 212, 0.3);
  white-space: nowrap;
}

.cond-wf-immune-box {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  color: #cbd5e1;
  font-size: 0.85rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* ==========================================================================
   Controller Buttons & Pad Selector (PlayStation DualSense & Xbox)
   ========================================================================== */
.view-mode-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.controller-pad-selector {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 3px;
  gap: 3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-pad-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #94a3b8;
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 34px;
  user-select: none;
}

.btn-pad-toggle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-pad-toggle.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25) 0%, rgba(14, 165, 233, 0.35) 100%);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

.pad-logo-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.ctrl-btn-img {
  display: inline-block;
  vertical-align: middle;
  width: 22px;
  height: 22px;
  object-fit: contain;
  margin: -2px 3px 0 3px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.65));
  transition: transform 0.15s ease;
}

.ctrl-btn-img:hover {
  transform: scale(1.18);
}

.ctrl-btn-img.large {
  width: 28px;
  height: 28px;
}

/* Command Badge without brackets */
.ctrl-command-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  vertical-align: middle;
  margin-right: 6px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 6px;
  padding: 1px 6px;
}

.ctrl-2x-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: #00f2fe;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(0, 242, 254, 0.16);
  border: 1px solid rgba(0, 242, 254, 0.35);
  line-height: 1.2;
  vertical-align: middle;
}

.ctrl-btn-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 1px 6px;
  margin: 0 2px;
  vertical-align: middle;
}

.ctrl-btn-plus {
  color: #94a3b8;
  font-weight: 800;
  font-size: 0.85rem;
  margin: 0 1px;
}

/* Modal Controller Switcher */
.modal-pad-toggle-wrap {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 2px;
  gap: 2px;
}

.modal-pad-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  color: #94a3b8;
  border: none;
  border-radius: 9999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  min-height: 28px;
}

.modal-pad-btn:hover {
  color: #ffffff;
}

.modal-pad-btn.active {
  background: rgba(6, 182, 212, 0.28);
  color: #38bdf8;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
}

.pad-logo-mini {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .view-mode-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .controller-pad-selector {
    justify-content: center;
    width: 100%;
  }
  .btn-pad-toggle {
    flex: 1;
    justify-content: center;
    min-height: 40px;
  }
}


/* =============================================================================
   TARJETA FORENSE: RANGO DE ENTRADA TÁCTIL MOBILE (PREVIEW EDGE ONLY)
   ============================================================================= */
.pa-mobile-input-range-card {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  contain: layout;
}

.range-card-header {
  margin-bottom: 1.25rem;
}

.range-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.range-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.range-card-subtitle {
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.45;
}

/* Selector Tabs */
.range-mode-selector {
  display: flex;
  gap: 0.5rem;
  margin: 1.25rem 0;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pa-range-opt-btn {
  flex: 1;
  min-height: 44px;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
}

.pa-range-opt-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.04);
}

.pa-range-opt-btn.active {
  color: #ffffff;
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

/* Interactive Display Layout */
.range-interactive-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

@media (max-width: 820px) {
  .range-interactive-wrap {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

.range-visual-box {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.range-svg-canvas {
  width: 100%;
  max-width: 240px;
  height: 180px;
}

.range-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (max-width: 520px) {
  .range-metrics-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

.range-metric-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.range-metric-label {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: #94a3b8;
  text-transform: uppercase;
}

.range-metric-val {
  font-size: 1rem;
  font-weight: 800;
  color: #f8fafc;
}

.range-metric-val.highlight-green {
  color: #10b981;
}

.range-metric-val.highlight-amber {
  color: #f59e0b;
}

.range-metric-val.highlight-red {
  color: #f43f5e;
}

.range-metric-sub {
  font-size: 0.75rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.range-rec-banner {
  grid-column: 1 / -1;
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #e2e8f0;
}

.range-rec-banner strong {
  color: #00f2fe;
}

/* Callout Insights */
.range-insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (max-width: 820px) {
  .range-insights-grid {
    grid-template-columns: 1fr;
  }
}

.range-insight-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.range-insight-card.card-precision {
  border-left: 3px solid #10b981;
}

.range-insight-card.card-sluggish {
  border-left: 3px solid #f59e0b;
}

.insight-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}

.insight-card-text {
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}


/* =============================================================================
   MODULE 13: FORENSIC EDITORIAL & PAPERS (#articlesTab / #section-articles)
   Strict Mobile-First, Zero Overflow-X, Material 3 Glassmorphism HUD Tokens
   ============================================================================= */

#section-articles {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.articles-view-wrapper,
.article-reader-wrapper,
.article-reader-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1rem 4rem 1rem;
}

/* Editorial Hero Header */
.articles-hero {
  padding: 2.5rem 1rem 2rem 1rem;
  text-align: center;
  position: relative;
}

.articles-hero-inner {
  max-width: 840px;
  margin: 0 auto;
}

.articles-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 9999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #00e5ff;
  margin-bottom: 1rem;
}

.pulse-cyan {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
  animation: pulseCyanAnim 2s infinite ease-in-out;
}

@keyframes pulseCyanAnim {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.articles-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #f8fafc;
  line-height: 1.15;
  margin: 0 0 0.85rem 0;
  background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.articles-hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 auto;
}

/* Pinned Filter Subnavigation (Mandate 11) */
.articles-filter-bar,
.articles-filter-subnav {
  position: relative;
  background: rgba(10, 14, 23, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0.85rem 1.25rem;
  margin-top: 1rem;
  margin-bottom: 2.75rem;
  transition: all 0.25s ease;
}

.articles-filter-bar .filter-pills-row,
.articles-filter-subnav .filter-pills-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 4px;
  width: 100%;
}

.articles-filter-bar .filter-pills-row::-webkit-scrollbar,
.articles-filter-subnav .filter-pills-row::-webkit-scrollbar {
  display: none;
}

@media (max-width: 1040px) {
  .articles-filter-bar .filter-pills-row,
  .articles-filter-subnav .filter-pills-row {
    justify-content: flex-start;
    padding: 2px 8px;
  }
}

@media (max-width: 768px) {
  .articles-filter-bar,
  .articles-filter-subnav {
    margin-top: 0.5rem;
    margin-bottom: 1.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
  }
  .articles-filter-bar .filter-pills-row,
  .articles-filter-subnav .filter-pills-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .articles-filter-bar .filter-pills-row::-webkit-scrollbar,
  .articles-filter-subnav .filter-pills-row::-webkit-scrollbar {
    display: none;
  }
}

.filter-pills-scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 1rem;
  max-width: 1320px;
  margin: 0 auto;
}

.filter-pills-scroll::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.18s ease;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.filter-pill:hover,
.filter-pill:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-pill.active {
  background: #00e5ff;
  color: #030712;
  border-color: #00e5ff;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.35);
}

/* Articles Grid */
.articles-grid-container {
  max-width: 1320px;
  margin: 0 auto;
  margin-top: 0.5rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 680px) {
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.article-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.65);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(0, 229, 255, 0.1);
}

.article-card.featured-first-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 360px 1fr;
  border-color: rgba(14, 122, 110, 0.45);
  background: linear-gradient(135deg, rgba(14, 122, 110, 0.12) 0%, rgba(15, 23, 42, 0.75) 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(14, 122, 110, 0.2);
}

@media (max-width: 860px) {
  .article-card.featured-first-card {
    grid-template-columns: 1fr;
  }
}

.card-cover-header {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  position: relative;
}

.featured-first-card .card-cover-header {
  min-height: 220px;
  border-bottom: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 860px) {
  .featured-first-card .card-cover-header {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 140px;
  }
}

.card-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.article-badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.badge-debut {
  background: #0e7a6e;
  color: #fff;
  box-shadow: 0 0 10px rgba(14, 122, 110, 0.5);
}

.badge-lab {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.article-read-time {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

.card-icon-emblem {
  font-size: 3rem;
  align-self: flex-end;
  opacity: 0.9;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-topic-tag {
  color: #38bdf8;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.3;
  margin: 0 0 0.5rem 0;
}

.featured-first-card .card-title {
  font-size: 1.45rem;
}

.card-subtitle {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 0.85rem 0;
}

.card-excerpt {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 1.25rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: auto;
}

.btn-read-article {
  background: #0e7a6e;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  touch-action: manipulation;
  min-height: 44px;
  transition: all 0.18s ease;
  box-shadow: 0 4px 14px rgba(14, 122, 110, 0.35);
}

.btn-read-article:hover {
  background: #0b5e55;
  transform: translateX(2px);
  box-shadow: 0 6px 18px rgba(14, 122, 110, 0.5);
}

.btn-in-lab-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
  padding: 0.4rem 0;
}

.pulse-lab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}


/* =============================================================================
   MONOGRAPH READER VIEW — BOUNDED 1080PX HUMAN-SCALE LAYOUT (MANDATE 9 & 11)
   Strict Mobile-First, Contained SVGs, Zero Overflow-X, Glass HUD Design
   ============================================================================= */

.article-reader-container,
.article-reader-wrapper {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.75rem 1rem 4rem 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* Subnav / Sticky Navigation Bar */
.article-reader-subnav {
  position: relative;
  top: auto;
  z-index: 10;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.55rem 0.9rem;
  margin: 0 0 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}


.reader-top-action-row {
  margin: 0.5rem 0 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.btn-back-to-library {
  background: rgba(255, 255, 255, 0.06);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-back-to-library:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
}

.reader-meta-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
}

.meta-slot-tag {
  background: rgba(14, 122, 110, 0.25);
  border: 1px solid rgba(14, 122, 110, 0.5);
  color: #2dd4bf;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.meta-article-title {
  color: #e2e8f0;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.reading-speed-badge {
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .meta-article-title {
    display: none;
  }
}

/* Article Hero Header Block */
.monograph-header-block {
  margin-bottom: 2rem;
}

.monograph-topic-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #00e5ff;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.monograph-main-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem 0;
}

.monograph-lead-paragraph {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: #94a3b8;
  line-height: 1.55;
  margin: 0 0 1.25rem 0;
}

.author-details {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: #64748b;
  flex-wrap: wrap;
}

/* Section 00: Quick Facts HUD Cards Grid */
.quick-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.fact-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 4px solid #0e7a6e;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.fact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 191, 0.4);
}

.fact-card-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2dd4bf;
}

.fact-card-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
}

.fact-card-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* General Section Styling */
.article-section {
  contain: layout;
  margin-bottom: 3rem;
  scroll-margin-top: 90px;
}

.sec-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}

.sec-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: #0e7a6e;
  font-family: monospace;
}

.sec-title {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}

.sec-p {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0 0 1.25rem 0;
}

/* Section 01: 8 Keeper Stats Grid */
.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.stat-card-box {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.stat-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}

.stat-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2dd4bf;
}

.stat-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #94a3b8;
}

.stat-bullet-list b {
  color: #e2e8f0;
}


/* Section 02: Unified Simulator Frame (Recuadro Unificado) */
.sim-unified-frame {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(0, 242, 254, 0.28);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 229, 255, 0.08);
  margin-bottom: 1.5rem;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .sim-unified-frame {
    padding: 1rem 0.85rem;
  }
}

.sim-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 680px) {
  .sim-tiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 440px) {
  .sim-tiles-grid {
    grid-template-columns: 1fr;
  }
}

.biomech-tile {
  background: rgba(10, 15, 29, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow: hidden;
}

.tile-key-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-val-display {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.15;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-val-display.tile-status-highlight {
  color: #2dd4bf;
  font-size: 0.95rem;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  letter-spacing: -0.01em;
}

.tile-desc-sub {
  font-size: 0.7rem;
  color: #94a3b8;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Section 02: Kinematic Simulator */
.sim-grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.95fr);
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 860px) {
  .sim-grid-layout {
    grid-template-columns: 1fr;
  }
}

.sim-controls-panel {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sim-group-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2dd4bf;
}

.sim-slider-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sim-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.sim-slider-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
}

.sim-slider-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f8fafc;
  font-family: monospace;
}

.sim-range-input {
  width: 100%;
  accent-color: #0e7a6e;
  cursor: pointer;
  touch-action: manipulation;
}

.sim-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.25rem 0;
}

.sim-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.btn-sim-mode {
  min-height: 40px;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  touch-action: manipulation;
  transition: all 0.15s ease;
}

.btn-sim-mode.active {
  border-color: #2dd4bf;
  background: rgba(14, 122, 110, 0.25);
  color: #f8fafc;
  font-weight: 700;
}

.sim-output-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sim-metric-cards-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (max-width: 600px) {
  .sim-metric-cards-row {
    grid-template-columns: 1fr;
  }
}

.metric-hud-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.metric-hud-card.verdict-success {
  border-color: rgba(45, 212, 191, 0.4);
  background: rgba(14, 122, 110, 0.15);
}

.metric-hud-card.verdict-parry {
  border-color: rgba(251, 146, 60, 0.4);
  background: rgba(194, 65, 12, 0.15);
}

.metric-hud-card.verdict-danger {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(185, 28, 28, 0.15);
}

.metric-card-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2dd4bf;
}

.metric-card-val {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  color: #f8fafc;
}

.metric-card-sub {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* Timeline Card Box */
.timeline-card-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.timeline-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}

.timeline-legend-sub {
  font-size: 0.75rem;
  color: #94a3b8;
}

.timeline-lanes-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.timeline-lane-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 500px) {
  .timeline-lane-row {
    grid-template-columns: 130px minmax(0, 1fr);
  }
}

.lane-name-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  line-height: 1.25;
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
}

.lane-bar-track {
  position: relative;
  height: 24px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  overflow: visible;
}

.lane-bar-fill {
  position: absolute;
  top: 3px;
  height: 18px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.lane-ball-marker {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 3px;
  margin-left: -1px;
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
  z-index: 2;
  transition: left 0.2s ease;
}

.timeline-scale-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0.75rem;
}

@media (max-width: 500px) {
  .timeline-scale-row {
    grid-template-columns: 130px minmax(0, 1fr);
  }
}

.timeline-scale-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #64748b;
  font-family: monospace;
}

.timeline-verdict-desc {
  font-size: 0.84rem;
  line-height: 1.5;
  color: #cbd5e1;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* 6 Biomechanical Tiles */
.sim-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.biomech-tile {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tile-key-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.tile-val-display {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.1;
  font-family: monospace;
}

.tile-desc-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.3;
}

.sim-footnote-text {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.45;
}

/* Section 03: Odd Moments Cards */
.odd-moments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.odd-moment-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 4px solid #0e7a6e;
  border-radius: 12px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.odd-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}

.odd-card-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* Section 04 & 05: Split 2-Column Layout */
.section-split-2col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 860px) {
  .section-split-2col {
    grid-template-columns: 1fr;
  }
}

.svg-diagram-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.diagram-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}

.diagram-subtext {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* Pitch & Goal SVGs Contained */
.pitch-spot-svg-container {
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}

.pitch-spot-svg-container svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.goal-aim-svg-container {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.goal-aim-svg-container svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.tactical-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tactical-subcard {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tactical-subcard-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}

.tactical-subcard-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* Section 06: PRNG Cards Grid */
.prng-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) minmax(220px, 1.2fr);
  gap: 0.85rem;
}

@media (max-width: 768px) {
  .prng-cards-grid {
    grid-template-columns: 1fr;
  }
}

.prng-stat-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.prng-stat-val {
  font-size: 1.6rem;
  font-weight: 900;
  color: #2dd4bf;
  line-height: 1;
}

.prng-stat-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.45;
}

.prng-highlight-card {
  background: linear-gradient(135deg, rgba(14, 122, 110, 0.3), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  justify-content: center;
}

.prng-highlight-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.1;
  margin: 0;
}

.prng-highlight-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

/* Floating Top Button (Mandate 11) */
.articles-floating-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 9999;
  background: #0e7a6e;
  color: #ffffff;
  border: 1px solid rgba(45, 212, 191, 0.5);
  border-radius: 9999px;
  padding: 0.6rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  touch-action: manipulation;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateY(10px);
}

.articles-floating-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.articles-floating-top-btn:hover {
  background: #0b5e55;
}


/* Auth Modal Backdrop */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Auth Modal Card (Stitch Glass Card) */
.auth-modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96) 0%, rgba(20, 30, 48, 0.94) 100%);
  border: 1px solid rgba(0, 242, 254, 0.28);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(0, 242, 254, 0.12);
  padding: 1.85rem 1.65rem 1.5rem 1.65rem;
  box-sizing: border-box;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  contain: layout;
}

.auth-modal-backdrop.is-open .auth-modal-card {
  transform: scale(1) translateY(0);
}

/* Close Button */
.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  touch-action: manipulation;
}

.auth-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* Header Elements */
.auth-modal-header {
  text-align: center;
  margin-bottom: 1.35rem;
}

.auth-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: #38bdf8;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.auth-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.45rem 0;
  letter-spacing: -0.01em;
}

.auth-modal-subtitle {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.45;
}

/* Gating Context Notice Banner */
.auth-context-notice {
  display: none;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  color: #fbbf24;
  margin-bottom: 1.25rem;
  line-height: 1.4;
  text-align: left;
}

.auth-context-notice.is-active {
  display: block;
}

/* 5 Social Login Buttons Stack */
.auth-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  touch-action: manipulation;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  user-select: none;
}

.auth-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.auth-btn:active {
  transform: translateY(1px);
}

.auth-btn-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

/* Button 1: Google */
.auth-btn-google {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Button 2: X (Twitter) */
.auth-btn-x {
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Button 3: Telegram */
.auth-btn-telegram {
  background: #24A1DE;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(36, 161, 222, 0.3);
}

/* Button 4: TikTok */
.auth-btn-tiktok {
  background: #010101;
  color: #ffffff;
  border: 1px solid rgba(0, 242, 254, 0.4);
  box-shadow: 0 2px 10px rgba(0, 242, 254, 0.25);
}

/* Button 5: Instagram */
.auth-btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(220, 39, 67, 0.35);
}

/* Newsletter Opt-In Box */
.auth-optin-box {
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 1.15rem;
}

.auth-optin-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
}

.auth-optin-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #00f2fe;
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
}

.auth-optin-text {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.35;
}

/* Conditional Email Input Field */
.auth-email-fallback-wrap {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  display: none;
}

.auth-email-fallback-wrap.is-visible {
  display: block;
}

.auth-email-input {
  width: 100%;
  padding: 0.45rem 0.75rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.8rem;
  box-sizing: border-box;
}

.auth-email-input:focus {
  outline: none;
  border-color: #00f2fe;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.25);
}

/* Footer & Legal */
.auth-modal-footer {
  text-align: center;
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.4;
}

.auth-modal-footer a {
  color: #94a3b8;
  text-decoration: underline;
}


/* Responsive Collapsible Search Pill for Screens <= 1350px */
@media (max-width: 1350px) {
  .header-search-wrap {
    width: 34px !important;
    max-width: 34px !important;
    padding: 0.28rem 0.4rem !important;
    cursor: pointer;
    overflow: hidden;
    justify-content: center;
  }
  .header-search-input {
    display: none !important;
  }
  .header-search-kbd {
    display: none !important;
  }
  .header-search-wrap:focus-within {
    width: 165px !important;
    max-width: 165px !important;
    overflow: visible;
    justify-content: flex-start;
  }
  .header-search-wrap:focus-within .header-search-input {
    display: block !important;
    width: 110px !important;
  }
  .navbar-right {
    gap: 0.35rem !important;
  }
}


/* Navbar Spacing Refinement: Prevents Articulos tab from colliding with search pill on desktop */
@media (min-width: 1024px) {
  .nav-links {
    gap: 0.25rem !important;
  }
  .nav-tab-btn {
    padding: 0.42rem 0.65rem !important;
    font-size: 0.82rem !important;
  }
  .navbar-right {
    margin-left: 0.75rem !important;
    gap: 0.45rem !important;
    flex-shrink: 0 !important;
  }
  .header-search-wrap {
    width: 145px !important;
    min-width: 80px !important;
  }
}


/* =============================================================================
   PASS ASSIST LABORATORY - DASHBOARD & WORKBENCH STYLES (TOOL-FIRST)
   ============================================================================= */

.pa-dashboard-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  contain: layout;
}

/* Cockpit Header */
.pa-dash-cockpit-header {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pa-dash-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pa-dash-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 9999px;
  color: #10b981;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pa-btn-theory-drawer {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  min-height: 44px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pa-btn-theory-drawer:hover {
  background: rgba(99, 102, 241, 0.28);
  border-color: rgba(99, 102, 241, 0.65);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.pa-dash-headline-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pa-dash-main-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pa-dash-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* Workbench Navigation Tabs */
.pa-workbench-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .pa-workbench-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

.pa-workbench-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.18s ease;
  user-select: none;
}

.pa-workbench-tab:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.05);
}

.pa-workbench-tab.active {
  color: #ffffff;
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

/* Workbench Views Container */
.pa-dash-views-wrap {
  width: 100%;
  position: relative;
  contain: layout;
}

.pa-dash-view {
  display: none;
  animation: paFadeInView 0.22s ease-out forwards;
}

.pa-dash-view.active {
  display: block;
}

@keyframes paFadeInView {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Lab Container */
.pa-mobile-lab-container {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Forensic Theory Drawer (Sliding Panel) */
.pa-theory-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  touch-action: none;
  transition: opacity 0.25s ease;
}

.pa-theory-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.pa-theory-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 640px;
  height: 100vh;
  background: #0b1120;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: -8px 0 36px rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  contain: layout;
}

.pa-theory-drawer.active {
  transform: translateX(0);
}

.pa-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.pa-drawer-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pa-drawer-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #f8fafc;
}

.pa-drawer-subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
}

.pa-drawer-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.pa-drawer-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ffffff;
}

.pa-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  .pa-theory-drawer {
    max-width: 100%;
  }
  .pa-dash-main-title {
    font-size: 1.4rem;
  }
}


/* =============================================================================
   CALIBRADOR INTERACTIVO: calib-toggle-btn + dist-preset-btn
   ============================================================================= */
.pa-interactive-calibrator {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  contain: layout;
}

.pa-calib-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pa-calib-header h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: #f8fafc;
  margin: 0;
}

.pa-calib-type-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.calib-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  touch-action: manipulation;
  min-height: 36px;
}

.calib-toggle-btn:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.calib-toggle-btn.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #ffffff;
  font-weight: 700;
}

.pa-slider-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pa-slider-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 500;
}

.pa-slider-label strong {
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}

.pa-calculated-dist-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #64748b;
  padding: 0.4rem 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.pa-calculated-dist-badge strong {
  color: #fbbf24;
  font-weight: 700;
}

.pa-receiver-test-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pa-test-prompt {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: #94a3b8;
}

.pa-dist-btns {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.dist-preset-btn {
  padding: 0.3rem 0.7rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  touch-action: manipulation;
  min-height: 32px;
}

.dist-preset-btn:hover {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}

.dist-preset-btn.active {
  background: rgba(251, 191, 36, 0.22);
  border-color: #fbbf24;
  color: #ffffff;
  font-weight: 700;
}

.pa-live-outcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  contain: layout;
}

/* =============================================================================
   MATRIZ COMPARATIVA FORENSE: pa-table-wrap + pa-data-table CON PROFUNDIDAD Y COLOR
   ============================================================================= */
.pa-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 1rem;
  border: 1px solid rgba(0, 242, 254, 0.22);
  background: linear-gradient(180deg, rgba(10, 18, 36, 0.94) 0%, rgba(6, 11, 24, 0.98) 100%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(0, 242, 254, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  padding: 0.35rem;
  margin-top: 1rem;
}

.pa-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.84rem;
  color: #cbd5e1;
}

.pa-data-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.pa-data-table thead th {
  padding: 0.95rem 1rem;
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  color: #f1f5f9;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  background: rgba(13, 23, 44, 0.95);
  backdrop-filter: blur(12px);
}

.pa-data-table thead th:first-child {
  text-align: left;
  min-width: 170px;
  position: sticky;
  left: 0;
  background: rgba(10, 18, 38, 0.98);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 3;
}

/* Colores de cabecera con acentos luminosos y profundidad */
.pa-data-table thead th.th-smart {
  color: #00f2fe;
  border-bottom: 2px solid #00f2fe;
  background: linear-gradient(180deg, rgba(0, 242, 254, 0.18) 0%, rgba(13, 23, 44, 0.95) 100%);
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.5);
}

.pa-data-table thead th.th-l1 {
  color: #34d399;
  border-bottom: 2px solid #10b981;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.18) 0%, rgba(13, 23, 44, 0.95) 100%);
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.pa-data-table thead th.th-l2 {
  color: #facc15;
  border-bottom: 2px solid #eab308;
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.18) 0%, rgba(13, 23, 44, 0.95) 100%);
  text-shadow: 0 0 12px rgba(234, 179, 8, 0.5);
}

.pa-data-table thead th.th-l3 {
  color: #fb923c;
  border-bottom: 2px solid #f97316;
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.18) 0%, rgba(13, 23, 44, 0.95) 100%);
  text-shadow: 0 0 12px rgba(249, 115, 22, 0.5);
}

.pa-data-table thead th.th-l4 {
  color: #f472b6;
  border-bottom: 2px solid #ec4899;
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.18) 0%, rgba(13, 23, 44, 0.95) 100%);
  text-shadow: 0 0 12px rgba(236, 72, 153, 0.5);
}

.pa-data-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.pa-data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.pa-data-table tbody td {
  padding: 0.75rem 0.85rem;
  text-align: center;
  vertical-align: middle;
  font-size: 0.81rem;
  line-height: 1.35;
}

.pa-data-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: #e2e8f0;
  position: sticky;
  left: 0;
  background: rgba(10, 18, 38, 0.95);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1;
  min-width: 170px;
  max-width: 220px;
}

.dim-badge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.dim-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00f2fe;
  box-shadow: 0 0 8px #00f2fe;
  flex-shrink: 0;
}

/* Tintes sutiles en las columnas para generar profundidad tridimensional */
.pa-data-table td.col-smart { background: rgba(0, 242, 254, 0.025); }
.pa-data-table td.col-l1    { background: rgba(16, 185, 129, 0.025); }
.pa-data-table td.col-l2    { background: rgba(234, 179, 8, 0.025); }
.pa-data-table td.col-l3    { background: rgba(249, 115, 22, 0.025); }
.pa-data-table td.col-l4    { background: rgba(236, 72, 153, 0.025); }

/* Chips de datos de la matriz con alto contraste, profundidad y brillo */
.pa-chip {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.38;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  border: 1px solid transparent;
}

.pa-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.pa-chip.chip-smart {
  background: linear-gradient(145deg, rgba(0, 242, 254, 0.16) 0%, rgba(3, 105, 161, 0.28) 100%);
  border-color: rgba(0, 242, 254, 0.42);
  color: #bae6fd;
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.pa-chip.chip-smart:hover {
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border-color: #00f2fe;
}

.pa-chip.chip-l1 {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.16) 0%, rgba(4, 120, 87, 0.28) 100%);
  border-color: rgba(16, 185, 129, 0.42);
  color: #a7f3d0;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.pa-chip.chip-l1:hover {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border-color: #10b981;
}

.pa-chip.chip-l2 {
  background: linear-gradient(145deg, rgba(234, 179, 8, 0.16) 0%, rgba(180, 83, 9, 0.28) 100%);
  border-color: rgba(234, 179, 8, 0.42);
  color: #fef08a;
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.pa-chip.chip-l2:hover {
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border-color: #eab308;
}

.pa-chip.chip-l3 {
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.16) 0%, rgba(194, 65, 12, 0.28) 100%);
  border-color: rgba(249, 115, 22, 0.42);
  color: #fed7aa;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.pa-chip.chip-l3:hover {
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border-color: #f97316;
}

.pa-chip.chip-l4 {
  background: linear-gradient(145deg, rgba(236, 72, 153, 0.16) 0%, rgba(190, 24, 93, 0.28) 100%);
  border-color: rgba(236, 72, 153, 0.42);
  color: #fbcfe8;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.pa-chip.chip-l4:hover {
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border-color: #ec4899;
}

@media (max-width: 768px) {
  .pa-interactive-calibrator {
    padding: 1rem;
    gap: 1rem;
  }

  .pa-calib-type-toggle {
    gap: 0.4rem;
  }

  .calib-toggle-btn {
    font-size: 0.76rem;
    padding: 0.4rem 0.65rem;
  }

  .pa-live-outcome-grid {
    grid-template-columns: 1fr;
  }

  .pa-data-table thead th,
  .pa-data-table tbody td {
    padding: 0.5rem 0.6rem;
    font-size: 0.76rem;
  }
}

/* Monograph 02: 5 Core Links Grid in a single balanced row */
.def-five-links-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 0.75rem !important;
}

@media (max-width: 1080px) {
  .def-five-links-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 0.65rem !important;
  }
}

@media (max-width: 640px) {
  .def-five-links-grid {
    grid-template-columns: 1fr !important;
  }
}

.def-five-links-grid .odd-moment-card {
  padding: 1rem 0.85rem !important;
}

.def-five-links-grid .odd-card-title {
  font-size: 0.95rem !important;
  line-height: 1.25 !important;
}

.def-five-links-grid .odd-card-desc {
  font-size: 0.8rem !important;
  line-height: 1.45 !important;
}


.lu-pic-video-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(220, 38, 38, 0.9);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.4px;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}


/* Mandato 12: Aislamiento Geométrico Estricto (contain: layout) */
#section-tactics {
  contain: layout;
}


/* =============================================================================
   MANDATO 9 & 12: OPTIMIZACIÓN MÓVIL Y AISLAMIENTO GEOMÉTRICO (SLOT 04 RADAR)
   ============================================================================= */
#section-radar {
  contain: layout;
}

.radar-subnav-btn,
.radar-ping-pill,
.radar-status-pill,
.map-region-filter,
.top10-sort-btn,
.btn-radar-action,
.btn-copy-server-ip {
  touch-action: manipulation;
}

@media (max-width: 768px) {
  .radar-ping-pill,
  .radar-status-pill,
  .map-region-filter,
  .top10-sort-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
  }

  .btn-copy-server-ip {
    min-height: 36px;
    min-width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.6rem;
  }

  .radar-map-wrapper,
  .radar-table-card,
  .radar-ping-card {
    padding: 1rem 0.85rem;
  }
}


/* Native Email/Password & OTP Auth Modal Styles */
.auth-tabs-nav {
  display: flex;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 1.25rem;
  gap: 4px;
}

.auth-tab-btn {
  flex: 1;
  padding: 0.55rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 9px;
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  touch-action: manipulation;
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2) 0%, rgba(6, 182, 212, 0.15) 100%);
  color: #00f2fe;
  border: 1px solid rgba(0, 242, 254, 0.35);
  box-shadow: 0 2px 8px rgba(0, 242, 254, 0.15);
}

.auth-form-pane {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.auth-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.auth-form-field label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.auth-input:focus {
  outline: none;
  border-color: #00f2fe;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
  background: rgba(15, 23, 42, 0.95);
}

.auth-submit-btn {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 1rem;
  background: linear-gradient(135deg, #00f2fe 0%, #06b6d4 100%);
  color: #040812;
  border: none;
  border-radius: 11px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.35);
  touch-action: manipulation;
  margin-top: 0.25rem;
}

.auth-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 242, 254, 0.5);
  filter: brightness(1.05);
}

.auth-submit-btn:active {
  transform: translateY(1px);
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-form-error {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fca5a5;
  padding: 0.55rem 0.75rem;
  border-radius: 9px;
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: left;
}

/* OTP Pane Styles */
.auth-otp-pane {
  text-align: center;
  padding: 0.5rem 0 1rem;
}

.auth-otp-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #00f2fe;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.auth-otp-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.45rem;
}

.auth-otp-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0 0 1.25rem;
  line-height: 1.45;
}

.auth-otp-desc strong {
  color: #00f2fe;
}

.auth-otp-input-wrap {
  margin: 0 auto 1.25rem;
  max-width: 240px;
}

.auth-otp-input {
  width: 100%;
  font-family: 'Courier New', monospace;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.5rem;
  text-align: center;
  padding: 0.65rem 0.5rem;
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid rgba(0, 242, 254, 0.4);
  border-radius: 12px;
  color: #00f2fe;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
  box-sizing: border-box;
}

.auth-otp-input:focus {
  outline: none;
  border-color: #00f2fe;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.45);
}

.auth-otp-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  align-items: center;
}

.auth-otp-resend-btn,
.auth-otp-back-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
  touch-action: manipulation;
}

.auth-otp-resend-btn:hover {
  color: #00f2fe;
  text-decoration: underline;
}

.auth-otp-back-btn:hover {
  color: #cbd5e1;
}


/* User Community Auth Navbar Button (Stitch Glass Styled) */
.nav-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.28);
  color: #00f2fe;
  padding: 0.38rem 0.85rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  touch-action: manipulation;
  flex-shrink: 0;
  line-height: 1.2;
}

.nav-user-btn:hover {
  background: rgba(0, 242, 254, 0.14);
  border-color: #00f2fe;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.35);
  transform: translateY(-1px);
}

.nav-user-btn:active {
  transform: translateY(0);
}

.nav-user-btn .user-btn-icon-svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.nav-user-btn:hover .user-btn-icon-svg {
  transform: scale(1.1);
}

.nav-user-btn .user-btn-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-user-btn.is-logged-in {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.5);
  color: #ffffff;
}

@media (max-width: 640px) {
  .nav-user-btn {
    padding: 0.32rem 0.5rem !important;
    font-size: 0.74rem !important;
    gap: 0.25rem !important;
  }
}

@media (max-width: 480px) {
  .nav-user-btn {
    padding: 0 !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 8px !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .nav-user-btn .user-btn-label {
    display: none !important;
  }
  .nav-user-btn .user-btn-icon-svg {
    width: 15px !important;
    height: 15px !important;
    margin: 0 !important;
  }
}


/* =============================================================================
   ARTICLE COMMENTS & TECHNICAL DEBATE ENGINE (Stitch Glass Surface HUD)
   ============================================================================= */
.article-comments-section {
  margin-top: 3.5rem;
  padding: 1.75rem 2rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(0, 242, 254, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 10;
}

.comments-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

.comments-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.comments-title-icon {
  font-size: 1.4rem;
}

.comments-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.comments-badge-count {
  background: rgba(0, 242, 254, 0.15);
  color: #00f2fe;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 242, 254, 0.35);
}

.comments-subtitle {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0.35rem 0 0 0;
}

/* Locked Banner (When Anonymous) */
.comments-locked-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  background: rgba(10, 16, 30, 0.85);
  border: 1px dashed rgba(0, 242, 254, 0.3);
  margin-bottom: 2rem;
}

.locked-icon-wrap {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 242, 254, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.locked-info {
  flex: 1;
}

.locked-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 0.25rem 0;
}

.locked-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.45;
}

.btn-unlock-comments {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #050810;
  font-weight: 800;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: manipulation;
}

.btn-unlock-comments:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.4);
}

/* Composer (When Logged In) */
.comments-composer-box {
  background: rgba(10, 16, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.composer-user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.composer-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #00f2fe;
}

.composer-status-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.comments-textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.88rem;
  color: #f1f5f9;
  line-height: 1.5;
  resize: vertical;
  min-height: 75px;
  transition: border-color 0.2s ease;
}

.comments-textarea:focus {
  outline: none;
  border-color: #00f2fe;
  box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.2);
}

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
}

.composer-char-limit {
  font-size: 0.75rem;
  color: #64748b;
  font-family: monospace;
}

.btn-submit-comment {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  background: #00f2fe;
  color: #050810;
  font-weight: 800;
  font-size: 0.82rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.btn-submit-comment:hover {
  background: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.4);
}

.btn-submit-comment:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.comment-feedback {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.comment-feedback.is-success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.comment-feedback.is-error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Comments List */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-item {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  transition: border-color 0.2s ease;
}

.comment-item:hover {
  border-color: rgba(0, 242, 254, 0.25);
}

.comment-author-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.comment-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.3), rgba(56, 189, 248, 0.1));
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: #00f2fe;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-author-meta {
  display: flex;
  flex-direction: column;
}

.comment-author-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
}

.comment-author-date {
  font-size: 0.72rem;
  color: #64748b;
}

.comment-body-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #cbd5e1;
  word-break: break-word;
  white-space: pre-wrap;
}

.comments-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.comments-empty-state .empty-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.comments-empty-state .empty-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 0.25rem 0;
}

.comments-empty-state .empty-subtitle {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
}

.comments-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 2rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

.comments-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 242, 254, 0.2);
  border-top-color: #00f2fe;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@media (max-width: 640px) {
  .article-comments-section {
    padding: 1.25rem 1rem;
    margin-top: 2rem;
  }
  .comments-locked-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 1rem;
  }
  .locked-icon-wrap {
    margin: 0 auto;
  }
  .btn-unlock-comments {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   eFootball™ Lab — Community User Profile, Dropdown & Admin Intelligence Suite
   Parity with eFHUB reference / Material 3 Glass tokens.
   ========================================================================== */

/* --- Navbar User Dropdown Container --- */
.nav-user-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  background: rgba(11, 20, 38, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 242, 254, 0.28);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 242, 254, 0.1);
  padding: 0.6rem;
  z-index: 9999;
  display: none;
  animation: userMenuFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  contain: layout;
}

.user-menu-dropdown.show,
.user-menu-dropdown.is-open {
  display: block;
}

@keyframes userMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.user-menu-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.6rem;
}

.user-menu-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #060c18;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 242, 254, 0.3);
  overflow: hidden;
}

.user-menu-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-menu-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-menu-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-email {
  font-size: 0.74rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.4rem 0;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: none;
  background: transparent;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  touch-action: manipulation;
  min-height: 40px;
}

.user-menu-item:hover,
.user-menu-item:focus-visible {
  background: rgba(0, 242, 254, 0.1);
  color: #00f2fe;
  outline: none;
}

.user-menu-country {
  cursor: default;
  color: #94a3b8;
  font-size: 0.78rem;
}

.user-menu-country:hover {
  background: transparent;
  color: #94a3b8;
}

.user-country-flag {
  font-size: 1rem;
}

.user-country-region {
  margin-left: auto;
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-badge-pill {
  margin-left: auto;
  font-size: 0.64rem;
  font-weight: 800;
  color: #00f2fe;
  background: rgba(0, 242, 254, 0.14);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 4px;
  padding: 0.12rem 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.user-menu-signout {
  color: #fb7185;
}

.user-menu-signout:hover,
.user-menu-signout:focus-visible {
  background: rgba(244, 63, 94, 0.12);
  color: #f43f5e;
}

/* --- Profile Section Wrapper --- */
#section-profile {
  contain: layout;
}

.profile-page-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3.5rem 1rem;
}

.profile-top-header {
  margin-bottom: 1.5rem;
}

.profile-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.profile-main-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
  margin: 0;
}

.btn-share-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.btn-share-profile:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: rgba(0, 242, 254, 0.3);
  color: #00f2fe;
}

.profile-tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.6rem;
}

.profile-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.profile-tab-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.04);
}

.profile-tab-btn.active {
  color: #00f2fe;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.25);
}

/* --- Profile Card (eFHUB Match) --- */
.profile-card {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 242, 254, 0.18);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.profile-banner-wrap {
  margin-bottom: 1.25rem;
}

.profile-banner-container {
  position: relative;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #071124 0%, #0c233f 40%, #031024 100%);
  border: 1px solid rgba(0, 242, 254, 0.25);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-banner-container:hover {
  border-color: #00f2fe;
  box-shadow: 0 0 24px rgba(0, 242, 254, 0.25);
}

.profile-banner-container.has-custom-banner {
  border-color: rgba(0, 242, 254, 0.4);
}

.profile-banner-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: #00f2fe;
  font-weight: 600;
  font-size: 0.88rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 5;
  pointer-events: none;
}

.profile-banner-container:hover .profile-banner-hover-overlay {
  opacity: 1;
}

.profile-banner-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.35rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-profile-inline-del {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 0.74rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.btn-profile-inline-del:hover {
  background: rgba(239, 68, 68, 0.12);
  text-decoration: underline;
}

.profile-banner-hud-art {
  width: 100%;
  height: 100%;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.15) 0%, transparent 65%),
    linear-gradient(rgba(0, 242, 254, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 242, 254, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px, 24px 24px;
}

.hud-hexagon-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: 1px dashed rgba(0, 242, 254, 0.35);
  border-radius: 50%;
  box-shadow: inset 0 0 15px rgba(0, 242, 254, 0.15);
}

.profile-identity-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: -34px;
  margin-bottom: 1.75rem;
  padding: 0 0.5rem;
  position: relative;
  z-index: 2;
}

.profile-avatar-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  border: 3px solid #080f1d;
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #060c18;
  font-size: 1.6rem;
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.profile-avatar-circle {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.profile-avatar-circle:hover {
  transform: scale(1.04);
  border-color: #00f2fe;
}

.avatar-hover-cam-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(3, 7, 18, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00f2fe;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
}

.profile-avatar-circle:hover .avatar-hover-cam-overlay {
  opacity: 1;
}

.profile-avatar-action-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.btn-profile-inline-upload {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #00f2fe;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.btn-profile-inline-upload:hover {
  background: rgba(0, 242, 254, 0.22);
  border-color: #00f2fe;
  transform: translateY(-1px);
}

.profile-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-identity-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 24px;
}

.profile-identity-name-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.profile-name-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}

.badge-role-admin {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(0, 242, 254, 0.2));
  border: 1px solid #eab308;
  color: #fde047;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-role-member {
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #00f2fe;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
}

.profile-email-text {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0.15rem 0 0.25rem 0;
}

.profile-photo-change-hint {
  font-size: 0.72rem;
  color: #00f2fe;
  cursor: pointer;
}

/* --- Form Fields (Matching eFHUB) --- */
.profile-form-group {
  margin-bottom: 1.4rem;
}

.profile-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.profile-field-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 0.35rem;
}

.profile-field-hint {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0 0 0.45rem 0;
  line-height: 1.4;
}

.profile-field-hint code {
  color: #00f2fe;
  background: rgba(0, 242, 254, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.profile-field-subhint {
  font-size: 0.74rem;
  color: #64748b;
  margin: 0.35rem 0 0 0;
}

.profile-char-counter {
  font-size: 0.76rem;
  font-family: monospace;
  color: #00f2fe;
}

.profile-input-btn-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.profile-text-input,
.profile-select,
.profile-textarea {
  flex: 1;
  background: rgba(6, 12, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
  font-family: inherit;
  font-size: 0.86rem;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.profile-text-input:focus,
.profile-select:focus,
.profile-textarea:focus {
  border-color: #00f2fe;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.15);
  background: rgba(8, 16, 32, 0.95);
}

.profile-textarea {
  resize: vertical;
  min-height: 70px;
  line-height: 1.5;
  width: 100%;
}

.profile-textarea-large {
  min-height: 120px;
  font-size: 0.92rem;
  line-height: 1.55;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(4, 9, 20, 0.9);
  border: 1px solid rgba(0, 242, 254, 0.22);
  width: 100%;
  box-sizing: border-box;
}

.profile-textarea-large:focus {
  border-color: #00f2fe;
  background: rgba(5, 12, 26, 0.98);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.2);
}

.profile-btn-right {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.btn-profile-save {
  background: linear-gradient(135deg, #00f2fe 0%, #0072ff 100%);
  color: #060c18;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.6rem 1.15rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 242, 254, 0.28);
  touch-action: manipulation;
  flex-shrink: 0;
  min-height: 42px;
}

.btn-profile-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 242, 254, 0.4);
}

.btn-profile-save:active {
  transform: translateY(0);
}

.btn-profile-remove {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #f43f5e;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.6rem 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  touch-action: manipulation;
  flex-shrink: 0;
  min-height: 42px;
}

.btn-profile-remove:hover {
  background: rgba(244, 63, 94, 0.25);
}

/* --- Activity Overview Grid --- */
.profile-activity-summary {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-section-subtitle {
  font-size: 0.96rem;
  font-weight: 700;
  color: #cbd5e1;
  margin: 0 0 1rem 0;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.profile-stat-box {
  background: rgba(6, 12, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-stat-icon {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.profile-stat-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #00f2fe;
}

.profile-stat-lbl {
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

.profile-feedback-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 20, 38, 0.96);
  border: 1px solid #00f2fe;
  color: #00f2fe;
  padding: 0.65rem 1.4rem;
  border-radius: 30px;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 242, 254, 0.2);
  z-index: 10000;
}

/* --- Unauthenticated Locked Card --- */
.profile-locked-card {
  max-width: 480px;
  margin: 3rem auto;
  text-align: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.22);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  backdrop-filter: blur(20px);
}

.profile-locked-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 1.25rem auto;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-locked-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 0.5rem 0;
}

.profile-locked-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 1.5rem 0;
}

.btn-profile-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #00f2fe 0%, #0072ff 100%);
  color: #060c18;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 242, 254, 0.35);
  transition: transform 0.2s ease;
  min-height: 44px;
}

.btn-profile-login:hover {
  transform: translateY(-2px);
}

.profile-loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 1rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

.profile-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(0, 242, 254, 0.2);
  border-top-color: #00f2fe;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ==========================================================================
   Admin Intelligence Dashboard & Audit Trail
   ========================================================================== */
.admin-dashboard-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.admin-kpi-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 14px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
}

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.kpi-icon {
  font-size: 1.25rem;
}

.kpi-badge-trend {
  font-size: 0.65rem;
  font-weight: 700;
  color: #00f2fe;
  background: rgba(0, 242, 254, 0.1);
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
}

.kpi-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.kpi-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 0.35rem;
}

.admin-table-card,
.admin-activity-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.18);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(16px);
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.admin-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 0.25rem 0;
}

.admin-section-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0;
}

.admin-search-input {
  background: rgba(6, 12, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.82rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  min-width: 260px;
  transition: all 0.2s ease;
}

.admin-search-input:focus {
  border-color: #00f2fe;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.15);
}

.admin-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}

.admin-users-table th {
  padding: 0.75rem 0.85rem;
  background: rgba(6, 12, 24, 0.6);
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.admin-users-table td {
  padding: 0.8rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  white-space: nowrap;
}

.admin-users-table tr:hover td {
  background: rgba(0, 242, 254, 0.04);
}

.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.user-cell-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #060c18;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-cell-name {
  font-weight: 700;
  color: #f8fafc;
}

.user-handle-tag {
  color: #00f2fe;
  font-family: monospace;
}

.num-cell {
  font-weight: 700;
  color: #00f2fe;
  text-align: center;
}

.date-cell {
  color: #94a3b8;
  font-size: 0.75rem;
}

/* Activity Feed */
.activity-feed-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.4rem;
}

.activity-feed-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(6, 12, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.activity-icon-col {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.badge-download { background: rgba(0, 242, 254, 0.15); border: 1px solid rgba(0, 242, 254, 0.3); }
.badge-comment { background: rgba(168, 85, 247, 0.15); border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-register { background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.3); }
.badge-login { background: rgba(234, 179, 8, 0.15); border: 1px solid rgba(234, 179, 8, 0.3); }
.badge-profile { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); }

.activity-content-col {
  flex: 1;
  min-width: 0;
}

.activity-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.activity-user-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #f8fafc;
}

.activity-date-tag {
  font-size: 0.72rem;
  color: #64748b;
}

.activity-desc {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin: 0 0 0.2rem 0;
  line-height: 1.35;
}

.activity-email-small {
  font-size: 0.7rem;
  color: #64748b;
}

.activity-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #64748b;
  font-size: 0.85rem;
}

/* ==========================================================================
   Mobile Ergonomics & Responsive Overrides (< 640px)
   ========================================================================== */
@media (max-width: 640px) {
  .user-menu-dropdown {
    right: -10px;
    min-width: 250px;
  }

  .profile-page-wrapper {
    padding: 1rem 0.75rem 3rem 0.75rem;
  }

  .profile-banner-container {
    height: 110px;
  }

  .profile-avatar-circle {
    width: 64px;
    height: 64px;
    font-size: 1.3rem;
  }

  .profile-identity-bar {
    margin-top: -28px;
    gap: 0.85rem;
  }

  .profile-name-text {
    font-size: 1.1rem;
  }

  .profile-textarea-large {
    min-height: 95px;
    font-size: 0.88rem;
    padding: 0.75rem 0.85rem;
  }

  .profile-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .admin-search-input {
    min-width: 100%;
    width: 100%;
  }

  .admin-card-header {
    flex-direction: column;
    align-items: stretch;
  }
}


/* IP Security and Authorization Styles */
.admin-security-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  backdrop-filter: blur(16px);
}

.admin-ip-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #f1f5f9;
}

.status-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.allowed-ips-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.allowed-ips-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
}

.allowed-chips-container {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.allowed-ip-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(6, 12, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-family: monospace;
  color: #00f2fe;
}

.ip-current-tag {
  font-size: 0.65rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-family: inherit;
}

.btn-remove-ip {
  background: transparent;
  border: none;
  color: #fb7185;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
  transition: color 0.15s;
}

.btn-remove-ip:hover {
  color: #f43f5e;
}

/* IP Lock Card */
.admin-ip-lock-card {
  max-width: 520px;
  margin: 2rem auto;
  text-align: center;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 16px;
  padding: 2.5rem 1.75rem;
  backdrop-filter: blur(20px);
}

.ip-lock-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.ip-lock-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 0.5rem 0;
}

.ip-lock-desc {
  font-size: 0.86rem;
  color: #94a3b8;
  margin: 0 0 1rem 0;
  line-height: 1.45;
}

.ip-display-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #00f2fe;
  font-family: monospace;
  margin-bottom: 1rem;
}

.ip-lock-help {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 1.5rem 0;
}

.ip-control-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(6, 12, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

.ip-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 240px;
}

.ip-toggle-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #f8fafc;
}

.ip-toggle-desc {
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.35;
}

.btn-toggle-ip-lock {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  touch-action: manipulation;
}

.btn-toggle-ip-lock:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.3);
  color: #00f2fe;
}

.btn-toggle-ip-lock.is-active {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #10b981;
}

.auth-show-password-row {
  display: flex;
  align-items: center;
  margin-top: -0.25rem;
  margin-bottom: 0.85rem;
}

.auth-show-pass-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}

.auth-show-pass-label:hover {
  color: #00f2fe;
}

.auth-show-pass-check {
  width: 15px;
  height: 15px;
  accent-color: #00f2fe;
  cursor: pointer;
  border-radius: 4px;
}

/* Discord Auth Button & Social Divider */
.auth-social-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0 0.85rem 0;
  color: #64748b;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-social-divider::before,
.auth-social-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-social-divider span {
  padding: 0 0.75rem;
}

.btn-discord-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.7rem 1.2rem;
  background: #5865F2;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35);
  touch-action: manipulation;
  min-height: 44px;
}

.btn-discord-login:hover {
  background: #4752c4;
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
  transform: translateY(-1px);
}

.btn-discord-login:active {
  transform: translateY(0);
}

.discord-logo-svg {
  flex-shrink: 0;
}
