/**
 * Home redesign — brand-red hero, custom chrome, rounded sheet blend.
 * Scoped to body.home-redesign so other pages stay untouched.
 */

body.home-redesign {
  --home-hero: var(--brand, #810100);
  --home-hero-deep: var(--brand-deep, #3d0000);
  --home-hero-ink: #ffffff;
  --home-accent: #f5c542;
  --home-sheet-radius: 32px;
  --home-card: #ffffff;
  background: var(--home-card);
}

body.home-redesign .app-shell,
body.home-redesign .app-shell--no-header,
body.home-redesign .app-main,
body.home-redesign .app-main--no-header {
  background: var(--home-card) !important;
}

body.home-redesign .app-main {
  padding-top: 0 !important;
  padding-bottom: 0;
}

/* ── Brand-red hero — everything inside one rounded red card ───── */

body.home-redesign .home-zone--cream,
body.home-redesign .home-hero {
  --home-hero-radius: var(--home-sheet-radius, 32px);
  background:
    radial-gradient(120% 80% at 100% -10%, rgba(255, 255, 255, 0.14), transparent 55%),
    radial-gradient(90% 60% at 0% 20%, rgba(0, 0, 0, 0.18), transparent 50%),
    linear-gradient(180deg, #9a1210 0%, var(--brand, #810100) 42%, var(--brand-dark, #5c0000) 100%);
  color: var(--home-hero-ink);
  padding: calc(8px + env(safe-area-inset-top, 0px)) 0 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  isolation: isolate;
  border-radius: 0 0 var(--home-hero-radius) var(--home-hero-radius);
  box-shadow:
    0 16px 36px rgba(129, 1, 0, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

/* Inside the Flutter app the native shell already paints a status-bar strip
   (height = safe-area top). Adding env(safe-area-inset-top) here too would
   double the gap above "Delivering to", so drop the inset in-app. */
html.flutter-app body.home-redesign .home-zone--cream,
html.flutter-app body.home-redesign .home-hero {
  padding-top: 8px;
}

body.home-redesign .home-hero::before {
  display: none;
}

body.home-redesign .home-hero::after {
  display: none;
}

/* Top row: address + actions */

.home-hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 16px 10px;
  position: relative;
  z-index: 2;
}

.home-hero__addr {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 4px 8px 4px 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 5;
  pointer-events: auto;
  touch-action: manipulation;
}

.home-hero__addr-pin {
  flex: none;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #fff;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.home-hero__addr-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.home-hero__addr-eye {
  font-size: 11.5px;
  font-weight: 600;
  opacity: 0.82;
  letter-spacing: 0.01em;
}

.home-hero__addr-line {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}

.home-hero__addr-line strong {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(58vw, 240px);
}

.home-hero__addr-line .fi {
  flex: none;
  font-size: 14px;
  opacity: 0.9;
}

.home-hero__addr.is-empty .home-hero__addr-line strong {
  opacity: 0.85;
  font-weight: 700;
}

.home-hero__actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-hero__icon-btn {
  --menu-ring: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.14) 30%,
    transparent 50%,
    transparent 100%
  );
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 0;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  /* Crytalix liquid glass — frosted square */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.1) 48%,
    rgba(255, 255, 255, 0.06) 100%
  );
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 6px 16px rgba(0, 0, 0, 0.16);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease;
}

/* Crytalix top-fade border ring */
.home-hero__icon-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.35px;
  pointer-events: none;
  z-index: 1;
  background: var(--menu-ring);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.home-hero__icon-btn > * {
  position: relative;
  z-index: 2;
}

.home-hero__icon-btn--menu,
.home-hero__icon-btn--back {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: none;
}

.home-hero__icon-btn:active {
  transform: scale(0.94);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.14) 100%
  );
}

/* Search */

.home-hero__search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 32px);
  margin: 0 16px 12px;
  padding: 11px 14px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #111827;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  text-align: left;
  cursor: pointer;
  position: relative;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.home-hero__search:active {
  transform: scale(0.99);
}

.home-hero__search-ico {
  flex: none;
  color: #6b7280;
  font-size: 16px;
  display: grid;
  place-items: center;
}

.home-hero__search-hint {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  overflow: hidden;
}

.home-hero__search-static {
  flex: none;
  color: #9ca3af;
  font-weight: 600;
}

.home-hero__search-rotator {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 1.25em;
  overflow: hidden;
}

.home-hero__search-rotator > span {
  position: absolute;
  inset: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #374151;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.home-hero__search-rotator > span.is-active {
  opacity: 1;
  transform: translateY(0);
}

.home-hero__search-filter {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 14px;
}

/* Prompt */

.home-hero__prompt {
  margin: 0 18px 6px;
  font-size: clamp(1.2rem, 4.6vw, 1.45rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  position: relative;
  z-index: 2;
}

.home-hero__prompt-em {
  display: inline-block;
  margin-left: 4px;
  font-family: 'Caveat', cursive;
  font-style: normal;
  font-weight: 700;
  font-size: 1.35em;
  color: var(--home-accent);
  letter-spacing: 0;
  line-height: 1;
  vertical-align: baseline;
}

/* Vertical cards */

body.home-redesign .home-verticals,
body.home-redesign .home-verts {
  margin: 0 16px 14px;
  gap: 10px;
  position: relative;
  z-index: 2;
}

body.home-redesign .home-verticals--duo {
  grid-template-columns: 1fr 1fr;
}

body.home-redesign .home-vert {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 148px;
  max-height: 168px;
  padding: 12px 12px 56px;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.16) 0%, transparent 42%),
    linear-gradient(180deg, #b31a18 0%, #7a0c0b 100%);
  transition: transform 0.18s ease;
}

body.home-redesign .home-vert:active {
  transform: scale(0.975);
}

body.home-redesign .home-vert--ride {
  background:
    linear-gradient(160deg, rgba(255, 180, 80, 0.18) 0%, transparent 40%),
    linear-gradient(180deg, #c4211e 0%, #6e0908 78%),
    #810100;
}

body.home-redesign .home-vert--hs {
  background:
    linear-gradient(200deg, rgba(255, 120, 160, 0.16) 0%, transparent 45%),
    linear-gradient(180deg, #a81412 0%, #5a0605 80%),
    #810100;
}

/* Kill legacy absolute icon / go styles inside redesign */
body.home-redesign .home-vert__shine,
body.home-redesign .home-vert__icon,
body.home-redesign .home-vert__live,
body.home-redesign .home-vert__go {
  display: none !important;
}

.home-vert__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  z-index: 2;
}

.home-vert__badge--live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff8a3d;
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.35);
  display: inline-block;
}

.home-vert__badge--home {
  background: rgba(236, 72, 153, 0.35);
}

.home-vert__badge--home .fi {
  font-size: 10px;
}

.home-vert__orb {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand, #810100);
  font-size: 13px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.home-redesign .home-vert__title {
  margin: 4px 0 0;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff !important;
  z-index: 2;
  position: relative;
}

body.home-redesign .home-vert__sub {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78) !important;
  z-index: 2;
  position: relative;
  max-width: 92%;
}

.home-vert__cta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand, #810100);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  z-index: 2;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.home-vert__cta .fi {
  font-size: 12px;
}

.home-vert__art {
  position: absolute;
  right: -4%;
  bottom: -6%;
  width: 62%;
  height: 48%;
  z-index: 1;
  pointer-events: none;
}

.home-vert__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.3));
  transform: scale(1.02);
}

body.home-redesign .home-vert--ride .home-vert__art {
  width: 72%;
  height: 44%;
  right: -8%;
  bottom: -2%;
}

body.home-redesign .home-vert--hs .home-vert__art {
  width: 58%;
  height: 42%;
  right: -2%;
  bottom: -2%;
}

/* Categories on red hero */

body.home-redesign .home-hero__cats {
  margin: 4px 0 0;
  padding: 0 0 4px;
  position: relative;
  z-index: 2;
}

body.home-redesign .home-hero__cats .section-head {
  padding: 0 16px 10px;
  margin: 0;
}

body.home-redesign .home-hero__cats .section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  font-size: 15.5px;
  font-weight: 800;
}

.home-hero__cat-bar {
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: var(--home-accent);
  box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.2);
}

body.home-redesign .home-hero__cats .section-link {
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 700;
  font-size: 13px;
}

body.home-redesign .home-zone--cream .category-item__icon,
body.home-redesign .home-hero__cats .category-item__icon {
  background: #fff !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14) !important;
  border: 0 !important;
}

body.home-redesign .home-hero__cats .category-item__label {
  color: #fff !important;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ── White sheet under crystalix tabs ──────────────────────────── */

body.home-redesign .home-zone--sheet {
  --sheet-radius: var(--home-sheet-radius);
  background: var(--home-card, #fff);
  border-radius: 0;
  margin-top: 0;
  padding-top: 14px;
  border-top: 0;
  box-shadow: none !important;
  z-index: 1;
  overflow: visible;
  position: relative;
}

body.home-redesign .home-zone--crystalix-sheet::before {
  display: none;
}

body.home-redesign .home-zone--sheet .section:first-child {
  padding-top: 10px;
}

.deal-combo__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.deal-combo__thumbs {
  display: flex;
  flex: 0 0 auto;
}
.deal-combo__thumb {
  width: 42px;
  height: 42px;
  margin-left: -10px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #fff;
  background: rgba(16, 185, 129, 0.12);
  display: grid;
  place-items: center;
}
.deal-combo__thumb:first-child { margin-left: 0; }
.deal-combo__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.deal-combo__copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.deal-combo__badge {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #065F46;
  font-size: 10px;
  font-weight: 800;
}
.deal-combo__line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  color: #064E3B;
  font-size: 13px;
  font-weight: 800;
}
.deal-combo__line strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.deal-combo__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  flex: 0 0 auto;
}
.deal-combo__price {
  font-size: 16px;
  font-weight: 850;
  color: #065F46;
}
.deal-combo__old {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  text-decoration: line-through;
}
.deal-combo__chev {
  color: #047857;
  font-size: 16px;
  transition: transform 0.2s ease;
}
.deal-combo__toggle.is-open .deal-combo__chev {
  transform: rotate(180deg);
}
.deal-combo__panel {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(6, 78, 59, 0.12);
}
.deal-combo__includes {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #047857;
}
.deal-combo__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  text-decoration: none;
  color: inherit;
}
.deal-combo__item-thumb {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(16, 185, 129, 0.1);
  display: grid;
  place-items: center;
}
.deal-combo__item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.deal-combo__item-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.deal-combo__item-name {
  font-size: 13px;
  font-weight: 750;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.deal-combo__item-meta {
  font-size: 11px;
  color: #6B7280;
}
.deal-combo__item-price {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  color: #065F46;
}
.deal-day-box--week {
  background:
    linear-gradient(165deg, rgba(129, 1, 0, 0.16) 0%, rgba(129, 1, 0, 0.05) 38%, rgba(255, 255, 255, 0.92) 72%, #fff 100%) !important;
}
.deal-day-box--week.liquid-glass::before {
  background: linear-gradient(
    180deg,
    rgba(129, 1, 0, 0.55) 0%,
    rgba(129, 1, 0, 0.18) 18%,
    transparent 38%,
    transparent 62%,
    rgba(129, 1, 0, 0.18) 82%,
    rgba(129, 1, 0, 0.55) 100%
  ) !important;
}
.deal-day-box--week .deal-day-box__title {
  color: #810100;
}
.deal-day-box--week .deal-combo__badge {
  background: rgba(129, 1, 0, 0.12);
  color: #810100;
}
.deal-day-box--week .deal-combo__thumb {
  background: rgba(129, 1, 0, 0.1);
}
.deal-day-box--week .deal-combo__line,
.deal-day-box--week .deal-combo__price,
.deal-day-box--week .deal-combo__chev,
.deal-day-box--week .deal-combo__includes,
.deal-day-box--week .deal-combo__item-price,
.deal-day-box--week .deal-row__clock {
  color: #810100;
}
.deal-day-box--week .deal-combo__panel {
  border-top-color: rgba(129, 1, 0, 0.14);
}
body.home-redesign .deal-day-slider {
  overflow: hidden;
  touch-action: pan-y;
}
body.home-redesign .deal-day-slider__track {
  display: flex;
  align-items: stretch;
}
body.home-redesign .deal-day-slider__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
}
body.home-redesign .deal-day-slider__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
body.home-redesign .deal-day-slider__dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(6, 78, 59, 0.28);
}
body.home-redesign .deal-day-slider__dot.is-on {
  width: 16px;
  background: #047857;
}

/* Hide the second search under Popular Items — search lives in the hero */
body.home-redesign .section--home-search,
body.home-redesign .home-sheet-search {
  display: none !important;
}

body.home-redesign .home-landing-empty--on-brand {
  margin: 24px 16px;
  padding: 28px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-align: center;
}

body.home-redesign .home-landing-empty--on-brand h1 {
  color: #fff;
}

body.home-redesign .home-landing-empty--on-brand p {
  color: rgba(255, 255, 255, 0.82);
}

/* Flash on red home — hidden; app-alerts.js shows a branded toast */
body.home-redesign .app-main > .flash {
  display: none !important;
}

/* ── Crystalix tab rail ────────────────────────────────────────── */

.crystalix {
  --crystalix-gap: 5px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  min-height: 82px;
  gap: var(--crystalix-gap);
  width: 100%;
  margin: 6px 0 0;
  padding: 0 10px;
  position: relative;
  z-index: 6;
  isolation: isolate;
}

.crystalix--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.crystalix--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.crystalix--n1 { grid-template-columns: 1fr; }

.crystalix__tab {
  --crystalix-h: 74px;
  /* Crytalix top-fade ring on red plates */
  --crystalix-ring: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.12) 30%,
    transparent 50%,
    transparent 100%
  );
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  min-height: var(--crystalix-h);
  height: var(--crystalix-h);
  margin: 0;
  padding: 8px 3px 6px;
  border: 0;
  /* Rounded TOP only — flat bottom */
  border-radius: 18px 18px 0 0;
  cursor: pointer;
  color: #fff;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  isolation: isolate;
  /* Unselected: dynamic theme */
  background: linear-gradient(
    180deg,
    var(--brand-muted, #9e1614) 0%,
    var(--brand, #810100) 48%,
    var(--brand-deep, #5c0000) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 -2px 12px rgba(0, 0, 0, 0.14);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    min-height 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease,
    box-shadow 0.35s ease,
    color 0.25s ease,
    z-index 0s linear 0.05s;
  z-index: calc(2 + var(--crystalix-i, 0));
  overflow: hidden;
}

.crystalix__tab:first-child {
  margin-left: 0;
}

/* Crytalix top-fade border ring */
.crystalix__tab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.35px;
  pointer-events: none;
  z-index: 2;
  background: var(--crystalix-ring);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.9;
  transition: opacity 0.35s ease, background 0.35s ease;
}

.crystalix__shine {
  position: absolute;
  top: 0;
  left: -40%;
  width: 42%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  opacity: 0;
}

/* Selected: light with soft red fade + dark text */
.crystalix__tab.is-active {
  --crystalix-h: 82px;
  --crystalix-ring: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(129, 1, 0, 0.22) 30%,
    rgba(129, 1, 0, 0.08) 55%,
    transparent 100%
  );
  z-index: 12;
  color: #5c2a28;
  background: linear-gradient(
    180deg,
    rgba(255, 245, 244, 0.98) 0%,
    rgba(247, 230, 229, 0.96) 42%,
    rgba(236, 210, 208, 0.94) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 -4px 18px rgba(129, 1, 0, 0.14);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  animation: crystalixSelectFade 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.crystalix__tab.is-active::before {
  opacity: 1;
}

.crystalix__tab.is-active .crystalix__shine {
  animation: crystalixShine 1.15s ease 0.08s both;
}

.crystalix__tab:not(.is-active):active {
  transform: scale(0.985);
  filter: brightness(1.08);
}

@keyframes crystalixSelectFade {
  from { filter: brightness(1.04); }
  to { filter: none; }
}

.crystalix__label {
  position: relative;
  z-index: 1;
  flex: none;
  font-family: 'Sora', 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.92);
  max-width: 100%;
  padding: 0 2px;
  margin: 0 0 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s ease, font-size 0.2s ease, font-weight 0.2s ease;
}

.crystalix__tab.is-active .crystalix__label {
  color: #5c2a28;
  font-size: 12px;
  font-weight: 800;
  text-shadow: none;
}

.crystalix__icon {
  position: relative;
  z-index: 1;
  flex: none;
  width: min(46px, 12.5vw);
  height: min(46px, 12.5vw);
  display: grid;
  place-items: center;
  margin: 0;
  transform: translateY(-3px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.crystalix__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.22));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.crystalix__tab.is-active .crystalix__icon {
  transform: translateY(-5px) scale(1.06);
  animation: crystalixBob 2.4s ease-in-out infinite;
}

.crystalix__tab--link {
  text-decoration: none;
}

@keyframes crystalixShine {
  0% { opacity: 0; left: -45%; }
  35% { opacity: 1; }
  100% { opacity: 0; left: 120%; }
}

@keyframes crystalixBob {
  0%, 100% { transform: translateY(-5px) scale(1.06); }
  50% { transform: translateY(-8px) scale(1.08); }
}

/* Mode panels */

.home-panel[hidden] {
  display: none !important;
}

.home-panel {
  display: none;
}

.home-panel.is-active:not([hidden]) {
  display: block;
}

.home-panel.is-enter {
  animation: homePanelIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes homePanelIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-mode-cta {
  padding-top: 18px !important;
}

.home-mode-cta__card {
  margin: 4px 16px 20px;
  padding: 28px 20px 24px;
  border-radius: 24px;
  text-align: center;
  color: #111827;
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(129, 1, 0, 0.08), transparent 55%),
    linear-gradient(180deg, #fff 0%, #f8f5f5 100%);
  border: 1px solid rgba(129, 1, 0, 0.1);
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.08);
}

.home-mode-cta__icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
}

.home-mode-cta__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.18));
}

.home-mode-cta__title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
}

.home-mode-cta__text {
  margin: 0 auto 18px;
  max-width: 28ch;
  font-size: 14px;
  line-height: 1.45;
  color: #6b7280;
}

.home-mode-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  background: linear-gradient(180deg, #9a1210 0%, var(--brand, #810100) 100%);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 22px rgba(129, 1, 0, 0.28);
  transition: transform 0.15s ease;
}

.home-mode-cta__btn:active {
  transform: scale(0.97);
}

/* Mobile polish */
@media (max-width: 380px) {
  .home-hero__addr-line strong {
    max-width: 46vw;
    font-size: 14.5px;
  }
  .home-hero__prompt {
    font-size: 1.15rem;
  }
  .crystalix__tab {
    --crystalix-h: 68px;
    border-radius: 16px 16px 0 0;
  }
  .crystalix__tab.is-active {
    --crystalix-h: 76px;
  }
  .crystalix__icon {
    width: min(42px, 11.5vw);
    height: min(42px, 11.5vw);
  }
  .crystalix__label {
    font-size: 10px;
  }
  .crystalix__tab.is-active .crystalix__label {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__search-rotator > span,
  body.home-redesign .home-vert,
  .home-hero__icon-btn,
  .crystalix__tab,
  .crystalix__icon {
    transition: none;
  }
  .crystalix__tab.is-active .crystalix__icon,
  .crystalix__tab.is-active .crystalix__shine,
  .crystalix__tab.is-active,
  .home-panel.is-enter {
    animation: none;
  }
}
