/* Luna Hair Studio — demo by Ponte World */
:root {
  --plum: #2b1d2e;
  --plum-2: #3d2a41;
  --rose: #e8b4a0;
  --rose-2: #d98f78;
  --cream: #f7f3ef;
  --sand: #efe7df;
  --text: #2b2430;
  --muted: #7d7280;
  --line: #e6ddd5;
  --ok: #2f9e74;
  --err: #c2543a;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 14px 40px -18px rgba(43, 29, 46, .35);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--cream); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--rose-2); outline-offset: 2px; border-radius: 8px; }

/* Demo banner */
.demo-bar { background: #0b1024; color: #c9cdf0; font-size: 13.5px; }
.demo-bar .in { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 9px 0; }
.demo-bar b { color: #fff; }
.demo-bar a { color: #fff; font-weight: 700; text-decoration: none; background: linear-gradient(135deg, #4f5dff, #7b5cff 55%, #ff7a59); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.demo-bar .pill { display: inline-block; background: rgba(255,255,255,.12); color: #fff; font-weight: 700; font-size: 11px; padding: 2px 8px; border-radius: 999px; margin-right: 6px; letter-spacing: .06em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.salon-head { background: var(--plum); color: #fff; padding: 36px 0 90px; position: relative; overflow: hidden; }
.salon-head::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(232,180,160,.35), transparent 70%); }
.brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--rose); color: var(--plum); display: grid; place-items: center; font-family: var(--serif); font-size: 24px; font-weight: 700; }
.brand b { font-family: var(--serif); font-size: 24px; letter-spacing: .01em; }
.brand small { display: block; color: var(--rose); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.salon-head h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.1; margin: 34px 0 10px; position: relative; z-index: 1; }
.salon-head p { color: #d9cdd6; margin: 0; max-width: 560px; position: relative; z-index: 1; }

/* Layout */
.main { display: grid; grid-template-columns: 1fr 340px; gap: 24px; margin-top: -60px; position: relative; z-index: 2; padding-bottom: 60px; }
.card { background: var(--white); border-radius: 22px; box-shadow: var(--shadow); padding: 28px; }
.step { padding: 6px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.step:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 6px; }
.step h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 14px; }
.step h2 span { width: 28px; height: 28px; border-radius: 50%; background: var(--plum); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.step.locked { opacity: .45; pointer-events: none; }

/* Grid children must be allowed to shrink (prevents horizontal overflow) */
.main > *, .dash-grid > *, .step, .card { min-width: 0; }

/* Options */
.options { display: grid; gap: 10px; }
.options.services { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.options.stylists { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.opt { text-align: left; background: var(--cream); border: 2px solid transparent; border-radius: 14px; padding: 14px; transition: border-color .15s, background .15s, transform .15s; color: var(--text); }
.opt:hover { border-color: var(--rose); transform: translateY(-1px); }
.opt[aria-pressed="true"] { border-color: var(--plum); background: #fff; box-shadow: 0 0 0 3px rgba(43,29,46,.08); }
.opt b { display: block; font-size: 15.5px; }
.opt small { color: var(--muted); font-size: 13px; }
.opt .price { float: right; font-weight: 700; color: var(--plum); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; margin-bottom: 8px; }

/* Dates */
.dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.date-btn { flex: none; width: 70px; text-align: center; background: var(--cream); border: 2px solid transparent; border-radius: 14px; padding: 10px 4px; color: var(--text); }
.date-btn small { display: block; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.date-btn b { display: block; font-size: 20px; }
.date-btn[aria-pressed="true"] { background: var(--plum); color: #fff; }
.date-btn[aria-pressed="true"] small { color: var(--rose); }

/* Times */
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.time-btn { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 6px; font-weight: 700; color: var(--text); }
.time-btn:hover:not(:disabled) { border-color: var(--plum); }
.time-btn[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.time-btn:disabled { background: var(--sand); color: #b6abb3; text-decoration: line-through; cursor: not-allowed; border-color: transparent; }
.hint { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.loading { color: var(--muted); font-size: 14px; }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 700; }
.field input { font: inherit; padding: 12px 13px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cream); color: var(--text); width: 100%; }
.field input:focus { outline: none; border-color: var(--plum); background: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 15px 24px; font-weight: 700; font-size: 16px; }
.btn-main { background: var(--plum); color: #fff; width: 100%; margin-top: 16px; }
.btn-main:disabled { opacity: .5; cursor: not-allowed; }
.btn-light { background: var(--cream); color: var(--plum); }
.note { font-size: 12.5px; color: var(--muted); margin-top: 10px; text-align: center; }
.msg { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; display: none; }
.msg.err { display: block; background: #fbebe6; color: var(--err); }

/* Summary sidebar */
.side { display: grid; gap: 18px; align-content: start; }
.summary h3, .how h3 { margin: 0 0 14px; font-size: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.sum-row span { color: var(--muted); }
.sum-row b { text-align: right; }
.how { background: var(--plum); color: #f1e8ef; }
.how h3 { color: #fff; }
.how ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: s; font-size: 14px; }
.how li { display: flex; gap: 10px; }
.how li::before { counter-increment: s; content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--rose); color: var(--plum); font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.how a { color: var(--rose); font-weight: 700; }

/* Success */
.success { text-align: center; padding: 30px 10px; }
.success .tick { width: 74px; height: 74px; border-radius: 50%; background: #e3f5ee; color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; font-size: 38px; }
.success h2 { font-family: var(--serif); font-size: 30px; margin: 0 0 8px; }
.success p { color: var(--muted); margin: 0 auto 6px; max-width: 460px; }
.success .box { background: var(--cream); border-radius: 16px; padding: 16px; margin: 20px auto; max-width: 380px; text-align: left; }
.success .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Dashboard ---------- */
.dash-head { background: var(--plum); color: #fff; padding: 22px 0; }
.dash-head .in { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #d9cdd6; }
.live i { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0; }
.kpi { background: #fff; border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.kpi small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.kpi b { font-size: 28px; font-family: var(--serif); }
.kpi em { display: block; font-style: normal; font-size: 13px; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; padding-bottom: 50px; }
.sched { display: grid; gap: 6px; }
.sched-row { display: grid; grid-template-columns: 58px repeat(3, 1fr); gap: 6px; }
.sched-row.head b { text-align: center; background: var(--cream); border-radius: 10px; padding: 8px; font-size: 14px; }
.sched-row > span { font-size: 13px; color: var(--muted); font-weight: 700; padding-top: 10px; }
.cell { border-radius: 10px; padding: 9px 10px; font-size: 13px; min-height: 46px; border: 1.5px dashed var(--line); color: #b6abb3; }
.cell.booked { border: 0; color: #fff; background: linear-gradient(135deg, var(--plum), var(--plum-2)); }
.cell.booked.c1 { background: linear-gradient(135deg, #7b4b6a, #a0627f); }
.cell.booked.c2 { background: linear-gradient(135deg, #b0705a, var(--rose-2)); }
.cell.booked.new { box-shadow: 0 0 0 3px var(--rose); animation: pop .5s ease; }
.cell b { display: block; font-size: 13.5px; }
@keyframes pop { from { transform: scale(.94); opacity: .4; } to { transform: none; opacity: 1; } }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 560px; overflow: auto; }
.feed li { background: var(--cream); border-radius: 12px; padding: 11px 12px; font-size: 13.5px; }
.feed li b { display: block; }
.feed li span { color: var(--muted); font-size: 12.5px; }
.empty { color: var(--muted); font-size: 14px; text-align: center; padding: 20px; }

@media (max-width: 900px) {
  .main, .dash-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .card { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .sched-row { grid-template-columns: 44px repeat(3, 1fr); gap: 4px; }
  .cell { padding: 7px 6px; font-size: 11.5px; }
  .cell b { font-size: 12px; }
  .demo-bar .in { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
