:root {
  --pwa-navy: #071c26;
  --pwa-green: #6bce45;
  --pwa-surface: #ffffff;
  --pwa-text: #112d3b;
  --pwa-muted: #657881;
  --pwa-border: rgba(7, 28, 38, 0.14);
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: pwa-route-out 90ms ease both;
}

::view-transition-new(root) {
  animation: pwa-route-in 170ms ease-out both;
}

html.pwa-route-loading::after {
  content: "";
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: 72%;
  height: 3px;
  transform-origin: left;
  background: var(--pwa-green);
  box-shadow: 0 0 12px rgba(107, 206, 69, 0.55);
  animation: pwa-route-progress 650ms ease-out both;
}

.pwa-install-card,
.pwa-update-card,
.pwa-install-sheet,
.pwa-app-nav {
  font-family: "Roboto", "Greente Roboto", Arial, sans-serif;
}

.pwa-app-nav {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 680px);
  min-height: calc(68px + env(safe-area-inset-bottom));
  padding: 7px 8px max(7px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  color: #6b7d84;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid #dce5e2;
  box-shadow: 0 -10px 35px rgba(7, 28, 38, 0.09);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.pwa-app-nav a {
  min-width: 0;
  min-height: 54px;
  padding: 5px 2px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: inherit;
  text-decoration: none;
  border-radius: 11px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color 120ms ease, background-color 120ms ease, transform 120ms ease;
}

.pwa-app-nav a:active,
.pwa-app-nav a[aria-busy="true"] {
  transform: scale(0.96);
}

.pwa-app-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pwa-app-nav span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1.1;
}

.pwa-app-nav a.active {
  color: #296f25;
  background: #edf7e9;
}

.pwa-app-nav a:focus-visible {
  outline: 3px solid rgba(107, 206, 69, 0.65);
  outline-offset: 1px;
}

body.pwa-has-app-nav {
  padding-bottom: calc(82px + env(safe-area-inset-bottom));
}

.pwa-page-enter body.pwa-has-app-nav main {
  animation: pwa-content-in 180ms ease-out both;
}

@keyframes pwa-content-in {
  from { opacity: 0.72; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

@keyframes pwa-route-progress {
  from { transform: scaleX(0.08); opacity: 1; }
  to { transform: scaleX(1); opacity: 0.72; }
}

@keyframes pwa-route-out {
  to { opacity: 0.88; }
}

@keyframes pwa-route-in {
  from { opacity: 0.7; }
}

.pwa-install-card[hidden],
.pwa-update-card[hidden],
.pwa-install-sheet[hidden],
.pwa-install-entry[hidden] {
  display: none !important;
}

.pwa-qr-promo {
  padding: clamp(70px, 8vw, 120px) 0;
  color: #fff;
  background: var(--pwa-navy);
}

.pwa-qr-promo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
}

.pwa-qr-promo-copy > span,
.pwa-install-entry-copy > span {
  display: block;
  margin-bottom: 14px;
  color: #86e663;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
}

.pwa-qr-promo-copy h2 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 5.4vw, 78px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.048em;
}

.pwa-qr-promo-copy p {
  max-width: 560px;
  margin: 24px 0 0;
  color: #b9c9cf;
  font-size: 17px;
  line-height: 1.6;
}

.pwa-qr-code {
  min-width: 0;
  padding: 17px 17px 15px;
  display: block;
  color: var(--pwa-text);
  background: #fff;
  border-radius: 22px;
  text-decoration: none;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
}

.pwa-qr-code img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.pwa-qr-code span {
  display: block;
  padding: 10px 4px 0;
  color: #46616d;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.pwa-direct-install {
  min-height: 54px;
  margin-top: 24px;
  padding: 0 18px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 13px;
  color: var(--pwa-navy);
  background: var(--pwa-green);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
}

.pwa-direct-install svg,
.pwa-install-entry-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pwa-install-entry {
  margin-bottom: 16px;
  padding: 22px;
  color: #fff;
  background: linear-gradient(145deg, #071c26, #153f50);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  box-shadow: 0 18px 55px rgba(7, 28, 38, 0.17);
}

.pwa-install-entry-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-install-entry-brand img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.pwa-install-entry-brand span {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.pwa-install-entry-copy {
  margin-top: 23px;
}

.pwa-install-entry-copy > span {
  margin-bottom: 9px;
  font-size: 9px;
}

.pwa-install-entry-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 9vw, 40px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.pwa-install-entry-copy p {
  margin: 13px 0 0;
  color: #c5d3d8;
  font-size: 13px;
  line-height: 1.5;
}

.pwa-install-entry-button {
  width: 100%;
  min-height: 56px;
  margin-top: 20px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 13px;
  color: var(--pwa-navy);
  background: var(--pwa-green);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
}

.pwa-install-entry-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.pwa-install-entry > small {
  display: block;
  margin-top: 11px;
  color: #b9c9cf;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.pwa-install-card {
  position: fixed;
  z-index: 92;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 11px;
  width: min(340px, calc(100vw - 32px));
  padding: 10px;
  color: #fff;
  background: rgba(7, 28, 38, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 18px 55px rgba(2, 17, 24, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.pwa-install-main {
  grid-column: 1 / 3;
  min-width: 0;
  border: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.pwa-install-main img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.pwa-install-copy {
  min-width: 0;
}

.pwa-install-copy strong,
.pwa-install-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pwa-install-copy strong {
  font-size: 13px;
  line-height: 1.25;
  font-weight: 500;
}

.pwa-install-copy small {
  margin-top: 3px;
  color: #b9c9cf;
  font-size: 11px;
  line-height: 1.25;
}

.pwa-install-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #cbd8dc;
  background: transparent;
  cursor: pointer;
}

.pwa-install-close:hover,
.pwa-install-close:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.pwa-install-close svg,
.pwa-sheet-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.pwa-install-sheet {
  position: fixed;
  z-index: 110;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(2, 17, 24, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pwa-sheet-panel {
  width: min(520px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 24px;
  color: var(--pwa-text);
  background: var(--pwa-surface);
  border-radius: 20px;
  box-shadow: 0 32px 90px rgba(2, 17, 24, 0.36);
}

.pwa-sheet-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 40px;
  gap: 13px;
  align-items: center;
}

.pwa-sheet-head img {
  width: 48px;
  height: 48px;
  border-radius: 11px;
}

.pwa-sheet-head h2 {
  margin: 0;
  color: var(--pwa-navy);
  font-size: 21px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.pwa-sheet-head p {
  margin: 4px 0 0;
  color: var(--pwa-muted);
  font-size: 12px;
}

.pwa-sheet-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--pwa-border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--pwa-text);
  background: #fff;
  cursor: pointer;
}

.pwa-install-steps {
  counter-reset: pwa-step;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.pwa-install-steps li {
  counter-increment: pwa-step;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 12px;
  color: #314d59;
  background: #f3f6f5;
  border: 1px solid #e1e8e7;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.pwa-install-steps li::before {
  content: counter(pwa-step);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--pwa-navy);
  background: var(--pwa-green);
  font-size: 13px;
  font-weight: 500;
}

.pwa-ios-note {
  margin: 14px 0 0;
  color: var(--pwa-muted);
  font-size: 12px;
  line-height: 1.5;
}

.pwa-update-card {
  position: fixed;
  z-index: 93;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 32px));
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #fff;
  background: var(--pwa-navy);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 18px 55px rgba(2, 17, 24, 0.3);
}

.pwa-update-card span {
  font-size: 13px;
  line-height: 1.35;
}

.pwa-update-card button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--pwa-green);
  color: var(--pwa-navy);
  background: var(--pwa-green);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.pwa-install-main:focus-visible,
.pwa-install-close:focus-visible,
.pwa-sheet-close:focus-visible,
.pwa-update-card button:focus-visible,
.pwa-direct-install:focus-visible,
.pwa-install-entry-button:focus-visible,
.pwa-qr-code:focus-visible {
  outline: 3px solid rgba(107, 206, 69, 0.72);
  outline-offset: 3px;
}

@media (min-width: 900px) {
  .pwa-install-card {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .pwa-install-card {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
  }

  .pwa-sheet-panel {
    padding: 20px;
    border-radius: 18px;
  }
}

@media (max-width: 899px) {
  .pwa-qr-promo {
    padding: 58px 0;
  }

  .pwa-qr-promo-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pwa-qr-promo-copy h2 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .pwa-qr-promo-copy p {
    margin-top: 18px;
    font-size: 15px;
  }

  .pwa-qr-code {
    display: none;
  }

  .pwa-direct-install {
    display: inline-flex;
  }
}

@media (display-mode: standalone) {
  .pwa-install-card {
    display: none !important;
  }
}

@media (display-mode: standalone) and (max-width: 899px) {
  body.pwa-has-app-nav .footer {
    display: none !important;
  }

  body.pwa-has-app-nav .site-header {
    padding-top: env(safe-area-inset-top);
  }

  body.pwa-has-app-nav .site-header .topline,
  body.pwa-has-app-nav .site-header .nav-links,
  body.pwa-has-app-nav .site-header .nav-cta,
  body.pwa-has-app-nav .site-header .home-phone,
  body.pwa-has-app-nav .site-header .menu-btn {
    display: none !important;
  }

  body.pwa-has-app-nav .site-header .nav {
    height: 64px;
  }

  body.pwa-has-app-nav .site-header .brand {
    width: 145px;
    height: 42px;
  }

  body.pwa-has-app-nav .site-header .brand img,
  body.home.pwa-has-app-nav .site-header .brand img {
    width: 100%;
    height: 40px;
    object-fit: contain;
    object-position: left center;
    transform: none;
  }

  body.pwa-has-app-nav .site-header .nav-account {
    margin-left: auto;
  }

  body.home.pwa-has-app-nav .showroom {
    padding-top: calc(64px + env(safe-area-inset-top));
  }
}

@media (prefers-reduced-motion: reduce) {
  .pwa-install-sheet {
    scroll-behavior: auto;
  }

  .pwa-app-nav a,
  .pwa-page-enter body.pwa-has-app-nav main,
  .pwa-direct-install,
  .pwa-install-entry-button,
  html.pwa-route-loading::after,
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
    transition: none !important;
  }
}
