:root {
  --pink: #d6007c;
  --pink-dark: #c20070;
  --black: #141a1a;
  --cream: #dddbab;
  --cream-soft: #f7f6e9;
  --gray: #5d6360;
  --red: #b3261e;
  --radius: 14px;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream-soft);
  color: var(--black);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--black);
  color: var(--cream);
  padding: 16px 24px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; }
.brand-mark { font-size: 1.5rem; }
.brand-name { color: var(--pink); }

.phone-link {
  color: var(--cream);
  background: var(--pink);
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

h1 { color: var(--pink-dark); margin-bottom: 4px; }
.subhead { color: var(--gray); margin-top: 0; }

.card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.card h2 { margin-top: 0; color: var(--black); font-size: 1.1rem; }

label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 12px;
}

input, select, textarea {
  font-size: 1rem;
  padding: 10px 12px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--pink);
}

.field-row {
  display: flex;
  gap: 12px;
}
.field-row label { flex: 1; }

.price-note { color: var(--gray); font-size: 0.9rem; margin: 0; }

.slots-wrap { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.hint { color: var(--gray); font-size: 0.9rem; }

.slot-btn {
  background: var(--cream);
  border: 1.5px solid var(--cream);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}
.slot-btn:hover { border-color: var(--pink); }
.slot-btn.selected { background: var(--pink); color: white; }

.btn-primary {
  background: var(--pink);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.btn-primary:hover { background: var(--pink-dark); }

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--cream);
  color: var(--cream);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 600;
}

.form-error { color: var(--red); font-weight: 600; min-height: 1.2em; }

.selected-summary {
  background: var(--cream-soft);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.confirmation { text-align: center; border: 2px solid var(--pink); }

.venmo-btn {
  display: inline-block;
  text-decoration: none;
  background: #3D95CE; /* Venmo blue, distinct from the pink "confirm" action */
  margin: 10px 0 4px;
}
.venmo-btn:hover { background: #2f79a8; }

.site-footer {
  text-align: center;
  padding: 24px;
  color: var(--gray);
  font-size: 0.9rem;
}

/* ---- Admin-specific ---- */

.admin-body { background: var(--cream-soft); min-height: 100vh; }

.login-card {
  max-width: 360px;
  margin: 15vh auto;
}

.admin-wrap { max-width: 900px; }

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tab-btn {
  background: white;
  border: 1.5px solid var(--cream);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
}
.tab-btn.active { background: var(--black); color: var(--cream); border-color: var(--black); }

.list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

.list-item {
  background: white;
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.list-item .details { flex: 1; min-width: 200px; }
.list-item .details strong { color: var(--pink-dark); }
.list-item .meta { color: var(--gray); font-size: 0.85rem; }

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.status-booked { background: #fde3ef; color: var(--pink-dark); }
.status-completed { background: #e1f5e2; color: #1e7a24; }
.status-cancelled, .status-no_show { background: #f3e2e1; color: var(--red); }

.inline-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px 12px;
  align-items: end;
  background: white;
  padding: 16px;
  border-radius: var(--radius);
}
.inline-form label { margin-bottom: 0; min-width: 0; }
.inline-form input, .inline-form select { padding: 10px 12px; width: 100%; min-height: 44px; }
.inline-form .wide { grid-column: 1 / -1; }
.inline-form .btn-primary { min-height: 44px; }

.action-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.action-btns button, .list-item > .btn-delete {
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  min-height: 40px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-venmo { background: #eaf4fb; color: #2f79a8; }
.btn-complete { background: #e1f5e2; color: #1e7a24; }
.btn-cancel { background: #f3e2e1; color: var(--red); }
.btn-delete { background: #f0f0f0; color: var(--gray); }

/* ---- All-device polish (booking + admin) ---- */
.topbar { gap: 12px; }
.brand { min-width: 0; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab-btn { min-height: 40px; }
@media (max-width: 420px) {
  .topbar { padding: 12px 16px; }
  .brand { font-size: 1.1rem; }
  .brand-sub { display: none; }
  .wrap { padding-left: 12px; padding-right: 12px; }
  .card { padding: 16px; }
  .list-item .details { min-width: 0; flex-basis: 100%; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; }
}
