* {
  box-sizing: border-box;
}

:root {
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-solid: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --border: rgba(255,255,255,0.55);
  --blue: #0071e3;
  --blue-dark: #005bb5;
  --purple: #8e5cff;
  --pink: #ff2d55;
  --orange: #ff9500;
  --green: #34c759;
  --red: #ff3b30;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.14);
  --shadow-soft: 0 16px 45px rgba(0, 0, 0, 0.09);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 24px;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 4%, rgba(0, 113, 227, 0.22), transparent 30rem),
    radial-gradient(circle at 92% 6%, rgba(255, 45, 85, 0.20), transparent 28rem),
    radial-gradient(circle at 52% 0%, rgba(255, 149, 0, 0.16), transparent 34rem),
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 45%, #ffffff 100%);
  letter-spacing: -0.015em;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: auto;
}

.message-box {
  position: sticky;
  top: 16px;
  z-index: 200;
  padding: 16px 18px;
  border-radius: 22px;
  margin-bottom: 18px;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
}

.message-box.success {
  background: rgba(52, 199, 89, 0.14);
  color: #1f7a3a;
  border: 1px solid rgba(52, 199, 89, 0.25);
}

.message-box.error {
  background: rgba(255, 59, 48, 0.14);
  color: #b42318;
  border: 1px solid rgba(255, 59, 48, 0.25);
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: center;
  min-height: 560px;
  padding: clamp(34px, 7vw, 82px);
  border-radius: 48px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.86), rgba(255,255,255,0.50)),
    radial-gradient(circle at 18% 18%, rgba(0,113,227,0.26), transparent 28rem),
    radial-gradient(circle at 78% 18%, rgba(255,45,85,0.22), transparent 25rem),
    radial-gradient(circle at 48% 82%, rgba(255,149,0,0.24), transparent 28rem);
  border: 1px solid rgba(255,255,255,0.75);
  backdrop-filter: blur(28px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.28) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 70%);
  opacity: 0.45;
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.72;
  animation: floaty 8s ease-in-out infinite;
}

.hero-orb-blue {
  width: 190px;
  height: 190px;
  background: #0a84ff;
  top: 54px;
  right: 24%;
}

.hero-orb-pink {
  width: 240px;
  height: 240px;
  background: #ff2d55;
  right: -70px;
  bottom: 82px;
  animation-delay: 1.5s;
}

.hero-orb-orange {
  width: 160px;
  height: 160px;
  background: #ff9f0a;
  left: 42%;
  bottom: -34px;
  animation-delay: 3s;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.04); }
}

.hero-text,
.mechanic-card {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(29,29,31,0.78);
  font-weight: 800;
  margin: 0 0 18px;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 999px;
  padding: 10px 15px;
  backdrop-filter: blur(18px);
}

h1 {
  font-size: clamp(3.35rem, 8.8vw, 7.4rem);
  line-height: 0.88;
  margin: 0 0 22px;
  letter-spacing: -0.075em;
  font-weight: 850;
  color: var(--text);
}

.hero h1 {
  background: linear-gradient(90deg, #1d1d1f 0%, #0071e3 36%, #8e5cff 62%, #ff2d55 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  margin-top: 0;
  color: var(--text);
  letter-spacing: -0.045em;
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  line-height: 1.05;
}

h3 {
  color: var(--text);
  letter-spacing: -0.035em;
}

.hero-subtitle {
  max-width: 710px;
  font-size: clamp(1.22rem, 2.5vw, 1.65rem);
  line-height: 1.22;
  margin: 0 0 24px;
  color: rgba(29,29,31,0.68);
  font-weight: 620;
}

.quote {
  display: inline-block;
  background: rgba(29,29,31,0.92);
  color: white;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 800;
  margin: 8px 0 0;
  box-shadow: 0 18px 40px rgba(0,0,0,0.20);
}

.mechanic-card {
  background: rgba(255,255,255,0.38);
  border-radius: 38px;
  padding: 36px 26px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: 0 22px 58px rgba(0,0,0,0.12);
  backdrop-filter: blur(26px);
}

.floating-card {
  transform: rotate(1.5deg);
}

.mechanic-graphic {
  font-size: clamp(5rem, 11vw, 7rem);
  margin-bottom: 16px;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,0.14));
}

.mechanic-card h3 {
  margin: 0 0 8px;
  font-size: 1.75rem;
}

.mechanic-card p {
  color: rgba(29,29,31,0.67);
  line-height: 1.45;
  margin: 0;
  font-weight: 620;
}

/* Feature strip */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.feature-strip div {
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 28px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
}

.feature-strip strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 5px;
}

.feature-strip span {
  display: block;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.35;
}

/* Content layout */
.info-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.info-card,
.lookup-section,
.booking-section,
.form-card,
.admin-panel,
.admin-header {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 38px;
  padding: clamp(24px, 3.3vw, 38px);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px);
}

.info-card:nth-child(1) {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(245,245,247,0.74)),
    radial-gradient(circle at 15% 20%, rgba(0,113,227,0.16), transparent 18rem);
}

.info-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(245,245,247,0.74)),
    radial-gradient(circle at 85% 20%, rgba(255,149,0,0.18), transparent 18rem);
}

.steps-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: steps;
}

.steps-list li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}

.steps-list li::before {
  content: counter(steps);
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0071e3, #8e5cff);
  color: white;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(0,113,227,0.20);
}

.steps-list strong {
  grid-column: 2;
  grid-row: 1;
  display: block;
  color: var(--text);
  margin-bottom: 3px;
  font-size: 1.03rem;
}

.steps-list span {
  grid-column: 2;
  grid-row: 2;
  display: block;
  color: rgba(29,29,31,0.62);
  line-height: 1.45;
  font-weight: 550;
}

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

.service-tags span {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 999px;
  padding: 11px 15px;
  font-weight: 750;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.small-note,
.section-header p,
.admin-header p {
  color: rgba(29,29,31,0.62);
  line-height: 1.5;
  font-weight: 570;
}

.lookup-section {
  margin-bottom: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(245,245,247,0.76)),
    radial-gradient(circle at 0% 0%, rgba(52,199,89,0.13), transparent 20rem);
}

.booking-section {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(245,245,247,0.76)),
    radial-gradient(circle at 100% 0%, rgba(0,113,227,0.13), transparent 24rem);
}

/* Calendar and cards */
#calendar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.date-card,
.request,
.appointment-card,
.slot-row {
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: 0 14px 38px rgba(0,0,0,0.06);
  backdrop-filter: blur(16px);
}

.date-card {
  padding: 22px;
  border-radius: 28px;
}

.date-card h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.08rem;
}

.times-container {
  display: grid;
  gap: 10px;
}

.time-button {
  background: linear-gradient(135deg, #0071e3, #0a84ff);
  color: white;
  padding: 14px;
  margin: 0;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 800;
  transition: 0.18s ease;
}

.time-button:hover,
.selected-time {
  background: linear-gradient(135deg, #34c759, #30d158);
  transform: translateY(-2px);
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

input,
textarea,
select,
button {
  width: 100%;
  padding: 15px 16px;
  margin: 8px 0;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.10);
  font-size: 1rem;
  font-family: inherit;
}

input,
textarea,
select {
  background: rgba(255,255,255,0.74);
  color: var(--text);
  transition: 0.18s ease;
  backdrop-filter: blur(14px);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  background: white;
  border-color: #0071e3;
  box-shadow: 0 0 0 5px rgba(0,113,227,0.13);
}

textarea {
  min-height: 104px;
  resize: vertical;
}

button,
.calendar-button {
  background: linear-gradient(135deg, #0071e3, #0a84ff);
  color: white;
  cursor: pointer;
  border: none;
  font-weight: 800;
  transition: 0.18s ease;
  box-shadow: none;
}

button:hover,
.calendar-button:hover {
  transform: translateY(-1px);
  filter: brightness(0.95);
}

.hidden {
  display: none;
}

/* Admin */
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.admin-header {
  margin-bottom: 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(245,245,247,0.76)),
    radial-gradient(circle at 12% 10%, rgba(142,92,255,0.16), transparent 24rem);
}

.request {
  padding: 18px;
  margin-bottom: 16px;
  border-radius: 28px;
}

.request h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.request p {
  margin: 8px 0;
  color: rgba(29,29,31,0.72);
  line-height: 1.45;
}

.empty-message {
  color: var(--muted);
  background: rgba(255,255,255,0.62);
  border: 1px dashed rgba(0,0,0,0.16);
  border-radius: 20px;
  padding: 16px;
}

.spacing-top {
  margin-top: 28px;
}

.slot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-radius: 22px;
  padding: 14px;
  margin-bottom: 10px;
}

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

.small-button,
.small-save-button {
  width: auto;
  padding: 10px 14px;
  margin: 0;
  white-space: nowrap;
}

.small-save-button {
  background: linear-gradient(135deg, #34c759, #30d158);
}

.danger-button {
  background: linear-gradient(135deg, #ff3b30, #ff453a);
}

.logout-button {
  margin-top: 18px;
  background: #1d1d1f;
}

.admin-note-label {
  display: block;
  font-weight: 800;
  margin-top: 14px;
  margin-bottom: 4px;
}

.admin-note-box {
  min-height: 78px;
}

/* Lookup */
.lookup-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.lookup-box input {
  margin: 0;
}

.lookup-box button {
  width: auto;
  margin: 0;
  white-space: nowrap;
}

.appointment-card {
  border-radius: 28px;
  padding: 20px;
  margin-top: 18px;
}

.error-card {
  background: rgba(255, 59, 48, 0.12);
  border-color: rgba(255, 59, 48, 0.24);
}

.countdown-box {
  background: rgba(52, 199, 89, 0.14);
  color: #1f7a3a;
  border: 1px solid rgba(52, 199, 89, 0.24);
  border-radius: 20px;
  padding: 13px 14px;
  margin: 12px 0 16px;
  font-weight: 800;
}

.calendar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.calendar-button {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 14px;
  border-radius: 999px;
}

.apple-button {
  background: #1d1d1f;
}

/* Address autocomplete */
.address-wrapper {
  position: relative;
}

.address-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  z-index: 50;
  backdrop-filter: blur(20px);
}

.address-suggestion {
  padding: 13px 15px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.35;
}

.address-suggestion:hover {
  background: rgba(0,113,227,0.08);
}

.address-suggestion.muted {
  color: var(--muted);
  cursor: default;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.36);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  backdrop-filter: blur(22px);
}

.modal.hidden {
  display: none !important;
}

.modal-card {
  width: 100%;
  max-width: 540px;
  max-height: 85vh;
  overflow-y: auto;
  background: rgba(255,255,255,0.86);
  border-radius: 36px;
  padding: 30px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.76);
  backdrop-filter: blur(26px);
}

.reschedule-choice {
  background: rgba(255,255,255,0.74);
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.10);
  text-align: left;
}

.reschedule-choice:hover {
  background: rgba(0,113,227,0.08);
}

/* Status badges + copy buttons */
.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1;
}

.status-pending {
  background: rgba(255, 204, 0, 0.18);
  color: #8a6500;
  border: 1px solid rgba(255, 204, 0, 0.28);
}

.status-accepted {
  background: rgba(52, 199, 89, 0.15);
  color: #1f7a3a;
  border: 1px solid rgba(52, 199, 89, 0.26);
}

.status-finished {
  background: rgba(0, 113, 227, 0.14);
  color: #005bb5;
  border: 1px solid rgba(0, 113, 227, 0.25);
}

.status-declined {
  background: rgba(255, 59, 48, 0.13);
  color: #b42318;
  border: 1px solid rgba(255, 59, 48, 0.24);
}

.today-booking {
  border: 2px solid #0071e3;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.66)),
    radial-gradient(circle at top right, rgba(0,113,227,0.13), transparent 15rem);
}

.today-label {
  display: inline-flex;
  align-items: center;
  background: #0071e3;
  color: white;
  border-radius: 999px;
  padding: 7px 11px;
  font-weight: 850;
  margin: 6px 0 10px;
}

.temp-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  padding: 10px 12px;
  margin: 10px 0;
}

.temp-code-row p {
  margin: 0;
}

.temp-code-text {
  font-family: "SF Mono", Consolas, monospace;
  font-size: 1.05rem;
  letter-spacing: 1px;
  font-weight: 850;
}

.copy-button {
  width: auto;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  white-space: nowrap;
  background: #1d1d1f;
}

/* Mobile */
@media (max-width: 940px) {
  body {
    padding: 14px;
  }

  .hero,
  .info-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .feature-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  #calendar {
    grid-template-columns: 1fr;
  }

  .mechanic-card {
    min-height: 230px;
  }
}

@media (max-width: 700px) {
  .lookup-box,
  .calendar-actions,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .lookup-box button {
    width: 100%;
  }

  .slot-row,
  .temp-code-row {
    align-items: stretch;
    flex-direction: column;
  }

  .small-button,
  .small-save-button,
  .copy-button {
    width: 100%;
  }
}

@media (max-width: 500px) {
  body {
    padding: 10px;
  }

  .hero {
    border-radius: 34px;
    padding: 28px 20px;
  }

  h1 {
    font-size: 3.35rem;
    letter-spacing: -0.065em;
  }

  .hero-subtitle {
    font-size: 1.12rem;
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .info-card,
  .lookup-section,
  .booking-section,
  .form-card,
  .admin-panel,
  .admin-header {
    border-radius: 30px;
    padding: 22px;
  }

  .service-tags span {
    width: 100%;
    border-radius: 18px;
  }

  .steps-list li {
    grid-template-columns: 38px minmax(0, 1fr);
  }
}


/* More GFX + less boxy layout */
body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 4%, rgba(0, 113, 227, 0.24), transparent 30rem),
    radial-gradient(circle at 92% 6%, rgba(255, 45, 85, 0.22), transparent 28rem),
    radial-gradient(circle at 52% 0%, rgba(255, 149, 0, 0.18), transparent 34rem),
    radial-gradient(circle at 8% 42%, rgba(142, 92, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 94% 58%, rgba(52, 199, 89, 0.15), transparent 26rem),
    radial-gradient(circle at 42% 88%, rgba(10, 132, 255, 0.15), transparent 30rem),
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 42%, #fff8f0 68%, #f5f7ff 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 999px;
  filter: blur(26px);
  opacity: 0.55;
}

body::before {
  width: 420px;
  height: 420px;
  background: conic-gradient(from 160deg, #0071e3, #8e5cff, #ff2d55, #ff9500, #0071e3);
  left: -220px;
  top: 38%;
}

body::after {
  width: 380px;
  height: 380px;
  background: conic-gradient(from 40deg, #34c759, #0a84ff, #8e5cff, #ff9500, #34c759);
  right: -210px;
  top: 68%;
}

.container {
  position: relative;
}

.container::before {
  content: "";
  position: absolute;
  inset: 620px auto auto -90px;
  width: 180px;
  height: 520px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0,113,227,0.22), rgba(142,92,255,0.05));
  transform: rotate(24deg);
  filter: blur(8px);
  pointer-events: none;
  z-index: -1;
}

.container::after {
  content: "";
  position: absolute;
  inset: 980px -120px auto auto;
  width: 210px;
  height: 600px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,45,85,0.18), rgba(255,149,0,0.06));
  transform: rotate(-28deg);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}

/* Make sections feel less like boxes */
.info-card,
.lookup-section,
.booking-section,
.form-card,
.admin-panel,
.admin-header {
  border-radius: 46px;
  position: relative;
  overflow: hidden;
}

.info-card::after,
.lookup-section::after,
.booking-section::after,
.admin-panel::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -90px;
  top: -100px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0,113,227,0.14), transparent 68%);
  pointer-events: none;
}

.info-card:nth-child(2)::after,
.booking-section::after {
  background: radial-gradient(circle, rgba(255,149,0,0.16), transparent 68%);
}

.lookup-section::after {
  background: radial-gradient(circle, rgba(52,199,89,0.16), transparent 68%);
}

/* Break the straight grid feeling */
.info-grid {
  align-items: stretch;
}

.info-card:nth-child(1) {
  transform: translateY(10px);
}

.info-card:nth-child(2) {
  transform: translateY(-6px);
}

.lookup-section {
  transform: rotate(-0.35deg);
}

.lookup-section > * {
  transform: rotate(0.35deg);
}

.booking-section {
  transform: rotate(0.25deg);
}

.booking-section > * {
  transform: rotate(-0.25deg);
}

/* Softer card shapes */
.date-card,
.request,
.appointment-card,
.slot-row {
  border-radius: 34px;
}

.date-card:nth-child(odd) {
  transform: translateY(6px);
}

.date-card:nth-child(even) {
  transform: translateY(-4px);
}

/* Add subtle shine layer */
.hero,
.info-card,
.lookup-section,
.booking-section,
.admin-panel,
.admin-header,
.mechanic-card,
.feature-strip div {
  isolation: isolate;
}

.hero::after,
.info-card::before,
.lookup-section::before,
.booking-section::before,
.admin-panel::before,
.admin-header::before,
.mechanic-card::before,
.feature-strip div::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.45), transparent 38%, rgba(255,255,255,0.18));
  pointer-events: none;
  z-index: -1;
}

/* Hero extra color depth */
.colorful-hero {
  margin-bottom: 28px;
}

.hero-orb-blue {
  box-shadow: 0 0 80px rgba(10, 132, 255, 0.55);
}

.hero-orb-pink {
  box-shadow: 0 0 85px rgba(255, 45, 85, 0.50);
}

.hero-orb-orange {
  box-shadow: 0 0 70px rgba(255, 149, 0, 0.48);
}

/* Make feature strip more graphic */
.feature-strip {
  position: relative;
}

.feature-strip div {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
}

.feature-strip div:nth-child(1) {
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(232,244,255,0.72));
}

.feature-strip div:nth-child(2) {
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,232,238,0.72));
}

.feature-strip div:nth-child(3) {
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(244,236,255,0.72));
}

.feature-strip div:nth-child(4) {
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(231,250,237,0.72));
}

.feature-strip div::after {
  content: "";
  position: absolute;
  width: 86px;
  height: 86px;
  right: -28px;
  bottom: -34px;
  border-radius: 999px;
  background: rgba(0,113,227,0.12);
}

.feature-strip div:nth-child(2)::after {
  background: rgba(255,45,85,0.12);
}

.feature-strip div:nth-child(3)::after {
  background: rgba(142,92,255,0.13);
}

.feature-strip div:nth-child(4)::after {
  background: rgba(52,199,89,0.13);
}

/* Buttons feel more pill/Apple-like */
button,
.calendar-button,
.time-button {
  border-radius: 999px;
}

/* Mobile: remove rotation so it stays clean */
@media (max-width: 940px) {
  .info-card:nth-child(1),
  .info-card:nth-child(2),
  .lookup-section,
  .booking-section,
  .lookup-section > *,
  .booking-section > *,
  .date-card:nth-child(odd),
  .date-card:nth-child(even) {
    transform: none;
  }

  body::before,
  body::after {
    opacity: 0.35;
  }
}

@media (max-width: 500px) {
  .info-card,
  .lookup-section,
  .booking-section,
  .form-card,
  .admin-panel,
  .admin-header {
    border-radius: 34px;
  }

  .date-card,
  .request,
  .appointment-card,
  .slot-row {
    border-radius: 26px;
  }
}


/* Animation layer */
.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.feature-strip.reveal.is-visible div,
.info-grid.reveal.is-visible .info-card,
.admin-grid.reveal.is-visible .admin-panel {
  animation: cascadeIn 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.feature-strip.reveal.is-visible div:nth-child(2),
.info-grid.reveal.is-visible .info-card:nth-child(2),
.admin-grid.reveal.is-visible .admin-panel:nth-child(2) {
  animation-delay: 0.08s;
}

.feature-strip.reveal.is-visible div:nth-child(3) {
  animation-delay: 0.16s;
}

.feature-strip.reveal.is-visible div:nth-child(4) {
  animation-delay: 0.24s;
}

@keyframes cascadeIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Floating GFX */
.hero-orb {
  animation: floaty 8s ease-in-out infinite, hueDrift 12s ease-in-out infinite;
}

body::before {
  animation: slowSpin 18s linear infinite;
}

body::after {
  animation: slowSpin 22s linear infinite reverse;
}

@keyframes slowSpin {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(360deg) scale(1.04);
  }
}

@keyframes hueDrift {
  0%, 100% {
    filter: blur(12px) hue-rotate(0deg);
  }
  50% {
    filter: blur(16px) hue-rotate(22deg);
  }
}

/* Card hover effects */
.date-card,
.info-card,
.feature-strip div,
.request,
.appointment-card,
.slot-row,
.mechanic-card,
.admin-panel,
.lookup-section,
.booking-section {
  transition:
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.22s ease;
}

.date-card:hover,
.info-card:hover,
.feature-strip div:hover,
.request:hover,
.appointment-card:hover,
.slot-row:hover,
.mechanic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.13);
}

/* Preserve intentional desktop rotations while still hovering nicely */
.lookup-section:hover {
  box-shadow: 0 24px 70px rgba(0,0,0,0.13);
}

.booking-section:hover {
  box-shadow: 0 24px 70px rgba(0,0,0,0.13);
}

/* Button press and shine */
button,
.calendar-button,
.time-button {
  position: relative;
  overflow: hidden;
}

button::after,
.calendar-button::after,
.time-button::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-130%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.34), transparent);
  transition: transform 0.55s ease;
}

button:hover::after,
.calendar-button:hover::after,
.time-button:hover::after {
  transform: translateX(130%) skewX(-18deg);
}

button:active,
.calendar-button:active,
.time-button:active {
  transform: scale(0.975);
}

/* Loading animation */
.is-loading {
  pointer-events: none;
  opacity: 0.78;
}

.is-loading::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 8px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.45);
  border-top-color: white;
  animation: spin 0.8s linear infinite;
  vertical-align: -2px;
}

.searching::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 999px;
  border: 2px solid rgba(0,113,227,0.25);
  border-top-color: #0071e3;
  animation: spin 0.8s linear infinite;
  vertical-align: -2px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Appointment lookup reveal */
.result-animate {
  animation: resultPop 0.52s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes resultPop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Status badge pop */
.status-badge {
  animation: badgePop 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes badgePop {
  0% {
    transform: scale(0.72);
    opacity: 0;
  }
  70% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

/* Today pulse */
.today-label {
  animation: todayPulse 1.8s ease-in-out infinite;
}

@keyframes todayPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0,113,227,0.28);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(0,113,227,0);
  }
}

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

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

@media (max-width: 940px) {
  .date-card:hover,
  .info-card:hover,
  .feature-strip div:hover,
  .request:hover,
  .appointment-card:hover,
  .slot-row:hover,
  .mechanic-card:hover {
    transform: none;
  }
}


/* Basic admin stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 14px 38px rgba(0,0,0,0.06);
  backdrop-filter: blur(16px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.13);
}

.stat-card::after {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  right: -36px;
  bottom: -42px;
  border-radius: 999px;
  background: rgba(0,113,227,0.11);
}

.stat-card:nth-child(2)::after { background: rgba(255,204,0,0.15); }
.stat-card:nth-child(3)::after { background: rgba(52,199,89,0.14); }
.stat-card:nth-child(4)::after { background: rgba(142,92,255,0.14); }
.stat-card:nth-child(5)::after { background: rgba(10,132,255,0.13); }
.stat-card:nth-child(6)::after { background: rgba(255,149,0,0.14); }

.stat-icon {
  display: inline-flex;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.stat-card p {
  margin: 0 0 6px;
  color: rgba(29,29,31,0.62);
  font-weight: 700;
  font-size: 0.88rem;
}

.stat-card h3 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

@media (max-width: 1050px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 620px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card { border-radius: 22px; padding: 16px; }
  .stat-card h3 { font-size: 1.7rem; }
}


/* Fix Quick Car Help sharp gray corners */
.mechanic-card {
  overflow: hidden;
  border-radius: 38px;
}

.mechanic-card::before,
.mechanic-card::after {
  border-radius: inherit;
}

.floating-card {
  overflow: hidden;
}

@media (max-width: 500px) {
  .mechanic-card {
    border-radius: 30px;
  }
}
