html {
  background: #07111f;
}

body {
  background: linear-gradient(180deg, #07111f 0%, #0d1727 100%);
  color: #e2e8f0;
}

body.cabhero-app-shell {
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
}

body.cabhero-app-shell .page-shell {
  position: relative;
  min-height: 100vh;
}

body.cabhero-app-shell .native-top-safe {
  padding-top: max(12px, env(safe-area-inset-top));
}

body.cabhero-app-shell .native-bottom-safe {
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}

body.cabhero-installed .cabhero-app-shell {
  background: #07111f;
}

.cabhero-splash {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: radial-gradient(circle at top, #18304a 0%, #07111f 42%, #040b14 100%);
  color: #f8fafc;
  text-align: center;
  transition: opacity 260ms ease;
}

.cabhero-splash.visible {
  display: flex;
}

.cabhero-splash__logo {
  width: 110px;
  height: 110px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(148,163,184,0.26);
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.28);
  backdrop-filter: blur(10px);
}

.cabhero-splash__logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.cabhero-splash__title {
  margin-top: 18px;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  letter-spacing: -0.06em;
  font-weight: 800;
}

.cabhero-splash__subtitle {
  margin-top: 8px;
  color: rgba(226, 232, 240, 0.74);
  font-size: 0.96rem;
}

.cabhero-install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 2147483646;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.38);
  border: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(12px);
}

.cabhero-install-banner.visible {
  display: flex;
}

.cabhero-install-banner__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.cabhero-install-banner__eyebrow {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
  font-weight: 700;
}

.cabhero-install-banner__title {
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cabhero-install-banner__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cabhero-install-banner button {
  appearance: none;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
}

.cabhero-install-banner__install {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
  min-width: 92px;
}

.cabhero-install-banner__dismiss {
  background: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  line-height: 1;
}

@media (min-width: 768px) {
  .cabhero-install-banner {
    left: auto;
    right: 28px;
    width: min(420px, calc(100vw - 56px));
  }
}
