/* ============================================================
   IL Connect — shared chrome & premium storefront
   Header, footer, catalog layout, equal-height product tiles
   ============================================================ */

:root {
  --ilc-ink: #0b1220;
  --ilc-ink-soft: #1e293b;
  --ilc-muted: #64748b;
  --ilc-line: rgba(15, 23, 42, 0.08);
  --ilc-blue: #0f62fe;
  --ilc-blue-deep: #0043ce;
  --ilc-gold: #c9a227;
  --ilc-surface: rgba(255, 255, 255, 0.78);
  --ilc-surface-solid: rgba(255, 255, 255, 0.91);
  --ilc-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 40, 80, 0.06);
  --ilc-shadow-md: 0 2px 4px rgba(15, 23, 42, 0.04), 0 16px 40px rgba(15, 40, 80, 0.1);
  --ilc-shadow-lg: 0 4px 8px rgba(15, 23, 42, 0.05), 0 24px 64px rgba(15, 50, 120, 0.14);
  --ilc-shadow-xl: 0 8px 32px rgba(7, 18, 36, 0.12), 0 32px 80px rgba(15, 70, 160, 0.16);
  --ilc-radius-lg: 22px;
  --ilc-radius-md: 16px;
  --ilc-radius-sm: 12px;
  --ilc-header-h: 88px;
  --ilc-wallpaper-url: none;
  /* Light shell while wallpaper loads — avoids dark flash before JS runs. */
  --ilc-bg-fallback: #eef3f9;
  --ilc-atmosphere-overlay: rgba(244, 248, 255, 0.22);
  --ilc-atmosphere-mid: rgba(244, 248, 255, 0.26);
  --ilc-atmosphere-bottom: rgba(238, 244, 252, 0.3);
  --ilc-atmosphere-veil: rgba(244, 248, 255, 0.16);
  --ilc-hero-wash: rgba(244, 248, 255, 0.72);
  --ilc-hero-bg: rgba(248, 251, 255, 0.8);
  --ilc-panel-bg: rgba(255, 255, 255, 0.76);
  --ilc-card-bg: rgba(255, 255, 255, 0.9);
  --ilc-card-body-top: rgba(255, 255, 255, 0.94);
  --ilc-card-body-bottom: rgba(246, 249, 255, 0.9);
  --ilc-pagination-bg: rgba(255, 255, 255, 0.8);
  --ilc-footer-bg: rgba(248, 251, 255, 0.74);
  --ilc-input-bg: rgba(255, 255, 255, 0.94);
  --ilc-elevated: #ffffff;
  --ilc-chip: #f4f8ff;
  --ilc-icon-well: linear-gradient(145deg, #fff, #eaf2ff);
  --ilc-border-cool: rgba(88, 130, 196, 0.28);
  --ilc-blur: blur(16px);
  --ilc-blur-webkit: blur(16px);
}

@media (max-width: 768px) {
  :root {
    --ilc-atmosphere-overlay: rgba(244, 248, 255, 0.2);
    --ilc-atmosphere-mid: rgba(244, 248, 255, 0.24);
    --ilc-atmosphere-bottom: rgba(238, 244, 252, 0.28);
    --ilc-atmosphere-veil: rgba(244, 248, 255, 0.14);
    --ilc-hero-bg: rgba(248, 251, 255, 0.84);
    --ilc-panel-bg: rgba(255, 255, 255, 0.84);
    --ilc-card-bg: rgba(255, 255, 255, 0.95);
    --ilc-card-body-top: rgba(255, 255, 255, 0.97);
    --ilc-card-body-bottom: rgba(248, 251, 255, 0.95);
    --ilc-pagination-bg: rgba(255, 255, 255, 0.88);
    --ilc-footer-bg: rgba(248, 251, 255, 0.82);
    --ilc-blur: blur(10px);
    --ilc-blur-webkit: blur(10px);
  }

  body.ilc-site .shop-card,
  body.ilc-site .featured-tile-link {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root {
    --ilc-hero-bg: rgba(248, 251, 255, 0.94);
    --ilc-panel-bg: rgba(255, 255, 255, 0.92);
    --ilc-card-bg: rgba(255, 255, 255, 0.96);
    --ilc-pagination-bg: rgba(255, 255, 255, 0.94);
    --ilc-footer-bg: rgba(248, 251, 255, 0.92);
  }
}

/* ---- IL Connect wallpaper shell ---- */
html {
  background-color: var(--ilc-bg-fallback);
}

body.ilc-site {
  position: relative;
  background-color: var(--ilc-bg-fallback);
  background-image:
    linear-gradient(
      180deg,
      var(--ilc-atmosphere-overlay) 0%,
      var(--ilc-atmosphere-mid) 48%,
      var(--ilc-atmosphere-bottom) 100%
    ),
    var(--ilc-wallpaper-url);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: scroll;
}

@media (min-width: 769px) {
  body.ilc-site {
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
  }
}

@media (max-width: 768px) {
  /*
   * Mobile Safari sizes body background-cover against document height on long pages,
   * cropping the wallpaper to an indistinct blue band. Render wallpaper on a fixed
   * viewport pseudo-layer instead — never background-attachment: fixed on iOS.
   */
  body.ilc-site {
    isolation: isolate;
    background-image: none;
    background-color: var(--ilc-bg-fallback);
  }

  body.ilc-site::before {
    content: "";
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    background-image: var(--ilc-wallpaper-url);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: auto 100svh;
    pointer-events: none;
    z-index: 0;
  }

  body.ilc-site::after {
    content: "";
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    background: linear-gradient(
      180deg,
      var(--ilc-atmosphere-veil),
      var(--ilc-atmosphere-mid)
    );
    pointer-events: none;
    z-index: 0;
  }

  body.ilc-site > * {
    position: relative;
    z-index: 1;
  }
}

/* Let branded wallpaper show through — hide generic gateway atmosphere on IL Connect. */
body.ilc-site .atmosphere {
  display: none;
}

body.ilc-site {
  overflow-x: clip;
}

body.ilc-site .ilc-site-header {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
}

body.ilc-site .shell,
body.ilc-site .catalog-shell,
body.ilc-site .guide-shell {
  animation: none;
  background: transparent;
}

body.ilc-site .ilc-site-header {
  background: rgba(248, 251, 255, 0.72);
  border-bottom-color: var(--ilc-border-cool);
}

body.ilc-site .catalog-bar,
body.ilc-site .guide-footer,
body.ilc-site .shortlist-drawer {
  background: rgba(248, 251, 255, 0.84);
}

@media (prefers-reduced-motion: reduce) {
  body.ilc-site .atmosphere-mesh,
  body.ilc-site .glow-a,
  body.ilc-site .glow-b {
    animation: none !important;
  }
}

@media (forced-colors: active) {
  body.ilc-site .shop-card,
  body.ilc-site .catalog-hero,
  body.ilc-site .catalog-controls,
  body.ilc-site .catalog-pagination,
  body.ilc-site .ilc-site-footer,
  body.ilc-site .guide-panel {
    background: Canvas;
    border-color: CanvasText;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ---- Site header ---- */
.ilc-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  max-width: 100%;
  margin: 0 0 20px;
  margin-left: 0;
  padding: 8px max(16px, env(safe-area-inset-left, 0px)) 8px max(16px, env(safe-area-inset-right, 0px));
  border-bottom: 1px solid var(--ilc-border-cool);
  background: rgba(248, 251, 255, 0.88);
  backdrop-filter: var(--ilc-blur);
  -webkit-backdrop-filter: var(--ilc-blur-webkit);
  box-shadow: 0 10px 28px rgba(7, 18, 36, 0.06);
}

.ilc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 56px;
  flex-wrap: nowrap;
}

.ilc-nav-toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ilc-border-cool);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ilc-ink);
  cursor: pointer;
}

.ilc-nav-toggle:focus-visible {
  outline: 2px solid var(--ilc-blue);
  outline-offset: 2px;
}

.ilc-nav-overlay {
  display: none;
}

.ilc-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

.ilc-brand-premium:hover,
.ilc-brand-premium:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}

.ilc-brand:hover,
.ilc-brand:focus-visible {
  opacity: 0.92;
}

.ilc-brand-mark {
  position: relative;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 15px;
  background:
    radial-gradient(circle at 50% 18%, rgba(98, 164, 255, 0.28), transparent 52%),
    linear-gradient(155deg, #0c2144 0%, #071224 100%);
  box-shadow:
    0 0 0 1px rgba(15, 98, 254, 0.18),
    0 8px 22px rgba(7, 18, 36, 0.22),
    0 0 24px rgba(15, 98, 254, 0.12);
}

.ilc-brand-mark-fallback,
.ilc-brand-mark-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  transition: opacity 420ms ease;
}

.ilc-brand-mark-video {
  z-index: 1;
  transform: scale(1.08);
  opacity: 0;
  transition: opacity 420ms ease;
}

.ilc-brand-mark.is-brand-video-active .ilc-brand-mark-fallback {
  opacity: 0;
}

.ilc-brand-mark.is-brand-video-active .ilc-brand-mark-video {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ilc-brand-mark-video {
    display: none;
  }
}

.ilc-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ilc-brand-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.028em;
  color: var(--ink);
  white-space: nowrap;
}

.ilc-brand-tagline {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.ilc-brand-name-inspired,
.ilc-brand-name-labs {
  /* Legacy split wordmark — unused after brand refresh. */
  color: inherit;
}

.ilc-brand-logo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.ilc-brand-logo-lockup {
  height: 44px;
  max-width: min(280px, 72vw);
}

.ilc-brand-badge {
  display: none;
}

@media (min-width: 640px) {
  .ilc-brand-mark {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .ilc-brand-name {
    font-size: 1.42rem;
  }

  .ilc-brand-tagline {
    font-size: 0.72rem;
  }

  .ilc-brand-logo-lockup {
    height: 52px;
    max-width: 320px;
  }
}

.ilc-brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}

.ilc-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--ilc-radius-sm);
  color: var(--ink-soft);
  font: 600 0.84rem var(--font-body);
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.ilc-nav-link:hover,
.ilc-nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue-deep);
  box-shadow: var(--ilc-shadow-sm);
}

.ilc-nav-link--primary {
  border: 1px solid rgba(15, 98, 254, 0.18);
  background: linear-gradient(180deg, #fff, #f4f8ff);
  color: var(--blue-deep);
  box-shadow: 0 6px 18px rgba(15, 70, 160, 0.08);
}

body.ilc-nav-locked {
  overflow: hidden;
}

@media (max-width: 900px) {
  :root {
    --ilc-header-h: 56px;
  }

  .ilc-site-header {
    margin-bottom: 12px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .ilc-nav {
    position: relative;
    min-height: 52px;
    gap: 8px;
  }

  .ilc-brand {
    min-width: 0;
    gap: 10px;
  }

  .ilc-brand-mark {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .ilc-brand-name {
    font-size: 1.05rem;
  }

  .ilc-brand-tagline {
    display: none;
  }

  .ilc-nav-toggle {
    display: inline-flex;
  }

  .ilc-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    border: 0;
    padding: 0;
    background: rgba(7, 18, 36, 0.38);
    cursor: pointer;
  }

  .ilc-nav-overlay[hidden] {
    display: none;
  }

  .ilc-nav-actions {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    z-index: 45;
    width: min(100%, 280px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--ilc-border-cool);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--ilc-shadow-lg);
  }

  .ilc-nav.is-open .ilc-nav-actions {
    display: flex;
  }

  .ilc-nav-actions .ilc-nav-link,
  .ilc-nav-actions .ilc-customer-nav,
  .ilc-nav-actions .ilc-customer-bar {
    width: 100%;
    justify-content: flex-start;
    min-height: 44px;
  }

  .ilc-nav-actions .ilc-customer-name {
    max-width: none;
  }
}

/* ---- Selection trigger ---- */
.shortlist-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 14px;
  border: 1px solid rgba(148, 180, 229, 0.35);
  border-radius: var(--ilc-radius-sm);
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: var(--ilc-shadow-sm);
  cursor: pointer;
  font: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.shortlist-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 98, 254, 0.28);
  box-shadow: var(--ilc-shadow-md);
}

.shortlist-trigger strong {
  display: block;
  font: 700 0.84rem var(--font-display);
  color: var(--ink);
}

.shortlist-trigger small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.shortlist-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(15, 98, 254, 0.12), rgba(201, 162, 39, 0.08));
  color: var(--blue-deep);
  font-size: 0.9rem;
}

/* ---- Site footer ---- */
.ilc-site-footer {
  margin-top: 48px;
  padding: 36px clamp(16px, 3vw, 28px) 24px;
  border: 1px solid var(--ilc-border-cool);
  border-radius: var(--ilc-radius-lg);
  background: var(--ilc-footer-bg);
  backdrop-filter: var(--ilc-blur);
  -webkit-backdrop-filter: var(--ilc-blur-webkit);
  box-shadow: var(--ilc-shadow-md);
}

.ilc-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.7fr) minmax(0, 0.55fr) minmax(0, 0.95fr);
  gap: 28px 28px;
}

.ilc-footer-brand p {
  margin: 14px 0 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.ilc-footer-brand .ilc-brand-logo-lockup {
  height: 48px;
  max-width: 300px;
  opacity: 0.96;
}

.ilc-footer-col strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font: 700 0.78rem var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ilc-footer-col a {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font: 600 0.84rem var(--font-body);
  text-decoration: none;
  transition: color 160ms ease;
}

.ilc-footer-col a:hover {
  color: var(--blue-deep);
}

.ilc-footer-note {
  display: block;
  color: var(--muted);
  font: 600 0.82rem/1.55 var(--font-body);
}

.ilc-footer-col .ilc-footer-note + .ilc-footer-note {
  margin-top: 10px;
}

.ilc-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 180, 229, 0.2);
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

.ilc-footer-legal p {
  margin: 0;
  max-width: 52ch;
}

.ilc-footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.ilc-footer-legal-links a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.ilc-footer-legal-links a:hover,
.ilc-footer-legal-links a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

/* ---- Catalog page ---- */
.catalog-shell {
  max-width: 1240px;
  padding: 8px 24px 176px;
}

#catalogMount {
  padding-bottom: 48px;
}

.catalog-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--ilc-border-cool);
  border-radius: var(--ilc-radius-lg);
  background:
    radial-gradient(circle at 88% 12%, rgba(15, 98, 254, 0.1), transparent 34%),
    linear-gradient(145deg, var(--ilc-hero-bg), var(--ilc-hero-wash));
  backdrop-filter: var(--ilc-blur);
  -webkit-backdrop-filter: var(--ilc-blur-webkit);
  box-shadow: var(--ilc-shadow-md);
}

.catalog-hero h1 {
  margin: 6px 0 10px;
  font: 700 clamp(1.9rem, 4vw, 2.85rem)/1.04 var(--font-display);
  letter-spacing: -0.04em;
  color: var(--ink);
}

.catalog-hero p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.catalog-toolbar strong {
  font: 700 1.02rem var(--font-display);
}

.catalog-pricing-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

.catalog-filters {
  margin-bottom: 24px;
}

.catalog-filters-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--ilc-border-cool);
  border-radius: var(--ilc-radius-sm);
  background: var(--ilc-panel-bg);
  backdrop-filter: var(--ilc-blur);
  -webkit-backdrop-filter: var(--ilc-blur-webkit);
  box-shadow: var(--ilc-shadow-sm);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.catalog-filters-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.catalog-filters-toggle-copy strong {
  font: 700 0.92rem var(--font-display);
  color: var(--ink);
}

.catalog-filters-toggle-copy small {
  color: var(--muted);
  font: 600 0.76rem var(--font-body);
}

.catalog-filters-toggle-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(15, 98, 254, 0.08);
  position: relative;
}

.catalog-filters-toggle-icon::before,
.catalog-filters-toggle-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue-deep);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, opacity 180ms ease;
}

.catalog-filters-toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.catalog-filters-toggle.has-active-filters {
  border-color: rgba(15, 98, 254, 0.32);
  box-shadow: 0 0 0 1px rgba(15, 98, 254, 0.08), var(--ilc-shadow-sm);
}

.catalog-filters-toggle.has-active-filters .catalog-filters-toggle-copy small {
  color: var(--blue-deep);
}

.catalog-filters.is-expanded .catalog-filters-toggle-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.catalog-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 0.5fr) minmax(160px, 0.5fr) minmax(160px, 0.5fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--ilc-border-cool);
  border-radius: var(--ilc-radius-md);
  background: var(--ilc-panel-bg);
  backdrop-filter: var(--ilc-blur);
  -webkit-backdrop-filter: var(--ilc-blur-webkit);
  box-shadow: var(--ilc-shadow-sm);
}

.catalog-controls input,
.catalog-controls select {
  height: 46px;
  margin: 0;
  width: 100%;
  font-size: 0.92rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 180, 229, 0.42);
  background: var(--ilc-input-bg);
  color: var(--ink);
}

.catalog-clear-filters {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(148, 180, 229, 0.45);
  border-radius: 10px;
  background: var(--ilc-input-bg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  position: relative;
  z-index: 0;
  /* Last-row Add buttons must clear the fixed catalog bar, including the taller selected-item tray. */
  padding-bottom: calc(168px + env(safe-area-inset-bottom, 0px));
  scroll-margin-bottom: calc(168px + env(safe-area-inset-bottom, 0px));
}

body.catalog-has-selection .catalog-grid {
  padding-bottom: calc(220px + env(safe-area-inset-bottom, 0px));
}

.catalog-grid .shop-card,
.catalog-grid .shop-cta {
  scroll-margin-bottom: calc(188px + env(safe-area-inset-bottom, 0px));
}

.catalog-grid::before {
  content: "";
  position: absolute;
  inset: -24px -10px -32px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 88% 58% at 50% 8%, rgba(15, 98, 254, 0.07), transparent 68%),
    radial-gradient(ellipse 72% 42% at 50% 96%, rgba(7, 18, 36, 0.05), transparent 72%);
}

.catalog-empty {
  grid-column: 1 / -1;
  padding: 56px 24px;
  border: 1px dashed rgba(148, 180, 229, 0.5);
  border-radius: var(--ilc-radius-md);
  text-align: center;
  color: var(--muted);
  background: var(--ilc-panel-bg);
  backdrop-filter: var(--ilc-blur);
  -webkit-backdrop-filter: var(--ilc-blur-webkit);
}

.catalog-pagination-mount {
  margin-top: 24px;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--ilc-border-cool);
  border-radius: var(--ilc-radius-md);
  background: var(--ilc-pagination-bg);
  backdrop-filter: var(--ilc-blur);
  -webkit-backdrop-filter: var(--ilc-blur-webkit);
  box-shadow: var(--ilc-shadow-sm);
}

.catalog-page-status {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.catalog-page-status strong {
  display: block;
  color: var(--ink);
  font: 700 0.92rem var(--font-display);
}

.catalog-page-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(148, 180, 229, 0.45);
  border-radius: 10px;
  background: var(--ilc-input-bg);
  color: var(--blue-deep);
  font: 700 0.84rem var(--font-body);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.catalog-page-btn:hover:not(:disabled) {
  border-color: rgba(15, 98, 254, 0.35);
  box-shadow: var(--ilc-shadow-sm);
  transform: translateY(-1px);
}

.catalog-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.catalog-page-btn-primary {
  border-color: transparent;
  background: linear-gradient(180deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 98, 254, 0.22);
}

.catalog-notice {
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid #bfdbfe;
  border-radius: var(--ilc-radius-sm);
  background: #eff6ff;
  color: #1e3a8a;
}

.catalog-bar {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 960px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  border: 1px solid var(--ilc-border-cool);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: rgba(248, 251, 255, 0.84);
  backdrop-filter: var(--ilc-blur);
  -webkit-backdrop-filter: var(--ilc-blur-webkit);
  box-shadow: var(--ilc-shadow-xl);
}

.catalog-bar strong {
  font-family: var(--font-display);
}

.catalog-bar-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.catalog-bar button,
.catalog-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 11px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  font: inherit;
}

.catalog-bar .catalog-btn-secondary {
  border: 1px solid #cbd5e1;
  background: var(--ilc-elevated);
  color: var(--ink);
}

.catalog-bar .catalog-btn-primary {
  background: linear-gradient(180deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 8px 22px rgba(15, 98, 254, 0.28);
}

.catalog-bar button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#statusMount {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  width: min(100%, 640px);
  padding: 0 12px;
}

/* ---- Mobile order side bubble (catalog + guide) ---- */
#mobileOrderMount {
  display: none;
}

@media (max-width: 620px) {
  #mobileOrderMount:not(:empty) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 45;
    pointer-events: none;
  }
}

.ilc-order-dock {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: stretch;
  max-width: min(92vw, 320px);
  pointer-events: auto;
}

.ilc-order-bubble-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 54px;
  padding: 10px 8px 10px 10px;
  border: 1px solid rgba(148, 180, 229, 0.45);
  border-right: 0;
  border-radius: 18px 0 0 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: -10px 10px 28px rgba(7, 18, 36, 0.18);
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.ilc-order-bubble-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(15, 98, 254, 0.12), rgba(201, 162, 39, 0.08));
  color: var(--blue-deep);
  font-weight: 800;
}

.ilc-order-bubble-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
}

.ilc-order-bubble-meta strong {
  font: 700 0.72rem var(--font-display);
  color: var(--ink);
}

.ilc-order-bubble-meta small {
  margin-top: 2px;
  color: var(--blue-deep);
  font: 700 0.64rem var(--font-body);
}

.ilc-order-panel {
  display: none;
  flex-direction: column;
  width: min(72vw, 260px);
  border: 1px solid rgba(148, 180, 229, 0.42);
  border-right: 0;
  border-radius: 18px 0 0 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: -12px 12px 32px rgba(7, 18, 36, 0.16);
  overflow: hidden;
}

.ilc-order-dock.is-expanded .ilc-order-panel {
  display: flex;
}

.ilc-order-panel-scroll {
  display: flex;
  gap: 8px;
  padding: 10px 10px 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.ilc-order-chip {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 180, 229, 0.45);
  background: var(--ilc-chip);
  color: var(--blue-deep);
  font: 600 0.72rem var(--font-body);
  white-space: nowrap;
}

.ilc-order-panel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 10px 10px;
}

.ilc-order-panel-btn {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: var(--ilc-elevated);
  color: var(--ink);
  font: 700 0.78rem var(--font-body);
  cursor: pointer;
}

.ilc-order-panel-btn--primary {
  border-color: transparent;
  background: linear-gradient(180deg, var(--blue), var(--blue-deep));
  color: #fff;
}

/* ---- Premium product tiles (equal height) ---- */
.shop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--ilc-border-cool);
  border-radius: var(--ilc-radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 18%),
    var(--ilc-card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 10px 28px rgba(7, 18, 36, 0.1),
    0 2px 8px rgba(15, 50, 120, 0.06);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.shop-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.shop-card:hover {
  transform: translateY(-5px);
  border-color: rgba(15, 98, 254, 0.28);
  box-shadow: var(--ilc-shadow-lg);
}

.shop-card.is-selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(15, 98, 254, 0.14), var(--ilc-shadow-md);
}

.shop-card-media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex: 0 0 308px;
  min-height: 308px;
  padding: 16px 12px 72px;
  background-color: #071224;
  background-image: var(--catalog-vial-bg, linear-gradient(145deg, #0a1d3d, #071224));
  background-repeat: no-repeat;
  background-size: cover;
  background-position: left bottom;
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--ilc-radius-md) - 1px) calc(var(--ilc-radius-md) - 1px) 0 0;
}

.shop-card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 22%, rgba(98, 164, 255, 0.24), transparent 48%),
    linear-gradient(180deg, rgba(8, 16, 32, 0.02) 0%, rgba(8, 16, 32, 0.14) 62%, rgba(8, 16, 32, 0.28) 100%);
  pointer-events: none;
}

.shop-card-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62px;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 18, 36, 0.22) 100%);
  pointer-events: none;
}

.shop-card-image {
  position: relative;
  z-index: 1;
  height: clamp(204px, 26vw, 256px);
  max-height: min(256px, calc(100% - 12px));
  width: auto;
  max-width: 78%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.4)) drop-shadow(0 4px 10px rgba(15, 98, 254, 0.16));
  transform: translateY(-12px);
  transition: transform 240ms ease, filter 240ms ease;
}

.shop-card-brand-overlay,
.featured-tile-brand-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: clamp(58px, 15.5vw, 76px);
  height: clamp(58px, 15.5vw, 76px);
  border-radius: 12px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.86;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  background: rgba(7, 18, 36, 0.35);
  transition:
    opacity 280ms ease,
    box-shadow 320ms ease,
    transform 320ms ease;
}

.shop-card-brand-overlay-static,
.featured-tile-brand-overlay-static,
.shop-card-brand-overlay-video,
.featured-tile-brand-overlay-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  transition: opacity 360ms ease, transform 360ms ease;
}

.shop-card-brand-overlay-static,
.featured-tile-brand-overlay-static {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.shop-card-brand-overlay-video,
.featured-tile-brand-overlay-video {
  opacity: 0;
  transform: scale(1.03);
  z-index: 2;
}

.shop-card-brand-overlay.is-loading,
.featured-tile-brand-overlay.is-loading {
  opacity: 0.94;
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, 0.28),
    0 8px 20px rgba(0, 0, 0, 0.26);
}

.shop-card-brand-overlay.is-playing,
.featured-tile-brand-overlay.is-playing {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, 0.42),
    0 10px 24px rgba(201, 162, 39, 0.22),
    0 8px 18px rgba(0, 0, 0, 0.24);
}

.shop-card-brand-overlay.is-playing .shop-card-brand-overlay-static,
.featured-tile-brand-overlay.is-playing .featured-tile-brand-overlay-static,
.shop-card-brand-overlay.is-loading .shop-card-brand-overlay-static,
.featured-tile-brand-overlay.is-loading .featured-tile-brand-overlay-static {
  opacity: 0;
  transform: scale(0.97);
}

.shop-card-brand-overlay.is-playing .shop-card-brand-overlay-video,
.featured-tile-brand-overlay.is-playing .featured-tile-brand-overlay-video,
.shop-card-brand-overlay.is-loading .shop-card-brand-overlay-video,
.featured-tile-brand-overlay.is-loading .featured-tile-brand-overlay-video {
  opacity: 1;
  transform: scale(1);
}

.shop-card-brand-overlay.is-static .shop-card-brand-overlay-video,
.featured-tile-brand-overlay.is-static .featured-tile-brand-overlay-video {
  opacity: 0 !important;
  visibility: hidden;
}

.shop-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

@media (prefers-reduced-motion: reduce) {
  .shop-card-brand-overlay,
  .featured-tile-brand-overlay,
  .shop-card-brand-overlay-static,
  .featured-tile-brand-overlay-static,
  .shop-card-brand-overlay-video,
  .featured-tile-brand-overlay-video {
    transition: none;
  }
}

.shop-coming-soon-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 98, 254, 0.92);
  color: #fff;
  font: 700 0.72rem var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(15, 98, 254, 0.28);
  max-width: calc(100% - 88px);
}

.shop-coa-pending {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(148, 180, 229, 0.55);
  color: var(--muted);
  font: 600 0.78rem var(--font-body);
  background: rgba(255, 255, 255, 0.72);
}

.strength-pill.is-coming-soon {
  border-style: dashed;
}

.shop-card.is-coming-soon .shop-cta {
  opacity: 0.72;
}

.shop-card:hover .shop-card-image {
  transform: translateY(-14px) scale(1.03);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.46)) drop-shadow(0 6px 14px rgba(15, 98, 254, 0.22));
}

.shop-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px 18px 16px;
  min-height: 0;
  background: linear-gradient(180deg, var(--ilc-card-body-top), var(--ilc-card-body-bottom));
  border-top: 1px solid rgba(148, 180, 229, 0.24);
}

.shop-card-meta {
  flex: 0 0 auto;
}

.shop-card-eyebrow {
  margin: 0;
  color: var(--blue-deep);
  font: 600 0.7rem var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.shop-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.shop-card h2 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font: 700 1.24rem/1.12 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.2em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.95), 0 2px 10px rgba(15, 40, 80, 0.1);
  border-bottom: 2px solid rgba(15, 98, 254, 0.34);
  padding-bottom: 5px;
  box-decoration-break: clone;
}

.shop-strength-badge {
  flex: 0 0 auto;
  margin: 2px 0 0;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid rgba(15, 98, 254, 0.28);
  background: linear-gradient(180deg, #edf4ff 0%, #e3ecff 100%);
  color: var(--blue-deep);
  font: 700 0.98rem/1.05 var(--font-display);
  letter-spacing: 0.01em;
  text-align: right;
  white-space: nowrap;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 4px 14px rgba(15, 70, 160, 0.14);
}

.shop-card-pricing {
  margin-top: 10px;
}

.shop-strength-line {
  margin: 0 0 4px;
  color: var(--ilc-ink-soft);
  font: 600 0.84rem var(--font-body);
  min-height: 1.25em;
}

.shop-strength-line--empty {
  visibility: hidden;
}

.shop-price-line {
  margin: 0;
  font: 700 1.34rem var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.shop-card-summary-slot {
  flex: 0 0 auto;
  min-height: 4.1em;
  margin-top: 10px;
}

.shop-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-card-tags-slot {
  flex: 0 0 auto;
  min-height: 30px;
  margin-top: 8px;
}

.shop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.shop-tag {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 180, 229, 0.35);
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  color: var(--ilc-ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.shop-card-pills-slot {
  flex: 0 0 auto;
  min-height: 92px;
  margin-top: 10px;
}

.strength-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.strength-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 72px;
  padding: 9px 11px;
  border: 1px solid rgba(148, 180, 229, 0.45);
  border-radius: 11px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 2px 8px rgba(15, 40, 80, 0.06);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.strength-pill:hover:not(.is-disabled) {
  border-color: rgba(15, 98, 254, 0.35);
  box-shadow: 0 6px 16px rgba(15, 70, 160, 0.12);
  transform: translateY(-1px);
}

.strength-pill em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.strength-pill span {
  font: 700 0.82rem var(--font-display);
  color: var(--ink);
}

.strength-pill.is-active {
  border-color: var(--blue);
  background: linear-gradient(180deg, #edf4ff, #fff);
  box-shadow: 0 0 0 1px rgba(15, 98, 254, 0.18), 0 6px 16px rgba(15, 70, 160, 0.12);
}

.strength-pill.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.shop-card-footer {
  margin-top: auto;
  padding-top: 12px;
}

.shop-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-coa-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(148, 180, 229, 0.55);
  border-radius: 11px;
  background: var(--ilc-elevated);
  color: var(--blue-deep);
  font: 700 0.82rem var(--font-body);
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.shop-coa-link:hover,
.shop-coa-link:focus-visible {
  border-color: rgba(15, 98, 254, 0.45);
  background: var(--ilc-chip);
  color: var(--blue);
}

.featured-tile-actions {
  padding: 0 12px 12px;
}

.featured-tile-actions .shop-coa-link {
  border-color: rgba(147, 197, 253, 0.45);
  background: var(--ilc-elevated);
  color: var(--blue-deep);
}

.result-ranked-item .shop-coa-link {
  margin-bottom: 8px;
}

.shop-availability {
  margin: 0 0 10px;
  color: #047857;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.shop-cta {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(180deg, var(--blue), var(--blue-deep));
  color: #fff;
  font: 700 0.88rem var(--font-body);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 98, 254, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.shop-cta:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(15, 98, 254, 0.3);
}

.shop-cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.shop-card.is-selected .shop-cta {
  background: var(--ilc-elevated);
  color: var(--blue-deep);
  border: 1px solid rgba(15, 98, 254, 0.35);
  box-shadow: none;
}

/* Guide shell alignment */
.guide-shell {
  max-width: 1240px;
  padding: 8px 24px 140px;
}

.guide-footer {
  border-color: rgba(148, 180, 229, 0.35);
  box-shadow: var(--ilc-shadow-xl);
}

.guide-btn-primary {
  background: linear-gradient(180deg, var(--blue), var(--blue-deep));
  box-shadow: 0 8px 22px rgba(15, 98, 254, 0.24);
}

.guide-text-btn.ilc-nav-link {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

/* Guide & landing cohesion */
.guide-panel {
  border: 1px solid var(--ilc-border-cool);
  border-radius: var(--ilc-radius-lg);
  background: var(--ilc-panel-bg);
  backdrop-filter: var(--ilc-blur);
  -webkit-backdrop-filter: var(--ilc-blur-webkit);
  box-shadow: var(--ilc-shadow-md);
}

.area-card {
  border: 1px solid rgba(148, 180, 229, 0.32);
  border-radius: var(--ilc-radius-md);
  box-shadow: var(--ilc-shadow-sm);
}

.area-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 98, 254, 0.32);
  box-shadow: var(--ilc-shadow-md);
}

.result-ranked-item {
  border: 1px solid rgba(148, 180, 229, 0.32);
  border-radius: var(--ilc-radius-md);
  box-shadow: var(--ilc-shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.result-ranked-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--ilc-shadow-md);
}

.landing-route-card {
  box-shadow: var(--ilc-shadow-sm);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.landing-route-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ilc-shadow-lg);
}

.landing-bottom-cta {
  border-color: rgba(148, 180, 229, 0.28);
  box-shadow: var(--ilc-shadow-md);
}

/* Landing nav/footer sync */
.landing-shell .ilc-brand-name {
  font-size: 1.22rem;
}

@media (min-width: 640px) {
  .landing-shell .ilc-brand-name {
    font-size: 1.36rem;
  }
}

.landing-shell .ilc-site-footer {
  margin-top: 56px;
}

/* ---- Landing featured products ---- */
.landing-featured {
  margin: 8px 0 34px;
}

.landing-featured-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(15, 98, 254, 0.28);
  border-radius: calc(var(--ilc-radius-lg) + 4px);
  background:
    radial-gradient(circle at 12% 0%, rgba(15, 98, 254, 0.18), transparent 42%),
    radial-gradient(circle at 88% 100%, rgba(56, 189, 248, 0.14), transparent 36%),
    linear-gradient(145deg, rgba(7, 18, 36, 0.96), rgba(10, 29, 61, 0.92));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 24px 64px rgba(7, 18, 36, 0.28),
    0 0 48px rgba(15, 98, 254, 0.14);
}

.landing-featured-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.06) 50%, transparent 60%);
  pointer-events: none;
}

.landing-featured-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.landing-featured-head .landing-kicker {
  margin: 0 0 10px;
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
}

.landing-featured-kicker {
  color: #93c5fd;
}

.landing-featured-head h2 {
  margin: 0 0 10px;
  color: #f8fbff;
  font: 700 clamp(1.55rem, 3vw, 2.15rem)/1.12 var(--font-display);
  letter-spacing: -0.03em;
}

.landing-featured-lede {
  margin: 0;
  max-width: 56ch;
  color: #c7d7ef;
  font-size: 0.92rem;
  line-height: 1.55;
}

.landing-featured-all {
  flex: 0 0 auto;
  white-space: nowrap;
  border-color: rgba(147, 197, 253, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: #eff6ff;
}

.landing-featured-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  margin-inline: -4px;
  padding-inline: 4px;
}

.featured-tile {
  flex: 0 0 clamp(210px, 72vw, 260px);
  scroll-snap-align: start;
  min-width: 0;
}

.featured-tile-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--ilc-border-cool);
  border-radius: 16px;
  background: var(--ilc-card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 10px 28px rgba(7, 18, 36, 0.14);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.featured-tile-link:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 98, 254, 0.42);
  box-shadow: 0 16px 36px rgba(7, 18, 36, 0.28), 0 0 0 1px rgba(15, 98, 254, 0.12);
}

.featured-tile-media {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 196px;
  padding: 10px 10px 52px;
  background-color: #071224;
  background-image: var(--catalog-vial-bg, linear-gradient(145deg, #0a1d3d, #071224));
  background-repeat: no-repeat;
  background-size: cover;
  background-position: left bottom;
  overflow: hidden;
}

.featured-tile-image {
  position: relative;
  z-index: 1;
  height: clamp(156px, 20vw, 168px);
  width: auto;
  max-width: 72%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateY(-8px);
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.42));
}

.featured-tile-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd166, #f59e0b);
  color: #1f2937;
  font: 700 0.68rem var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.featured-tile-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 16px;
}

.featured-tile-body h3 {
  margin: 0;
  font: 700 1.02rem/1.15 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
  border-bottom: 2px solid rgba(15, 98, 254, 0.28);
  padding-bottom: 4px;
}

.featured-tile-strength {
  margin: 0;
  color: var(--blue-deep);
  font: 700 0.82rem var(--font-display);
}

.featured-tile-price {
  margin: 0;
  font: 700 1.08rem var(--font-display);
  color: var(--ink);
}

.featured-tile-hook {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-tile-cta {
  margin-top: auto;
  padding-top: 8px;
  color: var(--blue-deep);
  font: 700 0.82rem var(--font-body);
}

.featured-empty {
  padding: 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #dbeafe;
  text-align: center;
}

@media (max-width: 900px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-controls {
    grid-template-columns: 1fr 1fr;
  }

  .ilc-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .catalog-shell,
  .guide-shell {
    padding: 4px 12px 168px;
  }

  .catalog-shell .ilc-site-header .shortlist-trigger,
  .guide-shell .guide-header-actions .shortlist-trigger {
    display: none;
  }

  .catalog-bar {
    display: none;
  }

  body.ilc-guide-results .guide-shell,
  body.ilc-guide:not(.ilc-guide-question) .guide-shell {
    padding-bottom: 96px;
  }

  .catalog-hero {
    display: block;
    padding: 20px 18px;
  }

  .catalog-filters-toggle {
    display: flex;
  }

  .catalog-filters:not(.is-expanded) .catalog-controls {
    display: none;
  }

  .catalog-filters.is-expanded .catalog-controls {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 10px;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .catalog-bar {
    width: 100%;
    align-items: stretch;
    border-radius: 0;
    flex-direction: column;
  }

  .catalog-bar-actions {
    width: 100%;
  }

  .catalog-bar button,
  .catalog-bar a {
    flex: 1;
  }

  .catalog-bar .catalog-count {
    display: none;
  }

  .ilc-footer-grid {
    grid-template-columns: 1fr;
  }

  .ilc-footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-card h2 {
    font-size: 1.08rem;
  }

  .shop-strength-badge {
    font-size: 0.86rem;
    padding: 6px 9px;
  }

  .shop-card-media {
    flex-basis: 132px;
    min-height: 132px;
    padding: 10px 10px 18px;
  }

  .shop-card-image {
    height: 96px;
    max-height: 96px;
    max-width: 72%;
    transform: none;
  }

  .shop-card-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-top: 8px;
    padding-top: 8px;
    background: var(--ilc-card-body-bottom, #f6f9ff);
  }

  .shop-cta {
    position: relative;
    z-index: 3;
    pointer-events: auto;
    min-height: 44px;
  }

  .shop-card-brand-overlay,
  .featured-tile-brand-overlay {
    top: 8px;
    right: 8px;
    width: 56px;
    height: 56px;
  }

  .shop-coming-soon-badge {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 80px);
  }

  .ilc-order-dock {
    top: auto;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    transform: none;
  }

  .shop-price-line {
    font-size: 1.12rem;
  }

  .catalog-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-page-btn {
    width: 100%;
  }

  .landing-featured-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-featured-all {
    width: 100%;
    text-align: center;
  }

  .featured-tile {
    flex-basis: min(78vw, 240px);
  }
}

/* ---- Guide: compact question steps + floating nav ---- */
body.ilc-guide-question .guide-shell {
  padding-bottom: 92px;
  min-height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.ilc-guide-question .guide-app {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.ilc-guide-question .guide-focus-panel,
body.ilc-guide-question .goal-panel:not(.results-panel) {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  padding: clamp(14px, 2.2vw, 22px);
  overflow: hidden;
}

body.ilc-guide-question .guide-focus-panel h1,
body.ilc-guide-question .goal-panel h1 {
  font-size: clamp(1.28rem, 2.8vw, 1.75rem);
  margin: 4px 0 6px;
}

body.ilc-guide-question .guide-lede {
  margin-bottom: 10px;
  font-size: 0.86rem;
}

body.ilc-guide-question .area-grid,
body.ilc-guide-question .area-grid-multi {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  align-content: start;
}

@media (min-width: 900px) {
  body.ilc-guide-question .area-grid,
  body.ilc-guide-question .area-grid-multi {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

body.ilc-guide-question .area-card,
body.ilc-guide-question .area-card-multi {
  min-height: 64px;
  padding: 11px 13px;
}

body.ilc-guide-question .area-card-multi input,
body.ilc-guide-question .area-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.ilc-guide-question .area-card-multi.is-selected,
body.ilc-guide-question .area-card.is-selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(15, 98, 254, 0.12), var(--ilc-shadow-sm);
}

body.ilc-guide-question .ilc-site-header-compact {
  margin-bottom: 8px;
  padding: 6px 0;
}

body.ilc-guide-question .ilc-site-header-compact .ilc-nav {
  min-height: 52px;
}

body.ilc-guide .guide-footer {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 780px);
  box-shadow: var(--ilc-shadow-xl);
}

body.ilc-guide-results .guide-shell {
  padding-bottom: 108px;
  max-height: none;
  overflow: visible;
}

body.ilc-guide-results .guide-app {
  overflow: visible;
}

@media (max-width: 620px) {
  body.ilc-guide-question .guide-shell {
    padding: 2px 10px 84px;
  }

  body.ilc-guide-question .area-grid,
  body.ilc-guide-question .area-grid-multi {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.ilc-guide-question .guide-focus-panel h1,
  body.ilc-guide-question .goal-panel h1 {
    font-size: 1.2rem;
    line-height: 1.15;
  }

  body.ilc-guide-question .guide-lede {
    font-size: 0.82rem;
    margin-bottom: 8px;
  }

  body.ilc-guide-question .guide-progress-wrap {
    margin-bottom: 4px;
  }

  body.ilc-guide-question .guide-progress-label {
    font-size: 0.78rem;
  }

  body.ilc-guide-question .area-card,
  body.ilc-guide-question .area-card-multi {
    min-height: 54px;
    padding: 10px 12px;
  }

  body.ilc-guide-question .area-card .area-copy strong,
  body.ilc-guide-question .area-card-multi .area-copy strong {
    font-size: 0.9rem;
  }

  body.ilc-guide-question .area-card .area-copy small,
  body.ilc-guide-question .area-card-multi .area-copy small {
    font-size: 0.75rem;
    line-height: 1.32;
  }

  body.ilc-guide-question .ilc-site-header-compact {
    margin-bottom: 4px;
  }

  body.ilc-guide-question .ilc-site-header-compact .ilc-brand-mark {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  body.ilc-guide-question .ilc-site-header-compact .ilc-brand-name {
    font-size: 1rem;
  }

  body.ilc-guide-question .ilc-site-header-compact .ilc-brand-tagline {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }

  body.ilc-guide-question .ilc-site-header-compact .ilc-brand-badge {
    display: none;
  }

  body.ilc-guide-question .ilc-site-header-compact .ilc-nav {
    flex-wrap: wrap;
    gap: 6px;
    min-height: auto;
    padding: 0;
  }

  body.ilc-guide-question .guide-header-actions {
    flex: 1 1 100%;
    justify-content: space-between;
    gap: 8px;
  }

  body.ilc-guide-question .guide-header-actions .shortlist-trigger {
    position: static;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    box-shadow: none;
  }

  body.ilc-guide-question .guide-header-actions .ilc-nav-link,
  body.ilc-guide-question .guide-header-actions .guide-text-btn {
    font-size: 0.82rem;
    padding: 8px 10px;
  }

  body.ilc-guide .guide-footer {
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    border-radius: 16px 16px 0 0;
    gap: 10px;
  }

  body.ilc-guide .guide-btn {
    min-height: 46px;
    font-size: 0.92rem;
  }

  body.ilc-guide-results .guide-shell {
    padding-bottom: 96px;
  }
}

/* ---- IL Connect customer session + Founders chrome ---- */
.ilc-customer-nav {
  display: flex;
  align-items: center;
}

.ilc-customer-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(100%, 360px);
}

.ilc-customer-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ilc-ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.ilc-founder-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: linear-gradient(135deg, rgba(253, 248, 235, 0.96), rgba(245, 236, 211, 0.92));
  box-shadow: var(--ilc-shadow-sm);
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ilc-founder-chip:hover,
.ilc-founder-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(201, 162, 39, 0.72);
  box-shadow: 0 10px 28px rgba(201, 162, 39, 0.22);
  outline: none;
}

.ilc-founder-banner-coin-btn {
  display: inline-flex;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 220ms ease, filter 220ms ease;
}

.ilc-founder-banner-coin-btn:hover,
.ilc-founder-banner-coin-btn:focus-visible {
  transform: scale(1.06);
  filter: drop-shadow(0 8px 18px rgba(201, 162, 39, 0.45));
  outline: none;
}

.ilc-founder-chip-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.ilc-founder-chip-tier {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a6d1f;
}

.ilc-founder-chip-number {
  font-size: 0.78rem;
  font-weight: 700;
  color: #3d3010;
}

.ilc-founder-coin {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.ilc-sign-out-btn {
  border: 0;
  background: transparent;
  color: var(--ilc-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}

.ilc-sign-out-btn:hover,
.ilc-sign-out-btn:focus-visible {
  color: var(--ilc-ink);
}

.ilc-founder-shop-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: var(--ilc-radius-md);
  border: 1px solid rgba(201, 162, 39, 0.42);
  background: linear-gradient(135deg, rgba(253, 248, 235, 0.95), rgba(248, 240, 214, 0.9));
  box-shadow: var(--ilc-shadow-sm);
}

.ilc-founder-shop-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ilc-founder-shop-banner-copy strong {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a6d1f;
}

.ilc-founder-shop-banner-copy span {
  font-size: 0.88rem;
  color: #3d3010;
}

.ilc-preferred-pricing-banner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: var(--ilc-radius-md);
  border: 1px solid rgba(15, 98, 254, 0.22);
  background: rgba(240, 247, 255, 0.92);
  box-shadow: var(--ilc-shadow-sm);
}

.ilc-preferred-pricing-banner strong {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ilc-blue-deep);
}

.ilc-preferred-pricing-banner span {
  font-size: 0.88rem;
  color: var(--ilc-ink-soft);
}

.shop-member-price-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 98, 254, 0.1);
  color: var(--ilc-blue-deep);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ilc-login-shell {
  max-width: 560px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.ilc-login-panel {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--ilc-radius-lg);
  border: 1px solid var(--ilc-border-cool);
  background: var(--ilc-panel-bg);
  backdrop-filter: var(--ilc-blur);
  -webkit-backdrop-filter: var(--ilc-blur-webkit);
  box-shadow: var(--ilc-shadow-md);
}

.ilc-login-panel h1 {
  margin: 8px 0 0;
  font-family: Outfit, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  color: var(--ilc-ink);
}

.ilc-login-lede {
  margin: 12px 0 0;
  color: var(--ilc-muted);
  line-height: 1.55;
}

.ilc-login-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.ilc-login-form label {
  display: grid;
  gap: 6px;
}

.ilc-login-form label span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ilc-muted);
}

.ilc-login-form input {
  width: 100%;
  border: 1px solid var(--ilc-border-cool);
  border-radius: 10px;
  background: var(--ilc-input-bg);
  padding: 12px 14px;
  font: inherit;
  color: var(--ilc-ink);
}

.ilc-password-field {
  position: relative;
  display: block;
}

.ilc-password-field input {
  padding-right: 4.75rem;
}

.ilc-password-toggle {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ilc-blue-deep);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.ilc-password-toggle:hover,
.ilc-password-toggle:focus-visible {
  background: rgba(15, 98, 254, 0.08);
  outline: none;
}

.ilc-login-error {
  margin: 0;
  font-size: 0.88rem;
  color: #9a3412;
}

.ilc-login-submit {
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ilc-blue), var(--ilc-blue-deep));
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 13px 18px;
  cursor: pointer;
}

.ilc-login-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.ilc-login-foot {
  margin: 18px 0 0;
  font-size: 0.84rem;
  color: var(--ilc-muted);
}

.ilc-login-foot a {
  color: var(--ilc-blue-deep);
  font-weight: 600;
}

@media (max-width: 768px) {
  .ilc-customer-bar {
    gap: 6px;
  }

  .ilc-customer-name {
    display: none;
  }

  .ilc-founder-shop-banner {
    margin-inline: 0;
  }
}

/* ---- Founders coin thank-you modal ---- */
body.ilc-founder-modal-open {
  overflow: hidden;
}

.ilc-founder-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.ilc-founder-modal[hidden] {
  display: none;
}

.ilc-founder-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 36, 0.62);
  backdrop-filter: blur(10px);
}

.ilc-founder-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  padding: 32px 28px 28px;
  border-radius: 24px;
  border: 1px solid rgba(201, 162, 39, 0.42);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 248, 220, 0.55), transparent 58%),
    linear-gradient(160deg, rgba(255, 252, 244, 0.98), rgba(248, 238, 210, 0.96));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.65) inset,
    0 28px 80px rgba(7, 18, 36, 0.35);
  text-align: center;
}

.ilc-founder-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ilc-ink-soft);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.ilc-founder-modal-close:hover,
.ilc-founder-modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ilc-ink);
  outline: none;
}

.ilc-founder-modal-coin-wrap {
  position: relative;
  width: min(100%, 280px);
  margin: 0 auto 18px;
  aspect-ratio: 1;
}

.ilc-founder-modal-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 102, 0.55), rgba(201, 162, 39, 0.08) 68%, transparent 72%);
  filter: blur(8px);
}

.ilc-founder-modal-coin-stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.ilc-founder-modal-coin {
  display: block;
  width: min(100%, 240px);
  height: auto;
  max-height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(120, 88, 16, 0.35));
}

.ilc-founder-modal-eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a6d1f;
}

.ilc-founder-modal-title {
  margin: 10px 0 0;
  font-family: Outfit, sans-serif;
  font-size: clamp(1.45rem, 4.5vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #2f2608;
}

.ilc-founder-modal-number {
  margin: 10px 0 0;
  font-family: Outfit, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a6d1f;
}

.ilc-founder-modal-body {
  margin: 14px 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ilc-muted);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg-0: #071224;
    --bg-1: #0b1220;
    --ink: #f4f7fb;
    --ink-soft: #d5deeb;
    --muted: #c5d0e0;
    --blue-deep: #9ec1ff;
    --ilc-ink: #f4f7fb;
    --ilc-ink-soft: #d5deeb;
    --ilc-muted: #c5d0e0;
    --ilc-line: rgba(232, 238, 247, 0.16);
    --ilc-surface: rgba(12, 22, 40, 0.92);
    --ilc-surface-solid: rgba(12, 22, 40, 0.96);
    --ilc-bg-fallback: #071224;
    --ilc-atmosphere-overlay: rgba(7, 18, 36, 0.82);
    --ilc-atmosphere-mid: rgba(7, 18, 36, 0.88);
    --ilc-atmosphere-bottom: rgba(5, 14, 28, 0.92);
    --ilc-atmosphere-veil: rgba(7, 18, 36, 0.78);
    --ilc-hero-wash: rgba(10, 20, 38, 0.9);
    --ilc-hero-bg: rgba(10, 20, 38, 0.94);
    --ilc-panel-bg: rgba(12, 22, 40, 0.94);
    --ilc-card-bg: #101c34;
    --ilc-card-body-top: #13233f;
    --ilc-card-body-bottom: #0e1a30;
    --ilc-pagination-bg: rgba(12, 22, 40, 0.94);
    --ilc-footer-bg: rgba(8, 16, 32, 0.94);
    --ilc-input-bg: #0d1830;
    --ilc-elevated: #13233f;
    --ilc-chip: #1a3058;
    --ilc-icon-well: linear-gradient(145deg, #1a3058, #152848);
    --ilc-border-cool: rgba(148, 180, 229, 0.32);
  }

  html {
    background-color: var(--ilc-bg-fallback);
  }

  body {
    color: var(--ink);
    background-color: var(--ilc-bg-fallback);
  }

  .ilc-site-header,
  body.ilc-site .ilc-site-header {
    background: rgba(8, 16, 32, 0.94);
    border-bottom-color: var(--ilc-border-cool);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  }

  body.ilc-site .catalog-bar,
  body.ilc-site .guide-footer,
  body.ilc-site .shortlist-drawer {
    background: rgba(10, 18, 34, 0.96);
  }

  .ilc-nav-toggle {
    background: rgba(14, 24, 42, 0.96);
    color: var(--ilc-ink);
    border-color: var(--ilc-border-cool);
  }

  .ilc-nav-link {
    color: var(--ink-soft);
  }

  .ilc-nav-link:hover,
  .ilc-nav-link:focus-visible {
    background: rgba(15, 98, 254, 0.2);
    color: #c6dcff;
  }

  .ilc-nav-link--primary {
    background: linear-gradient(180deg, #1a3058, #12243f);
    color: #c6dcff;
    border-color: rgba(15, 98, 254, 0.4);
  }

  .ilc-brand-name,
  .ilc-brand {
    color: var(--ilc-ink);
  }

  .ilc-brand-tagline {
    color: var(--ilc-muted);
  }

  @media (max-width: 900px) {
    .ilc-nav-actions {
      background: rgba(10, 18, 34, 0.98);
      border-color: var(--ilc-border-cool);
    }
  }

  .catalog-hero,
  .ilc-login-panel,
  .guide-panel,
  .shop-card,
  .result-card,
  .catalog-filters,
  .catalog-controls input,
  .catalog-controls select,
  .catalog-page-btn,
  .catalog-clear-filters,
  .landing-route-card,
  .landing-bottom-cta {
    color: var(--ilc-ink);
  }

  .guide-panel,
  .ilc-login-panel {
    background: var(--ilc-panel-bg);
    border-color: var(--ilc-border-cool);
  }

  .landing-hero {
    color: #fff;
  }

  .landing-route-card,
  .landing-bottom-cta {
    background: var(--ilc-card-bg);
    border-color: var(--ilc-border-cool);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
  }

  .landing-route-featured {
    background:
      radial-gradient(circle at 90% 0%, rgba(15, 98, 254, 0.22), transparent 32%),
      var(--ilc-card-bg);
  }

  .landing-bottom-cta {
    background:
      radial-gradient(circle at 90% 10%, rgba(15, 98, 254, 0.18), transparent 32%),
      var(--ilc-card-bg);
  }

  .landing-card-icon,
  .guide-brand-mark {
    background: var(--ilc-icon-well);
    color: #c6dcff;
    border-color: rgba(148, 180, 229, 0.32);
    box-shadow: none;
  }

  .landing-card-number {
    color: #8aa4c8;
  }

  .landing-route-card h3,
  .landing-section-heading h2,
  .landing-bottom-cta h2,
  .landing-featured-head h2 {
    color: var(--ilc-ink);
  }

  .landing-route-card p,
  .landing-card-meta,
  .landing-section-heading > p:last-child,
  .landing-disclaimer,
  .landing-featured-lede {
    color: var(--ilc-muted);
  }

  .landing-card-link {
    color: #9ec1ff;
  }

  .area-card,
  .product-card,
  .area-card-link,
  .review-row,
  .result-ranked-item,
  .result-ranked-item-compact,
  .result-card,
  .shop-card,
  .comparison-dialog,
  .card-insights > div:first-child {
    background: var(--ilc-card-bg);
    border-color: var(--ilc-border-cool);
    color: var(--ilc-ink);
  }

  .area-card.is-selected {
    background: linear-gradient(145deg, rgba(15, 98, 254, 0.22), #13233f);
  }

  .area-card-link {
    background: linear-gradient(145deg, #152848, #13233f);
  }

  .area-icon,
  .review-monogram,
  .result-badge,
  .compare-section {
    background: var(--ilc-chip);
    color: #c6dcff;
    border-color: var(--ilc-border-cool);
  }

  .catalog-notice {
    background: #13233f;
    border-color: #2a4a7a;
    color: #d6e4ff;
  }

  .shop-card {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.06) inset,
      0 14px 36px rgba(0, 0, 0, 0.38);
  }

  .shop-card::after {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .shop-card h2,
  .shop-price-line,
  .result-ranked-name,
  .result-ranked-price,
  .product-headline,
  .guide-panel h1,
  .guide-explainer strong,
  .recommendation-disclaimer strong,
  .result-why strong,
  .result-distinction strong {
    color: var(--ilc-ink);
    text-shadow: none;
  }

  .shop-strength-badge {
    background: linear-gradient(180deg, #1a3058, #152848);
    color: #d6e4ff;
    border-color: rgba(120, 169, 255, 0.35);
    box-shadow: none;
  }

  .shop-tag {
    background: linear-gradient(180deg, #1a2b46, #142236);
    color: var(--ilc-ink-soft);
    border-color: rgba(148, 180, 229, 0.28);
  }

  .strength-pill {
    background: linear-gradient(180deg, #1a2b46, #132033);
    border-color: rgba(148, 180, 229, 0.32);
    box-shadow: none;
  }

  .strength-pill.is-active {
    background: linear-gradient(180deg, #1a3058, #13233f);
  }

  .strength-pill em,
  .shop-summary,
  .catalog-hero p,
  .catalog-pricing-note,
  .guide-lede,
  .guide-progress-label,
  .area-card small,
  .product-summary,
  .conversation-note p,
  .handoff-note p,
  .comparison-note,
  .comparison-note strong,
  .result-ranked-copy,
  .result-ranked-strengths,
  .result-ranked-availability,
  .review-product p,
  .review-summary p,
  .review-summary small,
  .match-reason,
  .drawer-line-head span,
  .drawer-empty p,
  .drawer-footer p {
    color: var(--muted);
  }

  .conversation-note,
  .match-reason,
  .handoff-note,
  .review-summary,
  .guide-progress-steps b {
    background: #152848;
    border-color: var(--ilc-border-cool);
    color: var(--ilc-ink-soft);
  }

  .guide-progress-steps .is-current b {
    background: var(--blue);
    color: #fff;
  }

  .guide-text-btn:hover {
    background: rgba(26, 48, 88, 0.9);
    color: #c6dcff;
  }

  .catalog-bar .catalog-btn-secondary,
  .ilc-order-panel-btn:not(.ilc-order-panel-btn--primary),
  .guide-btn-secondary,
  .drawer-close,
  .drawer-secondary,
  .shop-cta-secondary,
  .remove-product {
    background: var(--ilc-elevated);
    color: var(--ilc-ink);
    border-color: var(--ilc-border-cool);
  }

  .shop-coa-link,
  .featured-tile-actions .shop-coa-link,
  .drawer-primary,
  .compare-section {
    background: var(--ilc-elevated);
    color: #9ec1ff;
    border-color: var(--ilc-border-cool);
  }

  .shop-card.is-selected .shop-cta,
  .result-card.is-selected .shop-cta,
  .product-card.is-selected .select-product {
    background: var(--ilc-elevated);
    color: #9ec1ff;
    border-color: rgba(15, 98, 254, 0.45);
  }

  .ilc-order-chip {
    background: var(--ilc-chip);
    color: #c6dcff;
    border-color: var(--ilc-border-cool);
  }

  .shop-coa-pending {
    background: rgba(16, 28, 52, 0.88);
    color: var(--muted);
  }

  select,
  input[type="text"],
  input[type="password"],
  input[type="number"],
  input[type="email"],
  .catalog-controls input,
  .catalog-controls select,
  .ilc-login-form input {
    background: var(--ilc-input-bg);
    color: var(--ilc-ink);
    border-color: var(--ilc-border-cool);
  }

  .shortlist-drawer,
  .comparison-dialog {
    background: rgba(10, 18, 34, 0.98);
    color: var(--ilc-ink);
  }

  .comparison-table-inline th {
    background: #152848;
    color: #9ec1ff;
  }

  .ilc-preferred-pricing-banner {
    background: rgba(16, 32, 58, 0.94);
    border-color: var(--ilc-border-cool);
  }

  .ilc-preferred-pricing-banner span {
    color: var(--ilc-ink-soft);
  }

  .ilc-site-footer {
    background: var(--ilc-footer-bg);
  }

  .ilc-order-bubble-toggle,
  .ilc-order-panel {
    background: rgba(12, 22, 40, 0.97);
    color: var(--ilc-ink);
  }

  .shortlist-trigger {
    background: linear-gradient(180deg, #1a2b46, #132033);
    border-color: rgba(148, 180, 229, 0.38);
    color: var(--ilc-ink);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  }

  .shortlist-trigger strong {
    color: #f4f7fb;
  }

  .shortlist-trigger small {
    color: #c6dcff;
  }

  .shortlist-icon {
    background: #1a3058;
    color: #c6dcff;
  }

  .recommendation-disclaimer {
    background: #152848;
    border-color: var(--ilc-border-cool);
    color: var(--muted);
  }

  .ilc-founder-modal-panel {
    color: #0b1220;
  }

  .ilc-founder-modal-close {
    color: #0b1220;
    background: rgba(255, 255, 255, 0.72);
  }

  .result-ranked-item-compact {
    background: #152848;
  }

  body.ilc-site::after {
    background: linear-gradient(
      180deg,
      var(--ilc-atmosphere-veil),
      var(--ilc-atmosphere-mid)
    );
  }
}
