/*
  AeroSafe Utility — FlyWithTSA design system
  Compact Stitch layout: tonal cards, Inter, aviation-blue tokens.
  Shared by all public HTML pages.
*/

:root {
  --surface: #f7f9fb;
  --surface-dim: #d8dadc;
  --surface-bright: #f7f9fb;
  --surface-lowest: #ffffff;
  --surface-low: #f2f4f6;
  --surface-container: #eceef0;
  --surface-high: #e6e8ea;
  --surface-highest: #e0e3e5;
  --on-surface: #191c1e;
  --on-surface-variant: #424656;
  --outline: #727687;
  --outline-variant: #c2c6d8;
  --primary: #0050cb;
  --primary-container: #0066ff;
  --on-primary: #ffffff;
  --secondary: #525f75;
  --secondary-container: #d6e3fe;
  --on-secondary-container: #58657b;
  --tertiary: #005e90;
  --background: #f7f9fb;
  --on-background: #191c1e;
  --status-permitted: #10b981;
  --status-restricted: #f59e0b;
  --status-prohibited: #ef4444;
  --aviation-navy: #1e3e62;
  --surface-subtle: #f1f5f9;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-600: #d97706;
  --amber-800: #92400e;
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-200: #fecdd3;
  --rose-600: #e11d48;
  --rose-700: #be123c;
  --rose-800: #9f1239;
  --shadow-xs: 0 1px 2px rgba(11, 25, 44, 0.05);
  --shadow-1: 0 1px 3px rgba(11, 25, 44, 0.05), 0 1px 2px rgba(11, 25, 44, 0.03);
  --shadow-2: 0 4px 12px rgba(11, 25, 44, 0.08), 0 2px 4px rgba(11, 25, 44, 0.04);
  --shadow-3: 0 12px 24px -4px rgba(11, 25, 44, 0.12), 0 6px 12px -2px rgba(11, 25, 44, 0.04);
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --gutter: 1.5rem;
  --page-max: 64rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: var(--on-background);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 5.5rem;
}

::selection {
  background: var(--secondary-container);
  color: #0e1c2f;
}

a {
  color: var(--primary);
}

img {
  max-width: 100%;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  user-select: none;
}

.material-symbols-fill {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.page-main {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }

  .page-main {
    padding: 1.25rem 1rem 3rem;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.site-header-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.625rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
}

.brand-mark .material-symbols-outlined {
  font-size: 20px;
}

.brand-copy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-name {
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}

.brand-version {
  display: none;
  background: var(--slate-100);
  color: var(--slate-500);
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

@media (min-width: 640px) {
  .brand-version {
    display: inline-block;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--emerald-50);
  color: var(--emerald-800);
  border: 1px solid rgba(167, 243, 208, 0.7);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.sync-pill.always-show {
  display: inline-flex;
}

.live-dot {
  position: relative;
  width: 0.375rem;
  height: 0.375rem;
  flex-shrink: 0;
}

.live-dot span {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #10b981;
}

.live-dot span.ping {
  animation: ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.75;
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.icon-btn {
  border: 0;
  background: transparent;
  color: var(--slate-500);
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.icon-btn .material-symbols-outlined {
  font-size: 20px;
}

.icon-btn:hover {
  color: var(--primary);
  background: var(--slate-100);
}

/* Section badges and panels */
.panel {
  background: var(--surface-lowest);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-xs);
}

@media (min-width: 640px) {
  .panel {
    padding: 1.5rem;
  }
}

.panel-hero {
  background: linear-gradient(to bottom, rgba(239, 246, 255, 0.9), var(--surface-low));
  border-color: var(--blue-200);
}

.panel-tips {
  background: linear-gradient(to right, rgba(255, 251, 235, 0.4), var(--surface-bright), rgba(239, 246, 255, 0.4));
  border-color: rgba(245, 158, 11, 0.2);
}

.panel-shop {
  background: var(--surface-low);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-badge .material-symbols-outlined {
  font-size: 12px;
}

.section-badge-primary {
  background: var(--primary);
  color: #fff;
  padding: 0.25rem 0.75rem;
  font-size: 11px;
  box-shadow: var(--shadow-xs);
}

.section-badge-primary .material-symbols-outlined {
  font-size: 14px;
}

.section-badge-muted {
  background: var(--slate-100);
  color: var(--slate-700);
}

.section-badge-amber {
  background: var(--amber-100);
  color: var(--amber-800);
}

.section-badge-blue {
  background: var(--blue-100);
  color: #1d4ed8;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--slate-100);
}

.panel-hero .panel-head {
  border-bottom-color: rgba(219, 234, 254, 0.8);
  padding-bottom: 0.5rem;
}

.panel-tips .panel-head {
  border-bottom-color: rgba(245, 158, 11, 0.1);
}

.panel-shop .panel-head {
  border-bottom-color: rgba(226, 232, 240, 0.8);
}

.panel-title-block h2 {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0.25rem 0 0;
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  color: var(--slate-900);
}

.panel-title-block h2 .material-symbols-outlined {
  color: var(--primary);
  font-size: 22px;
}

.panel-tips .panel-title-block h2 .material-symbols-outlined {
  color: var(--amber-600);
}

.panel-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.panel-sub {
  margin: 0.125rem 0 0;
  color: var(--slate-500);
  font-size: 12px;
  line-height: 16px;
}

.hero-meta {
  display: none;
  align-items: center;
  gap: 0.25rem;
  color: var(--slate-500);
  font-size: 11px;
  font-weight: 500;
}

.hero-meta .material-symbols-outlined {
  font-size: 14px;
  color: var(--emerald-600);
}

@media (min-width: 640px) {
  .hero-meta {
    display: inline-flex;
  }
}

.swipe-hint {
  display: none;
  align-items: center;
  gap: 0.25rem;
  background: #fff;
  border: 1px solid var(--slate-200);
  color: var(--slate-500);
  font-size: 12px;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}

.swipe-hint .material-symbols-outlined {
  font-size: 14px;
  color: var(--amber-600);
}

@media (min-width: 640px) {
  .swipe-hint {
    display: inline-flex;
  }
}

.section-count {
  background: #fff;
  border: 1px solid var(--slate-200);
  color: var(--slate-600);
  font-size: 11px;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

/* Hero / search */
.hero {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-copy {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.125rem 0.75rem;
  border-radius: 9999px;
  background: rgba(219, 234, 254, 0.7);
  color: var(--primary);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.eyebrow .material-symbols-outlined {
  font-size: 15px;
}

.hero h1 {
  margin: 0.5rem 0 0.5rem;
  font-size: 24px;
  line-height: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 30px;
    line-height: 38px;
  }
}

.hero-lead {
  margin: 0;
  color: var(--slate-600);
  font-size: 12px;
  line-height: 18px;
}

@media (min-width: 640px) {
  .hero-lead {
    font-size: 14px;
    line-height: 20px;
  }
}

.search-wrap {
  position: relative;
  max-width: 36rem;
  margin: 0 auto;
  width: 100%;
}

.search-wrap .search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 20px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 3rem;
  padding: 0 2.5rem 0 2.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--blue-200);
  background: #fff;
  color: var(--slate-900);
  font: inherit;
  font-size: 14px;
  box-shadow: var(--shadow-xs);
}

.search-input:hover,
.search-input:focus {
  background: #fff;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
}

.search-input::placeholder {
  color: var(--slate-400);
}

.search-clear {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--slate-400);
  cursor: pointer;
  padding: 0;
  display: none;
}

.search-clear:hover {
  color: var(--slate-600);
}

.search-clear .material-symbols-outlined {
  font-size: 18px;
}

.search-wrap.has-value .search-clear {
  display: inline-flex;
}

.chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  max-width: 36rem;
  margin: 0 auto;
  width: 100%;
  padding: 0.25rem 0;
  justify-content: flex-start;
}

@media (min-width: 640px) {
  .chips {
    justify-content: center;
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--slate-200);
  border-radius: 9999px;
  background: #fff;
  color: var(--slate-700);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.chip:hover {
  background: var(--slate-100);
}

.chip.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

/* Results */
.results-panel {
  max-width: 36rem;
  margin: 0 auto;
  width: 100%;
}

.results-count {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--slate-500);
  margin-bottom: 0.5rem;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.item-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 2px solid rgba(16, 185, 129, 0.8);
  border-radius: var(--radius-xl);
  padding: 1rem;
  box-shadow: var(--shadow-2);
}

@media (min-width: 640px) {
  .item-card {
    padding: 1.5rem;
  }
}

.item-card.is-prohibited {
  border-color: rgba(244, 63, 94, 0.7);
}

.item-card.is-restricted {
  border-color: rgba(245, 158, 11, 0.7);
}

.item-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #10b981;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.125rem 0.75rem;
  border-bottom-left-radius: var(--radius);
}

.item-card.is-prohibited .item-ribbon {
  background: var(--rose-600);
}

.item-card.is-restricted .item-ribbon {
  background: var(--amber-600);
}

.item-ribbon .material-symbols-outlined {
  font-size: 12px;
}

.item-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.item-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-lg);
  background: var(--blue-50);
  color: var(--primary);
  border: 1px solid var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.item-icon .material-symbols-outlined {
  font-size: 24px;
}

.item-card h2,
.item-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  color: var(--slate-900);
}

.item-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.item-sub {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.125rem;
  color: var(--slate-500);
  font-size: 12px;
  line-height: 16px;
}

.item-category {
  background: var(--blue-50);
  color: var(--primary);
  border: 1px solid var(--blue-200);
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.verdict-banner {
  margin-top: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.verdict-banner.permitted {
  background: var(--emerald-50);
  border: 1px solid var(--emerald-200);
  color: var(--emerald-800);
}

.verdict-banner.prohibited {
  background: var(--rose-50);
  border: 1px solid var(--rose-200);
  color: var(--rose-800);
}

.verdict-banner.restricted {
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  color: var(--amber-800);
}

.verdict-banner .material-symbols-outlined {
  font-size: 20px;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.verdict-banner.permitted .material-symbols-outlined {
  color: var(--emerald-600);
}

.verdict-banner.prohibited .material-symbols-outlined {
  color: var(--rose-600);
}

.verdict-banner.restricted .material-symbols-outlined {
  color: var(--amber-600);
}

.verdict-banner h3 {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}

@media (min-width: 640px) {
  .verdict-banner h3 {
    font-size: 14px;
    line-height: 20px;
  }
}

.verdict-banner p {
  margin: 0.125rem 0 0;
  font-size: 12px;
  line-height: 18px;
}

.verdict-banner.permitted p {
  color: var(--emerald-700);
}

.verdict-banner.prohibited p {
  color: var(--rose-700);
}

.status-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  margin-top: 0.875rem;
}

.status-pill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 0.625rem;
  font-size: 12px;
  flex-wrap: nowrap;
}

.status-kind {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--slate-600);
  font-weight: 500;
  white-space: nowrap;
}

.status-kind .material-symbols-outlined {
  font-size: 16px;
  color: var(--slate-500);
}

.status-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  font-size: 11px;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

.status-flag .material-symbols-outlined {
  font-size: 13px;
}

.status-flag.permitted {
  background: var(--emerald-100);
  color: var(--emerald-700);
}

.status-flag.prohibited {
  background: var(--rose-100);
  color: var(--rose-700);
}

.status-flag.restricted {
  background: var(--amber-100);
  color: var(--amber-800);
}

.item-card-foot {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--slate-100);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 12px;
  color: var(--slate-500);
}

.item-card-foot .foot-note {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.item-card-foot .foot-note .material-symbols-outlined {
  font-size: 15px;
  color: var(--emerald-600);
}

.item-card-foot a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
}

.item-card-foot a:hover {
  text-decoration: underline;
}

.item-card-foot a .material-symbols-outlined {
  font-size: 13px;
}

.amazon-related {
  display: none;
}

.empty-state,
.no-results,
.loading {
  text-align: center;
  padding: 1.25rem 1rem;
  color: var(--on-surface-variant);
  font-size: 13px;
}

.no-results {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
}

.no-results h3,
.empty-state h3 {
  margin: 0 0 0.375rem;
  color: var(--slate-900);
}

.spinner {
  width: 1.75rem;
  height: 1.75rem;
  margin: 0 auto 0.75rem;
  border: 3px solid var(--surface-highest);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Tabs */
.seg-tabs {
  display: inline-flex;
  padding: 0.25rem;
  background: var(--slate-100);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  align-self: flex-start;
}

.seg-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 0;
  background: transparent;
  color: var(--slate-600);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.seg-tab .material-symbols-outlined {
  font-size: 15px;
}

.seg-tab.is-active {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  box-shadow: var(--shadow-xs);
}

/* Guideline / shop grids */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.card-grid.cols-shop {
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 640px) {
  .card-grid.cols-2,
  .card-grid.cols-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .card-grid.cols-shop {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .card-grid.cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.guide-card {
  background: var(--surface-bright);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.15s ease;
}

.guide-card:hover {
  border-color: #93c5fd;
}

.guide-card.is-danger {
  border-color: var(--rose-200);
}

.guide-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.guide-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

.guide-icon {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide-icon .material-symbols-outlined {
  font-size: 18px;
}

.guide-icon.amber {
  background: var(--amber-50);
  color: var(--amber-600);
}

.guide-icon.blue {
  background: var(--blue-50);
  color: var(--primary);
}

.guide-icon.emerald {
  background: var(--emerald-50);
  color: var(--emerald-600);
}

.guide-icon.slate {
  background: var(--slate-100);
  color: var(--slate-700);
}

.guide-icon.rose {
  background: var(--rose-50);
  color: var(--rose-600);
}

.guide-card h3 {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: var(--slate-900);
}

.guide-card p {
  margin: 0;
  color: var(--slate-600);
  font-size: 12px;
  line-height: 18px;
}

.rule-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.rule-badge.restricted {
  background: var(--amber-100);
  color: var(--amber-800);
}

.rule-badge.permitted {
  background: var(--emerald-100);
  color: var(--emerald-800);
}

.rule-badge.prohibited {
  background: var(--rose-100);
  color: var(--rose-800);
}

.rule-badge.muted {
  background: var(--slate-100);
  color: var(--slate-700);
}

.rule-badge.info {
  background: var(--blue-100);
  color: #1d4ed8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-1);
}

a.btn {
  color: var(--on-primary);
  text-decoration: none;
}

.btn:hover {
  background: #0052cc;
  color: var(--on-primary);
}

.btn-block {
  width: 100%;
}

.btn-ghost {
  height: 2rem;
  background: var(--blue-50);
  color: var(--primary);
  border: 1px solid var(--blue-200);
  box-shadow: none;
  font-size: 12px;
  gap: 0.25rem;
}

a.btn-ghost {
  color: var(--primary);
}

.btn-ghost:hover,
a.btn-ghost:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-ghost .material-symbols-outlined {
  font-size: 13px;
}

/* Tips carousel */
.tips-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.25rem;
}

.bento-card {
  scroll-snap-align: start;
  flex: 0 0 280px;
  background: #fff;
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.15s ease;
}

@media (min-width: 640px) {
  .bento-card {
    flex-basis: 310px;
  }
}

.bento-card:hover {
  border-color: #93c5fd;
}

.bento-card.from-blue {
  border-color: var(--blue-100);
}

.bento-card.from-emerald {
  border-color: rgba(167, 243, 208, 0.7);
}

.bento-card.from-emerald:hover {
  border-color: #10b981;
}

.bento-card.from-amber {
  border-color: var(--amber-200);
}

.bento-card.from-amber:hover {
  border-color: #fbbf24;
}

.bento-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.icon-well {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-50);
  color: var(--primary);
}

.icon-well .material-symbols-outlined {
  font-size: 18px;
}

.icon-well.navy,
.icon-well.emerald {
  background: var(--emerald-50);
  color: var(--emerald-700);
}

.icon-well.warn {
  background: var(--amber-50);
  color: var(--amber-600);
}

.bento-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

.bento-tag.did {
  background: var(--blue-50);
  color: #1d4ed8;
}

.bento-tag.speed {
  background: var(--emerald-50);
  color: var(--emerald-800);
}

.bento-tag.alert {
  background: var(--amber-50);
  color: var(--amber-800);
}

.bento-card h3 {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  color: var(--slate-900);
}

@media (min-width: 640px) {
  .bento-card h3 {
    font-size: 14px;
    line-height: 20px;
  }
}

.bento-card p {
  margin: 0;
  color: var(--slate-600);
  font-size: 12px;
  line-height: 18px;
}

.bento-foot {
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding-top: 0.25rem;
  color: var(--emerald-600);
}

.bento-card.from-amber .bento-foot {
  color: var(--amber-800);
}

.bento-card.from-emerald .bento-foot,
.bento-card.from-subtle .bento-foot {
  color: var(--slate-500);
}

.bento-foot a {
  color: inherit;
  text-decoration: none;
}

.bento-foot a:hover {
  text-decoration: underline;
}

.bento-foot .material-symbols-outlined {
  font-size: 14px;
}

/* Shop */
.disclosure {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  color: var(--slate-600);
  font-size: 12px;
  line-height: 16px;
  box-shadow: var(--shadow-xs);
}

.disclosure .material-symbols-outlined {
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
}

.product-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease;
}

.product-card:hover {
  border-color: #93c5fd;
}

.product-art {
  position: relative;
  height: 8rem;
  background: rgba(239, 246, 255, 0.4);
  border-bottom: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.product-art-mark {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-art-mark .material-symbols-outlined {
  font-size: 32px;
}

.product-card:nth-child(6n + 2) .product-art,
.product-card:nth-child(6n + 5) .product-art {
  background: var(--slate-50);
  color: var(--slate-700);
}

.product-card:nth-child(6n + 3) .product-art {
  background: rgba(255, 251, 235, 0.4);
  color: var(--amber-600);
}

.product-card:nth-child(6n + 4) .product-art {
  background: rgba(236, 253, 245, 0.4);
  color: var(--emerald-600);
}

.product-badge {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  box-shadow: var(--shadow-xs);
}

.product-badge.primary,
.product-badge.navy,
.product-badge.success,
.product-badge.secondary,
.product-badge.tertiary {
  background: var(--primary);
}

.product-rating {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  background: #fff;
  color: var(--slate-700);
  font-size: 11px;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  border: 1px solid var(--slate-100);
  box-shadow: var(--shadow-xs);
}

.product-rating .star {
  color: #f59e0b;
  font-size: 12px;
}

.product-body {
  padding: 0.875rem;
}

.product-cat {
  display: none;
}

.product-body h3 {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  color: var(--slate-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .product-body h3 {
    font-size: 14px;
    line-height: 20px;
  }
}

.product-body p {
  margin: 0.25rem 0 0;
  color: var(--slate-500);
  font-size: 11px;
  line-height: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.product-price {
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: var(--slate-900);
}

.product-highlight {
  font-size: 10px;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  background: var(--slate-100);
  color: var(--slate-600);
}

.product-highlight.is-ok {
  background: var(--emerald-50);
  color: var(--emerald-700);
}

.product-cta {
  padding: 0 0.875rem 0.875rem;
}

.hidden {
  display: none !important;
}

/* Disclaimer + footer */
.disclaimer {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-xs);
}

.disclaimer h2 {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--slate-900);
}

.disclaimer h2 .material-symbols-outlined {
  color: var(--primary);
  font-size: 18px;
}

.disclaimer p {
  margin: 0.375rem 0 0;
  color: var(--slate-500);
  font-size: 11px;
  line-height: 16px;
}

.site-footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--slate-200);
  background: var(--surface-lowest);
}

.site-footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.footer-brand .material-symbols-outlined {
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1rem;
  font-size: 12px;
  color: var(--slate-500);
}

.footer-links a {
  color: var(--slate-500);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-dot {
  color: var(--slate-400);
}

.site-footer p {
  margin: 0;
  max-width: 42rem;
  color: var(--slate-400);
  font-size: 11px;
  line-height: 16px;
}

.footer-tag {
  display: none;
}

.bottom-nav {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 0.75rem;
  z-index: 50;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.375rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-3);
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--slate-500);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  font-size: 10px;
  font-weight: 500;
}

.bottom-nav a .material-symbols-outlined {
  font-size: 20px;
}

.bottom-nav a.is-active {
  color: var(--primary);
  font-weight: 700;
  background: transparent;
}

.bottom-nav a:hover {
  color: var(--primary);
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}

/* Legal / 404 */
.legal-main {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

.legal-card {
  background: var(--surface-lowest);
  border: 1px solid var(--surface-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-1);
}

.legal-card h1 {
  margin: 0 0 0.75rem;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.legal-card h2 {
  margin: 1.5rem 0 0.5rem;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.legal-card p,
.legal-card li {
  color: var(--on-surface-variant);
  line-height: 1.6;
}

.legal-home {
  display: inline-flex;
  margin: 1rem 0;
}

.error-page {
  min-height: calc(100vh - 8rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
}

.error-card {
  background: var(--surface-lowest);
  border: 1px solid var(--surface-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-1);
  padding: 2.5rem 2rem;
  max-width: 28rem;
}

.error-code {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.error-card h1 {
  margin: 0.5rem 0;
  font-size: 24px;
}

.error-card p {
  color: var(--on-surface-variant);
}

/* Internal analytics dashboard */
.dashboard-page {
  --primary-color: var(--primary);
  --secondary-color: var(--primary-container);
  padding-bottom: 0;
}

.dashboard-hero {
  max-width: 87.5rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 0;
}

@media (min-width: 768px) {
  .dashboard-hero {
    padding: 1.5rem 2rem 0;
  }
}

.dashboard-hero h1 {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .dashboard-hero h1 {
    font-size: 32px;
    line-height: 40px;
  }
}

.dashboard-hero p {
  margin: 0.375rem 0 0;
  color: var(--on-surface-variant);
  font-size: 14px;
}

.dashboard-container {
  max-width: 87.5rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .dashboard-container {
    padding: 1.5rem 2rem 3rem;
  }
}

.time-filter-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface-lowest);
  border: 1px solid var(--surface-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-1);
}

.time-filter-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--on-surface);
}

.time-filter-select {
  height: 2.75rem;
  padding: 0 0.75rem;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  background: var(--surface-lowest);
  color: var(--on-surface);
  font: inherit;
  cursor: pointer;
}

.time-filter-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--surface-lowest);
  border: 1px solid var(--surface-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-1);
  padding: 1.25rem;
  text-align: center;
}

.stat-number {
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--primary);
}

.stat-label {
  margin-top: 0.25rem;
  color: var(--on-surface-variant);
  font-size: 14px;
  font-weight: 600;
}

.charts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .charts-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.chart-container {
  background: var(--surface-lowest);
  border: 1px solid var(--surface-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-1);
  padding: 1.25rem;
}

.chart-title {
  margin: 0 0 1rem;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  text-align: center;
}

.chart-placeholder {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--outline);
}

.full-width-chart {
  grid-column: 1 / -1;
}

.dashboard-page .error-message {
  color: var(--status-prohibited);
  text-align: center;
  padding: 2rem;
}

.recent-searches-table-container {
  width: 100%;
  overflow-x: auto;
}

.recent-searches-table {
  width: 100%;
  border-collapse: collapse;
}

.recent-searches-table th,
.recent-searches-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--surface-subtle);
  font-size: 14px;
}

.recent-searches-table th {
  background: var(--surface-subtle);
  color: var(--aviation-navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.recent-searches-table td {
  color: var(--on-surface-variant);
}

.recent-searches-table tr:hover {
  background: var(--background);
}

.query-cell {
  font-weight: 600;
  color: var(--on-surface);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timestamp-cell {
  color: var(--outline);
  font-size: 12px;
}

.country-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-page .results-count {
  font-weight: 700;
  color: var(--primary);
}

.dashboard-page .site-footer {
  margin-top: 0;
}
