/* Booking panel (upgraded) and the owner's CRM (concept). Loaded after style.css. */

/* ---------- Booking panel ---------- */
.sheet { padding: 0; width: min(460px, calc(100vw - 24px)); background: rgba(7, 9, 11, 0.88); }
.sheet-hero { position: relative; flex: none; height: 128px; background: url(frames/fin.webp) 50% 45% / 150% auto no-repeat; }
.sheet-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(7, 9, 11, 0.05), rgba(7, 9, 11, 0.94)); }
.hero-tag { position: absolute; z-index: 1; left: 22px; top: 18px; font-family: var(--mono); font-size: 11px; color: var(--ink); padding: 6px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.16); }
.sheet-top { padding: 0 22px; margin: -34px 0 14px; position: relative; z-index: 1; }
.sheet h3 { font-size: 30px; line-height: 0.95; }
.sheet .x { position: absolute; right: 18px; top: -78px; background: rgba(0, 0, 0, 0.45); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 22px; margin-bottom: 16px; }
.steps i { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; position: relative; }
.steps i::after { content: ""; position: absolute; inset: 0; background: var(--amber); box-shadow: 0 0 12px var(--amber); transform: scaleX(var(--f, 0)); transform-origin: left; transition: transform 0.35s; }
.form { padding: 2px 22px 22px; margin: 0; gap: 16px; }
.car { position: relative; padding: 14px 4px 10px; }
.car svg { width: 60px; height: 27px; }
.ck { position: absolute; right: 6px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--amber); opacity: 0; transform: scale(0.5); transition: opacity 0.2s, transform 0.25s; }
.ck::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #1c1100; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.opt.on .ck { opacity: 1; transform: none; }
.svc { padding: 12px 100px 12px 14px; }
.svc small { position: absolute; right: 42px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 10.5px; color: var(--dim); padding: 4px 8px; border-radius: 999px; border: 1px solid var(--faint); }
.svc.on small { color: var(--amber); border-color: rgba(255, 179, 71, 0.5); }
.day { display: grid; gap: 1px; padding: 9px 0; font-size: 11.5px; color: var(--dim); }
.day small { font-size: 15px; font-weight: 700; color: var(--ink); }
.day.on { color: var(--amber); }
.sum { border: 1px dashed rgba(255, 255, 255, 0.14); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; background: rgba(255, 255, 255, 0.02); }
.sum .kicker, .drawer .kicker { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.sum-row { display: flex; justify-content: space-between; font-size: 13.5px; }
.sum-row span { color: var(--dim); }
.sum-row b { font-weight: 650; }
.sum-row b.set { color: var(--amber); }
.confirm { display: flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(100deg, #ffb347, #ffd9a0 50%, #ffb347); font-family: "Archivo", var(--sans); font-stretch: 112%; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.confirm em { font-style: normal; transition: transform 0.2s; }
.confirm:not(:disabled):hover em { transform: translateX(4px); }
.done { inset: 128px 22px 22px; }
.done-actions { display: grid; gap: 10px; justify-items: center; margin-top: 8px; }
.ghost { cursor: pointer; background: none; border: 1px solid rgba(255, 179, 71, 0.4); color: var(--amber); padding: 10px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.ghost:hover, .ghost.hover { background: rgba(255, 179, 71, 0.08); }
@media (max-height: 720px) { .sheet-hero { height: 92px; } .done { inset: 92px 22px 22px; } .sum { display: none; } }

/* ---------- Owner CRM ---------- */
.crm { position: fixed; inset: 0; z-index: 55; background: #06080a; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0s linear 0.4s; }
.crm.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.crm-x { position: absolute; z-index: 3; right: 18px; top: 16px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--faint); background: rgba(255, 255, 255, 0.05); color: var(--dim); cursor: pointer; }
.crm .logo { display: flex; align-items: center; gap: 10px; }
.crm .logo b { display: block; font-weight: 800; letter-spacing: 0.28em; font-size: 13px; }
.crm .logo span:not(.app) { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.crm .app { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--amber); color: #1c1100; font-weight: 800; }
.login { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(60% 60% at 50% 40%, rgba(255, 179, 71, 0.08), transparent 70%), #06080a; }
.login-card { width: min(380px, 90vw); display: grid; gap: 14px; padding: 30px; border-radius: 22px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.login-card h3, .leads-head h2, .drawer h3 { font-family: "Archivo", var(--sans); font-stretch: 125%; font-weight: 900; text-transform: uppercase; line-height: 1; }
.login-card h3 { font-size: 28px; margin-top: 10px; }
.login-card .lead-in { color: var(--dim); font-size: 14px; margin-top: -8px; }
.login-card label { display: grid; gap: 6px; font-size: 12px; color: var(--dim); }
.login-card input { font: inherit; font-size: 15px; color: var(--ink); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; padding: 12px 14px; outline: none; }
.login-card input.focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.18); }
.login-card .fine { font-size: 12px; color: var(--dim); text-align: center; }
.shell { position: absolute; inset: 0; display: grid; grid-template-columns: 236px 1fr; }
.side { border-right: 1px solid rgba(255, 255, 255, 0.07); padding: 20px 14px; display: flex; flex-direction: column; gap: 26px; background: #07090b; }
.tabs { display: grid; gap: 2px; }
.tabs a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--dim); }
.tabs a.on { background: rgba(255, 179, 71, 0.09); color: var(--ink); box-shadow: inset 2px 0 0 var(--amber); }
.tabs em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; color: #1c1100; background: var(--amber); border-radius: 999px; padding: 1px 7px; }
.ic { width: 16px; height: 16px; border-radius: 4px; border: 1.6px solid currentColor; opacity: 0.8; flex: none; }
.ic-bolt, .ic-msg, .ic-star { border-radius: 50%; }
.ic-auto { border-style: dashed; }
.me { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); }
.me b { display: block; font-size: 13px; }
.me span:not(.av) { font-size: 11px; color: var(--dim); }
.av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: linear-gradient(135deg, #3a2e20, #17130e); border: 1px solid rgba(255, 179, 71, 0.35); flex: none; }
.main { overflow: hidden; padding: 0 34px; display: flex; flex-direction: column; }
.bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 56px 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.search { width: min(420px, 40vw); padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); color: var(--dim); font-size: 13px; }
.bar-r { display: flex; align-items: center; gap: 14px; }
.live { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #5ee39b; box-shadow: 0 0 10px #5ee39b; }
.leads-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 28px 0 18px; }
.leads-head h2 { font-size: 44px; }
.leads-head p { color: var(--dim); font-size: 14px; margin-top: 8px; max-width: 46ch; }
.pills { display: flex; gap: 6px; }
.pills span { font-size: 12.5px; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.1); color: var(--dim); }
.pills .on { color: #1c1100; background: var(--amber); border-color: var(--amber); font-weight: 650; }
.table { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, 0.015); }
.tr { display: grid; grid-template-columns: 1.4fr 0.8fr 0.9fr 1.1fr 0.9fr 0.9fr 1.4fr; align-items: center; gap: 12px; padding: 0 18px; height: 62px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 13.5px; }
.tr.th { height: 42px; font-family: var(--mono); font-size: 11px; color: var(--dim); background: rgba(255, 255, 255, 0.025); }
.tr b { display: block; font-weight: 650; }
.tr small { font-size: 11.5px; color: var(--dim); }
.tbody { overflow: hidden; }
.tr.new { background: linear-gradient(90deg, rgba(255, 179, 71, 0.14), rgba(255, 179, 71, 0.03) 70%); box-shadow: inset 3px 0 0 var(--amber); cursor: pointer; }
.tr.new b::after { content: "NEW"; margin-left: 8px; font-family: var(--mono); font-size: 9.5px; font-weight: 700; padding: 2px 6px; border-radius: 6px; color: #1c1100; background: var(--amber); vertical-align: 2px; }
.tr.new.hover, .tr.new.press, .tr.new:hover { background: linear-gradient(90deg, rgba(255, 179, 71, 0.24), rgba(255, 179, 71, 0.06) 70%); }
.src, .st { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); color: var(--dim); white-space: nowrap; }
.src.gpt { color: #b9f3d0; border-color: rgba(94, 227, 155, 0.4); }
.src.goo { color: #c7d7ff; border-color: rgba(140, 170, 255, 0.4); }
.src.ig { color: #ffc4dd; border-color: rgba(255, 120, 180, 0.4); }
.src.web { color: var(--amber); border-color: rgba(255, 179, 71, 0.45); }
.st.booked { color: #08140d; background: #5ee39b; border-color: #5ee39b; }
.st.new { color: #1c1100; background: var(--amber); border-color: var(--amber); }
.st.quote { color: #1a1204; background: #ffcf6b; border-color: #ffcf6b; }
.ok { color: #8ef0b8; font-size: 12.5px; }
.wait { color: #ffd98a; font-size: 12.5px; }
.drawer { position: absolute; z-index: 2; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); padding: 70px 28px 28px; display: flex; flex-direction: column; gap: 12px; background: rgba(10, 13, 15, 0.96); border-left: 1px solid rgba(255, 179, 71, 0.2); box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5); transform: translateX(105%); transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.2, 1); }
.drawer.open { transform: none; }
.drawer h3 { font-size: 30px; }
.drawer-sub { color: var(--amber); font-weight: 600; }
.d-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 10px; }
.d-grid div { padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07); }
.d-grid span { display: block; font-size: 11px; color: var(--dim); margin-bottom: 3px; }
.d-grid b.g { color: #5ee39b; }
.timeline { list-style: none; border-left: 1px solid rgba(255, 255, 255, 0.12); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 16px 20px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: #06080a; border: 1.5px solid rgba(255, 255, 255, 0.3); }
.timeline li.ok-step::before { background: #5ee39b; border-color: #5ee39b; box-shadow: 0 0 10px rgba(94, 227, 155, 0.6); }
.timeline b { display: block; font-size: 14px; }
.timeline span { font-size: 12px; color: var(--dim); }
.d-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 8px; }
.d-actions span { text-align: center; padding: 11px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; font-weight: 600; }
.d-actions .pri { background: var(--amber); color: #1c1100; border-color: var(--amber); }
.crm-toast { position: absolute; z-index: 3; right: 64px; top: 14px; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 14px; font-size: 13.5px; font-weight: 600; background: rgba(20, 24, 27, 0.95); border: 1px solid rgba(94, 227, 155, 0.45); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5); opacity: 0; transform: translateY(-14px); transition: opacity 0.3s, transform 0.4s; }
.crm-toast.on { opacity: 1; transform: none; }
.crm-toast i { width: 8px; height: 8px; border-radius: 50%; background: #5ee39b; box-shadow: 0 0 10px #5ee39b; }
.outro .ghost { margin-top: -10px; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .tr { grid-template-columns: 1.4fr 1fr 1fr; }
  .tr > span:nth-child(n + 4) { display: none; }
  .leads-head { flex-direction: column; align-items: flex-start; }
  .main { padding: 0 16px; }
}
.scripted .crm, .scripted .drawer, .scripted .crm-toast, .scripted .steps i::after, .scripted .ck { transition: none !important; }
.scripted .crm-x { display: none; }

/* Customer details (step 4) */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fld { display: grid; gap: 5px; font-size: 11.5px; color: var(--dim); }
.fld.wide { grid-column: 1 / -1; }
.fld em { font-style: normal; color: rgba(243, 245, 247, 0.38); }
.fld input { font: inherit; font-size: 14px; color: var(--ink); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 11px 12px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.fld input::placeholder { color: rgba(243, 245, 247, 0.28); }
.fld input:focus, .fld input.focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.16); }
.fld input.filled { border-color: rgba(255, 179, 71, 0.4); }
.steps { grid-template-columns: repeat(4, 1fr); }
