/* =========================================================================
   BUKER 2.0 — Design System
   Modern premium · warm porcelain canvas · plum accent · Fraunces + Inter
   ========================================================================= */

:root {
  /* Brand — plum / aubergine */
  --brand-50:  #F7F3FB;
  --brand-100: #EDE4F4;
  --brand-200: #DBC9E9;
  --brand-300: #C0A3D7;
  --brand-400: #A079C0;
  --brand-500: #845AA6;
  --brand-600: #6B4789;
  --brand-700: #543A6B;
  --brand-800: #402C50;

  /* Warm neutrals */
  --canvas:      #FAF7F2;
  --canvas-2:    #F3EEE6;
  --surface:     #FFFFFF;
  --surface-2:   #F6F2EB;
  --ink-900:     #1D1714;
  --ink-700:     #463F39;
  --ink-500:     #6E665E;
  --ink-400:     #908981;
  --ink-300:     #B4ADA4;
  --line:        #ECE5DA;
  --line-2:      #E0D8CB;
  --line-strong: #D2C8B8;

  /* Semantic */
  --gold:        #D8A23E;
  --success:     #2F7D5B;
  --success-bg:  #E5F1EA;
  --warning:     #B9822B;
  --warning-bg:  #F8EDD7;
  --danger:      #C0493B;
  --danger-bg:   #F8E3DF;
  --info:        #3C6CAB;
  --info-bg:     #E4ECF6;

  /* Radius */
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadow */
  --sh-xs: 0 1px 2px rgba(29,23,20,.06);
  --sh-sm: 0 1px 3px rgba(29,23,20,.05), 0 4px 12px rgba(29,23,20,.05);
  --sh-md: 0 2px 6px rgba(29,23,20,.05), 0 12px 30px rgba(29,23,20,.09);
  --sh-lg: 0 6px 18px rgba(29,23,20,.07), 0 24px 60px rgba(29,23,20,.13);
  --sh-brand: 0 10px 26px rgba(84,58,107,.30);

  /* Type */
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1180px;
  --header-h: 70px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--canvas);
  color: var(--ink-900);
  line-height: 1.55;
  font-size: 15.5px;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-200); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink-900); }
.display { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 500; line-height: 1.04; letter-spacing: -0.03em; }
.h-xl { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.h-lg { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.h-md { font-size: 1.3rem; }
.eyebrow {
  font-family: var(--font-sans); font-weight: 600; font-size: .76rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand-600);
}
.lede { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--ink-700); line-height: 1.6; }
.muted { color: var(--ink-500); }
.tiny { font-size: .8rem; }
.serif { font-family: var(--font-serif); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section-tight { padding-block: clamp(32px, 4vw, 56px); }
.stack > * + * { margin-top: var(--sp, 16px); }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wrap { flex-wrap: wrap; }
.grid { display: grid; gap: 22px; }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); border: 0; }
.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: .92rem; letter-spacing: -0.01em;
  padding: 12px 20px; border-radius: var(--r-pill);
  border: 1px solid transparent; transition: all .18s var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: var(--sh-brand); }
.btn-primary:hover { background: var(--brand-700); transform: translateY(-1px); box-shadow: 0 14px 30px rgba(84,58,107,.36); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: var(--surface); color: var(--ink-900); border-color: var(--line-2); box-shadow: var(--sh-xs); }
.btn-ghost:hover { border-color: var(--brand-300); background: var(--brand-50); color: var(--brand-700); }
.btn-soft { background: var(--brand-100); color: var(--brand-700); }
.btn-soft:hover { background: var(--brand-200); }
.btn-dark { background: var(--ink-900); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-1px); }
.btn-sm { padding: 9px 15px; font-size: .85rem; }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.btn-icon { padding: 10px; width: 40px; height: 40px; border-radius: 50%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none; }
.link { color: var(--brand-600); font-weight: 600; }
.link:hover { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line-2);
  font-weight: 500; font-size: .86rem; color: var(--ink-700);
  transition: all .15s var(--ease); white-space: nowrap; box-shadow: var(--sh-xs);
}
.chip:hover { border-color: var(--brand-300); color: var(--brand-700); background: var(--brand-50); transform: translateY(-1px); }
.chip.is-active { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.chip .ico { width: 17px; height: 17px; opacity: .8; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: .73rem; font-weight: 600; letter-spacing: .01em;
  background: var(--surface-2); color: var(--ink-700);
}
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.is-confirmed { background: var(--success-bg); color: var(--success); }
.badge.is-pending   { background: var(--warning-bg); color: var(--warning); }
.badge.is-completed { background: var(--brand-100); color: var(--brand-700); }
.badge.is-cancelled { background: var(--danger-bg);  color: var(--danger); }
.badge.is-noshow    { background: #EFE9E2; color: var(--ink-500); }
.badge-online { background: var(--info-bg); color: var(--info); }
.badge-new { background: var(--brand-600); color: #fff; }

/* ---------- Rating ---------- */
.rating { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: .88rem; }
.rating .star { color: var(--gold); }
.rating .count { color: var(--ink-500); font-weight: 500; }
.stars { display: inline-flex; gap: 1px; color: var(--gold); }
.stars svg { width: 15px; height: 15px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 600; font-size: .82rem; color: var(--ink-700); }
.input, .select, textarea.input {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: .95rem; transition: all .15s var(--ease); color: var(--ink-900);
}
.input::placeholder { color: var(--ink-300); }
.input:focus, .select:focus, textarea.input:focus {
  outline: none; border-color: var(--brand-400);
  box-shadow: 0 0 0 4px var(--brand-100);
}
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236E665E' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 38px; cursor: pointer; }
textarea.input { resize: vertical; min-height: 84px; line-height: 1.5; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-400); pointer-events: none; }
.input-icon .input { padding-left: 42px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: rgba(250,247,242,.82); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.site-header.is-stuck { border-color: var(--line); background: rgba(250,247,242,.94); box-shadow: var(--sh-xs); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-900); }
.brand .logo-mark { width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; background: var(--brand-600); color: #fff; display: grid; place-items: center; box-shadow: var(--sh-brand); }
.brand .logo-mark svg { width: 18px; height: 18px; }
.brand small { font-family: var(--font-sans); font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-600); background: var(--brand-100); padding: 2px 7px; border-radius: 5px; align-self: center; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 9px 13px; border-radius: var(--r-pill); font-weight: 500; font-size: .92rem; color: var(--ink-700); transition: all .15s; }
.nav a:hover { background: var(--surface-2); color: var(--ink-900); }
.header-spacer { flex: 1; }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Hero + Search ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(48px, 7vw, 90px); }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg::before { content: ""; position: absolute; width: 760px; height: 760px; right: -180px; top: -320px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(160,121,192,.30), rgba(160,121,192,0) 62%); filter: blur(8px); }
.hero-bg::after { content: ""; position: absolute; width: 620px; height: 620px; left: -220px; bottom: -360px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(216,162,62,.18), rgba(216,162,62,0) 62%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-pill); font-size: .82rem; font-weight: 500; color: var(--ink-700); box-shadow: var(--sh-xs); margin-bottom: 22px; }
.hero-eyebrow .pill { background: var(--brand-600); color: #fff; font-weight: 700; font-size: .68rem; letter-spacing: .04em; padding: 3px 9px; border-radius: var(--r-pill); }
.searchbar {
  margin-top: 28px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 8px; box-shadow: var(--sh-md);
  display: grid; grid-template-columns: 1.3fr 1px 1fr auto; gap: 6px; align-items: stretch;
}
.searchbar .sb-field { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r); transition: background .15s; }
.searchbar .sb-field:hover { background: var(--surface-2); }
.searchbar .sb-field svg { width: 19px; height: 19px; color: var(--brand-500); flex-shrink: 0; }
.searchbar .sb-field .sb-label { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-400); }
.searchbar .sb-field input, .searchbar .sb-field select { border: none; background: none; padding: 0; font-size: .95rem; font-weight: 500; width: 100%; }
.searchbar .sb-field input:focus, .searchbar .sb-field select:focus { outline: none; box-shadow: none; }
.searchbar .sb-sep { width: 1px; background: var(--line); align-self: center; height: 60%; }
.hero-stats { display: flex; gap: 28px; margin-top: 30px; }
.hero-stats .stat .num { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 600; color: var(--ink-900); }
.hero-stats .stat .lbl { font-size: .82rem; color: var(--ink-500); }

/* Hero collage (gradient cards) */
.hero-visual { position: relative; height: 460px; }
.collage-card { position: absolute; border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden; border: 5px solid #fff; }
.collage-card .cover { width: 100%; height: 100%; }
.collage-1 { width: 58%; height: 64%; top: 0; right: 4%; transform: rotate(2deg); }
.collage-2 { width: 50%; height: 56%; bottom: 0; left: 0; transform: rotate(-3deg); }
.collage-3 { width: 38%; height: 40%; bottom: 12%; right: 0; transform: rotate(4deg); z-index: 2; }
.float-badge { position: absolute; background: #fff; border-radius: var(--r); box-shadow: var(--sh-md); padding: 11px 15px; display: flex; align-items: center; gap: 10px; z-index: 3; }
.float-badge .fb-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.float-badge .fb-title { display: block; font-weight: 700; font-size: .88rem; line-height: 1.25; }
.float-badge .fb-sub { display: block; font-size: .76rem; color: var(--ink-500); }
.fb-1 { top: 8%; left: -4%; }
.fb-2 { bottom: 4%; right: 6%; }

/* ---------- Gradient covers (category art) ---------- */
.cover { position: relative; width: 100%; height: 100%; background: var(--canvas-2); overflow: hidden; }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(120px 120px at 78% 18%, rgba(255,255,255,.35), transparent 60%); }
.cover .cover-glyph { position: absolute; right: 12px; bottom: 8px; color: rgba(255,255,255,.45); width: 56px; height: 56px; }
.cover .cover-initial { position: absolute; left: 16px; top: 12px; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: rgba(255,255,255,.92); text-shadow: 0 1px 8px rgba(0,0,0,.18); }
.cover--frizer   { background: linear-gradient(135deg, #8E6FB0, #B98AC0 55%, #E2B6C9); }
.cover--barber   { background: linear-gradient(135deg, #3E4B66, #5E6E8C 55%, #8A95AC); }
.cover--kozmetika{ background: linear-gradient(135deg, #C98AA0, #E0A6A0 55%, #F0C9A6); }
.cover--nokti    { background: linear-gradient(135deg, #B5739B, #D58FA8 55%, #F0B7B0); }
.cover--masaza   { background: linear-gradient(135deg, #4E8C7D, #74AE94 55%, #AED0AE); }
.cover--makeup   { background: linear-gradient(135deg, #A85B7E, #D07988 55%, #EBA98A); }
.cover--trepavice{ background: linear-gradient(135deg, #6A5AA0, #9079BE 55%, #C2A6D6); }
.cover--spa      { background: linear-gradient(135deg, #50808E, #79A6A8 55%, #B2CFBE); }
.cover--default  { background: linear-gradient(135deg, var(--brand-500), var(--brand-300) 60%, #E0C7CE); }

/* ---------- Salon Card ---------- */
.salon-grid { grid-template-columns: repeat(3, 1fr); }
.salon-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; transition: all .2s var(--ease);
  display: flex; flex-direction: column; box-shadow: var(--sh-sm);
}
.salon-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--line-2); }
.salon-card .card-cover { height: 168px; position: relative; }
.salon-card .card-cover .cat-tag { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.92); backdrop-filter: blur(4px); color: var(--ink-900); padding: 5px 11px; border-radius: var(--r-pill); font-size: .74rem; font-weight: 700; box-shadow: var(--sh-xs); }
.salon-card .card-cover .fav { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: var(--sh-xs); color: var(--ink-500); transition: all .15s; }
.salon-card .card-cover .fav:hover { color: var(--danger); transform: scale(1.08); }
.salon-card .card-body { padding: 16px 17px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.salon-card .card-title { font-family: var(--font-serif); font-size: 1.22rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.salon-card .card-loc { display: flex; align-items: center; gap: 5px; font-size: .85rem; color: var(--ink-500); }
.salon-card .card-loc svg { width: 15px; height: 15px; }
.salon-card .card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.salon-card .mini-tag { font-size: .74rem; font-weight: 500; color: var(--ink-600, var(--ink-700)); background: var(--surface-2); padding: 4px 9px; border-radius: var(--r-pill); }
.salon-card .card-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.salon-card .price-from { font-size: .82rem; color: var(--ink-500); }
.salon-card .price-from b { color: var(--ink-900); font-size: .95rem; }
.open-dot { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; }
.open-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.open-dot.is-open { color: var(--success); }
.open-dot.is-open::before { background: var(--success); box-shadow: 0 0 0 3px var(--success-bg); }
.open-dot.is-closed { color: var(--ink-400); }
.open-dot.is-closed::before { background: var(--ink-300); }

/* ---------- Category tiles ---------- */
.cat-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-tile { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 18px 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); min-width: 104px; transition: all .18s var(--ease); }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: transparent; }
.cat-tile .cat-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; }
.cat-tile .cat-ico svg { width: 24px; height: 24px; }
.cat-tile span { font-size: .85rem; font-weight: 600; color: var(--ink-700); }

/* ---------- How it works ---------- */
.steps { grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.step .step-num { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 500; color: var(--brand-200); line-height: 1; }
.step h3 { font-size: 1.2rem; margin: 10px 0 8px; }
.step p { color: var(--ink-500); font-size: .92rem; }
.step .step-ico { position: absolute; top: 26px; right: 24px; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-100); color: var(--brand-600); display: grid; place-items: center; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--brand-700), var(--brand-500)); border-radius: var(--r-xl); padding: clamp(36px, 5vw, 64px); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -120px; top: -160px; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 65%); }
.cta-band h2 { color: #fff; }
.cta-band .lede { color: rgba(255,255,255,.86); }
.on-brand-light { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: #C9C2BA; padding-block: 56px 32px; }
.site-footer a { color: #C9C2BA; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .brand { color: #fff; }
.site-footer .brand .logo-mark { background: var(--brand-500); }
.footer-col h4 { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #8C857D; margin-bottom: 14px; font-weight: 700; }
.footer-col a { display: block; padding: 5px 0; font-size: .9rem; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #8C857D; }

/* Buy Me a Coffee button */
.bmc-btn { display: inline-flex; align-items: center; gap: 8px; background: #FFDD00; color: #0D0C0C; font-weight: 700; font-size: .88rem; padding: 10px 16px; border-radius: var(--r-pill); transition: transform .15s, box-shadow .15s; }
.bmc-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255,221,0,.4); color: #0D0C0C; }
.bmc-btn .cup { font-size: 1.05rem; }

/* App store badges */
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--ink-900); color: #fff; padding: 9px 16px; border-radius: var(--r); border: 1px solid rgba(255,255,255,.14); }
.store-badge svg { width: 22px; height: 22px; }
.store-badge .sb-small { font-size: .66rem; opacity: .8; line-height: 1; }
.store-badge .sb-big { font-size: .98rem; font-weight: 600; line-height: 1.2; }

/* =========================================================================
   SALON PAGE
   ========================================================================= */
.salon-hero { height: 320px; position: relative; border-radius: 0 0 var(--r-xl) var(--r-xl); overflow: hidden; }
.salon-hero .cover { width: 100%; height: 100%; }
.salon-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(29,23,20,.5), rgba(29,23,20,0) 55%); }
.salon-header-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-md); padding: 24px; margin-top: -72px; position: relative; z-index: 2; }
.salon-layout { display: grid; grid-template-columns: 1fr 380px; gap: 34px; align-items: start; }
.salon-layout > * { min-width: 0; } /* prevent grid blow-out on narrow screens */
.booking-panel { position: sticky; top: calc(var(--header-h) + 18px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-md); overflow: hidden; }
.booking-panel .bp-head { padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.booking-panel .bp-body { padding: 18px 20px; }
.booking-panel .bp-foot { padding: 16px 20px; border-top: 1px solid var(--line); background: var(--surface-2); }

.svc-group + .svc-group { margin-top: 28px; }
.svc-group h3 { font-size: 1.15rem; margin-bottom: 4px; }
.svc-item { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.svc-item:last-child { border-bottom: 0; }
.svc-item .svc-info { flex: 1; min-width: 0; }
.svc-item .svc-name { font-weight: 600; font-size: .98rem; }
.svc-item .svc-meta { font-size: .84rem; color: var(--ink-500); margin-top: 3px; display: flex; gap: 14px; }
.svc-item .svc-price { font-weight: 700; font-size: 1rem; text-align: right; min-width: 64px; }
.svc-item.is-selected { background: var(--brand-50); margin-inline: -14px; padding-inline: 14px; border-radius: var(--r); border-bottom-color: transparent; }

.staff-strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.staff-strip::-webkit-scrollbar { display: none; }
.staff-card { flex-shrink: 0; width: 150px; text-align: center; padding: 18px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: all .15s; }
.staff-card:hover { border-color: var(--brand-300); box-shadow: var(--sh-sm); }
.avatar { border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-family: var(--font-sans); flex-shrink: 0; }
.staff-card .avatar { width: 64px; height: 64px; font-size: 1.4rem; margin: 0 auto 10px; }
.staff-card .st-name { font-weight: 600; }
.staff-card .st-role { font-size: .82rem; color: var(--ink-500); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-grid .cover { aspect-ratio: 1; border-radius: var(--r); }

.review-summary { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; padding: 22px; background: var(--surface-2); border-radius: var(--r-lg); }
.review-score { text-align: center; }
.review-score .big { font-family: var(--font-serif); font-size: 3.2rem; font-weight: 600; line-height: 1; }
.review-bars { display: flex; flex-direction: column; gap: 6px; }
.rbar { display: flex; align-items: center; gap: 10px; font-size: .82rem; }
.rbar .track { flex: 1; height: 7px; background: var(--line-2); border-radius: var(--r-pill); overflow: hidden; }
.rbar .fill { display: block; height: 100%; background: var(--gold); border-radius: var(--r-pill); }
.review-item { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; }
.review-item .avatar { width: 44px; height: 44px; font-size: 1rem; }
.review-item .rv-name { font-weight: 600; }
.review-item .rv-date { font-size: .8rem; color: var(--ink-400); }
.review-item p { color: var(--ink-700); margin-top: 6px; font-size: .92rem; }

/* Booking flow steps */
.bp-steps { display: flex; gap: 6px; margin-bottom: 4px; }
.bp-steps .dot { flex: 1; height: 4px; border-radius: var(--r-pill); background: var(--line-2); transition: background .2s; }
.bp-steps .dot.is-active, .bp-steps .dot.is-done { background: var(--brand-500); }
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { padding: 10px 4px; border: 1px solid var(--line-2); border-radius: var(--r-sm); text-align: center; font-weight: 600; font-size: .86rem; background: var(--surface); transition: all .12s; }
.slot:hover:not(:disabled) { border-color: var(--brand-400); color: var(--brand-700); }
.slot.is-selected { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.slot:disabled { color: var(--ink-300); background: var(--canvas-2); cursor: not-allowed; text-decoration: line-through; }
.mini-cal { }
.mini-cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.mini-cal-days .dow { text-align: center; font-size: .68rem; font-weight: 700; color: var(--ink-400); text-transform: uppercase; padding-bottom: 4px; }
.cal-day { aspect-ratio: 1; border-radius: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 600; font-size: .86rem; border: 1px solid transparent; transition: all .12s; }
.cal-day:hover:not(:disabled) { background: var(--brand-50); }
.cal-day.is-selected { background: var(--brand-600); color: #fff; }
.cal-day:disabled { color: var(--ink-300); cursor: not-allowed; }
.cal-day .dnum { line-height: 1; }
.cal-day .dlbl { font-size: .58rem; font-weight: 600; opacity: .7; }

.summary-line { display: flex; justify-content: space-between; padding: 7px 0; font-size: .9rem; }
.summary-line.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 700; font-size: 1.05rem; }

/* =========================================================================
   DASHBOARD
   ========================================================================= */
.dash { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.dash-sidebar { background: var(--ink-900); color: #C9C2BA; padding: 20px 16px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; }
.dash-sidebar .brand { color: #fff; padding: 6px 8px 18px; }
.dash-sidebar .brand .logo-mark { background: var(--brand-500); }
.salon-switch { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); padding: 11px 13px; display: flex; align-items: center; gap: 11px; margin-bottom: 14px; cursor: pointer; transition: background .15s; }
.salon-switch:hover { background: rgba(255,255,255,.1); }
.salon-switch .avatar { width: 36px; height: 36px; font-size: .9rem; border-radius: 10px; }
.salon-switch .ss-name { font-weight: 600; color: #fff; font-size: .9rem; line-height: 1.2; }
.salon-switch .ss-sub { font-size: .74rem; color: #8C857D; }
.nav-section-label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6E675F; padding: 14px 12px 6px; }
.dash-nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); font-weight: 500; font-size: .92rem; color: #B7B0A7; transition: all .14s; cursor: pointer; }
.dash-nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.dash-nav-item.is-active { background: var(--brand-600); color: #fff; box-shadow: var(--sh-sm); }
.dash-nav-item svg { width: 19px; height: 19px; }
.dash-nav-item .badge { margin-left: auto; background: var(--brand-500); color: #fff; }
.dash-sidebar-foot { margin-top: auto; }

.dash-main { display: flex; flex-direction: column; min-width: 0; background: var(--canvas); }
.dash-topbar { height: 66px; background: rgba(250,247,242,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 0 26px; position: sticky; top: 0; z-index: 20; }
.dash-topbar h1 { font-size: 1.35rem; }
.dash-content { padding: 26px; flex: 1; }
.view { display: none; }
.view.is-active { display: block; animation: fadeIn .25s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* KPI cards */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-sm); }
.kpi .kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi .kpi-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.kpi .kpi-val { font-family: var(--font-serif); font-size: 2rem; font-weight: 600; margin-top: 14px; line-height: 1; }
.kpi .kpi-lbl { font-size: .86rem; color: var(--ink-500); margin-top: 6px; }
.kpi .kpi-trend { font-size: .8rem; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; margin-top: 8px; }
.kpi .kpi-trend.up { color: var(--success); }
.kpi .kpi-trend.down { color: var(--danger); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.panel-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h3 { font-size: 1.1rem; }
.panel-body { padding: 20px; }

/* Calendar (dashboard) */
.cal-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.seg button { padding: 7px 15px; border-radius: var(--r-pill); font-weight: 600; font-size: .85rem; color: var(--ink-500); }
.seg button.is-active { background: var(--surface); color: var(--ink-900); box-shadow: var(--sh-xs); }
.cal-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); }
.cal-head { display: grid; border-bottom: 1px solid var(--line); }
.cal-head .ch-cell { padding: 12px; text-align: center; border-left: 1px solid var(--line); }
.cal-head .ch-cell:first-child { border-left: 0; }
.cal-head .ch-name { font-weight: 600; font-size: .9rem; }
.cal-head .ch-role { font-size: .75rem; color: var(--ink-500); }
.cal-body { display: grid; position: relative; max-height: 620px; overflow-y: auto; }
.cal-time-col { border-right: 1px solid var(--line); }
.cal-time-slot { height: 56px; padding: 4px 8px; font-size: .72rem; color: var(--ink-400); text-align: right; border-top: 1px solid var(--line); }
.cal-col { border-left: 1px solid var(--line); position: relative; }
.cal-col .cal-time-slot { border-right: 0; }
.cal-slot-bg { height: 56px; border-top: 1px solid var(--line); transition: background .12s; }
.cal-slot-bg:hover { background: var(--brand-50); cursor: pointer; }
.appt { position: absolute; left: 4px; right: 4px; border-radius: 9px; padding: 7px 9px; font-size: .78rem; overflow: hidden; cursor: pointer; border-left: 3px solid; transition: transform .12s, box-shadow .12s; box-shadow: var(--sh-xs); }
.appt:hover { transform: scale(1.015); box-shadow: var(--sh-md); z-index: 5; }
.appt .appt-time { font-weight: 700; font-size: .72rem; opacity: .85; }
.appt .appt-name { font-weight: 600; }
.appt .appt-svc { opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt.s-confirmed { background: var(--success-bg); border-color: var(--success); color: #1E5C40; }
.appt.s-pending { background: var(--warning-bg); border-color: var(--warning); color: #7A560F; }
.appt.s-completed { background: var(--brand-100); border-color: var(--brand-500); color: var(--brand-800); }
.appt.s-cancelled { background: var(--danger-bg); border-color: var(--danger); color: #8A2C20; opacity: .7; }
.appt.s-noshow { background: #EFE9E2; border-color: var(--ink-400); color: var(--ink-700); }

/* ---------- Week-view calendar (Buker mobile style) ---------- */
.weekcal-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); }
.weekcal-head { display: grid; grid-template-columns: 50px repeat(7, 1fr); border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 4; }
.weekcal-head-cell { padding: 10px 4px 12px; text-align: center; border-left: 1px solid var(--line); }
.weekcal-head-cell:first-child { border-left: 0; }
.weekcal-head-cell .dow-lbl { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-400); }
.weekcal-head-cell .dow-num { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; line-height: 1.1; margin-top: 2px; }
.weekcal-head-cell.is-today { background: var(--brand-50); }
.weekcal-head-cell.is-today .dow-num, .weekcal-head-cell.is-today .dow-lbl { color: var(--brand-700); }
.weekcal-body { position: relative; max-height: 620px; overflow-y: auto; display: grid; grid-template-columns: 50px 1fr; }
.weekcal-time-col { position: relative; border-right: 1px solid var(--line); }
.weekcal-hour { position: absolute; left: 0; right: 0; font-size: .68rem; color: var(--ink-400); text-align: right; padding-right: 6px; transform: translateY(-50%); padding-top: 1px; background: var(--surface); }
.weekcal-days { position: relative; display: grid; }
.weekcal-day { position: relative; border-left: 1px solid var(--line); overflow: hidden; }
.weekcal-day:first-child { border-left: 0; }
.weekcal-day.is-today { background: rgba(132, 90, 166, .04); }
.weekcal-hr { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.weekcal-hr:nth-child(odd) { background: var(--line-2); }
.weekcal-closed {
  position: absolute; left: 0; right: 0;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(180,173,164,.22) 5px, rgba(180,173,164,.22) 6px);
  background-color: rgba(236,229,218,.4);
  z-index: 0;
}
.weekcal-appt {
  position: absolute; left: 2px; right: 2px;
  border-left: 3px solid;
  border-radius: 5px;
  padding: 3px 5px;
  font-size: .68rem; line-height: 1.15;
  overflow: hidden;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 1px 2px rgba(29,23,20,.08);
  transition: transform .12s, box-shadow .12s;
}
.weekcal-appt:hover { transform: scale(1.02); z-index: 5; box-shadow: var(--sh-sm); }
.weekcal-appt .appt-time { font-weight: 700; font-size: .64rem; opacity: .9; }
.weekcal-appt .appt-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.weekcal-now { position: absolute; height: 2px; background: var(--danger); z-index: 6; pointer-events: none; }
.weekcal-now .dot { position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); }

@media (max-width: 720px) {
  .weekcal-head-cell .dow-num { font-size: 1.05rem; }
  .weekcal-body { max-height: 70vh; }
  .weekcal-appt { font-size: .62rem; padding: 2px 3px; }
}

/* Tables */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-400); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--surface-2); cursor: pointer; }
.table .avatar { width: 34px; height: 34px; font-size: .82rem; }
.cell-user { display: flex; align-items: center; gap: 10px; }
.cell-user .cu-name { font-weight: 600; }
.cell-user .cu-sub { font-size: .78rem; color: var(--ink-500); }

/* Charts */
.chart-bars { display: flex; align-items: flex-end; gap: 10px; height: 200px; padding-top: 10px; }
.chart-bars .cbar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.chart-bars .cbar { width: 100%; max-width: 42px; border-radius: 7px 7px 0 0; background: linear-gradient(to top, var(--brand-500), var(--brand-300)); transition: height .6s var(--ease); position: relative; }
.chart-bars .cbar:hover { background: linear-gradient(to top, var(--brand-600), var(--brand-400)); }
.chart-bars .cbar-lbl { font-size: .76rem; color: var(--ink-500); font-weight: 600; }
.chart-bars .cbar-val { font-size: .72rem; color: var(--ink-400); }
.hbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hbar .hbar-lbl { width: 130px; font-size: .86rem; font-weight: 500; flex-shrink: 0; }
.hbar .hbar-track { flex: 1; height: 26px; background: var(--surface-2); border-radius: var(--r-sm); overflow: hidden; }
.hbar .hbar-fill { height: 100%; background: linear-gradient(90deg, var(--brand-600), var(--brand-400)); border-radius: var(--r-sm); display: flex; align-items: center; padding-left: 10px; color: #fff; font-size: .76rem; font-weight: 700; min-width: 32px; transition: width .6s var(--ease); }
.hbar .hbar-num { font-weight: 700; font-size: .9rem; width: 60px; text-align: right; }

.donut-wrap { display: flex; align-items: center; gap: 26px; }
.donut { width: 150px; height: 150px; border-radius: 50%; flex-shrink: 0; position: relative; }
.donut .donut-hole { position: absolute; inset: 26px; background: var(--surface); border-radius: 50%; display: grid; place-items: center; text-align: center; }
.donut-hole .dh-num { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; }
.donut-hole .dh-lbl { font-size: .72rem; color: var(--ink-500); }
.legend { display: flex; flex-direction: column; gap: 10px; }
.legend-item { display: flex; align-items: center; gap: 9px; font-size: .88rem; }
.legend-item .dot { width: 11px; height: 11px; border-radius: 3px; }
.legend-item .lg-val { margin-left: auto; font-weight: 600; }

/* =========================================================================
   MODAL / DRAWER / TOAST
   ========================================================================= */
.overlay { position: fixed; inset: 0; background: rgba(29,23,20,.42); backdrop-filter: blur(2px); z-index: 100; opacity: 0; pointer-events: none; transition: opacity .2s; }
.overlay.is-open { opacity: 1; pointer-events: auto; }
.modal { position: fixed; z-index: 101; left: 50%; top: 50%; transform: translate(-50%, -46%); width: min(520px, calc(100vw - 32px)); max-height: 90vh; overflow-y: auto; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-lg); opacity: 0; pointer-events: none; transition: all .24s var(--ease); }
.modal.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.modal-head { padding: 22px 24px 0; display: flex; justify-content: space-between; align-items: flex-start; }
.modal-body { padding: 18px 24px 24px; }
.modal-x { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-500); transition: all .15s; }
.modal-x:hover { background: var(--line-2); color: var(--ink-900); }

.drawer { position: fixed; z-index: 101; right: 0; top: 0; height: 100vh; width: min(440px, 100vw); background: var(--surface); box-shadow: var(--sh-lg); transform: translateX(100%); transition: transform .28s var(--ease); display: flex; flex-direction: column; }
.drawer.is-open { transform: none; }
.drawer-head { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer-body { padding: 22px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; }

.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { background: var(--ink-900); color: #fff; padding: 13px 20px; border-radius: var(--r-pill); box-shadow: var(--sh-lg); display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: .9rem; animation: toastIn .3s var(--ease); }
.toast.is-success { background: var(--success); }
.toast .t-ico { width: 18px; height: 18px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Info rows */
.info-row { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row svg { width: 19px; height: 19px; color: var(--brand-500); flex-shrink: 0; margin-top: 1px; }
.info-row .ir-label { font-size: .78rem; color: var(--ink-500); }
.info-row .ir-value { font-weight: 500; }

.hours-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: .9rem; border-bottom: 1px dashed var(--line); }
.hours-row.is-today { font-weight: 700; color: var(--brand-700); }

/* Empty state */
.empty { text-align: center; padding: 48px 24px; color: var(--ink-500); }
.empty .empty-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--surface-2); color: var(--ink-300); display: grid; place-items: center; margin: 0 auto 14px; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 12px 16px; font-weight: 600; font-size: .92rem; color: var(--ink-500); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .15s; flex-shrink: 0; white-space: nowrap; }
.tab:hover { color: var(--ink-900); }
.tab.is-active { color: var(--brand-700); border-color: var(--brand-600); }

/* Misc */
.scrim-top { background: linear-gradient(var(--canvas), transparent); }
.pill-toggle { display: inline-flex; gap: 6px; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--canvas-2), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { height: 360px; max-width: 520px; }
  .salon-grid { grid-template-columns: repeat(2, 1fr); }
  .salon-layout { grid-template-columns: 1fr; }
  .booking-panel { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .searchbar { grid-template-columns: 1fr; }
  .searchbar .sb-sep { display: none; }
  .steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .dash { grid-template-columns: 1fr; }
  .dash-sidebar { position: fixed; left: 0; top: 0; z-index: 80; transform: translateX(-100%); transition: transform .26s var(--ease); width: 248px; }
  .dash-sidebar.is-open { transform: none; }
  .menu-toggle { display: inline-flex !important; }
}
@media (max-width: 560px) {
  .salon-card .card-cover { height: 150px; }
  .salon-grid { grid-template-columns: 1fr; }
  .review-summary { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .header-actions .btn-hide-sm { display: none; }
}
.menu-toggle { display: none; }

/* =========================================================================
   STORIES & REELS
   ========================================================================= */

/* Story tiles in dashboard — image-first, Instagram-style */
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 14px; }
.story-tile { position: relative; background: transparent; border: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 4px 14px rgba(29,23,20,.10), 0 1px 3px rgba(29,23,20,.06); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.story-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(29,23,20,.16), 0 2px 5px rgba(29,23,20,.08); }
.story-tile .story-thumb { position: relative; aspect-ratio: 9/16; background: linear-gradient(135deg, var(--brand-100), var(--canvas-2)); overflow: hidden; border-radius: 18px; }
.story-tile .story-thumb img, .story-tile .story-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Top row badges (time pill + optional video icon) */
.story-tile .tile-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; align-items: center; z-index: 2; }
.story-tile .tile-badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; font-size: .68rem; font-weight: 700; color: #fff; background: rgba(0,0,0,.42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 999px; letter-spacing: .02em; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.story-tile .tile-badge-time { margin-left: auto; }
.story-tile .tile-badge-video { padding: 0 7px; }
.story-tile .tile-badge-hl { margin-left: auto; background: linear-gradient(135deg, #E0AC4A, #C8902F); color: #fff; padding: 0 7px; }

/* Floating action buttons bottom-right */
.story-tile .tile-actions { position: absolute; bottom: 10px; right: 10px; display: flex; gap: 6px; z-index: 3; opacity: 0; transform: translateY(4px); transition: opacity .18s, transform .18s; }
.story-tile:hover .tile-actions, .story-tile:focus-within .tile-actions { opacity: 1; transform: none; }
.story-tile .tile-ic { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; color: var(--ink-900); box-shadow: 0 2px 6px rgba(0,0,0,.22); transition: transform .12s, background .12s; }
.story-tile .tile-ic:hover { transform: scale(1.08); }
.story-tile .tile-ic-danger { color: var(--danger); }

/* Touch devices and small screens: actions always visible */
@media (hover: none), (max-width: 640px) {
  .story-tile .tile-actions { opacity: 1; transform: none; }
}

/* Caption overlay with gradient fade */
.story-tile .tile-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; color: #fff; font-size: .82rem; font-weight: 500; line-height: 1.3; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0)); text-shadow: 0 1px 3px rgba(0,0,0,.4); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; z-index: 1; pointer-events: none; }
/* When actions are visible, slide caption a bit to the left so it doesn't underflow them */
.story-tile:hover .tile-caption { padding-right: 90px; }

/* Story row on homepage */
.home-stories-section { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0 26px; }
.home-stories-section .row-between { margin-bottom: 6px; padding-top: 0 !important; }
.home-stories-section .eyebrow { color: var(--brand-600); }
.home-stories-row { display: flex; gap: 22px; overflow-x: auto; padding: 14px 4px 4px; margin: 0 -4px; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.home-stories-row::-webkit-scrollbar { display: none; }
.home-stories-row .story-bubble { scroll-snap-align: start; flex-shrink: 0; background: none; border: 0; padding: 0; cursor: pointer; gap: 8px; }
.home-stories-row .story-bubble .ring { width: 76px; height: 76px; padding: 3px; box-shadow: 0 2px 8px rgba(132,90,166,.18); }
.home-stories-row .story-bubble:hover .ring { box-shadow: 0 4px 14px rgba(132,90,166,.32); }
.home-stories-row .story-bubble .lbl {
  width: 92px; text-align: center; font-size: .76rem; font-weight: 600; color: var(--ink-900);
  line-height: 1.25; height: calc(.76rem * 1.25 * 2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Link in story viewer (homepage chaining) */
.story-viewer .sv-link { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,.96); color: var(--ink-900); font-weight: 600; font-size: .82rem; padding: 8px 16px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.25); text-decoration: none; z-index: 4; }
.story-viewer .sv-link:hover { background: #fff; color: var(--brand-700); }

/* Story rail on public salon profile */
.story-rail { display: flex; gap: 16px; overflow-x: auto; padding: 6px 0; scrollbar-width: none; margin-bottom: 18px; }
.story-rail::-webkit-scrollbar { display: none; }
.story-bubble { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; transition: transform .15s; }
.story-bubble:hover { transform: translateY(-2px); }
.story-bubble .ring { display: block; width: 64px; height: 64px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, #845AA6, #C98AA0, #D8A23E, #845AA6); }
.story-bubble.is-seen .ring { background: var(--line-2); }
.story-bubble .ring-inner { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; padding: 2px; overflow: hidden; box-sizing: border-box; }
.story-bubble .ring-inner > * { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.story-bubble .lbl { font-size: .76rem; max-width: 70px; text-align: center; line-height: 1.2; color: var(--ink-700); }

/* Full-screen story viewer */
.story-viewer { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.96); opacity: 0; pointer-events: none; transition: opacity .2s; display: grid; place-items: center; }
.story-viewer.is-open { opacity: 1; pointer-events: auto; }
.story-viewer .sv-frame { width: min(420px, 100vw); height: min(90vh, calc(420px * 16 / 9)); background: #000; border-radius: 18px; overflow: hidden; position: relative; }
@media (max-width: 480px) {
  .story-viewer .sv-frame { width: 100vw; height: 100vh; border-radius: 0; }
}
.story-viewer .sv-frame img, .story-viewer .sv-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-viewer .sv-progress { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 2; }
.story-viewer .sv-progress .bar { flex: 1; height: 3px; background: rgba(255,255,255,.3); border-radius: 2px; overflow: hidden; }
.story-viewer .sv-progress .bar .fill { width: 0; height: 100%; background: #fff; }
.story-viewer .sv-progress .bar.done .fill { width: 100%; }
.story-viewer .sv-progress .bar.active .fill { animation: sv-progress var(--dur, 5s) linear forwards; }
@keyframes sv-progress { from { width: 0; } to { width: 100%; } }
.story-viewer .sv-header { position: absolute; top: 24px; left: 12px; right: 12px; display: flex; align-items: center; gap: 10px; color: #fff; z-index: 2; }
.story-viewer .sv-header .avatar { width: 36px; height: 36px; font-size: .9rem; border: 2px solid #fff; }
.story-viewer .sv-header .name { font-weight: 600; font-size: .9rem; flex: 1; }
.story-viewer .sv-header .time { font-size: .75rem; opacity: .7; }
.story-viewer .sv-close { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; backdrop-filter: blur(8px); }
.story-viewer .sv-caption { position: absolute; bottom: 28px; left: 18px; right: 18px; color: #fff; font-size: .92rem; text-shadow: 0 1px 6px rgba(0,0,0,.6); z-index: 2; line-height: 1.3; }
.story-viewer .sv-nav { position: absolute; top: 0; bottom: 0; width: 35%; cursor: pointer; z-index: 1; }
.story-viewer .sv-nav.left { left: 0; }
.story-viewer .sv-nav.right { right: 0; }

/* ---------- Dashboard mobile ---------- */
.dash-main { min-width: 0; } /* keep the 1fr column from expanding to its content */
@media (max-width: 860px) {
  .dash-main { overflow-x: hidden; }
  .dash-topbar { height: auto; min-height: 58px; flex-wrap: wrap; padding: 10px 14px; gap: 8px 10px; }
  .dash-topbar .header-spacer { display: none; }
  .menu-toggle { order: 0; }
  .dash-topbar h1 { order: 1; flex: 1 1 auto; font-size: 1.15rem; }
  #newBookingBtn { order: 2; }
  #topbarExtra { order: 3; width: 100%; flex-wrap: wrap; }
  #topbarExtra strong { min-width: 0 !important; }
  .dash-content { padding: 16px 14px; }
  /* collapse inline multi-column grids (reports, client stats, settings) */
  .dash-content .grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 560px) {
  #newBookingBtn span { display: none; } /* icon-only "+" on very narrow screens */
  #newBookingBtn { padding: 9px 12px; }
}
