/* ============================================================
   Home Maintenances - FINAL A-GRADE MASTER CSS
   Performance Optimized • Fully Mobile Responsive • Screen Touch
   Zero Overflow • Production Ready • Apple Touch Physics
   Master Version – 2026-10-13 (CLS + Full WCAG AAA + 1-Click Mobile Menu)
   ============================================================ */

:root {
  --primary: #0f766e;
  --primary-dark: #0d9488;
  --primary-light: #f0fdfa;
  --accent: #b45309;          /* darkened for white-text ≥ 5:1 */
  --accent-dark: #92400e;
  --success: #047857;         /* darkened for white-text ≥ 5.4:1 */
  --danger: #ef4444;
  --warning: #b45309;
  --info: #0369a1;

  /* AAA-compliant text (normal text ≥ 7:1 on white) */
  --text: #0f172a;            /* 17.8:1 */
  --text-muted: #334155;      /* 10.3:1 */
  --text-light: #475569;      /*  7.6:1 */
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --card-bg: #ffffff;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 50px rgba(0,0,0,.12);
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --header-h: 64px;
  --bottom-nav-h: 64px;
  --transition: all .2s ease;
  --focus-ring: 0 0 0 3px #ffffff, 0 0 0 6px var(--primary);
  --focus-ring-dark: 0 0 0 3px var(--primary), 0 0 0 6px #ffffff;
}

[data-theme="dark"] {
  --text: #f1f5f9;
  --text-muted: #cbd5e1;
  --text-light: #94a3b8;
  --border: #334155;
  --border-light: #1e293b;
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --card-bg: #1e293b;
  --primary-light: #134e4a;
  --shadow: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,.4);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.45);
  --shadow-xl: 0 20px 50px rgba(0,0,0,.5);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font) !important;
  color: var(--text);
  background: var(--bg-alt);
  line-height: 1.6;
  padding-bottom: var(--bottom-nav-h);
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  touch-action: manipulation;
}

body.menu-open {
  overflow: hidden !important;
  touch-action: none;
}

h1, h2, h3, h4, h5, h6,
p, span, a, button, input, select, textarea,
.btn, .nav-link, .form-control, .form-select,
.vendor-name, .cat-chip-name, .section-title,
.top-logo, .badge-count, .breadcrumb,
label, li, td, th {
  font-family: var(--font) !important;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
  touch-action: manipulation;
}
a:hover { color: var(--primary); }
a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

ul, ol { list-style: none; }

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 9999;
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  position: relative;
}

.site-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  z-index: 10001;
}

.site-logo span {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-logo:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 6px;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 4px;
  flex: 1;
  margin-left: 12px;
}

.nav-link {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.nav-group { position: relative; }

.nav-sub {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 200px;
  z-index: 100;
  border: 1px solid var(--border);
}

.nav-group:hover .nav-sub,
.nav-group:focus-within .nav-sub { display: block; }

.nav-sub a {
  display: block;
  padding: 10px 14px;
  font-size: .875rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-sub a:hover,
.nav-sub a:focus-visible {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-sub a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-actions .btn {
  min-height: 44px;
  padding: 8px 16px;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

/* ========== HAMBURGER & 1-CLICK MOBILE MENU ========== */
.hamburger,
#menuToggle,
.menu-toggle,
.mobile-nav-toggle {
  display: flex;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  padding: 8px 12px;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
  border-radius: 8px;
  transition: background .2s ease;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  z-index: 10002;
}

.hamburger:hover,
.hamburger:focus-visible { background: var(--bg-alt); }

.hamburger:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Mobile backdrop */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  transition: opacity .25s ease;
}

.nav-backdrop.show,
body.menu-open .nav-backdrop {
  display: block;
  opacity: 1;
}

/* Mobile Nav Drawer (Full 1-Click Smooth Responsive Logic) */
@media (max-width: 1023px) {
  .hamburger,
  #menuToggle,
  .menu-toggle,
  .mobile-nav-toggle {
    display: flex !important;
  }

  .main-nav {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(340px, 86vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: var(--bg) !important;
    flex-direction: column !important;
    padding: calc(var(--header-h) + 16px) 16px 40px !important;
    border-left: 1px solid var(--border) !important;
    border-bottom: none !important;
    box-shadow: -8px 0 32px rgba(0,0,0,.18) !important;
    gap: 6px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    z-index: 10000 !important;
    transform: translate3d(105%, 0, 0) !important;
    transition: transform .28s cubic-bezier(0.2, 0.9, 0.3, 1) !important;
    pointer-events: none !important;
    visibility: hidden;
  }

  .main-nav.show,
  .main-nav.active,
  .main-nav.open,
  body.menu-open .main-nav {
    transform: translate3d(0, 0, 0) !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }

  .main-nav .nav-search {
    width: 100%;
    margin-bottom: 12px;
  }

  .main-nav .nav-link {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    border-radius: 10px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    touch-action: manipulation;
  }

  .main-nav .nav-link:hover,
  .main-nav .nav-link:focus-visible {
    background: var(--primary-light);
    color: var(--primary);
  }

  .nav-group {
    width: 100%;
  }

  .nav-group-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    border-radius: 10px;
    min-height: 48px;
    cursor: pointer;
    touch-action: manipulation;
  }

  .nav-sub {
    position: static !important;
    display: none !important;
    box-shadow: none !important;
    border: none !important;
    background: var(--bg-alt) !important;
    margin: 4px 0 8px 12px !important;
    border-radius: 10px !important;
    padding: 6px !important;
    width: calc(100% - 12px) !important;
  }

  .nav-group.open .nav-sub,
  .nav-group.active .nav-sub {
    display: block !important;
  }

  .nav-sub a {
    padding: 10px 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: .9rem;
    color: var(--text-muted);
  }

  .nav-sub a:hover,
  .nav-sub a:focus-visible {
    color: var(--primary);
    background: #fff;
  }
}

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .main-nav { display: flex !important; transform: none !important; visibility: visible !important; pointer-events: auto !important; }
  .hamburger, #menuToggle, .menu-toggle, .mobile-nav-toggle { display: none !important; }
  .nav-backdrop { display: none !important; }
}

/* ========== BOTTOM NAV (APPLE TOUCH READY) ========== */
.bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-h);
  background: var(--bg);
  border-top: 1px solid var(--border);
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0,0,0,.06);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: .65rem;
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  padding: 6px 2px;
  min-height: 48px;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.bn-item:active {
  transform: scale(0.95);
}

.bn-item.active,
.bn-item:hover { color: var(--primary); }

.bn-item:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 8px;
  color: var(--primary);
}

.bn-icon { font-size: 1.2rem; line-height: 1; }
.bn-label { font-size: .62rem; font-weight: 500; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.3;
  touch-action: manipulation;
  min-height: 44px;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(15,118,110,.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15,118,110,.35);
  color: #fff;
}

.btn-primary:focus-visible { box-shadow: var(--focus-ring-dark); }

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.btn-sm { padding: 8px 14px; font-size: .82rem; min-height: 38px; }
.btn-lg { padding: 14px 28px; font-size: 1rem; min-height: 50px; }
.btn-block { width: 100%; }

.btn-wa {
  background: #15803d;
  color: #fff;
}

.btn-wa:hover {
  background: #166534;
  color: #fff;
}

/* ========== FORMS ========== */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-label .req { color: var(--danger); }

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  transition: var(--transition);
  background: var(--card-bg);
  color: var(--text);
  min-height: 48px;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15,118,110,.18);
}

.form-control:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
}

.form-control::placeholder {
  color: var(--text-light);
  opacity: 1;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23334155' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  font-size: 16px;
}

/* ========== CARDS ========== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover { box-shadow: var(--shadow-md); }

/* ========== VENDOR CARD ========== */
.vendor-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  contain: layout style;
}

.vendor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.1);
}

.vendor-card-img {
  position: relative;
  display: flex;
  width: 100%;
  height: 150px;
  min-height: 150px;
  aspect-ratio: 2 / 1;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0f766e, #0d9488);
  text-decoration: none;
  isolation: isolate;
}

.vendor-card-img:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 7px var(--primary);
}

.vendor-card-img img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center;
  background: #f1f5f9;
}

.vendor-avatar {
  width: 70px; height: 70px;
  background: rgba(255,255,255,.25);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  border: 3px solid rgba(255,255,255,.4);
  flex-shrink: 0;
}

.vendor-badges {
  position: absolute;
  top: 10px; left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  z-index: 2;
}

.vendor-badge {
  font-size: .68rem;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.badge-featured {
  background: #b45309;
  color: #111;
}

.badge-verified {
  background: #047857;
}

.badge-plan {
  background: #4f46e5;
}

.vendor-card-body {
  padding: 16px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.vendor-name a {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
}

.vendor-name a:hover { color: var(--primary); }

.vendor-name a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

.vendor-cat {
  font-size: .82rem;
  color: var(--text-muted);
  margin: 4px 0;
}

.vendor-name,
.vendor-cat,
.vendor-location,
.vendor-rating,
.vendor-actions {
  min-width: 0;
}

.vendor-name a,
.vendor-cat,
.vendor-location {
  overflow-wrap: anywhere;
}

.vendor-location {
  font-size: .78rem;
  color: var(--text-muted);
  margin: 4px 0 8px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  line-height: 1.35;
}

.vendor-rating {
  font-size: .82rem;
  color: var(--text-muted);
  margin: 4px 0;
}

.vendor-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  flex-wrap: wrap;
}

.vendor-actions .btn {
  flex: 1 1 88px;
  min-width: 82px;
  font-size: .76rem;
  padding: 8px 7px;
  text-align: center;
  min-height: 44px;
  border-radius: 10px;
  line-height: 1.2;
}

/* ========== SEARCH SECTION (CLS FIXED) ========== */
.search-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%);
  padding: 48px 0 28px;
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 480px;
  contain: layout style;
}

@media (max-width: 767px) {
  .search-section {
    min-height: 420px;
    padding: 36px 0 22px;
  }
}

.search-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 10px;
}

.search-title em { color: #fbbf24; font-style: normal; }

.search-sub {
  color: rgba(255,255,255,.95);
  font-size: .95rem;
  margin-bottom: 22px;
}

.search-box {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-xl);
}

.search-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}

.filter-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 52px;
  align-items: stretch;
}

.filter-row .form-control,
.filter-row .form-select {
  width: 100%;
  height: 48px;
  min-height: 48px;
  border-radius: 10px;
  box-sizing: border-box;
}

.search-btn {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  font-weight: 700;
  min-height: 48px;
}

.popular-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
  align-items: center;
}

.pop-label {
  color: rgba(255,255,255,.9);
  font-size: .8rem;
}

.pop-tag {
  background: rgba(255,255,255,.18);
  color: #fff;
  padding: 8px 14px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  font-size: .78rem;
  text-decoration: none;
  touch-action: manipulation;
}

.pop-tag:hover { background: rgba(255,255,255,.3); }

.pop-tag:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--primary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
}

.hero-actions .btn {
  min-height: 52px;
  padding: 14px 28px;
  font-weight: 800;
  border-radius: 50px;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
}

.hero-cta-primary {
  min-width: 190px;
}

.hero-cta-secondary {
  min-width: 190px;
  background: #fff;
  color: #0f172a;
  border-color: rgba(255,255,255,.85);
  box-shadow: 0 4px 14px rgba(0,0,0,.16);
}

.hero-cta-secondary:hover,
.hero-cta-secondary:focus-visible {
  background: #f8fafc;
  color: #0f172a;
}

.hero-cta-track {
  min-width: 175px;
}

@media (max-width: 640px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions .btn {
    min-width: 0;
    width: 100%;
    min-height: 54px;
    padding: 13px 12px;
    font-size: .94rem;
  }

  .hero-cta-track {
    grid-column: 1 / -1;
  }
}

@media (max-width: 390px) {
  .hero-actions {
    grid-template-columns: 1fr;
  }
  .hero-cta-track {
    grid-column: auto;
  }
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 14px 0 6px;
  font-size: .82rem;
  opacity: .95;
}

/* ========== HERO BANNER SLIDER (CLS FIXED) ========== */
.hero-banner-slider {
  position: relative;
  margin: 22px 0 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0,0,0,.28);
  min-height: 240px;
  aspect-ratio: 16 / 5;
  contain: layout;
  touch-action: pan-y pinch-zoom;
}

@media (max-width: 767px) {
  .hero-banner-slider {
    min-height: 190px;
    aspect-ratio: 16 / 6;
  }
}

.hero-banner-track {
  display: flex;
  transition: transform .55s cubic-bezier(0.25,0.8,0.25,1);
  will-change: transform;
}

.hero-banner-slide {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
  position: relative;
  color: #fff;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 20px 36px;
}

@media (min-width: 768px) {
  .hero-banner-slide {
    min-height: 240px;
    padding: 36px 40px 44px;
  }
}

.hero-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.hero-banner-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.hero-banner-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .hero-banner-title { font-size: 1.75rem; }
}

.hero-banner-sub {
  margin: 0 0 18px;
  font-size: .88rem;
  opacity: .95;
  line-height: 1.45;
}

.hero-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  font-size: .9rem;
  padding: 12px 22px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  min-height: 44px;
}

.hero-banner-cta:hover { color: #0f172a; transform: translateY(-1px); }
.hero-banner-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--primary);
}

.hero-banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: none;
  font-size: 1.4rem;
  color: #0f172a;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.hero-banner-nav.prev { left: 12px; }
.hero-banner-nav.next { right: 12px; }

.hero-banner-nav:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.hero-banner-dots {
  position: absolute;
  bottom: 14px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}

.hero-banner-dots button,
.hero-banner-dots span {
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  touch-action: manipulation;
}

.hero-banner-dots button.active,
.hero-banner-dots span.active { background: #fff; }

.hero-banner-dots button:focus-visible,
.hero-banner-dots span:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--primary);
}

/* ========== FLOATING ACTIONS (CLS FIXED) ========== */
.floating-actions {
  position: fixed;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  pointer-events: none;
  width: 160px;
}

.floating-actions .fab {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  min-width: 148px;
  height: 48px;
  min-height: 48px;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
  touch-action: manipulation;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.fab:active { transform: scale(.96); }

.fab-book {
  background: linear-gradient(135deg, #0369a1, #0284c7);
}

.fab-quote {
  background: linear-gradient(135deg, #6d28d9, #5b21b6);
}

.fab-track {
  background: linear-gradient(135deg, #047857, #065f46);
}

.fab-install {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #115e59 100%);
  display: none;
  box-shadow: 0 6px 20px rgba(13,148,136,.35);
}

.fab:hover {
  transform: translateY(-3px);
  color: #fff !important;
}

.fab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #0284c7;
}

@media (max-width: 767px) {
  .floating-actions {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 10px);
    top: auto;
    transform: none;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 6px;
    align-items: stretch;
    pointer-events: none;
    padding: 0;
  }
  .floating-actions .fab {
    pointer-events: auto;
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    min-height: 58px;
    height: 58px;
    padding: 9px 4px;
    border-radius: 14px;
    flex-direction: column;
    gap: 3px;
    font-size: .68rem;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    box-shadow: 0 7px 20px rgba(0,0,0,.20), 0 0 0 1px rgba(255,255,255,.18) inset;
    touch-action: manipulation;
  }
  .floating-actions .fab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
  }
  .floating-actions .fab-icon svg {
    width: 20px;
    height: 20px;
  }
  .floating-actions .fab-text {
    display: block !important;
    font-size: .65rem;
    font-weight: 700;
    line-height: 1.15;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .floating-actions #installBtn.fab-install {
    display: inline-flex;
  }
  .floating-actions .fab:focus-visible {
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px #0284c7, 0 7px 20px rgba(0,0,0,.20);
  }
}

@media (max-width: 380px) {
  .floating-actions {
    left: 6px;
    right: 6px;
    gap: 4px;
    bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 8px);
  }
  .floating-actions .fab {
    min-height: 56px;
    height: 56px;
    padding: 8px 2px;
    border-radius: 12px;
    font-size: .62rem;
  }
  .floating-actions .fab-text {
    display: block !important;
    font-size: .58rem;
  }
  .floating-actions .fab-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
  .floating-actions .fab-icon svg { width: 18px; height: 18px; }
}

/* ========== SECTIONS ========== */
.section { padding: 40px 0; }
.section-alt { background: var(--bg); }

.section-header {
  text-align: center;
  margin-bottom: 28px;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text);
}

.section-sub {
  color: var(--text-muted);
  font-size: .92rem;
}

.view-all {
  display: inline-block;
  margin-top: 10px;
  color: var(--primary);
  font-weight: 600;
  font-size: .9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.view-all:hover { text-decoration: underline; }

.view-all:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

/* ========== GRIDS ========== */
.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.cat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  text-align: center;
  transition: var(--transition);
  text-decoration: none;
  touch-action: manipulation;
  min-height: 80px;
  justify-content: center;
}

.cat-chip:active {
  transform: scale(0.97);
}

.cat-chip:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}

.cat-chip:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-color: var(--primary);
}

.cat-chip-icon {
  font-size: 1.6rem;
  margin-bottom: 6px;
  line-height: 1;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-chip-name {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
}

/* ========== STATS ========== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-item {
  text-align: center;
  padding: 18px 10px;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ========== STEPS ========== */
.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-num {
  width: 40px; height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 1rem;
}

/* ========== SCRAP CTA ========== */
.scrap-cta {
  background: linear-gradient(135deg, #064e3b, #065f46);
  color: #fff;
  padding: 40px 16px;
  text-align: center;
}

.scrap-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
  line-height: 1;
  display: flex;
  justify-content: center;
}

/* ========== FOOTER ========== */
.site-footer {
  background: #0f172a;
  color: rgba(255,255,255,.9);
  padding: 48px 0 30px;
  margin-top: 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.footer-col h4 {
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,.85);
  font-size: .88rem;
  margin-bottom: 8px;
  transition: color .2s ease;
  min-height: 36px;
  display: flex;
  align-items: center;
}

.footer-col a:hover { color: #fff; }

.footer-col a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #0f172a, 0 0 0 6px #fff;
  border-radius: 4px;
  color: #fff;
}

/* ========== CATEGORY HERO + FEATURED ========== */
.cat-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 0 0 28px 28px;
  padding: 20px 0 28px;
  color: #fff;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.cat-hero .container {
  padding-left: 16px;
  padding-right: 16px;
}

.cat-hero .badge-count {
  display: inline-block;
  background: rgba(255,255,255,.95);
  color: #0f172a;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.cat-hero h1 {
  font-size: clamp(1.4rem, 5vw, 1.85rem);
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.2;
}

.cat-hero p {
  font-size: .92rem;
  opacity: .95;
  margin: 0;
  max-width: 520px;
}

.featured-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 14px 2px 8px;
  margin: 0 -4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
}

.featured-track::-webkit-scrollbar { display: none; }

.featured-card {
  flex: 0 0 200px;
  max-width: 210px;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
  text-decoration: none;
  color: inherit;
  transition: transform .22s ease, box-shadow .22s ease;
  content-visibility: auto;
  contain: layout style;
}

.featured-card:hover,
.featured-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,.18);
}

.featured-card:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), 0 14px 32px rgba(0,0,0,.18);
}

.featured-card .top {
  height: 84px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.9rem;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.featured-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: #b45309;
  color: #111;
  font-size: .62rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
  z-index: 2;
}

.featured-card .body {
  padding: 12px 14px 14px;
  min-height: 92px;
}

.featured-card h5 {
  font-size: .9rem;
  font-weight: 700;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-card .meta {
  font-size: .74rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.v-banner {
  height: 110px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  overflow: hidden;
}

.v-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.v-banner .fallback-initial {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

/* ========== SLIDER ========== */
.vendor-slider-wrapper {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.vendor-slider {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: stretch;
  gap: 16px;
  transition: transform .4s ease;
  will-change: transform;
}

.vendor-slide {
  box-sizing: border-box;
  flex: 0 0 100%;
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 576px) {
  .vendor-slide { flex: 0 0 calc(50% - 8px); }
}

@media (min-width: 900px) {
  .vendor-slide { flex: 0 0 calc(33.333% - 11px); }
}

@media (min-width: 1200px) {
  .vendor-slide { flex: 0 0 calc(25% - 12px); }
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  font-size: 1.4rem;
  color: var(--text);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
}

.slider-btn.prev { left: 4px; }
.slider-btn.next { right: 4px; }

.slider-btn:hover {
  background: var(--primary);
  color: #fff;
}

.slider-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  background: var(--primary);
  color: #fff;
}

.slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  min-height: 12px;
}

.slider-dots button,
.slider-dots span {
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background .2s, transform .2s;
  touch-action: manipulation;
}

.slider-dots button.active,
.slider-dots span.active {
  background: var(--primary);
}

.slider-dots button:focus-visible,
.slider-dots span:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.slider-dots button.active {
  transform: scale(1.15);
}

/* ========== VENDOR RESPONSIVE HARDENING ========== */
@media (max-width: 767px) {
  .vendor-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
  }

  .vendor-card-img {
    height: clamp(116px, 38vw, 150px);
    min-height: 116px;
  }

  .vendor-card-body {
    padding: 14px;
    min-height: 0;
  }

  .vendor-name a {
    font-size: 1rem;
    line-height: 1.3;
  }

  .vendor-cat,
  .vendor-location,
  .vendor-rating {
    line-height: 1.35;
  }

  .vendor-actions {
    gap: 7px;
    padding-top: 10px;
  }

  .vendor-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
  }
}

@media (max-width: 380px) {
  .vendor-card-img {
    height: 116px;
    min-height: 116px;
  }

  .vendor-card-body {
    padding: 13px;
  }

  .vendor-actions {
    gap: 5px;
  }

  .vendor-actions .btn {
    font-size: .72rem;
    padding-inline: 6px;
    min-height: 44px;
  }
}

/* ========== RESPONSIVE ========== */
@media (min-width: 576px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(4, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .filter-row {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .filter-row .form-control,
  .filter-row .form-select {
    flex: 1;
    min-width: 130px;
  }
  .search-btn { width: auto; white-space: nowrap; }
  .search-title { font-size: 2rem; }
}

@media (min-width: 768px) {
  .search-title { font-size: 2.3rem; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .steps-grid {
    flex-direction: row;
    justify-content: space-between;
  }
  .step-item {
    flex: 1;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .floating-actions {
    bottom: auto;
    top: 50%;
    right: 24px;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .floating-actions {
    right: 12px;
    top: auto;
    bottom: 76px;
    transform: none;
  }
}

@media (max-width: 576px) {
  .site-logo { font-size: 1.05rem; }
  .header-actions .btn-ghost { display: none; }
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(var(--bottom-nav-h) + 78px + env(safe-area-inset-bottom, 0px));
  }
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .search-section { padding: 30px 0 50px; }
  .search-title { font-size: 1.4rem; }
  .cat-hero {
    padding: 16px 0 24px;
    border-radius: 0 0 24px 24px;
  }
  .cat-hero .badge-count {
    font-size: .72rem;
    padding: 3px 10px;
    margin-bottom: 6px;
  }
  .featured-card {
    flex: 0 0 185px;
    max-width: 195px;
  }
  .featured-card .top {
    height: 78px;
    font-size: 1.7rem;
  }
  .featured-card .body {
    padding: 10px 12px 12px;
    min-height: 88px;
  }
  .v-banner { height: 100px; }
}

@media (max-width: 400px) {
  .search-title { font-size: 1.3rem; }
}

@supports (padding: max(0px)) {
  .cat-hero {
    padding-top: max(16px, env(safe-area-inset-top));
  }
  .bottom-nav {
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .featured-card,
  .vendor-card,
  .v-banner img,
  .btn,
  .fab,
  .nav-link,
  .cat-chip {
    transition: none !important;
  }
}

/* ========== VENDOR RENDERING HARDENING ========== */
@media (hover: none) and (pointer: coarse) {
  .vendor-card:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vendor-slider {
    transition: none !important;
  }
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.fw-bold { font-weight: 700; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ========== IMAGE RULES ========== */
.vendor-card-img img,
.v-banner img,
.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: block !important;
  padding-top: 4px;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--primary); }

.breadcrumb a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 3px;
}

#mainContent,
#main-content {
  position: relative;
  z-index: 1;
}

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 6px;
}

/* ========== ACCESSIBILITY (MASTER) ========== */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

button:disabled,
.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none !important;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 10000;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 16px;
  outline: none;
  box-shadow: var(--focus-ring-dark);
}

/* ============================================================
   FINAL MOBILE QUICK-ACTION LOCK — 2026-10-13
   Keep these rules last so legacy rules cannot alter layout
   ============================================================ */
@media (max-width: 767px) {
  .floating-actions {
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    top: auto !important;
    bottom: calc(var(--bottom-nav-h, 64px) + env(safe-area-inset-bottom, 0px) + 10px) !important;
    width: auto !important;
    height: auto !important;
    transform: none !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    gap: 6px !important;
    pointer-events: none !important;
    z-index: 9990 !important;
  }
  .floating-actions .fab:not(#installBtn) {
    display: inline-flex !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    height: 58px !important;
    min-height: 58px !important;
    max-width: none !important;
    padding: 8px 3px !important;
    border-radius: 14px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.12 !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
    touch-action: manipulation !important;
  }
  .floating-actions .fab-icon {
    display: inline-flex !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    flex: 0 0 22px !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .floating-actions .fab-icon svg { width: 20px !important; height: 20px !important; }
  .floating-actions .fab-text {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: .64rem !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    overflow: visible !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
  }
}
@media (max-width: 380px) {
  .floating-actions { left: 6px !important; right: 6px !important; gap: 4px !important; }
  .floating-actions .fab { height: 56px !important; min-height: 56px !important; padding: 7px 2px !important; border-radius: 12px !important; }
  .floating-actions .fab-text { font-size: .57rem !important; }
  .floating-actions .fab-icon, .floating-actions .fab-icon svg { width: 19px !important; height: 19px !important; }
}