@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800;900&family=Share+Tech+Mono&display=swap');

:root {
  --bg-main: #0b0f17;
  --bg-surface: #111822;
  --bg-card: rgba(17, 24, 34, 0.95);
  --bg-card-border: rgba(202, 220, 230, 0.12);
  --bg-hover: rgba(255, 255, 255, 0.04);

  --primary-color: #c0ff72;
  --primary-hover: #d2ff8f;
  --primary-dark: #9ee830;
  --primary-text: #080d04;
  --primary-border: rgba(192, 255, 114, 0.4);

  --brand-muted: #8fa194;
  --brand-ice: #cadce6;
  --text-white: #ffffff;
  --text-dim: #9da6ad;
  --text-sub: #6c788a;

  --accent-red: #ff4757;
  --accent-blue: #2ed573;
  --accent-gold: #ffa502;
  --accent-purple: #9b59b6;
  --neon-cyan: #c0ff72;
  --brand-steel: #485c50;
  --accent-gradient: linear-gradient(135deg, #c0ff72 0%, #a6ff38 60%, #76e60b 100%);
  --accent-gradient-hover: linear-gradient(135deg, #d2ff8f 0%, #b8ff52 60%, #8bf024 100%);

  --font-brand: 'Outfit', sans-serif;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  background-color: var(--bg-main);
  background-image: radial-gradient(ellipse 60% 400px at 85% 15%, rgba(46, 62, 77, 0.22), transparent 70%);
  background-attachment: fixed;
  color: var(--text-white);
  font-family: var(--font-main);
  min-height: 100vh;
  padding: 20px 16px 80px;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* NAVBAR */
.lumora-navbar {
  position: sticky;
  top: 16px;
  z-index: 1000;
  margin: 0 auto 30px auto;
  max-width: 1240px;
  width: calc(100% - 24px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 24px;
  background: rgba(17, 24, 34, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-card-border);
  border-radius: 9999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65);
}

.lumora-nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lumora-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.lumora-brand-logo {
  height: 42px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
  filter: none;
  transition: transform 0.2s ease;
}

.lumora-brand-logo:hover {
  transform: scale(1.03);
}

.app-tag-badge {
  background: rgba(192, 255, 114, 0.12);
  border: 1px solid rgba(192, 255, 114, 0.35);
  color: var(--primary-color);
  font-family: var(--font-brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.lumora-nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lumora-nav-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-family: var(--font-brand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.lumora-nav-item:hover {
  color: #ffffff;
  background: rgba(202, 220, 230, 0.08);
}

.lumora-nav-item.active {
  color: var(--primary-color);
  background: rgba(192, 255, 114, 0.1);
}

.lumora-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-obs-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #141824;
  border: 1px solid #232a3c;
  color: var(--brand-ice);
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: var(--font-brand);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.btn-obs-pill:hover,
.nav-dropdown.open .btn-obs-pill {
  border-color: var(--primary-color);
  color: #ffffff;
  background: rgba(192, 255, 114, 0.08);
  box-shadow: 0 0 12px rgba(192, 255, 114, 0.15);
}

.dropdown-chevron {
  transition: transform 0.2s ease;
}

.nav-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

/* NAV DROPDOWN */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 320px;
  background: rgba(14, 18, 26, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(192, 255, 114, 0.12);
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 2000;
  animation: dropdownFadeIn 0.18s ease-out;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-header-label {
  font-family: var(--font-brand);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary-color);
  text-transform: uppercase;
  padding: 6px 10px 4px 10px;
  border-bottom: 1px solid rgba(202, 220, 230, 0.08);
  margin-bottom: 4px;
}

.dropdown-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.dropdown-item-row:hover {
  background: rgba(202, 220, 230, 0.06);
  border-color: rgba(192, 255, 114, 0.2);
}

.dropdown-item-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  text-decoration: none;
  flex: 1;
}

.dropdown-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-item-title {
  font-family: var(--font-brand);
  font-size: 0.84rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-item-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.dropdown-item-badge {
  font-size: 0.62rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(192, 255, 114, 0.15);
  color: var(--primary-color);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.btn-dropdown-action {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(202, 220, 230, 0.1);
  color: var(--brand-muted);
  width: 32px;
  height: 32px;
  margin-right: 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-dropdown-action:hover {
  color: var(--primary-color);
  background: rgba(192, 255, 114, 0.12);
  border-color: rgba(192, 255, 114, 0.35);
}

/* CONTAINER */
.container {
  max-width: 1240px;
  margin: 0 auto;
}

/* HEADER HERO */
.app-header {
  margin-bottom: 24px;
}

.brand-header-block {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-title-main {
  font-family: var(--font-brand);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-transform: uppercase;
}

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

.brand-title-sub {
  font-family: var(--font-brand);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-ice);
  margin-left: 8px;
  opacity: 0.85;
}

.stats-summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 14px;
}

.summary-pill {
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
}

.summary-pill-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-pill-value {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  margin-top: 2px;
}

.summary-pill.highlight .summary-pill-value {
  color: var(--primary-color);
}

/* CONTROL CARD (MATCH INPUT) */
.control-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 24px;
}

.control-title {
  font-family: var(--font-brand);
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.slot-item {
  display: flex;
  align-items: center;
  background: #0d121a;
  border: 1.5px solid #1e2638;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.slot-item:focus-within {
  border-color: var(--primary-color);
}

.slot-label {
  background: rgba(24, 35, 46, 0.85);
  color: var(--primary-color);
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  padding: 10px 12px;
  white-space: nowrap;
  border-right: 1.5px solid #1e2638;
}

.slot-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 12px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  outline: none;
}

.actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.actions-left,
.actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* BUTTONS */
.btn {
  padding: 10px 18px;
  border-radius: 10px;
  font-family: var(--font-brand);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--primary-text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

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

.btn-secondary {
  background: #151b27;
  color: #e2e8f5;
  border: 1px solid #232d3f;
}

.btn-secondary:hover {
  background: #1e2637;
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid #232d3f;
}

.btn-outline:hover {
  color: #ffffff;
  border-color: var(--primary-color);
}

/* LOADING INDICATOR (RESULTS TOOL STYLE) */
.loading-indicator {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 30px 20px;
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary-color);
  letter-spacing: 0.5px;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(192, 255, 114, 0.25);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* STATUS ALERT */
.alert {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.86rem;
  display: none;
}

.alert-success {
  background: rgba(46, 213, 115, 0.15);
  border: 1px solid rgba(46, 213, 115, 0.35);
  color: #2ed573;
}

.alert-error {
  background: rgba(255, 71, 87, 0.15);
  border: 1px solid rgba(255, 71, 87, 0.35);
  color: #ff4757;
}

/* MAIN VIEW TABS */
.stats-nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0d121a;
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.tab-trigger {
  padding: 10px 18px;
  background: transparent;
  border: none;
  border-radius: 9px;
  font-family: var(--font-brand);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.tab-trigger:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.tab-trigger.active {
  background: var(--primary-color);
  color: var(--primary-text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* SUB TABS & TOOLBAR */
.stats-sub-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search-input-box {
  display: inline-flex;
  align-items: center;
  background: #111822;
  border: 1px solid var(--bg-card-border);
  border-radius: 8px;
  padding: 6px 12px;
  gap: 8px;
}

.search-input-box input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.85rem;
  outline: none;
  width: 180px;
}

/* STATS TABLE */
.stats-table-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.stats-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
}

.stats-table th {
  background: #141c29;
  color: var(--primary-color);
  font-family: var(--font-brand);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 14px;
  border-bottom: 1.5px solid #1c2638;
}

.stats-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #182232;
  font-size: 0.88rem;
  color: #ffffff;
  vertical-align: middle;
}

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

.rank-badge {
  background: var(--primary-color);
  color: var(--primary-text);
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 0.95rem;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.team-pill-name {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.score-badge {
  background: #182233;
  color: #ffffff;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 0.86rem;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
}

.score-badge.highlight {
  background: rgba(192, 255, 114, 0.15);
  border: 1px solid rgba(192, 255, 114, 0.4);
  color: var(--primary-color);
}

/* ========================================================== */
/* HEAD-TO-HEAD COMPARISON STAGE                              */
/* ========================================================== */
.comparison-card-container {
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55);
}

.comparison-selectors {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #1c2638;
}

.select-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.select-group label {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.styled-select {
  background: #0d121a;
  border: 1.5px solid #232d3f;
  color: #ffffff;
  font-family: var(--font-brand);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 10px;
  outline: none;
  cursor: pointer;
}

.styled-select:focus {
  border-color: var(--primary-color);
}

.vs-badge-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #141c29;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-brand);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin: 0 auto;
}

/* Broadcast Comparison Graphics Card */
.h2h-graphics-board {
  background: #0a0e16;
  border: 1.5px solid #1d2638;
  border-radius: 16px;
  padding: 26px;
  position: relative;
}

.h2h-header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 24px;
}

.h2h-team-banner {
  display: flex;
  flex-direction: column;
}

.h2h-team-banner.left {
  align-items: flex-start;
  text-align: left;
}

.h2h-team-banner.right {
  align-items: flex-end;
  text-align: right;
}

.h2h-team-title {
  font-family: var(--font-brand);
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.h2h-team-subtitle {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Comparative Metric Bars */
.metric-row {
  margin-bottom: 16px;
}

.metric-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.86rem;
}

.metric-val {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 1.05rem;
}

.metric-val.winner {
  color: var(--primary-color);
}

.metric-label {
  font-family: var(--font-brand);
  font-size: 0.76rem;
  font-weight: 900;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dual-progress-track {
  height: 10px;
  background: #141b27;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  position: relative;
}

.bar-side-left {
  height: 100%;
  background: #38bdf8;
  border-right: 1px solid #000;
  transition: width 0.4s ease;
}

.bar-side-right {
  height: 100%;
  background: #a855f7;
  transition: width 0.4s ease;
}

.bar-side-left.winner-bar {
  background: var(--primary-color);
}

.bar-side-right.winner-bar {
  background: var(--primary-color);
}

/* ========================================================== */
/* MVP & TOP PERFORMERS CARDS                                 */
/* ========================================================== */
.mvp-hero-card {
  background: linear-gradient(135deg, rgba(192, 255, 114, 0.08) 0%, rgba(17, 24, 34, 0.98) 60%);
  border: 1.5px solid var(--primary-color);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
}

.mvp-badge-tag {
  background: var(--primary-color);
  color: var(--primary-text);
  font-family: var(--font-brand);
  font-size: 0.8rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 8px;
}

.mvp-player-name {
  font-family: var(--font-brand);
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
}

.mvp-team-name {
  font-size: 1rem;
  color: var(--text-dim);
  font-weight: 700;
  margin-top: 4px;
}

.mvp-score-box {
  background: #0d121a;
  border: 1px solid #1c2638;
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 14px;
}

.mvp-score-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 800;
  text-transform: uppercase;
}

.mvp-score-value {
  font-family: var(--font-brand);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary-color);
}

.mvp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.mvp-stat-box {
  background: #0e141f;
  border: 1px solid #1c2638;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.mvp-stat-val {
  font-family: var(--font-brand);
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
}

.mvp-stat-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 4px;
}

/* TOP PERFORMERS PODIUM */
.performers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.performer-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  padding: 18px;
}

.performer-card-title {
  font-family: var(--font-brand);
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--primary-color);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.performer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  background: #0e131d;
}

.performer-rank {
  font-weight: 900;
  font-size: 0.85rem;
  width: 22px;
  color: var(--text-dim);
}

.performer-name {
  flex: 1;
  font-weight: 700;
  font-size: 0.86rem;
  color: #ffffff;
  padding-left: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.performer-team {
  font-size: 0.75rem;
  color: var(--text-sub);
  margin-right: 12px;
}

.performer-score {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--primary-color);
}

/* WEAPON ARSENAL GRID */
.weapons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.weapon-card {
  background: #0e131d;
  border: 1px solid #1a2233;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.weapon-name {
  font-family: var(--font-brand);
  font-size: 1rem;
  font-weight: 900;
  color: #ffffff;
}

.weapon-stats-strip {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.weapon-kills {
  font-weight: 900;
  color: var(--primary-color);
  font-size: 0.95rem;
}

/* FOOTER */
.app-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #182232;
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* TOAST NOTIFICATION */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111822;
  border: 1px solid var(--primary-color);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.88rem;
  z-index: 99999;
  display: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* ========================================================== */
/* RESPONSIVE DESIGN SYSTEM (ALL DEVICES & MOBILE ADAPTATION)  */
/* ========================================================== */

/* Tablets, iPads & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .lumora-navbar {
    height: auto;
    min-height: 58px;
    padding: 10px 14px;
    border-radius: 18px;
    margin: 0 auto 18px auto;
    width: calc(100% - 16px);
    flex-wrap: wrap;
    gap: 10px;
  }

  .lumora-nav-left {
    flex: 0 0 auto;
  }

  .lumora-nav-right {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .lumora-nav-menu {
    order: 3;
    width: 100%;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding-bottom: 2px;
  }

  .lumora-nav-menu::-webkit-scrollbar {
    display: none;
  }

  .lumora-nav-item {
    flex-shrink: 0;
    padding: 7px 12px;
    font-size: 0.78rem;
  }

  .nav-dropdown {
    flex-shrink: 0;
  }

  .nav-dropdown-menu {
    right: 0;
    left: auto;
    min-width: 290px;
  }

  .container {
    padding: 0 14px;
    width: 100%;
  }

  .stats-summary-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .h2h-graphics-board {
    padding: 20px;
  }

  .mvp-hero-card {
    grid-template-columns: 1fr;
  }

  .mvp-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .comparison-selectors {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .vs-badge-circle {
    display: none;
  }
}

/* Mobile & Small Tablets (<= 768px) */
@media (max-width: 768px) {
  body {
    padding-bottom: 30px;
  }

  .lumora-navbar {
    padding: 8px 12px;
    border-radius: 16px;
    margin-bottom: 14px;
    width: calc(100% - 12px);
  }

  .lumora-brand-logo {
    height: 32px;
    max-width: 140px;
  }

  .app-tag-badge {
    font-size: 0.62rem;
    padding: 2px 7px;
  }

  .lumora-admin-pill {
    padding: 3px 8px;
    font-size: 0.72rem;
    gap: 5px;
    max-width: 130px;
  }

  .lumora-admin-pill .admin-label {
    display: none;
  }

  .admin-name {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.72rem;
  }

  .admin-logout-btn {
    width: 20px;
    height: 20px;
  }

  .app-header {
    margin-bottom: 18px;
  }

  .main-title {
    font-size: 1.7rem;
    letter-spacing: -0.01em;
  }

  .sub-tagline {
    font-size: 0.82rem;
  }

  .stats-summary-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .summary-pill {
    padding: 10px 8px;
  }

  .summary-val {
    font-size: 1.35rem;
  }

  .summary-title {
    font-size: 0.65rem;
  }

  .query-builder-card {
    padding: 16px 12px;
    border-radius: 14px;
  }

  .card-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .card-title {
    font-size: 0.92rem;
  }

  .card-hint {
    font-size: 0.72rem;
  }

  .slots-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .slot-label {
    padding: 9px 10px;
    font-size: 0.72rem;
  }

  .slot-input {
    padding: 9px 10px;
    font-size: 0.88rem;
  }

  .actions-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .actions-left,
  .actions-right {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .actions-left .btn,
  .actions-right .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  .stats-sub-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .stats-sub-toolbar h2 {
    font-size: 1.1rem !important;
  }

  .search-input-box {
    width: 100%;
  }

  .search-input-box input {
    width: 100%;
  }

  .stats-sub-toolbar > div {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .stats-sub-toolbar .btn {
    width: 100%;
    justify-content: center;
  }

  .h2h-graphics-board {
    padding: 16px 12px;
    border-radius: 14px;
  }

  .h2h-header-row {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
    margin-bottom: 16px;
  }

  .h2h-team-banner.left,
  .h2h-team-banner.right {
    align-items: center;
    text-align: center;
  }

  .h2h-team-title {
    font-size: 1.4rem;
  }

  .h2h-team-subtitle {
    font-size: 0.75rem;
  }

  .metric-meta {
    font-size: 0.8rem;
  }

  .metric-val {
    font-size: 0.95rem;
  }

  .board-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .board-toolbar .btn {
    width: 100%;
    justify-content: center;
  }

  .performers-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .weapons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .weapon-card {
    padding: 12px;
  }

  .nav-dropdown-menu {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 16px 16px 24px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
    max-height: 80vh;
    overflow-y: auto;
  }

  .toast-msg {
    bottom: 16px;
    right: 16px;
    left: 16px;
    text-align: center;
  }
}

/* Extra Small Phones (<= 480px) */
@media (max-width: 480px) {
  .lumora-navbar {
    padding: 6px 10px;
  }

  .main-title {
    font-size: 1.45rem;
  }

  .stats-summary-strip {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .summary-pill {
    padding: 8px 6px;
  }

  .summary-val {
    font-size: 1.2rem;
  }

  .weapons-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .weapon-card {
    padding: 10px;
  }

  .weapon-name {
    font-size: 0.82rem;
  }

  .auth-gateway-card {
    padding: 26px 16px 20px;
    border-radius: 18px;
  }

  .auth-title {
    font-size: 1.45rem;
  }
}

/* ========================================================== */
/* LUMORA STUDIOS AUTHENTICATION GATEWAY (MATCHES FF_POINTSTABLE) */
/* ========================================================== */
body.auth-locked {
  overflow: hidden !important;
  height: 100vh !important;
  height: 100dvh !important;
  position: fixed !important;
  width: 100% !important;
  touch-action: none;
}

body.auth-locked .container,
body.auth-locked .lumora-navbar {
  display: none !important;
  visibility: hidden !important;
}

.auth-gateway-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: rgba(8, 11, 16, 0.95) !important;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  box-sizing: border-box;
}

.auth-gateway-overlay.unlocked,
body:not(.auth-locked) .auth-gateway-overlay {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.auth-gateway-card {
  background: linear-gradient(155deg, rgba(24, 35, 46, 0.92) 0%, rgba(13, 19, 28, 0.97) 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(192, 255, 114, 0.28);
  border-radius: 26px;
  padding: 38px 32px 30px;
  width: 100%;
  max-width: 440px;
  text-align: center;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  animation: cardFadeIn 0.35s ease-out;
  box-sizing: border-box;
}

@keyframes cardFadeIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.auth-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  position: relative;
}

.auth-logo-img {
  height: 52px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.auth-logo-wrapper:hover .auth-logo-img {
  transform: scale(1.03);
}

.auth-kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(192, 255, 114, 0.08);
  border: 1px solid rgba(192, 255, 114, 0.28);
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.auth-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-cyan);
  animation: pulseLiveDot 2s infinite;
}

.auth-kicker-text {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--neon-cyan);
  text-transform: uppercase;
}

.auth-title {
  font-family: var(--font-brand);
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0 0 4px 0;
}

.auth-title .title-glow {
  color: var(--primary-color);
}

.auth-byline {
  font-family: var(--font-brand);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-ice);
  text-transform: uppercase;
  margin-bottom: 22px;
  opacity: 0.85;
}

.auth-field-group {
  margin-bottom: 16px;
  text-align: left;
}

.auth-field-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-brand);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand-ice);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.auth-input-wrapper {
  position: relative;
  width: 100%;
}

.auth-key-input {
  width: 100%;
  background: rgba(10, 15, 23, 0.9);
  border: 1.5px solid rgba(74, 93, 107, 0.45);
  border-radius: 12px;
  padding: 12px 14px;
  color: #ffffff;
  font-family: var(--font-brand);
  font-size: 0.94rem;
  font-weight: 600;
  box-sizing: border-box;
  transition: all 0.22s ease;
}

.auth-key-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  background: rgba(7, 10, 16, 0.98);
}

.auth-input-wrapper .auth-key-input {
  padding-right: 44px;
}

.btn-toggle-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--brand-steel);
  cursor: pointer;
  padding: 4px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.btn-toggle-eye:hover {
  color: var(--neon-cyan);
}

.auth-error-alert {
  background: rgba(255, 51, 102, 0.12);
  border: 1px solid rgba(255, 51, 102, 0.4);
  color: #ff6b8b;
  font-family: var(--font-brand);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.auth-submit-btn {
  width: 100%;
  padding: 13px 20px;
  border-radius: 12px;
  background: var(--accent-gradient);
  color: #070d14 !important;
  font-family: var(--font-brand);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.22s ease;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-submit-btn:hover {
  background: var(--accent-gradient-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  color: #000000 !important;
}

.auth-footer-tag {
  margin-top: 22px;
  font-family: var(--font-brand);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-muted);
  letter-spacing: 0.04em;
  opacity: 0.75;
}

/* ADMIN PILL IN NAVBAR */
.lumora-admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 14px;
  border-radius: 9999px;
  background: rgba(46, 62, 77, 0.35);
  border: 1px solid rgba(202, 220, 230, 0.22);
  font-family: var(--font-brand);
  font-size: 0.78rem;
  color: var(--brand-ice);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.admin-live-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00E676;
  animation: pulseLiveDot 2s infinite;
}

@keyframes pulseLiveDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.admin-label {
  font-weight: 800;
  color: var(--brand-muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.admin-name {
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.admin-logout-btn {
  background: rgba(255, 51, 102, 0.15);
  border: 1px solid rgba(255, 51, 102, 0.3);
  color: #ff3366;
  cursor: pointer;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-left: 4px;
  transition: all 0.2s ease;
}

.admin-logout-btn:hover {
  background: #ff3366;
  color: #ffffff;
  transform: scale(1.1);
}



/* ========================================================== */
/* EMPTY STATS STATE PLACEHOLDER                              */
/* ========================================================== */
.empty-stats-placeholder {
  width: 100%;
  margin: 4px 0 28px;
  animation: fadeInEmpty 0.3s ease forwards;
}

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

.empty-stats-card {
  background: rgba(13, 18, 29, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px dashed rgba(192, 255, 114, 0.28);
  border-radius: 18px;
  padding: 50px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  transition: all 0.3s ease;
}

.empty-stats-card:hover {
  border-color: rgba(192, 255, 114, 0.5);
  background: rgba(13, 18, 29, 0.9);
}

.empty-stats-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(192, 255, 114, 0.08);
  border: 1.5px solid rgba(192, 255, 114, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  margin-bottom: 20px;
  box-shadow: 0 0 28px rgba(192, 255, 114, 0.18);
}

.empty-stats-title {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.empty-stats-desc {
  max-width: 580px;
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}

.empty-stats-desc strong {
  color: var(--primary-color);
}

/* ========================================================== */
/* STATS NAVIGATION SECTION TABS BAR (BELOW ENTER MATCH IDs)  */
/* ========================================================== */
.stats-nav-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(13, 18, 29, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px 12px;
  margin-top: -6px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.stats-nav-tabs-group {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
}

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

.stats-nav-tabs-bar .tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid transparent;
  border-radius: 9999px;
  font-family: var(--font-brand);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.stats-nav-tabs-bar .tab-btn svg {
  opacity: 0.75;
  transition: opacity 0.2s;
}

.stats-nav-tabs-bar .tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.stats-nav-tabs-bar .tab-btn:hover svg {
  opacity: 1;
}

.stats-nav-tabs-bar .tab-btn.active {
  background: var(--primary-color);
  color: #070d14;
  border-color: var(--primary-color);
  box-shadow: 0 0 16px rgba(192, 255, 114, 0.35);
}

.stats-nav-tabs-bar .tab-btn.active svg {
  opacity: 1;
  fill: #070d14;
}

.stats-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-export-excel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.38);
  border-radius: 9999px;
  padding: 8px 15px;
  font-family: var(--font-brand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-export-excel:hover {
  background: #10b981;
  color: #070d14;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

.btn-export-full-csv {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(192, 255, 114, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(192, 255, 114, 0.35);
  border-radius: 9999px;
  padding: 8px 15px;
  font-family: var(--font-brand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-export-full-csv:hover {
  background: var(--primary-color);
  color: #070d14;
  box-shadow: 0 0 18px rgba(192, 255, 114, 0.4);
  transform: translateY(-1px);
}

/* ========================================================== */
/* FULLSCREEN THEME WORKSTATION MODAL                         */
/* ========================================================== */
.png-fullscreen-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #090c13;
  z-index: 99990;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.png-fullscreen-page.open {
  display: flex !important;
}

.png-fullscreen-header {
  height: 64px;
  min-height: 64px;
  background: #0f1420;
  border-bottom: 1px solid #1a2233;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  box-sizing: border-box;
}

.png-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.png-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #171f2e;
  color: #cdd6f4;
  border: 1px solid #28354c;
  border-radius: 8px;
  padding: 8px 14px;
  font-family: var(--font-brand);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.png-back-btn:hover {
  background: #202b3f;
  color: #ffffff;
  border-color: var(--primary-color);
  transform: translateX(-2px);
}

.png-header-divider {
  width: 1px;
  height: 28px;
  background: #232d40;
}

.png-header-title-box {
  display: flex;
  flex-direction: column;
}

.png-page-title {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.03em;
}

.png-page-subtitle {
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.png-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.png-fullscreen-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.png-sidebar-controls {
  width: 380px;
  min-width: 340px;
  background: #0d121c;
  border-right: 1px solid #1a2233;
  overflow-y: auto;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
}

.theme-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.theme-section:last-child {
  border-bottom: none;
}

.theme-section-title {
  font-family: var(--font-brand);
  font-size: 0.78rem;
  font-weight: 900;
  color: #798ba3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-help-text {
  font-size: 0.72rem;
  color: #63758d;
  line-height: 1.35;
}

/* Palette Preset Grid */
.palette-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.palette-preset-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: #141b27;
  border: 1px solid #222d40;
  border-radius: 8px;
  color: #c9d5e8;
  font-family: var(--font-brand);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.palette-preset-pill:hover {
  background: #1c2637;
  border-color: #3b4d6b;
  color: #ffffff;
}

.palette-preset-pill.active {
  border-color: var(--primary-color);
  background: rgba(192, 255, 114, 0.08);
  color: #ffffff;
}

.preset-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

/* Color Picker Row */
.color-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-color-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 2px solid #28354c;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  flex-shrink: 0;
}

.custom-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.custom-color-input::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

.color-presets {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.color-chip {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.color-chip:hover {
  transform: scale(1.18);
  border-color: #ffffff;
}

/* Background Mode Grid */
.bg-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.bg-option-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px;
  background: #141b27;
  border: 1px solid #222d40;
  border-radius: 8px;
  color: #9daec6;
  font-family: var(--font-brand);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bg-option-card:hover {
  background: #1b2434;
  color: #ffffff;
}

.bg-option-card.selected {
  border-color: var(--primary-color);
  background: rgba(192, 255, 114, 0.1);
  color: var(--primary-color);
}

.theme-select-input {
  background: #141b27;
  border: 1px solid #222d40;
  border-radius: 8px;
  color: #ffffff;
  padding: 9px 12px;
  font-family: var(--font-brand);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.theme-select-input:focus {
  border-color: var(--primary-color);
}

/* Right Live Preview Workstation */
.png-preview-workstation {
  flex: 1;
  background: radial-gradient(circle at center, #111726 0%, #080a10 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px 24px;
  box-sizing: border-box;
}

.preview-mode-switch {
  display: inline-flex;
  align-self: center;
  gap: 6px;
  background: rgba(18, 25, 38, 0.9);
  border: 1px solid #233047;
  border-radius: 9999px;
  padding: 4px;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.preview-mode-btn {
  background: transparent;
  border: none;
  border-radius: 9999px;
  padding: 6px 16px;
  color: #92a2ba;
  font-family: var(--font-brand);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preview-mode-btn:hover {
  color: #ffffff;
}

.preview-mode-btn.active {
  background: var(--primary-color);
  color: #080c14;
  box-shadow: 0 0 12px rgba(192, 255, 114, 0.3);
}

.preview-viewport-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 10px;
}

.theme-preview-card {
  width: 820px;
  max-width: 100%;
  border-radius: 18px;
  padding: 26px 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
  transition: all 0.2s ease;
}

/* Preview Mockup Internal Styles */
.prev-h2h-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 22px;
}

.prev-team-box {
  display: flex;
  flex-direction: column;
}

.prev-team-box.left {
  text-align: left;
}

.prev-team-box.right {
  text-align: right;
  align-items: flex-end;
}

.prev-team-name {
  font-family: var(--font-brand);
  font-size: 1.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prev-team-sub {
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 2px;
}

.prev-vs-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 0.95rem;
}

.prev-metric-row {
  margin-bottom: 14px;
}

.prev-metric-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 0.92rem;
}

.prev-metric-track {
  height: 9px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  display: flex;
  overflow: hidden;
}

.prev-metric-bar-left {
  height: 100%;
  border-radius: 6px 0 0 6px;
}

.prev-metric-bar-right {
  height: 100%;
  border-radius: 0 6px 6px 0;
}

/* Responsive Theme Customizer */
@media (max-width: 960px) {
  .stats-nav-tabs-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .stats-nav-tabs-group {
    width: 100%;
  }

  .stats-nav-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .btn-export-excel,
  .btn-export-full-csv {
    width: 100%;
    justify-content: center;
  }

  .png-fullscreen-page {
    overflow-y: auto !important;
  }

  .png-fullscreen-header {
    height: auto;
    padding: 12px 16px;
    flex-direction: column;
    gap: 10px;
  }

  .png-header-left, .png-header-right {
    width: 100%;
    justify-content: space-between;
  }

  .png-fullscreen-body {
    flex-direction: column;
    overflow: visible;
  }

  .png-sidebar-controls {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #1a2233;
  }

  .png-preview-workstation {
    min-height: 480px;
    padding: 16px;
  }
}
