/*
Theme Name: Fair Signal
Theme URI: https://fairsignal.art
Author: Creative Flair
Author URI: https://creativeflair.art
Description: Know before you show. Real ROI data from real artists helping emerging artists decide which art fairs are worth their time and money.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fairsignal
Tags: art, fair, roi, artists, creative
*/

/* ═══════════════════════════════════════════════
   FAIR SIGNAL THEME — CORE STYLES
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --fs-bg: #0a0a0a;
  --fs-text: #f5f0e8;
  --fs-text-muted: rgba(245, 240, 232, 0.45);
  --fs-text-faint: rgba(245, 240, 232, 0.25);
  --fs-text-dim: rgba(245, 240, 232, 0.35);
  --fs-border: rgba(255, 255, 255, 0.06);
  --fs-border-hover: rgba(255, 255, 255, 0.12);
  --fs-card: rgba(255, 255, 255, 0.02);
  --fs-card-hover: rgba(255, 255, 255, 0.04);
  --fs-green: #22c55e;
  --fs-green-glow: rgba(34, 197, 94, 0.45);
  --fs-amber: #f59e0b;
  --fs-amber-glow: rgba(245, 158, 11, 0.45);
  --fs-red: #ef4444;
  --fs-red-glow: rgba(239, 68, 68, 0.45);
  --fs-blue: #60a5fa;
  --fs-purple: #a78bfa;
  --fs-font-display: 'Playfair Display', Georgia, serif;
  --fs-font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
}

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--fs-bg);
  color: var(--fs-text);
  font-family: var(--fs-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
input, textarea, select, button { font-family: var(--fs-font-body); }

/* LAYOUT */
.fs-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

.fs-section { padding: 36px 0; }

/* ─── HEADER ─── */
.fs-header {
  border-bottom: 1px solid var(--fs-border);
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
}

.fs-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fs-header__name {
  font-family: var(--fs-font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.fs-header__tagline {
  font-size: 9px;
  color: var(--fs-text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

.fs-header__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* ─── BUTTONS ─── */
.fs-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: var(--fs-font-body);
  text-decoration: none;
}

.fs-btn--primary {
  background: var(--fs-text);
  color: var(--fs-bg);
  font-weight: 600;
}

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

.fs-btn--secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--fs-text);
}

.fs-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.fs-btn--small {
  padding: 6px 16px;
  font-size: 12px;
}

/* ─── SIGNAL LIGHTS ─── */
.fs-signal {
  display: flex;
  align-items: center;
}

.fs-signal--sm { gap: 4px; }
.fs-signal--md { gap: 5px; }
.fs-signal--lg { gap: 7px; }
.fs-signal--xl { gap: 9px; }

.fs-signal__dot {
  border-radius: 50%;
  transition: all 0.4s ease;
}

.fs-signal--sm .fs-signal__dot { width: 10px; height: 10px; }
.fs-signal--md .fs-signal__dot { width: 18px; height: 18px; }
.fs-signal--lg .fs-signal__dot { width: 28px; height: 28px; }
.fs-signal--xl .fs-signal__dot { width: 44px; height: 44px; }

.fs-signal__dot--inactive {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.fs-signal__dot--red {
  background: var(--fs-red);
  box-shadow: 0 0 18px var(--fs-red-glow), 0 0 36px var(--fs-red-glow);
  border: none;
}

.fs-signal__dot--amber {
  background: var(--fs-amber);
  box-shadow: 0 0 18px var(--fs-amber-glow), 0 0 36px var(--fs-amber-glow);
  border: none;
}

.fs-signal__dot--green {
  background: var(--fs-green);
  box-shadow: 0 0 18px var(--fs-green-glow), 0 0 36px var(--fs-green-glow);
  border: none;
}

/* ─── BADGES ─── */
.fs-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
}

.fs-badge--green {
  color: var(--fs-green);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.18);
}

.fs-badge--amber {
  color: var(--fs-amber);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.fs-badge--red {
  color: var(--fs-red);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.18);
}

/* Fair Type Badge */
.fs-type-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.fs-type-badge--artist {
  color: var(--fs-green);
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.15);
}

.fs-type-badge--mixed {
  color: var(--fs-amber);
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.fs-type-badge--gallery {
  color: var(--fs-blue);
  background: rgba(96, 165, 250, 0.07);
  border: 1px solid rgba(96, 165, 250, 0.15);
}

.fs-type-badge__icon { font-size: 12px; }

/* ─── TAGS ─── */
.fs-tag {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fs-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: inline-block;
}

/* ─── HERO ─── */
.fs-hero {
  text-align: center;
  padding: 40px 0 48px;
}

.fs-hero__signal {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.fs-hero__title {
  font-family: var(--fs-font-display);
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.fs-hero__subtitle {
  font-size: 16px;
  color: var(--fs-text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 300;
}

/* ─── STATS BAR ─── */
.fs-stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 18px 0;
  border-top: 1px solid var(--fs-border);
  border-bottom: 1px solid var(--fs-border);
  margin-bottom: 40px;
}

.fs-stat {
  text-align: center;
}

.fs-stat__value {
  font-size: 24px;
  font-weight: 700;
  font-family: var(--fs-font-display);
  color: var(--fs-text);
}

.fs-stat__value--large {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
}

.fs-stat__label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fs-text-muted);
  margin-top: 2px;
}

.fs-stat__sub {
  font-size: 11px;
  color: var(--fs-text-muted);
  margin-top: 2px;
}

/* ─── FILTERS ─── */
.fs-filters {
  margin-bottom: 28px;
}

.fs-filters__search {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--fs-text);
  font-size: 14px;
  outline: none;
  margin-bottom: 14px;
}

.fs-filters__search:focus {
  border-color: rgba(245, 240, 232, 0.25);
}

.fs-filters__search::placeholder {
  color: var(--fs-text-faint);
}

.fs-filters__row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}

.fs-filters__label {
  font-size: 11px;
  color: var(--fs-text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 4px;
}

.fs-filter-btn {
  background: transparent;
  border: 1px solid var(--fs-border);
  color: var(--fs-text-dim);
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  font-family: var(--fs-font-body);
}

.fs-filter-btn:hover {
  border-color: rgba(245, 240, 232, 0.15);
  color: var(--fs-text-muted);
}

.fs-filter-btn--active {
  background: rgba(245, 240, 232, 0.1);
  border-color: rgba(245, 240, 232, 0.2);
  color: var(--fs-text);
}

/* ─── FAIR CARDS ─── */
.fs-fair-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fs-fair-card {
  background: var(--fs-card);
  border: 1px solid var(--fs-border);
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: block;
}

.fs-fair-card:hover {
  background: var(--fs-card-hover);
  border-color: var(--fs-border-hover);
}

.fs-fair-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.fs-fair-card__info { flex: 1; }

.fs-fair-card__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.fs-fair-card__name {
  font-size: 19px;
  font-family: var(--fs-font-display);
  font-weight: 700;
  margin: 0;
}

.fs-fair-card__location {
  font-size: 13px;
  color: var(--fs-text-dim);
}

.fs-fair-card__score {
  text-align: right;
  min-width: 70px;
}

.fs-fair-card__score-value {
  font-size: 34px;
  font-weight: 700;
  font-family: var(--fs-font-display);
  line-height: 1;
}

.fs-fair-card__score-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fs-text-dim);
  margin-top: 3px;
}

.fs-fair-card__metrics {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-bottom: 12px;
}

.fs-fair-card__metric-label {
  color: var(--fs-text-dim);
}

.fs-fair-card__metric-value {
  font-weight: 600;
}

.fs-fair-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

/* ─── SINGLE FAIR (Detail Page) ─── */
.fs-fair-detail { padding: 28px 0 80px; }

.fs-back-link {
  background: none;
  border: none;
  color: var(--fs-text-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: 24px;
  display: inline-block;
  font-family: var(--fs-font-body);
  text-decoration: none;
}

.fs-back-link:hover { color: var(--fs-text); }

.fs-fair-detail__header {
  margin-bottom: 32px;
}

.fs-fair-detail__title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.fs-fair-detail__title {
  font-family: var(--fs-font-display);
  font-size: 32px;
  font-weight: 900;
  margin: 0;
}

.fs-fair-detail__meta {
  font-size: 13px;
  color: var(--fs-text-dim);
}

.fs-fair-detail__description {
  font-size: 14px;
  color: rgba(245, 240, 232, 0.6);
  margin-top: 14px;
  line-height: 1.7;
  max-width: 680px;
}

/* ─── PANEL / CARD ─── */
.fs-panel {
  background: var(--fs-card);
  border: 1px solid var(--fs-border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.fs-panel__title {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fs-text-dim);
  margin: 0 0 14px;
  font-weight: 600;
}

/* ─── FAIR TYPE SPECTRUM ─── */
.fs-type-spectrum {
  margin-bottom: 8px;
}

.fs-type-spectrum__labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.fs-type-spectrum__end-label {
  font-size: 11px;
  color: var(--fs-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fs-type-spectrum__current {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.fs-type-spectrum__track {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  overflow: visible;
  position: relative;
}

.fs-type-spectrum__gradient {
  position: absolute;
  left: 0; top: 0;
  height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--fs-blue), var(--fs-amber) 50%, var(--fs-green));
  opacity: 0.2;
  border-radius: 5px;
}

.fs-type-spectrum__marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(10, 10, 10, 0.8);
  transition: left 0.5s ease;
}

.fs-type-spectrum__description {
  font-size: 13px;
  color: var(--fs-text-muted);
  margin-top: 14px;
  line-height: 1.6;
}

/* ─── SCORE + BREAKDOWN GRID ─── */
.fs-detail-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  margin-bottom: 20px;
}

.fs-score-panel {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px;
}

.fs-score-panel__value {
  font-size: 64px;
  font-weight: 900;
  font-family: var(--fs-font-display);
  line-height: 1;
}

.fs-score-panel__label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fs-text-dim);
}

.fs-score-panel__reviews {
  font-size: 12px;
  color: var(--fs-text-dim);
  margin-top: 4px;
}

/* ─── BAR METERS ─── */
.fs-bar-group { margin-bottom: 16px; }
.fs-bar-group:last-child { margin-bottom: 0; }

.fs-bar__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.fs-bar__label {
  font-size: 13px;
  color: rgba(245, 240, 232, 0.5);
}

.fs-bar__value {
  font-size: 13px;
  font-weight: 600;
}

.fs-bar__track {
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.fs-bar__fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}

/* ─── COST GRID ─── */
.fs-cost-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ─── MEDIUMS ─── */
.fs-mediums {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fs-medium-tag {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 240, 232, 0.6);
  border: 1px solid var(--fs-border);
}

/* ─── REVIEWS ─── */
.fs-reviews__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.fs-review {
  background: var(--fs-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 10px;
}

.fs-review__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.fs-review__meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

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

.fs-review__price-range {
  font-size: 11px;
  color: var(--fs-text-faint);
}

.fs-review__date {
  font-size: 11px;
  color: rgba(245, 240, 232, 0.2);
}

.fs-review__stars {
  display: flex;
  gap: 2px;
}

.fs-review__star {
  font-size: 13px;
}

.fs-review__star--active { color: var(--fs-amber); }
.fs-review__star--inactive { color: rgba(255, 255, 255, 0.08); }

.fs-review__text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 240, 232, 0.65);
  margin: 0 0 12px;
  font-style: italic;
}

.fs-review__financials {
  display: flex;
  gap: 16px;
  font-size: 12px;
  flex-wrap: wrap;
}

.fs-review__spent { color: rgba(239, 68, 68, 0.7); }
.fs-review__earned { color: rgba(34, 197, 94, 0.7); }
.fs-review__net { font-weight: 600; }
.fs-review__pieces { color: var(--fs-text-dim); }
.fs-review__return-status { color: var(--fs-text-dim); }

/* ─── ROI CALCULATOR ─── */
.fs-calculator-trigger {
  background: linear-gradient(135deg, rgba(245, 240, 232, 0.04), rgba(245, 240, 232, 0.02));
  border: 1px solid rgba(245, 240, 232, 0.1);
  border-radius: 12px;
  padding: 20px 24px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  width: 100%;
  text-align: left;
  color: var(--fs-text);
  font-family: var(--fs-font-body);
}

.fs-calculator-trigger:hover {
  border-color: rgba(245, 240, 232, 0.2);
}

.fs-calculator-trigger__title {
  font-size: 16px;
  font-weight: 600;
  font-family: var(--fs-font-display);
  margin-bottom: 4px;
}

.fs-calculator-trigger__subtitle {
  font-size: 13px;
  color: var(--fs-text-muted);
}

.fs-calculator-trigger__arrow {
  font-size: 24px;
  color: var(--fs-text-dim);
}

.fs-calculator {
  margin-bottom: 28px;
  display: none;
}

.fs-calculator.is-open { display: block; }

.fs-calculator__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.fs-calculator__title {
  font-family: var(--fs-font-display);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
}

.fs-calculator__subtitle {
  font-size: 13px;
  color: var(--fs-text-muted);
}

.fs-calculator__close {
  background: none;
  border: none;
  color: var(--fs-text-dim);
  font-size: 18px;
  cursor: pointer;
  font-family: var(--fs-font-body);
}

.fs-calculator__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

/* Calculator Results */
.fs-calc-results {
  margin-top: 28px;
  border-top: 1px solid var(--fs-border);
  padding-top: 24px;
  display: none;
}

.fs-calc-results.is-visible { display: block; }

.fs-calc-verdict {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.fs-calc-verdict__message { flex: 1; }

.fs-calc-verdict__headline {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--fs-font-display);
  margin-bottom: 4px;
}

.fs-calc-verdict__text {
  font-size: 14px;
  color: rgba(245, 240, 232, 0.6);
  line-height: 1.5;
}

.fs-calc-verdict__confidence {
  text-align: center;
  min-width: 80px;
}

.fs-calc-verdict__confidence-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fs-text-dim);
  margin-bottom: 4px;
}

.fs-calc-verdict__confidence-value {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fs-calc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--fs-card);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.fs-calc-breakeven {
  padding: 14px 18px;
  background: var(--fs-card);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
}

.fs-calc-breakeven__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fs-calc-breakeven__label {
  font-size: 13px;
  color: rgba(245, 240, 232, 0.55);
}

.fs-calc-breakeven__value {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--fs-font-display);
}

.fs-calc-breakeven__bar-container { margin-top: 10px; }

.fs-calc-breakeven__labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--fs-text-dim);
  margin-bottom: 4px;
}

.fs-calc-breakeven__bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: visible;
  position: relative;
}

.fs-calc-breakeven__fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s;
}

.fs-calc-breakeven__marker {
  position: absolute;
  top: -6px;
  width: 2px;
  height: 20px;
  background: var(--fs-text);
  opacity: 0.8;
}

.fs-calc-breakeven__note {
  font-size: 11px;
  color: var(--fs-text-dim);
  margin-top: 6px;
  text-align: center;
}

/* Factors */
.fs-factors__title {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fs-text-dim);
  margin-bottom: 12px;
  font-weight: 600;
}

.fs-factor {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(245, 240, 232, 0.65);
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.fs-factor--positive {
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.15);
}

.fs-factor--warning {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.fs-factor--info {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.fs-factor__icon {
  font-size: 14px;
  flex-shrink: 0;
}

/* ─── FORMS ─── */
.fs-form-panel {
  background: var(--fs-card);
  border: 1px solid var(--fs-border);
  border-radius: 12px;
  padding: 28px;
}

.fs-form-title {
  font-family: var(--fs-font-display);
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 8px;
}

.fs-form-subtitle {
  font-size: 14px;
  color: var(--fs-text-muted);
  margin-bottom: 28px;
}

.fs-field { margin-bottom: 16px; }

.fs-field__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fs-text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.fs-field__input,
.fs-field__select,
.fs-field__textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--fs-text);
  font-size: 14px;
  font-family: var(--fs-font-body);
  outline: none;
}

.fs-field__input:focus,
.fs-field__select:focus,
.fs-field__textarea:focus {
  border-color: rgba(245, 240, 232, 0.25);
}

.fs-field__input::placeholder,
.fs-field__textarea::placeholder {
  color: var(--fs-text-faint);
}

.fs-field__select option {
  background: #1a1a1a;
}

.fs-field__textarea {
  resize: vertical;
}

.fs-field__range {
  width: 100%;
  -webkit-appearance: none;
  background: transparent;
}

.fs-field__range::-webkit-slider-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.fs-field__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fs-text);
  margin-top: -7px;
  cursor: pointer;
}

.fs-field__range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--fs-text-faint);
  margin-top: 4px;
}

.fs-field__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fs-field__row--three {
  grid-template-columns: 1fr 1fr 1fr;
}

.fs-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* Toggle buttons */
.fs-toggle-group {
  display: flex;
  gap: 12px;
}

.fs-toggle-btn {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--fs-text);
  font-size: 14px;
  cursor: pointer;
  font-family: var(--fs-font-body);
  font-weight: 500;
  transition: all 0.2s;
}

.fs-toggle-btn--active {
  background: rgba(245, 240, 232, 0.1);
  border-color: rgba(245, 240, 232, 0.25);
}

/* ─── EMPTY STATE ─── */
.fs-empty {
  text-align: center;
  padding: 50px 20px;
}

.fs-empty__text {
  font-size: 16px;
  color: var(--fs-text-muted);
  margin-bottom: 20px;
}

/* ─── FOOTER ─── */
.fs-footer {
  border-top: 1px solid var(--fs-border);
  padding: 22px 28px;
  text-align: center;
  font-size: 11px;
  color: rgba(245, 240, 232, 0.2);
}

/* ─── TOAST NOTIFICATIONS ─── */
.fs-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--fs-green);
  color: var(--fs-bg);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  z-index: 999;
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.fs-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── LOCATION MAP ─── */
.fs-map-panel {
  background: var(--fs-card);
  border: 1px solid var(--fs-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.fs-map-panel iframe {
  width: 100%;
  height: 220px;
  border: none;
  filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(1.1);
  opacity: 0.85;
}

.fs-map-panel__info {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fs-map-panel__address {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.fs-map-panel__website {
  font-size: 12px;
  color: var(--fs-text-dim);
}

/* ─── PRICING INTELLIGENCE ─── */
.fs-pricing-panel {
  margin-bottom: 20px;
}

.fs-pricing-panel__subtitle {
  font-size: 12px;
  color: var(--fs-text-dim);
  margin: -8px 0 18px;
}

.fs-pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  margin-bottom: 8px;
}

.fs-pricing-row--green { border: 1px solid rgba(34, 197, 94, 0.15); }
.fs-pricing-row--amber { border: 1px solid rgba(245, 158, 11, 0.15); }
.fs-pricing-row--red { border: 1px solid rgba(239, 68, 68, 0.15); }

.fs-pricing-row__medium {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}

.fs-pricing-row__detail {
  font-size: 12px;
  color: var(--fs-text-dim);
}

.fs-pricing-row__range {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--fs-font-display);
}

.fs-pricing-row__profit {
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}

.fs-pricing-row__rate {
  font-size: 11px;
  color: var(--fs-text-dim);
}

/* ─── AUTOCOMPLETE ─── */
.fs-autocomplete {
  position: relative;
}

.fs-autocomplete__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 50;
  margin-top: 4px;
}

.fs-autocomplete__item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s;
}

.fs-autocomplete__item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.fs-autocomplete__item-location {
  font-size: 12px;
  color: var(--fs-text-dim);
  margin-left: 8px;
}

.fs-autocomplete__selected {
  font-size: 12px;
  color: var(--fs-green);
  margin-top: 4px;
}

/* ─── DUPLICATE WARNING ─── */
.fs-duplicate-warning {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
  margin-top: -8px;
}

.fs-duplicate-warning__title {
  font-size: 13px;
  color: var(--fs-amber);
  font-weight: 600;
  margin-bottom: 4px;
}

.fs-duplicate-warning__text {
  font-size: 13px;
  color: rgba(245, 240, 232, 0.6);
}

.fs-duplicate-warning__link {
  color: var(--fs-text);
  font-weight: 600;
  cursor: pointer;
}

/* ─── REGION SELECTOR ─── */
.fs-region-selector {
  position: relative;
}

.fs-region-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 12px;
}

.fs-region-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-top: 4px;
  min-width: 180px;
  z-index: 50;
  overflow: hidden;
}

.fs-region-option {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  transition: background 0.15s;
}

.fs-region-option:hover {
  background: rgba(255, 255, 255, 0.04);
}

.fs-region-option--active {
  background: rgba(245, 240, 232, 0.08);
}

/* ─── AUTH NOTICE ─── */
.fs-auth-notice {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: rgba(245, 240, 232, 0.65);
}

.fs-auth-notice a {
  color: var(--fs-text);
  font-weight: 600;
}

.fs-user-reviewed {
  font-size: 11px;
  color: var(--fs-green);
}

/* ─── COLOUR UTILITIES ─── */
.fs-color-green { color: var(--fs-green); }
.fs-color-amber { color: var(--fs-amber); }
.fs-color-red { color: var(--fs-red); }
.fs-color-blue { color: var(--fs-blue); }
.fs-color-purple { color: var(--fs-purple); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .fs-hero__title { font-size: 32px; }
  .fs-stats-bar { gap: 28px; flex-wrap: wrap; }
  .fs-detail-grid { grid-template-columns: 1fr; }
  .fs-cost-grid { grid-template-columns: repeat(2, 1fr); }
  .fs-calculator__grid { grid-template-columns: 1fr; }
  .fs-calc-stats { grid-template-columns: repeat(2, 1fr); }
  .fs-field__row, .fs-field__row--three { grid-template-columns: 1fr; }
  .fs-fair-card__header { flex-direction: column; gap: 12px; }
  .fs-fair-card__score { text-align: left; }
  .fs-header { padding: 12px 16px; flex-direction: column; gap: 10px; }
  .fs-header__actions { justify-content: center; }
  .fs-stat__value--large { font-size: 48px; }
}

@media (max-width: 480px) {
  .fs-hero__title { font-size: 28px; }
  .fs-fair-detail__title { font-size: 24px; }
  .fs-container { padding: 0 16px; }
  .fs-fair-card { padding: 18px; }
  .fs-panel { padding: 18px; }
}

/* WordPress admin bar compatibility */
body.admin-bar .fs-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .fs-header {
    top: 46px;
  }
}
