:root {
  --navy: #003366;
  --navy-2: #0b4277;
  --blue: #2f83d7;
  --yellow: #eef007;
  --purple: #783194;
  --ink: #172033;
  --muted: #69768a;
  --line: #d9e1ec;
  --page: #eef3f8;
  --surface: #ffffff;
  --shadow: 0 16px 40px rgba(19, 41, 75, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #dfeafa, #eef3f8 42%, #d4dde9);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

button,
select,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-frame {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--page);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 24px 70px rgba(2, 23, 45, 0.28);
}

.app {
  height: 100vh;
  overflow: auto;
  padding: 78px 16px 98px;
  scroll-behavior: smooth;
}

.app-header {
  position: absolute;
  inset: 0 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  background: var(--navy);
  z-index: 10;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 72px;
  height: auto;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.icon-button,
.close-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.icon-button svg {
  width: 23px;
  height: 23px;
}

.privacy-home {
  text-decoration: none;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.screen {
  display: none;
  animation: fadeUp 220ms ease both;
}

.screen.active {
  display: block;
}

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

.hero-panel {
  position: relative;
  min-height: 245px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--navy);
}

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

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 23, 52, 0.12), rgba(0, 18, 44, 0.76));
}

.hero-content {
  position: absolute;
  inset: auto 18px 18px;
  color: #fff;
  z-index: 1;
}

.hello,
.eyebrow,
.subtle,
.hint {
  margin: 0;
  font-size: 0.83rem;
  font-weight: 700;
}

.hello {
  color: var(--yellow);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-content h1 {
  margin: 8px 0 16px;
  max-width: 330px;
  font-size: 1.95rem;
  line-height: 1.05;
  color: #fff;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.promo-card {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 10px;
  color: var(--navy);
  background: linear-gradient(135deg, var(--yellow), #fff7a5);
  box-shadow: 0 8px 24px rgba(19, 41, 75, 0.1);
}

.promo-card strong,
.promo-card span {
  display: block;
}

.promo-card strong {
  margin-bottom: 3px;
  font-size: 1.05rem;
}

.promo-card span {
  color: #34415a;
  font-weight: 700;
  line-height: 1.35;
}

.primary-action {
  border: 0;
  min-height: 48px;
  border-radius: 8px;
  padding: 0 20px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(47, 131, 215, 0.28);
}

.secondary-hero-action {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
  cursor: pointer;
}

.membership-primary {
  color: var(--navy);
  background: var(--yellow);
  box-shadow: 0 10px 22px rgba(238, 240, 7, 0.28);
}

.find-wash-action {
  background: rgba(0, 51, 102, 0.6);
}

.primary-action.full {
  width: 100%;
}

.flow-card,
.account-card,
.member-card,
.section-block,
.plate-note,
.plan-card,
.location-card,
.gift-option,
.settings-list {
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(19, 41, 75, 0.08);
}

.flow-card {
  margin: 16px 0;
  padding: 16px;
  border-left: 5px solid var(--purple);
}

.eyebrow {
  color: var(--purple);
  text-transform: uppercase;
}

.flow-card h2,
.section-block h2,
.member-card h2,
.screen-title h1 {
  margin-bottom: 5px;
}

.muted,
.screen-title p,
.member-card p,
.location-mini p,
.location-card p,
.plan-card p,
.account-card p {
  color: var(--muted);
  line-height: 1.45;
}

.flow-steps {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

.flow-steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.flow-steps li > span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.flow-steps strong {
  display: block;
  margin-bottom: 2px;
  color: var(--navy);
}

.flow-steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.quick-tile {
  border: 0;
  border-radius: 10px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 15px;
  color: #fff;
  background: var(--navy);
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.quick-tile:nth-child(2) {
  background: var(--blue);
}

.quick-tile svg {
  width: 27px;
  height: 27px;
}

.member-card {
  display: grid;
  grid-template-columns: 1fr 108px;
  gap: 12px;
  align-items: center;
  padding: 16px;
  margin: 16px 0;
  margin-bottom: 16px;
}

.member-card img {
  width: 108px;
  height: 86px;
  object-fit: cover;
  border-radius: 8px;
}

.text-button.inline {
  padding: 0;
  margin-top: 8px;
}

.section-block {
  padding: 16px;
  margin-bottom: 16px;
}

.policy-block {
  text-align: left;
}

.policy-block h2 {
  margin: 18px 0 6px;
  color: var(--navy);
  font-size: 1.1rem;
}

.policy-block a {
  color: var(--blue);
  font-weight: 800;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

.location-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.location-mini h3,
.location-mini p {
  margin-bottom: 3px;
}

.location-mini a,
.location-card a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.activity-list {
  display: grid;
  gap: 10px;
}

.activity-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.screen-title {
  padding: 4px 2px 14px;
}

.screen-title h1 {
  font-size: 1.9rem;
}

.plan-stack,
.location-list,
.gift-options {
  display: grid;
  gap: 14px;
}

.plan-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  color: #fff;
  background: var(--navy);
}

.plan-card.ultimate {
  background: linear-gradient(135deg, #4c1f60, #81379e 58%, #a65bc3);
}

.plan-card.supreme {
  background: linear-gradient(135deg, #0f7a34, #28a852);
}

.plan-card.super {
  background: linear-gradient(135deg, #064b8f, #1268b3);
}

.plan-card.express {
  background: linear-gradient(135deg, #5f6b7a, #8794a5);
}

.plan-card.basic {
  background: linear-gradient(135deg, #c47a28, #e5a85a);
}

.plan-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.plan-card h2,
.plan-card p {
  color: inherit;
}

.plan-card ul {
  padding-left: 18px;
  margin: 0 0 16px;
  line-height: 1.55;
}

.plan-card a,
.settings-list button,
.gift-option {
  cursor: pointer;
}

.secondary-action {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
  text-decoration: none;
}

.filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.filter {
  flex: 1;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: #fff;
  font-weight: 800;
}

.filter.active {
  border-color: var(--navy);
  color: #fff;
  background: var(--navy);
}

.location-card {
  overflow: hidden;
}

.location-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.location-card-content {
  padding: 16px;
}

.location-card h2 {
  margin-bottom: 4px;
}

.access-note {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.tag {
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef7ff;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
}

.gift-hero {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 14px;
  display: block;
  box-shadow: var(--shadow);
}

.gift-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  padding: 14px 16px;
  border: 2px solid transparent;
  text-align: left;
}

.gift-option.active {
  border-color: var(--blue);
}

.gift-option strong,
.gift-option span {
  display: block;
}

.hint {
  margin: 12px 0 0;
  color: var(--muted);
  text-align: center;
}

.account-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  margin-bottom: 16px;
}

.plate-note {
  margin: 0 0 16px;
  padding: 16px;
  border-left: 5px solid var(--blue);
}

.plate-note strong {
  display: block;
  margin-bottom: 5px;
  color: var(--navy);
}

.plate-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  font-weight: 900;
}

.settings-list {
  overflow: hidden;
}

.settings-list a,
.settings-list button {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  text-align: left;
  text-decoration: none;
  font-weight: 800;
}

.settings-list span {
  color: var(--muted);
  font-size: 0.86rem;
}

.bottom-nav {
  position: absolute;
  inset: auto 0 0;
  height: 76px;
  padding: 7px 8px max(7px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  background: #fff;
  border-top: 1px solid var(--line);
  z-index: 10;
}

.nav-item {
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  display: grid;
  place-items: center;
  gap: 2px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.nav-item svg {
  width: 21px;
  height: 21px;
}

.nav-item.active {
  color: var(--navy);
  background: #eef7ff;
}

.wash-modal {
  width: min(92vw, 360px);
  border: 0;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.wash-modal::backdrop {
  background: rgba(0, 22, 48, 0.58);
}

.wash-modal form {
  padding: 20px;
  text-align: center;
}

.close-button {
  margin-left: auto;
  color: var(--navy);
  background: #eef3f8;
}

.plate-visual {
  width: 190px;
  height: 128px;
  margin: 18px auto;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: linear-gradient(135deg, #eef7ff, #fff);
  border: 1px solid var(--line);
}

.plate-visual span {
  width: 52px;
  height: 52px;
  border: 5px solid var(--blue);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(45deg);
}

.plate-visual strong {
  margin-top: -18px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  translate: -50% 24px;
  min-width: 240px;
  padding: 13px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--navy);
  text-align: center;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, translate 180ms ease;
  z-index: 30;
}

.toast.show {
  opacity: 1;
  translate: -50% 0;
}

@media (min-width: 700px) {
  body {
    display: grid;
    place-items: center;
    padding: 28px;
  }

  .app-frame {
    min-height: 844px;
    max-height: 900px;
    border-radius: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


/* Accessibility: visible keyboard focus */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #ffdd33;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(0, 51, 102, 0.35);
}
