:root {
  --plum: #3b1f4a;
  --plum-2: #5a2e6e;
  --rose: #e0688a;
  --rose-2: #f4a6b8;
  --gold: #d9a35b;
  --bg: #fbf7f5;
  --card: #ffffff;
  --text: #2a2230;
  --muted: #7a6f80;
  --line: #ece4e8;
  --green: #2e9e6a;
  --amber: #d48a1f;
  --red: #cf4458;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(59, 31, 74, 0.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; margin: 0 0 .4em; color: var(--plum); }
h2 { font-size: 1.8rem; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--text); width: 100%;
}
input:focus, select:focus { outline: 2px solid var(--rose-2); border-color: var(--rose); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
[hidden] { display: none !important; }

.demo-banner {
  background: var(--plum); color: #f3e7f7; text-align: center; font-size: .8rem; padding: 6px 12px;
}
.demo-banner .link-btn { color: var(--rose-2); }

/* Buttons */
.btn {
  border: none; border-radius: 999px; padding: 11px 22px; font-weight: 600; transition: .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-primary { background: linear-gradient(135deg, var(--rose), var(--plum-2)); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--plum); }
.btn-ghost:hover { border-color: var(--rose); }
.btn-green { background: var(--green); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .8rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.link-btn { background: none; border: none; color: var(--rose); font-weight: 600; padding: 0; }

/* Topbar */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1000; }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font-family: "Playfair Display", serif; font-size: 1.5rem; font-weight: 700; color: var(--plum); display: flex; align-items: center; gap: 8px; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--rose), var(--plum-2)); color: #fff; display: grid; place-items: center; font-size: 1.1rem; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav a.active, .nav a:hover { color: var(--plum); background: #f6eef3; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { position: relative; background: #f6eef3; border: none; width: 40px; height: 40px; border-radius: 50%; color: var(--plum); display: grid; place-items: center; }
.badge { position: absolute; top: -3px; right: -3px; background: var(--rose); color: #fff; font-size: .7rem; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.menu-btn { display: none; font-size: 1.2rem; }
.user-chip { display: flex; align-items: center; gap: 8px; background: #f6eef3; border-radius: 999px; padding: 4px 12px 4px 4px; font-weight: 600; font-size: .9rem; border: none; color: var(--plum); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--plum-2); color: #fff; display: grid; place-items: center; font-size: .85rem; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% 10%, #f8d7e1 0%, transparent 60%), linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding-top: 60px; padding-bottom: 60px; }
.eyebrow { color: var(--rose); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; font-size: .8rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; margin-top: 10px; }
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 520px; }
.search-bar { display: flex; gap: 10px; background: #fff; padding: 10px; border-radius: 20px; box-shadow: var(--shadow); margin-top: 24px; align-items: flex-end; }
.search-bar .field { flex: 1; }
.search-bar label { font-size: .72rem; font-weight: 600; color: var(--muted); padding-left: 4px; text-transform: uppercase; }
.search-bar input, .search-bar select { border: none; background: #faf6f8; }
.near-me { margin-top: 14px; }
.hero-card { display: flex; justify-content: center; }
.phone { width: 270px; height: 460px; background: #1d1424; border-radius: 40px; padding: 50px 16px 16px; box-shadow: 0 30px 60px rgba(59,31,74,.3); position: relative; display: flex; flex-direction: column; gap: 12px; }
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; background: #000; border-radius: 12px; }
.phone-msg { background: #2f2538; color: #f1e6f5; border-radius: 16px; padding: 12px; font-size: .85rem; animation: pop .6s ease both; }
.phone-msg.alt { background: var(--rose); color: #fff; animation-delay: .8s; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 40px 0; }
.feature { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); margin: 0; font-size: .92rem; }
.f-ico { font-size: 1.6rem; margin-bottom: 8px; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 30px 0 16px; flex-wrap: wrap; }
.section-head select { width: auto; min-width: 220px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }

/* Salon card */
.salon-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: .2s; border: 2px solid transparent; }
.salon-card:hover, .salon-card.highlight { transform: translateY(-3px); border-color: var(--rose-2); }
.salon-img { height: 140px; display: grid; place-items: center; font-size: 3rem; position: relative; }
.salon-img .tag { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.92); color: var(--plum); font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.salon-img .dist { left: auto; right: 10px; }
.salon-body { padding: 14px 16px 16px; }
.salon-body h3 { font-size: 1.1rem; margin-bottom: 2px; }
.salon-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; }
.stars { color: var(--gold); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { background: #f6eef3; color: var(--plum-2); font-size: .72rem; padding: 3px 9px; border-radius: 999px; font-weight: 600; }

.how { margin: 60px 0; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.steps span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--rose); color: #fff; font-weight: 700; margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 4px 0 0; font-size: .9rem; }

/* Explore */
.explore { display: grid; grid-template-columns: 420px 1fr; height: calc(100vh - 64px - 30px); }
.explore-list { overflow-y: auto; border-right: 1px solid var(--line); background: var(--bg); }
.filters { position: sticky; top: 0; background: var(--bg); padding: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 2; border-bottom: 1px solid var(--line); }
.filter-row { display: flex; gap: 8px; }
.filter-row .btn { white-space: nowrap; padding: 8px 14px; }
.result-count { font-size: .85rem; color: var(--muted); }
.salon-list { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.salon-list .salon-card { display: grid; grid-template-columns: 110px 1fr; }
.salon-list .salon-img { height: auto; min-height: 110px; font-size: 2.2rem; }
.salon-list .salon-img .tag { display: none; }
.map-wrap { position: relative; }
#map { position: absolute; inset: 0; }
.map-pin { background: var(--plum-2); color: #fff; border-radius: 999px; padding: 4px 10px; font-weight: 700; font-size: .78rem; white-space: nowrap; box-shadow: 0 4px 10px rgba(0,0,0,.25); border: 2px solid #fff; transform: translate(-50%, -50%); display: inline-block; }
.map-pin.active { background: var(--rose); transform: translate(-50%, -50%) scale(1.15); }
.me-pin { width: 18px; height: 18px; border-radius: 50%; background: #3b82f6; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(59,130,246,.25); }
.leaflet-popup-content { font-family: Inter, sans-serif; }

/* Page */
.page { padding: 30px 16px 60px; min-height: 60vh; }
.empty { background: #fff; border-radius: var(--radius); padding: 40px; text-align: center; box-shadow: var(--shadow); color: var(--muted); }
.booking-item { background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); display: grid; grid-template-columns: 60px 1fr auto; gap: 16px; align-items: center; margin-bottom: 12px; }
.booking-date { background: #f6eef3; border-radius: 12px; text-align: center; padding: 6px; color: var(--plum); }
.booking-date b { display: block; font-size: 1.4rem; line-height: 1; }
.booking-date small { text-transform: uppercase; font-size: .7rem; font-weight: 700; }
.status { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.status.confirmed { background: #fdf1df; color: var(--amber); }
.status.completed { background: #e3f5ec; color: var(--green); }
.status.cancelled { background: #fbe4e8; color: var(--red); }
.status.authorized { background: #ede7fb; color: #6a4bc4; }

/* Dashboard */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stat small { color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: .72rem; }
.stat b { display: block; font-size: 1.7rem; color: var(--plum); font-family: "Playfair Display", serif; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tab { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-weight: 600; color: var(--muted); font-size: .88rem; }
.tab.active { background: var(--plum); color: #fff; border-color: var(--plum); }
.table-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 760px; }
.table th { text-align: left; padding: 14px 16px; color: var(--muted); font-size: .75rem; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(29, 20, 36, .55); backdrop-filter: blur(3px); }
.modal-card { position: relative; background: #fff; border-radius: 22px; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.25); animation: pop .25s ease; }
.modal-card.wide { max-width: 760px; }
.modal-close { position: absolute; top: 14px; right: 16px; background: #f6eef3; border: none; width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; color: var(--plum); line-height: 1; }
.form { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.form label { font-size: .82rem; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { color: var(--red); font-size: .85rem; min-height: 1em; }
.switch-auth { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 8px; }
.otp { display: flex; gap: 8px; justify-content: center; margin: 14px 0; }
.otp input { width: 48px; height: 56px; text-align: center; font-size: 1.4rem; font-weight: 700; }

.salon-hero { height: 150px; border-radius: 16px; display: grid; place-items: center; font-size: 4rem; margin-bottom: 16px; }
.service-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; transition: .15s; }
.service-row:hover { border-color: var(--rose-2); }
.service-row.selected { border-color: var(--rose); background: #fdf3f6; }
.service-row small { color: var(--muted); }

.stepper { display: flex; gap: 6px; margin: 4px 0 18px; }
.stepper div { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.stepper div.done { background: var(--rose); }
.dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.date-btn { flex: 0 0 64px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 4px; text-align: center; color: var(--plum); }
.date-btn small { display: block; font-size: .7rem; color: var(--muted); text-transform: uppercase; }
.date-btn b { font-size: 1.2rem; }
.date-btn.selected { background: var(--plum); color: #fff; border-color: var(--plum); }
.date-btn.selected small { color: #e7d7ee; }
.times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.time-btn { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px; font-weight: 600; color: var(--plum); font-size: .88rem; }
.time-btn.selected { background: var(--rose); color: #fff; border-color: var(--rose); }
.time-btn:disabled { text-decoration: line-through; opacity: .4; }
.stylists { display: flex; gap: 10px; margin: 8px 0 16px; flex-wrap: wrap; }
.stylist { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px 6px 6px; display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: .88rem; color: var(--plum); }
.stylist.selected { border-color: var(--rose); background: #fdf3f6; }
.stylist .avatar { width: 28px; height: 28px; font-size: .75rem; }
.summary { background: #faf6f8; border-radius: 14px; padding: 14px 16px; font-size: .92rem; }
.summary div { display: flex; justify-content: space-between; padding: 3px 0; }
.summary .total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; font-weight: 700; color: var(--plum); }
.card-visual { background: linear-gradient(135deg, var(--plum), var(--rose)); color: #fff; border-radius: 16px; padding: 18px; font-family: ui-monospace, monospace; height: 150px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); }
.card-visual .num { font-size: 1.15rem; letter-spacing: .12em; }
.card-visual .row { display: flex; justify-content: space-between; font-size: .8rem; text-transform: uppercase; }
.notice { background: #ede7fb; color: #4d3592; border-radius: 12px; padding: 10px 14px; font-size: .85rem; display: flex; gap: 8px; }
.success { text-align: center; padding: 10px 0; }
.success .big { font-size: 3.5rem; }
.modal-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }

/* Drawer */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100%; background: #fff; z-index: 1900; box-shadow: -20px 0 60px rgba(0,0,0,.15); padding: 22px; overflow-y: auto; animation: slide .25s ease; }
@keyframes slide { from { transform: translateX(100%); } to { transform: none; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head .modal-close { position: static; }
.msg { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; font-size: .88rem; }
.msg-head { display: flex; justify-content: space-between; gap: 8px; font-size: .75rem; color: var(--muted); margin-bottom: 4px; }
.msg-type { font-weight: 700; text-transform: uppercase; }
.msg-type.email { color: #3b82f6; }
.msg-type.sms { color: var(--green); }
.msg b { color: var(--plum); }
.msg pre { white-space: pre-wrap; font-family: inherit; margin: 6px 0 0; color: var(--text); }
.msg.sms-bubble pre { background: #e9f7ef; padding: 8px 12px; border-radius: 14px 14px 14px 4px; display: inline-block; }

/* Toasts */
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast { background: #1d1424; color: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.3); font-size: .87rem; animation: pop .3s ease; display: flex; gap: 10px; }
.toast .t-ico { font-size: 1.3rem; }
.toast b { display: block; font-size: .78rem; color: var(--rose-2); text-transform: uppercase; letter-spacing: .04em; }

.footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .85rem; text-align: center; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .features, .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .explore { grid-template-columns: 1fr; grid-template-rows: 320px auto; height: auto; }
  .map-wrap { order: -1; height: 320px; }
  .explore-list { border-right: none; overflow: visible; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 10px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .menu-btn { display: grid; }
  .topbar-inner { justify-content: space-between; }
}
@media (max-width: 560px) {
  .search-bar { flex-direction: column; align-items: stretch; }
  .features, .steps, .stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .times { grid-template-columns: repeat(3, 1fr); }
  .booking-item { grid-template-columns: 56px 1fr; }
  .booking-item > :last-child { grid-column: 1 / -1; }
  .user-chip span:not(.avatar) { display: none; }
  .modal-card { padding: 22px 18px; }
}

/* =========================================================
   V2 VISUAL LAYER — 3D hero, gradients, glass, GSAP hooks
   ========================================================= */
:root {
  --violet: #7c3aed;
  --orange: #ff8a5b;
  --cyan: #22d3ee;
  --night: #140a1f;
  --grad-main: linear-gradient(120deg, #ff6b8b 0%, #c84bff 45%, #ff8a5b 100%);
}
body { background: #fbf7fb; }
.grad {
  background: var(--grad-main); background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 6s ease infinite;
}
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Glass topbar */
.topbar { background: rgba(255,255,255,.78); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); }
.logo-mark { background: var(--grad-main); box-shadow: 0 6px 18px rgba(200,75,255,.35); }

/* Buttons */
.btn-primary { background: var(--grad-main); background-size: 200% 200%; box-shadow: 0 10px 25px -8px rgba(200,75,255,.6); position: relative; overflow: hidden; }
.btn-primary:hover { background-position: 100% 50%; box-shadow: 0 14px 30px -8px rgba(255,107,139,.7); }
.btn-shine::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { transform: translateX(-120%) skewX(-20deg); } 100% { transform: translateX(160%) skewX(-20deg); } }

/* HERO */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 70% 0%, #3a1766 0%, #1b0b2c 50%, var(--night) 100%); color: #fff; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.b1 { width: 520px; height: 520px; background: #ff4f8b; top: -140px; left: 40%; }
.b2 { width: 420px; height: 420px; background: #7c3aed; bottom: -160px; left: -80px; }
.b3 { width: 360px; height: 360px; background: #ff8a5b; top: 30%; right: -100px; opacity: .45; }
.b4 { width: 260px; height: 260px; background: #22d3ee; bottom: 10%; left: 45%; opacity: .3; }
.grid-floor {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%;
  background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 60px 60px; transform: perspective(600px) rotateX(62deg); transform-origin: top center;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, transparent 95%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, transparent 95%);
  animation: floor 4s linear infinite;
}
@keyframes floor { to { background-position: 0 60px; } }
#sparkles { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-inner { grid-template-columns: 1.1fr 1fr; padding-top: 70px; padding-bottom: 90px; min-height: 640px; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); font-size: .8rem; font-weight: 500; color: #f3e6ff; backdrop-filter: blur(8px); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.02; margin: 18px 0 18px; perspective: 600px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .w { display: inline-block; transform-origin: bottom center; }
.hero .hero-lead { color: #d8c8e8; font-size: 1.12rem; max-width: 500px; }
.hero .search-bar { background: rgba(255,255,255,.96); box-shadow: 0 25px 60px -15px rgba(0,0,0,.5), 0 0 0 6px rgba(255,255,255,.06); }
.hero .near-me { color: #ffb3c7; }
.trust { display: flex; align-items: center; gap: 14px; margin-top: 26px; font-size: .9rem; }
.trust b { color: #ffd27a; }
.trust small { color: #cdb9dd; }
.faces { display: flex; }
.faces span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; border: 2px solid #1b0b2c; margin-left: -10px; }
.faces span:first-child { margin-left: 0; }

/* 3D scene */
.scene { position: relative; height: 560px; perspective: 1400px; }
.scene-inner { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(-16deg) rotateX(8deg); }
.orbit { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.22); transform-style: preserve-3d; }
.o1 { width: 520px; height: 520px; margin: -260px 0 0 -260px; transform: rotateX(72deg) translateZ(-40px); animation: spin 26s linear infinite; }
.o2 { width: 380px; height: 380px; margin: -190px 0 0 -190px; border-color: rgba(255,138,91,.35); transform: rotateX(72deg) rotateY(18deg); animation: spin 18s linear infinite reverse; }
@keyframes spin { to { rotate: z 360deg; } }
.phone-wrap { position: absolute; left: 50%; top: 50%; width: 270px; height: 540px; margin: -270px 0 0 -135px; transform-style: preserve-3d; }
.phone3d {
  width: 100%; height: 100%; border-radius: 44px; padding: 12px; position: relative;
  background: linear-gradient(145deg, #3a2a48, #120a1a);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.12), 0 1px 0 1px #5b4870, 16px 20px 0 -4px #0a0510, 40px 60px 80px rgba(0,0,0,.55), 0 0 80px rgba(200,75,255,.35);
  transform-style: preserve-3d;
}
.p-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 86px; height: 24px; background: #000; border-radius: 14px; z-index: 3; }
.p-screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #fbf3f8 100%); padding: 56px 16px 16px; color: var(--text); display: flex; flex-direction: column; gap: 10px; }
.p-head { display: flex; gap: 10px; align-items: center; }
.p-head b { display: block; font-size: .95rem; color: var(--plum); }
.p-head small { color: var(--muted); font-size: .72rem; }
.p-img { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg,#f8c8d4,#e0688a); display: grid; place-items: center; font-size: 1.6rem; flex: none; }
.p-service { display: flex; justify-content: space-between; background: #f6eef3; padding: 10px 12px; border-radius: 12px; font-size: .85rem; }
.p-service b { color: var(--plum); }
.p-label { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; margin-top: 4px; }
.p-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.p-slot { text-align: center; padding: 8px 0; border-radius: 10px; border: 1px solid var(--line); font-size: .78rem; font-weight: 600; color: var(--plum); transition: .25s; }
.p-slot.off { opacity: .35; text-decoration: line-through; }
.p-slot.sel { background: var(--grad-main); color: #fff; border-color: transparent; box-shadow: 0 6px 14px -4px rgba(200,75,255,.6); }
.p-pay { font-size: .78rem; background: #ede7fb; color: #4d3592; border-radius: 10px; padding: 8px 10px; }
.p-pay small { display: block; opacity: .75; }
.p-btn { margin-top: auto; border: none; border-radius: 14px; padding: 13px; color: #fff; font-weight: 700; background: var(--grad-main); box-shadow: 0 10px 20px -6px rgba(200,75,255,.6); font-size: .9rem; }
.p-tap { position: absolute; width: 34px; height: 34px; border-radius: 50%; background: rgba(124,58,237,.25); border: 2px solid rgba(124,58,237,.7); left: 0; top: 0; opacity: 0; pointer-events: none; z-index: 4; }
.p-notif { position: absolute; left: 10px; right: 10px; z-index: 5; display: flex; gap: 10px; align-items: center; background: rgba(30,18,40,.92); color: #fff; border-radius: 16px; padding: 10px 12px; font-size: .75rem; box-shadow: 0 10px 24px rgba(0,0,0,.3); backdrop-filter: blur(10px); opacity: 0; }
.p-notif b { display: block; font-size: .66rem; color: #ffb3c7; text-transform: uppercase; letter-spacing: .05em; }
.p-notif span { font-size: 1.2rem; }
.n1 { top: 50px; } .n2 { top: 108px; }

.fc { position: absolute; transform-style: preserve-3d; }
.fc1 { left: 2%; top: 14%; transform: translateZ(120px); }
.fc2 { right: 0; top: 30%; transform: translateZ(160px); }
.fc3 { left: 0; bottom: 18%; transform: translateZ(90px); }
.fc4 { right: 4%; bottom: 6%; transform: translateZ(140px); }
.float-card { display: flex; gap: 10px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; box-shadow: 0 20px 40px -10px rgba(0,0,0,.45); white-space: nowrap; }
.float-card b { display: block; font-size: .88rem; }
.float-card small { color: #e6d6f3; font-size: .72rem; }
.fc-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; color: #fff; }

/* Marquee */
.marquee { overflow: hidden; background: var(--grad-main); background-size: 200% 200%; animation: gradShift 8s ease infinite; color: #fff; padding: 14px 0; transform: rotate(-1.2deg) scale(1.02); margin-top: -18px; position: relative; z-index: 2; box-shadow: 0 10px 30px -10px rgba(200,75,255,.5); }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 28s linear infinite; font-family: "Playfair Display", serif; font-size: 1.25rem; font-weight: 700; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Stat band */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 60px 0 10px; }
.sb { text-align: center; padding: 24px 12px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.sb b { display: block; font-family: "Playfair Display", serif; font-size: 2.4rem; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sb small { color: var(--muted); font-weight: 500; }

/* Features & cards — 3D tilt surfaces */
.feature, .steps li, .salon-card, .stat, .sb { transform-style: preserve-3d; will-change: transform; }
.feature { position: relative; overflow: hidden; border: 1px solid #f1e6f0; }
.feature::before { content: ""; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(200,75,255,.12), transparent 60%); opacity: 0; transition: opacity .3s; }
.feature:hover::before { opacity: 1; }
.f-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--g, var(--grad-main)); box-shadow: 0 10px 20px -8px rgba(124,58,237,.5); font-size: 1.5rem; transform: translateZ(30px); }
.feature h3, .feature p { transform: translateZ(20px); }
.salon-card { box-shadow: 0 10px 30px -12px rgba(59,31,74,.25); }
.salon-card:hover { box-shadow: 0 30px 50px -20px rgba(124,58,237,.45); }
.salon-img { overflow: hidden; }
.salon-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-100%); transition: transform .7s; }
.salon-card:hover .salon-img::after { transform: translateX(100%); }
.steps span { background: var(--grad-main); box-shadow: 0 8px 16px -6px rgba(200,75,255,.6); }

/* Pre-hide reveal elements only when GSAP is running */
.gsap-on .reveal { opacity: 0; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding-bottom: 40px; }
  .scene { height: 480px; transform: scale(.85); margin: -20px 0; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .scene { height: 440px; transform: scale(.72); margin: -50px -40px; }
  .fc1, .fc3 { left: -6%; } .fc2, .fc4 { right: -6%; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .sb b { font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
html, body { overflow-x: clip; }
main { overflow-x: clip; }
.hero-inner > * { min-width: 0; }
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .scene { overflow: visible; }
}
@media (max-width: 560px) {
  .eyebrow-pill { font-size: .72rem; }
  .scene { margin: -50px 0; }
  .fc1, .fc3 { left: -2%; } .fc2, .fc4 { right: -2%; }
}

/* =========================================================
   V3 — real photography, richer cards, dashboard redesign
   ========================================================= */
.grid#featuredGrid { grid-template-columns: repeat(3, 1fr); }
img.avatar { object-fit: cover; display: block; flex: none; }
.avatar.lg { width: 64px; height: 64px; }
.avatar.xs { width: 20px; height: 20px; font-size: .55rem; display: inline-grid; vertical-align: middle; }
.faces img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid #1b0b2c; margin-left: -10px; }
.faces img:first-child { margin-left: 0; }
img.p-img { object-fit: cover; }

/* Salon cards with photos */
.salon-card { border-radius: 22px; border: 1px solid #f0e6ef; }
.salon-img { height: 200px; padding: 0; background: #2a1a38; }
.salon-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.salon-card:hover .salon-img img { transform: scale(1.08); }
.salon-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 40%, rgba(20,10,31,.55)); z-index: 1; }
.salon-img .tag, .salon-img .rating-pill { z-index: 2; }
.rating-pill { position: absolute; bottom: 12px; left: 12px; background: rgba(20,10,31,.7); backdrop-filter: blur(8px); color: #ffd27a; font-weight: 700; font-size: .78rem; padding: 4px 10px; border-radius: 999px; }
.salon-img::after { z-index: 2; }
.salon-body { padding: 16px 18px 18px; }
.salon-list .salon-card { grid-template-columns: 130px 1fr; }
.salon-list .salon-img { height: auto; min-height: 130px; }
.salon-list .rating-pill { display: none; }

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat { position: relative; border: none; padding: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 3 / 4; background: #2a1a38; cursor: pointer; box-shadow: 0 20px 40px -20px rgba(59,31,74,.5); text-align: left; }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s; }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(20,10,31,.85)); transition: .4s; }
.cat:hover img { transform: scale(1.1); filter: saturate(1.2); }
.cat:hover::after { background: linear-gradient(180deg, rgba(200,75,255,.15) 20%, rgba(20,10,31,.9)); }
.cat-body { position: absolute; left: 18px; bottom: 16px; z-index: 2; color: #fff; }
.cat-body b { display: block; font-family: "Playfair Display", serif; font-size: 1.4rem; }
.cat-body small { color: #f0dff7; }

/* How it works — fix badge layout */
.steps li { position: relative; padding-top: 24px; }
.steps span { display: grid; width: 42px; height: 42px; margin-bottom: 14px; font-size: 1.05rem; }
.steps b { display: block; font-size: 1.08rem; color: var(--plum); }

/* Owner section */
.owner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; margin: 80px 0; }
.owner-img { position: relative; }
.owner-img img { width: 100%; height: 520px; object-fit: cover; border-radius: 28px; box-shadow: 0 40px 80px -30px rgba(59,31,74,.55); }
.owner-img::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; border-radius: 32px; background: var(--grad-main); z-index: -1; opacity: .85; }
.owner-badge { position: absolute; right: -20px; bottom: 40px; background: rgba(20,10,31,.75) !important; }
.owner-text h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); line-height: 1.15; margin: 10px 0 20px; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.ticks li { padding-left: 38px; position: relative; color: var(--muted); }
.ticks li b { color: var(--plum); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--grad-main); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }

/* Testimonials */
.testis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testi { background: #fff; border-radius: 22px; padding: 26px; box-shadow: var(--shadow); border: 1px solid #f1e6f0; position: relative; }
.testi::before { content: "“"; position: absolute; right: 22px; top: 6px; font-family: "Playfair Display", serif; font-size: 5rem; line-height: 1; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .35; }
.testi p { color: var(--text); font-size: 1rem; }
.t-who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.t-who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.t-who b { display: block; color: var(--plum); }
.t-who small { color: var(--muted); }

/* CTA */
.cta { margin: 80px 0 70px; border-radius: 32px; padding: 70px 40px; text-align: center; color: #fff; background-size: cover; background-position: center; box-shadow: 0 40px 80px -30px rgba(124,58,237,.6); }
.cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.cta p { color: #f0dff7; font-size: 1.1rem; margin-bottom: 26px; }
.btn-glass { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); color: #fff; backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.25); }

/* Salon modal */
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 260px; margin-bottom: 18px; border-radius: 18px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery img:first-child { grid-row: 1 / 3; }
.team { display: flex; gap: 18px; margin: 6px 0 18px; flex-wrap: wrap; }
.member { text-align: center; }
.member .avatar { margin: 0 auto 6px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--rose-2); }
.member b { display: block; font-size: .85rem; color: var(--plum); }
.member small { color: var(--muted); font-size: .72rem; }
.review { display: flex; gap: 12px; background: #faf6f8; border-radius: 14px; padding: 12px 14px; }
.review p { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }
.stylist img.avatar { width: 28px; height: 28px; }

/* My bookings */
.bi-main { display: flex; gap: 14px; align-items: center; }
.bi-thumb { width: 74px; height: 74px; border-radius: 14px; object-fit: cover; flex: none; }
.booking-item { border: 1px solid #f1e6f0; border-radius: 20px; }

/* ---------- Dashboard ---------- */
.dash-hero { border-radius: 28px; padding: 34px 36px; color: #fff; background-size: cover; background-position: center; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; box-shadow: 0 30px 60px -30px rgba(59,31,74,.7); position: relative; overflow: hidden; }
.dash-hero::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255,107,139,.5), transparent 70%); pointer-events: none; }
.dh-info { display: flex; align-items: center; gap: 18px; position: relative; z-index: 1; }
.dh-logo { width: 76px; height: 76px; border-radius: 22px; object-fit: cover; border: 3px solid rgba(255,255,255,.7); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.dh-all { display: grid; place-items: center; font-size: 2rem; background: var(--grad-main); }
.dh-info h2 { color: #fff; margin: 2px 0 4px; font-size: 2rem; }
.dh-info small { color: #ffb3c7; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.dh-info span { color: #e6d6f3; font-size: .92rem; }
.dh-info span b { color: #ffd27a; }
.dh-side { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.dh-side label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #e6d6f3; font-weight: 600; }
.dh-side select { min-width: 240px; background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(10px); }
.dh-side select option { color: var(--text); }

.stat { position: relative; border: 1px solid #f1e6f0; border-radius: 22px; padding: 20px 20px 18px; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--g, var(--grad-main)); opacity: .08; }
.s-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--g); font-size: 1.15rem; margin-bottom: 12px; box-shadow: 0 8px 18px -8px rgba(124,58,237,.6); }
.stat .s-ico { --g: inherit; }
.stat em { display: block; font-style: normal; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.stat em.up { color: var(--green); font-weight: 600; }

.dash-panels { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 26px; }
.panel { background: #fff; border-radius: 22px; padding: 20px 22px; box-shadow: var(--shadow); border: 1px solid #f1e6f0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.panel-head h3 { margin: 0; font-size: 1.15rem; }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 200px; padding-top: 10px; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bar { width: 100%; max-width: 46px; height: var(--h); border-radius: 12px 12px 6px 6px; background: var(--grad-main); background-size: 100% 200%; box-shadow: 0 10px 20px -10px rgba(200,75,255,.7); transform-origin: bottom; animation: grow 1s cubic-bezier(.2,.8,.2,1) both; }
.bar-col:nth-child(2) .bar { animation-delay: .06s } .bar-col:nth-child(3) .bar { animation-delay: .12s } .bar-col:nth-child(4) .bar { animation-delay: .18s }
.bar-col:nth-child(5) .bar { animation-delay: .24s } .bar-col:nth-child(6) .bar { animation-delay: .3s } .bar-col:nth-child(7) .bar { animation-delay: .36s }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.bar-val { font-size: .7rem; font-weight: 700; color: var(--plum); }
.bar-col small { color: var(--muted); font-size: .75rem; font-weight: 600; }
.sched { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.sched:last-child { border-bottom: none; }
.sched-time { font-weight: 700; font-size: .78rem; color: var(--rose); width: 62px; flex: none; }
.sched .avatar { width: 36px; height: 36px; }
.sched > div { flex: 1; min-width: 0; }
.sched b { display: block; font-size: .9rem; color: var(--plum); }
.sched small { color: var(--muted); font-size: .78rem; }
.dash-sub { font-size: 1.3rem; margin: 0 0 12px; }

.table-wrap { border: 1px solid #f1e6f0; border-radius: 22px; }
.table thead th { background: #faf6fa; }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: #fcf7fb; }
.cust { display: flex; align-items: center; gap: 12px; }
.cust .avatar { width: 42px; height: 42px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f3e3ee; }
.st-line { display: inline-flex; align-items: center; gap: 6px; }
.btn-green { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 8px 18px -8px rgba(5,150,105,.7); }
#dashTabs .tab.active { background: var(--grad-main); border-color: transparent; }

@media (max-width: 960px) {
  .grid#featuredGrid { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .owner, .dash-panels { grid-template-columns: 1fr; }
  .owner-img img { height: 380px; }
  .owner-badge { right: 10px; }
  .testis { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid#featuredGrid { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .gallery { height: 180px; }
  .dash-hero { padding: 24px 20px; }
  .dh-side select { min-width: 0; width: 100%; }
  .dh-side { width: 100%; }
  .cta { padding: 50px 22px; }
}
.bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; min-height: 0; }
.bar-val, .bar-col small { flex: none; }
