/* --- Modernes & Professionelles Dark Theme --- */
:root {
  /* Eine ruhigere, professionelle Farbpalette */
  --bg-start: #0d1b2a;
  /* Tiefes Marineblau */
  --bg-end: #1b263b;
  /* Etwas helleres Schieferblau */
  --fg: #e0e1dd;
  /* Gebrochenes Weiß für bessere Lesbarkeit */
  --muted: #f0f5fac7;
  /* Helleres Graublau für bessere Lesbarkeit auf dunklem Grund */
  --accent: #415a77;
  /* Dezentes Blau für Ränder und Akzente */
  --accent-focus: #57cc99;
  /* Ein klares, aber nicht-neon Grün für Interaktion */
  --card-bg: rgba(27, 38, 59, 0.6);
  /* Semi-transparenter Kartenhintergrund */

  /* Dashboard Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  --gradient-info: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-warning: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-danger: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
  --gradient-dark: linear-gradient(90deg, #1a1a2e, #16213e);

  /* Theme Colors for Icon Boxes */
  --theme-blue-bg: #e3f2fd;
  --theme-blue-color: #1565c0;
  --theme-green-bg: #e8f5e9;
  --theme-green-color: #2e7d32;
  --theme-orange-bg: #fff3e0;
  --theme-orange-color: #ef6c00;
  --theme-purple-bg: #f3e5f5;
  --theme-purple-color: #7b1fa2;
  --theme-teal-bg: #e0f2f1;
  --theme-teal-color: #00695c;
  --theme-red-bg: #ffebee;
  --theme-red-color: #c62828;
  --theme-pink-bg: #fce4ec;
  --theme-pink-color: #ad1457;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  /* Subtiler Farbverlauf für Tiefe anstelle von Animation */
  background: linear-gradient(160deg, var(--bg-start), var(--bg-end)) no-repeat;
  min-height: 100vh;
  color: var(--fg);
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

a {
  color: var(--accent-focus);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: var(--fg);
  text-decoration: none;
}

/* --- Saubere und funktionale Navigation --- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  /* "Frosted Glass"-Effekt für eine moderne Optik */
  background: rgba(13, 27, 42, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg);
}

.navbar-brand i {
  color: var(--accent-focus);
  font-size: 1.4rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--fg);
}

.btn-nav {
  background: var(--accent-focus);
  color: var(--bg-start);
  border: 1px solid var(--accent-focus);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}

.btn-nav:hover {
  background: transparent;
  color: var(--accent-focus);
}

.container-fluid {
  max-width: 1400px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
}

h1,
h2,
h3 {
  margin: 0 0 1rem 0;
  line-height: 1.2;
  font-weight: 600;
  color: var(--fg);
}

/* --- NEU: Sicherstellen, dass Titel in Karten hell sind --- */
.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card .card-title {
  color: var(--fg);
}

/* --- Neu gestaltete Karten --- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  color: var(--fg);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--fg);
}

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

/* --- Modernisierte Tabellen --- */
table {
  width: 100%;
  border-collapse: separate;
  /* Erlaubt border-radius */
  border-spacing: 0;
  background: transparent;
  border: none;
}

th,
td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--accent);
  text-align: left;
}

th {
  color: var(--fg);
  font-weight: 600;
  background: rgba(27, 38, 59, 0.4);
  /* Header-Hintergrund */
}

/* Abwechselnde Zeilenfarben für bessere Lesbarkeit */
tbody tr:nth-child(even) {
  background-color: rgba(27, 38, 59, 0.2);
}

tbody tr:hover {
  background-color: rgba(65, 90, 119, 0.3);
}

/* Iframe-Dashboards */
iframe {
  width: 100%;
  height: 80vh;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--bg-start);
}

/* --- Sauberere Formulare --- */
/* KORREKTUR: Regel spezifischer machen, um das Profil-Layout nicht zu stören */
.form-stacked {
  display: grid;
  gap: 1rem;
  max-width: 420px;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  color: var(--fg);
  background: var(--bg-end);
  border: 1px solid var(--accent);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-focus);
  box-shadow: 0 0 0 3px rgba(87, 204, 153, 0.3);
}

button[type="submit"] {
  cursor: pointer;
  background: var(--accent-focus);
  color: var(--bg-start);
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  transition: filter 0.2s ease;
}

button[type="submit"]:hover {
  filter: brightness(1.1);
}


/* .bg-light {
  background-color: var(--card-bg) !important;
} */

/* ============================================ */
/* DASHBOARD COMPONENT STYLES */
/* ============================================ */

/* --- Stat Cards --- */
.dashboard-stat-card {
  background: var(--gradient-primary);
  color: white;
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  transition: transform 0.2s ease-in-out;
}

.dashboard-stat-card:hover {
  transform: translateY(-2px);
}

.dashboard-stat-card h3 {
  font-size: 2.2rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
  color: white;
}

.dashboard-stat-card p {
  margin-bottom: 0;
  opacity: 0.9;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Stat Card Variants */
.dashboard-stat-card--success {
  background: var(--gradient-success);
}

.dashboard-stat-card--info {
  background: var(--gradient-info);
}

.dashboard-stat-card--warning {
  background: var(--gradient-warning);
}

.dashboard-stat-card--danger {
  background: var(--gradient-danger);
}

/* --- Section Headers --- */
.dashboard-section-header {
  background: var(--gradient-dark);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px 12px 0 0;
  margin-top: 2rem;
}

.dashboard-section-header h2 {
  margin: 0;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
}

/* --- Dashboard Header (Dark Background) --- */
.dashboard-header .text-muted,
.dashboard-header .text-muted small,
.dashboard-header small.text-muted {
  color: rgba(255, 255, 255, 0.72) !important;
}

/* --- Dashboard Navigation --- */
.dashboard-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 0.75rem;
  flex-wrap: wrap;
}

.dashboard-nav-main,
.dashboard-nav-utility {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dashboard-nav-utility {
  margin-left: auto;
}

.dashboard-tab {
  white-space: nowrap;
  font-size: 0.82rem;
  line-height: 1.2;
  padding: 0.28rem 0.52rem;
  border-radius: 0.55rem;
  border-width: 1px;
  font-weight: 600;
}

.dashboard-tab-inactive {
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(94, 175, 255, 0.48);
  background-color: rgba(13, 110, 253, 0.08);
}

.dashboard-tab-inactive:hover,
.dashboard-tab-inactive:focus {
  color: #ffffff;
  border-color: rgba(143, 205, 255, 0.75);
  background-color: rgba(13, 110, 253, 0.16);
}

.dashboard-tab-active {
  color: #ffffff;
  border-color: rgba(160, 223, 255, 0.95);
  background-color: #0d6efd;
  box-shadow: 0 0 0 1px rgba(160, 223, 255, 0.5), 0 6px 18px rgba(13, 110, 253, 0.35);
}

.dashboard-tab-active:hover,
.dashboard-tab-active:focus {
  color: #ffffff;
  border-color: rgba(190, 235, 255, 1);
  background-color: #0b5ed7;
}

.dashboard-header-row {
  min-width: 0;
}

/* Legacy toolbar compatibility (older templates not migrated yet) */
.dashboard-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.dashboard-toolbar .btn,
.dashboard-toolbar .dropdown-toggle {
  white-space: nowrap;
}

@media (max-width: 576px) {
  .dashboard-nav-main,
  .dashboard-nav-utility,
  .dashboard-nav-utility .dropdown {
    width: 100%;
  }

  .dashboard-nav-main .dashboard-tab,
  .dashboard-nav-utility .dashboard-tab,
  .dashboard-nav-utility .dropdown-toggle {
    width: 100%;
    justify-content: center;
  }
}

/* --- Spotlight/Highlight Cards --- */
.dashboard-spotlight-card {
  border-left: 5px solid #667eea;
  padding: 1rem;
  background: #fdfdfd12;
  height: 100%;
  border-radius: 4px;
}

.dashboard-spotlight-card--success {
  border-left-color: #11998e;
}

.dashboard-spotlight-card--danger {
  border-left-color: #f5576c;
}

.dashboard-spotlight-card--info {
  border-left-color: #00f2fe;
}

/* --- Lucky/Unlucky Cards --- */
.dashboard-lucky-card {
  background: var(--gradient-success);
  color: white;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.5rem;
}

.dashboard-unlucky-card {
  background: var(--gradient-danger);
  color: white;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.5rem;
}

/* --- Icon Boxes --- */
.dashboard-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 1rem;
}

.dashboard-icon-box--blue {
  background-color: var(--theme-blue-bg);
  color: var(--theme-blue-color);
}

.dashboard-icon-box--green {
  background-color: var(--theme-green-bg);
  color: var(--theme-green-color);
}

.dashboard-icon-box--orange {
  background-color: var(--theme-orange-bg);
  color: var(--theme-orange-color);
}

.dashboard-icon-box--purple {
  background-color: var(--theme-purple-bg);
  color: var(--theme-purple-color);
}

.dashboard-icon-box--teal {
  background-color: var(--theme-teal-bg);
  color: var(--theme-teal-color);
}

.dashboard-icon-box--red {
  background-color: var(--theme-red-bg);
  color: var(--theme-red-color);
}

.dashboard-icon-box--pink {
  background-color: var(--theme-pink-bg);
  color: var(--theme-pink-color);
}

/* --- Badge System --- */
.badge-dashboard-soft {
  padding: 0.5em 0.8em;
  font-weight: 600;
  border-radius: 6px;
}

.badge-dashboard-soft--success {
  background-color: #d1fae5;
  color: #065f46;
}

.badge-dashboard-soft--warning {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-dashboard-soft--danger {
  background-color: #fee2e2;
  color: #b91c1c;
}

.badge-dashboard-soft--info {
  background-color: #dbeafe;
  color: #1e40af;
}

.badge-dashboard-soft--secondary {
  background-color: #f3f4f6;
  color: #4b5563;
}

/* --- Trend Indicators --- */
.dashboard-trend-up {
  color: #28a745;
}

.dashboard-trend-down {
  color: #dc3545;
}

.dashboard-trend-neutral {
  color: #6c757d;
}

/* --- Tip Type Badges --- */
.dashboard-tip-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.85rem;
}

.dashboard-tip-badge--spektakel {
  background: #ffc107;
  color: #000;
}

.dashboard-tip-badge--minimalist {
  background: #17a2b8;
  color: #fff;
}

.dashboard-tip-badge--neutral {
  background: #6c757d;
  color: #fff;
}

.dashboard-season-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.85rem;
  background: #17a2b8;
  color: #fff;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.dashboard-top3-card {
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  height: 100%;
}

.dashboard-top3-card h6 {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.dashboard-top3-card .table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.45rem;
  font-size: 0.82rem;
}

.dashboard-top3-card .table tr:last-child td {
  border-bottom: none;
}

/* --- Table Enhancements --- */
.dashboard-table-responsive {
  max-height: 600px;
  overflow-y: auto;
}

.dashboard-sticky-header thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.dashboard-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8f9fa;
}

.dashboard-table .player-row:hover {
  background-color: rgba(102, 126, 234, 0.05);
}

/* --- Charts --- */
.dashboard-chart--tall {
  min-height: 550px;
}

.dashboard-chart--medium {
  min-height: 420px;
}

/* --- Heatmap --- */
.dashboard-heatmap-season {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 0.5rem 0.2rem;
}

.dashboard-heatmap-cell {
  background: var(--heat-color);
  color: #fff;
  font-weight: 700;
}

/* --- Bias Indicators --- */
.dashboard-bias-positive {
  background-color: rgba(40, 167, 69, 0.2);
}

.dashboard-bias-negative {
  background-color: rgba(220, 53, 69, 0.2);
}

/* --- Rank Diff Indicators --- */
.dashboard-rank-diff {
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.dashboard-rank-diff--better {
  background: #d4edda;
  color: #155724;
}

.dashboard-rank-diff--worse {
  background: #f8d7da;
  color: #721c24;
}

.dashboard-rank-diff--same {
  background: #e9ecef;
  color: #6c757d;
}

/* --- Admin Dashboard Specific --- */
.dashboard-kpi-card {
  border: none;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  height: 100%;
  position: relative;
}

.dashboard-kpi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.dashboard-metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.2;
}

.dashboard-metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d;
}

.dashboard-metric-sub {
  font-size: 0.8rem;
  color: #9ca3af;
}

.dashboard-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #adb5bd;
  margin-bottom: 1rem;
  display: block;
}

.dashboard-custom-table thead th {
  background-color: #f8f9fa;
  color: #6c757d;
  font-weight: 600;
  font-size: 0.85rem;
  border-bottom: 2px solid #e9ecef;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.dashboard-custom-table tbody td {
  vertical-align: middle;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f3f5;
  font-size: 0.95rem;
}

.dashboard-custom-table tbody tr:last-child td {
  border-bottom: none;
}

.dashboard-custom-table tbody tr:hover {
  background-color: #f8f9fa;
}

/* --- Helpers --- */
.dashboard-icon-box--sm {
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
}

.dashboard-avatar-circle {
  width: 32px;
  height: 32px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* --- Landing Page Specific Styles --- */
.lp-body {
  overflow-x: hidden;
}

.lp-hero {
  padding: 8rem 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 80vh;
}

.lp-hero-content {
  flex: 1;
}

.lp-hero-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lp-hero-visual img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--accent);
}

/* Glassmorphism Mockup Overlay Effect */
.lp-mockup-tabs {
  position: absolute;
  top: -20px;
  left: -20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lp-mockup-tabs span.active {
  color: var(--accent-focus);
}

.lp-headline {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #ffffff, var(--muted));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lp-subheadline {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  line-height: 1.6;
}

.lp-cta-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.lp-btn-primary {
  padding: 1rem 2.5rem;
  background: var(--accent-focus);
  color: var(--bg-start);
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(87, 204, 153, 0.3);
}

.lp-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(87, 204, 153, 0.5);
  filter: brightness(1.1);
}

.lp-btn-secondary {
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--accent);
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.lp-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--fg);
}

.lp-trust-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.lp-trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lp-trust-item i {
  color: var(--accent-focus);
}

/* Features Section */
.lp-section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.lp-section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
}

.lp-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.lp-feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.3s ease;
}

.lp-feature-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-10px);
  border-color: var(--accent-focus);
}

.lp-feature-icon {
  width: 50px;
  height: 50px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--accent-focus);
}

/* Steps Section */
.lp-steps {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
}

.lp-step {
  flex: 1;
  text-align: center;
}

.lp-step-number {
  width: 40px;
  height: 40px;
  background: var(--accent-focus);
  color: var(--bg-start);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .lp-hero {
    flex-direction: column;
    text-align: center;
    padding-top: 4rem;
  }

  .lp-hero-content {
    order: 2;
  }

  .lp-hero-visual {
    order: 1;
    margin-bottom: 2rem;
  }

  .lp-subheadline {
    margin-left: auto;
    margin-right: auto;
  }

  .lp-cta-group {
    justify-content: center;
  }

  .lp-trust-signals {
    justify-content: center;
  }

  .lp-mockup-tabs {
    display: none;
  }
}

@media (max-width: 768px) {
  .lp-headline {
    font-size: 2.5rem;
  }

  .lp-steps {
    flex-direction: column;
  }
}

/* --- All Competitions Overview --- */
.competition-overview-list {
  background: rgba(255, 255, 255, 0.02);
}

.competition-list-item {
  background: var(--card-bg);
  transition: all 0.2s ease;
}

.competition-list-item--spacious {
  padding: 1.5rem 1.75rem !important;
}

.competition-list-item:hover {
  background: rgba(255, 255, 255, 0.03) !important;
  transform: scale(1.005);
  z-index: 10;
}

.competition-icon-box-compact {
  width: 48px;
  height: 48px;
  min-width: 48px;
}

.competition-title {
  color: var(--fg);
}

.competition-meta-item {
  color: var(--fg);
  opacity: 0.7;
  line-height: 1.5;
}

.competition-meta-row {
  row-gap: 0.55rem;
}

.competition-empty-icon {
  font-size: 4rem;
}

.actions-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.actions-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.6rem;
  row-gap: 0.3rem;
}

.actions-row-label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.75;
  color: var(--fg);
  white-space: nowrap;
  text-align: right;
}

.actions-row-buttons {
  justify-content: flex-end;
}

.actions-row-buttons .btn {
  min-width: 0;
  font-size: 0.8rem;
  line-height: 1.2;
  padding: 0.25rem 0.55rem !important;
  white-space: nowrap;
}

/* --- Start Crawl Layout --- */
.start-crawl-card .card-header {
  padding-bottom: 1rem;
}

.start-crawl-competition-list {
  margin-bottom: 1.5rem !important;
}

.start-crawl-competition-row {
  padding: 0.95rem 0.1rem;
  gap: 0.9rem;
}

.start-crawl-competition-name {
  font-weight: 600;
  line-height: 1.35;
}

.start-crawl-competition-badge {
  padding: 0.5rem 0.8rem;
  text-align: center;
  white-space: normal;
}

.start-crawl-refresh-section {
  padding-top: 1.5rem !important;
}

.start-crawl-checkbox-group {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.start-crawl-checkbox-item {
  margin-bottom: 0 !important;
  padding: 0.8rem 0.95rem 0.8rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
}

.start-crawl-checkbox-item .form-check-input {
  margin-top: 0.2rem;
  margin-left: -1.55rem;
}

.start-crawl-checkbox-item .form-check-label {
  display: block;
  line-height: 1.4;
}

@media (max-width: 991.98px) {
  .actions-row {
    grid-template-columns: 1fr;
  }

  .actions-row-label {
    text-align: left;
  }
}

@media (max-width: 767.98px) {
  .competition-list-item--spacious {
    padding: 1.15rem 1rem !important;
  }

  .start-crawl-competition-row {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .start-crawl-competition-badge {
    align-self: flex-start;
  }

  .start-crawl-checkbox-item {
    padding: 0.75rem 0.85rem 0.75rem 2.35rem;
  }
}

/* --- Auth Templates --- */
.auth-page {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.auth-card {
  border-radius: 12px;
  overflow: hidden;
}

.auth-card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.auth-card-header--primary {
  background: var(--gradient-primary);
  color: #fff;
}

.auth-card-header--success {
  background: var(--gradient-success);
  color: #fff;
}

.auth-card-header--secondary {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
  color: #fff;
}

.auth-card-body {
  color: var(--fg);
}

.auth-card-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.auth-helper-text {
  color: var(--muted);
  line-height: 1.45;
}

.auth-primary-cta {
  font-weight: 600;
}

.auth-secondary-link {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--muted);
}

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

.auth-icon-xl {
  font-size: 4rem;
}

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

/* --- Crawl Modal --- */
.crawl-page-alert-host {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2000;
  width: min(440px, calc(100vw - 2rem));
}

.crawl-row {
  padding: 0.4rem 0.2rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.crawl-row:last-child {
  border-bottom: none;
}

.crawl-title {
  gap: 0.75rem;
}

.crawl-meta {
  white-space: nowrap;
}

.crawl-progress {
  height: 18px;
  margin: 0.1rem 0 0.15rem;
}

.crawl-insight {
  padding: 0 0.15rem;
  font-size: 0.82rem;
  line-height: 1.35;
}

.crawl-insight--muted {
  color: rgba(255, 255, 255, 0.72);
}

.crawl-insight--success {
  color: #98f5bc;
}

.crawl-insight--error {
  color: #ff9a9a;
}

/* ============================================ */
/* ACCESSIBLE DESIGN UPDATE */
/* ============================================ */
:root {
  --page-bg: #f5f7f2;
  --surface: #ffffff;
  --surface-subtle: #eef3ed;
  --surface-strong: #10231c;
  --surface-ink: #071610;
  --text: #10231c;
  --text-muted: #51615a;
  --line: #cbd7cf;
  --line-strong: #8fa297;
  --brand: #0b6b45;
  --brand-strong: #084d34;
  --brand-soft: #dceee5;
  --accent-gold: #b7791f;
  --accent-cyan: #0f6f7c;
  --danger: #b42318;
  --danger-soft: #fde7e4;
  --warning: #8a5a00;
  --warning-soft: #fff4cc;
  --success: #0f6848;
  --success-soft: #dff3e8;
  --focus: #f0b429;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(7, 22, 16, 0.08);
  --shadow-md: 0 14px 34px rgba(7, 22, 16, 0.12);
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body {
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-sans);
}

body {
  min-height: 100vh;
}

body.lp-body {
  background: var(--surface-strong);
  color: #f8fbf7;
}

a {
  color: var(--brand);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-strong);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: none;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 3000;
  transform: translateY(-150%);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--focus);
  color: var(--surface-ink);
  font-weight: 800;
  transition: transform 0.16s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface-strong);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: none;
}

.site-nav,
nav.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  background: var(--surface-strong);
  border: 0;
  position: static;
  backdrop-filter: none;
}

.navbar-brand {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0;
}

.navbar-brand:hover {
  color: #ffffff;
}

.navbar-brand i {
  color: var(--focus);
}

.nav-links {
  gap: 0.45rem;
}

.nav-links a,
.nav-inline-form .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0.55rem 0.8rem;
  color: rgba(255, 255, 255, 0.88);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #ffffff;
}

.nav-inline-form {
  display: inline-flex;
  margin: 0;
}

.nav-link-danger {
  color: #ffd6d1 !important;
}

.btn,
.btn-nav,
.lp-btn-primary,
.lp-btn-secondary {
  border-radius: var(--radius);
  min-height: 44px;
  font-weight: 750;
  letter-spacing: 0;
  text-decoration: none;
}

.btn-primary,
.lp-btn-primary,
.btn-nav {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.btn-primary:hover,
.lp-btn-primary:hover,
.btn-nav:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: #ffffff;
  filter: none;
  transform: none;
  box-shadow: none;
}

.btn-outline-secondary,
.lp-btn-secondary {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.lp-body .lp-btn-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.72);
}

.btn-outline-secondary:hover,
.lp-btn-secondary:hover {
  background: var(--surface-subtle);
  color: var(--text);
  border-color: var(--text);
}

.container-fluid {
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 2rem);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  justify-items: center;
  max-width: none;
  margin-top: clamp(2rem, 4vw, 4rem);
  padding: 1.25rem clamp(1rem, 3vw, 2rem);
  background: #071610;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.78);
}

.site-footer p {
  margin: 0;
}

.lp-body .site-footer {
  margin-top: 0;
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  padding: 0;
  background: transparent;
  border: 0;
  position: static;
  backdrop-filter: none;
}

.legal-footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  padding: 0.35rem 0.25rem;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
  text-decoration: none;
}

.legal-footer-links a:hover,
.legal-footer-links a:focus-visible {
  color: #ffffff;
  background: transparent;
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.28em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
  letter-spacing: 0;
}

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

.card,
.list-group-item,
.modal-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.card:hover,
.dashboard-stat-card:hover,
.dashboard-kpi-card:hover,
.competition-list-item:hover,
.lp-feature-card:hover {
  transform: none;
}

.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card .card-title {
  color: var(--text);
}

.card-header,
.auth-card-header,
.auth-card-footer {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

input,
select,
textarea,
.form-control,
.form-select {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  min-height: 44px;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-select:focus {
  border-color: var(--brand);
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: none;
}

.invalid-feedback,
.text-danger {
  color: var(--danger) !important;
}

.alert-info {
  background: #e7f6f8;
  border-color: #9acdd4;
  color: #11383f;
}

.alert-success {
  background: var(--success-soft);
  border-color: #96d2b4;
  color: #073d2a;
}

.alert-warning {
  background: var(--warning-soft);
  border-color: #e0ba4e;
  color: #4f3500;
}

.alert-danger {
  background: var(--danger-soft);
  border-color: #efaaa2;
  color: #65150f;
}

table,
.table {
  color: var(--text);
  background: transparent;
}

th,
td,
.table > :not(caption) > * > * {
  border-color: var(--line);
}

th,
.table thead th {
  background: var(--surface-subtle);
  color: var(--text);
  font-weight: 750;
}

tbody tr:nth-child(even) {
  background: rgba(238, 243, 237, 0.55);
}

tbody tr:hover {
  background: #e5efe8;
}

.dropdown-menu {
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.dropdown-item.active,
.dropdown-item:active {
  background: var(--brand);
}

/* Public landing */
.lp-hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(20rem, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 5vw, 4rem) clamp(3rem, 7vw, 5rem);
  overflow: hidden;
  max-width: none;
  margin: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(240, 180, 41, 0.14), transparent 24rem),
    linear-gradient(135deg, #071610 0%, #10231c 58%, #183629 100%);
}

.lp-hero::after {
  content: none;
}

.lp-hero-media {
  margin: 0;
  min-width: 0;
}

.lp-hero-media img {
  width: 100%;
  height: auto;
  max-height: min(64svh, 46rem);
  object-fit: contain;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.lp-hero-content {
  max-width: 680px;
}

.lp-kicker,
.section-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lp-headline {
  color: #ffffff;
  font-size: clamp(3rem, 8vw, 6.75rem);
  line-height: 0.92;
  font-weight: 900;
  margin-bottom: 1.25rem;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.lp-subheadline {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 56ch;
}

.lp-cta-group {
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.lp-btn-primary,
.lp-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  box-shadow: none;
}

.lp-trust-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.84);
}

.lp-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lp-trust-item i,
.lp-feature-icon {
  color: var(--focus);
}

.lp-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem);
}

.lp-section-muted {
  max-width: none;
  background: #f3f6ef;
  color: var(--text);
}

.lp-section-muted > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.lp-section-intro {
  max-width: 720px;
  margin-bottom: 2rem;
}

.lp-section-title {
  color: inherit;
  text-align: left;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  margin: 0;
}

.lp-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.lp-feature-card {
  background: var(--surface);
  border: 0;
  border-radius: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  color: var(--text);
}

.lp-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand);
}

.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 0;
  list-style: none;
}

.lp-step {
  text-align: left;
  border-top: 3px solid var(--brand);
  padding-top: 1rem;
}

.lp-step-number {
  width: 36px;
  height: 36px;
  margin: 0 0 1rem;
  border-radius: 999px;
  background: var(--surface-strong);
  color: #ffffff;
}

.lp-project-note {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.lp-project-copy {
  max-width: 720px;
}

/* Legal pages */
.legal-page {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.legal-page-header {
  margin-bottom: 2rem;
}

.legal-page-header h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 850;
}

.legal-content-card {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.legal-contact-form {
  max-width: 780px;
}

/* Dashboard surfaces */
.dashboard-header {
  padding: 1rem 0 0.35rem;
}

.dashboard-header .text-muted,
.dashboard-header .text-muted small,
.dashboard-header small.text-muted {
  color: var(--text-muted) !important;
}

.dashboard-nav-row {
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.dashboard-tab {
  min-height: 40px;
  border-radius: 7px;
  font-size: 0.9rem;
}

.dashboard-tab-inactive {
  color: var(--text);
  border-color: transparent;
  background: transparent;
}

.dashboard-tab-inactive:hover,
.dashboard-tab-inactive:focus {
  color: var(--text);
  border-color: var(--line);
  background: var(--surface-subtle);
}

.dashboard-tab-active {
  color: #ffffff;
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: none;
}

.dashboard-tab-active:hover,
.dashboard-tab-active:focus {
  color: #ffffff;
  background: var(--brand-strong);
  border-color: var(--brand-strong);
}

.dashboard-section-header {
  background: transparent;
  color: var(--text);
  padding: 2rem 0 0.75rem;
  border-radius: 0;
  margin-top: 1rem;
  border-bottom: 1px solid var(--line);
}

.dashboard-section-header h2 {
  color: var(--text);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.dashboard-stat-card {
  background: var(--surface-strong);
  color: #ffffff;
  border-radius: var(--radius);
  min-height: 150px;
  text-align: left;
  align-items: flex-start;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.dashboard-stat-card h3 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.dashboard-stat-card p {
  opacity: 1;
  color: rgba(255, 255, 255, 0.82);
  text-transform: none;
  letter-spacing: 0;
}

.dashboard-stat-card--success {
  background: #0f6848;
}

.dashboard-stat-card--info {
  background: #0f5261;
}

.dashboard-stat-card--warning {
  background: #7a5300;
}

.dashboard-stat-card--danger {
  background: var(--danger);
}

.dashboard-spotlight-card,
.dashboard-top3-card,
.dashboard-kpi-card,
.competition-list-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.dashboard-spotlight-card {
  border-left: 4px solid var(--brand);
}

.dashboard-spotlight-card--success {
  border-left-color: var(--success);
}

.dashboard-spotlight-card--danger {
  border-left-color: var(--danger);
}

.dashboard-spotlight-card--info {
  border-left-color: var(--accent-cyan);
}

.dashboard-kpi-card {
  color: var(--text);
}

.dashboard-metric-value {
  color: var(--text);
}

.dashboard-metric-label,
.dashboard-section-title {
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.dashboard-icon-box {
  border-radius: var(--radius);
}

.dashboard-lucky-card,
.dashboard-unlucky-card {
  border-radius: var(--radius);
  color: #ffffff;
}

.dashboard-lucky-card {
  background: var(--success);
}

.dashboard-unlucky-card {
  background: var(--danger);
}

.dashboard-season-badge,
.dashboard-tip-badge {
  border-radius: 999px;
}

.badge-soft-success,
.badge-soft-info,
.badge-soft-secondary,
.badge-soft-danger,
.badge-soft-warning {
  border-radius: 999px;
  font-weight: 800;
  padding: 0.35rem 0.6rem;
}

.badge-soft-success {
  background: var(--success-soft);
  color: #073d2a;
}

.badge-soft-info {
  background: #dff5f8;
  color: #11383f;
}

.badge-soft-secondary {
  background: var(--surface-subtle);
  color: var(--text-muted);
}

.badge-soft-danger {
  background: var(--danger-soft);
  color: #65150f;
}

.badge-soft-warning {
  background: var(--warning-soft);
  color: #4f3500;
}

.dashboard-icon-box--info {
  background-color: #dff5f8;
  color: #11383f;
}

.section-title {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.text-purple {
  color: #614096 !important;
}

.trend-up,
.dashboard-trend-up {
  color: var(--success);
}

.trend-down,
.dashboard-trend-down {
  color: var(--danger);
}

.competition-overview-list {
  background: transparent;
  border-radius: var(--radius) !important;
}

.competition-title {
  color: var(--text);
}

.competition-meta-item,
.actions-row-label {
  color: var(--text-muted);
  opacity: 1;
}

.actions-group {
  width: min(100%, 26rem);
  margin-left: auto;
  gap: 0.75rem;
}

.actions-row {
  grid-template-columns: 7.5rem minmax(0, 1fr);
  column-gap: 0.85rem;
  align-items: stretch;
}

.actions-row-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

.actions-row-buttons {
  display: grid !important;
  grid-template-columns: minmax(7.25rem, 1fr) minmax(10.5rem, 1fr);
  gap: 0.55rem !important;
  justify-content: stretch;
}

.actions-row-buttons .btn {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.75rem !important;
}

.auth-card-header--primary,
.auth-card-header--success,
.auth-card-header--secondary {
  background: var(--surface-strong);
  color: #ffffff;
}

.auth-card-header h1,
.auth-card-header h2,
.auth-card-header h3,
.auth-card-header h4,
.auth-card-header h5,
.auth-card-header h6,
.auth-card-header .card-title {
  color: #ffffff;
}

.auth-helper-text,
.auth-secondary-link {
  color: var(--text-muted);
}

input[type="checkbox"],
input[type="radio"],
.form-check-input {
  width: 1rem;
  height: 1rem;
  min-height: 1rem;
  padding: 0;
  flex: 0 0 auto;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding-left: 0;
}

.form-check .form-check-input {
  float: none;
  margin-left: 0;
  margin-top: 0;
}

.form-check-label {
  color: var(--text);
}

.profile-integration-card {
  background: var(--surface-subtle);
}

.status-list-item {
  background: var(--surface);
}

.admin-page-title {
  color: var(--text);
  font-weight: 850;
}

.dashboard-progress {
  width: 100%;
  height: 0.55rem;
  accent-color: var(--brand);
}

.admin-notes-cell,
.admin-rank-cell {
  max-width: 12.5rem;
}

.admin-order-cell {
  width: 3.125rem;
}

.admin-order-badge {
  width: 1.5rem;
  height: 1.5rem;
}

.chart-frame {
  position: relative;
  width: 100%;
}

.chart-frame--xl {
  height: 500px;
}

.chart-frame--lg {
  height: 400px;
}

.chart-frame--md {
  height: 350px;
}

.chart-frame--sm {
  height: 300px;
}

.chart-frame--xs {
  height: 250px;
}

.chart-frame--mini {
  height: 210px;
}

.plot-frame {
  min-height: 400px;
}

.plot-frame--lg {
  min-height: 500px;
}

.scroll-panel {
  max-height: 400px;
  overflow: auto;
}

.tendency-summary {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
}

.tendency-summary--home {
  border-left: 4px solid var(--brand);
}

.tendency-summary--draw {
  border-left: 4px solid var(--accent-gold);
}

.tendency-summary--away {
  border-left: 4px solid var(--danger);
}

.dashboard-heatmap-season {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 0.5rem 0.2rem;
  font-size: 0.75rem;
}

.dashboard-heatmap-cell {
  color: #ffffff;
  font-weight: 800;
  box-shadow: none !important;
}

.heat-level-0 {
  --bs-table-bg: hsl(0, 70%, 45%);
  --bs-table-accent-bg: hsl(0, 70%, 45%);
  background-color: hsl(0, 70%, 45%) !important;
}

.heat-level-1 {
  --bs-table-bg: hsl(12, 72%, 45%);
  --bs-table-accent-bg: hsl(12, 72%, 45%);
  background-color: hsl(12, 72%, 45%) !important;
}

.heat-level-2 {
  --bs-table-bg: hsl(28, 74%, 43%);
  --bs-table-accent-bg: hsl(28, 74%, 43%);
  background-color: hsl(28, 74%, 43%) !important;
}

.heat-level-3 {
  --bs-table-bg: hsl(48, 78%, 38%);
  --bs-table-accent-bg: hsl(48, 78%, 38%);
  background-color: hsl(48, 78%, 38%) !important;
}

.heat-level-4 {
  --bs-table-bg: hsl(72, 68%, 34%);
  --bs-table-accent-bg: hsl(72, 68%, 34%);
  background-color: hsl(72, 68%, 34%) !important;
}

.heat-level-5 {
  --bs-table-bg: hsl(96, 62%, 34%);
  --bs-table-accent-bg: hsl(96, 62%, 34%);
  background-color: hsl(96, 62%, 34%) !important;
}

.heat-level-6 {
  --bs-table-bg: hsl(120, 58%, 32%);
  --bs-table-accent-bg: hsl(120, 58%, 32%);
  background-color: hsl(120, 58%, 32%) !important;
}

.dashboard-bias-positive,
.bias-positive {
  background-color: #e4f4ea;
}

.dashboard-bias-negative,
.bias-negative {
  background-color: #fde7e4;
}

.dashboard-rank-diff,
.rank-diff {
  font-size: 0.8rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 800;
}

.dashboard-rank-diff--better,
.rank-better {
  background: var(--success-soft);
  color: #073d2a;
}

.dashboard-rank-diff--worse,
.rank-worse {
  background: var(--danger-soft);
  color: #65150f;
}

.dashboard-rank-diff--same,
.rank-same {
  background: var(--surface-subtle);
  color: var(--text-muted);
}

.tip-type-badge,
.tip-type-spektakel,
.tip-type-minimalist,
.tip-type-neutral {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-weight: 800;
}

.tip-type-spektakel {
  background: var(--warning-soft);
  color: #4f3500;
}

.tip-type-minimalist {
  background: #dff5f8;
  color: #11383f;
}

.tip-type-neutral {
  background: var(--surface-subtle);
  color: var(--text);
}

.progress-value-0 { width: 0%; }
.progress-value-5 { width: 5%; }
.progress-value-10 { width: 10%; }
.progress-value-15 { width: 15%; }
.progress-value-20 { width: 20%; }
.progress-value-25 { width: 25%; }
.progress-value-30 { width: 30%; }
.progress-value-35 { width: 35%; }
.progress-value-40 { width: 40%; }
.progress-value-45 { width: 45%; }
.progress-value-50 { width: 50%; }
.progress-value-55 { width: 55%; }
.progress-value-60 { width: 60%; }
.progress-value-65 { width: 65%; }
.progress-value-70 { width: 70%; }
.progress-value-75 { width: 75%; }
.progress-value-80 { width: 80%; }
.progress-value-85 { width: 85%; }
.progress-value-90 { width: 90%; }
.progress-value-95 { width: 95%; }
.progress-value-100 { width: 100%; }

@media (max-width: 900px) {
  .site-nav,
  nav.site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    align-items: stretch;
    flex-wrap: wrap;
  }

  .nav-links a,
  .nav-inline-form,
  .nav-inline-form .btn {
    flex: 1 1 auto;
  }

  .lp-feature-grid,
  .lp-steps {
    grid-template-columns: 1fr;
  }

  .lp-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .lp-hero-media {
    order: -1;
  }

  .lp-hero-media img {
    max-height: none;
  }

  .lp-project-note {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .container-fluid {
    padding: 1rem;
  }

  .lp-hero {
    min-height: auto;
    padding-top: 5rem;
  }

  .lp-cta-group,
  .lp-cta-group .btn {
    width: 100%;
  }

  .dashboard-nav-row {
    padding: 0.75rem;
  }

  .actions-group {
    width: 100%;
  }

  .actions-row {
    grid-template-columns: 1fr;
    row-gap: 0.45rem;
  }

  .actions-row-buttons {
    grid-template-columns: 1fr;
  }

  .actions-row-buttons .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
