:root {
  --ink: #111827;
  --muted: #607086;
  --line: #d9e2ea;
  --page: #f4f7f5;
  --panel: #ffffff;
  --mint: #0f766e;
  --mint-dark: #0b5e59;
  --blue: #2563eb;
  --yellow: #f4c430;
  --amber: #d97706;
  --red: #b42318;
  --green-soft: #e4f4ec;
  --blue-soft: #e8f0ff;
  --yellow-soft: #fff6d8;
  --red-soft: #fff0eb;
  --shadow: 0 18px 42px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0, var(--page) 260px),
    var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(115deg, rgba(15, 118, 110, 0.08), transparent 32%),
    linear-gradient(245deg, rgba(244, 196, 48, 0.08), transparent 36%),
    repeating-linear-gradient(90deg, rgba(17, 24, 39, 0.025) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(17, 24, 39, 0.025) 0 1px, transparent 1px 84px);
  pointer-events: none;
}

.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 72% 20%, rgba(34, 197, 94, 0.2), transparent 28%),
    radial-gradient(circle at 18% 80%, rgba(37, 99, 235, 0.18), transparent 30%),
    linear-gradient(135deg, #050b14 0%, #081b25 50%, #0b5e59 100%);
  transition: opacity 760ms cubic-bezier(0.65, 0, 0.35, 1), visibility 760ms ease;
}

.boot-screen.hide {
  opacity: 0;
  visibility: hidden;
}

.boot-screen::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.07) 48%, transparent 54%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 64px);
  animation: welcomeSweep 4s linear infinite;
}

.boot-screen::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle, transparent 20%, rgba(3, 8, 15, 0.5) 100%);
  pointer-events: none;
}

.boot-card {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  width: min(620px, calc(100% - 36px));
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(6, 16, 27, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.5), inset 0 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px);
  animation: welcomeCardIn 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.boot-card::before,
.boot-card::after {
  position: absolute;
  width: 54px;
  height: 54px;
  content: "";
  border-color: var(--yellow);
  opacity: 0.75;
}

.boot-card::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
  border-radius: 18px 0 0;
}

.boot-card::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
  border-radius: 0 0 18px;
}

.boot-logo {
  display: inline-flex;
  align-items: center;
  width: min(300px, 74%);
  padding: 7px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  animation: welcomeLogoIn 800ms 120ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.boot-logo img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.welcome-kicker {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  width: fit-content;
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.welcome-kicker svg {
  width: 15px;
  height: 15px;
}

.welcome-copy {
  display: grid;
  gap: 8px;
}

.welcome-copy .eyebrow {
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.14em;
}

.welcome-copy h1 {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.welcome-copy h1 em {
  color: var(--yellow);
  font-style: normal;
}

.welcome-copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.96rem;
  line-height: 1.55;
}

.welcome-status {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  min-height: 32px;
  padding-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 800;
}

.welcome-status strong {
  color: var(--yellow);
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
}

.boot-progress {
  height: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.boot-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), #fff4a8 55%, #42e59a);
  border-radius: inherit;
  transform-origin: left center;
  animation: welcomeLoad 2.35s cubic-bezier(0.65, 0, 0.35, 1) both;
}

.welcome-promises {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.welcome-promises span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 850;
}

.welcome-promises svg {
  width: 14px;
  height: 14px;
  color: var(--yellow);
}

.welcome-foot {
  position: absolute;
  bottom: 22px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.welcome-road {
  position: absolute;
  right: -8%;
  bottom: -24%;
  width: 70%;
  height: 70%;
  opacity: 0.46;
  transform: perspective(500px) rotateX(58deg) rotateZ(-19deg);
}

.road-line {
  position: absolute;
  left: 0;
  width: 140%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(244, 196, 48, 0.8), transparent);
  box-shadow: 0 0 20px rgba(244, 196, 48, 0.32);
  animation: roadRush 2s linear infinite;
}

.road-line-a { top: 22%; }
.road-line-b { top: 49%; animation-delay: -700ms; }
.road-line-c { top: 76%; animation-delay: -1.4s; }

.welcome-orbit {
  position: absolute;
  top: -170px;
  left: -130px;
  width: 470px;
  height: 470px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  animation: ringRotate 18s linear infinite;
}

.welcome-orbit::before,
.welcome-orbit::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.welcome-orbit::before { inset: 66px; }
.welcome-orbit::after { inset: 132px; }

.welcome-orbit span {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(244, 196, 48, 0.9);
}

.welcome-orbit span:nth-child(1) { top: 48px; left: 105px; }
.welcome-orbit span:nth-child(2) { right: 28px; top: 220px; }
.welcome-orbit span:nth-child(3) { bottom: 64px; left: 80px; }

body.site-entered .app-shell {
  animation: siteArrival 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.corner-frame {
  position: fixed;
  inset: 0;
  z-index: 35;
  pointer-events: none;
}

.corner {
  position: absolute;
  width: 74px;
  height: 74px;
  color: rgba(15, 118, 110, 0.72);
  border-color: rgba(15, 118, 110, 0.72);
  filter: drop-shadow(0 0 14px rgba(15, 118, 110, 0.34));
  animation: cornerSignal 3.8s ease-in-out infinite;
}

.top-left {
  top: 78px;
  left: 12px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.top-right {
  top: 78px;
  right: 12px;
  border-top: 2px solid;
  border-right: 2px solid;
  animation-delay: 400ms;
}

.bottom-left {
  bottom: 12px;
  left: 12px;
  border-bottom: 2px solid;
  border-left: 2px solid;
  animation-delay: 800ms;
}

.bottom-right {
  right: 12px;
  bottom: 12px;
  border-right: 2px solid;
  border-bottom: 2px solid;
  animation-delay: 1200ms;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

img {
  display: block;
  max-width: 100%;
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-bottom: 0;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(270px, 330px) minmax(190px, 230px) minmax(310px, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  padding: 0 20px 12px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.07);
  backdrop-filter: blur(18px);
}

.header-pulse {
  grid-column: 1 / -1;
  display: flex;
  gap: 22px;
  align-items: center;
  min-height: 34px;
  margin: 0 -20px;
  padding: 0 22px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(90deg, #07111f, #102b31 58%, #0f766e),
    #07111f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.header-pulse span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.header-pulse svg {
  width: 14px;
  height: 14px;
  color: var(--yellow);
}

.header-pulse .pulse-live {
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pulse-live::before {
  width: 7px;
  height: 7px;
  content: "";
  background: #42e59a;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(66, 229, 154, 0.12);
  animation: systemPulse 1.8s ease-in-out infinite;
}

.header-pulse .pulse-help {
  margin-left: auto;
}

.header-pulse .pulse-help strong {
  color: #ffffff;
}

.app-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.8), var(--yellow), transparent);
  animation: headerScan 4s linear infinite;
}

.admin-header {
  grid-template-columns: minmax(260px, 330px) minmax(240px, 1fr) auto;
}

body[data-app="admin"] .admin-header {
  padding: 12px 20px;
}

.admin-location {
  width: min(420px, 100%);
}

.admin-site-link {
  text-decoration: none;
}

.brand,
.location-chip,
.nav-trigger,
.icon-button,
.cart-button,
.soft-button,
.primary-button,
.ghost-button,
.category-card,
.brand-card,
.qty-button,
.filter-chip,
.video-card,
.slot-button,
.address-card,
.ai-action,
.account-tab,
.login-card,
.account-card,
.account-panel,
.admin-panel,
.notice-card,
.login-callout,
.customer-checkout,
.admin-table {
  border-radius: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  color: inherit;
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 118px;
  height: 44px;
  padding: 3px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 8px;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.app-header .brand-logo {
  width: 142px;
  height: 56px;
  padding: 4px;
}

.brand-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.brand-copy strong {
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.1;
}

.brand-copy small {
  font-size: 0.67rem;
}

.admin-header .brand-logo {
  width: 210px;
  height: 76px;
}

.brand strong,
.brand small,
.location-chip strong,
.location-chip small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand strong {
  font-size: 1rem;
}

.brand small,
.location-chip small {
  color: var(--muted);
  font-size: 0.75rem;
}

.location-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  height: 46px;
  padding: 0 10px;
  color: var(--ink);
  text-align: left;
  background: var(--green-soft);
  border: 1px solid #cde7da;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  min-width: 0;
  padding: 0 14px;
  color: var(--muted);
  background: #f8fafb;
  border: 1px solid #cbd8df;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.search-box > svg {
  width: 20px;
  height: 20px;
  color: var(--mint);
}

.search-copy {
  display: grid;
  flex: 1;
  min-width: 0;
}

.search-copy small {
  color: var(--mint-dark);
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  min-width: 0;
  height: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.search-hint {
  flex: 0 0 auto;
  padding: 6px 8px;
  color: #758397;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
}

.desktop-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.desktop-nav {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-content: center;
  margin: 0 -20px -12px;
  padding: 5px 20px 6px;
  background: linear-gradient(90deg, #f3f7f6, #ffffff 50%, #f3f7f6);
  border-top: 1px solid #e5ecef;
}

.header-actions {
  grid-column: 4;
  grid-row: 2;
}

.desktop-nav .nav-trigger {
  min-height: 38px;
  padding: 0 9px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  font-weight: 800;
}

.desktop-nav .nav-trigger.active {
  color: #ffffff;
  background: var(--ink);
}

.icon-button,
.cart-button,
.soft-button,
.primary-button,
.ghost-button,
.qty-button,
.ai-action,
.slot-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid transparent;
  font-weight: 850;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.icon-button:active,
.cart-button:active,
.soft-button:active,
.primary-button:active,
.ghost-button:active,
.qty-button:active,
.ai-action:active,
.slot-button:active {
  transform: translateY(1px);
}

.icon-button {
  width: 42px;
  padding: 0;
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.icon-button.active {
  color: #ffffff;
  background: var(--ink);
}

.cart-button {
  position: relative;
  width: 46px;
  padding: 0;
  color: #ffffff;
  background: var(--mint);
}

.cart-button span {
  position: absolute;
  top: -7px;
  right: -7px;
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid #ffffff;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.soft-button {
  padding: 0 14px;
  color: var(--mint-dark);
  background: var(--green-soft);
  border-color: #cce9df;
}

.primary-button {
  padding: 0 16px;
  color: #ffffff;
  background: var(--mint);
}

.primary-button:disabled {
  color: #8a98a8;
  background: #e2e8ee;
}

.ghost-button {
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.app-view {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 16px 20px 32px;
}

.system-strip {
  display: grid;
  grid-auto-columns: max-content;
  grid-auto-flow: column;
  gap: 10px;
  width: min(1480px, calc(100% - 40px));
  margin: 12px auto 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.system-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  color: var(--mint-dark);
  background: rgba(228, 244, 236, 0.86);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
}

.app-footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(260px, 0.9fr) minmax(260px, 0.8fr);
  gap: 18px;
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto 28px;
  padding: 18px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(15, 118, 110, 0.9)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 42px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.app-footer::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(244, 196, 48, 0.15), transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 34px);
  animation: scanSweep 8s linear infinite;
  pointer-events: none;
}

.app-footer > * {
  position: relative;
  z-index: 1;
}

.footer-about {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer-brand {
  color: #ffffff;
}

.footer-brand small,
.footer-about p,
.footer-meta strong {
  color: rgba(255, 255, 255, 0.74);
}

.footer-about p {
  max-width: 720px;
  margin: 0;
  line-height: 1.55;
}

.footer-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.footer-tabs .nav-trigger {
  min-height: 42px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 850;
}

.footer-tabs .nav-trigger.active,
.footer-tabs .nav-trigger:hover {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
}

.footer-meta {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer-meta > div {
  display: grid;
  gap: 7px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.footer-meta .eyebrow {
  color: rgba(255, 255, 255, 0.62);
}

.footer-meta .soft-button {
  width: fit-content;
}

.page {
  display: grid;
  gap: 18px;
  animation: pageLift 420ms ease both;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(330px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.hero-panel {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(10, 18, 28, 0.82), rgba(10, 18, 28, 0.34) 52%, rgba(10, 18, 28, 0.08)),
    linear-gradient(180deg, rgba(10, 18, 28, 0.08), rgba(10, 18, 28, 0.65));
}

.hero-panel::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(120deg, transparent 0 42%, rgba(244, 196, 48, 0.24) 48%, transparent 54% 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 42px);
  mix-blend-mode: screen;
  opacity: 0.48;
  animation: heroDataSweep 6s linear infinite;
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  inset: auto 24px 24px 24px;
  z-index: 1;
  display: grid;
  gap: 12px;
  max-width: 610px;
}

.hero-holo {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  display: grid;
  gap: 12px;
  width: min(330px, calc(100% - 48px));
  padding: 14px;
  color: #ffffff;
  background: rgba(8, 18, 30, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.hero-constellation {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.signal-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(244, 196, 48, 0.78);
  animation: signalFloat 4.2s ease-in-out infinite;
}

.dot-a {
  top: 22%;
  left: 18%;
}

.dot-b {
  top: 16%;
  left: 52%;
  animation-delay: 480ms;
}

.dot-c {
  right: 14%;
  bottom: 28%;
  animation-delay: 940ms;
}

.dot-d {
  bottom: 18%;
  left: 38%;
  animation-delay: 1300ms;
}

.signal-ring {
  position: absolute;
  right: 21%;
  bottom: 19%;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(244, 196, 48, 0.32);
  border-radius: 50%;
  animation: ringRotate 9s linear infinite;
}

.signal-ring::before,
.signal-ring::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.signal-ring::before {
  inset: 22px;
}

.signal-ring::after {
  inset: 52px;
}

.holo-head {
  display: grid;
  gap: 4px;
}

.holo-head .eyebrow {
  color: rgba(255, 255, 255, 0.68);
}

.route-map {
  position: relative;
  height: 120px;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 24px),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.route-node,
.route-line,
.route-car,
.neural-chip,
.neural-path {
  position: absolute;
}

.route-node {
  z-index: 2;
  width: 14px;
  height: 14px;
  background: var(--yellow);
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(244, 196, 48, 0.8);
}

.node-a {
  left: 20px;
  top: 76px;
}

.node-b {
  left: 46%;
  top: 34px;
}

.node-c {
  right: 20px;
  top: 72px;
}

.route-line {
  height: 2px;
  background: linear-gradient(90deg, rgba(244, 196, 48, 0.1), rgba(244, 196, 48, 0.9));
  transform-origin: left center;
  animation: routeGlow 2.8s ease-in-out infinite;
}

.line-a {
  left: 32px;
  top: 77px;
  width: 130px;
  transform: rotate(-19deg);
}

.line-b {
  left: 48%;
  top: 43px;
  width: 126px;
  transform: rotate(20deg);
  animation-delay: 450ms;
}

.route-car {
  left: 42px;
  top: 62px;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #101827;
  background: #ffffff;
  border-radius: 8px;
  animation: routeDrive 5.6s ease-in-out infinite;
}

.holo-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.holo-stats span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.holo-stats b {
  font-size: 1.08rem;
}

.holo-stats small {
  color: rgba(255, 255, 255, 0.7);
}


.eyebrow {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  width: fit-content;
  padding: 6px 9px;
  color: #111827;
  background: var(--yellow);
  border-radius: 6px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4.7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.02rem;
  line-height: 1.45;
}

.hero-actions,
.row-actions,
.modal-actions,
.checkout-actions,
.auth-actions,
.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions .primary-button,
.hero-actions .soft-button,
.hero-actions .ghost-button {
  width: auto;
}

.promise-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.promise-strip article,
.panel,
.category-card,
.brand-card,
.product-card,
.ai-panel,
.quick-panel,
.deal-card,
.order-card,
.ops-card,
.product-detail,
.cart-summary,
.video-card,
.login-card,
.account-card,
.account-panel,
.admin-panel,
.notice-card,
.login-callout,
.customer-checkout,
.admin-table {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-card,
.category-card,
.brand-card,
.command-card,
.ops-card,
.order-card,
.promise-strip article {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.product-card:hover,
.category-card:hover,
.brand-card:hover,
.command-card:hover,
.ops-card:hover,
.order-card:hover,
.promise-strip article:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 118, 110, 0.36);
  box-shadow: 0 20px 42px rgba(17, 24, 39, 0.1);
}

.promise-strip article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
}

.promise-strip i,
.tile-icon,
.product-art,
.step-icon,
.ai-symbol {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--yellow-soft);
  border-radius: 8px;
}

.promise-strip strong {
  font-size: 1.45rem;
}

.promise-strip small {
  color: var(--muted);
}

.section {
  display: grid;
  gap: 12px;
}

.section-head {
  display: flex;
  gap: 14px;
  align-items: end;
  justify-content: space-between;
}

.section-head h2,
.section-head h1,
.drawer-head h2,
.product-detail h2,
.cart-summary h2 {
  margin: 2px 0 0;
  line-height: 1.08;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.route-beacon {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(180px, 260px) minmax(220px, 0.68fr);
  gap: 16px;
  align-items: center;
  min-height: 196px;
  overflow: hidden;
  padding: 18px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(7, 15, 26, 0.98), rgba(15, 118, 110, 0.88) 55%, rgba(244, 196, 48, 0.22)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 38px);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.route-beacon::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(244, 196, 48, 0.16), transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 54px);
  animation: scanSweep 8s linear infinite;
  pointer-events: none;
}

.route-beacon::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), var(--yellow), transparent);
  animation: headerScan 5s linear infinite;
}

.route-beacon > * {
  position: relative;
  z-index: 1;
}

.beacon-copy {
  display: grid;
  gap: 9px;
}

.beacon-copy .eyebrow {
  color: rgba(255, 255, 255, 0.68);
}

.beacon-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 0.98;
}

.beacon-copy p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.beacon-orbit {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 158px;
}

.orbit-ring,
.orbit-node,
.orbit-core {
  position: absolute;
}

.orbit-ring {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  animation: beaconSpin 9s linear infinite;
}

.ring-one {
  width: 150px;
  height: 150px;
}

.ring-two {
  width: 112px;
  height: 112px;
  animation-duration: 7s;
  animation-direction: reverse;
}

.ring-three {
  width: 72px;
  height: 72px;
  border-color: rgba(244, 196, 48, 0.36);
  animation-duration: 5.8s;
}

.orbit-core {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 8px;
  box-shadow: 0 0 34px rgba(244, 196, 48, 0.42);
}

.orbit-core svg {
  width: 28px;
  height: 28px;
}

.orbit-node {
  width: 11px;
  height: 11px;
  background: #ffffff;
  border: 2px solid var(--yellow);
  border-radius: 3px;
  box-shadow: 0 0 18px rgba(244, 196, 48, 0.68);
  animation: orbitNode 2.8s ease-in-out infinite;
}

.orbit-a {
  top: 20px;
  right: 54px;
}

.orbit-b {
  bottom: 34px;
  left: 48px;
  animation-delay: 420ms;
}

.orbit-c {
  right: 42px;
  bottom: 42px;
  animation-delay: 840ms;
}

.beacon-stats {
  display: grid;
  gap: 9px;
}

.beacon-stats article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.beacon-stats small {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 900;
  text-transform: uppercase;
}

.beacon-stats strong {
  overflow-wrap: anywhere;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.category-card,
.brand-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 136px;
  padding: 14px;
  text-align: left;
  color: inherit;
  border-color: transparent;
  overflow: hidden;
}

.category-card::after,
.brand-card::after {
  position: absolute;
  right: -24px;
  bottom: -28px;
  width: 96px;
  height: 96px;
  content: "";
  border: 16px solid rgba(17, 24, 39, 0.06);
  border-radius: 50%;
}

.category-card.active,
.brand-card.active {
  border-color: var(--mint);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.18);
}

.category-card strong,
.brand-card strong {
  font-size: 1rem;
}

.category-card small,
.brand-card small {
  color: var(--muted);
  line-height: 1.35;
}

.cat-service {
  background: #fff8db;
}

.cat-brakes {
  background: #ffece7;
}

.cat-engine {
  background: #eaf2ff;
}

.cat-electrical {
  background: #e9f7ef;
}

.cat-suspension {
  background: #f1ecff;
}

.cat-ac {
  background: #e7f8fb;
}

.cat-body {
  background: #f4f7fb;
}

.cat-transmission {
  background: #fff0dc;
}

.cat-fluids {
  background: #edf7e7;
}

.cat-accessories {
  background: #f9eef7;
}

.brand-tvs {
  background: #fff1e8;
}

.brand-rane {
  background: #eaf2ff;
}

.brand-mahindra {
  background: #ecfdf3;
}

.brand-bosch {
  background: #ffecec;
}

.brand-minda {
  background: #fff8db;
}

.brand-valeo {
  background: #e7f8fb;
}

.brand-gabriel {
  background: #f1ecff;
}

.brand-mann {
  background: #edf7e7;
}

.brand-castrol {
  background: #f0f8e9;
}

.brand-select {
  background: #f9eef7;
}

.feature-brands {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.quick-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  min-width: 0;
}

.ai-copilot {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 14px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(15, 118, 110, 0.86)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 28px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  overflow: hidden;
}

.ai-copilot::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 0 42%, rgba(244, 196, 48, 0.16) 48%, transparent 54% 100%);
  animation: heroDataSweep 5s linear infinite;
}

.ai-copilot > * {
  position: relative;
  z-index: 1;
}

.copilot-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.copilot-head .eyebrow {
  color: rgba(255, 255, 255, 0.66);
}

.copilot-stream {
  display: grid;
  gap: 7px;
}

.copilot-stream span {
  min-height: 34px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 0.83rem;
}

.vehicle-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(15, 118, 110, 0.96), rgba(37, 99, 235, 0.78)),
    url("assets/four-wheeler-parts-workbench.png") center / cover;
  border-radius: 8px;
}

.vehicle-card select,
.vehicle-card input {
  height: 42px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  outline: 0;
}

.vehicle-card label {
  display: grid;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-panel {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 250px;
  padding: 16px;
  overflow: hidden;
}

.ai-panel::after,
.scanner-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, transparent 0 45%, rgba(244, 196, 48, 0.17) 50%, transparent 56% 100%);
  animation: heroDataSweep 5.2s linear infinite;
  pointer-events: none;
}

.ai-panel::after {
  z-index: 0;
}

.ai-panel::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.1), transparent),
    repeating-linear-gradient(0deg, rgba(37, 99, 235, 0.07) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(15, 118, 110, 0.07) 0 1px, transparent 1px 24px);
  animation: scanSweep 4s linear infinite;
}

.ai-panel > * {
  position: relative;
  z-index: 1;
}

.ai-top {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ai-symbol {
  color: #ffffff;
  background: var(--ink);
}

.scan-window {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 140px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.scan-window::before,
.advisor-frame::before {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  content: "";
  background: var(--yellow);
  box-shadow: 0 0 20px rgba(244, 196, 48, 0.72);
  animation: scanLine 2.4s ease-in-out infinite;
}

.scan-product-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  filter: saturate(0.9) contrast(1.04);
}

.scan-reticle {
  position: absolute;
  inset: 28px 42px;
  border: 1px solid rgba(15, 118, 110, 0.52);
  border-radius: 8px;
  box-shadow: inset 0 0 30px rgba(15, 118, 110, 0.08);
  pointer-events: none;
}

.scan-reticle::before,
.scan-reticle::after {
  position: absolute;
  width: 18px;
  height: 18px;
  content: "";
  border-color: var(--yellow);
}

.scan-reticle::before {
  top: -1px;
  left: -1px;
  border-top: 3px solid;
  border-left: 3px solid;
}

.scan-reticle::after {
  right: -1px;
  bottom: -1px;
  border-right: 3px solid;
  border-bottom: 3px solid;
}

.ai-result-list {
  display: grid;
  gap: 8px;
}

.ai-match {
  display: grid;
  gap: 6px;
  padding: 10px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ai-match-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.confidence {
  height: 8px;
  overflow: hidden;
  background: #dce4ec;
  border-radius: 999px;
}

.confidence span {
  display: block;
  height: 100%;
  background: var(--mint);
}

.ai-command {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
  gap: 18px;
  overflow: hidden;
  padding: 18px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(15, 118, 110, 0.86)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 42px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.neural-dashboard {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.35fr);
  gap: 14px;
  padding: 18px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(7, 15, 26, 0.96), rgba(37, 99, 235, 0.72), rgba(15, 118, 110, 0.86)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 36px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.neural-dashboard::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(244, 196, 48, 0.14), transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 32px);
  animation: scanSweep 7.6s linear infinite;
  pointer-events: none;
}

.neural-dashboard > * {
  position: relative;
  z-index: 1;
}

.dashboard-core {
  display: grid;
  gap: 8px;
  align-content: center;
}

.dashboard-core .eyebrow {
  color: rgba(255, 255, 255, 0.66);
}

.dashboard-core h2 {
  margin: 0;
  font-size: clamp(1.42rem, 2.5vw, 2.35rem);
  line-height: 1.06;
}

.dashboard-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.matrix-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.matrix-card span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 8px;
}

.matrix-card small {
  color: rgba(255, 255, 255, 0.66);
  font-weight: 900;
  text-transform: uppercase;
}

.matrix-card strong {
  overflow-wrap: anywhere;
}

.ai-command::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(244, 196, 48, 0.16), transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 34px);
  animation: scanSweep 7s linear infinite;
  pointer-events: none;
}

.ai-command > * {
  position: relative;
  z-index: 1;
}

.command-copy {
  display: grid;
  align-content: center;
  gap: 8px;
}

.command-copy .eyebrow {
  color: rgba(255, 255, 255, 0.68);
}

.command-copy h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2.4rem);
  line-height: 1.04;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.command-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.command-card span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 8px;
}

.command-card small {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}

.deal-row,
.product-row {
  display: grid;
  grid-auto-columns: minmax(220px, 260px);
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.deal-card {
  display: grid;
  gap: 12px;
  min-height: 168px;
  padding: 14px;
}

.deal-card strong {
  font-size: 1.12rem;
}

.deal-card small {
  color: var(--muted);
}

.products-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.category-rail,
.filter-panel,
.cart-panel,
.orders-panel,
.account-panel,
.admin-panel {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.category-rail::before,
.filter-panel::before,
.cart-panel::before,
.orders-panel::before,
.account-panel::before,
.admin-panel::before {
  position: absolute;
  top: 0;
  left: -60%;
  width: 48%;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.78), var(--yellow), transparent);
  animation: cardEdgeScan 5s linear infinite;
}

.category-rail > *,
.filter-panel > *,
.cart-panel > *,
.orders-panel > *,
.account-panel > *,
.admin-panel > * {
  position: relative;
  z-index: 1;
}

.rail-button,
.filter-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 9px;
  color: var(--ink);
  text-align: left;
  background: #f8fafc;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.rail-button:hover,
.filter-chip:hover {
  transform: translateX(3px);
  border-color: rgba(15, 118, 110, 0.24);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.07);
}

.rail-button span,
.filter-chip span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.rail-button strong,
.rail-button small {
  overflow-wrap: anywhere;
}

.rail-button.active,
.filter-chip.active {
  background: var(--green-soft);
  border-color: #bae1d0;
}

.rail-button small,
.filter-chip small,
.product-meta,
.product-card small,
.cart-line small,
.ops-card small,
.order-card small {
  color: var(--muted);
}

.catalog-toolbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(auto-fit, minmax(150px, 190px));
  gap: 12px;
  align-items: end;
  overflow: hidden;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 240, 255, 0.74) 52%, rgba(255, 246, 216, 0.64)),
    #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.catalog-toolbar::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.1), transparent),
    repeating-linear-gradient(90deg, rgba(15, 118, 110, 0.06) 0 1px, transparent 1px 42px);
  animation: scanSweep 7s linear infinite;
  pointer-events: none;
}

.catalog-toolbar > * {
  position: relative;
  z-index: 1;
}

.catalog-toolbar h1 {
  margin: 2px 0 4px;
}

.catalog-toolbar label,
.filter-panel label,
.cart-panel label,
.checkout-form label,
.login-card label,
.profile-form label,
.address-form label,
.support-form label,
.admin-product-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

select,
input,
textarea {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
}

select,
input {
  height: 42px;
  padding: 0 11px;
}

textarea {
  resize: vertical;
  padding: 11px;
}

select:focus,
input:focus,
textarea:focus,
.search-box:focus-within {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.13);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-width: 0;
  min-height: 286px;
  padding: 12px;
  overflow: hidden;
}

.product-card::before,
.category-card::before,
.brand-card::before {
  position: absolute;
  top: 0;
  left: -60%;
  width: 52%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(15, 118, 110, 0.8), transparent);
  animation: cardEdgeScan 5.5s linear infinite;
}

.category-card::before,
.brand-card::before {
  height: 3px;
}

.product-art {
  position: relative;
  width: 100%;
  height: 112px;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.3)),
    var(--yellow-soft);
}

.product-art::before {
  position: absolute;
  inset: 10px;
  content: "";
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.34) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(37, 99, 235, 0.22) 0 1px, transparent 1px 100%);
  background-size: 22px 22px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  animation: productFrame 5.8s linear infinite;
  opacity: 0.58;
}

.product-card:nth-child(3n + 2) .product-art {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.3)),
    var(--blue-soft);
}

.product-card:nth-child(3n + 3) .product-art {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.3)),
    var(--green-soft);
}

.product-art i,
.product-art svg {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
}

.eta-pill,
.grade-pill,
.brand-pill,
.stock-pill,
.save-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  width: fit-content;
  padding: 0 8px;
  color: var(--ink);
  background: #eef3f7;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.eta-pill {
  color: var(--mint-dark);
  background: var(--green-soft);
}

.brand-pill {
  color: #1d4ed8;
  background: var(--blue-soft);
}

.save-pill {
  color: #7c4700;
  background: var(--yellow-soft);
}

.product-info {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.product-info h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.2;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
}

.compat-line {
  margin: 0;
  color: #334155;
  font-size: 0.84rem;
  line-height: 1.35;
}

.product-bottom {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.price {
  display: grid;
}

.price strong {
  font-size: 1.08rem;
}

.price del {
  color: var(--muted);
  font-size: 0.8rem;
}

.add-button {
  min-width: 76px;
}

.cart-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 18px;
  align-items: start;
}

.cart-summary,
.cart-panel,
.orders-panel {
  padding: 16px;
}

.cart-lines {
  display: grid;
  gap: 10px;
}

.cart-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-line strong,
.cart-line small {
  overflow-wrap: anywhere;
}

.qty-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-button {
  width: 30px;
  min-height: 30px;
  padding: 0;
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.summary-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.summary-row.total {
  border-bottom: 0;
  font-size: 1.15rem;
  font-weight: 900;
}

.checkout-form {
  display: grid;
  gap: 12px;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.slot-button {
  min-height: 52px;
  padding: 0 10px;
  color: var(--ink);
  background: #f8fafc;
  border-color: var(--line);
}

.slot-button.active {
  background: var(--green-soft);
  border-color: #bae1d0;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 260px;
  padding: 20px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.login-card,
.account-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.login-card h1,
.account-card h1,
.account-card h2 {
  margin: 2px 0 0;
  line-height: 1.08;
}

.login-card p,
.account-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.otp-demo,
.form-error,
.notice-card,
.login-callout,
.customer-checkout {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 12px;
}

.otp-demo {
  justify-content: space-between;
  background: var(--yellow-soft);
  border: 1px solid #f2df9b;
  border-radius: 8px;
}

.otp-demo strong {
  font-size: 1.18rem;
  letter-spacing: 0;
}

.form-error {
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid #ffd4c6;
  border-radius: 8px;
  font-weight: 850;
}

.account-benefits {
  min-height: 100%;
}

.account-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.account-panel {
  padding: 14px;
}

.customer-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.customer-summary div,
.account-mini {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.customer-summary strong,
.customer-summary small,
.account-mini strong,
.account-mini small {
  overflow-wrap: anywhere;
}

.customer-summary small,
.account-mini small {
  color: var(--muted);
}

.account-tabs {
  display: grid;
  gap: 8px;
}

.account-tab {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 9px 10px;
  color: var(--ink);
  text-align: left;
  background: #f8fafc;
  border: 1px solid transparent;
  font-weight: 850;
}

.account-tab.active,
.vehicle-tile.active,
.address-tile.active {
  background: var(--green-soft);
  border-color: #bae1d0;
}

.account-content {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.notice-card {
  color: var(--mint-dark);
  background: var(--green-soft);
  border-color: #cce9df;
  font-weight: 850;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  align-content: start;
}

.stat-card i,
.customer-grid article > i {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: var(--yellow-soft);
  border-radius: 8px;
}

.stat-card span,
.customer-grid small,
.support-ticket small {
  color: var(--muted);
}

.stat-card strong {
  font-size: 1.4rem;
}

.account-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.customer-grid article {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.customer-grid strong,
.customer-grid small,
.customer-grid span {
  overflow-wrap: anywhere;
}

.profile-form,
.address-form,
.support-form {
  display: grid;
  gap: 12px;
}

.profile-form {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
}

.address-form {
  grid-template-columns: minmax(120px, 0.6fr) minmax(220px, 1.4fr) minmax(130px, 0.7fr) minmax(110px, 0.5fr) auto;
  align-items: end;
}

.support-form {
  grid-template-columns: minmax(180px, 0.5fr) minmax(260px, 1fr) auto;
  align-items: end;
}

.checkbox-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 42px;
  padding: 0 11px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-transform: none;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  padding: 0;
}

.login-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  background: #f8fafc;
}

.login-callout div,
.customer-checkout {
  display: grid;
  gap: 4px;
}

.login-callout small,
.customer-checkout small {
  color: var(--muted);
}

.customer-checkout {
  padding: 12px;
  background: var(--green-soft);
}

.account-orders {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.customer-order {
  min-height: 230px;
}

.order-actions .soft-button,
.order-actions .ghost-button {
  min-height: 38px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-panel {
  padding: 14px;
}

.admin-product-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 12px;
  align-items: end;
}

.admin-product-form .admin-form-wide {
  grid-column: span 2;
}

.admin-table {
  display: grid;
  overflow: hidden;
}

.admin-table-head,
.admin-table-row {
  display: grid;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 12px;
}

.admin-table-head {
  color: var(--muted);
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-table-row {
  border-bottom: 1px solid var(--line);
}

.admin-table-row:last-child {
  border-bottom: 0;
}

.admin-table-row > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-table-row small {
  color: var(--muted);
}

.product-admin-table .admin-table-head,
.product-admin-table .admin-table-row {
  grid-template-columns: minmax(180px, 1.25fr) minmax(110px, 0.75fr) minmax(100px, 0.65fr) minmax(86px, 0.55fr) minmax(80px, 0.5fr) minmax(100px, 0.6fr);
}

.order-admin-table .admin-table-head,
.order-admin-table .admin-table-row {
  grid-template-columns: minmax(110px, 0.75fr) minmax(150px, 0.9fr) minmax(220px, 1.3fr) minmax(190px, 1.1fr) minmax(96px, 0.6fr) minmax(160px, 0.95fr);
}

.login-admin-table .admin-table-head,
.login-admin-table .admin-table-row {
  grid-template-columns: minmax(180px, 1.2fr) minmax(130px, 0.8fr) minmax(110px, 0.7fr) minmax(110px, 0.7fr) minmax(90px, 0.5fr);
}

.admin-status-cell {
  align-items: start;
}

.admin-small-button {
  width: 100%;
  min-height: 34px;
  padding: 0 9px;
  font-size: 0.78rem;
}

.admin-mini-list {
  display: grid;
  gap: 8px;
}

.admin-mini-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-mini-row span {
  display: grid;
  min-width: 0;
}

.admin-mini-row small {
  color: var(--muted);
}

.admin-customer-card > i {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: var(--yellow-soft);
  border-radius: 8px;
}

.ai-page {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.scanner-stage {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.scanner-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(17, 24, 39, 0.84), rgba(15, 118, 110, 0.72)),
    url("assets/four-wheeler-parts-workbench.png") center / cover;
  border-radius: 8px;
}

.scanner-visual::before {
  z-index: 0;
  mix-blend-mode: screen;
}

.scanner-visual::after {
  position: absolute;
  inset: 18px;
  z-index: 1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
}

.scanner-card {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
  width: min(440px, calc(100% - 40px));
  padding: 18px;
  background: rgba(7, 15, 26, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.scanner-card,
.neural-route {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.neural-route {
  position: absolute;
  inset: 28px;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  pointer-events: none;
}

.neural-chip {
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 34px;
  color: #ffffff;
  background: rgba(15, 118, 110, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 900;
}

.chip-a {
  left: 24px;
  top: 28px;
}

.chip-b {
  right: 32px;
  top: 44px;
}

.chip-c {
  left: 34px;
  bottom: 48px;
}

.chip-d {
  right: 46px;
  bottom: 36px;
}

.neural-path {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  opacity: 0.76;
  transform-origin: left center;
  animation: routeGlow 2.4s ease-in-out infinite;
}

.path-a {
  left: 76px;
  top: 48px;
  width: 62%;
  transform: rotate(4deg);
}

.path-b {
  left: 82px;
  top: 50%;
  width: 70%;
  transform: rotate(-22deg);
  animation-delay: 350ms;
}

.path-c {
  left: 86px;
  bottom: 64px;
  width: 65%;
  transform: rotate(13deg);
  animation-delay: 700ms;
}

.scanner-card h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
}

.scan-meter {
  display: grid;
  gap: 8px;
}

.meter-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 46px;
  gap: 10px;
  align-items: center;
}

.meter-row span {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.meter-bar {
  height: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.meter-bar strong {
  display: block;
  height: 100%;
  background: var(--yellow);
}

.ai-results {
  display: grid;
  gap: 12px;
}

.product-detail {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-grid article {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ai-console {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(15, 118, 110, 0.84)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 30px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.ai-console div {
  display: grid;
  gap: 4px;
}

.ai-console small {
  color: rgba(255, 255, 255, 0.66);
  font-weight: 900;
  text-transform: uppercase;
}

.ai-console strong {
  line-height: 1.3;
}

.ai-console > span {
  flex: 0 0 auto;
  padding: 6px 8px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 999px;
  font-weight: 900;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ops-card,
.order-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.progress {
  height: 8px;
  overflow: hidden;
  background: #dce4ec;
  border-radius: 999px;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--mint);
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.order-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.order-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step-icon {
  color: #ffffff;
  background: var(--mint);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.62);
  border: 0;
  border-radius: 0;
}

.video-modal {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  width: min(940px, 100%);
  max-height: min(780px, calc(100vh - 36px));
  overflow: auto;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.location-modal {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(760px, calc(100% - 28px));
  max-height: min(760px, calc(100vh - 36px));
  overflow: hidden;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.location-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.location-actions span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.location-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.location-search input {
  height: 42px;
  padding: 0;
  border: 0;
}

.location-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.location-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 11px 12px;
  color: var(--ink);
  text-align: left;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.location-option.active {
  background: var(--green-soft);
  border-color: #bae1d0;
}

.location-option span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.location-option small,
.location-option > span:last-child {
  color: var(--muted);
  font-size: 0.82rem;
}

.video-stage {
  min-height: 460px;
  padding: 18px;
  background: #101827;
}

.advisor-frame {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(17, 24, 39, 0.7), rgba(15, 118, 110, 0.56)),
    url("assets/four-wheeler-parts-workbench.png") center / cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.scan-grid {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 28px);
  animation: scanSweep 4s linear infinite;
}

.video-status {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  background: rgba(17, 24, 39, 0.68);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.video-status span {
  width: 9px;
  height: 9px;
  background: #22c55e;
  border-radius: 50%;
}

.advisor-frame > svg {
  width: 72px;
  height: 72px;
}

.advisor-frame strong {
  font-size: 1.5rem;
}

.advisor-frame small {
  padding: 6px 10px;
  background: rgba(17, 24, 39, 0.68);
  border-radius: 999px;
  font-weight: 900;
}

.video-form {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 20px;
}

.modal-head {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.modal-head h2 {
  margin: 2px 0 0;
  font-size: 1.2rem;
  line-height: 1.14;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.reason-grid button {
  min-height: 40px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
}

.reason-grid button.active {
  color: #ffffff;
  background: var(--ink);
  border-color: var(--ink);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  max-width: min(380px, calc(100vw - 36px));
  padding: 12px 14px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav {
  display: none;
}

svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.1;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

@keyframes heroDataSweep {
  from {
    background-position: -220px 0, 0 0;
  }
  to {
    background-position: 420px 0, 180px 0;
  }
}

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

@keyframes bootLoad {
  0% {
    transform: translateX(-90%);
  }
  60%,
  100% {
    transform: translateX(38%);
  }
}

@keyframes welcomeCardIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes welcomeLogoIn {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes welcomeLoad {
  from {
    transform: scaleX(0.02);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes welcomeSweep {
  from {
    background-position: -100vw 0, 0 0, 0 0;
  }
  to {
    background-position: 100vw 0, 0 0, 0 0;
  }
}

@keyframes roadRush {
  from {
    transform: translateX(-34%);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  to {
    transform: translateX(18%);
    opacity: 0;
  }
}

@keyframes siteArrival {
  from {
    opacity: 0;
    transform: scale(1.012);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes systemPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(244, 196, 48, 0);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 28px rgba(244, 196, 48, 0.48);
  }
}

@keyframes cornerSignal {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes headerScan {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes cardEdgeScan {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(310%);
  }
}

@keyframes signalFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.74;
  }
  50% {
    transform: translateY(-10px) scale(1.16);
    opacity: 1;
  }
}

@keyframes ringRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes beaconSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbitNode {
  0%,
  100% {
    opacity: 0.58;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-8px) scale(1.16);
  }
}

@keyframes productFrame {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 66px 0, 0 66px;
  }
}

@keyframes routeGlow {
  0%,
  100% {
    opacity: 0.42;
    filter: saturate(1);
  }
  50% {
    opacity: 1;
    filter: saturate(1.5);
  }
}

@keyframes routeDrive {
  0% {
    transform: translate(0, 0);
  }
  35% {
    transform: translate(104px, -31px);
  }
  70% {
    transform: translate(224px, 8px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes scanLine {
  0% {
    top: 0;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  50% {
    top: calc(100% - 3px);
    opacity: 1;
  }
  100% {
    top: 0;
    opacity: 0;
  }
}

@keyframes scanSweep {
  from {
    background-position: 0 0, 0 0, 0 0;
  }
  to {
    background-position: 220px 0, 0 96px, 96px 0;
  }
}

@keyframes partPulse {
  0%,
  100% {
    transform: translateY(0);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-5px);
    filter: brightness(1.12);
  }
}

@media (min-width: 1241px) {
  .hero-panel {
    min-height: clamp(540px, calc(100vh - 210px), 660px);
  }
}

@media (max-width: 1240px) {
  .app-header {
    grid-template-columns: minmax(240px, 320px) minmax(240px, 1fr) auto;
  }

  .location-chip,
  .desktop-nav {
    display: none;
  }

  .home-grid,
  .ai-page,
  .cart-page,
  .auth-page {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-command {
    grid-template-columns: 1fr;
  }

  .neural-dashboard {
    grid-template-columns: 1fr;
  }

  .command-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-beacon {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
  }

  .beacon-stats {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 940px) {
  .app-shell {
    padding-bottom: 76px;
  }

  .app-header {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 0 12px 10px;
  }

  body[data-app="admin"] .admin-header {
    padding: 10px 12px;
  }

  .header-pulse {
    grid-column: 1 / -1;
    margin: 0 -12px;
    padding: 0 14px;
  }

  .header-pulse span:nth-child(2),
  .header-pulse span:nth-child(3),
  .header-pulse .pulse-help {
    display: none;
  }

  .brand {
    grid-column: 1;
  }

  .search-box {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 2;
  }

  .header-actions #accountButton,
  .header-actions #cartButton {
    display: none;
  }

  .app-view {
    padding: 12px;
  }

  .system-strip {
    width: calc(100% - 24px);
    margin-top: 10px;
  }

  .app-footer {
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
    margin-bottom: 88px;
  }

  .category-grid,
  .brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .products-layout,
  .account-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .category-rail,
  .filter-panel,
  .cart-panel,
  .orders-panel,
  .account-panel,
  .admin-panel {
    position: static;
  }

  .category-rail {
    display: grid;
    grid-auto-columns: minmax(160px, 1fr);
    grid-auto-flow: column;
    overflow-x: auto;
  }

  .category-rail::before,
  .filter-panel::before {
    display: none;
  }

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

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-flow,
  .promise-strip {
    grid-template-columns: 1fr;
  }

  .hero-holo {
    display: none;
  }

  .hero-constellation {
    opacity: 0.42;
  }

  .corner {
    width: 46px;
    height: 46px;
  }

  .route-beacon {
    grid-template-columns: 1fr;
  }

  .beacon-orbit {
    min-height: 136px;
  }

  .beacon-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .video-modal {
    grid-template-columns: 1fr;
  }

  .location-modal {
    width: min(680px, calc(100% - 18px));
  }

  .video-stage {
    min-height: 280px;
  }

  .advisor-frame {
    min-height: 250px;
  }

  .profile-form,
  .address-form,
  .support-form,
  .admin-product-form {
    grid-template-columns: 1fr 1fr;
  }

  .admin-product-form .admin-form-wide {
    grid-column: span 2;
  }

  .admin-table-head {
    display: none;
  }

  .product-admin-table .admin-table-row,
  .order-admin-table .admin-table-row,
  .login-admin-table .admin-table-row {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-nav {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
  }

  .mobile-nav button {
    display: grid;
    place-items: center;
    gap: 4px;
    min-width: 0;
    min-height: 48px;
    color: var(--muted);
    background: transparent;
    border: 0;
    font-size: 0.72rem;
    font-weight: 900;
  }

  .mobile-nav button.active {
    color: var(--mint-dark);
    background: var(--green-soft);
  }
}

@media (max-width: 620px) {
  .boot-card {
    gap: 13px;
    padding: 24px 20px;
    border-radius: 14px;
  }

  .boot-logo {
    width: min(235px, 82%);
  }

  .welcome-copy h1 {
    font-size: clamp(2.25rem, 13vw, 3.5rem);
  }

  .welcome-copy p {
    font-size: 0.86rem;
  }

  .welcome-promises {
    gap: 6px;
  }

  .welcome-promises span {
    padding: 6px 8px;
    font-size: 0.62rem;
  }

  .welcome-foot {
    bottom: 14px;
    max-width: calc(100% - 30px);
    text-align: center;
  }

  .app-header .brand-logo {
    width: 118px;
    height: 46px;
  }

  .brand-copy {
    display: none;
  }

  .search-hint {
    display: none;
  }

  .hero-panel,
  .hero-panel img {
    min-height: 310px;
  }

  .hero-copy {
    inset: auto 16px 16px 16px;
  }

  .route-beacon {
    min-height: auto;
    padding: 14px;
  }

  .beacon-copy h1 {
    font-size: 2rem;
  }

  .beacon-stats {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .brand-grid,
  .product-grid,
  .ops-grid,
  .detail-grid,
  .slot-grid,
  .reason-grid,
  .account-stats,
  .account-two-col {
    grid-template-columns: 1fr 1fr;
  }

  .product-bottom,
  .cart-line,
  .status-row,
  .modal-actions,
  .checkout-actions,
  .auth-actions,
  .order-actions {
    display: grid;
  }

  .add-button,
  .primary-button,
  .soft-button,
  .ghost-button {
    width: 100%;
  }

  .scanner-visual {
    min-height: 360px;
  }

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

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

  .dashboard-matrix {
    grid-template-columns: 1fr;
  }

  .profile-form,
  .address-form,
  .support-form,
  .admin-product-form,
  .login-callout,
  .location-actions,
  .location-option {
    grid-template-columns: 1fr;
  }

  .location-list {
    max-height: 58vh;
  }

  .admin-product-form .admin-form-wide {
    grid-column: auto;
  }

  .product-admin-table .admin-table-row,
  .order-admin-table .admin-table-row,
  .login-admin-table .admin-table-row {
    grid-template-columns: 1fr;
  }

  .neural-route {
    inset: 14px;
  }

  .neural-chip {
    width: 48px;
    height: 30px;
    font-size: 0.68rem;
  }

  .meter-row {
    grid-template-columns: 74px minmax(0, 1fr) 42px;
  }
}

@media (max-width: 420px) {
  .mobile-nav {
    gap: 2px;
    padding: 7px 4px;
  }

  .mobile-nav button {
    font-size: 0.62rem;
  }

  .category-grid,
  .brand-grid,
  .product-grid,
  .detail-grid,
  .slot-grid,
  .reason-grid,
  .account-stats,
  .account-two-col {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 2.05rem;
  }

  .product-card {
    min-height: auto;
  }

  .ai-console {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
