/* ═══════════════════════════════════════════════════════════
   FishingStay Design System v2.0 — "Ocean Premium"
   Deep Ocean × Emerald × Glassmorphism × Mobile-First
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
}

/* ── Naver Map tile safety (Tailwind preflight override) ── */
#map *,
#location-picker-map * {
  box-sizing: content-box !important;
}

#map img,
#map canvas,
#map svg,
#location-picker-map img,
#location-picker-map canvas,
#location-picker-map svg {
  max-width: none !important;
  max-height: none !important;
}

/* ── CSS Custom Properties ── */
:root {
  /* Brand — Ocean Blue */
  --brand-50:  #f0f9ff;
  --brand-100: #e0f2fe;
  --brand-200: #bae6fd;
  --brand-300: #7dd3fc;
  --brand-400: #38bdf8;
  --brand-500: #0ea5e9;
  --brand-600: #0284c7;
  --brand-700: #0369a1;
  --brand-800: #075985;
  --brand-900: #0c4a6e;

  /* Accent — Emerald */
  --accent-50:  #ecfdf5;
  --accent-100: #d1fae5;
  --accent-200: #a7f3d0;
  --accent-300: #6ee7b7;
  --accent-400: #34d399;
  --accent-500: #10b981;
  --accent-600: #059669;

  /* Warm — Amber (points, highlights) */
  --warm-50:  #fffbeb;
  --warm-100: #fef3c7;
  --warm-200: #fde68a;
  --warm-300: #fcd34d;
  --warm-400: #fbbf24;
  --warm-500: #f59e0b;
  --warm-600: #d97706;

  /* Danger */
  --danger-50:  #fef2f2;
  --danger-100: #fee2e2;
  --danger-400: #f87171;
  --danger-500: #ef4444;
  --danger-600: #dc2626;
  --danger-700: #b91c1c;

  /* Navy (dark surfaces) */
  --navy-800: #1e293b;
  --navy-900: #0f172a;
  --navy-950: #020817;

  /* Slate (text & borders) */
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Semantic */
  --bg-base:      #f8fafc;
  --bg-card:      #ffffff;
  --bg-elevated:  #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted:   #94a3b8;
  --border-light: #e2e8f0;
  --border-DEFAULT: #cbd5e1;

  /* Glass */
  --glass-bg:     rgba(255, 255, 255, 0.08);
  --glass-bg-light: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-blur:   blur(20px);

  /* Shadows */
  --shadow-xs:   0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm:   0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md:   0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg:   0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-xl:   0 20px 48px rgba(0, 0, 0, 0.14);
  --shadow-brand: 0 8px 32px rgba(14, 165, 233, 0.2);
  --shadow-glow:  0 0 24px rgba(14, 165, 233, 0.15);

  /* Radius */
  --radius-sm:   0.5rem;    /* 8px */
  --radius-md:   0.75rem;   /* 12px */
  --radius-lg:   1rem;      /* 16px */
  --radius-xl:   1.25rem;   /* 20px */
  --radius-2xl:  1.5rem;    /* 24px */
  --radius-full: 9999px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
}

/* ══════════════════════════════════════
   GRADIENTS
   ══════════════════════════════════════ */
.gradient-hero {
  background: linear-gradient(160deg, #020817 0%, #0a0f1e 25%, #0c2340 55%, #0c4a6e 100%);
}
.gradient-brand {
  background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
}
.gradient-brand-warm {
  background: linear-gradient(135deg, #059669 0%, #0284c7 100%);
}
.gradient-accent {
  background: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
}
.gradient-admin {
  background: linear-gradient(135deg, #0f2057 0%, #1e40af 50%, #1d4ed8 100%);
}
.gradient-ocean-footer {
  background: linear-gradient(160deg, #0a0f1e 0%, #0f172a 60%, #0c4a6e 100%);
}
.gradient-page-header {
  background: linear-gradient(160deg, #0a0f1e 0%, #0f172a 50%, #075985 100%);
}

/* Gradient text */
.text-gradient-brand {
  background: linear-gradient(135deg, #38bdf8 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-warm {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════
   GLASSMORPHISM
   ══════════════════════════════════════ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
}
.glass-light {
  background: var(--glass-bg-light);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.glass-nav {
  background: rgba(10, 15, 30, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background var(--duration-normal) ease,
              box-shadow var(--duration-normal) ease;
}
.glass-nav.scrolled {
  background: rgba(10, 15, 30, 0.95);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.glass-surface {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-xl);
}

/* ══════════════════════════════════════
   TYPOGRAPHY
   ══════════════════════════════════════ */
.fs-display  { font-size: 2.5rem; line-height: 1.1; font-weight: 900; letter-spacing: -0.02em; }
.fs-h1       { font-size: 1.875rem; line-height: 1.2; font-weight: 900; letter-spacing: -0.01em; }
.fs-h2       { font-size: 1.5rem; line-height: 1.3; font-weight: 800; }
.fs-h3       { font-size: 1.25rem; line-height: 1.4; font-weight: 700; }
.fs-h4       { font-size: 1.125rem; line-height: 1.4; font-weight: 700; }
.fs-body     { font-size: 0.9375rem; line-height: 1.6; font-weight: 400; }
.fs-body-sm  { font-size: 0.8125rem; line-height: 1.5; font-weight: 400; }
.fs-caption  { font-size: 0.75rem; line-height: 1.4; font-weight: 500; }
.fs-tiny     { font-size: 0.625rem; line-height: 1.3; font-weight: 600; }

@media (max-width: 640px) {
  .fs-display { font-size: 1.875rem; }
  .fs-h1      { font-size: 1.5rem; }
  .fs-h2      { font-size: 1.25rem; }
}

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */
.fs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
  border: none;
  outline: none;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.fs-btn:active { transform: scale(0.97); }
.fs-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Sizes */
.fs-btn-xs { padding: 0.375rem 0.75rem; font-size: 0.6875rem; border-radius: var(--radius-sm); }
.fs-btn-sm { padding: 0.5rem 1rem; font-size: 0.75rem; }
.fs-btn-md { padding: 0.75rem 1.5rem; font-size: 0.875rem; }
.fs-btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.fs-btn-xl { padding: 1.125rem 2.5rem; font-size: 1.125rem; border-radius: var(--radius-xl); }

/* Variants */
.fs-btn-primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
}
.fs-btn-primary:hover { box-shadow: 0 8px 24px rgba(14, 165, 233, 0.45); transform: translateY(-1px); }
.fs-btn-primary:active { transform: translateY(0) scale(0.98); }

.fs-btn-accent {
  background: linear-gradient(135deg, var(--accent-500), var(--brand-600));
  color: #fff;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3);
}

.fs-btn-danger {
  background: linear-gradient(135deg, var(--danger-500), var(--danger-600));
  color: #fff;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.fs-btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-light);
}
.fs-btn-ghost:hover { background: var(--slate-50); border-color: var(--brand-300); color: var(--brand-600); }

.fs-btn-white {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.fs-btn-white:hover { background: rgba(255, 255, 255, 0.25); }

.fs-btn-kakao {
  background: #FEE500;
  color: #191919;
}
.fs-btn-naver {
  background: #03C75A;
  color: #fff;
}

/* Full-width */
.fs-btn-block { width: 100%; }

/* Icon button */
.fs-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  -webkit-tap-highlight-color: transparent;
}
.fs-icon-btn:active { transform: scale(0.92); }

/* ══════════════════════════════════════
   CARDS
   ══════════════════════════════════════ */
.fs-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-smooth),
              box-shadow var(--duration-normal) ease;
}
.fs-card:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(14, 165, 233, 0.06);
}
.fs-card-flat {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.fs-card-interactive {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fs-card-interactive:active { transform: scale(0.98); }

/* Section card (for mypage, admin panels) */
.fs-section {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.fs-section-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ══════════════════════════════════════
   INPUTS
   ══════════════════════════════════════ */
.fs-input {
  width: 100%;
  background: var(--slate-50);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--duration-fast) ease;
  outline: none;
}
.fs-input::placeholder { color: var(--text-muted); font-weight: 400; }
.fs-input:focus {
  background: #fff;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}
.fs-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.fs-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.fs-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.fs-checkbox {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 0.375rem;
  accent-color: var(--brand-500);
  cursor: pointer;
}

/* ══════════════════════════════════════
   BADGES
   ══════════════════════════════════════ */
.fs-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  white-space: nowrap;
  line-height: 1.3;
}
.fs-badge-brand    { background: var(--brand-100); color: var(--brand-700); }
.fs-badge-accent   { background: var(--accent-100); color: var(--accent-600); }
.fs-badge-warm     { background: var(--warm-100); color: var(--warm-600); }
.fs-badge-danger   { background: var(--danger-100); color: var(--danger-600); }
.fs-badge-slate    { background: var(--slate-100); color: var(--slate-600); }
.fs-badge-success  { background: #d1fae5; color: #065f46; }
.fs-badge-pending  { background: var(--warm-100); color: #92400e; }
.fs-badge-kakao    { background: #FEE500; color: #191919; }
.fs-badge-naver    { background: #d1fae5; color: #03C75A; }
.fs-badge-freshwater { background: #dcfce7; color: #15803d; }
.fs-badge-saltwater  { background: #dbeafe; color: #1d4ed8; }

/* Dot badges */
.fs-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  display: inline-block;
  flex-shrink: 0;
}
.fs-dot-online  { background: var(--accent-400); }
.fs-dot-offline { background: var(--slate-300); }
.fs-dot-warning { background: var(--warm-400); }

/* Notification count */
.fs-count-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.375rem;
  background: var(--danger-500);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ══════════════════════════════════════
   MODALS & OVERLAYS
   ══════════════════════════════════════ */
.fs-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
@media (min-width: 640px) {
  .fs-overlay { align-items: center; }
}

.fs-modal {
  background: var(--bg-card);
  width: 100%;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  box-shadow: var(--shadow-xl);
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
@media (min-width: 640px) {
  .fs-modal {
    max-width: 28rem;
    border-radius: var(--radius-2xl);
  }
}

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

/* Bottom Sheet */
.fs-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--bg-card);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  box-shadow: var(--shadow-xl);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

/* ══════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════ */

/* Top nav (customer) */
.fs-topnav {
  position: sticky;
  top: 0;
  z-index: 40;
  transition: all var(--duration-normal) ease;
}

/* Bottom tab bar (admin) */
.fs-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  padding-bottom: env(safe-area-inset-bottom);
}
.fs-tabbar-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 4rem;
}
.fs-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  padding: 0.25rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  transition: color var(--duration-fast) ease;
  cursor: pointer;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
}
.fs-tab-item i { font-size: 1.25rem; transition: color var(--duration-fast) ease; }
.fs-tab-item.active { color: var(--brand-600); }
.fs-tab-item.active i { color: var(--brand-500); }

/* ══════════════════════════════════════
   TOAST NOTIFICATIONS
   ══════════════════════════════════════ */
.fs-toast-container {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: calc(100% - 2rem);
  max-width: 24rem;
  pointer-events: none;
}
.fs-toast {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: fs-slideDown 0.35s var(--ease-out) both;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.fs-toast-success { background: #065f46; color: #d1fae5; }
.fs-toast-error   { background: #991b1b; color: #fee2e2; }
.fs-toast-info    { background: var(--navy-900); color: var(--brand-200); }
.fs-toast-warning { background: #92400e; color: var(--warm-100); }

/* ══════════════════════════════════════
   STATUS BADGES (reservation status)
   ══════════════════════════════════════ */
.status-confirmed  { background: #d1fae5; color: #065f46; }
.status-pending    { background: #fef3c7; color: #92400e; }
.status-cancelled  { background: #fee2e2; color: #991b1b; }
.status-completed  { background: #f1f5f9; color: #475569; }
.status-expired    { background: #f1f5f9; color: #64748b; }
.status-refunded   { background: #faf5ff; color: #7c3aed; }

/* ══════════════════════════════════════
   SPOT IMAGE OVERLAY
   ══════════════════════════════════════ */
.fs-img-overlay {
  position: relative;
  overflow: hidden;
}
.fs-img-overlay::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
  pointer-events: none;
}
.fs-img-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}
.fs-card:hover .fs-img-overlay img { transform: scale(1.05); }

/* ══════════════════════════════════════
   SKELETON LOADING
   ══════════════════════════════════════ */
.fs-skeleton {
  background: linear-gradient(90deg, var(--slate-100) 25%, var(--slate-200) 50%, var(--slate-100) 75%);
  background-size: 200% 100%;
  animation: fs-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

/* ══════════════════════════════════════
   EMPTY STATES
   ══════════════════════════════════════ */
.fs-empty {
  text-align: center;
  padding: 3rem 1.5rem;
}
.fs-empty-icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-xl);
  background: var(--slate-50);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.fs-empty-icon i { font-size: 1.5rem; color: var(--slate-300); }
.fs-empty-title { font-size: 0.9375rem; font-weight: 700; color: var(--text-primary); }
.fs-empty-desc  { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.375rem; }

/* ══════════════════════════════════════
   DIVIDERS
   ══════════════════════════════════════ */
.fs-divider {
  height: 1px;
  background: var(--border-light);
  border: none;
}

/* Wave divider */
.wave-divider {
  position: relative;
  overflow: hidden;
  line-height: 0;
  margin-top: -2px;
}
.wave-divider .wave-track {
  display: flex;
  width: 200%;
  animation: fs-wave 12s linear infinite;
}
.wave-divider svg {
  display: block;
  width: 50%;
  height: 56px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   STAT CARDS (admin dashboard)
   ══════════════════════════════════════ */
.fs-stat-card {
  padding: 1rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}
.fs-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.fs-stat-card.stat-brand::before  { background: linear-gradient(90deg, var(--brand-400), var(--brand-600)); }
.fs-stat-card.stat-accent::before { background: linear-gradient(90deg, var(--accent-400), var(--accent-600)); }
.fs-stat-card.stat-warm::before   { background: linear-gradient(90deg, var(--warm-400), var(--warm-600)); }
.fs-stat-card.stat-danger::before { background: linear-gradient(90deg, var(--danger-400), var(--danger-600)); }

.fs-stat-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fs-stat-value {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.fs-stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════
   STEP INDICATOR
   ══════════════════════════════════════ */
.fs-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.fs-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.fs-step-dot {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  transition: all var(--duration-normal) ease;
}
.fs-step-dot.active {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
}
.fs-step-dot.inactive {
  background: #fff;
  border: 2px solid var(--brand-200);
  color: var(--brand-300);
}
.fs-step-dot.completed {
  background: var(--accent-500);
  color: #fff;
}
.fs-step-line {
  width: 2rem;
  height: 2px;
  margin: 0 0.5rem;
  border-radius: 1px;
}
.fs-step-line.active { background: var(--brand-400); }
.fs-step-line.inactive { background: var(--brand-200); }

/* ══════════════════════════════════════
   FILTER CHIPS
   ══════════════════════════════════════ */
.fs-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1.5px solid var(--border-light);
  background: #fff;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  -webkit-tap-highlight-color: transparent;
}
.fs-chip:hover { border-color: var(--brand-300); color: var(--brand-600); }
.fs-chip.active {
  background: var(--brand-500);
  color: #fff;
  border-color: var(--brand-500);
}

/* ══════════════════════════════════════
   ICON CONTAINERS
   ══════════════════════════════════════ */
.fs-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}
.fs-icon-box-sm { width: 1.75rem; height: 1.75rem; }
.fs-icon-box-md { width: 2.25rem; height: 2.25rem; }
.fs-icon-box-lg { width: 3rem; height: 3rem; }
.fs-icon-box-xl { width: 4rem; height: 4rem; border-radius: var(--radius-xl); }

/* ══════════════════════════════════════
   AVATAR
   ══════════════════════════════════════ */
.fs-avatar {
  border-radius: var(--radius-full);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fs-avatar-sm  { width: 2rem; height: 2rem; }
.fs-avatar-md  { width: 2.5rem; height: 2.5rem; }
.fs-avatar-lg  { width: 3.5rem; height: 3.5rem; }
.fs-avatar-xl  { width: 5rem; height: 5rem; }
.fs-avatar-ring {
  padding: 3px;
  background: linear-gradient(135deg, var(--accent-400), var(--brand-500), #6366f1);
  border-radius: var(--radius-full);
}

/* ══════════════════════════════════════
   PROGRESS BAR
   ══════════════════════════════════════ */
.fs-progress {
  height: 0.375rem;
  background: var(--slate-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.fs-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
  transition: width var(--duration-slow) var(--ease-out);
}

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */
@keyframes fs-fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fs-slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fs-slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fs-scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes fs-float {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-8px); }
}
@keyframes fs-wave {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes fs-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes fs-pulse-ring {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}
@keyframes fs-spin {
  to { transform: rotate(360deg); }
}
@keyframes fs-countUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Animation utilities */
.fs-fadeIn   { animation: fs-fadeIn 0.5s var(--ease-out) both; }
.fs-slideUp  { animation: fs-slideUp 0.6s var(--ease-out) both; }
.fs-scaleIn  { animation: fs-scaleIn 0.4s var(--ease-out) both; }
.fs-float    { animation: fs-float 3.5s ease-in-out infinite; }
.fs-spin     { animation: fs-spin 1s linear infinite; }

/* Stagger delays */
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.2s; }
.delay-5 { animation-delay: 0.25s; }
.delay-6 { animation-delay: 0.3s; }

/* Pulse dot */
.fs-pulse { position: relative; }
.fs-pulse::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-full);
  animation: fs-pulse-ring 2s ease-out infinite;
}
.fs-pulse-green::before { background: rgba(52, 211, 153, 0.4); }
.fs-pulse-brand::before { background: rgba(14, 165, 233, 0.4); }

/* ══════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════ */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(14, 165, 233, 0.2) transparent;
}
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(14, 165, 233, 0.22);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(14, 165, 233, 0.4);
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ══════════════════════════════════════
   HAMBURGER MENU
   ══════════════════════════════════════ */
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
#hamburgerBtn.open .line1 { transform: translateY(7px) rotate(45deg); }
#hamburgerBtn.open .line2 { opacity: 0; }
#hamburgerBtn.open .line3 { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.fs-mobile-menu {
  transition: max-height 0.35s var(--ease-out), opacity 0.25s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
.fs-mobile-menu.open {
  max-height: 320px;
  opacity: 1;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.fs-footer {
  color: var(--slate-400);
}
.fs-footer a {
  color: var(--slate-400);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}
.fs-footer a:hover { color: var(--brand-300); }

/* ══════════════════════════════════════
   PWA INSTALL BANNER
   ══════════════════════════════════════ */
.fs-pwa-banner {
  position: fixed;
  bottom: 1rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 500;
  border-radius: var(--radius-xl);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-xl);
  animation: fs-slideUp 0.5s var(--ease-out) both;
}

/* ══════════════════════════════════════
   FLOATING ACTION BUTTON
   ══════════════════════════════════════ */
.fs-fab {
  position: fixed;
  z-index: 300;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: none;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-smooth);
  -webkit-tap-highlight-color: transparent;
}
.fs-fab:active { transform: scale(0.92); }

/* ══════════════════════════════════════
   UTILITY CLASSES
   ══════════════════════════════════════ */
.fs-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fs-line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fs-safe-bottom {
  padding-bottom: env(safe-area-inset-bottom);
}

/* Focus visible ring */
.fs-focus-ring:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ══════════════════════════════════════
   DARK MODE (system preference)
   ══════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-base:      var(--navy-900);
    --bg-card:      var(--navy-800);
    --bg-elevated:  #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted:   #64748b;
    --border-light: rgba(255, 255, 255, 0.08);
    --border-DEFAULT: rgba(255, 255, 255, 0.12);
  }

  .fs-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
  }
  .fs-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--brand-400);
  }
}

/* ══════════════════════════════════════
   RESPONSIVE HELPERS
   ══════════════════════════════════════ */
@media (max-width: 640px) {
  .fs-btn-lg { padding: 0.875rem 1.5rem; font-size: 0.9375rem; }
  .fs-btn-xl { padding: 1rem 2rem; font-size: 1rem; }
  .fs-stat-value { font-size: 1.5rem; }
}

/* Print styles */
@media print {
  .fs-tabbar, .fs-fab, .fs-pwa-banner, .fs-toast-container,
  .glass-nav, .fs-topnav { display: none !important; }
  .fs-card:hover { transform: none; box-shadow: none; }
}
