/* ===== Theme Variables — Dämmerung ===== */
:root {
  --bg-primary: #0b0f15;
  --bg-secondary: #111820;
  --bg-card: #16202c;
  --bg-card-hover: #1c2836;
  --border: #1e2836;
  --border-bright: #2d3a4a;
  --text-primary: #e8edf4;
  --text-secondary: #8b949e;
  --text-muted: #5c6570;
  --accent: #00d4aa;
  --accent-secondary: #00b8d4;
  --accent-hover: #33e0be;
  --accent-dim: rgba(0, 212, 170, 0.10);
  --accent-glow: rgba(0, 212, 170, 0.20);
  --accent-gradient: linear-gradient(135deg, #00d4aa 0%, #00b8d4 100%);
  --match-perfect: #3fb950;
  --match-good: #e8a849;
  --match-ok: #d18616;
  --match-general: #6e7681;
  --warning-bg: rgba(212, 167, 44, 0.10);
  --warning-border: #d4a72c;
  --warning-text: #e3b341;
  --danger: #f85149;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --header-height: 56px;
  --nav-height: 64px;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  height: 100vh;
}

/* ===== Header ===== */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(17, 24, 32, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding-top: var(--safe-top);
  height: calc(var(--header-height) + var(--safe-top));
}

.app-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0.5;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--header-height);
  padding: 0 16px;
}

.header-logout {
  position: fixed;
  right: 16px;
  top: calc(var(--safe-top) + (var(--header-height) - 12px) / 2);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  pointer-events: auto;
  z-index: 200;
}

.header-logout:hover {
  color: var(--text-primary);
}

.header-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.header-content h1 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.brand-raptor {
  color: var(--text-primary);
}

.brand-strike {
  color: var(--accent);
}

/* ===== Screen Container ===== */
.screen-container {
  flex: 1;
  position: relative;
  margin-top: calc(var(--header-height) + var(--safe-top));
  margin-bottom: calc(var(--nav-height) + var(--safe-bottom) + 52px);
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 16px 16px;
  padding-left: calc(16px + var(--safe-left));
  padding-right: calc(16px + var(--safe-right));
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.screen.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.screen.slide-out-left {
  opacity: 0;
  transform: translateX(-30px);
}

.screen.slide-in-left {
  transform: translateX(-30px);
}

/* ===== Bottom Nav ===== */
.app-legal {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--safe-bottom));
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 4px 0;
  font-size: 11px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.app-legal a {
  color: var(--text-muted);
  text-decoration: none;
}

.app-legal a:hover {
  color: var(--text-secondary);
  text-decoration: underline;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  border-top: 1px solid var(--border);
  padding-bottom: var(--safe-bottom);
  height: calc(var(--nav-height) + var(--safe-bottom));
  backdrop-filter: blur(16px);
  background: rgba(17, 24, 32, 0.92);
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 4px;
  min-height: 48px;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.nav-btn:active {
  opacity: 0.7;
}

.nav-btn.active {
  color: var(--accent);
}

.nav-btn svg {
  width: 22px;
  height: 22px;
}

/* ===== Loading Overlay ===== */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(11, 15, 21, 0.88);
  backdrop-filter: blur(8px);
  transition: opacity 0.2s;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-overlay p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ===== Hero Section (Conditions Screen) — Cinematic V2b ===== */

/* Hide fixed header when conditions screen is active */
body.screen-conditions .app-header {
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  pointer-events: none;
}
body.screen-conditions .app-header::after {
  display: none;
}
body.screen-conditions .header-content {
  visibility: hidden;
}
body.screen-conditions .screen-container {
  margin-top: 0;
}
body.screen-conditions #screen-conditions {
  padding-top: 0;
}

.hero-section {
  position: relative;
  margin: 0 calc(-16px - var(--safe-left, 0px)) 0 calc(-16px - var(--safe-right, 0px));
  overflow: hidden;
}

/* B&W image — tall, covers hero + bleeds under Zielfisch */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background: url('/img/hero-lake.jpg') center 25%/cover no-repeat;
  filter: grayscale(1) brightness(0.50) contrast(1.15);
  z-index: 0;
}

/* Teal tint + seamless fade to bg */
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background:
    rgba(0, 180, 160, 0.05),
    linear-gradient(180deg,
      rgba(11, 15, 21, 0.25) 0%,
      transparent 15%,
      transparent 35%,
      rgba(11, 15, 21, 0.45) 65%,
      rgba(11, 15, 21, 0.85) 85%,
      var(--bg-primary) 100%
    );
  z-index: 0;
}

.hero-section > * {
  position: relative;
  z-index: 1;
}

/* Brand/Logo on the image */
.hero-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 16px 0;
}

.hero-brand svg {
  color: var(--accent);
  flex-shrink: 0;
}

.hero-brand span {
  font-size: 17px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.3px;
}

.hero-brand .brand-strike {
  color: rgba(0, 212, 170, 0.85);
}

/* Hero text */
.hero-text {
  padding: 145px 20px 15px;
}

.hero-greeting {
  font-size: 11px;
  color: rgba(0, 212, 170, 0.80);
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  line-height: 1.1;
}

/* Zielfisch inside hero — overlaps bottom edge of image */
.hero-species {
  padding: 40px 16px 16px;
}

.hero-species .form-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.hero-species select {
  font-size: 18px;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-bright);
  background: rgba(22, 32, 44, 0.75);
  backdrop-filter: blur(8px);
}

.hero-species select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ===== Form Elements ===== */
.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

select, input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

select:focus, input[type="number"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c6570' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.input-wrapper {
  position: relative;
}

.input-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.input-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== Species Select (prominent) ===== */
.species-select-wrapper {
  margin-bottom: 20px;
  display: none; /* Replaced by .hero-species in V2b layout */
}

.species-select-wrapper .form-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.species-select-wrapper select {
  font-size: 18px;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-bright);
}

.species-select-wrapper select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ===== Field Grid (2-column) ===== */
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.field-grid .form-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.field-grid select {
  font-size: 14px;
  padding: 11px 12px;
  padding-right: 36px;
}

/* ===== Mandatory Fields (fallback single-column) ===== */
.mandatory-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.mandatory-field .form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* ===== Optional Divider ===== */
.optional-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 12px;
}

.optional-divider::before,
.optional-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.optional-divider-text {
  white-space: nowrap;
  font-style: italic;
}

/* ===== Accordion ===== */
.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  gap: 12px;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}

.accordion-header:active {
  background: var(--bg-card-hover);
}

.accordion-header .chevron {
  margin-left: auto;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.accordion-item.open .accordion-header .chevron {
  transform: rotate(180deg);
}

.accordion-preview {
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.open .accordion-body {
  max-height: 200px;
}

.accordion-content {
  padding: 12px 16px 16px;
  background: var(--bg-secondary);
}

/* ===== Buttons ===== */
.btn-primary {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--accent-gradient);
  color: #0b0f15;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  min-height: 52px;
  letter-spacing: 0.3px;
  box-shadow: 0 0 16px rgba(0, 212, 170, 0.35), 0 0 6px rgba(0, 212, 170, 0.2);
  transition: box-shadow 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover {
  box-shadow: 0 0 24px rgba(0, 212, 170, 0.5), 0 0 10px rgba(0, 212, 170, 0.3);
}

.btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 0 12px rgba(0, 212, 170, 0.25);
}

.btn-primary:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

.btn-secondary {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--accent-gradient);
  color: #0b0f15;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  min-height: 52px;
  box-shadow: 0 0 16px rgba(0, 212, 170, 0.35), 0 0 6px rgba(0, 212, 170, 0.2);
  transition: box-shadow 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.btn-secondary:hover {
  box-shadow: 0 0 24px rgba(0, 212, 170, 0.5), 0 0 10px rgba(0, 212, 170, 0.3);
}

.btn-secondary:active {
  transform: scale(0.98);
  box-shadow: 0 0 12px rgba(0, 212, 170, 0.25);
}

/* ===== Results Screen — Cinematic Hero + Cards ===== */

/* Hide fixed header when results screen is active */
body.screen-results .app-header {
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  pointer-events: none;
}
body.screen-results .app-header::after {
  display: none;
}
body.screen-results .header-content {
  visibility: hidden;
}
body.screen-results .screen-container {
  margin-top: 0;
}
body.screen-results #screen-results {
  padding: 0;
}

/* Page wrapper — image bleeds from hero into cards */
.results-page-wrapper {
  position: relative;
  overflow: hidden;
}

.results-page-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 900px;
  background: url('/img/hero-lake.jpg') center 25%/cover no-repeat;
  filter: grayscale(1) brightness(0.25) contrast(1.1);
  z-index: 0;
}

.results-page-wrapper::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 900px;
  background:
    rgba(0, 180, 160, 0.03),
    linear-gradient(180deg,
      rgba(11, 15, 21, 0.10) 0%,
      transparent 12%,
      transparent 30%,
      rgba(11, 15, 21, 0.20) 50%,
      rgba(11, 15, 21, 0.50) 70%,
      rgba(11, 15, 21, 0.80) 85%,
      var(--bg-primary) 100%
    );
  z-index: 0;
}

.results-page-wrapper > * {
  position: relative;
  z-index: 1;
}

.results-hero {
  position: relative;
}

/* Brand bar on hero image */
.hero-brand-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(14px + var(--safe-top)) 16px 0;
}

.hero-brand-bar span {
  font-size: 15px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: -0.3px;
}

.hero-brand-bar .brand-strike {
  color: rgba(0, 212, 170, 0.7);
}

/* Species content overlaying hero image */
.species-content {
  padding: 110px 20px 28px;
}

.species-overline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(0, 212, 170, 0.80);
  margin-bottom: 6px;
}

.species-name {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 14px;
}

.condition-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.condition-pill {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(22, 32, 44, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 4px 10px;
  border-radius: 50px;
}

/* Section Labels */
.top-pick-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 16px 16px 12px;
  opacity: 0.7;
  position: relative;
  z-index: 1;
}

.more-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 28px 16px 16px;
}

.cards-area {
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.results-warning {
  margin: 0 16px 12px;
}

.results-back-area {
  padding: 28px 16px 16px;
}

/* Warning Banner */
.warning-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.warning-banner svg {
  flex-shrink: 0;
  color: var(--warning-text);
  margin-top: 1px;
}

.warning-banner p {
  font-size: 13px;
  color: var(--warning-text);
  line-height: 1.4;
}

/* Result Card — with animations and match-quality borders */
.result-card {
  background: linear-gradient(180deg, rgba(22, 32, 44, 0.55) 0%, rgba(22, 32, 44, 0.85) 50%, var(--bg-card) 100%);
  border: 1px solid rgba(30, 40, 54, 0.7);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(12px);
  animation: cardIn 0.4s ease-out forwards;
}

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

/* Match quality left borders */
.result-card.match-perfect-card { border-left: 3px solid var(--match-perfect); }
.result-card.match-good-card { border-left: 3px solid var(--match-good); }
.result-card.match-ok-card { border-left: 3px solid var(--match-ok); }
.result-card.match-general-card { border-left: 3px solid var(--match-general); }

/* Top Pick card */
.result-card.top-pick {
  border-color: rgba(0, 212, 170, 0.30);
  border-left: 3px solid var(--accent);
  box-shadow: 0 4px 24px rgba(0, 212, 170, 0.08);
  background: linear-gradient(180deg, rgba(0, 212, 170, 0.06) 0%, rgba(22, 32, 44, 0.65) 40%, var(--bg-card) 70%);
}

.result-card.top-pick .lure-type-heading {
  color: var(--accent);
}

.result-card.top-pick .score-num {
  color: var(--accent);
}

.result-card.top-pick .score-bar-fill {
  box-shadow: 0 0 8px rgba(0, 212, 170, 0.3);
}

.card-inner {
  padding: 16px;
}

.card-top-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.card-title-area {
  flex: 1;
  min-width: 0;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

/* Lure image — white box for product photos */
.lure-img-wrap {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lure-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.lure-type-heading {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.2;
}

/* Score number — prominent */
.score-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.score-num .score-pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 1px;
}

.lure-models {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.lure-models a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--border-bright);
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.lure-models a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.form-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-secondary);
  background: rgba(0, 184, 212, 0.10);
  padding: 2px 8px;
  border-radius: 8px;
}

.match-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.match-perfect {
  background: rgba(63, 185, 80, 0.12);
  color: var(--match-perfect);
}

.match-good {
  background: rgba(232, 168, 73, 0.12);
  color: var(--match-good);
}

.match-ok {
  background: rgba(209, 134, 22, 0.12);
  color: var(--match-ok);
}

.match-general {
  background: rgba(110, 118, 129, 0.12);
  color: var(--match-general);
}

/* Score Bar — slim accent */
.score-bar-area {
  margin-top: 12px;
}

.score-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent-gradient);
  width: 0%;
  transition: width 0.8s ease-out;
}

/* Notes */
.result-notes {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: 10px;
}

/* Jig Weight Section */
.jig-section,
.jig-weight-section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.jig-header,
.jig-weight-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.jig-sub,
.jig-weight-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.jig-table,
.jig-weight-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.jig-table td,
.jig-weight-table td {
  padding: 4px 8px;
  border-bottom: 1px solid var(--border);
}

.jig-table tr:last-child td,
.jig-weight-table tr:last-child td {
  border-bottom: none;
}

.jig-table td:first-child,
.jig-weight-table td:first-child {
  color: var(--text-secondary);
}

.jig-table td:last-child,
.jig-weight-table td:last-child {
  color: var(--accent);
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Tackle Tips Expandable */
.tackle-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  padding: 8px 0 0;
  -webkit-tap-highlight-color: transparent;
}

.tackle-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.tackle-toggle.open svg {
  transform: rotate(180deg);
}

.tackle-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.tackle-content.open {
  max-height: 300px;
}

.tackle-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  padding: 8px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.no-results svg {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.no-results p {
  font-size: 15px;
  line-height: 1.5;
}

/* ===== Info Screen ===== */
.info-section {
  margin-bottom: 24px;
}

.info-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.info-section h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.info-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.info-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
}

.info-step:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-text {
  flex: 1;
}

.step-text strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.step-text span {
  font-size: 13px;
  color: var(--text-secondary);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.legend-label strong {
  color: var(--text-primary);
}

.species-list {
  list-style: none;
}

.species-list li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.species-list li:last-child {
  border-bottom: none;
}

.species-list li strong {
  color: var(--text-primary);
}

.legal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 0 0;
}
.legal-links a {
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: none;
}
.legal-links a:hover { color: var(--accent); }
.legal-sep { color: var(--text-muted); font-size: 12px; }

.version-text {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 0 20px;
}

/* ===== Placeholder state ===== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 15px;
  line-height: 1.5;
}

.empty-state .hint {
  font-size: 13px;
  margin-top: 8px;
}

/* ===== Scrollbar ===== */
.screen::-webkit-scrollbar {
  width: 4px;
}

.screen::-webkit-scrollbar-track {
  background: transparent;
}

.screen::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* ===== Feedback Buttons ===== */
.feedback-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.feedback-label {
  font-size: 12px;
  color: var(--text-muted);
}

.feedback-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.feedback-btn:active {
  transform: scale(0.92);
}

.feedback-btn:disabled {
  cursor: default;
  opacity: 0.5;
}

.feedback-btn.voted-up {
  background: rgba(63, 185, 80, 0.15);
  border-color: var(--match-perfect);
  color: var(--match-perfect);
  opacity: 1;
}

.feedback-btn.voted-down {
  background: rgba(248, 81, 73, 0.15);
  border-color: var(--danger);
  color: var(--danger);
  opacity: 1;
}
