:root {
  --bg-page: hsl(44, 33%, 96%);
  --bg-surface: hsl(40, 40%, 99%);
  --bg-elevated: hsl(42, 25%, 94%);
  --pine-900: hsl(154, 48%, 13%);
  --pine-800: hsl(153, 44%, 18%);
  --pine-700: hsl(152, 40%, 25%);
  --pine-100: hsl(148, 35%, 92%);
  --gold-600: hsl(39, 70%, 38%);
  --gold-500: hsl(41, 78%, 46%);
  --gold-100: hsl(43, 80%, 92%);
  --text-primary: hsl(205, 28%, 14%);
  --text-secondary: hsl(205, 16%, 36%);
  --text-muted: hsl(205, 12%, 50%);
  --border-subtle: hsl(40, 18%, 85%);
  --border-strong: hsl(150, 18%, 74%);

  /* Semantic Qualification Row Colors (inspired by Quali Iffeldorf sheet) */
  --row-qualified-bg: hsl(138, 46%, 92%);
  --row-qualified-hover: hsl(138, 48%, 88%);
  --row-qualified-text: hsl(146, 58%, 18%);

  --row-reserve-bg: hsl(28, 76%, 93%);
  --row-reserve-hover: hsl(28, 76%, 89%);
  --row-reserve-text: hsl(24, 65%, 24%);

  --row-unavailable-bg: hsl(4, 72%, 94%);
  --row-unavailable-hover: hsl(4, 72%, 90%);
  --row-unavailable-text: hsl(4, 66%, 28%);

  --shadow-sm: 0 2px 6px rgba(16, 38, 26, 0.05);
  --shadow-md: 0 8px 24px rgba(16, 38, 26, 0.08);
  --shadow-lg: 0 18px 42px rgba(16, 38, 26, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden {
  display: none !important;
}

/* Topbar */
.topbar {
  background: var(--pine-900);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.club-crest {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--gold-500), var(--gold-600));
  color: var(--pine-900);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.brand-eyebrow {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(43, 76%, 76%);
  font-weight: 600;
}

.brand-heading {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 0.85rem;
  color: #ffffff;
}

.user-role-tag {
  background: var(--gold-500);
  color: var(--pine-900);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  text-transform: uppercase;
}

/* Main Container */
.main-container {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
  flex: 1;
}

/* Hero Banner */
.gameday-banner {
  background: linear-gradient(135deg, var(--pine-800), var(--pine-900));
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.gameday-banner-left {
  flex: 1;
  min-width: 280px;
}

.gameday-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.gameday-rule-hint {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
}

.gameday-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.gameday-title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gameday-select {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 600;
}

.gameday-select option {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.gameday-facts {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.92);
}

.fact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.09);
  padding: 0.28rem 0.68rem;
  border-radius: 6px;
  font-weight: 500;
}

.gameday-banner-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.quali-spot-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.2rem;
  text-align: center;
  min-width: 155px;
}

.quali-spot-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: hsl(43, 90%, 68%);
  line-height: 1.1;
}

.quali-spot-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.quali-spot-sub {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.15rem;
}

.hero-quick-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  gap: 0.45rem;
  border-bottom: 2px solid var(--border-subtle);
  margin-bottom: 1.4rem;
  overflow-x: auto;
  padding-bottom: 2px;
}

.nav-tab {
  appearance: none;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
  position: relative;
}

.nav-tab:hover {
  background: var(--bg-elevated);
  color: var(--pine-800);
}

.nav-tab.active {
  color: var(--pine-900);
  background: var(--bg-surface);
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--pine-700);
}

/* Panels & Headers */
.tab-panel {
  animation: fadeIn 0.18s ease-out;
}

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

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.panel-title {
  margin: 0 0 0.25rem 0;
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--pine-900);
}

.panel-subtitle {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 78ch;
}

.panel-toolbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.toolbar-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Legend Bar */
.legend-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.dot-qualified { background: var(--row-qualified-bg); }
.dot-reserve { background: var(--row-reserve-bg); }
.dot-unavailable { background: var(--row-unavailable-bg); }

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-sm);
}

.kpi-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
}

.kpi-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--pine-900);
  margin-top: 0.2rem;
}

.kpi-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* Data Tables */
.table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
  width: 100%;
}

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

.data-table thead th {
  background: var(--bg-elevated);
  color: var(--pine-900);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.75rem 0.85rem;
  border-bottom: 2px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

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

.data-table tbody tr:hover {
  background-color: rgba(23, 66, 46, 0.03);
}

.num-col {
  text-align: center !important;
  font-family: 'JetBrains Mono', monospace;
}

.actions-col {
  text-align: right !important;
  white-space: nowrap;
}

/* Classic Qualification Row Highlighting (from Quali Iffeldorf PDF) */
.quali-row-qualified {
  background-color: var(--row-qualified-bg);
}
.quali-row-qualified:hover {
  background-color: var(--row-qualified-hover) !important;
}

.quali-row-reserve {
  background-color: var(--row-reserve-bg);
}
.quali-row-reserve:hover {
  background-color: var(--row-reserve-hover) !important;
}

.quali-row-unavailable {
  background-color: var(--row-unavailable-bg);
}
.quali-row-unavailable:hover {
  background-color: var(--row-unavailable-hover) !important;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 42px;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.88rem;
}

.holes-mini {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-muted);
}

.gesamt-cell {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 1rem;
  color: var(--pine-900);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-gold {
  background: var(--gold-500);
  color: var(--pine-900);
}

.badge-qualified {
  background: hsl(144, 55%, 24%);
  color: #ffffff;
}

.badge-captain {
  background: hsl(156, 62%, 18%);
  color: hsl(43, 95%, 74%);
}

.badge-reserve {
  background: hsl(30, 75%, 34%);
  color: #ffffff;
}

.badge-unavailable {
  background: hsl(4, 68%, 38%);
  color: #ffffff;
}

.badge-caddy {
  background: hsl(215, 42%, 34%);
  color: #ffffff;
}

.badge-neutral {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* Buttons & Controls */
.btn {
  appearance: none;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: transform 0.1s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 0.3rem 0.62rem;
  font-size: 0.78rem;
}

.btn-primary {
  background: var(--pine-800);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--pine-700);
}

.btn-gold {
  background: var(--gold-500);
  color: var(--pine-900);
  font-weight: 700;
}
.btn-gold:hover {
  background: hsl(41, 82%, 52%);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}
.btn-secondary:hover {
  background: var(--bg-elevated);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-danger {
  background: hsl(4, 72%, 94%);
  color: hsl(4, 70%, 34%);
  border-color: hsl(4, 60%, 82%);
}
.btn-danger:hover {
  background: hsl(4, 72%, 88%);
}

.select-control,
.input-control,
.textarea-control {
  font-family: inherit;
  font-size: 0.88rem;
  padding: 0.48rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
}

.input-control:focus,
.select-control:focus,
.textarea-control:focus {
  outline: 2px solid var(--pine-700);
  outline-offset: 1px;
}

/* Split Grid for Game Days & Team */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.5rem;
}

.gamedays-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.gameday-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.gameday-card.active-focus {
  border: 2px solid var(--pine-700);
  background: hsl(146, 35%, 97%);
}

.gameday-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.gameday-card-title {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--pine-900);
}

.gameday-card-meta {
  font-size: 0.84rem;
  color: var(--text-secondary);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.gameday-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 26, 19, 0.58);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
}

.modal-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
}

.modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--pine-900);
}

.modal-close-btn {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.modal-body {
  padding: 1.25rem;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-help {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-subtle);
}


/* Toasts */
.toast-region {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 120;
}

.toast-item {
  background: var(--pine-900);
  color: #ffffff;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-size: 0.88rem;
  font-weight: 600;
  border-left: 4px solid var(--gold-500);
}

.toast-item.toast-error {
  background: hsl(4, 68%, 26%);
  border-left-color: hsl(4, 85%, 65%);
}

/* Unauthenticated Login Screen */
.login-view-card {
  max-width: 460px;
  margin: 3.5rem auto 4rem auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-md);
}

.login-box-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.login-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.club-crest-lg {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--gold-600), var(--gold-400));
  color: var(--pine-950);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  letter-spacing: -0.5px;
}

.login-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--pine-900);
}

.login-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.login-footer-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

/* Footer */
.app-footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 1rem 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Help & Instructions Section Styles */
.help-subnav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.help-subnav-btn.active-help-tab {
  background: var(--pine-800);
  color: #ffffff;
  border-color: var(--pine-800);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(16, 38, 26, 0.15);
}

.help-rule-banner {
  background: linear-gradient(135deg, hsl(148, 30%, 95%), hsl(42, 35%, 95%));
  border: 1px solid var(--border-strong);
  border-left: 5px solid var(--pine-700);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.help-rule-banner.captain-banner {
  border-left-color: var(--gold-600);
  background: linear-gradient(135deg, hsl(43, 60%, 96%), hsl(40, 40%, 98%));
}

.help-rule-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pine-900);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.help-rule-content p {
  margin: 0.4rem 0 0.8rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.help-rule-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.help-pill {
  font-size: 0.82rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  color: var(--text-primary);
}

.help-pill.highlight {
  background: var(--pine-800);
  color: #ffffff;
  border-color: var(--pine-800);
  font-weight: 700;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.25rem;
}

.help-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
}

.help-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.65rem;
}

.help-card-icon {
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.help-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pine-900);
  line-height: 1.3;
}

.help-card-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.help-card-body p {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.help-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.help-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--pine-100);
  color: var(--pine-800);
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.help-bullets {
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.help-status-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.85rem 0;
}

.help-status-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
}

.help-status-item p {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
}

.help-status-item.status-green {
  background: var(--row-qualified-bg);
  border-color: rgba(46, 125, 50, 0.2);
}

.help-status-item.status-orange {
  background: var(--row-reserve-bg);
  border-color: rgba(230, 81, 0, 0.2);
}

.help-status-item.status-red {
  background: var(--row-unavailable-bg);
  border-color: rgba(198, 40, 40, 0.2);
}

.help-tip-box {
  background: hsl(205, 70%, 96%);
  border: 1px solid hsl(205, 50%, 85%);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  color: hsl(205, 75%, 25%);
  margin-top: 0.85rem;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pine-900);
  margin-bottom: 0.45rem;
}

.faq-answer {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Quali Fokus & Alert Box styles */
.quali-focus-static-box {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.alert-box {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.alert-box.alert-warning {
  background: hsl(43, 90%, 94%);
  border: 1px solid hsl(41, 78%, 50%);
  color: hsl(30, 80%, 25%);
}

@media (max-width: 980px) {
  .help-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .split-grid {
    grid-template-columns: 1fr;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .main-container {
    padding: 1rem;
  }
}
