:root {
  color-scheme: light;
  --ink: #20161a;
  --muted: #735f66;
  --paper: #fff8f9;
  --panel: rgba(255, 255, 255, 0.88);
  --line: rgba(51, 27, 36, 0.13);
  --rose: #c04f7a;
  --rose-dark: #74324b;
  --mint: #13b7a4;
  --gold: #e3b65b;
  --shadow: 0 22px 70px rgba(70, 33, 49, 0.16);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 12%, rgba(19, 183, 164, 0.18), transparent 26%),
    radial-gradient(circle at 92% 4%, rgba(227, 182, 91, 0.24), transparent 25%),
    linear-gradient(135deg, #fff8f9 0%, #f7ecef 48%, #f0fbf9 100%);
}

a { color: inherit; }
button, .button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--rose);
  color: white;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(192, 79, 122, 0.24);
}
button.secondary, .button.secondary { background: white; color: var(--rose-dark); border: 1px solid var(--line); box-shadow: none; }
button.ghost { min-height: 34px; background: transparent; color: var(--rose-dark); border: 1px solid var(--line); box-shadow: none; }
button.small { min-height: 34px; padding-inline: 12px; box-shadow: none; }
button:disabled { opacity: .45; cursor: not-allowed; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  width: min(100% - 28px, 1220px);
  margin: 14px auto 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 950; }
.brand span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--rose), var(--mint));
  color: white;
}
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
nav a {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}
nav a:hover, .admin-link { border-color: var(--line); color: var(--rose-dark); background: white; }

.hero, .page, .split-page, .section, .admin-shell {
  width: min(100% - 32px, 1220px);
  margin: 0 auto;
}
.hero {
  min-height: 74vh;
  display: grid;
  align-items: center;
  padding: 56px 0 36px;
}
.hero > div, .booking-head, .account-head, .admin-hero {
  border-radius: 34px;
  padding: clamp(28px, 6vw, 70px);
  background:
    linear-gradient(120deg, rgba(116, 50, 75, 0.94), rgba(192, 79, 122, 0.72)),
    url("https://images.unsplash.com/photo-1560066984-138dadb4c035?auto=format&fit=crop&w=1600&q=84") center/cover;
  color: white;
  box-shadow: var(--shadow);
}
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: .78rem; font-weight: 950; text-transform: uppercase; letter-spacing: 0; }
h1 { margin: 0; max-width: 900px; font-size: clamp(2.6rem, 7vw, 6.7rem); line-height: .92; letter-spacing: 0; }
h2 { margin: 22px 0 14px; font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { margin: 0 0 8px; font-size: 1.2rem; }
p { line-height: 1.55; }
.hero p, .split-page > section > p, .booking-head p { max-width: 680px; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.section { padding: 34px 0; }
.cards, .slot-grid, .appointments, .admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card, .slot-card, .appointment, .panel, .notice-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 16px 38px rgba(70, 33, 49, 0.09);
}
.card { padding: 22px; min-height: 168px; }
.card strong { color: var(--rose-dark); }
.products-band { padding-bottom: 70px; }

.split-page {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 26px;
  align-items: center;
  padding: 40px 0 70px;
}
.split-page > section:first-child {
  border-radius: 34px;
  padding: clamp(28px, 5vw, 58px);
  background: #281920;
  color: white;
  box-shadow: var(--shadow);
}
.panel { padding: 24px; }
.panel.wide { margin-top: 22px; }
.form { display: grid; gap: 14px; }
.muted-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
label { display: grid; gap: 7px; color: var(--muted); font-size: .9rem; font-weight: 900; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--ink);
  background: white;
  font: inherit;
}
textarea { min-height: 84px; resize: vertical; }
.hint, .empty { color: var(--muted); }

.filters {
  display: grid;
  grid-template-columns: 1fr 220px auto;
  gap: 12px;
  align-items: end;
  margin-top: 22px;
}
.booking-head .filters label { color: rgba(255,255,255,.78); }
.slot-grid { margin: 20px 0 70px; }
.slot-card { padding: 18px; display: grid; gap: 10px; }
.slot-card strong { font-size: 1.55rem; color: var(--rose-dark); }
.notice-card { padding: 22px; grid-column: span 3; }

.account-head, .admin-hero {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}
.appointments { grid-template-columns: 1fr; margin-bottom: 28px; }
.appointment {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.appointment span { display: block; color: var(--muted); }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.avatar-big { width: 160px; height: 160px; object-fit: cover; border-radius: 28px; margin-top: 20px; border: 4px solid rgba(255,255,255,.38); }

.admin-shell { padding: 24px 0 80px; }
.adminbar { top: 8px; }
.kpis { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.kpis span, .chips span {
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255,255,255,.16);
  font-weight: 850;
}
.table { display: grid; gap: 10px; }
.row {
  display: grid;
  grid-template-columns: 70px 1fr 1.4fr 120px 230px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}
.row form { display: flex; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { background: white; color: var(--rose-dark); border-color: var(--line); }
.hours-grid { display: grid; gap: 10px; }
.hour-row {
  grid-template-columns: 110px 110px repeat(4, 1fr);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: white;
}
.admin-grid { margin-top: 22px; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; min-height: auto; }
.create-card { border-style: dashed; }
.stock-low { outline: 3px solid rgba(192, 79, 122, .22); }
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(420px, calc(100% - 36px));
  border-radius: 18px;
  padding: 14px 16px;
  background: #153f39;
  color: white;
  box-shadow: var(--shadow);
  font-weight: 850;
}
.toast--error { background: #8b263d; }

@media (max-width: 900px) {
  .topbar { align-items: flex-start; flex-direction: column; border-radius: 20px; }
  nav { justify-content: flex-start; }
  .hero { min-height: auto; padding-top: 32px; }
  .split-page, .cards, .slot-grid, .admin-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .notice-card { grid-column: auto; }
  .account-head, .admin-hero, .appointment { align-items: stretch; flex-direction: column; }
  .row, .hour-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero, .page, .split-page, .section, .admin-shell { width: min(100% - 22px, 1220px); }
  .hero > div, .booking-head, .account-head, .admin-hero, .split-page > section:first-child { border-radius: 24px; }
  nav a { padding-inline: 10px; }
}
