:root {
  color-scheme: light;
  --brand: #af101a;
  --brand-dark: #8e0f17;
  --brand-bright: #d32f3d;
  --brand-gold: #d4a03c;
  --brand-soft: #fff0f1;
  --ink: #1b1c1c;
  --muted: #756764;
  --line: #eadfda;
  --surface: #ffffff;
  --canvas: #f8f2ee;
  --danger: #9f1239;
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(212, 160, 60, .13), transparent 23rem),
    radial-gradient(circle at 96% 18%, rgba(175, 16, 26, .09), transparent 27rem),
    var(--canvas);
  color: var(--ink);
}
a { color: inherit; }
button, input { font: inherit; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(234, 223, 218, .9);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 30px rgba(91, 64, 61, .05);
  backdrop-filter: blur(16px);
}
.app-header-inner, .app-shell, .app-footer {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}
.app-header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; min-width: 0; text-decoration: none; }
.brand-logo { display: block; width: 148px; height: 52px; object-fit: contain; object-position: left center; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions form { margin: 0; }
.link-button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 8px; }
.link-button:hover { color: var(--brand); }

.app-shell { padding: 38px 0 64px; }
.hero { padding: 28px 0 24px; }
.hero h1 { margin: 4px 0 8px; font-size: clamp(2rem, 7vw, 3.8rem); letter-spacing: -.055em; line-height: 1; }
.hero p:last-child { max-width: 600px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.eyebrow { margin: 0 0 6px; color: var(--brand); font-size: .76rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.hero .eyebrow { display: flex; align-items: center; gap: 8px; }
.hero .eyebrow::before { width: 20px; height: 3px; border-radius: 999px; background: var(--brand-gold); content: ""; }

.notice { margin: 0 0 18px; border-radius: 14px; padding: 13px 16px; font-weight: 700; }
.notice.success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.notice.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

body[data-customer-app] .slotio-push-reminder-card { border-color: rgba(175, 16, 26, .16); background: linear-gradient(180deg, #fff, #fffaf7); box-shadow: 0 8px 24px rgba(91, 64, 61, .06); }
body[data-customer-app] .slotio-push-reminder-title { color: var(--ink); }
body[data-customer-app] .slotio-push-reminder-dot { background: var(--brand-soft); color: var(--brand); }
body[data-customer-app] .slotio-push-reminder-copy { color: var(--muted); }
body[data-customer-app] .slotio-push-reminder-actions button { background: linear-gradient(135deg, var(--brand), var(--brand-bright)); }
body[data-customer-app] .slotio-push-reminder-actions button.secondary { border-color: var(--line); color: #4f4543; }

.section-block { margin-top: 28px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 14px; }
.section-heading h2, .link-business-card h2, .empty-state h2 { margin: 0; letter-spacing: -.025em; }
.count-pill { min-width: 30px; padding: 5px 9px; border: 1px solid #f4cfd2; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); text-align: center; font-size: .82rem; font-weight: 800; }
.booking-list { display: grid; gap: 12px; }
.booking-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 35px rgba(91, 64, 61, .07);
}
.booking-date { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 20px; background: linear-gradient(145deg, var(--brand-dark), var(--brand-bright)); color: #fff; }
.booking-date strong { font-size: 1.03rem; }
.booking-date span { opacity: .86; font-size: 1.35rem; font-weight: 800; }
.booking-body { min-width: 0; padding: 18px 20px; }
.booking-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.booking-heading h3 { margin: 3px 0 0; font-size: 1.08rem; }
.booking-tenant, .booking-meta { margin: 0; color: var(--muted); font-size: .84rem; }
.booking-meta { margin-top: 8px; }
.booking-status { flex: 0 0 auto; border-radius: 999px; background: #eef2f7; padding: 5px 9px; color: #475569; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.booking-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0;
  border-radius: 11px;
  padding: 9px 14px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.button.primary { background: linear-gradient(135deg, var(--brand), var(--brand-bright)); color: #fff; box-shadow: 0 8px 18px rgba(175, 16, 26, .16); }
.button.primary:hover { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); }
.button.danger { background: #fff1f2; color: var(--danger); }
.button.subtle { border: 1px solid var(--line); background: #fff; color: #4f4543; }
.button.subtle:hover { border-color: #d8bab3; color: var(--brand-dark); }
.button.compact { min-height: 34px; padding: 7px 10px; font-size: .82rem; }
.history-list .booking-card { opacity: .78; }
.history-list .booking-date { background: #64748b; }
.muted-card { margin: 0; border: 1px dashed #cbd5e1; border-radius: 16px; padding: 24px; background: rgba(255,255,255,.64); color: var(--muted); text-align: center; }

.empty-state, .link-business-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 16px 45px rgba(15, 23, 42, .06);
}
.empty-state { padding: 40px 24px; text-align: center; }
.empty-state p { max-width: 520px; margin: 10px auto 0; color: var(--muted); }
.empty-icon { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 15px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); font-size: 1.5rem; font-weight: 900; }
.link-business-card { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; padding: 24px; }
.link-business-card > div > p:last-child { color: var(--muted); line-height: 1.55; }
.link-form { display: grid; gap: 12px; }
.link-form label { display: grid; gap: 6px; color: #334155; font-size: .83rem; font-weight: 750; }
.link-form input { width: 100%; min-height: 44px; border: 1px solid #cbd5e1; border-radius: 11px; padding: 9px 12px; background: #fff; color: var(--ink); }
.link-form input:focus { outline: 3px solid rgba(175, 16, 26, .14); border-color: var(--brand); }
.form-status { margin: 0; border-radius: 10px; padding: 10px 12px; background: #ecfdf5; color: #047857; font-size: .84rem; }
.form-status.is-error { background: #fef2f2; color: #b91c1c; }

.app-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 24px 0 38px; color: var(--muted); font-size: .86rem; }
.app-footer nav { display: flex; gap: 16px; }

@media (max-width: 680px) {
  .app-header-inner, .app-shell, .app-footer { width: min(100% - 22px, 920px); }
  .app-header-inner { min-height: 64px; }
  .brand-logo { width: 118px; height: 46px; }
  .link-button { max-width: 150px; font-size: .75rem; }
  .app-shell { padding-top: 20px; }
  .hero { padding-top: 16px; }
  .booking-card { grid-template-columns: 1fr; }
  .booking-date { flex-direction: row; align-items: baseline; justify-content: flex-start; padding: 12px 16px; }
  .booking-date span { font-size: 1rem; }
  .booking-body { padding: 16px; }
  .booking-heading { align-items: center; }
  .booking-actions .button { flex: 1 1 calc(50% - 8px); }
  .link-business-card { grid-template-columns: 1fr; padding: 19px; }
  .app-footer { flex-direction: column; }
}

@media (display-mode: standalone) {
  .app-header { padding-top: env(safe-area-inset-top); }
  .app-shell { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
