/* ============================================================
   FULLSEWA DESIGN SYSTEM v3.0 — Green · White · Black
   ============================================================ */

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

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Brand */
  --brand:          #16a34a;
  --brand-dark:     #15803d;
  --brand-darker:   #14532d;
  --brand-light:    #dcfce7;
  --brand-50:       #f0fdf4;
  --accent:         #22c55e;
  --accent-light:   #86efac;
  --brand-gradient: linear-gradient(135deg, #16a34a 0%, #15803d 100%);

  /* Neutrals */
  --black:        #0f172a;
  --gray-950:     #0f172a;
  --gray-900:     #111827;
  --gray-800:     #1f2937;
  --gray-700:     #374151;
  --gray-600:     #4b5563;
  --gray-500:     #6b7280;
  --gray-400:     #9ca3af;
  --gray-300:     #d1d5db;
  --gray-200:     #e5e7eb;
  --gray-100:     #f3f4f6;
  --gray-50:      #f9fafb;
  --white:        #ffffff;

  /* Semantic */
  --success:      #16a34a;
  --info:         #0284c7;
  --warning:      #d97706;
  --error:        #dc2626;
  --error-light:  #fef2f2;

  /* Surfaces */
  --topbar-bg:    #0f172a;
  --sidebar-bg:   #ffffff;
  --page-bg:      #f1f5f9;
  --card-bg:      #ffffff;

  /* Typography */
  --font:         'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Shadows */
  --shadow-xs:    0 1px 2px rgba(0,0,0,.05);
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:       0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-md:    0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-lg:    0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  --shadow-brand: 0 4px 14px rgba(22,163,74,.35);

  /* Radius */
  --radius-xs:    4px;
  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-full:  9999px;

  /* Layout */
  --sidebar-w:    260px;
  --topbar-h:     60px;
  --container:    1280px;

  /* Transitions */
  --t:            .18s ease;
  --t-slow:       .3s ease;
}



/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--page-bg);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
input, textarea, select, button { font-family: inherit; }
ul { list-style: none; }

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ═══════════════════════════════════════════════════════════════
   APP LAYOUT — Sidebar + Topbar (authenticated)
   ═══════════════════════════════════════════════════════════════ */

/* ── Top Bar ─────────────────────────────────────────────────── */
.fs-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--topbar-bg);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.fs-topbar-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.fs-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.fs-logo img { height: 32px; width: auto; }
.fs-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
}
.fs-logo-text span { color: var(--accent); }

.fs-search-wrap {
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: var(--t);
}
.fs-search-wrap:focus-within {
  background: rgba(255,255,255,.14);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22,163,74,.2);
}
.fs-search-wrap select {
  background: rgba(255,255,255,.1);
  border: none;
  border-right: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.7);
  padding: 0 12px;
  font-size: 12px;
  height: 38px;
  outline: none;
  cursor: pointer;
}
.fs-search-wrap select option { background: var(--gray-900); color: #fff; }
.fs-search-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  padding: 9px 14px;
  font-size: 14px;
}
.fs-search-wrap input::placeholder { color: rgba(255,255,255,.4); }
.fs-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--brand, #16a34a);
  border: none;
  padding: 0 18px;
  height: 38px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: var(--t);
}
.fs-search-btn:hover { background: var(--brand-dark, #15803d); }
.fs-search-btn-label { font-size: 13px; letter-spacing: .2px; }
@media (max-width: 900px) { .fs-search-btn-label { display: none; } }

/* Light search bar for white pages (listing pages, filters) */
.fs-search-light {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--gray-300, #d1d5db);
  border-radius: var(--radius-full, 9999px);
  overflow: hidden;
  transition: var(--t);
}
.fs-search-light:focus-within {
  border-color: var(--brand, #16a34a);
  box-shadow: 0 0 0 3px rgba(22,163,74,.12);
}
.fs-search-light input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--gray-900, #111827);
}
.fs-search-light input::placeholder { color: var(--gray-400, #9ca3af); }

/* Stretched link: put .fs-stretched-link on a card's main anchor to make the
   whole card clickable; inner buttons/links stay clickable via z-index. */
.mp-item-card, .fs-card-clickable { position: relative; }
.fs-stretched-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.mp-item-card .mp-item-card-footer,
.mp-item-card form,
.fs-card-clickable .fs-btn,
.fs-card-clickable form,
.mp-item-card a:not(.fs-stretched-link),
.fs-card-clickable a:not(.fs-stretched-link),
.mp-item-card .mp-btn { position: relative; z-index: 2; }

.fs-topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fs-topbar-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 6px 10px;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--t);
  line-height: 1.3;
  white-space: nowrap;
}
.fs-topbar-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.fs-topbar-link.keep { border: 1.5px solid rgba(255,255,255,.2); }

.fs-cart-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: var(--t);
  position: relative;
}
.fs-cart-btn:hover { background: rgba(255,255,255,.1); }
.fs-cart-count {
  position: absolute;
  top: 2px;
  left: 26px;
  min-width: 16px;
  height: 16px;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ── Notification badge ──────────────────────────────────────── */
.fs-notif-badge {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 18px;
  height: 18px;
  background: #ef4444;
  color: #fff;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--topbar-bg);
}

/* ── Navbar (sub navigation) ─────────────────────────────────── */
.fs-navbar {
  position: fixed;
  top: var(--topbar-h);
  left: 0; right: 0;
  height: 44px;
  background: #1a2035;
  z-index: 999;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.fs-navbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2px;
  overflow-x: auto;
}
.fs-navbar-inner::-webkit-scrollbar { display: none; }
.fs-navbar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 100%;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  white-space: nowrap;
  transition: var(--t);
  border-bottom: 2px solid transparent;
}
.fs-navbar-link:hover { color: #fff; }
.fs-navbar-link.active { color: var(--accent); border-bottom-color: var(--accent); }
.fs-navbar-link i { font-size: 13px; }

/* Public layout pads for both topbar + navbar */
body { padding-top: calc(var(--topbar-h) + 44px); }

/* ── Sidebar ─────────────────────────────────────────────────── */
.fs-sidebar {
  position: fixed;
  top: calc(var(--topbar-h) + 44px);
  left: 0;
  width: var(--sidebar-w);
  height: calc(100vh - var(--topbar-h) - 44px);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--gray-200);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 900;
  transition: transform var(--t-slow);
  display: flex;
  flex-direction: column;
}
.fs-sidebar::-webkit-scrollbar { width: 4px; }

.fs-sidebar-section { padding: 8px 12px; }
.fs-sidebar-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 8px 4px;
}
.fs-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: var(--t);
  position: relative;
}
.fs-sidebar-link:hover {
  background: var(--brand-50);
  color: var(--brand);
}
.fs-sidebar-link.active {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 600;
}
.fs-sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  background: var(--brand);
  border-radius: 0 2px 2px 0;
}
.fs-sidebar-link i {
  width: 20px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}
.fs-sidebar-link .fs-sidebar-badge {
  margin-left: auto;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}
.fs-sidebar-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 6px 12px;
}

/* ── Page Layout with sidebar ────────────────────────────────── */
.fs-app-layout {
  padding-left: var(--sidebar-w);
  min-height: 100vh;
}
.fs-page-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 20px;
}
.fs-page-wrap-wide { padding: 24px 24px; }

/* ── Content Sidebar (right panel) ──────────────────────────── */
.fs-content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}

/* ═══════════════════════════════════════════════════════════════
   CONTAINERS
   ═══════════════════════════════════════════════════════════════ */
.fs-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.fs-container-sm { max-width: 680px; margin: 0 auto; padding: 0 20px; }
.fs-container-md { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* ═══════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════ */
.fs-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}
.fs-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fs-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
}
.fs-card-body { padding: 20px; }
.fs-card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}
.fs-card-hover {
  transition: transform var(--t), box-shadow var(--t);
  cursor: pointer;
}
.fs-card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.fs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--t);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.fs-btn:disabled { opacity: .55; cursor: not-allowed; }

.fs-btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.fs-btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); box-shadow: var(--shadow-brand); }

.fs-btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.fs-btn-outline:hover { background: var(--brand-light); }

.fs-btn-dark {
  background: var(--gray-900);
  color: #fff;
  border-color: var(--gray-900);
}
.fs-btn-dark:hover { background: var(--gray-800); }

.fs-btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border-color: transparent;
}
.fs-btn-ghost:hover { background: var(--gray-100); color: var(--gray-900); }

.fs-btn-danger {
  background: var(--error);
  color: #fff;
  border-color: var(--error);
}
.fs-btn-danger:hover { background: #b91c1c; }

.fs-btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: var(--radius-xs); }
.fs-btn-lg { padding: 12px 28px; font-size: 15px; border-radius: var(--radius-sm); }
.fs-btn-xl { padding: 14px 32px; font-size: 16px; border-radius: var(--radius-sm); }
.fs-btn-block { width: 100%; }
.fs-btn-icon { padding: 9px; border-radius: 50%; }
.fs-btn-icon-sm { padding: 6px; border-radius: 50%; }

/* ═══════════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════════ */
.fs-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.6;
}
.fs-badge-success { background: #dcfce7; color: #15803d; }
.fs-badge-warning { background: #fef3c7; color: #92400e; }
.fs-badge-danger  { background: #fee2e2; color: #dc2626; }
.fs-badge-info    { background: #e0f2fe; color: #0369a1; }
.fs-badge-brand   { background: var(--brand-light); color: var(--brand-dark); }
.fs-badge-dark    { background: var(--gray-900); color: #fff; }
.fs-badge-gray    { background: var(--gray-100); color: var(--gray-600); }

/* ═══════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════ */
.fs-form-group { display: flex; flex-direction: column; gap: 5px; }
.fs-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}
.fs-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--gray-900);
  background: #fff;
  transition: var(--t);
  outline: none;
  appearance: none;
}
.fs-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22,163,74,.15);
}
.fs-input::placeholder { color: var(--gray-400); }
.fs-input-icon { position: relative; }
.fs-input-icon > i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 14px;
  pointer-events: none;
}
.fs-input-icon > .fs-input { padding-left: 38px; }
.fs-select { appearance: none; cursor: pointer; 

    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--gray-900);
    background: #fff;
    transition: var(--t);
    outline: none;
    appearance: none;
}
.fs-textarea { resize: vertical; min-height: 100px; }
.fs-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fs-form-help { font-size: 12px; color: var(--gray-500); margin-top: 3px; }
.fs-form-error { font-size: 12px; color: var(--error); margin-top: 3px; }

/* ═══════════════════════════════════════════════════════════════
   PRODUCT CARDS
   ═══════════════════════════════════════════════════════════════ */
.fs-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.fs-product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--t);
}
.fs-product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.fs-product-card-img {
  height: 190px;
  overflow: hidden;
  background: var(--gray-100);
  position: relative;
}
.fs-product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.fs-product-card:hover .fs-product-card-img img { transform: scale(1.05); }
.fs-product-badge {
  position: absolute;
  top: 8px; left: 8px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  color: #fff;
}
.fs-product-badge.sale { background: var(--brand); }
.fs-product-badge.hot { background: #ef4444; }
.fs-product-card-body { padding: 12px 14px; flex: 1; }
.fs-product-name { font-size: 14px; font-weight: 600; color: var(--gray-900); margin-bottom: 4px; line-height: 1.4; }
.fs-product-meta { font-size: 12px; color: var(--gray-500); margin-bottom: 6px; }
.fs-product-price { font-size: 16px; font-weight: 700; color: var(--brand-dark); }
.fs-product-old-price { font-size: 13px; color: var(--gray-400); text-decoration: line-through; margin-left: 4px; }
.fs-product-stars { font-size: 12px; color: #f59e0b; margin-top: 4px; }
.fs-product-card-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   SHOP CARDS
   ═══════════════════════════════════════════════════════════════ */
.fs-shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.fs-shop-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: var(--t);
}
.fs-shop-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.fs-shop-card-img {
  height: 110px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 36px;
}
.fs-shop-card-img img { width: 100%; height: 100%; object-fit: cover; }
.fs-shop-card-body { padding: 12px 14px; }
.fs-shop-name { font-size: 14px; font-weight: 700; color: var(--gray-900); }
.fs-shop-meta { font-size: 12px; color: var(--gray-500); margin-top: 3px; }

/* ═══════════════════════════════════════════════════════════════
   PROFESSIONAL CARDS
   ═══════════════════════════════════════════════════════════════ */
.fs-pro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.fs-pro-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: var(--t);
}
.fs-pro-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.fs-pro-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin: 0 auto 12px;
  overflow: hidden;
  border: 3px solid var(--brand-light);
}
.fs-pro-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fs-pro-name { font-size: 14px; font-weight: 700; color: var(--gray-900); }
.fs-pro-title { font-size: 12.5px; color: var(--brand); font-weight: 600; margin-top: 3px; }
.fs-pro-meta { font-size: 12px; color: var(--gray-500); margin-top: 5px; line-height: 1.5; }
.fs-pro-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--brand);
  font-weight: 600;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   TASK CARDS
   ═══════════════════════════════════════════════════════════════ */
.fs-task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.fs-task-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  padding: 18px;
  text-decoration: none;
  display: block;
  transition: var(--t);
}
.fs-task-card:hover { box-shadow: var(--shadow-md); border-color: var(--brand-light); transform: translateY(-2px); }
.fs-task-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; gap: 8px; }
.fs-task-title { font-size: 15px; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; line-height: 1.4; }
.fs-task-meta { font-size: 12.5px; color: var(--gray-500); margin-bottom: 8px; }
.fs-task-budget { font-size: 17px; font-weight: 800; color: var(--brand-dark); margin-bottom: 10px; }
.fs-task-footer { display: flex; align-items: center; font-size: 12.5px; color: var(--gray-500); border-top: 1px solid var(--gray-100); padding-top: 10px; margin-top: 10px; }

/* ═══════════════════════════════════════════════════════════════
   SERVICE CARDS
   ═══════════════════════════════════════════════════════════════ */
.fs-svc-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: var(--t);
}
.fs-svc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.fs-svc-img {
  height: 140px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: 36px;
  overflow: hidden;
}
.fs-svc-img img { width: 100%; height: 100%; object-fit: cover; }
.fs-svc-body { padding: 12px 14px; }
.fs-svc-provider { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.fs-svc-provider-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.fs-svc-title { font-size: 14px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; line-height: 1.4; }
.fs-svc-price { font-size: 14px; font-weight: 700; color: var(--brand-dark); }

/* ═══════════════════════════════════════════════════════════════
   FEED / SOCIAL POSTS
   ═══════════════════════════════════════════════════════════════ */
.fs-feed-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-xs);
  margin-bottom: 16px;
}
.fs-feed-header { padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.fs-feed-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--brand-dark);
  border: 2px solid var(--brand-light);
}
.fs-feed-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fs-feed-author { font-size: 14px; font-weight: 700; color: var(--gray-900); }
.fs-feed-time { font-size: 12px; color: var(--gray-400); }
.fs-feed-body { padding: 0 16px 14px; }
.fs-feed-text { font-size: 14.5px; color: var(--gray-800); line-height: 1.7; }
.fs-feed-image { width: 100%; max-height: 400px; object-fit: cover; margin: 10px 0; border-radius: var(--radius-sm); }
.fs-feed-actions {
  padding: 8px 16px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  gap: 4px;
}
.fs-feed-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--gray-600);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t);
}
.fs-feed-action-btn:hover { background: var(--gray-100); color: var(--gray-900); }
.fs-feed-action-btn.liked { color: var(--brand); }

/* ═══════════════════════════════════════════════════════════════
   SECTIONS & LAYOUTS
   ═══════════════════════════════════════════════════════════════ */
.fs-section { margin: 32px 0; }
.fs-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.fs-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
}
.fs-section-title span { color: var(--brand); }
.fs-see-all {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--t);
  white-space: nowrap;
}
.fs-see-all:hover { color: var(--brand-dark); }

/* ═══════════════════════════════════════════════════════════════
   HERO SECTIONS
   ═══════════════════════════════════════════════════════════════ */
.fs-hero {
  background: linear-gradient(135deg, var(--black) 0%, #1a2e1a 50%, #0d2010 100%);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.fs-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(22,163,74,.2) 0%, transparent 70%);
  pointer-events: none;
}
.fs-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(34,197,94,.12) 0%, transparent 70%);
  pointer-events: none;
}
.fs-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.fs-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.3);
  color: var(--accent-light);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.fs-hero h1 {
  font-size: 54px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}
.fs-hero h1 span { color: var(--accent); }
.fs-hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,.7);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.fs-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.fs-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.fs-hero-stat {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  backdrop-filter: blur(10px);
}
.fs-hero-stat-num {
  font-size: 26px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 5px;
}
.fs-hero-stat-label { font-size: 12px; color: rgba(255,255,255,.55); }

/* Page hero (inner pages) */
.fs-page-hero {
  background: linear-gradient(135deg, var(--black), #1a2e1a);
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  text-align: center;
}

.fs-page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 16px;
  text-align: center;
}

.fs-page-hero h1 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.fs-page-hero p {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
}

.fs-page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.fs-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
  margin-bottom: 6px;
}

.fs-breadcrumb a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
}

.fs-breadcrumb a:hover {
  color: var(--accent);
}

.fs-breadcrumb span {
  font-size: 10px;
}
/* ═══════════════════════════════════════════════════════════════
   FEATURE STRIP (homepage)
   ═══════════════════════════════════════════════════════════════ */
.fs-feature-strip {
  background: var(--card-bg);
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 0;
  box-shadow: var(--shadow-xs);
}
.fs-features { display: flex; gap: 0; overflow-x: auto; }
.fs-features::-webkit-scrollbar { display: none; }
.fs-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  flex: 1;
  min-width: 180px;
  border-right: 1px solid var(--gray-100);
}
.fs-feature:last-child { border-right: none; }
.fs-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 18px;
  flex-shrink: 0;
}
.fs-feature-text strong { display: block; font-size: 13.5px; font-weight: 700; color: var(--gray-900); }
.fs-feature-text span { font-size: 12px; color: var(--gray-500); }

/* ═══════════════════════════════════════════════════════════════
   CATEGORY STRIP
   ═══════════════════════════════════════════════════════════════ */
.fs-cat-strip {
  background: var(--card-bg);
  border-bottom: 1px solid var(--gray-100);
}
.fs-cat-strip-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 24px;
}
.fs-cat-strip-inner::-webkit-scrollbar { display: none; }
.fs-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  text-decoration: none;
  white-space: nowrap;
  transition: var(--t);
  border: 1.5px solid transparent;
  flex-shrink: 0;
}
.fs-cat-item:hover { background: var(--brand-50); color: var(--brand); border-color: var(--brand-light); }
.fs-cat-item.active { background: var(--brand-light); color: var(--brand-dark); border-color: var(--brand); }
.fs-cat-item i { font-size: 18px; }

/* ═══════════════════════════════════════════════════════════════
   SERVICE SECTOR STRIP  (replaces cat-strip on homepage)
   ═══════════════════════════════════════════════════════════════ */
.fs-svc-strip {
  background: #fff;
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 1px 0 var(--gray-100);
}
.fs-svc-strip-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 24px;
  scrollbar-width: none;
}
.fs-svc-strip-inner::-webkit-scrollbar { display: none; }
.fs-svc-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid var(--gray-200);
  background: #fff;
  flex-shrink: 0;
  transition: var(--t);
}
.fs-svc-pill:hover {
  background: var(--brand-50);
  color: var(--brand);
  border-color: var(--brand-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px -4px rgba(22,163,74,.20);
}
.fs-svc-pill.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 4px 12px -4px rgba(22,163,74,.35);
}
.fs-svc-pill-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  overflow: hidden;
}
.fs-svc-pill.active .fs-svc-pill-icon { background: rgba(255,255,255,.25); color: #fff; }
.fs-svc-pill-label { line-height: 1; }

/* ═══════════════════════════════════════════════════════════════
   BANNER / PROMO
   ═══════════════════════════════════════════════════════════════ */
.fs-banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.fs-banner {
  border-radius: var(--radius);
  padding: 28px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.fs-banner h3 { font-size: 18px; font-weight: 800; margin-bottom: 5px; }
.fs-banner p { font-size: 13px; opacity: .8; margin-bottom: 14px; }
.fs-banner-cta {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,.2);
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  text-decoration: none;
  display: inline-block;
  transition: var(--t);
  backdrop-filter: blur(4px);
}
.fs-banner-cta:hover { background: rgba(255,255,255,.35); }
.fs-banner-1 { background: linear-gradient(135deg, #14532d, var(--brand)); }
.fs-banner-2 { background: linear-gradient(135deg, #0f172a, #1e3a5f); }
.fs-banner-3 { background: linear-gradient(135deg, #451a03, #92400e); }

/* ═══════════════════════════════════════════════════════════════
   STATS
   ═══════════════════════════════════════════════════════════════ */
.fs-stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
}
.fs-stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: 4px;
}
.fs-stat-label { font-size: 13px; color: var(--gray-500); font-weight: 500; }
.fs-stat-icon { font-size: 24px; color: var(--brand); opacity: .7; }

/* ═══════════════════════════════════════════════════════════════
   EMPTY STATES
   ═══════════════════════════════════════════════════════════════ */
.fs-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--gray-500);
}
.fs-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--gray-400);
  margin: 0 auto 18px;
}
.fs-empty h3 { font-size: 17px; font-weight: 700; color: var(--gray-800); margin-bottom: 8px; }
.fs-empty p { font-size: 14px; color: var(--gray-500); max-width: 320px; margin: 0 auto 20px; line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════════
   TOASTS
   ═══════════════════════════════════════════════════════════════ */
.fs-toasts {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.fs-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  min-width: 280px;
  max-width: 400px;
  pointer-events: all;
  animation: toastIn .25s ease;
  border-left: 4px solid;
}
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes toastOut {
  to { transform: translateX(120%); opacity: 0; }
}
.fs-toast.success { background: #f0fdf4; border-color: var(--brand); color: var(--brand-dark); }
.fs-toast.error { background: #fef2f2; border-color: var(--error); color: #b91c1c; }
.fs-toast.info { background: #eff6ff; border-color: var(--info); color: #1d4ed8; }
.fs-toast.warning { background: #fffbeb; border-color: var(--warning); color: #92400e; }
.fs-toast-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.fs-toast-body { flex: 1; line-height: 1.5; }
.fs-toast-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: inherit;
  opacity: .6;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}
.fs-toast-close:hover { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════════════════════════════════ */
.fs-auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--black) 0%, #1a2e1a 100%);
  padding: 24px 16px;
  position: relative;
  overflow: hidden;
}
.fs-auth-wrap::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(22,163,74,.15) 0%, transparent 70%);
}
.fs-auth-box {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}
.fs-auth-logo {
  text-align: center;
  margin-bottom: 28px;
}
.fs-auth-logo img { height: 40px; margin: 0 auto 10px; }
.fs-auth-logo h2 { font-size: 22px; font-weight: 800; color: var(--gray-900); }
.fs-auth-logo p { font-size: 14px; color: var(--gray-500); margin-top: 4px; }

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD (legacy mp- classes — backward compat)
   ═══════════════════════════════════════════════════════════════ */
:root {
  --mp-primary: var(--brand);
  --mp-primary-dark: var(--brand-dark);
}
.mp-page-header {
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 20px;
}
.mp-page-header-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.mp-page-header h1 { font-size: 22px; font-weight: 800; color: var(--gray-900); }
.mp-page-header p { font-size: 14px; color: var(--gray-500); margin-top: 3px; }
.mp-page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mp-content { padding: 0; }
.mp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mp-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mp-card {
  background: var(--card-bg);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-xs);
}
.mp-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
}
.mp-stat-num { font-size: 26px; font-weight: 900; color: var(--gray-900); }
.mp-stat-label { font-size: 13px; color: var(--gray-500); margin-top: 2px; }
.mp-stat-icon { font-size: 22px; color: var(--brand); opacity: .8; }
.mp-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; border: 1.5px solid transparent; cursor: pointer; transition: var(--t); text-decoration: none; }
.mp-btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.mp-btn-primary:hover { background: var(--brand-dark); }
.mp-btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.mp-btn-outline:hover { background: var(--brand-50); }
.mp-btn-sm { padding: 5px 12px; font-size: 12.5px; }
.mp-empty { text-align: center; padding: 32px 16px; color: var(--gray-500); }
.mp-empty i { font-size: 28px; display: block; margin-bottom: 8px; color: var(--gray-300); }
.mp-empty h3 { font-size: 15px; font-weight: 700; color: var(--gray-700); margin-bottom: 6px; }
.mp-empty p { font-size: 13px; color: var(--gray-400); max-width: 240px; margin: 0 auto 12px; }
.mp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mp-table th { text-align: left; padding: 8px 12px; color: var(--gray-500); font-weight: 600; border-bottom: 2px solid var(--gray-100); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.mp-table td { padding: 12px 12px; border-bottom: 1px solid var(--gray-50); vertical-align: middle; }
.mp-table tr:last-child td { border-bottom: none; }
.mp-table tr:hover td { background: var(--gray-50); }
.mp-table-wrap { overflow-x: auto; }
.mp-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--radius-full); font-size: 11.5px; font-weight: 600; }
.mp-badge-success { background: #dcfce7; color: #15803d; }
.mp-badge-warning { background: #fef3c7; color: #92400e; }
.mp-badge-danger  { background: #fee2e2; color: #dc2626; }
.mp-badge-info    { background: #e0f2fe; color: #0369a1; }
.mp-badge-purple  { background: #f3e8ff; color: #7c3aed; }
.mp-badge-default { background: var(--gray-100); color: var(--gray-600); }
.mp-btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.mp-btn-success:hover { background: var(--brand-dark); }
.mp-btn-danger { background: var(--error); color: #fff; border-color: var(--error); }
.mp-btn-danger:hover { background: #b91c1c; }
.mp-btn-lg { padding: 10px 22px; font-size: 15px; }

/* ─── Listing item cards (tasks, services, professionals) ───── */
.mp-item-card {
  background: var(--card-bg);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
  overflow: hidden;
}
.mp-item-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--brand-light);
}
.mp-item-card-img {
  height: 160px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  font-size: 40px;
  overflow: hidden;
  flex-shrink: 0;
}
.mp-item-card-img img { width: 100%; height: 100%; object-fit: cover; }
.mp-item-card-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mp-item-card-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.mp-item-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  margin: 0;
}
.mp-item-card-title a { color: inherit; }
.mp-item-card-title a:hover { color: var(--brand); }
.mp-item-card-price {
  font-size: 17px;
  font-weight: 900;
  color: var(--brand-dark);
  margin-top: 4px;
}
.mp-item-card-meta {
  font-size: 12.5px;
  color: var(--gray-500);
  margin: 0;
  line-height: 1.45;
}
.mp-grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 16px;
}

/* ─── Filter bar ─────────────────────────────────────────────── */
.mp-filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 14px 16px;
  background: var(--card-bg);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}
.mp-filter-bar .fs-input,
.mp-filter-bar .fs-select { min-width: 0; }
.mp-filter-bar .mp-btn { flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   MARKETPLACE DASHBOARD LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.fs-dashboard-layout { display: flex; min-height: 100vh; }
.fs-dashboard-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--gray-200);
  position: sticky;
  top: calc(var(--topbar-h) + 44px);
  height: calc(100vh - var(--topbar-h) - 44px);
  overflow-y: auto;
}
.fs-dashboard-content { flex: 1; min-width: 0; padding: 24px; background: var(--page-bg); }
.fs-sidebar-nav { padding: 12px 8px; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.fs-footer {
  background: var(--black);
  color: rgba(255,255,255,.6);
  padding: 56px 0 0;
  margin-top: 56px;
}
.fs-footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.fs-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.fs-footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 12px; max-width: 260px; }
.fs-footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 14px; letter-spacing: .05em; text-transform: uppercase; }
.fs-footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,.55); text-decoration: none; padding: 3px 0; transition: var(--t); }
.fs-footer-col a:hover { color: var(--accent); }
.fs-footer-desc { font-size: 14px; color: rgba(255,255,255,.55); margin-top: 12px; line-height: 1.7; max-width: 260px; }
.fs-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 8px;
}
.fs-footer-bottom a { color: rgba(255,255,255,.5); text-decoration: none; margin-left: 16px; }
.fs-footer-bottom a:hover { color: var(--accent); }
.fs-footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-bottom: 12px;
}
.fs-footer-logo img { height: 32px; }
.fs-footer-logo-text { font-size: 22px; font-weight: 900; color: #fff; }
.fs-footer-logo-text span { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV
   ═══════════════════════════════════════════════════════════════ */
.fs-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--card-bg);
  border-top: 1px solid var(--gray-200);
  z-index: 1100;
  box-shadow: 0 -4px 12px rgba(0,0,0,.08);
}
.fs-bottom-nav-inner {
  display: flex;
  height: 100%;
}
.fs-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--gray-500);
  font-size: 10px;
  font-weight: 600;
  transition: var(--t);
  position: relative;
}
.fs-bottom-nav-item.active { color: var(--brand); }
.fs-bottom-nav-item i { font-size: 20px; }
.fs-bottom-nav-item .fs-notif-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 20px);
}

/* ═══════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════ */
.text-brand { color: var(--brand); }
.text-muted { color: var(--gray-500); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11.5px; }
.text-lg { font-size: 17px; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.w-full { width: 100%; }
.rounded { border-radius: var(--radius); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-full { border-radius: var(--radius-full); }
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.sticky-top { position: sticky; top: calc(var(--topbar-h) + 44px + 16px); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ═══════════════════════════════════════════════════════════════
   MISC COMPONENTS
   ═══════════════════════════════════════════════════════════════ */
.fs-divider { height: 1px; background: var(--gray-100); margin: 16px 0; }
.fs-avatar {
  border-radius: 50%;
  overflow: hidden;
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: var(--brand-dark);
  flex-shrink: 0;
}
.fs-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fs-avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.fs-avatar-md { width: 44px; height: 44px; font-size: 16px; }
.fs-avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.fs-avatar-xl { width: 96px; height: 96px; font-size: 32px; }

.fs-profile-cover {
  height: 200px;
  background: linear-gradient(135deg, var(--black), #1a2e1a);
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
  overflow: hidden;
}
.fs-profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.fs-profile-info-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 0 20px 16px;
  margin-top: -32px;
}
.fs-profile-avatar-wrap {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 4px solid #fff;
  overflow: hidden;
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700; color: var(--brand-dark);
  flex-shrink: 0;
  box-shadow: var(--shadow);
}
.fs-profile-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }

.fs-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  transition: var(--t);
  text-decoration: none;
  color: inherit;
}
.fs-list-item:last-child { border-bottom: none; }
.fs-list-item:hover { background: var(--gray-50); }

/* Tabs */
.fs-tabs { display: flex; border-bottom: 2px solid var(--gray-200); gap: 0; overflow-x: auto; }
.fs-tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  text-decoration: none;
  transition: var(--t);
}
.fs-tab:hover { color: var(--gray-800); }
.fs-tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.fs-tab-content { display: none; padding-top: 20px; }
.fs-tab-content.active { display: block; }

/* Progress bar */
.fs-progress { height: 8px; background: var(--gray-100); border-radius: 4px; overflow: hidden; }
.fs-progress-bar { height: 100%; background: var(--brand); border-radius: 4px; transition: width .4s ease; }

/* Skeleton loading */
@keyframes shimmer { to { background-position: 200% 0; } }
.fs-skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* Dropdown */
.fs-dropdown { position: relative; display: inline-block; }
.fs-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  min-width: 180px;
  overflow: hidden;
  animation: dropdownIn .15s ease;
}
@keyframes dropdownIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.fs-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--gray-700);
  cursor: pointer;
  text-decoration: none;
  transition: var(--t);
}
.fs-dropdown-item:hover { background: var(--gray-50); color: var(--brand); }
.fs-dropdown-item.danger:hover { background: #fef2f2; color: var(--error); }
.fs-dropdown-divider { height: 1px; background: var(--gray-100); margin: 4px 0; }

/* Post type tags */
.fs-post-type { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.fs-post-type.job      { background: #dbeafe; color: #1d4ed8; }
.fs-post-type.task     { background: #fef3c7; color: #92400e; }
.fs-post-type.product  { background: var(--brand-light); color: var(--brand-dark); }
.fs-post-type.service  { background: #f3e8ff; color: #7c3aed; }
.fs-post-type.general  { background: var(--gray-100); color: var(--gray-600); }

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR OVERLAY (mobile)
   ═══════════════════════════════════════════════════════════════ */
.fs-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 899;
}
.fs-sidebar-overlay.active { display: block; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .fs-content-grid { grid-template-columns: 1fr 280px; }
}

@media (max-width: 1024px) {
  :root { --sidebar-w: 220px; }
  .fs-hero h1 { font-size: 42px; }
  .mp-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .fs-content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .fs-sidebar { transform: translateX(-100%); }
  .fs-sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .fs-app-layout { padding-left: 0 !important; }
  .fs-dashboard-sidebar { position: fixed; transform: translateX(-100%); }
  .fs-dashboard-sidebar.open { transform: none; }
  .fs-hero-inner { grid-template-columns: 1fr; }
  .fs-hero-stats { grid-template-columns: repeat(4, 1fr); }
  .fs-banner-grid { grid-template-columns: 1fr; }
  .mp-grid-2 { grid-template-columns: 1fr; }
  .mp-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .fs-footer-grid { grid-template-columns: 1fr 1fr; }
  .fs-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --topbar-h: 56px; }
  .fs-hero { padding: 40px 0 36px; }
  .fs-hero h1 { font-size: 32px; }
  .fs-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .fs-product-grid { grid-template-columns: repeat(2, 1fr); }
  .fs-pro-grid { grid-template-columns: repeat(2, 1fr); }
  .fs-task-grid { grid-template-columns: 1fr; }
  .fs-shop-grid { grid-template-columns: repeat(2, 1fr); }
  .mp-grid-3 { grid-template-columns: 1fr; }
  .mp-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .fs-footer-grid { grid-template-columns: 1fr; }
  .fs-search-wrap { display: none; }
  .fs-bottom-nav { display: flex; }
  body { padding-bottom: 60px; }
  .fs-auth-box { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .fs-product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fs-container { padding: 0 14px; }
  .fs-page-wrap { padding: 16px 14px; }
}

/* ═══════════════════════════════════════════════════════════════
   BOOTSTRAP COMPAT SHIM — keep existing templates working
   ═══════════════════════════════════════════════════════════════ */
.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--gray-900);
  background: #fff;
  outline: none;
  appearance: none;
  transition: var(--t);
  font-family: var(--font);
}
.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22,163,74,.15);
}
.form-control::placeholder { color: var(--gray-400); }
.form-select { appearance: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; border: 1.5px solid transparent; cursor: pointer; transition: var(--t); text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); border-color: var(--gray-200); }
.btn-secondary:hover { background: var(--gray-200); }
.btn-danger { background: var(--error); color: #fff; border-color: var(--error); }
.btn-outline-secondary { background: transparent; color: var(--gray-600); border-color: var(--gray-300); }
.btn-outline-secondary:hover { background: var(--gray-100); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.text-muted { color: var(--gray-500) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--error) !important; }
.text-primary { color: var(--brand) !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.p-0 { padding: 0; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.w-100 { width: 100%; }
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 9999px; font-size: 11.5px; font-weight: 600; }
.badge-success, .bg-success { background: #dcfce7; color: #15803d; }
.badge-warning, .bg-warning { background: #fef3c7; color: #92400e; }
.badge-danger, .bg-danger { background: #fee2e2; color: #dc2626; }
.badge-info, .bg-info { background: #e0f2fe; color: #0369a1; }
.badge-secondary, .bg-secondary { background: var(--gray-100); color: var(--gray-600); }
.alert { padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid; margin-bottom: 12px; font-size: 14px; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.alert-danger { background: #fef2f2; border-color: #fecaca; color: #dc2626; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { padding: 10px 12px; text-align: left; border-bottom: 2px solid var(--gray-200); font-weight: 700; color: var(--gray-600); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.table td { padding: 12px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.table-striped tr:nth-child(even) td { background: var(--gray-50); }
.card { background: #fff; border-radius: var(--radius); border: 1px solid var(--gray-200); box-shadow: var(--shadow-xs); overflow: hidden; }
.card-body { padding: 20px; }
.card-header { padding: 14px 20px; border-bottom: 1px solid var(--gray-100); font-weight: 700; }
.row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.col, [class*="col-"] { padding: 0 8px; flex: 1; min-width: 0; }
.col-12 { width: 100%; flex: 0 0 100%; }
.col-6 { width: 50%; flex: 0 0 50%; }
.col-4 { width: 33.333%; flex: 0 0 33.333%; }
.col-3 { width: 25%; flex: 0 0 25%; }
@media (max-width:768px) { [class*="col-md-"] { width:100%; flex:0 0 100%; } }

/* ═══════════════════════════════════════════════════════════════
   FILTER SIDEBAR  (used on allProduct, allShop, etc.)
   ═══════════════════════════════════════════════════════════════ */
.fs-filter-sidebar {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 18px;
  position: sticky;
  top: 78px;
}
.fs-filter-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
  letter-spacing: .01em;
}
.fs-filter-section {
  margin-bottom: 18px;
}
.fs-filter-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
  margin-bottom: 8px;
}
@media (max-width: 900px) {
  .fs-filter-sidebar { position: static; }
}
@media (max-width: 640px) {
  .fs-filter-sidebar { display: none; }
}

/* Shared social navigation, with stable badge slots and keyboard focus. */
.fs-nav-icon{position:relative;display:inline-flex!important;align-items:center;justify-content:center;width:40px;height:42px;color:inherit;flex-shrink:0}.fs-live-badge{position:absolute;right:0;top:0;min-width:17px;padding:1px 3px;font-size:10px;border-radius:12px;background:#dc2626;color:#fff;text-align:center}.fs-nav-menu{position:relative;display:block;padding:10px}.fs-nav-menu summary{cursor:pointer;white-space:nowrap}.fs-nav-menu>div{position:absolute;z-index:1000;background:#fff;color:#172b25;box-shadow:0 8px 30px #0003;border-radius:12px;min-width:175px;right:0;padding:8px}.fs-nav-menu a{display:block;padding:10px;color:inherit}.fs-navbar .fs-nav-menu>div{left:0;right:auto}.fs-search-wrap{position:relative}.fs-search-results{position:absolute;z-index:1100;top:100%;left:0;right:0;background:white;color:#172b25;box-shadow:0 8px 24px #0003;max-height:420px;overflow:auto;border-radius:10px}.fs-search-results a{display:block;padding:10px 14px;color:inherit}.fs-search-results a:hover,.fs-search-results a:focus{background:#e8f5ef}.fs-social-shell{display:grid;grid-template-columns:210px minmax(0,1fr) 250px;gap:24px;padding-top:24px;padding-bottom:80px}.fs-social-shell main{min-width:0}.fs-social-rail{position:sticky;top:90px;padding:10px;align-self:start}.fs-social-rail a{display:flex;gap:12px;padding:10px;color:var(--gray-700);border-radius:8px}.fs-social-rail a:hover{background:#e8f5ef}.fs-social-right{position:sticky;top:90px;align-self:start}.fs-feed-composer{padding:20px;margin-bottom:16px;overflow-wrap:anywhere}.fs-feed-composer h1{font-size:26px}.fs-feed-composer h2{font-size:18px}.fs-feed-tabs{display:flex;gap:16px;overflow:auto;padding:12px 0}.fs-feed-actions{display:flex;gap:6px;flex-wrap:wrap}.fs-feed-media{width:100%;max-height:440px;object-fit:contain;border-radius:12px;margin:8px 0}.fs-feed-body{white-space:pre-wrap}.fs-feed-comments{border-top:1px solid #ddd;padding-top:12px}.fs-feed-comments textarea{width:100%;min-height:65px;padding:8px}.fs-feed-comments blockquote{margin-left:20px;border-left:3px solid #d1e9dc;padding-left:10px}a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #10b981;outline-offset:3px}
@media(max-width:1023px){.fs-social-shell{grid-template-columns:62px minmax(0,1fr)}.fs-social-right{display:none}.fs-social-rail span{display:none}.fs-social-rail a{justify-content:center}.fs-global-actions{gap:2px!important}.fs-navbar-inner{overflow:visible;flex-wrap:wrap}.fs-topbar-link{display:none}}
@media(max-width:767px){.fs-social-shell{display:block;padding:12px}.fs-social-rail,.fs-navbar{display:none!important}.fs-topbar-inner{flex-wrap:wrap!important;gap:8px!important}.fs-topbar .fs-logo{width:92px;min-width:92px}.fs-global-actions{margin-left:auto}.fs-search-wrap{order:3;flex-basis:100%!important;display:flex!important;width:100%}.fs-search-wrap select{max-width:70px}.fs-search-wrap input{min-width:0}.fs-nav-icon{width:32px}.fs-nav-menu{padding:8px}.fs-feed-composer{padding:14px}.fs-bottom-nav{display:block!important}.fs-feed-tabs{gap:18px}.fs-topbar-inner{padding-bottom:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

[hidden]{display:none!important}

.fs-global-actions,.fs-navbar .fs-nav-menu{color:#fff}

/* ══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
   MESSAGES: two panes on desktop (conversations | thread), one full-screen pane at a time on phones
   ══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
.fs-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fs-chat { padding-top: 20px; padding-bottom: 28px; }
.fs-chat-shell { display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); height: clamp(540px, calc(100vh - 200px), 780px); padding: 0; overflow: hidden; }
.fs-chat button:focus-visible, .fs-chat a:focus-visible, .fs-chat textarea:focus-visible, .fs-chat select:focus-visible, .fs-dialog :focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.fs-chat-icon { width: 38px; height: 38px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: var(--gray-600); cursor: pointer; text-decoration: none; font-size: 15px; }
.fs-chat-icon:hover { background: var(--gray-100); color: var(--gray-900); }

/* conversation list */
.fs-chat-side { display: flex; flex-direction: column; min-height: 0; background: #fff; border-right: 1px solid var(--gray-200); }
.fs-chat-side-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 14px 6px 18px; }
.fs-chat-side-head h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.fs-chat-search { display: flex; align-items: center; gap: 8px; margin: 4px 16px 10px; padding: 0 14px; background: var(--gray-100); border-radius: 999px; color: var(--gray-500); }
.fs-chat-search input { flex: 1; min-width: 0; padding: 10px 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--gray-900); }
.fs-chat-search:focus-within { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand); }
.fs-chat-tabs { display: flex; gap: 6px; padding: 0 16px 10px; overflow-x: auto; scrollbar-width: none; }
.fs-chat-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 0; border-radius: 999px; background: transparent; color: var(--gray-600); font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.fs-chat-tabs button:hover { background: var(--gray-100); }
.fs-chat-tabs button[aria-selected="true"] { background: var(--brand-light); color: var(--brand-darker); }
.fs-chat-count { min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.fs-chat-business { display: grid; gap: 4px; padding: 0 16px 10px; font-size: 12px; font-weight: 600; color: var(--gray-600); }
.fs-chat-list { flex: 1; min-height: 0; padding: 0 8px 10px; overflow-y: auto; }

.fs-avatar { width: var(--size, 44px); height: var(--size, 44px); flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-size: calc(var(--size, 44px) * .38); font-weight: 700; letter-spacing: .3px; }
.fs-avatar.is-shop, .fs-avatar.is-company { border-radius: 12px; }
.fs-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.fs-chat-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 12px; color: inherit; text-decoration: none; }
.fs-chat-item:hover { background: var(--gray-50); }
.fs-chat-item.is-active { background: var(--brand-50); }
.fs-chat-item-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.fs-chat-item-top, .fs-chat-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.fs-chat-item-top strong { min-width: 0; overflow: hidden; font-size: 14.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.fs-chat-item-top time { flex: none; font-size: 12px; color: var(--gray-500); }
.fs-chat-preview { min-width: 0; overflow: hidden; font-size: 13.5px; color: var(--gray-500); text-overflow: ellipsis; white-space: nowrap; }
.fs-chat-item.is-unread .fs-chat-preview, .fs-chat-item.is-unread time { color: var(--gray-900); font-weight: 600; }
.fs-chat-pill { flex: none; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 20px; text-align: center; }
.fs-chat-ctx { min-width: 0; overflow: hidden; font-size: 11.5px; color: var(--brand-dark); text-overflow: ellipsis; white-space: nowrap; }
.fs-chat-item.is-skeleton { pointer-events: none; }
.fs-chat-item.is-skeleton .fs-avatar, .fs-chat-item.is-skeleton i { background: linear-gradient(90deg, var(--gray-100), var(--gray-200), var(--gray-100)); background-size: 200% 100%; animation: fs-chat-shimmer 1.3s infinite linear; }
.fs-chat-item.is-skeleton i { display: block; height: 11px; margin: 4px 0; border-radius: 6px; }
.fs-chat-item.is-skeleton i:first-child { width: 50%; }
.fs-chat-item.is-skeleton i:last-child { width: 82%; }
@keyframes fs-chat-shimmer { to { background-position: -200% 0; } }
.fs-chat-empty { padding: 44px 24px; text-align: center; color: var(--gray-500); }
.fs-chat-empty i { color: var(--gray-300); }
.fs-chat-empty h3 { margin: 12px 0 4px; font-size: 16px; color: var(--gray-800); }
.fs-chat-empty p { margin: 0 auto 16px; max-width: 260px; font-size: 13.5px; line-height: 1.5; }
.fs-chat-empty-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* thread */
.fs-chat-main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; }
.fs-chat-blank { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; text-align: center; color: var(--gray-500); }
.fs-chat-blank h2 { margin: 14px 0 4px; font-size: 20px; color: var(--gray-900); }
.fs-chat-blank p { max-width: 300px; margin: 0; font-size: 14px; line-height: 1.55; }
.fs-chat-thread { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.fs-chat-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--gray-200); background: #fff; }
.fs-chat-back { display: none; }
.fs-chat-head-text { flex: 1; min-width: 0; }
.fs-chat-head-text h2 { margin: 0; overflow: hidden; font-size: 16px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.fs-chat-head-text p { margin: 1px 0 0; overflow: hidden; font-size: 12.5px; color: var(--gray-500); text-overflow: ellipsis; white-space: nowrap; }
.fs-chat-head-text p.is-online { color: var(--brand); font-weight: 600; }
.fs-chat-head-text p.is-online::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--accent); }
.fs-chat-findbar { display: flex; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--gray-200); }
.fs-chat-findbar input { flex: 1; min-width: 0; padding: 8px 14px; border: 1px solid var(--gray-300); border-radius: 999px; font: inherit; font-size: 14px; }
.fs-chat-context { display: flex; align-items: center; gap: 12px; margin: 10px 14px 0; padding: 10px 12px; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 12px; }
.fs-chat-context > i { width: 34px; height: 34px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--brand-light); color: var(--brand-dark); }
.fs-chat-context > span { flex: 1; min-width: 0; display: grid; }
.fs-chat-context small { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--gray-500); }
.fs-chat-context strong { overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.fs-chat-context-link { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--brand-dark); text-decoration: none; }
.fs-chat-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 14px 0; padding: 12px 14px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; font-size: 13.5px; color: #92400e; }
.fs-chat-notice p { margin: 0; flex: 1 1 220px; }
.fs-chat-notice div { display: flex; gap: 8px; }

.fs-chat-scroll { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 14px 18px 8px; overflow-y: auto; background: #f4f7f5; overscroll-behavior: contain; }
.fs-chat-loading, .fs-chat-searching { margin: auto; padding: 24px; text-align: center; font-size: 13.5px; color: var(--gray-500); }
.fs-chat-searching { margin: 0 auto 8px; padding: 4px 12px; border-radius: 999px; background: var(--brand-light); color: var(--brand-darker); font-weight: 600; }
.fs-chat-earlier { align-self: center; margin-bottom: 8px; padding: 6px 14px; border: 1px solid var(--gray-300); border-radius: 999px; background: #fff; color: var(--gray-700); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.fs-chat-day { display: flex; justify-content: center; margin: 14px 0 6px; }
.fs-chat-day span { padding: 3px 12px; border-radius: 999px; background: rgba(15, 23, 42, .07); font-size: 12px; font-weight: 600; color: var(--gray-600); }

.fs-chat-row { position: relative; display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.fs-chat-row.is-first { margin-top: 10px; }
.fs-chat-row.is-mine { flex-direction: row-reverse; }
.fs-chat-bubble { max-width: min(72%, 540px); padding: 8px 12px 6px; border-radius: 18px; background: #fff; color: var(--gray-900); box-shadow: 0 1px 1px rgba(15, 23, 42, .07); font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.fs-chat-bubble p { margin: 0; white-space: pre-wrap; }
.fs-chat-bubble a { color: var(--info); }
.is-theirs:not(.is-last) .fs-chat-bubble { border-bottom-left-radius: 6px; }
.is-theirs:not(.is-first) .fs-chat-bubble { border-top-left-radius: 6px; }
.is-mine .fs-chat-bubble { background: var(--brand); color: #fff; }
.is-mine:not(.is-last) .fs-chat-bubble { border-bottom-right-radius: 6px; }
.is-mine:not(.is-first) .fs-chat-bubble { border-top-right-radius: 6px; }
.is-mine .fs-chat-bubble a { color: #fff; text-decoration: underline; }
.fs-chat-bubble.is-removed { background: transparent; box-shadow: none; border: 1px dashed var(--gray-300); color: var(--gray-500); }
.is-mine .fs-chat-bubble.is-removed { color: var(--gray-500); }
.fs-chat-removed { font-style: italic; font-size: 13.5px; }
.fs-chat-sender { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; color: var(--brand-dark); }
.fs-chat-meta { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 2px; font-size: 11px; color: var(--gray-500); }
.fs-chat-meta button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.is-mine .fs-chat-meta { color: rgba(255, 255, 255, .82); }
.fs-chat-ticks { display: inline-flex; }
.fs-chat-ticks.is-read { color: #bae6fd; }
.fs-chat-quote { display: grid; gap: 1px; margin-bottom: 6px; padding: 5px 9px; border-left: 3px solid var(--brand); border-radius: 8px; background: rgba(22, 163, 74, .09); font-size: 12.5px; }
.fs-chat-quote strong { font-size: 12px; }
.fs-chat-quote span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85; }
.is-mine .fs-chat-quote { border-color: #fff; background: rgba(255, 255, 255, .18); }
.fs-chat-image img { display: block; max-width: min(260px, 100%); max-height: 260px; margin-bottom: 4px; border-radius: 12px; }
.fs-chat-file { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; padding: 8px 10px; border-radius: 12px; background: rgba(15, 23, 42, .06); color: inherit !important; text-decoration: none !important; }
.is-mine .fs-chat-file { background: rgba(255, 255, 255, .18); }
.fs-chat-file i { font-size: 22px; }
.fs-chat-file span { display: grid; min-width: 0; }
.fs-chat-file strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.fs-chat-file small { font-size: 11px; opacity: .8; }
.fs-chat-more { width: 28px; height: 28px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--gray-500); opacity: 0; cursor: pointer; }
.fs-chat-row:hover .fs-chat-more, .fs-chat-more:focus-visible { opacity: 1; }
.fs-chat-more:hover { background: rgba(15, 23, 42, .08); }
@media (hover: none) { .fs-chat-more { opacity: .55; } }
.is-pending .fs-chat-bubble { opacity: .78; }
.fs-chat-fail { color: #fecaca; font-weight: 600; }
.fs-chat-attach-note { display: block; font-size: 12.5px; opacity: .9; }
.fs-chat-bubble.is-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.fs-chat-bubble.is-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--gray-400); animation: fs-chat-bounce 1.2s infinite ease-in-out; }
.fs-chat-bubble.is-typing i:nth-child(2) { animation-delay: .15s; }
.fs-chat-bubble.is-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes fs-chat-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.fs-chat-jump { position: absolute; left: 50%; bottom: 96px; z-index: 5; transform: translateX(-50%); padding: 7px 14px; border: 0; border-radius: 999px; background: var(--gray-900); color: #fff; font: inherit; font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow-md); cursor: pointer; }

/* menus */
.fs-chat-menu-wrap { position: relative; }
.fs-chat-menu { position: absolute; top: 44px; right: 0; z-index: 30; min-width: 220px; padding: 6px; background: #fff; border: 1px solid var(--gray-200); border-radius: 12px; box-shadow: var(--shadow-md); }
.fs-chat-menu.is-floating { position: fixed; z-index: 2000; min-width: 170px; }
.fs-chat-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--gray-800); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.fs-chat-menu button i { width: 16px; color: var(--gray-500); }
.fs-chat-menu button:hover, .fs-chat-menu button:focus-visible { background: var(--gray-100); }
.fs-chat-menu button.is-danger, .fs-chat-menu button.is-danger i { color: var(--error); }

/* composer */
.fs-chat-compose { padding: 10px 14px 12px; border-top: 1px solid var(--gray-200); background: #fff; }
.fs-chat-chip { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 6px 6px 6px 12px; border-left: 3px solid var(--brand); border-radius: 8px; background: var(--gray-50); }
.fs-chat-chip > i { color: var(--brand); }
.fs-chat-chip > span { flex: 1; min-width: 0; display: grid; font-size: 13px; }
.fs-chat-chip small { overflow: hidden; color: var(--gray-500); text-overflow: ellipsis; white-space: nowrap; }
.fs-chat-status { margin: 0 0 6px; font-size: 12.5px; color: var(--gray-600); }
.fs-chat-status:empty { display: none; }
.fs-chat-status.is-error { color: var(--error); font-weight: 600; }
.fs-chat-compose-row { display: flex; align-items: flex-end; gap: 8px; }
.fs-chat-compose textarea { flex: 1; min-width: 0; max-height: 132px; padding: 10px 16px; border: 1px solid var(--gray-300); border-radius: 22px; outline: 0; background: var(--gray-50); font: inherit; font-size: 14.5px; line-height: 1.4; resize: none; }
.fs-chat-compose textarea:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--brand-light); }
.fs-chat-send { width: 42px; height: 42px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--brand); color: #fff; font-size: 16px; cursor: pointer; transition: background .15s, transform .1s; }
.fs-chat-send:hover:not(:disabled) { background: var(--brand-dark); }
.fs-chat-send:active:not(:disabled) { transform: scale(.94); }
.fs-chat-send:disabled { background: var(--gray-300); cursor: not-allowed; }
.fs-chat-noscript { padding: 16px; text-align: center; }

/* dialogs (shared by the feed and messages) */
.fs-dialog { width: min(92vw, 440px); max-height: 92vh; margin: auto; padding: 22px; overflow-y: auto; border: 0; border-radius: 16px; box-shadow: var(--shadow-lg); color: var(--gray-900); } /* margin:auto because the site reset removes the browser's centring */
.fs-dialog::backdrop { background: rgba(15, 23, 42, .5); }
.fs-dialog h3 { margin: 0 0 6px; font-size: 18px; }
.fs-dialog h4 { margin: 16px 0 6px; font-size: 14px; }
.fs-dialog p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--gray-600); }
.fs-dialog label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.fs-dialog textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--gray-300); border-radius: 10px; font: inherit; font-size: 14.5px; resize: vertical; }
.fs-dialog fieldset { margin: 8px 0; padding: 0; border: 0; }
.fs-dialog legend { margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.fs-dialog .fs-chat-radio, .fs-dialog .fs-chat-switch { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-weight: 500; cursor: pointer; }
.fs-dialog .fs-chat-hint { margin: 4px 0 10px; font-size: 12.5px; }
.fs-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.fs-chat-blocked { margin: 0; padding: 0; list-style: none; }
.fs-chat-blocked li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--gray-100); font-size: 14px; }
.fs-chat-blocked li.is-none { color: var(--gray-500); border: 0; }

/* phones: the list, or the open conversation full screen (with its own composer above the keyboard) */
@media (max-width: 767px) {
  .fs-chat { padding: 0 0 12px; }
  .fs-chat-shell { display: block; height: auto; min-height: calc(100vh - 230px); border-radius: 0; box-shadow: none; }
  .fs-chat-side { min-height: calc(100vh - 230px); border-right: 0; }
  .fs-chat-main { display: none; }
  .fs-chat.is-open .fs-chat-side { display: none; }
  .fs-chat.is-open .fs-chat-main { position: fixed; inset: 0; z-index: 1300; display: flex; height: 100vh; height: 100dvh; }
  body.fs-chat-thread-open { overflow: hidden; }
  body.fs-chat-thread-open .fs-bottom-nav { display: none !important; }
  .fs-chat-back { display: inline-flex; }
  .fs-chat-bubble { max-width: 84%; }
  .fs-chat-scroll { padding: 12px 12px 8px; }
  .fs-chat-compose { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .fs-chat-jump { bottom: 84px; }
}

/* ══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
   HEADER MENUS AND PHONE HEADER
   ══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
.fs-nav-menu > summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; user-select: none; }
.fs-nav-menu > summary::-webkit-details-marker { display: none; }
.fs-nav-menu > summary::marker { content: ""; }
.fs-nav-menu > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.fs-nav-menu > summary .fa-chevron-down { font-size: 10px; opacity: .7; transition: transform .15s; }
.fs-nav-menu[open] > summary .fa-chevron-down { transform: rotate(180deg); }
.fs-nav-menu { padding: 0; }
.fs-navbar .fs-nav-menu > summary { height: 44px; padding: 0 14px; font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, .72); }
.fs-navbar .fs-nav-menu > summary:hover, .fs-navbar .fs-nav-menu[open] > summary { color: #fff; }
.fs-nav-menu > div { top: calc(100% + 6px); min-width: 190px; padding: 6px; border: 1px solid var(--gray-200); border-radius: 12px; box-shadow: var(--shadow-lg); }
.fs-nav-menu > div a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--gray-800); }
.fs-nav-menu > div a i { width: 16px; color: var(--gray-500); text-align: center; }
.fs-nav-menu > div a:hover, .fs-nav-menu > div a:focus-visible { background: var(--gray-100); }
.fs-global-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.fs-global-actions .fs-nav-icon { width: 40px; height: 40px; border-radius: 50%; font-size: 17px; }
.fs-global-actions .fs-nav-icon:hover, .fs-global-actions .fs-nav-menu > summary:hover { background: rgba(255, 255, 255, .1); }
.fs-global-actions > .fs-nav-menu > summary { width: 40px; height: 40px; justify-content: center; border-radius: 50%; font-size: 21px; }
.fs-create-btn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: 14px; box-shadow: var(--shadow-brand); }
.fs-create-menu > summary:hover .fs-create-btn { background: var(--brand-dark); }
.fs-live-badge { top: 1px; right: -2px; box-shadow: 0 0 0 2px var(--topbar-bg); }
.fs-navbar-link.active, .fs-bottom-nav-item.active { font-weight: 700; }

@media (max-width: 767px) {
  /* Two rows on phones (brand and actions, then search), so the fixed bar must be tall enough for both. */
  :root { --topbar-h: 108px; }
  body { padding-top: var(--topbar-h); }
  .fs-topbar { height: var(--topbar-h); align-items: flex-start; padding: 10px 12px 0; }
  .fs-topbar-inner { flex-wrap: wrap; align-items: center; gap: 8px 6px !important; padding-bottom: 0 !important; }
  .fs-topbar-inner .fs-logo { height: 40px; }
  .fs-global-actions { gap: 0; }
  .fs-global-actions .fs-nav-icon, .fs-global-actions > .fs-nav-menu > summary { width: 38px; height: 40px; }
  .fs-search-wrap { height: 44px; }
  .fs-nav-menu > div { position: fixed; top: 60px; right: 8px; left: auto; }
}

/* ══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
   FEED: side rail, composer, tabs, posts, comments
   ══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
.fs-social-shell { grid-template-columns: 220px minmax(0, 1fr) 280px; }
.fs-social-rail, .fs-social-right { top: calc(var(--topbar-h) + 44px + 16px); }
.fs-social-rail { max-height: calc(100vh - var(--topbar-h) - 44px - 32px); overflow-y: auto; padding: 8px; }
.fs-social-rail a { align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.fs-social-rail a i { width: 20px; flex: none; text-align: center; color: var(--gray-500); }
.fs-social-rail a:hover { background: var(--gray-100); }
.fs-social-rail a.is-active { background: var(--brand-light); color: var(--brand-darker); font-weight: 700; }
.fs-social-rail a.is-active i { color: var(--brand); }
.fs-rail-title { margin: 12px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--gray-400); }
@media (max-width: 1023px) { .fs-rail-title { display: none; } .fs-social-rail a i { width: auto; } }

.fs-side-card { padding: 16px; margin-bottom: 16px; }
.fs-side-card h2 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.fs-side-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--brand-dark); }
.fs-side-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: inherit; }
.fs-side-row > i { width: 36px; height: 36px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--brand-light); color: var(--brand-dark); }
.fs-side-row span { display: grid; min-width: 0; }
.fs-side-row strong { font-size: 14px; }
.fs-side-row small { font-size: 12.5px; color: var(--gray-500); }
.fs-suggest { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.fs-suggest-text { flex: 1; min-width: 0; display: grid; color: inherit; }
.fs-suggest-text strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.fs-suggest-text small { overflow: hidden; font-size: 12px; color: var(--gray-500); text-overflow: ellipsis; white-space: nowrap; }
.fs-suggest-follow { flex: none; padding: 5px 12px; border: 1px solid var(--brand); border-radius: 999px; background: #fff; color: var(--brand); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.fs-suggest-follow:hover { background: var(--brand-50); }
.fs-suggest-follow.is-on { border-color: var(--gray-300); background: var(--gray-100); color: var(--gray-600); }

.fs-composer { padding: 14px 16px; margin-bottom: 14px; }
.fs-composer-row { display: flex; align-items: center; gap: 12px; }
.fs-composer-input { flex: 1; min-width: 0; padding: 11px 18px; border-radius: 999px; background: var(--gray-100); color: var(--gray-500); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: background .15s; }
.fs-composer-input:hover { background: var(--gray-200); }
.fs-composer-types { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--gray-100); }
.fs-composer-types a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--gray-200); border-radius: 999px; background: var(--gray-50); color: var(--gray-700); font-size: 13px; font-weight: 600; }
.fs-composer-types a i { color: var(--brand); }
.fs-composer-types a:hover { border-color: var(--brand); background: var(--brand-50); }
.fs-composer-guest { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.fs-composer-guest p { margin: 2px 0 0; font-size: 13.5px; color: var(--gray-500); }

.fs-feed-tabs { display: flex; gap: 4px; margin: 0 0 14px; padding: 4px; overflow-x: auto; background: #fff; border-radius: 14px; box-shadow: var(--shadow-xs); scrollbar-width: none; }
.fs-feed-tabs a { flex: 1; padding: 9px 14px; border-radius: 10px; color: var(--gray-600); font-size: 14px; font-weight: 600; text-align: center; white-space: nowrap; }
.fs-feed-tabs a:hover { background: var(--gray-100); }
.fs-feed-tabs a.is-active { background: var(--brand-light); color: var(--brand-darker); }
.fs-feed-new { position: sticky; top: calc(var(--topbar-h) + 44px + 10px); z-index: 20; display: block; margin: 0 auto 12px; padding: 8px 18px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; box-shadow: var(--shadow-brand); cursor: pointer; }
#feed-more { display: flex; justify-content: center; padding: 8px 0 24px; }
.fs-feed-empty { padding: 44px 24px; text-align: center; color: var(--gray-500); }
.fs-feed-empty i { color: var(--gray-300); }
.fs-feed-empty h3 { margin: 12px 0 4px; font-size: 17px; color: var(--gray-800); }
.fs-feed-empty p { max-width: 340px; margin: 0 auto 16px; font-size: 14px; line-height: 1.5; }
.fs-link { padding: 0; border: 0; background: none; color: var(--brand-dark); font: inherit; font-weight: 600; cursor: pointer; }
.fs-link:hover { text-decoration: underline; }

.fs-post { padding: 0; margin-bottom: 14px; overflow: hidden; }
.fs-post-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 8px 16px; }
.fs-post-who { flex: 1; min-width: 0; }
.fs-post-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.fs-post-author { font-size: 15px; font-weight: 700; color: var(--gray-900); }
a.fs-post-author:hover { text-decoration: underline; }
.fs-post-type { padding: 2px 9px; border-radius: 999px; background: var(--brand-light); color: var(--brand-darker); font-size: 11.5px; font-weight: 700; }
.fs-post-type.is-deal, .fs-post-type.is-product { background: #fef3c7; color: #92400e; }
.fs-post-type.is-alert { background: #fee2e2; color: #991b1b; }
.fs-post-type.is-job, .fs-post-type.is-task, .fs-post-type.is-requirement { background: #e0f2fe; color: #075985; }
.fs-post-type.is-service, .fs-post-type.is-portfolio { background: #ede9fe; color: #5b21b6; }
.fs-post-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin-top: 1px; font-size: 12.5px; color: var(--gray-500); }
.fs-post-follow { flex: none; padding: 5px 12px; border: 1px solid var(--brand); border-radius: 999px; background: #fff; color: var(--brand); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.fs-post-follow:hover { background: var(--brand-50); }
.fs-post-menu { color: var(--gray-500); }
.fs-post-menu > summary { width: 34px; height: 34px; justify-content: center; border-radius: 50%; }
.fs-post-menu > summary:hover, .fs-post-menu[open] > summary { background: var(--gray-100); }
.fs-post-menu > div { right: 0; min-width: 210px; }
.fs-post-menu > div button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--gray-800); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.fs-post-menu > div button i { width: 16px; color: var(--gray-500); }
.fs-post-menu > div button:hover { background: var(--gray-100); }
.fs-post-menu > div button.is-danger, .fs-post-menu > div button.is-danger i { color: var(--error); }
.fs-post-title { margin: 4px 16px 0; font-size: 18px; font-weight: 700; }
.fs-post-text { margin: 0; padding: 6px 16px 10px; font-size: 15px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.fs-post-text.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.fs-post-text a { color: var(--info); }
.fs-post-expand { margin: -4px 16px 10px; }

.fs-post-media { display: grid; gap: 2px; margin-top: 4px; }
.fs-post-media.is-1 img { max-height: 560px; }
.fs-post-media.is-2 { grid-template-columns: 1fr 1fr; aspect-ratio: 2 / 1; }
.fs-post-media.is-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 3 / 2; }
.fs-post-media.is-3 .fs-post-photo:first-child { grid-row: 1 / span 2; }
.fs-post-media.is-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 1 / 1; }
.fs-post-photo { position: relative; min-height: 0; padding: 0; overflow: hidden; border: 0; background: var(--gray-100); cursor: zoom-in; }
.fs-post-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fs-post-more-photos { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, .55); color: #fff; font-size: 30px; font-weight: 700; }
.fs-post-video { display: block; width: 100%; max-height: 560px; background: #000; }
.fs-post-linked { display: flex; align-items: center; gap: 12px; margin: 10px 16px; padding: 10px 12px; border: 1px solid var(--gray-200); border-radius: 12px; background: var(--gray-50); color: inherit; }
.fs-post-linked:hover { border-color: var(--brand); background: var(--brand-50); }
.fs-post-linked-icon { width: 38px; height: 38px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--brand-light); color: var(--brand-dark); }
.fs-post-linked-text { flex: 1; min-width: 0; display: grid; }
.fs-post-linked-text small { font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--gray-500); }
.fs-post-linked-text strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.fs-post-linked-go { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 13px; font-weight: 700; color: var(--brand-dark); }
.fs-post-shared { margin: 8px 16px 12px; padding: 12px; border: 1px solid var(--gray-200); border-radius: 12px; }
.fs-post-shared-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13.5px; }
.fs-post-shared-head time { color: var(--gray-500); font-size: 12.5px; }
.fs-post-shared h3 { margin: 0 0 4px; font-size: 15px; }
.fs-post-shared p { margin: 0 0 6px; font-size: 14px; white-space: pre-wrap; }

.fs-post-stats { display: flex; align-items: center; justify-content: space-between; min-height: 22px; padding: 8px 16px 6px; font-size: 13px; color: var(--gray-500); }
.fs-post-stats > span:first-child i { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 9px; }
.fs-post-stats-right { display: inline-flex; gap: 12px; }
.fs-post-stats .fs-link { color: var(--gray-500); font-weight: 500; }
.fs-post-actions { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px 8px 6px; border-top: 1px solid var(--gray-100); }
.fs-post-action { flex: 1 1 0; min-width: 82px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--gray-600); font: inherit; font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.fs-post-action:hover { background: var(--gray-100); }
.fs-post-action.is-on { color: var(--brand); }
.fs-post-action.is-primary { background: var(--brand); color: #fff; }
.fs-post-action.is-primary:hover { background: var(--brand-dark); }
.fs-post button:focus-visible, .fs-post a:focus-visible, .fs-post summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.fs-post-comments { padding: 2px 16px 14px; border-top: 1px solid var(--gray-100); }
.fs-post-none { margin: 10px 0 0; font-size: 13.5px; color: var(--gray-500); }
.fs-post-loading { margin: 10px 0; color: var(--gray-500); }
.fs-post-reply-form { display: flex; align-items: flex-end; gap: 8px; margin: 10px 0 4px; }
.fs-post-reply-form textarea { flex: 1; min-width: 0; min-height: 40px; max-height: 110px; padding: 9px 14px; border: 1px solid var(--gray-300); border-radius: 20px; outline: 0; background: var(--gray-50); font: inherit; font-size: 14px; resize: none; }
.fs-post-reply-form textarea:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--brand-light); }
.fs-post-send { width: 38px; height: 38px; flex: none; border: 0; border-radius: 50%; background: var(--brand); color: #fff; cursor: pointer; }
.fs-post-send:disabled { background: var(--gray-300); cursor: not-allowed; }
.fs-comment { display: flex; gap: 8px; margin-top: 10px; }
.fs-comment-main { flex: 1; min-width: 0; }
.fs-comment-bubble { display: inline-block; max-width: 100%; padding: 8px 12px; border-radius: 16px; background: var(--gray-100); }
.fs-comment-bubble strong { display: block; font-size: 13px; }
.fs-comment-bubble p { margin: 1px 0 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.fs-comment-meta { display: flex; gap: 14px; padding: 2px 12px; font-size: 12px; color: var(--gray-500); }
.fs-comment-meta button { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.fs-comment-meta button:hover { color: var(--gray-800); }
.fs-comment-replies { margin-left: 4px; }
.fs-comment-reply-box { margin-left: 4px; }
.fs-post-reply-form.is-compact textarea { min-height: 36px; }

.fs-post.is-skeleton { padding: 16px; }
.fs-skel-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.fs-skel-row > div { flex: 1; display: grid; gap: 6px; }
.fs-skel-dot, .fs-post.is-skeleton i { display: block; background: linear-gradient(90deg, var(--gray-100), var(--gray-200), var(--gray-100)); background-size: 200% 100%; animation: fs-chat-shimmer 1.3s infinite linear; }
.fs-skel-dot { width: 44px; height: 44px; border-radius: 50%; }
.fs-post.is-skeleton i { height: 11px; border-radius: 6px; }
.fs-skel-row > div i:first-child { width: 40%; }
.fs-skel-row > div i:last-child { width: 25%; }
.fs-skel-line { margin-bottom: 8px; }
.fs-skel-line.is-short { width: 60%; }
.fs-post.is-skeleton .fs-skel-block { height: 180px; margin-top: 14px; border-radius: 12px; }

.fs-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.fs-lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.fs-lightbox img { position: absolute; top: 50%; left: 50%; max-width: 92vw; max-height: 86vh; transform: translate(-50%, -50%); object-fit: contain; }
.fs-lightbox button { position: absolute; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 18px; cursor: pointer; }
.fs-lightbox button:hover { background: rgba(255, 255, 255, .3); }
.fs-lightbox-close { top: 16px; right: 16px; }
.fs-lightbox-nav { top: 50%; transform: translateY(-50%); }
.fs-lightbox-nav.is-prev { left: 16px; }
.fs-lightbox-nav.is-next { right: 16px; }
.fs-lightbox-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; }
.fs-toast.is-error { background: #fef2f2; border-color: var(--error); color: #991b1b; }

@media (max-width: 767px) {
  .fs-post-head { padding: 12px 8px 6px 12px; }
  .fs-post-text, .fs-post-title { padding-left: 12px; padding-right: 12px; }
  .fs-post-title { margin-left: 0; margin-right: 0; }
  .fs-post-linked, .fs-post-shared { margin-left: 12px; margin-right: 12px; }
  .fs-post-action { min-width: 0; padding: 9px 4px; font-size: 12.5px; gap: 5px; }
  .fs-post-actions { padding-left: 4px; padding-right: 4px; }
  .fs-post-comments { padding-left: 12px; padding-right: 12px; }
  .fs-composer-types { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .fs-composer-types a { flex: none; }
}
.fs-sidebar-badge { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; text-align: center; }

/* ══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
   PREMIUM DETAIL PAGES: shop, service, task, professional (and anything else that wants the same hero + card language)
   ══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
.fs-hero-wrap { padding-top: 20px; }
.fs-hero {
  position: relative; overflow: hidden; border-radius: 26px; padding: 38px 40px 32px;
  background: radial-gradient(1200px 480px at 85% -10%, rgba(34, 197, 94, .22), transparent 60%),
              linear-gradient(150deg, #060a14 0%, #0d1526 42%, #062617 100%);
  box-shadow: 0 30px 70px -30px rgba(2, 8, 23, .65), 0 1px 0 rgba(255, 255, 255, .04) inset;
  color: #fff;
}
.fs-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent 70%);
}
.fs-hero-topbar { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.fs-hero-crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(255, 255, 255, .45); }
.fs-hero-crumb a { color: rgba(255, 255, 255, .58); font-weight: 500; }
.fs-hero-crumb a:hover { color: #fff; }
.fs-hero-crumb span.sep { color: rgba(255, 255, 255, .25); }
.fs-hero-crumb span.now { color: rgba(255, 255, 255, .85); font-weight: 600; }
.fs-hero-row { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 26px; flex-wrap: wrap; }
.fs-hero-media {
  width: 104px; height: 104px; border-radius: 24px; overflow: hidden; flex-shrink: 0; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .55);
  display: flex; align-items: center; justify-content: center;
}
.fs-hero-media.is-round { border-radius: 50%; }
.fs-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.fs-hero-media i { font-size: 40px; color: rgba(255, 255, 255, .35); }
.fs-hero-media .fs-hero-initial { font-size: 40px; font-weight: 900; color: #fff; background: linear-gradient(150deg, var(--accent), var(--brand-dark)); width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.fs-hero-body { flex: 1; min-width: 240px; }
.fs-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 10px; border-radius: 999px;
  background: rgba(34, 197, 94, .16); border: 1px solid rgba(74, 222, 128, .35); color: #86efac;
  font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 12px;
}
.fs-hero-title { font-size: 30px; line-height: 1.15; font-weight: 900; color: #fff; letter-spacing: -.02em; margin: 0 0 6px; }
.fs-hero-sub { font-size: 14.5px; color: rgba(255, 255, 255, .62); margin: 0 0 14px; }
.fs-hero-sub a { color: rgba(255, 255, 255, .9); font-weight: 600; }
.fs-hero-sub a:hover { text-decoration: underline; }
.fs-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fs-hero-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .82);
  backdrop-filter: blur(6px); white-space: nowrap;
}
.fs-hero-chip i { font-size: 11px; opacity: .85; }
.fs-hero-chip.is-brand { background: rgba(34, 197, 94, .22); border-color: rgba(74, 222, 128, .4); color: #bbf7d0; }
.fs-hero-chip.is-warn { background: rgba(245, 158, 11, .18); border-color: rgba(251, 191, 36, .38); color: #fde68a; }
.fs-hero-chip.is-danger { background: rgba(239, 68, 68, .18); border-color: rgba(248, 113, 113, .38); color: #fecaca; }
.fs-hero-chip.is-info { background: rgba(56, 189, 248, .16); border-color: rgba(125, 211, 252, .35); color: #bae6fd; }
.fs-hero-rating { display: inline-flex; align-items: center; gap: 6px; color: #fbbf24; font-weight: 800; font-size: 13px; }
.fs-hero-rating .count { color: rgba(255, 255, 255, .55); font-weight: 600; }
.fs-hero-actions { position: relative; z-index: 1; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.fs-hero-actions .fs-btn { border-radius: 12px; }
.fs-hero-actions .fs-btn-primary { box-shadow: 0 14px 30px -10px rgba(34, 197, 94, .55); }
/* A translucent "glass" button for dark surfaces (premium heroes, the dashboard banner) — distinct from the existing, unrelated .fs-btn-ghost. */
.fs-btn-glass { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .18); }
.fs-btn-glass:hover { background: rgba(255, 255, 255, .16); }
/* Shared partials (Message, Follow) drop an .fs-btn-outline into the hero; make it read on a dark background too. */
.fs-hero-actions .fs-btn-outline { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22); }
.fs-hero-actions .fs-btn-outline:hover { background: rgba(255, 255, 255, .16); }
.fs-hero-actions span[id^="follow-btn-"] { display: inline-flex; align-items: center; gap: 8px; }
.fs-hero-actions span[id^="follower-count-"] { color: rgba(255, 255, 255, .55); font-size: 12.5px; font-weight: 600; }
@media (max-width: 767px) {
  .fs-hero { padding: 28px 20px 24px; border-radius: 20px; }
  .fs-hero-title { font-size: 23px; }
  .fs-hero-media { width: 76px; height: 76px; border-radius: 18px; }
  .fs-hero-media i, .fs-hero-media .fs-hero-initial { font-size: 28px; }
  .fs-hero-actions { margin-left: 0; width: 100%; }
  .fs-hero-actions .fs-btn { flex: 1; justify-content: center; }
}

/* Premium content layout below the hero */
.fs-detail-wrap { padding: 26px 0 10px; }
.fs-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .fs-detail-grid { grid-template-columns: 1fr; } }
.fs-detail-card {
  background: #fff; border: 1px solid rgba(15, 23, 42, .06); border-radius: 20px; padding: 26px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 34px -26px rgba(15, 23, 42, .22);
  margin-bottom: 20px;
}
.fs-detail-card:last-child { margin-bottom: 0; }
.fs-detail-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.fs-detail-title { font-size: 17px; font-weight: 800; color: var(--gray-900); margin: 0 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fs-detail-title .side { font-size: 13px; font-weight: 700; color: var(--gray-500); }
.fs-detail-body { font-size: 14.5px; line-height: 1.75; color: var(--gray-700); white-space: pre-wrap; }
.fs-fact-row { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--gray-200); }
.fs-fact { display: flex; align-items: center; gap: 9px; }
.fs-fact-icon { width: 32px; height: 32px; border-radius: 10px; background: var(--brand-light); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.fs-fact-text .k { display: block; font-size: 10.5px; color: var(--gray-400); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.fs-fact-text .v { display: block; font-size: 13.5px; color: var(--gray-900); font-weight: 700; }

/* Sticky action / pricing panel in the right column */
.fs-sticky { position: sticky; top: 92px; }
.fs-price-card { text-align: left; }
.fs-price-tag { font-size: 30px; font-weight: 900; color: var(--gray-900); letter-spacing: -.02em; }
.fs-price-tag small { font-size: 14px; font-weight: 700; color: var(--gray-400); margin-right: 2px; }
.fs-price-note { font-size: 12.5px; color: var(--gray-500); font-weight: 600; margin-top: 2px; }
.fs-cta { width: 100%; justify-content: center; border-radius: 14px; padding: 13px 20px; font-size: 14.5px; box-shadow: 0 16px 30px -12px rgba(22, 163, 74, .45); }
.fs-cta:hover { transform: translateY(-1px); }
.fs-inline-note { display: flex; gap: 10px; align-items: flex-start; background: var(--brand-50); border: 1px solid var(--brand-light); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--brand-darker); line-height: 1.55; }
.fs-inline-note a { color: var(--brand-dark); font-weight: 700; }
.fs-provider-row { display: flex; align-items: center; gap: 12px; }
.fs-provider-row .fs-hero-media { width: 52px; height: 52px; border-radius: 14px; }
.fs-provider-row .fs-hero-media i, .fs-provider-row .fs-hero-media .fs-hero-initial { font-size: 20px; }

/* Trust badges, gallery, review cards, reused across the premium pages */
.fs-trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.fs-trust { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--brand-dark); background: var(--brand-50); border: 1px solid var(--brand-light); padding: 5px 11px; border-radius: 999px; }
.fs-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.fs-gallery-grid a { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--gray-100); position: relative; }
.fs-gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.fs-gallery-grid a:hover img { transform: scale(1.06); }
.fs-review-item { padding: 18px 0; border-bottom: 1px solid var(--gray-100); }
.fs-review-item:last-child { border-bottom: 0; }
.fs-review-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.fs-review-who { display: flex; align-items: center; gap: 10px; }
.fs-review-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--gray-200); color: var(--gray-600); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fs-review-name { font-size: 13.5px; font-weight: 700; color: var(--gray-900); }
.fs-review-date { font-size: 11.5px; color: var(--gray-400); }
.fs-review-stars { color: #f59e0b; font-size: 13px; white-space: nowrap; }
.fs-review-text { font-size: 13.5px; color: var(--gray-700); line-height: 1.65; margin: 0; }
.fs-skill-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--gray-100); color: var(--gray-700); font-size: 12.5px; font-weight: 700; margin: 0 6px 6px 0; }

/* Premium status accent bar for task-like detail cards */
.fs-status-card { border-top: 4px solid var(--gray-300); }
.fs-status-card.is-open { border-top-color: var(--brand); }
.fs-status-card.is-progress { border-top-color: #0284c7; }
.fs-status-card.is-done { border-top-color: var(--gray-400); }
.fs-status-card.is-cancelled { border-top-color: var(--error); }

/* Softer, elevated cards + tables site-wide (used heavily on the dashboard) */
.fs-card { transition: box-shadow .18s ease, transform .18s ease; }
.fs-card:hover { box-shadow: var(--shadow-md); }
.fs-stat-card { transition: box-shadow .18s ease, transform .18s ease; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 22px -16px rgba(15, 23, 42, .22); }
.fs-stat-card:hover { box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 18px 32px -16px rgba(15, 23, 42, .3); transform: translateY(-2px); }
.mp-table tbody tr { transition: background .12s ease; }
.mp-badge { letter-spacing: .01em; }

/* ══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
   DASHBOARD polish: the welcome banner reuses the premium hero background; the tab bar becomes a proper segmented control.
   ══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
.fs-dash-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 30px 34px; box-shadow: 0 26px 60px -28px rgba(2, 8, 23, .6); }
.fs-dash-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent 70%); }
.fs-dash-hero > * { position: relative; z-index: 1; }
.fs-dash-greeting { font-size: 12.5px; color: rgba(255, 255, 255, .5); font-weight: 600; letter-spacing: .02em; }
.fs-dash-hero h1 { font-size: 25px; font-weight: 900; color: #fff; margin: 4px 0 12px; letter-spacing: -.01em; }
.fs-dash-alert { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; text-decoration: none; }

.fs-dash-tabs { display: flex; gap: 4px; padding: 5px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-xs); border: 1px solid var(--gray-100); flex-wrap: wrap; margin-bottom: 22px; }
.fs-dash-tabs .dash-tab { border: 0 !important; border-radius: 10px !important; padding: 9px 16px !important; font-weight: 700 !important; }
.fs-dash-tabs .dash-tab:not(.active):hover { background: var(--gray-100) !important; }
.fs-dash-tabs .dash-tab.active { box-shadow: 0 8px 18px -8px rgba(22, 163, 74, .5); }

/* ══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
   CHAT DOCK: Facebook-style chat heads. A launcher + a conversation list popover + stacked mini windows / minimised bubbles.
   Lives above everything else in the corner; never appears on the full Messages page (chat.js already owns that page).
   ══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
.fs-dock { position: fixed; right: 18px; bottom: 18px; z-index: 1400; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-family: var(--font); }
.fs-dock-launcher { position: relative; }
.fs-dock-bubble {
  width: 56px; height: 56px; border: 0; border-radius: 50%; cursor: pointer; position: relative;
  background: linear-gradient(150deg, var(--accent), var(--brand-dark)); color: #fff; font-size: 22px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 28px -8px rgba(21, 128, 61, .55), var(--shadow-md);
  transition: transform .15s ease;
}
.fs-dock-bubble:hover { transform: translateY(-2px) scale(1.03); }
.fs-dock-bubble:active { transform: scale(.96); }
.fs-dock-badge {
  position: absolute; top: -3px; right: -3px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px;
  background: var(--error); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; box-shadow: var(--shadow-xs);
}
.fs-dock-heads { display: flex; flex-direction: column-reverse; gap: 8px; align-items: flex-end; }
.fs-dock-head {
  position: relative; width: 46px; height: 46px; border-radius: 50%; border: 2.5px solid #fff; cursor: pointer; padding: 0;
  box-shadow: var(--shadow-md); color: #fff; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}
.fs-dock-head .dot { position: absolute; right: -2px; bottom: -2px; width: 13px; height: 13px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; }
.fs-dock-head .unread { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--error); color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.fs-dock-head button.close { position: absolute; top: -6px; left: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--gray-800); color: #fff; border: 2px solid #fff; font-size: 9px; display: none; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.fs-dock-head:hover button.close { display: flex; }

.fs-dock-list {
  position: absolute; right: 0; bottom: 68px; width: 328px; max-height: 66vh; background: #fff; border-radius: 16px;
  box-shadow: 0 22px 55px -18px rgba(15, 23, 42, .45), 0 0 0 1px rgba(15, 23, 42, .05); display: flex; flex-direction: column; overflow: hidden;
}
.fs-dock-list header { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 8px; }
.fs-dock-list header strong { font-size: 16px; font-weight: 900; color: var(--gray-900); }
.fs-dock-list-actions { display: flex; gap: 2px; }
.fs-dock-icon { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--gray-600); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.fs-dock-icon:hover { background: var(--gray-100); }
.fs-dock-search { display: flex; align-items: center; gap: 8px; margin: 2px 14px 8px; padding: 8px 12px; background: var(--gray-100); border-radius: 999px; color: var(--gray-500); }
.fs-dock-search input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 13.5px; color: var(--gray-900); }
.fs-dock-conversations { overflow-y: auto; padding: 4px 6px 10px; }
.fs-dock-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; cursor: pointer; border: 0; background: transparent; width: 100%; text-align: left; font: inherit; }
.fs-dock-row:hover { background: var(--gray-50); }
.fs-dock-row .avatar { width: 42px; height: 42px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 15px; background-size: cover; background-position: center; }
.fs-dock-row .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fs-dock-row .name { font-size: 13.5px; font-weight: 700; color: var(--gray-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-dock-row .preview { font-size: 12.5px; color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-dock-row.is-unread .preview, .fs-dock-row.is-unread .name { color: var(--gray-900); font-weight: 700; }
.fs-dock-row .pill { flex: none; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 800; text-align: center; }
.fs-dock-empty, .fs-dock-error { padding: 28px 16px; text-align: center; color: var(--gray-500); font-size: 13px; }
.fs-dock-error button { margin-top: 8px; }

.fs-dock-windows { display: flex; flex-direction: row-reverse; align-items: flex-end; gap: 10px; }
.fs-dock-window {
  width: 300px; height: 400px; background: #fff; border-radius: 14px 14px 0 0; box-shadow: 0 20px 50px -18px rgba(15, 23, 42, .45), 0 0 0 1px rgba(15, 23, 42, .05);
  display: flex; flex-direction: column; overflow: hidden;
}
.fs-dock-window-head { display: flex; align-items: center; gap: 8px; padding: 9px 10px; background: linear-gradient(150deg, var(--accent), var(--brand-dark)); color: #fff; cursor: pointer; flex: none; }
.fs-dock-window-head .avatar { width: 30px; height: 30px; border-radius: 50%; background-size: cover; background-position: center; background-color: rgba(255, 255, 255, .25); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; flex: none; }
.fs-dock-window-head .title { flex: 1; min-width: 0; font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-dock-window-head .sub { display: block; font-size: 10.5px; font-weight: 500; opacity: .85; }
.fs-dock-window-head button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 11px; flex: none; }
.fs-dock-window-head button:hover { background: rgba(255, 255, 255, .3); }
.fs-dock-window-body { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 10px 4px; background: #f4f7f5; display: flex; flex-direction: column; }
.fs-dock-msg { max-width: 82%; margin-top: 4px; padding: 7px 11px; border-radius: 16px; background: #fff; color: var(--gray-900); font-size: 13px; line-height: 1.4; align-self: flex-start; box-shadow: 0 1px 1px rgba(15, 23, 42, .07); overflow-wrap: anywhere; }
.fs-dock-msg.mine { align-self: flex-end; background: var(--brand); color: #fff; }
.fs-dock-msg.is-pending { opacity: .65; }
.fs-dock-msg .fail { display: block; margin-top: 3px; font-size: 10.5px; color: #fecaca; }
.fs-dock-day { align-self: center; margin: 8px 0 2px; padding: 2px 10px; border-radius: 999px; background: rgba(15, 23, 42, .07); font-size: 10.5px; font-weight: 700; color: var(--gray-500); }
.fs-dock-typing { align-self: flex-start; margin-top: 4px; font-size: 11px; color: var(--gray-500); font-style: italic; }
.fs-dock-window-foot { flex: none; display: flex; align-items: center; gap: 6px; padding: 8px; border-top: 1px solid var(--gray-100); background: #fff; }
.fs-dock-window-foot button { width: 30px; height: 30px; border: 0; background: transparent; color: var(--gray-500); border-radius: 50%; cursor: pointer; flex: none; }
.fs-dock-window-foot button:hover { background: var(--gray-100); }
.fs-dock-window-foot input[type=text] { flex: 1; min-width: 0; border: 1px solid var(--gray-200); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; outline: 0; background: var(--gray-50); }
.fs-dock-window-foot input[type=text]:focus { border-color: var(--brand); background: #fff; }
.fs-dock-window-foot .send { color: var(--brand); }
.fs-dock-window-foot .send:disabled { color: var(--gray-300); cursor: default; }
.fs-dock-request { margin: 0 10px 8px; padding: 8px 10px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; font-size: 11.5px; color: #92400e; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: none; }
.fs-dock-request button { border: 0; background: var(--brand); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 700; cursor: pointer; }

@media (max-width: 700px) {
  .fs-dock { right: 12px; bottom: 12px; }
  .fs-dock-list { position: fixed; right: 8px; left: 8px; bottom: 78px; width: auto; max-height: 70vh; }
  /* background is conditional on :has() too — this container sits in the DOM (empty) on every signed-in
     page, so an unconditional background here would tint the whole site, not just an open chat window. */
  .fs-dock-windows { position: fixed; inset: 0; flex-direction: column; background: transparent; padding: 0; justify-content: flex-end; align-items: stretch; gap: 0; pointer-events: none; }
  .fs-dock-windows:has(.fs-dock-window) { background: rgba(15, 23, 42, .35); pointer-events: auto; }
  .fs-dock-window { width: 100%; height: 88vh; border-radius: 16px 16px 0 0; }
  .fs-dock-window ~ .fs-dock-window { display: none; }
  .fs-dock-heads { position: fixed; right: 12px; bottom: 82px; }
  /* A full-screen chat window covers everything anyway; its own minimise button is the way back, not a bubble floating on top of it. */
  .fs-dock:has(.fs-dock-window) .fs-dock-launcher, .fs-dock:has(.fs-dock-window) .fs-dock-heads { display: none; }
}

/* The mobile bottom nav (60px, up to 767px) is a row of tabs; the chat bubble must float *above* it,
   not on top of its last tab (Profile). Same breakpoint the nav itself appears at. */
@media (max-width: 767px) {
  .fs-dock { bottom: calc(60px + 12px + env(safe-area-inset-bottom, 0px)); }
  .fs-dock-heads { bottom: calc(60px + 12px + 56px + 10px + env(safe-area-inset-bottom, 0px)); }
  .fs-dock-list { bottom: calc(60px + 12px + 56px + 10px + env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 60px - 12px - 56px - 10px - 120px); }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CLIPS (short video feed)
   ═══════════════════════════════════════════════════════════════════════════════ */

.fs-clips-shell { max-width: none; margin: 0; padding: 0; height: 100vh; height: 100dvh; overflow: hidden; }
/* A full-screen video page fights the site's own chrome for room — same trick the chat thread uses.
   The chat dock bubble (z-index 1400, bottom-right) would otherwise sit on top of the action rail. */
body.fs-clips-open .fs-bottom-nav, body.fs-clips-open .fs-dock { display: none !important; }
/* #clips-feed (the <main>) is the actual flex container — .fs-clips-shell just sets the overall height. */
#clips-feed { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.fs-clips-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: var(--gray-900, #0f172a); border-bottom: 1px solid rgba(255,255,255,.08); }
.fs-clips-head h1 { font-size: 18px; font-weight: 900; margin: 0; color: #fff; }

/* The snap-scroll stage: one clip fills it exactly, wheel/swipe moves to the next. */
#clips-list { flex: 1 1 auto; min-height: 0; overflow-y: scroll; scroll-snap-type: y mandatory; scroll-behavior: smooth; background: #000; scrollbar-width: none; }
#clips-list::-webkit-scrollbar { display: none; }

.fs-clip { position: relative; height: 100%; width: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #000; }
.fs-clip.is-skeleton { display: flex; align-items: center; justify-content: center; }
.fs-clip-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.fs-clip-scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.5) 0%, transparent 18%, transparent 62%, rgba(0,0,0,.7) 100%); pointer-events: none; }
.fs-clip-mute { position: absolute; top: 16px; right: 16px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.fs-clip-menu { position: absolute; top: 12px; left: 12px; z-index: 5; }
.fs-clip-menu summary { color: #fff; }

.fs-clip-info { position: absolute; left: 16px; right: 92px; bottom: 22px; z-index: 4; color: #fff; }
.fs-clip-info .fs-post-head { background: none; padding: 0; margin-bottom: 8px; }
.fs-clip-info .fs-post-author, .fs-clip-info .fs-post-sub, .fs-clip-info .fs-post-sub time { color: #fff; }
.fs-clip-info .fs-post-text { color: #fff; margin: 6px 0; }
.fs-clip-tags { color: #dcfce7; font-size: 13.5px; margin: 0 0 8px; }
.fs-clip-cta { display: inline-flex; align-items: center; gap: 8px; }

/* Upload dialog: a local preview of the chosen file, with a live progress bar across its top while it uploads. */
.fs-clip-upload-box { position: relative; width: 100%; max-width: 220px; aspect-ratio: 9 / 14; margin: 12px auto; background: #000; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.fs-clip-upload-preview { color: rgba(255,255,255,.55); display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.fs-clip-upload-video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.fs-clip-upload-progress { position: absolute; top: 0; left: 0; right: 0; z-index: 2; background: rgba(0,0,0,.6); padding: 8px 10px; display: flex; align-items: center; gap: 8px; }
.fs-clip-upload-progress-track { flex: 1; height: 6px; border-radius: 4px; background: rgba(255,255,255,.25); overflow: hidden; }
.fs-clip-upload-progress-fill {
  height: 100%; width: 0%; border-radius: 4px; transition: width .15s ease;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand), var(--brand-dark));
  background-size: 200% 100%; animation: fs-clip-upload-shimmer 1.1s linear infinite;
}
@keyframes fs-clip-upload-shimmer { from { background-position: 0% 0; } to { background-position: -200% 0; } }
.fs-clip-upload-progress-label { color: #fff; font-size: 12px; font-weight: 800; min-width: 32px; text-align: right; }
.fs-clip-upload-error { color: var(--error); font-size: 13px; margin: 8px 0 0; }

.fs-clip-rail { position: absolute; right: 12px; bottom: 90px; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.fs-clip-rail button { background: none; border: none; color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; padding: 0; }
.fs-clip-rail button i { font-size: 25px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.fs-clip-rail button.is-on i { color: var(--brand); }
.fs-clip-rail .fs-clip-avatar-link { margin-bottom: 4px; }

/* Comments open a panel over the stage instead of inline, so the video never resizes to fit them.
   z-index is above the site's mobile bottom-nav (1100) as a second line of defence — .fs-clips-open
   already hides that bar outright, but this keeps the panel correct even if that class is ever missing. */
.fs-clips-comments { position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 92vw; background: #fff; box-shadow: -10px 0 34px rgba(0,0,0,.25); transform: translateX(100%); transition: transform .25s ease; z-index: 1150; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom, 0px); }
.fs-clips-comments.is-open { transform: translateX(0); }
.fs-clips-comments-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top, 0px)); border-bottom: 1px solid var(--gray-100); font-weight: 800; }
.fs-clips-comments-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px 16px; -webkit-overflow-scrolling: touch; }
.fs-clips-comments-foot { flex: 0 0 auto; border-top: 1px solid var(--gray-100); padding: 10px 16px; }
.fs-clips-comments-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.25); z-index: 1149; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.fs-clips-comments-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ── Mobile: the same breakpoint the rest of the site switches to the bottom-nav at ────────────── */
@media (max-width: 767px) {
  .fs-clips-head { padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top, 0px)); }
  .fs-clips-head h1 { font-size: 16px; }
  .fs-clips-head .fs-btn span { display: none; } /* icon-only "New Clip" button — the label doesn't fit next to the title on a phone */
  .fs-clips-head .fs-btn { padding: 8px 10px; }

  .fs-clips-comments { width: 100%; max-width: 100%; }

  .fs-clip-mute { top: max(12px, env(safe-area-inset-top, 0px)); right: 12px; width: 40px; height: 40px; }
  .fs-clip-info { left: 12px; right: 68px; bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
  .fs-clip-info .fs-post-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
  .fs-clip-tags { font-size: 12.5px; }
  .fs-clip-cta { padding: 8px 14px; font-size: 13.5px; }

  /* Bigger, thumb-friendly tap targets; the rail sits lower since there's no bottom-nav stealing room. */
  .fs-clip-rail { right: 6px; bottom: max(20px, env(safe-area-inset-bottom, 0px)); gap: 14px; }
  .fs-clip-rail button { padding: 6px; min-width: 44px; }
  .fs-clip-rail button i { font-size: 24px; }

  .fs-clip-menu { top: max(12px, env(safe-area-inset-top, 0px)); }
}

/* Two-column detail layouts written as inline grids never collapsed on a phone, which stretched the page
   wider than the screen (and pushed the sidebar — with the map card — off to the right). */
@media (max-width: 900px) {
  .fs-stack-mobile { grid-template-columns: minmax(0, 1fr) !important; }
  .fs-stack-mobile > * { position: static !important; min-width: 0; }
}
@media (max-width: 640px) {
  .fs-stats-mobile { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PLACE MAP (the "where is this / how far from me" card on detail pages)
   ═══════════════════════════════════════════════════════════════════════════════ */

.fs-place { margin-bottom: 16px; }
.fs-place[hidden], .pl-distance[hidden], .pl-note[hidden], .pl-actions [hidden] { display: none !important; }
.pl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pl-distance { background: var(--brand-light); color: var(--brand-dark); font-weight: 800; font-size: 12.5px; padding: 4px 10px; border-radius: var(--radius-full); white-space: nowrap; }
.pl-map { height: 240px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--gray-200); position: relative; z-index: 0; background: var(--gray-100); }
.pl-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.pl-area { font-size: 13.5px; font-weight: 600; color: var(--gray-700); min-width: 0; overflow-wrap: anywhere; }
.pl-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pl-note { margin: 8px 0 0; font-size: 12px; color: var(--gray-500); }
@media (max-width: 767px) { .pl-map { height: 210px; } }

/* ═══════════════════════════════════════════════════════════════════════════════
   HOME (gateway: search, quick actions, nearby preview, rows of nearby records)
   ═══════════════════════════════════════════════════════════════════════════════ */

.hm { padding-top: 18px; padding-bottom: 48px; }
.hm-top { margin-bottom: 14px; }
.hm-top h1 { font-size: 26px; font-weight: 900; letter-spacing: -.4px; color: var(--gray-900); margin: 6px 0 12px; }
.hm-loc { display: inline-flex; align-items: center; gap: 6px; border: none; background: var(--brand-light); color: var(--brand-dark); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: var(--radius-full); cursor: pointer; }
.hm-loc.is-unset { background: #fef3c7; color: #92400e; }

.hm .fs-stories-bar { margin-bottom: 0; padding: 4px 4px 10px; }
.hm-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0 26px; }
.hm-actions a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; text-decoration: none; color: var(--gray-700); font-size: 12px; font-weight: 700; line-height: 1.25; }
.hm-actions a span { width: 52px; height: 52px; border-radius: var(--radius); background: var(--brand-light); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; font-size: 20px; transition: transform .15s; }
.hm-actions a:hover span { transform: translateY(-2px); }

.hm-section { margin-bottom: 28px; }
.hm-section[hidden], .hm-prompt[hidden], .hm-map[hidden] { display: none; }
.hm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hm-head h2 { font-size: 19px; font-weight: 900; color: var(--gray-900); margin: 0; }
.hm-head p { font-size: 13px; color: var(--gray-500); margin: 2px 0 0; }
.hm-all { font-size: 13px; font-weight: 700; color: var(--brand); text-decoration: none; white-space: nowrap; }

.hm-row { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.hm-row::-webkit-scrollbar { display: none; }
.hm-card { flex: 0 0 200px; scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.hm-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.hm-card.is-skeleton { height: 236px; background: var(--gray-100); border-color: transparent; animation: nb-pulse 1.2s ease-in-out infinite; }
.hm-card-media { position: relative; height: 112px; display: flex; align-items: center; justify-content: center; color: #fff; }
.hm-card-media img { width: 100%; height: 100%; object-fit: cover; }
.hm-badge { position: absolute; top: 8px; left: 8px; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .05em; padding: 2px 8px; border-radius: var(--radius-full); }
.hm-card-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; min-width: 0; flex: 1; }
.hm-card-body strong { font-size: 14px; color: var(--gray-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-sub { font-size: 12.5px; color: var(--gray-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; color: var(--gray-600); }
.hm-cta { margin-top: auto; align-self: flex-start; padding-top: 6px; font-size: 13px; font-weight: 800; color: var(--brand); }

.hm-cats { display: flex; gap: 8px; overflow-x: auto; padding: 0 2px 10px; scrollbar-width: none; }
.hm-cats::-webkit-scrollbar { display: none; }
.hm-cat { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-full); background: #fff; color: var(--gray-700); font-size: 13px; font-weight: 700; text-decoration: none; }
.hm-cat span { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-light); color: var(--brand-dark); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }

.hm-map { display: block; height: 200px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-200); position: relative; z-index: 0; }
.hm-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--gray-600); }
.hm-stat { display: inline-flex; align-items: center; gap: 6px; }
.hm-stat i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.hm-prompt { text-align: center; padding: 26px 16px; border: 1.5px dashed var(--gray-200); border-radius: var(--radius); color: var(--gray-500); }
.hm-prompt h3 { color: var(--gray-900); margin: 8px 0 4px; }

.hm-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 32px; }

.hm-posts { align-items: stretch; }
.hm-post { flex: 0 0 260px; display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; }
.hm-post.is-skeleton { height: 150px; background: var(--gray-100); border-color: transparent; animation: nb-pulse 1.2s ease-in-out infinite; }
.hm-post img { width: 100%; height: 120px; object-fit: cover; }
.hm-post-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.hm-post-body p { margin: 0; font-size: 13px; color: var(--gray-600); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (min-width: 768px) {
  .hm-actions { grid-template-columns: repeat(8, 1fr); }
  .hm-top h1 { font-size: 32px; }
  .hm-map { height: 260px; }
  .hm-card { flex-basis: 220px; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   NEARBY (universal search + map + list)
   ═══════════════════════════════════════════════════════════════════════════════ */

.nb-searchbar { display: flex; gap: 8px; align-items: center; background: #fff; border: 1.5px solid var(--gray-200); border-radius: var(--radius-full); padding: 4px 6px 4px 16px; box-shadow: var(--shadow-sm); }
.nb-searchbar:focus-within { border-color: var(--brand); }
.nb-searchbar input { flex: 1; min-width: 0; border: none; outline: none; background: none; font-size: 15px; height: 40px; color: var(--gray-900); }
.nb-searchbar button { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--brand-light); color: var(--brand-dark); cursor: pointer; flex: 0 0 auto; }

.nb-chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 4px; scrollbar-width: none; }
.nb-chips::-webkit-scrollbar { display: none; }
.nb-chip { flex: 0 0 auto; border: 1.5px solid var(--gray-200); background: #fff; color: var(--gray-700); border-radius: var(--radius-full); padding: 7px 14px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.nb-chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

.nb-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin: 10px 0 14px; }
.nb-controls select { height: 38px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); padding: 0 10px; background: #fff; font-size: 13px; color: var(--gray-700); }
.nb-modes { display: inline-flex; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); overflow: hidden; }
.nb-mode-btn { border: none; background: #fff; padding: 0 14px; height: 38px; font-size: 13px; font-weight: 700; color: var(--gray-600); cursor: pointer; }
.nb-mode-btn.is-active { background: var(--brand); color: #fff; }

/* Map above, list below by default ("both"); "map" hides the list, "list" hides the map. */
.nb-stage { position: relative; display: flex; flex-direction: column; gap: 14px; }
.nb-map-wrap { position: relative; }
#nearby-map { height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-200); z-index: 0; }
.nb-stage[data-mode="map"] #nearby-map { height: 68vh; min-height: 380px; }
.nb-stage[data-mode="map"] #nb-list { display: none; }
.nb-stage[data-mode="list"] .nb-map-wrap { display: none; }
#nb-search-area-btn { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 500; box-shadow: var(--shadow-md); }
#nb-search-area-btn[hidden] { display: none; }

.nb-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 8px 2px 0; font-size: 12px; color: var(--gray-600); }
.nb-legend span { display: inline-flex; align-items: center; gap: 5px; }
.nb-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

#nb-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.nb-stage[data-mode="both"] #nb-list { max-height: 520px; overflow-y: auto; padding-right: 2px; }
.nb-card { display: flex; gap: 12px; padding: 10px; background: #fff; border: 1.5px solid var(--gray-200); border-radius: var(--radius); text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.nb-card:hover, .nb-card.is-active { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.nb-card.is-skeleton { height: 86px; background: var(--gray-100); border-color: transparent; animation: nb-pulse 1.2s ease-in-out infinite; }
@keyframes nb-pulse { 50% { opacity: .55; } }
.nb-card-media { flex: 0 0 68px; height: 68px; border-radius: var(--radius-sm); overflow: hidden; display: flex; align-items: center; justify-content: center; color: #fff; }
.nb-card-media img { width: 100%; height: 100%; object-fit: cover; }
.nb-card-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nb-card-body strong { font-size: 14.5px; color: var(--gray-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-card-kind { align-self: flex-start; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .05em; padding: 2px 8px; border-radius: var(--radius-full); }
.nb-card-sub { font-size: 12.5px; color: var(--gray-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-card-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--gray-600); }

.nb-empty { grid-column: 1 / -1; text-align: center; padding: 32px 16px; color: var(--gray-500); }
.nb-empty h3 { color: var(--gray-900); margin: 10px 0 6px; }
.nb-empty-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }

.nb-popup { min-width: 180px; display: flex; flex-direction: column; gap: 4px; }
.nb-popup-kind { align-self: flex-start; background: var(--gray-900); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .05em; padding: 2px 8px; border-radius: var(--radius-full); }
.nb-popup strong { font-size: 15px; color: var(--gray-900); }
.nb-popup-sub { font-size: 12.5px; color: var(--gray-500); }
.nb-popup-meta { display: flex; gap: 10px; font-size: 12px; color: var(--gray-600); }
.nb-popup-actions { display: flex; gap: 6px; margin-top: 6px; }

.nb-cta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.nb-choice-grid { display: grid; gap: 8px; margin: 12px 0; }
.nb-area-form { display: flex; gap: 6px; margin-top: 14px; justify-content: center; }
.nb-area-form input { height: 38px; border-radius: var(--radius-full); border: 1.5px solid rgba(255,255,255,.35); background: rgba(255,255,255,.15); color: #fff; padding: 0 14px; min-width: 0; }
.nb-area-form input::placeholder { color: rgba(255,255,255,.7); }

@media (max-width: 767px) {
  #nearby-map { height: 320px; }
  .nb-stage[data-mode="map"] #nearby-map { height: 62vh; }
  .nb-stage[data-mode="both"] #nb-list { max-height: none; overflow: visible; }
  #nb-list { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   STORIES (24-hour rings + full-screen viewer)
   ═══════════════════════════════════════════════════════════════════════════════ */

.fs-stories-bar { display: flex; gap: 12px; overflow-x: auto; padding: 14px 4px; margin-bottom: 16px; scrollbar-width: none; }
.fs-stories-bar::-webkit-scrollbar { display: none; }
.fs-story-ring { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 72px; flex-shrink: 0; background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
.fs-story-ring-avatar { position: relative; width: 62px; height: 62px; border-radius: 50%; padding: 2.5px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--gray-200); }
.fs-story-ring.has-unseen .fs-story-ring-avatar { border: none; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.fs-story-ring-add { position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; border: 2px solid #fff; }
.fs-story-ring-label { font-size: 11px; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The Home feed's header reuses this bar on a dark background (unlike its original white-page home) —
   the stray bottom margin from sitting among light page sections isn't wanted here, and the label/ring
   border need to stay visible on dark instead of nearly disappearing. */
.fs-clips-head .fs-stories-bar { margin-bottom: 0; padding: 8px 4px; }
.fs-clips-head .fs-story-ring-label { color: rgba(255,255,255,.85); }
.fs-clips-head .fs-story-ring-avatar { border-color: rgba(255,255,255,.35); }

.fs-story-viewer { position: fixed; inset: 0; z-index: 2000; background: #000; padding: 0; border: none; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; }
.fs-story-viewer::backdrop { background: #000; }
.fs-story-stage { position: relative; width: 100%; height: 100%; }
.fs-story-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.fs-story-text-media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 32px; text-align: center; color: #fff; font-size: 26px; font-weight: 800; }
.fs-story-scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 20%, transparent 70%, rgba(0,0,0,.55)); pointer-events: none; }
.fs-story-progress { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 4px; }
.fs-story-progress i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; display: block; position: relative; }
.fs-story-progress i span { display: block; height: 100%; width: 0%; background: #fff; }
.fs-story-head { position: absolute; top: 20px; left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; color: #fff; }
.fs-story-head strong { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-story-close { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; padding: 6px; }
.fs-story-zones { position: absolute; inset: 70px 0 0; display: flex; }
.fs-story-zones button { flex: 1; background: none; border: none; cursor: pointer; }
.fs-story-zones button:last-child { flex: 2; }
.fs-story-caption { position: absolute; left: 16px; right: 16px; bottom: 90px; color: #fff; font-size: 15px; }
.fs-story-cta { position: absolute; left: 16px; right: 16px; bottom: 28px; }

/* ═══════════════════════════════════════════════════════════════════════════════
   HOME PAGES + FULL-SCREEN VIEWER
   On a phone Home is a stack of full pages (options, Nearby map, people looking for help, professionals, …), one
   per swipe; opening any item shows it full screen, and swiping on shows related things. Wider screens keep the
   ordinary stacked sections. home.js sizes #home to the room between the top bar and the bottom nav.
   ═══════════════════════════════════════════════════════════════════════════════ */

.hm-page[hidden] { display: none !important; }
.hm-swipe, .hm-dots { display: none; }
#hm-map { cursor: pointer; }

@media (max-width: 767px) {
  body.fs-home { overflow: hidden; }
  body.fs-home .fs-footer { display: none; }
  /* a floating chat bubble would sit on top of every page's bottom-right corner; the top bar already has the chat button (same as Clips) */
  body.fs-home .fs-dock { display: none !important; }
  #home.hm { position: relative; max-width: none; margin: 0; padding: 0; overflow-x: hidden; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior-y: contain; scrollbar-width: none; scroll-behavior: smooth; }
  #home.hm::-webkit-scrollbar { display: none; }
  .hm-page { box-sizing: border-box; height: 100%; margin: 0; padding: 14px 20px 12px 16px; display: flex; flex-direction: column; min-height: 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; scroll-snap-align: start; scroll-snap-stop: always; }
  .hm-page::-webkit-scrollbar { display: none; }
  .hm-page > .hm-head { flex: 0 0 auto; margin-bottom: 10px; }
  .hm-head h2 { font-size: 22px; }
  #hm-sections { display: contents; }

  /* page 1: the options, centred in the screen */
  .hm-start { justify-content: flex-start; gap: 12px; }
  .hm-start > :first-child { margin-top: auto; } /* centres the content, but (unlike justify-content) never pushes the top out of reach when it overflows */
  .hm-start > :last-child { margin-bottom: auto; }
  .hm-start > * { flex-shrink: 0; } /* never crush the stories or the buttons; a very short phone scrolls the page instead */
  .hm-start .hm-top { margin-bottom: 0; }
  .hm-start .hm-top h1 { font-size: 27px; margin: 8px 0 12px; }
  .hm-start .hm-actions { grid-template-columns: repeat(4, 1fr); gap: 14px 8px; margin: 6px 0 4px; }
  .hm-start .hm-actions a span { width: 56px; height: 56px; font-size: 22px; }
  .hm-start .hm-cta-row { margin: 8px 0 0; flex-wrap: nowrap; }
  .hm-start .hm-cta-row .fs-btn { flex: 1 1 0; justify-content: center; padding: 11px 8px; font-size: 13px; }
  .hm-swipe { display: block; margin: 6px 0 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--gray-500); }
  .hm-swipe i { display: block; font-size: 14px; animation: hm-bob 1.4s ease-in-out infinite; }

  /* page 2: the map fills the page */
  .hm-nearby .hm-map { flex: 1 1 auto; height: auto; min-height: 200px; border-radius: 16px; }
  .hm-nearby .hm-stats { flex: 0 0 auto; margin-top: 10px; }
  .hm-nearby .hm-prompt { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; }

  /* pages 3+: a 2 x 3 frame of items */
  .hm-page > .hm-row:not(.hm-posts) { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(150px, 1fr)); grid-auto-rows: minmax(150px, 1fr); gap: 10px; overflow-x: hidden; overflow-y: auto; padding: 0; scroll-snap-type: none; }
  .hm-row .hm-card { flex: none; min-height: 0; }
  .hm-row .hm-card-media { flex: 1 1 auto; height: auto; min-height: 54px; }
  .hm-row .hm-card.is-skeleton { height: auto; }
  .hm-page > .hm-cats { flex: 0 0 auto; }
  .hm-card-body strong { font-size: 14px; }

  /* the feed page: posts stacked */
  .hm-posts { flex: 1 1 auto; min-height: 0; flex-direction: column; overflow-x: hidden; overflow-y: auto; }
  .hm-post { flex: none; }
  .hm-post:nth-child(n+3) { display: none; }
  .hm-prompt { justify-content: center; align-items: center; }

  /* where you are in the stack */
  .hm-dots { display: flex; flex-direction: column; gap: 9px; position: fixed; right: 6px; top: 50%; transform: translateY(-50%); z-index: 900; }
  body.fs-viewer-open .hm-dots { display: none; }
  .hm-dots button { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: rgba(15, 23, 42, .28); cursor: pointer; transition: height .2s, background .2s; }
  .hm-dots button.is-current { height: 22px; border-radius: 4px; background: var(--brand); }
}
/* a short phone: tighten page one and the map so nothing has to scroll inside a page (if it still must, the page scrolls) */
@media (max-width: 767px) and (max-height: 720px) {
  .hm-start { gap: 6px; padding-top: 8px; padding-bottom: 8px; }
  .hm-start .hm-top h1 { font-size: 22px; margin: 4px 0 8px; }
  .hm-start .hm-actions { gap: 8px 6px; margin: 2px 0; }
  .hm-start .hm-actions a { font-size: 11px; gap: 3px; }
  .hm-start .hm-actions a span { width: 42px; height: 42px; font-size: 17px; }
  .hm-start .hm-cta-row { margin-top: 2px; }
  .hm-swipe { display: none; }
  .hm-nearby .hm-map { min-height: 110px; }
  .hm-head p { display: none; }
}
@keyframes hm-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ── the full-screen viewer ───────────────────────────────────────────────────────────────────────── */
body.fs-viewer-open { overflow: hidden; }
.vw { position: fixed; inset: 0; z-index: 1600; display: none; background: #0b1220; color: #fff; }
.vw.is-open { display: block; }
.vw-close { position: absolute; top: max(12px, env(safe-area-inset-top, 0px)); left: 12px; z-index: 4; width: 42px; height: 42px; border: none; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; font-size: 18px; cursor: pointer; }
.vw-track { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; outline: none; }
.vw-track::-webkit-scrollbar { display: none; }
.vw-page { position: relative; box-sizing: border-box; height: 100%; display: flex; align-items: flex-end; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; }
.vw-bg { position: absolute; inset: 0; }
.vw-bg img { width: 100%; height: 100%; object-fit: cover; }
.vw-bg.is-plain { display: flex; align-items: center; justify-content: center; padding-bottom: 30%; font-size: 96px; color: rgba(255, 255, 255, .3); background: linear-gradient(165deg, var(--vw-color, #16a34a) 0%, #0b1220 82%); }
.vw-scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .5) 0%, transparent 20%, transparent 34%, rgba(0, 0, 0, .9) 100%); pointer-events: none; }
.vw-body { position: relative; z-index: 2; width: 100%; max-width: 560px; margin: 0 auto; padding: 0 18px calc(26px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; }
.vw-badge { align-self: flex-start; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 3px 10px; border-radius: var(--radius-full); }
.vw-title { margin: 2px 0 0; font-size: 30px; line-height: 1.12; font-weight: 900; letter-spacing: -.4px; color: #fff; overflow-wrap: anywhere; }
.vw-sub { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .85); }
.vw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vw-chips:empty { display: none; }
.vw-chip { background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); border-radius: var(--radius-full); padding: 4px 11px; font-size: 13px; font-weight: 700; }
.vw-summary { margin: 2px 0 0; font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, .88); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vw-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: rgba(255, 255, 255, .78); }
.vw-facts li::before { content: '•'; margin-right: 6px; color: rgba(255, 255, 255, .5); }
.vw-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.vw-actions .fs-btn { flex: 1 1 auto; justify-content: center; }
.vw-ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); }
.vw-ghost:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.vw-end { align-items: center; background: linear-gradient(165deg, #134e4a, #0b1220); text-align: center; }
.vw-hint { position: absolute; left: 0; right: 0; top: max(20px, env(safe-area-inset-top, 0px)); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .85); pointer-events: none; transition: opacity .3s; }
.vw-hint i { animation: hm-bob 1.4s ease-in-out infinite; }
.vw-hint.is-gone { opacity: 0; }
@media (min-width: 768px) { .vw-page { justify-content: center; } .vw-body { padding-bottom: 48px; } }

/* ── story reactions ── */
.fs-story-react { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; justify-content: center; gap: 10px; padding: 10px 12px calc(84px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.fs-story-cta ~ .fs-story-react, .fs-story-react { bottom: 0; }
.fs-story-react button { pointer-events: auto; }
.fs-story-react-btn { width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(0,0,0,.4); font-size: 22px; line-height: 1; cursor: pointer; transition: transform .12s, background .12s; backdrop-filter: blur(4px); }
.fs-story-react-btn:hover { transform: scale(1.12); }
.fs-story-react-btn.is-on { background: rgba(22,163,74,.85); transform: scale(1.12); box-shadow: 0 0 0 2px #fff; }
.fs-story-react-summary { border: none; background: rgba(0,0,0,.45); color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 14px; cursor: pointer; }
.fs-story-reaction-list { list-style: none; margin: 8px 0 12px; padding: 0; max-height: 50vh; overflow: auto; }
.fs-story-reaction-list li { padding: 7px 0; border-bottom: 1px solid var(--gray-100); font-size: 15px; }
.fs-story-zones { z-index: 1; }
.fs-story-caption { bottom: 150px; z-index: 2; pointer-events: none; }
.fs-story-cta { z-index: 3; }


/* ── location field (GPS / address lookup / coordinates), shared by every form that saves a place ── */
.lf { margin: 8px 0 14px; }
.lf-row { display: flex; flex-wrap: wrap; gap: 8px; }
.lf-status { margin-top: 8px; font-size: 13px; color: var(--gray-600); }
.lf-status.is-error { color: #b91c1c; }
.lf-manual { margin-top: 6px; font-size: 13px; }
.lf-manual summary { cursor: pointer; color: var(--gray-500); }
.lf-coords { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.lf-coords label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--gray-700); }
.lf-coords input { padding: 8px 10px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 14px; }
@media (max-width: 520px) { .lf-coords { grid-template-columns: 1fr; } }

/* ═══ STORY COMPOSER + ADD-STORY RING (premium) ═══════════════════════════════════════════════════════════════════════════════ */
.fs-story-ring[data-add-story] .fs-story-ring-avatar { border: none; background: conic-gradient(from 210deg, #22c55e, #16a34a, #0ea5e9, #8b5cf6, #22c55e); padding: 3px; box-shadow: 0 6px 18px rgba(22,163,74,.35); animation: fsStoryGlow 3.2s ease-in-out infinite; }
.fs-story-ring[data-add-story] .fs-story-ring-avatar > :first-child { border: 2.5px solid #fff; border-radius: 50%; }
.fs-story-ring[data-add-story] .fs-story-ring-add { width: 24px; height: 24px; right: -3px; bottom: -3px; background: linear-gradient(135deg,#22c55e,#15803d); box-shadow: 0 3px 10px rgba(21,128,61,.5); font-size: 12px; }
.fs-story-ring[data-add-story]:hover .fs-story-ring-avatar { transform: translateY(-2px) scale(1.04); }
.fs-story-ring-avatar { transition: transform .18s ease; }
@keyframes fsStoryGlow { 0%,100% { box-shadow: 0 6px 18px rgba(22,163,74,.30); } 50% { box-shadow: 0 8px 26px rgba(14,165,233,.38); } }
@media (prefers-reduced-motion: reduce) { .fs-story-ring[data-add-story] .fs-story-ring-avatar { animation: none; } }

.fs-story-composer { border: 0; padding: 0; background: transparent; width: min(440px, 100vw); max-height: 100dvh; margin: auto; overflow: visible; color: #0f172a; }
.fs-story-composer::backdrop { background: rgba(2,6,23,.62); backdrop-filter: blur(6px); }
.fs-sc-card { background: #fff; border-radius: 24px; padding: 18px 18px 16px; box-shadow: 0 30px 80px rgba(2,6,23,.45); max-height: 100dvh; overflow: auto; }
.fs-sc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.fs-sc-head h3 { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: -.01em; }
.fs-sc-note { font-size: 12px; color: #64748b; font-weight: 600; }
.fs-sc-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: #f1f5f9; border-radius: 14px; margin-bottom: 12px; }
.fs-sc-tab { border: 0; background: transparent; padding: 10px 8px; border-radius: 11px; font: 700 14px/1 inherit; color: #475569; cursor: pointer; }
.fs-sc-tab.is-on { background: #fff; color: #15803d; box-shadow: 0 2px 8px rgba(15,23,42,.12); }
.fs-sc-stage { position: relative; aspect-ratio: 9 / 13; max-height: 52dvh; margin: 0 auto; width: 100%; border-radius: 18px; overflow: hidden; background: #0f172a; display: flex; align-items: center; justify-content: center; }
.fs-sc-media { width: 100%; height: 100%; object-fit: cover; }
.fs-sc-swap { position: absolute; left: 10px; bottom: 10px; border: 0; padding: 8px 13px; border-radius: 999px; background: rgba(15,23,42,.72); color: #fff; font: 700 13px inherit; cursor: pointer; backdrop-filter: blur(4px); }
.fs-sc-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%; padding: 20px; text-align: center; color: #e2e8f0; cursor: pointer; border: 2px dashed rgba(255,255,255,.35); border-radius: 18px; background: radial-gradient(circle at 30% 20%, rgba(34,197,94,.28), transparent 55%), radial-gradient(circle at 80% 90%, rgba(14,165,233,.25), transparent 50%), #0f172a; transition: border-color .15s, transform .15s; }
.fs-sc-drop:hover, .fs-sc-drop.is-over { border-color: #22c55e; transform: scale(1.01); }
.fs-sc-drop strong { font-size: 17px; color: #fff; }
.fs-sc-drop span { font-size: 13px; color: #94a3b8; }
.fs-sc-drop .fs-sc-drop-icon { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#22c55e,#15803d); color: #fff; font-size: 22px; box-shadow: 0 8px 22px rgba(22,163,74,.5); }
.fs-sc-textcard { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 28px; text-align: center; color: #fff; font-weight: 800; font-size: 26px; line-height: 1.25; word-break: break-word; }
.fs-sc-textcard p { margin: 0; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.fs-sc-stage textarea { position: absolute; left: 10px; right: 10px; bottom: 30px; height: 84px; resize: none; border: 0; border-radius: 12px; padding: 10px 12px; font: 500 15px/1.35 inherit; background: rgba(255,255,255,.94); color: #0f172a; }
.fs-sc-count { position: absolute; right: 16px; bottom: 9px; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.85); }
.fs-sc-swatches { display: flex; gap: 10px; justify-content: center; margin: 12px 0 2px; }
.fs-sc-swatches[hidden] { display: none; }
.fs-sc-dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #cbd5e1; cursor: pointer; }
.fs-sc-dot.is-on { box-shadow: 0 0 0 3px #0f172a; transform: scale(1.08); }
.fs-sc-error { margin: 10px 2px 0; font-size: 13px; font-weight: 600; color: #b42318; }
.fs-sc-error[hidden], .fs-sc-progress[hidden] { display: none; }
.fs-sc-progress { height: 6px; border-radius: 6px; background: #e2e8f0; margin-top: 12px; overflow: hidden; }
.fs-sc-progress-bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg,#22c55e,#0ea5e9); transition: width .15s; }
.fs-sc-actions { display: flex; gap: 10px; margin-top: 14px; }
.fs-sc-cancel, .fs-sc-post { min-height: 48px; border-radius: 14px; font: 800 15px inherit; cursor: pointer; border: 0; }
.fs-sc-cancel { flex: 0 0 34%; background: #f1f5f9; color: #334155; }
.fs-sc-post { flex: 1; color: #fff; background: linear-gradient(135deg,#22c55e,#15803d); box-shadow: 0 10px 24px rgba(22,163,74,.38); }
.fs-sc-post:disabled { background: #cbd5e1; box-shadow: none; cursor: not-allowed; }
@media (max-width: 767px) { .fs-story-composer { width: 100vw; max-width: 100vw; margin: auto 0 0; } .fs-sc-card { border-radius: 24px 24px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); } }

/* ═══ MARKETPLACE (everything in one grid) ═══════════════════════════════════════════════════════════════════════════════════ */
.mk-page { padding-top: 18px; padding-bottom: 96px; }
.mk-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.mk-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.mk-head h1 { margin: 2px 0 4px; font-size: 30px; font-weight: 900; letter-spacing: -.02em; }
.mk-head p { margin: 0; color: var(--gray-500); max-width: 560px; }
.mk-search { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 260px; max-width: 480px; background: #fff; border: 1px solid var(--gray-200); border-radius: 14px; padding: 6px 6px 6px 14px; box-shadow: 0 4px 14px rgba(15,23,42,.05); }
.mk-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; padding: 8px 0; background: transparent; }
.mk-controls { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mk-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mk-chips::-webkit-scrollbar { display: none; }
.mk-chip { flex-shrink: 0; border: 1px solid var(--gray-200); background: #fff; color: var(--gray-700); font: 700 13px inherit; padding: 9px 15px; border-radius: 999px; cursor: pointer; }
.mk-chip.is-on { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(22,163,74,.3); }
.mk-sort { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--gray-500); flex-shrink: 0; }
.mk-sort select { border: 1px solid var(--gray-200); border-radius: 10px; padding: 7px 8px; font: 600 13px inherit; background: #fff; }
.mk-status { min-height: 18px; margin: 0 0 8px; font-size: 13px; color: var(--gray-500); }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.mk-card { display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; border: 1px solid var(--gray-100); box-shadow: 0 6px 20px rgba(15,23,42,.06); transition: transform .15s, box-shadow .15s; }
.mk-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(15,23,42,.12); }
.mk-media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #ecfdf5, #e0f2fe); display: flex; align-items: center; justify-content: center; }
.mk-media img { width: 100%; height: 100%; object-fit: cover; }
.mk-ph { font-size: 34px; color: var(--brand); opacity: .55; }
.mk-badge { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: rgba(15,23,42,.78); color: #fff; backdrop-filter: blur(4px); }
.mk-dist { position: absolute; right: 8px; bottom: 8px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #fff; color: var(--gray-700); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.mk-body { padding: 11px 12px 13px; display: flex; flex-direction: column; gap: 4px; }
.mk-body h3 { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.25; display: flex; gap: 5px; align-items: center; }
.mk-ok { color: var(--brand); font-size: 13px; }
.mk-sub { margin: 0; font-size: 12.5px; color: var(--gray-500); }
.mk-facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--gray-600); }
.mk-facts li:first-child { font-weight: 800; color: var(--brand-dark); }
.mk-card.is-skeleton { padding-bottom: 14px; gap: 8px; }
.mk-skel-img { display: block; aspect-ratio: 4 / 3; background: var(--gray-100); }
.mk-empty { grid-column: 1 / -1; text-align: center; padding: 48px 16px; color: var(--gray-500); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.mk-empty i { font-size: 30px; color: var(--gray-300); }
.mk-more { text-align: center; margin: 22px 0; }
@media (max-width: 767px) { .mk-head h1 { font-size: 24px; } .mk-controls { flex-direction: column; align-items: stretch; } .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .mk-search { max-width: none; } }

/* ═══ PROFILE PAGE (cover, photo, counts, tabs; same as the phone app) ═══════════════════════════════════════════════════════ */
.pf-page { padding-top: 12px; padding-bottom: 96px; max-width: 980px; }
.pf-card { background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid var(--gray-100); box-shadow: 0 10px 30px rgba(15,23,42,.07); }
.pf-cover { position: relative; height: 150px; background: linear-gradient(135deg, #0f172a, var(--brand)); background-size: cover; background-position: center; }
.pf-cover[data-fs-zoom] { cursor: zoom-in; }
.pf-cover-shade { position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.25)); pointer-events: none; }
.pf-headrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 0 16px; margin-top: -44px; position: relative; }
.pf-avatar { width: 92px; height: 92px; border-radius: 50%; border: 4px solid #fff; background: var(--brand-50, #ecfdf5); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 900; color: var(--brand); box-shadow: 0 6px 18px rgba(15,23,42,.18); flex-shrink: 0; }
.pf-avatar[data-fs-zoom] { cursor: zoom-in; }
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pf-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; padding-bottom: 6px; }
.pf-actions .is-on { background: var(--brand-light); color: var(--brand-dark); border: 1px solid var(--brand); }
.pf-info { padding: 10px 16px 16px; }
.pf-info h1 { margin: 0; font-size: 24px; font-weight: 900; letter-spacing: -.01em; display: flex; align-items: center; gap: 6px; }
.pf-verified { color: var(--brand); font-size: 18px; }
.pf-user { color: var(--gray-500); font-size: 14px; }
.pf-bio { margin: 8px 0 0; color: var(--gray-700); white-space: pre-line; }
.pf-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; color: var(--gray-500); font-size: 13px; }
.pf-counts { display: flex; gap: 22px; margin-top: 12px; }
.pf-stat { background: none; border: 0; padding: 0; cursor: pointer; display: flex; gap: 6px; align-items: baseline; font: inherit; color: inherit; }
.pf-stat strong { font-size: 18px; font-weight: 900; }
.pf-stat span { color: var(--gray-500); font-size: 14px; }
.pf-stat:hover span { color: var(--brand-dark); text-decoration: underline; }
.pf-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 14px 0 10px; padding: 2px; scrollbar-width: none; position: sticky; top: 0; z-index: 5; background: var(--page-bg, #f4f7fa); }
.pf-tabs::-webkit-scrollbar { display: none; }
.pf-tab { flex-shrink: 0; border: 1px solid var(--gray-200); background: #fff; padding: 9px 15px; border-radius: 999px; font: 700 13px inherit; color: var(--gray-700); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.pf-tab.is-on { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; border-color: transparent; }
.pf-tabn { font-size: 11px; background: rgba(0,0,0,.12); padding: 1px 7px; border-radius: 999px; }
.pf-tab.is-on .pf-tabn { background: rgba(255,255,255,.25); }
.pf-play { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; }
.pf-people { width: min(440px, 94vw); max-height: 80dvh; overflow: auto; }
.pf-list { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; }
.pf-person { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; }
.pf-person-main { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.pf-person-main img, .pf-person-ph { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--brand-50, #ecfdf5); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.pf-person-main span { display: flex; flex-direction: column; min-width: 0; }
.pf-person-main small { color: var(--gray-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767px) { .pf-cover { height: 120px; } .pf-avatar { width: 80px; height: 80px; font-size: 30px; } .pf-headrow { margin-top: -38px; } }

/* ═══ MY BUSINESS HUB ══════════════════════════════════════════════════════════════════════════════════════════════════════════ */
.bh-page { padding-top: 18px; padding-bottom: 96px; max-width: 980px; }
.bh-switch { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.bh-switch::-webkit-scrollbar { display: none; }
.bh-biz { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; text-align: left; background: #fff; border: 1px solid var(--gray-200); border-radius: 16px; padding: 10px 14px 10px 10px; cursor: pointer; font: inherit; min-width: 210px; }
.bh-biz.is-on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-light), 0 8px 22px rgba(22,163,74,.18); }
.bh-biz img, .bh-biz-ph { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--brand-50, #ecfdf5); color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bh-biz-text { display: flex; flex-direction: column; min-width: 0; }
.bh-biz-text small { color: var(--gray-500); text-transform: capitalize; }
.bh-pill { margin-left: auto; background: #f59e0b; color: #fff; font: 800 11px inherit; padding: 3px 8px; border-radius: 999px; }
.bh-head { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 18px; padding: 14px; border: 1px solid var(--gray-100); margin: 6px 0 14px; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.bh-head > img, .bh-biz-ph.big { width: 68px; height: 68px; border-radius: 16px; object-fit: cover; font-size: 26px; }
.bh-head h2 { margin: 0; font-size: 20px; font-weight: 900; }
.bh-head p { margin: 2px 0 6px; color: var(--gray-500); font-size: 13px; }
.bh-open { font: 800 11px inherit; padding: 3px 9px; border-radius: 999px; background: #fee2e2; color: #b91c1c; }
.bh-open.is-open { background: #dcfce7; color: #15803d; }
.bh-role { font: 800 11px inherit; padding: 3px 9px; border-radius: 999px; background: var(--gray-100); color: var(--gray-700); }
.bh-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bh-tile { display: flex; flex-direction: column; gap: 3px; background: #fff; border: 1px solid var(--gray-100); border-radius: 16px; padding: 14px; text-decoration: none; color: inherit; box-shadow: 0 5px 16px rgba(15,23,42,.05); transition: transform .15s, box-shadow .15s; }
.bh-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15,23,42,.1); }
.bh-tile-ic { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--brand-light), #e0f2fe); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.bh-tile strong { font-size: 14px; }
.bh-tile small { color: var(--gray-500); font-size: 12px; }
.bh-create { margin-top: 22px; }
.bh-create h3 { margin: 0 0 6px; font-size: 17px; font-weight: 900; }
.bh-invite { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--brand-50, #ecfdf5); border: 1px solid var(--brand-light); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; font-weight: 600; }
.bh-invite span { flex: 1; min-width: 200px; }

.pf-edit-cover { position: absolute; right: 10px; top: 10px; border: 0; padding: 8px 14px; border-radius: 999px; background: rgba(15,23,42,.72); color: #fff; font: 700 13px inherit; cursor: pointer; backdrop-filter: blur(4px); z-index: 2; }
.pf-edit-cover.is-second { right: auto; left: 10px; padding: 8px 11px; }
.pf-edit-photo { position: absolute; left: 76px; bottom: 4px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; background: var(--brand); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(0,0,0,.25); }
@media (max-width: 767px) { .pf-edit-photo { left: 64px; } }

/* ═══ People and businesses open their page from anywhere (static/js/fs/profile-links.js) ═══ */
[data-open] { cursor: pointer; }
[data-open]:focus-visible { outline: 3px solid #10b981; outline-offset: 2px; border-radius: 8px; }
strong[data-open]:hover, span[data-open]:hover > strong, .fs-open-name:hover { text-decoration: underline; text-underline-offset: 2px; }
.fs-avatar[data-open]:hover { box-shadow: 0 0 0 3px rgba(16,185,129,.35); }

.nb-card-by, .nb-popup-by { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--gray-600); width: fit-content; max-width: 100%; }
.nb-card-by .fs-avatar, .nb-popup-by .fs-avatar { flex: 0 0 18px; }
.nb-card-by:hover, .nb-popup-by:hover { color: var(--brand-dark); }

/* full-screen viewer: clips/posts with video, the person behind an item */
.vw-bg.is-video { background: #000; }
.vw-video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.vw-sound { position: absolute; top: max(12px, env(safe-area-inset-top, 0px)); right: 12px; z-index: 4; width: 42px; height: 42px; border: none; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; font-size: 17px; cursor: pointer; }
.vw-by { display: inline-flex; align-items: center; gap: 9px; align-self: flex-start; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); font-size: 14px; font-weight: 700; cursor: pointer; }
.vw-by:hover { background: rgba(255, 255, 255, .26); }

.fs-post-expand { flex: 0 0 auto; width: 34px; height: 34px; border: none; border-radius: 50%; background: transparent; color: var(--gray-500); cursor: pointer; }
.fs-post-expand:hover { background: var(--gray-100); color: var(--brand-dark); }

.mk-media { position: relative; }
.mk-expand { position: absolute; top: 8px; right: 8px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; background: rgba(15, 23, 42, .62); color: #fff; display: grid; place-items: center; font-size: 13px; cursor: pointer; }
.mk-expand:hover { background: rgba(5, 150, 105, .95); }

/* ═══ BOLO BILL first: the banner, the main nav button ═══ */
.fs-bolo-banner { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 14px 18px; border-radius: 18px; background: linear-gradient(135deg, #065f46, #16a34a); color: #fff; text-decoration: none; box-shadow: 0 12px 28px -12px rgba(5, 150, 105, .7); }
.fs-bolo-banner:hover { color: #fff; transform: translateY(-1px); }
.fs-bolo-mic { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-size: 22px; }
.fs-bolo-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fs-bolo-text strong { font-size: 19px; font-weight: 900; letter-spacing: -.2px; }
.fs-bolo-text small { font-size: 13px; opacity: .88; }
.fs-navbar-bolo { color: #34d399 !important; font-weight: 800; }
.fs-bottom-nav-item.is-bolo i { background: #16a34a; color: #fff; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin-top: -22px; box-shadow: 0 8px 18px -6px rgba(22, 163, 74, .8); border: 3px solid #fff; font-size: 18px; }
.fs-bottom-nav-item.is-bolo span { font-weight: 800; color: #15803d; }

/* full-screen viewer: more of the same kind (sideways), and the slide to details */
.vw-page { transition: transform .17s ease-in, opacity .17s; }
.vw-page.is-leaving { transform: translateX(-38%); opacity: 0; }
.vw-more { margin-top: 6px; }
.vw-more-head { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .8); margin-bottom: 6px; }
.vw-more-head span { text-transform: none; letter-spacing: 0; font-weight: 600; opacity: .7; }
.vw-more-row { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 2px 2px 6px; scrollbar-width: none; }
.vw-more-row::-webkit-scrollbar { display: none; }
.vw-mini { flex: 0 0 96px; scroll-snap-align: start; border: 1.5px solid rgba(255, 255, 255, .28); border-radius: 14px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(6px); padding: 0; overflow: hidden; text-align: left; color: #fff; cursor: pointer; }
.vw-mini:hover { border-color: #34d399; }
.vw-mini img, .vw-mini-ph { display: grid; place-items: center; width: 100%; height: 64px; object-fit: cover; font-size: 20px; }
.vw-mini strong { display: block; padding: 5px 8px 7px; font-size: 11.5px; font-weight: 700; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Home's Nearby map: drag, zoom, cluster, and what is in view listed under it */
#hm-map { cursor: grab; }
#hm-map:active { cursor: grabbing; }
.hm-map { position: relative; }
.hm-map-actions { position: absolute; right: 10px; top: 10px; z-index: 700; display: flex; flex-direction: column; gap: 8px; }
.hm-map-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(15, 23, 42, .1); background: rgba(255, 255, 255, .95); color: #0f172a; font-size: 15px; display: grid; place-items: center; cursor: pointer; box-shadow: 0 5px 16px rgba(15, 23, 42, .14); }
.hm-map-btn:hover { background: #fff; transform: translateY(-1px); }
.hm-map-btn.is-primary { background: #059669; border-color: #059669; color: #fff; }
.hm-map-grab, .hm-map-done { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 700; border: 0; border-radius: 999px; padding: 9px 16px; font: 800 13px system-ui, sans-serif; cursor: pointer; box-shadow: 0 8px 20px rgba(15, 23, 42, .3); }
.hm-map-grab { background: rgba(15, 23, 42, .85); color: #fff; }
.hm-map-done { background: #16a34a; color: #fff; }
.hm-map-done[hidden], .hm-map-grab[hidden] { display: none; }
.hm-map.is-held { box-shadow: 0 0 0 3px rgba(16, 185, 129, .45); }
.hm-map-strip { display: flex; gap: 10px; overflow-x: auto; margin-top: 10px; padding: 2px 2px 6px; scrollbar-width: none; flex: 0 0 auto; }
.hm-map-strip::-webkit-scrollbar { display: none; }
.hm-map-strip[hidden] { display: none; }
.hm-mini { flex: 0 0 auto; width: 210px; display: flex; align-items: center; gap: 10px; padding: 8px; border: 1.5px solid var(--gray-200); border-radius: 14px; background: #fff; text-align: left; cursor: pointer; }
.hm-mini:hover { border-color: var(--brand); }
.hm-mini img, .hm-mini-ph { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; display: grid; place-items: center; color: #fff; }
.hm-mini strong { display: block; font-size: 13px; color: var(--gray-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 130px; }
.hm-mini small { display: block; font-size: 11.5px; color: var(--gray-500); }
@media (min-width: 768px) { .hm-map { height: 420px; } }

@media (max-width: 767px) {
  .fs-bolo-banner { padding: 8px 12px; margin-bottom: 8px; gap: 10px; border-radius: 14px; }
  .fs-bolo-mic { width: 36px; height: 36px; font-size: 15px; }
  .fs-bolo-text strong { font-size: 15.5px; }
  .fs-bolo-text small { display: none; }
}

/* ═══ Phone header search: a real search pill ═══ */
@media (max-width: 767px) {
  .fs-search-wrap { height: 46px; max-width: none; border-radius: 999px; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .22); }
  .fs-search-wrap select { flex: 0 0 auto; width: 74px; max-width: 74px; height: 44px; padding: 0 6px 0 14px; font-size: 13px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .08); text-overflow: ellipsis; }
  .fs-search-wrap input { height: 44px; padding: 0 12px; font-size: 16px; min-width: 0; }   /* 16px stops phones zooming the page when the field is focused */
  .fs-search-wrap input::placeholder { color: rgba(255, 255, 255, .55); }
  .fs-search-wrap input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; height: 18px; width: 18px; border-radius: 50%; margin-right: 4px; background: rgba(255, 255, 255, .5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 10px no-repeat; }
  .fs-search-btn { width: 54px; height: 46px; padding: 0; justify-content: center; }
  .fs-search-btn i { font-size: 16px; }
}
