:root {
  color-scheme: dark;
  --bg: #07090c;
  --panel: #11151b;
  --panel-2: #171c22;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f7fb;
  --muted: #a5adb8;
  --soft: #d6dbe3;
  --red: #e31925;
  --red-dark: #9e1019;
  --green: #39d98a;
  --teal: #47d9d0;
  --amber: #f3b14b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
}

.app {
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(7, 9, 12, 0.42), #07090c 52%),
    url("/assets/detailing-bay.png") top center / 100% auto no-repeat,
    var(--bg);
}

.boot {
  display: grid;
  min-height: 100vh;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--muted);
}

.boot-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0;
}

.screen {
  min-height: 100vh;
  padding: 22px 16px 96px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}

.brand {
  display: grid;
  gap: 3px;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-subtitle,
.eyebrow,
.muted {
  color: var(--muted);
}

.brand-subtitle {
  font-size: 12px;
}

.pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 21, 27, 0.78);
  color: var(--soft);
  padding: 0 12px;
  font-size: 13px;
  white-space: nowrap;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(57, 217, 138, 0.75);
}

.hero {
  display: grid;
  gap: 16px;
  padding: 48px 0 18px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 9ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  line-height: 0.96;
  font-weight: 700;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.02;
  font-weight: 700;
}

h3 {
  font-size: 17px;
  line-height: 1.25;
}

.hero-copy {
  max-width: 28ch;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.45;
}

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

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

.panel,
.booking-card,
.field-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 21, 27, 0.84);
  backdrop-filter: blur(10px);
}

.panel {
  padding: 16px;
}

.metric {
  display: grid;
  gap: 8px;
  min-height: 98px;
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.metric-value {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1;
}

.metric-sub {
  color: var(--muted);
  font-size: 13px;
}

.section {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

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

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  padding: 0 16px;
  text-decoration: none;
  font-weight: 800;
}

.btn.primary {
  border-color: rgba(227, 25, 37, 0.55);
  background: linear-gradient(180deg, var(--red), var(--red-dark));
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.btn.full {
  width: 100%;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

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

.choice,
.slot,
.day-chip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 21, 27, 0.84);
  color: var(--text);
  text-align: left;
}

.choice {
  min-height: 78px;
  padding: 13px;
}

.choice strong,
.slot strong {
  display: block;
  font-size: 16px;
}

.choice span,
.slot span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.choice.active,
.slot.active,
.day-chip.active {
  border-color: rgba(227, 25, 37, 0.7);
  background: var(--red);
  color: #fff;
}

.choice.active span,
.slot.active span {
  color: rgba(255, 255, 255, 0.82);
}

.days {
  display: flex;
  gap: 8px;
  margin: 0 -16px;
  padding: 0 16px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.days::-webkit-scrollbar {
  display: none;
}

.day-chip {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 14px;
  white-space: nowrap;
}

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

.slot {
  min-height: 66px;
  padding: 10px;
  text-align: center;
}

.slot:disabled {
  opacity: 0.42;
}

.summary {
  display: grid;
  gap: 10px;
  border-left: 3px solid var(--red);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--soft);
}

.summary-row strong {
  color: var(--text);
}

.notice {
  border: 1px solid rgba(71, 217, 208, 0.36);
  border-radius: 8px;
  background: rgba(71, 217, 208, 0.1);
  color: #d8fffb;
  padding: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.notice.error {
  border-color: rgba(227, 25, 37, 0.45);
  background: rgba(227, 25, 37, 0.1);
  color: #ffd9dc;
}

.field-card {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.field-card label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.field-card input {
  width: 100%;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 12px;
}

.field-card select,
.field-card textarea,
.date-input {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 12px;
}

.field-card select,
.date-input {
  min-height: 44px;
}

.field-card textarea {
  min-height: 88px;
  padding-top: 12px;
  resize: vertical;
}

.field-card input:focus,
.field-card select:focus,
.field-card textarea:focus,
.date-input:focus {
  border-color: rgba(71, 217, 208, 0.6);
  outline: none;
}

.date-input {
  max-width: 160px;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), #3467ff);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.booking-card {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.booking-card .title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
}

.booking-card.inactive {
  opacity: 0.58;
}

.tag,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.tag {
  border: 1px solid rgba(71, 217, 208, 0.36);
  color: #d8fffb;
}

.status.canceled {
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted);
}

.note {
  border-left: 2px solid rgba(71, 217, 208, 0.42);
  padding-left: 8px;
}

.small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.contact-map {
  min-height: 190px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(7, 9, 12, 0.2), rgba(7, 9, 12, 0.82)),
    url("/assets/detailing-bay.png") center / cover;
}

.contact-map-frame {
  width: 100%;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.contact-map-frame iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  min-height: 260px;
  border: 0;
}

.nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  max-width: 480px;
  margin: 0 auto;
  padding: 8px 10px max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(7, 9, 12, 0.94);
  backdrop-filter: blur(16px);
}

.nav-inner {
  display: grid;
  grid-template-columns: repeat(var(--nav-count, 5), minmax(0, 1fr));
  gap: 4px;
}

.nav-btn {
  display: grid;
  min-height: 54px;
  place-items: center;
  gap: 3px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.nav-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
}

.nav-btn.active {
  color: var(--text);
  background: rgba(227, 25, 37, 0.14);
}

.nav-btn.active .nav-icon {
  color: var(--red);
}

@media (max-width: 360px) {
  .screen {
    padding-right: 12px;
    padding-left: 12px;
  }

  h1 {
    font-size: 40px;
  }

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