/*
 * Laundry Booking — brand-blue theme, matched to the SpinHub logo.
 * Logo blues (#479FF8 / #3675B8) on soft blue, glassy translucent panels,
 * pill buttons. Class contract is unchanged: every view keeps its existing
 * classes and inherits this look — no per-view custom styles.
 */

:root {
  --bg: #dceafe;
  --bg-2: #eaf3fe;
  --card: rgba(255, 255, 255, 0.55);
  --card-solid: rgba(255, 255, 255, 0.72);
  --ink: #16324f;
  --muted: #4b6a88;
  --brand: #479ff8;
  --brand-dark: #3675b8;
  --accent-pink: #a9d0fb;
  --accent-glow: #8fc2f7;
  --accent-yellow: #f5c451;
  --landing-navy: #232fa8;
  --ok: #16855b;
  --warn: #b06a00;
  --danger: #d1436a;
  --border: rgba(255, 255, 255, 0.7);
  --border-soft: rgba(22, 57, 95, 0.12);
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 18px 40px -24px rgba(22, 57, 95, 0.45);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Soft radial glow blobs behind everything */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
body::before {
  width: 640px; height: 640px;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  left: -220px; top: -220px;
  opacity: 0.55;
}
body::after {
  width: 560px; height: 560px;
  background: radial-gradient(circle, var(--accent-pink), transparent 65%);
  right: -180px; bottom: -160px;
  opacity: 0.45;
}

.container { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; position: relative; z-index: 5; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 46px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--brand); }
.nav a.btn { color: #ffffff; }
.nav a.btn:hover { color: #fff; }
.nav-user { color: var(--muted); font-size: 0.9rem; }

/* Header user menu (click the name -> Account / Log out) */
.user-menu { position: relative; display: inline-flex; }
.user-menu-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 8px; border: none; border-radius: 8px;
  background: none; color: var(--ink); font-family: inherit; font-weight: 500;
  cursor: pointer;
}
.user-menu-trigger:hover { background: rgba(22, 57, 95, 0.06); transform: none; }
.user-menu-trigger .nav-user { color: inherit; font-size: 0.95rem; }
.user-menu-caret { color: var(--muted); transition: transform 0.2s ease; }
.user-menu.open .user-menu-caret { transform: rotate(180deg); }
.user-menu-panel {
  display: none;
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 180px;
  flex-direction: column; align-items: stretch;
  padding: 6px;
  background: #ffffff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 28px rgba(22, 57, 95, 0.14);
  z-index: 1200;
}
.user-menu.open .user-menu-panel { display: flex; }
.user-menu-panel form { margin: 0; }
.user-menu-panel a,
.user-menu-panel .linkish {
  display: block; width: 100%; text-align: left;
  padding: 9px 12px; border-radius: 8px;
  font-size: 0.95rem; font-weight: 500; color: var(--ink);
}
.user-menu-panel a:hover { background: rgba(22, 57, 95, 0.06); color: var(--ink); }
.user-menu-panel .linkish:hover { background: rgba(214, 69, 69, 0.08); color: var(--danger); }

/* Hamburger toggle — hidden on desktop, shown on small screens */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: none; cursor: pointer;
  margin-left: auto;
}
.nav-toggle:hover { background: transparent; transform: none; }
.nav-toggle-bar {
  display: block; width: 24px; height: 2px; margin: 0 auto;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  /* Lift the header row (and its absolute dropdown) above the info banner */
  .header-inner { z-index: 3; }
  .nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    z-index: 3;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 16px 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(22, 57, 95, 0.08);
  }
  .nav-open .nav { display: flex; }
  .nav a, .nav .linkish, .nav .nav-user { padding: 10px 4px; font-size: 1rem; }
  .nav a.btn { text-align: center; padding: 12px; margin-top: 4px; }

  /* Inside the hamburger panel there's no room for a popover, so show the user
     menu inline: the name becomes a static label with Account / Log out below. */
  .user-menu { display: block; width: 100%; }
  .user-menu-trigger {
    width: 100%; justify-content: flex-start; cursor: default;
    padding: 12px 4px 8px; border-top: 1px solid var(--border); margin-top: 4px;
  }
  .user-menu-trigger:hover { background: none; }
  .user-menu-caret { display: none; }
  .user-menu-panel {
    display: flex; position: static; min-width: 0;
    padding: 0; border: none; border-radius: 0; box-shadow: none;
  }
  .user-menu-panel a, .user-menu-panel .linkish { padding: 10px 4px; font-size: 1rem; }
  .user-menu-panel a:hover, .user-menu-panel .linkish:hover { background: none; }
}

/* Layout */
main.container { padding-top: 32px; padding-bottom: 64px; }

/* Pickup-windows info banner, pinned directly under the header */
.header-banner { background: rgba(71, 159, 248, 0.10); }
.header-banner .container { padding-top: 8px; padding-bottom: 8px; }
.header-banner small { display: block; text-align: center; color: var(--muted); font-size: 0.82rem; }
/* Closure notice — amber, only rendered when the shop has upcoming closed dates. */
.header-banner-closure { background: rgba(245, 196, 81, 0.18); }
.header-banner-closure small { color: var(--warn); font-weight: 500; }

/* Cards — glassy translucent panels */
.card {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.card h1, .card h2 { margin-top: 0; letter-spacing: -0.02em; }

/* Hero */
.hero { text-align: center; padding: 44px 16px 24px; }
.hero h1 { font-size: 2.6rem; font-weight: 600; line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 14px; }
.hero p { color: var(--muted); max-width: 540px; margin: 0 auto 24px; font-size: 1.05rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-top: 32px; text-align: left; }
.step {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.step .num {
  display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; border-radius: 50%; font-weight: 700; margin-bottom: 10px;
}

/* ── Landing hero (Laundryheap-style) ───────────────────────────────────── */
/* Full-bleed deep-blue frame around a white card. */
.landing {
  width: 100vw; position: relative; left: 50%; transform: translateX(-50%);
  margin-top: -32px; background: var(--landing-navy);
  padding: 28px 16px 40px;
}
.landing-card {
  max-width: 1140px; margin: 0 auto; background: #fff;
  border-radius: 28px; padding: 40px;
}
.landing-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }

.loc-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.95rem;
  color: var(--muted); margin-bottom: 20px;
}
.loc-pill strong { color: var(--brand); font-weight: 700; }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; font-weight: 800;
  letter-spacing: -0.03em; color: #14213a; margin: 0 0 18px; }
.hero-title .accent { color: var(--brand); }
.hero-sub { font-size: 1.05rem; color: var(--muted); max-width: 460px; margin: 0 0 24px; }

/* Highlighted pickup / delivery + CTA card */
.hero-panel {
  background: rgba(71, 159, 248, 0.08); border: 1px solid rgba(71, 159, 248, 0.2);
  border-radius: 20px; padding: 18px;
}
.hero-panel-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 6px 16px; }
.hero-metric { 
  display: flex; gap: 12px; align-items: flex-start; 

  @media (max-width: 500px) {
    display: block;
  }
}
.hero-metric-icon {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(71, 159, 248, 0.14); font-size: 1.1rem;
}
.hero-metric-label { display: block; font-size: 0.8rem; color: var(--muted); }
.hero-metric-value { display: block; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.hero-metric-value.ok { color: var(--ok); }
.hero-metric-sub { display: block; font-size: 0.8rem; color: var(--muted); }
.hero-cta-box { background: #fff; border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.hero-cta-row { display: flex; gap: 10px; }
.hero-cta-row .btn { flex: 1; }
.hero-note { margin: 12px 2px 2px; font-size: 0.85rem; color: var(--ok); font-weight: 600; }

/* Yellow accent CTA (matches the reference's primary action) */
.btn-accent { background: var(--accent-yellow); color: #3a2a00; }
.btn-accent:hover { background: #eab63a; color: #3a2a00; }

/* Right column — arch visual + floating steps card */
.hero-visual { position: relative; min-height: 480px; }
.hero-photo {
  position: absolute; inset: 0;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  /* Soft vignette so the photo fades into the card on every side */
  -webkit-mask-image: radial-gradient(ellipse 78% 82% at 64% 44%, #000 46%, rgba(0, 0, 0, 0.6) 66%, transparent 100%);
          mask-image: radial-gradient(ellipse 78% 82% at 64% 44%, #000 46%, rgba(0, 0, 0, 0.6) 66%, transparent 100%);
}
.hero-steps-card {
  display: none;
  position: absolute; right: -6px; bottom: 6px; width: 205px;
  background: #fff; border: 1px solid var(--border-soft); border-radius: 14px;
  padding: 12px; box-shadow: 0 16px 36px -16px rgba(20, 33, 58, 0.4);
  display: flex; flex-direction: column; gap: 10px;

  @media (max-width: 500px) {
    display: none;
  }
}
.hstep { display: flex; gap: 9px; align-items: flex-start; position: relative; }
.hstep:not(:last-child)::before {
  content: ""; position: absolute; left: 13px; top: 32px; bottom: -10px;
  border-left: 2px dotted rgba(71, 159, 248, 0.5);
}
.hstep-icon {
  width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(71, 159, 248, 0.14); font-size: 0.85rem;
}
.hstep strong { display: block; font-size: 0.85rem; color: var(--ink); }
.hstep span { font-size: 0.75rem; line-height: 1.35; color: var(--muted); }

/* Decorative accents */
.deco { position: absolute; z-index: 2; pointer-events: none; }
.deco-star { top: 40px; left: 10px; color: var(--accent-yellow); font-size: 28px; }
.deco-dots {
  bottom: 30px; left: 0; width: 66px; height: 46px;
  background-image: radial-gradient(rgba(71, 159, 248, 0.55) 32%, transparent 34%);
  background-size: 13px 13px;
}

/* Trust / stats row inside the white card */
.hero-stats {
  display: flex; align-items: stretch; gap: 20px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border-soft);
}
.hero-stats .stat { flex: 1; min-width: 150px; }
.hero-stats .stat strong { display: block; font-size: 1.05rem; color: var(--ink); }
.hero-stats .stat span { font-size: 0.85rem; color: var(--muted); }

.landing-below { margin-top: 40px; }
.landing-below h2 { letter-spacing: -0.02em; }

.section-lede { max-width: 540px; margin: 0 auto 24px; }

/* Services — "what we wash" grid */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-top: 8px;
}
.service-card {
  background: var(--card-solid); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 22px 20px; text-align: center;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.service-icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.service-card strong { display: block; color: var(--ink); margin-bottom: 6px; }

/* Why choose us — feature grid */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; margin-top: 8px;
}
.feature-card {
  background: var(--card-solid); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 22px 20px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; font-size: 1.3rem;
  background: rgba(71, 159, 248, 0.12); margin-bottom: 12px;
}
.feature-card strong { display: block; color: var(--ink); margin-bottom: 6px; }

/* Loyalty highlight band */
.loyalty-band {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center;
  background: var(--card-solid); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 32px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.loyalty-band-copy .btn { margin-top: 8px; }
.loyalty-grid-demo { margin-left: auto; margin-right: auto; }

/* Testimonials */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px; margin-top: 8px;
}
.testimonial {
  margin: 0; background: var(--card-solid); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 22px 20px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.testimonial blockquote { margin: 0 0 14px; color: var(--ink); line-height: 1.5; }
.testimonial figcaption strong { display: block; color: var(--ink); font-size: 0.9rem; }
.testimonial figcaption span { font-size: 0.8rem; }

/* Closing CTA band */
.cta-band {
  text-align: center; background: var(--landing-navy); color: #fff;
  border-radius: var(--radius); padding: 40px 28px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin: 0 0 20px; }
.cta-band .cta-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.cta-note { font-size: 0.85rem; margin-top: 14px; }
.cta-note a, .cta-band a { color: #fff; }

@media (max-width: 720px) {
  .loyalty-band { grid-template-columns: 1fr; gap: 22px; text-align: center; }
}

@media (max-width: 860px) {
  .landing-card { padding: 24px; }
  .landing-hero { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { min-height: 340px; }
  .hero-steps-card { position: static; width: 100%; margin-top: 16px; }
}

/* Site footer */
.site-footer {
  margin-top: 56px; padding: 40px 0 28px;
  background: rgba(255, 255, 255, 0.45); border-top: 1px solid var(--border-soft);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
}
.footer-brand strong { color: var(--ink); font-size: 1.05rem; }
.footer-brand p { margin: 8px 0 0; max-width: 320px; font-size: 0.9rem; }
.footer-heading {
  display: block; font-weight: 600; color: var(--ink);
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px;
}
.footer-col a {
  display: block; color: var(--muted); text-decoration: none;
  font-size: 0.9rem; margin-bottom: 8px;
}
.footer-col a:hover { color: var(--brand-dark); }
.footer-col small { display: block; margin-top: 6px; line-height: 1.5; }
.footer-bottom {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border-soft);
}

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* Forms */
form .field { margin-bottom: 18px; }
label { display: block; font-weight: 600; margin-bottom: 7px; font-size: 0.95rem; }
.hint { color: var(--muted); font-size: 0.85rem; font-weight: 400; }
.hint-strong { color: var(--brand-dark); font-weight: 600; }
input[type=text], input[type=tel], input[type=password], input[type=date],
input[type=time], input[type=datetime-local], input[type=number], input[type=email],
select, textarea {
  width: 100%; padding: 13px 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(71, 159, 248, 0.25);
  background: #fff;
}
textarea { min-height: 96px; resize: vertical; }

/* Buttons — pill shaped */
.btn, button, input[type=submit] {
  display: inline-block; background: var(--brand-dark); color: #ffffff; border: none;
  padding: 14px 26px; border-radius: 999px; font-size: 1rem; font-weight: 500;
  font-family: inherit; cursor: pointer; text-decoration: none; text-align: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover, button:hover, input[type=submit]:hover { background: #2c5f96; transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--brand-dark); border: 1px solid rgba(22, 57, 95, 0.35); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.5); }
.btn-block { display: block; width: 100%; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b5335a; }
.linkish { background: none; border: none; color: var(--muted); cursor: pointer; padding: 0; font-size: 0.95rem; font-family: inherit; }
.linkish:hover { color: var(--danger); background: none; transform: none; }

/* Flash */
.flash { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 0.95rem; margin-top: 18px; }
.flash > span { flex: 1; }
.flash-notice { background: rgba(214, 244, 227, 0.85); color: #145c3a; border: 1px solid rgba(120, 200, 160, 0.6); }
.flash-alert { background: rgba(252, 220, 232, 0.9); color: #a01c4a; border: 1px solid rgba(240, 180, 200, 0.7); }
.flash-close {
  flex: 0 0 auto; width: 26px; height: 26px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: inherit; border: none;
  font-size: 1.3rem; line-height: 1; cursor: pointer; opacity: 0.7;
}
.flash-close:hover { background: rgba(0, 0, 0, 0.08); color: inherit; opacity: 1; transform: none; }

/* Errors */
.error-list { background: rgba(252, 220, 232, 0.9); border: 1px solid rgba(240, 180, 200, 0.7); color: #a01c4a; border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 18px; }
.error-list ul { margin: 6px 0 0; padding-left: 18px; }

/* Dropzone — drag & drop file picker */
.dropzone {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 34px 24px;
  border: 2px dashed rgba(71, 159, 248, 0.45);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.dropzone:hover { border-color: var(--brand); background: rgba(255, 255, 255, 0.6); }
.dropzone.is-dragover {
  border-color: var(--brand); background: rgba(71, 159, 248, 0.12);
  transform: translateY(-1px);
}
.dropzone-input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); border: 0;
}
.dropzone-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(71, 159, 248, 0.14); color: var(--brand);
  margin-bottom: 14px;
}
.dropzone-icon svg { width: 26px; height: 26px; }
.dropzone-title { margin: 0; font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.dropzone-meta { margin: 12px 0 0; font-size: 0.8rem; color: var(--muted); }

.dropzone-actions {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-top: 14px;
}
.dropzone-actions [hidden] { display: none; }
.dropzone-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.7);
  color: var(--ink); font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.dropzone-btn svg { width: 18px; height: 18px; }
.dropzone-btn:hover { border-color: var(--brand); color: var(--brand); }
.dropzone-btn.is-primary {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.dropzone-btn.is-primary:hover { background: var(--brand); color: #fff; filter: brightness(0.95); }

.dropzone-preview {
  display: flex; align-items: center; gap: 14px; width: 100%;
  text-align: left;
}
.dropzone-preview[hidden] { display: none; }
.dropzone-thumb {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  object-fit: cover; flex: 0 0 auto;
  border: 1px solid var(--border);
}
.dropzone-file { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.dropzone-name { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropzone-remove {
  flex: 0 0 auto; width: 32px; height: 32px; padding: 0; border-radius: 50%;
  background: rgba(22, 57, 95, 0.08); color: var(--ink); font-size: 1.2rem; line-height: 1;
  border: none; cursor: pointer;
}
.dropzone-remove:hover { background: var(--danger); color: #fff; transform: none; }

/* Map */
.pickup-map { height: 280px; border-radius: var(--radius); border: 1px solid var(--border); margin-top: 8px; }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border-soft); font-size: 0.92rem; }
th { color: var(--muted); font-weight: 600; }

/* Responsive tables — collapse rows into stacked cards on small screens */
@media (max-width: 640px) {
  .card { padding: 18px 16px; }
  table thead {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); border: 0;
  }
  table, table tbody, table tr, table td { display: block; width: 100%; }
  table tr {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 4px 2px;
    margin-bottom: 14px;
  }
  table tr:last-child { margin-bottom: 0; }
  table td {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 16px; text-align: right;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-soft);
  }
  table tr td:last-child { border-bottom: 0; }
  table td::before {
    content: attr(data-label);
    font-weight: 600; color: var(--muted);
    text-align: left; white-space: nowrap; flex: 0 0 auto;
  }
  table td:empty { display: none; }
}

/* Status badges — pill, harmonized with palette */
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.badge-pending { background: #fef0d6; color: #8a5a00; }
.badge-verified { background: #d6e6fb; color: #2c5f96; }
.badge-picked_up { background: #cfe0f9; color: #234f7e; }
.badge-processing { background: #d6ecff; color: #1f5a85; }
.badge-ready { background: #d6f4e4; color: #145c3a; }
.badge-out_for_delivery { background: #fcd8ec; color: #8a2c66; }
.badge-delivered { background: #d0f0dc; color: #146348; }
.badge-cancelled { background: #fcd6e0; color: #a01c4a; }

/* flatpickr year dropdown (replaces the numeric year spinner) */
.flatpickr-year-dropdown {
  width: auto; padding: 2px 22px 2px 6px; margin-left: 4px;
  font-size: 0.95rem; font-weight: 600; line-height: 1.2;
  border: none; border-radius: 6px;
  background-color: transparent; color: inherit; font-family: inherit;
  cursor: pointer; vertical-align: middle;
}
.flatpickr-year-dropdown:focus { outline: none; box-shadow: none; background-color: rgba(0, 0, 0, 0.06); }
.flatpickr-year-dropdown option { color: #16324f; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.pagination .is-disabled { opacity: 0.45; cursor: default; pointer-events: none; }

/* Utility */
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 14px; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }

/* Booking confirmation ("thank you") page */
.confirm-hero { text-align: center; }
.confirm-check {
  width: 68px; height: 68px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(120, 200, 160, 0.22); color: #158a52;
  margin: 4px auto 16px;
}
.confirm-check svg { width: 34px; height: 34px; }
.confirm-title { margin: 0; letter-spacing: -0.02em; }
.confirm-sub { color: var(--muted); margin: 10px 0 0; }
.confirm-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.confirm-actions .btn { flex: 1; min-width: 180px; }

/* Inline checkbox + label (auto width, not the full-width field label) */
.check-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-weight: 600; }
.check-row input[type=checkbox] { width: auto; margin: 0; }

/* Payment QR on the booking confirmation */
.payment-qr { max-width: 240px; border-radius: var(--radius-sm); border: 1px solid var(--border-soft); }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 150px; }
.stack > * + * { margin-top: 12px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 9px 0 9px 26px; position: relative; border-left: 2px solid var(--border-soft); margin-left: 8px; }
.timeline li.done { border-color: var(--brand); }
.timeline li .dot { position: absolute; left: -7px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: var(--border-soft); }
.timeline li.done .dot { background: var(--brand); }
.timeline li.current .dot { background: var(--brand-dark); box-shadow: 0 0 0 4px rgba(71, 159, 248, 0.3); }

/* ── Loyalty card ────────────────────────────────────────────────────────── */
/* A digital punch card: two rows of stamp slots, filled up to the current
   count. Milestone slots (free item at 5, free wash & dry at 10) are tinted. */
.loyalty-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  max-width: 520px; margin: 6px 0 4px;
}
.stamp {
  position: relative; aspect-ratio: 1 / 1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: rgba(71, 159, 248, 0.10); border: 1.5px dashed rgba(71, 159, 248, 0.4);
  color: var(--muted);
}
.stamp-num { font-weight: 700; font-size: 1.05rem; }
.stamp-reward { font-size: 0.62rem; font-weight: 700; line-height: 1.15; text-transform: uppercase; letter-spacing: 0.02em; color: var(--brand-dark); padding: 0 4px; }
.stamp.is-item, .stamp.is-wash_dry { background: rgba(245, 196, 81, 0.18); border-style: solid; border-color: rgba(245, 196, 81, 0.7); }
.stamp.is-filled {
  background: var(--brand); border-style: solid; border-color: var(--brand-dark); color: #fff;
}
.stamp.is-filled .stamp-num, .stamp.is-filled .stamp-reward { opacity: 0.25; color: #fff; }
.stamp-check {
  position: absolute; inset: 0 0 auto 0; top: 6%; display: flex; align-items: center; justify-content: center;
  height: 58%; font-size: 1.4rem; font-weight: 800; color: #fff;
}
.stamp-date {
  position: absolute; left: 0; right: 0; bottom: 7%;
  font-size: 0.56rem; font-weight: 700; letter-spacing: 0.02em; color: #fff; opacity: 0.9;
}
.loyalty-progress { margin: 10px 0 0; font-size: 0.95rem; }

/* Reward lists (customer claim view + admin hand-out) */
.reward-list { list-style: none; padding: 0; margin: 8px 0 0; }
.reward-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; }
.reward-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-yellow); flex: 0 0 auto; }
.reward-dot.is-redeemed { background: var(--border-soft); }

/* Admin customer phone + copy-to-clipboard button */
.phone-row { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.copy-btn {
  background: transparent; border: 1px solid var(--border-soft); border-radius: 6px;
  padding: 2px 7px; cursor: pointer; font-size: 0.9rem; line-height: 1.4;
  color: var(--brand-dark); transition: background 0.15s, border-color 0.15s;
}
.copy-btn:hover { background: rgba(71, 159, 248, 0.1); border-color: rgba(71, 159, 248, 0.4); }
.copy-btn.is-copied { color: #178a3f; border-color: #178a3f; }

/* Address book */
.address-card .address-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.address-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.address-actions form { margin: 0; }

/* Booking form saved-address preview */
.address-preview {
  background: rgba(71, 159, 248, 0.06); border: 1px solid rgba(71, 159, 248, 0.2);
  border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 4px;
}

/* Admin "mark delivered" bill entry */
.deliver-box {
  background: rgba(71, 159, 248, 0.06); border: 1px solid rgba(71, 159, 248, 0.2);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.deliver-box .field { margin-bottom: 12px; }

@media (max-width: 520px) {
  .loyalty-grid { gap: 8px; }
  .stamp-reward { font-size: 0.55rem; }
}
