/* ============================================================
   ZACHEMY — Client App · Modern / friendly direction
   Light · emerald accent · very rounded · soft shadows
   Design system source: design_handoff_zachemy_redesign
   ============================================================ */

:root {
  --bg:        #f4f4f8;
  --surface:   #ffffff;
  --surface-2: #fafafc;

  --ink:   #16161d;
  --ink-2: #54545f;
  --ink-3: #9a9aa6;
  --line:  #ebebf1;
  --line-2:#f2f2f6;

  --brand:      #0f9d6b;   /* fresh emerald */
  --brand-press:#0b8159;
  --brand-soft: #e1f5ec;
  --brand-ink:  #0a5e41;

  --coral: #ff5c7a;        /* favourites  */
  --coral-soft:#ffe7ec;
  --amber: #ffb020;        /* rating      */
  --green: #19b36b;        /* confirmed   */
  --green-soft:#e2f6ec;

  --r-xl: 30px;
  --r-lg: 22px;
  --r:    16px;
  --r-sm: 12px;
  --pill: 999px;

  --sh-1: 0 2px 8px -2px rgba(28,28,60,.08);
  --sh-2: 0 10px 30px -10px rgba(28,28,60,.14);
  --sh-3: 0 30px 70px -24px rgba(40,36,110,.30);
  --sh-brand: 0 12px 26px -8px rgba(15,157,107,.42);

  --maxw: 1200px;
  --ease: cubic-bezier(.34,.69,.3,1);

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono:    ui-monospace, "SF Mono", monospace;

  /* ---- Legacy aliases (old views used these names inline) ---- */
  --primary:      #0f9d6b;
  --primary-dark: #0b8159;
  --secondary:    #54545f;
  --background:   #f4f4f8;
  --text:         #16161d;
  --text-light:   #54545f;
  --border:       #ebebf1;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: var(--sh-1);
  --shadow:    var(--sh-2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }

.wrap, .container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; width: 100%; }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; }

.main { flex: 1; }

svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i-sm { width: 16px; height: 16px; }

/* ============================================================
   HEADER
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244,244,248,.78);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; }
.brand .nav-logo { height: 30px; width: auto; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--pill);
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  transition: background .2s var(--ease), color .2s;
  white-space: nowrap;
}
.nav-link:hover { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.nav-link.is-active { color: var(--brand); }
.icon-btn {
  width: 44px; height: 44px; border-radius: var(--pill);
  display: grid; place-items: center; color: var(--ink-2); position: relative;
  transition: background .2s var(--ease), color .2s;
}
.icon-btn:hover { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .dot {
  position: absolute; top: 9px; right: 10px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--coral); border: 2px solid var(--bg);
}
.user-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 5px 14px 5px 5px; border-radius: var(--pill);
  background: #fff; border: 1px solid var(--line);
  font-weight: 600; font-size: 15px; box-shadow: var(--sh-1);
  transition: box-shadow .2s, transform .15s var(--ease);
}
.user-pill:hover { box-shadow: var(--sh-2); }
.user-pill .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-ink);
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-ink);
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}

.user-menu-wrap { position: relative; }
.user-menu {
  display: none; position: absolute; right: 0; top: 100%; margin-top: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: var(--sh-2); min-width: 170px; z-index: 100; overflow: hidden;
}
.user-menu a,
.user-menu button {
  display: block; width: 100%; text-align: left; padding: 12px 16px; font-size: 14.5px;
  font-weight: 600; color: var(--ink-2); transition: background .15s;
}
.user-menu a:hover,
.user-menu button:hover { background: var(--surface-2); color: var(--ink); }
.user-menu form { border-top: 1px solid var(--line); }

.mobile-business-banner { display: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: var(--pill);
  font-weight: 700; font-size: 15px; letter-spacing: -.01em;
  transition: transform .14s var(--ease), background .2s, box-shadow .2s, color .2s;
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-brand, .btn-primary { background: var(--brand); color: #fff; box-shadow: var(--sh-brand); border: none; }
.btn-brand:hover, .btn-primary:hover { background: var(--brand-press); transform: translateY(-2px); }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: var(--sh-1); }
.btn-ghost:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 11px 18px; font-size: 14px; }

.btn-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 15px; color: var(--ink-2);
  padding: 8px 4px; transition: color .2s;
}
.btn-link:hover { color: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; text-align: center; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -340px; transform: translateX(-50%);
  width: 1100px; height: 760px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(15,157,107,.20), rgba(15,157,107,.05) 55%, transparent 72%);
  pointer-events: none;
}
.hero-inner { padding: 78px 0 56px; text-align: center; position: relative; z-index: 1; }
.pill-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px 7px 8px; border-radius: var(--pill);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.pill-badge .tagx {
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: var(--pill); letter-spacing: .02em;
}
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02;
  letter-spacing: -.035em; margin: 22px auto 0; max-width: 16ch;
  color: var(--ink);
}
.hero h1 .hl { color: var(--brand); }
.hero > p, .hero-inner p { color: var(--ink-2); font-size: clamp(16px,1.5vw,19px); margin: 20px auto 0; max-width: 44ch; }

.search {
  margin: 36px auto 0; max-width: 660px;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: var(--pill);
  padding: 9px 9px 9px 22px; box-shadow: var(--sh-3); border: 1px solid var(--line);
}
.search > svg, .search > .search-icon { color: var(--ink-3); flex: none; width: 20px; height: 20px; position: static; transform: none; }
.search input {
  flex: 1; border: none; outline: none; background: none;
  font-size: 16px; color: var(--ink); font-family: var(--sans); padding: 12px 0;
}
.search input::placeholder { color: var(--ink-3); }
.search .btn { flex: none; }

.hero-stats { display: flex; justify-content: center; gap: 36px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats .stat { display: flex; flex-direction: column; }
.hero-stats .stat b { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.02em; }
.hero-stats .stat span { font-size: 13.5px; color: var(--ink-3); font-weight: 500; }

/* ============================================================
   DISCOVER
   ============================================================ */
.discover { padding: 26px 0 90px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -.025em; }
.section-head p { color: var(--ink-3); font-size: 14.5px; margin-top: 2px; }

.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.chip {
  padding: 10px 18px; border-radius: var(--pill);
  background: #fff; border: 1px solid var(--line);
  font-weight: 600; font-size: 14px; color: var(--ink-2); box-shadow: var(--sh-1);
  transition: all .18s var(--ease); white-space: nowrap;
}
.chip:hover { color: var(--ink); transform: translateY(-2px); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }

/* Shop card */
.card {
  background: var(--surface); border-radius: var(--r-xl);
  border: 1px solid var(--line); overflow: hidden; box-shadow: var(--sh-1);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-3); border-color: transparent; }
.card-link { display: block; color: inherit; }
.card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card-img .imgfill { position: absolute; inset: 0; transition: transform .6s var(--ease); }
.card-img img.imgfill { width: 100%; height: 100%; object-fit: cover; }
.card:hover .imgfill { transform: scale(1.06); }
.card-img .imgfill.is-grad::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(125deg, rgba(255,255,255,.06) 0 2px, transparent 2px 15px);
}
.card-initial {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 120px; color: rgba(255,255,255,.18);
  pointer-events: none;
}
.card-cat {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 12px; font-weight: 700; letter-spacing: .01em;
  padding: 6px 13px; border-radius: var(--pill);
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px); color: var(--ink);
  box-shadow: var(--sh-1);
}
.card-tag {
  position: absolute; right: 16px; bottom: 12px; z-index: 2;
  font-family: var(--mono); font-size: 10.5px; color: rgba(255,255,255,.7);
}
.fav {
  position: absolute; top: 13px; right: 13px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  display: grid; place-items: center; color: var(--ink-3); box-shadow: var(--sh-1);
  transition: transform .2s var(--ease), color .2s; border: none;
}
.fav:hover { transform: scale(1.12); }
.fav svg { width: 20px; height: 20px; }
.fav.is-on, .fav.is-favorite { color: var(--coral); }
.fav.is-on svg, .fav.is-favorite svg { fill: var(--coral); }

.card-grad-1 { background: linear-gradient(150deg,#16b07a,#0a6f4c); }
.card-grad-2 { background: linear-gradient(150deg,#19b3a6,#0e7d8c); }
.card-grad-3 { background: linear-gradient(150deg,#ff7a59,#e0452f); }
.card-grad-4 { background: linear-gradient(150deg,#3a3a44,#18181f); }

.card-body { padding: 0 20px 20px; position: relative; }
.card-logo {
  width: 58px; height: 58px; border-radius: 17px;
  background: #fff; box-shadow: var(--sh-2); border: 3px solid #fff;
  display: grid; place-items: center; font-family: var(--display); font-weight: 700;
  font-size: 24px; color: var(--brand); margin-top: -28px; position: relative; z-index: 2;
  overflow: hidden;
}
.card-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.card-body h3 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin-top: 13px; color: var(--ink); }
.meta { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.meta svg { width: 16px; height: 16px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin: 16px 0; }
.rating {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px;
  background: #fff8e9; color: #9a6b00; padding: 5px 11px; border-radius: var(--pill);
}
.rating svg { width: 15px; height: 15px; fill: var(--amber); stroke: none; color: var(--amber); }
.rating i { color: #c4a35a; font-style: normal; font-weight: 600; }
.from { font-size: 13.5px; color: var(--ink-3); font-weight: 500; }
.from b { font-family: var(--display); color: var(--ink); font-weight: 700; font-size: 17px; }

.empty-state { color: var(--ink-3); text-align: center; padding: 40px 0; }

/* ============================================================
   SHOP PROFILE
   ============================================================ */
.profile { padding: 30px 0 90px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2);
  font-weight: 600; font-size: 14.5px; padding: 9px 16px 9px 12px; border-radius: var(--pill);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); margin-bottom: 22px;
  transition: transform .15s var(--ease), box-shadow .2s;
}
.back-link:hover { transform: translateX(-3px); box-shadow: var(--sh-2); }
.back-link svg { width: 16px; height: 16px; }

.profile-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--sh-1); margin-bottom: 30px;
}
.cover { height: 180px; position: relative; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover.is-grad::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(125deg, rgba(255,255,255,.06) 0 2px, transparent 2px 16px);
}
.profile-row { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; padding: 20px 32px 28px; flex-wrap: wrap; }
.profile-logo {
  position: absolute; top: -52px; left: 32px;
  width: 96px; height: 96px; border-radius: 26px; flex: none;
  background: #fff; border: 4px solid #fff; box-shadow: var(--sh-2);
  display: grid; place-items: center; font-family: var(--display); font-weight: 700;
  font-size: 40px; color: var(--brand); overflow: hidden;
}
.profile-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.profile-info { flex: 1; min-width: 220px; padding-left: 118px; }
.profile-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.profile-title h1 { font-family: var(--display); font-weight: 700; font-size: clamp(26px,3.4vw,36px); letter-spacing: -.025em; color: var(--ink); }
.fav-lg {
  width: 42px; height: 42px; border-radius: 14px; flex: none;
  background: var(--coral-soft); color: var(--coral); display: grid; place-items: center;
  transition: transform .2s var(--ease); border: none;
}
.fav-lg:hover { transform: scale(1.08); }
.fav-lg svg { width: 20px; height: 20px; }
.fav-lg.is-on svg, .fav-lg.is-favorite svg { fill: var(--coral); }
.profile-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.profile-meta span {
  display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line); padding: 7px 14px; border-radius: var(--pill);
}
.profile-meta span svg { width: 15px; height: 15px; }
.profile-meta span svg.star { fill: var(--amber); stroke: none; color: var(--amber); }
.profile-cta { padding-bottom: 6px; }

/* Tabs (segmented) */
.tabs {
  display: inline-flex; gap: 4px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--pill); padding: 5px; box-shadow: var(--sh-1); margin-bottom: 28px;
}
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px; border-radius: var(--pill);
  font-weight: 600; font-size: 15px; color: var(--ink-2); transition: all .22s var(--ease); border: none;
}
.tab svg { width: 18px; height: 18px; }
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--brand); color: #fff; box-shadow: var(--sh-brand); }
.tabpane { display: none; }
.tabpane.is-active { display: block; animation: rise .4s var(--ease) both; }

.services { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--sh-1); display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: transparent; }
.service-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.service-top h3 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.price { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--brand); white-space: nowrap; }
.service p { color: var(--ink-2); font-size: 14.5px; margin-top: 8px; }
.service-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 20px; }
.dur {
  display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 13.5px; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--line); padding: 7px 13px; border-radius: var(--pill);
}
.dur svg { width: 16px; height: 16px; }

/* Info tab */
.info-grid { display: grid; gap: 36px; max-width: 860px; }
.info-block h2 { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.02em; margin-bottom: 16px; }
.info-about { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.hours { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); }
.hours-row { display: flex; align-items: flex-start; justify-content: space-between; padding: 15px 22px; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.hours-row:last-child { border-bottom: none; }
.hours-row.today { background: var(--brand-soft); }
.hours-row .day { font-weight: 600; display: inline-flex; align-items: center; gap: 10px; text-transform: capitalize; }
.hours-row .badge-today { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--brand); padding: 3px 9px; border-radius: var(--pill); }
.hours-row .time { text-align: right; color: var(--ink-2); line-height: 1.7; font-weight: 500; }
.hours-row .closed { color: var(--ink-3); }
.contact { display: grid; gap: 14px; }
.contact-row { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 20px; box-shadow: var(--sh-1); transition: transform .2s var(--ease), box-shadow .2s; }
.contact-row:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.contact-ico { width: 48px; height: 48px; border-radius: 15px; flex: none; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.contact-ico svg { width: 22px; height: 22px; }
.contact-row .label { font-size: 12px; color: var(--ink-3); letter-spacing: .03em; text-transform: uppercase; font-weight: 700; }
.contact-row .val { font-weight: 600; font-size: 16px; color: var(--ink); }
a.val:hover { color: var(--brand); }

/* ============================================================
   BOOKING MODAL (restyle of existing full-screen modal)
   ============================================================ */
.booking-modal {
  display: none;
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 1000; overflow-y: auto;
}
.booking-modal.active { display: block; }
.booking-modal.active .booking-content { animation: rise .35s var(--ease) both; }
.booking-content { max-width: 1140px; margin: 0 auto; padding: 30px 28px 60px; }
.booking-content .back-link { margin-bottom: 26px; }

.booking-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: start; }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.cal-head h2 { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; text-transform: capitalize; }
.cal-nav { display: flex; gap: 8px; }
.round-btn {
  width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; display: grid; place-items: center; color: var(--ink-2);
  box-shadow: var(--sh-1); transition: all .18s var(--ease);
}
.round-btn:hover { color: var(--brand); transform: translateY(-2px); box-shadow: var(--sh-2); }
.round-btn svg, .round-btn i { width: 20px; height: 20px; }

.block { margin-bottom: 32px; }
.field-label { font-weight: 700; font-size: 16px; margin: 0 0 14px; letter-spacing: -.01em; color: var(--ink); }
.slot-group { margin-bottom: 24px; }
.slot-group .glabel { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink); margin-bottom: 14px; font-size: 15px; }
.slot-group .glabel svg { color: var(--brand); }

.calendar-week { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; }
.calendar-week .round-btn { flex: none; }
.calendar-week .calendar-strip { flex: 1; margin-bottom: 0; }
.calendar-strip { display: grid; grid-template-columns: repeat(7,1fr); gap: 10px; margin-bottom: 34px; }
.calendar-day {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: 1px solid var(--line); background: #fff; border-radius: var(--r);
  padding: 14px 4px; text-align: center; box-shadow: var(--sh-1); cursor: pointer;
  transition: all .18s var(--ease);
}
.calendar-day:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.calendar-day .day-name { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.calendar-day .day-number { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--ink); }
.calendar-day.disabled { opacity: .42; cursor: not-allowed; box-shadow: none; transform: none; }
.calendar-day.disabled:hover { transform: none; box-shadow: none; }
.calendar-day.active { background: var(--brand); border-color: var(--brand); box-shadow: var(--sh-brand); }
.calendar-day.active .day-name { color: rgba(255,255,255,.75); }
.calendar-day.active .day-number { color: #fff; }

.section-container { margin-bottom: 30px; }
.section-label { font-weight: 700; font-size: 16px; margin-bottom: 14px; letter-spacing: -.01em; color: var(--ink); display: inline-flex; align-items: center; gap: 9px; }
.section-label svg { color: var(--brand); width: 18px; height: 18px; }

.employee-list { display: flex; gap: 12px; flex-wrap: wrap; }
.employee-card {
  display: flex; align-items: center; gap: 11px; padding: 10px 18px 10px 10px;
  border-radius: var(--pill); border: 1px solid var(--line); background: #fff;
  font-weight: 600; box-shadow: var(--sh-1); cursor: pointer; transition: all .18s var(--ease);
}
.employee-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.employee-card.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); outline: none; }
.employee-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-ink);
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.employee-card.active .employee-avatar { background: var(--brand); color: #fff; }
.employee-name { font-weight: 600; font-size: 15px; line-height: 1.2; }

.time-slots { display: flex; gap: 10px; flex-wrap: wrap; }
.time-slot {
  padding: 11px 20px; border-radius: var(--pill); border: 1px solid var(--line);
  background: #fff; font-weight: 600; font-size: 15px; color: var(--ink);
  font-variant-numeric: tabular-nums; box-shadow: var(--sh-1); cursor: pointer;
  transition: all .16s var(--ease);
}
.time-slot:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.time-slot.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: var(--sh-brand); }
.slots-empty { width: 100%; color: var(--ink-3); font-size: 14.5px; padding: 4px 0; }

.summary {
  position: sticky; top: 24px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 26px; box-shadow: var(--sh-2);
}
.summary .eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--brand); margin-bottom: 16px; }
.summary-svc { display: flex; gap: 15px; align-items: center; }
.summary-svc .ph-sq {
  width: 60px; height: 60px; border-radius: 18px; flex: none; display: grid; place-items: center;
  font-family: var(--display); color: rgba(255,255,255,.85); font-size: 26px; font-weight: 700;
}
.summary-svc h3 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.summary-svc .dur { margin-top: 6px; }
.summary-list { margin: 22px 0; display: grid; gap: 12px; }
.summary-list .row { display: flex; align-items: center; justify-content: space-between; font-size: 14.5px; gap: 12px; }
.summary-list .row .k { color: var(--ink-3); font-weight: 500; }
.summary-list .row .v { font-weight: 600; text-align: right; }
.summary-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 18px; border-top: 1px dashed var(--line); margin-bottom: 22px; }
.summary-total .k { font-weight: 700; }
.summary-total .v { font-family: var(--display); font-weight: 700; font-size: 30px; color: var(--brand); }

.confirm-bar { display: none; }

/* ============================================================
   GENERIC MODALS (success / error / cancel confirm)
   ============================================================ */
.modal-overlay, .center-modal {
  display: none; position: fixed; inset: 0;
  background: rgba(22,22,29,.42); backdrop-filter: blur(4px);
  z-index: 2000; align-items: center; justify-content: center; padding: 1rem;
  animation: fadeIn .2s ease-out;
}
.modal-overlay.active, .center-modal.active { display: flex; }
.modal-card {
  background: #fff; width: 100%; max-width: 420px; border-radius: var(--r-xl);
  padding: 32px; text-align: center; box-shadow: var(--sh-3);
}
.modal-ico {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  margin: 0 auto 20px;
}
.modal-ico svg { width: 28px; height: 28px; }
.modal-ico.ok { background: var(--green-soft); color: var(--green); }
.modal-ico.err { background: var(--coral-soft); color: var(--coral); }
.modal-ico.warn { background: var(--coral-soft); color: var(--coral); }
.modal-card h2 { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.02em; margin-bottom: 8px; color: var(--ink); }
.modal-card .modal-sub { color: var(--ink-2); font-size: 15px; margin-bottom: 24px; line-height: 1.5; }
.modal-detail {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; text-align: left; margin-bottom: 24px;
}
.modal-detail .k { font-size: 12.5px; color: var(--ink-3); font-weight: 600; margin-bottom: 3px; }
.modal-detail .v { font-weight: 600; color: var(--ink); }
.modal-detail .divline { border-top: 1px solid var(--line); margin: 14px 0; }
.modal-actions { display: flex; gap: 12px; }
.modal-actions .btn { flex: 1; }
.btn-soft { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.btn-soft:hover { background: var(--line-2); color: var(--ink); }
.btn-danger { background: var(--coral); color: #fff; box-shadow: 0 12px 26px -8px rgba(255,92,122,.42); }
.btn-danger:hover { background: #f0436a; transform: translateY(-2px); }

.loader {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite;
  display: none;
}
.btn-loading .loader { display: inline-block; }
.btn-loading { pointer-events: none; opacity: .8; }

/* ============================================================
   MIS CITAS
   ============================================================ */
.citas { padding: 40px 0 90px; }
.page-head h1 { font-family: var(--display); font-weight: 700; font-size: clamp(32px,4.4vw,46px); letter-spacing: -.03em; }
.page-head p { color: var(--ink-3); margin-top: 6px; font-size: 16px; }
.pill-tabs { display: inline-flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--pill); padding: 5px; box-shadow: var(--sh-1); margin: 26px 0 0; }
.pill-tab { padding: 10px 22px; border-radius: var(--pill); font-weight: 600; font-size: 15px; color: var(--ink-2); transition: all .22s var(--ease); border: none; }
.pill-tab:hover { color: var(--ink); }
.pill-tab.is-active { background: var(--ink); color: #fff; }
.appts { margin-top: 26px; display: grid; gap: 16px; }
.appt { display: flex; align-items: center; gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 24px; box-shadow: var(--sh-1); transition: transform .22s var(--ease), box-shadow .22s; }
.appt:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.appt-date { flex: none; width: 76px; text-align: center; padding-right: 22px; border-right: 1px solid var(--line); }
.appt-date .d { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1; color: var(--ink); }
.appt-date .m { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-top: 5px; }
.appt-main { flex: 1; min-width: 0; }
.appt-main h3 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.appt-info { display: flex; gap: 16px; flex-wrap: wrap; color: var(--ink-3); font-size: 14px; margin-top: 7px; }
.appt-info span { display: inline-flex; align-items: center; gap: 7px; }
.appt-info svg { width: 16px; height: 16px; }
.appt-info .appt-time { font-weight: 600; color: var(--ink-2); }
.appt-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex: none; }
.status { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 6px 13px; border-radius: var(--pill); white-space: nowrap; }
.status.ok, .status.confirmed, .status.confirmada { color: #0e8a4e; background: var(--green-soft); }
.status.pending, .status.pendiente { color: #854d0e; background: #fef9c3; }
.status.done, .status.completed { color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--line); }
.status.cancel, .status.cancelled, .status.cancelada { color: var(--coral); background: var(--coral-soft); }
.link-cancel { display: inline-flex; align-items: center; gap: 7px; color: var(--coral); font-weight: 600; font-size: 14px; padding: 8px 15px; border-radius: var(--pill); border: 1px solid var(--coral-soft); transition: background .2s; }
.link-cancel:hover { background: var(--coral-soft); }
.link-cancel svg { width: 16px; height: 16px; }
.appt.is-past { opacity: .82; }
.appt.is-past .appt-date .d { color: var(--ink-3); }

/* ============================================================
   AUTH / FORMS
   ============================================================ */
.auth-wrap { max-width: 440px; margin: 50px auto; padding: 0 18px; }
.auth-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 38px 32px; box-shadow: var(--sh-2);
}
.auth-card h1 { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: -.025em; text-align: center; margin-bottom: 6px; }
.auth-card .auth-sub { color: var(--ink-2); text-align: center; margin-bottom: 28px; font-size: 15px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--ink); }
.form-control, .auth-card input, .auth-card select, .auth-card textarea,
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 15px; font-family: var(--sans); color: var(--ink); background: #fff; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .auth-card input:focus, .auth-card select:focus, .auth-card textarea:focus,
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15,157,107,.12);
}
.auth-card textarea, .form-card textarea { resize: none; }

.form-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--ink-3); font-size: 14px; }
.form-divider::before, .form-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%;
  padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: var(--pill);
  font-weight: 600; font-size: 15px; color: var(--ink); box-shadow: var(--sh-1);
  transition: transform .14s var(--ease), box-shadow .2s;
}
.btn-google:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }

.auth-foot { text-align: center; margin-top: 22px; color: var(--ink-2); font-size: 14.5px; }
.auth-foot a, .auth-link { color: var(--brand); font-weight: 600; }
.forgot-link { display: block; text-align: right; margin-top: 8px; color: var(--brand); font-weight: 600; font-size: 14px; }

/* Password visibility toggle */
.password-field { position: relative; }
.password-field input { padding-right: 48px; }
.password-toggle {
  position: absolute; top: 0; right: 0; height: 100%; width: 46px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; color: var(--ink-3);
  transition: color .15s; padding: 0;
}
.password-toggle:hover { color: var(--ink); }
.password-toggle svg { width: 20px; height: 20px; }
.password-toggle .icon-eye-off { display: none; }
.password-field.is-visible .icon-eye { display: none; }
.password-field.is-visible .icon-eye-off { display: block; }

/* Profile avatar */
.profile-avatar {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 26px;
  font-family: var(--display);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.alert { padding: 14px 16px; border-radius: var(--r-sm); margin-bottom: 20px; font-size: 14.5px; }
.alert ul { list-style: none; }
.alert-error { background: var(--coral-soft); border: 1px solid #ffc9d4; color: #b3203f; }
.alert-success { background: var(--green-soft); border: 1px solid #bce8cd; color: #0a5e41; }

/* Generic page card (contact form etc.) */
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 32px; box-shadow: var(--sh-2);
}
.page-intro { text-align: center; margin-bottom: 28px; }
.page-intro h1 { font-family: var(--display); font-weight: 700; font-size: clamp(28px,4vw,40px); letter-spacing: -.025em; }
.page-intro p { color: var(--ink-2); margin-top: 8px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: var(--surface-2); padding: 40px 0; margin-top: auto; }
.footer .wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer p { color: var(--ink-3); font-size: 13.5px; }
.footer a { color: var(--brand); font-weight: 600; }

/* ============================================================
   PWA banner
   ============================================================ */
#pwa-install-banner {
  display: none; position: fixed; bottom: 1.5rem; left: 1rem; right: 1rem;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border: 1px solid var(--line); padding: 1rem; border-radius: var(--r-lg);
  z-index: 2500; box-shadow: var(--sh-3); animation: slideUp .5s var(--ease);
}
.pwa-content { display: flex; align-items: center; gap: 1rem; max-width: 500px; margin: 0 auto; }
.pwa-icon { width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; box-shadow: var(--sh-1); }
.pwa-text h4 { font-size: .95rem; font-weight: 700; margin-bottom: .15rem; }
.pwa-text p { font-size: .8rem; color: var(--ink-3); line-height: 1.4; }
.pwa-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.btn-pwa-install { background: var(--brand); color: #fff; border: none; padding: .6rem 1.25rem; border-radius: var(--pill); font-weight: 600; font-size: .85rem; cursor: pointer; white-space: nowrap; }
.btn-pwa-close { background: var(--surface-2); border: none; color: var(--ink-3); cursor: pointer; padding: .4rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.btn-pwa-close:hover { background: var(--line); color: var(--ink); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes rise { from { transform: translateY(10px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .tabpane.is-active, .booking-modal.active .booking-content { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 769px) { .mobile-business-banner { display: none; } }

@media (max-width: 768px) {
  .mobile-business-banner {
    display: block; background: var(--brand); color: #fff; text-align: center;
    padding: .55rem; font-size: .85rem; text-decoration: none; font-weight: 600;
  }
}

@media (max-width: 720px) {
  .wrap, .container { padding: 0 18px; }
  .topbar .wrap { height: 62px; }
  .brand .nav-logo { height: 26px; }
  .nav { gap: 2px; }
  .nav-link .txt { display: none; }
  .user-pill .uname { display: none; max-width: 80px; overflow: hidden; text-overflow: ellipsis; }
  .hero-inner { padding: 52px 0 40px; }
  .hero-stats { gap: 24px; }
  .grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .calendar-strip { gap: 6px; }
  .calendar-day { padding: 11px 2px; }
  .calendar-day .day-number { font-size: 18px; }
  .calendar-week { gap: 6px; }
  .calendar-week .round-btn { width: 34px; height: 34px; border-radius: 11px; }
  .calendar-week .round-btn svg, .calendar-week .round-btn i { width: 16px; height: 16px; }
  .booking-content { padding: 22px 18px 100px; }
  .booking-grid { grid-template-columns: 1fr; gap: 30px; }
  .summary { position: static; }
  .summary .confirm-here { display: none; }
  .confirm-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001;
    background: #fff; border-top: 1px solid var(--line); padding: 13px 18px;
    box-shadow: 0 -12px 30px -14px rgba(28,28,60,.22);
  }
  .confirm-bar .meta-c .t { font-weight: 700; font-size: 15px; }
  .confirm-bar .meta-c .s { font-size: 12.5px; color: var(--ink-3); }
  .confirm-bar .price-c { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--brand); }
  .appt { flex-wrap: wrap; gap: 14px; }
  .appt-date { width: auto; border-right: none; padding-right: 0; display: flex; align-items: baseline; gap: 8px; }
  .appt-date .d { font-size: 22px; }
  .appt-side { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; border-top: 1px solid var(--line-2); padding-top: 14px; }
  .profile-row { padding: 16px 20px 22px; flex-direction: column; align-items: flex-start; }
  .profile-logo { position: static; margin-top: -58px; }
  .profile-info { padding-left: 0; }
  .profile-cta { width: 100%; }
  .profile-cta .btn { width: 100%; }
}
