/* Bright Smile Dental demo — shared styles.
   In WordPress: paste into Elementor > Site Settings > Custom CSS (or a Code Snippets CSS snippet).
   Everything is scoped under .bsd so it won't affect other pages. */

@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&display=swap");

.bsd{
  --ink:#1E1B3A; --muted:#5B5878; --lilac:#6C5CE7; --lilac-d:#5646D6; --lilac-soft:#EEEBFD;
  --mint:#1F9E78; --mint-soft:#E2F5EE; --sun:#FFC94D; --sun-soft:#FFF4D6; --red:#D93F45; --red-soft:#FDECEC;
  --bg:#FAFAFF; --white:#FFFFFF; --line:#E4E1F3;
  --radius:20px; --font:"Lexend","Segoe UI",system-ui,sans-serif;
  font-family:var(--font); font-weight:300; color:var(--ink); background:var(--bg);
  font-size:17px; line-height:1.65; -webkit-font-smoothing:antialiased;
}
.bsd *,.bsd *::before,.bsd *::after{box-sizing:border-box}
.bsd a{color:inherit}
.bsd img{max-width:100%; display:block}
.bsd h1,.bsd h2,.bsd h3,.bsd h4{font-weight:600; line-height:1.15; letter-spacing:-0.015em; margin:0}
.bsd p{margin:0}
.bsd b,.bsd strong{font-weight:600}
.bsd .wrap{max-width:1180px; margin:0 auto; padding:0 24px}
.bsd .sec{padding:96px 0}
.bsd .sec-white{background:var(--white)}
.bsd .sec-soft{background:var(--lilac-soft)}
.bsd .h2{font-size:clamp(30px,3.6vw,46px)}
.bsd .lede{color:var(--muted); max-width:62ch; font-size:18px}
.bsd .head{max-width:680px; margin-bottom:48px}
.bsd .head .lede{margin-top:14px}
.bsd .head.center{margin-left:auto; margin-right:auto; text-align:center}
.bsd .muted{color:var(--muted)}
.bsd .sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0)}

/* Buttons */
.bsd .btn{display:inline-flex; align-items:center; justify-content:center; gap:10px; font:500 16px/1 var(--font);
  padding:16px 26px; border-radius:999px; border:2px solid transparent; text-decoration:none; cursor:pointer; transition:background .2s, border-color .2s, color .2s}
.bsd .btn svg{width:18px; height:18px; flex:none}
.bsd .btn-main{background:var(--lilac); color:#fff}
.bsd .btn-main:hover{background:var(--lilac-d)}
.bsd .btn-line{background:transparent; border-color:var(--ink); color:var(--ink)}
.bsd .btn-line:hover{background:var(--ink); color:#fff}
.bsd .btn-light{background:#fff; color:var(--ink)}
.bsd .btn-light:hover{background:var(--lilac-soft)}
.bsd .btn-red{background:var(--red); color:#fff}
.bsd .btn-sm{padding:10px 16px; font-size:14px}
.bsd .btn:disabled{opacity:.45; cursor:not-allowed}
.bsd a:focus-visible,.bsd button:focus-visible,.bsd input:focus-visible,.bsd select:focus-visible,.bsd textarea:focus-visible,.bsd summary:focus-visible{outline:3px solid var(--sun); outline-offset:2px}
.bsd .row{display:flex; flex-wrap:wrap; gap:12px}

/* Placeholder images: replace src and remove class "ph" */
.bsd .pic{position:relative; margin:0; overflow:hidden; border-radius:var(--radius); background:linear-gradient(135deg,#E6E2FB,#DDF1EA)}
.bsd .pic img{width:100%; height:100%; object-fit:cover}
.bsd .pic:has(img.ph)::after{content:attr(data-label); position:absolute; inset:0; display:grid; place-items:center; padding:16px; text-align:center; font-weight:500; font-size:15px; color:var(--muted)}

/* Demo ribbon */
.bsd .ribbon{background:var(--ink); color:#fff; font-size:14px; text-align:center; padding:9px 16px}
.bsd .ribbon a{color:var(--sun); font-weight:500}

/* Top bar + nav */
.bsd .topbar{background:var(--white); border-bottom:1px solid var(--line); font-size:14px; color:var(--muted)}
.bsd .topbar .wrap{display:flex; justify-content:space-between; gap:16px; padding-top:10px; padding-bottom:10px; flex-wrap:wrap}
.bsd .topbar a{text-decoration:none; font-weight:500; color:var(--ink)}
.bsd .topbar .em{color:var(--red)}
.bsd .nav{background:var(--white); position:sticky; top:0; z-index:40; box-shadow:0 1px 0 var(--line)}
.bsd .nav .wrap{display:flex; align-items:center; justify-content:space-between; gap:20px; padding-top:16px; padding-bottom:16px}
.bsd .logo{display:flex; align-items:center; gap:10px; font-weight:600; font-size:20px; text-decoration:none}
.bsd .logo-mark{width:36px; height:36px; border-radius:12px; background:var(--lilac); display:grid; place-items:center}
.bsd .nav-links{display:flex; align-items:center; gap:30px; list-style:none; margin:0; padding:0}
.bsd .nav-links a{text-decoration:none; font-weight:400}
.bsd .nav-links a[aria-current="page"]{font-weight:600; box-shadow:0 2px 0 var(--lilac)}
.bsd .nav-cta{display:flex; align-items:center; gap:12px}
.bsd .menu-btn{display:none; background:none; border:0; padding:8px; cursor:pointer}

/* Hero */
.bsd .hero{padding:64px 0 88px; background:radial-gradient(1200px 500px at 85% 0%, #E6E2FB 0%, transparent 60%), var(--bg)}
.bsd .hero-grid{display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center}
.bsd .hero h1{font-size:clamp(40px,5.4vw,68px); margin-bottom:22px}
.bsd .hero .lede{margin-bottom:30px}
.bsd .reviews{display:flex; align-items:center; gap:14px; margin-top:30px; font-size:15px; color:var(--muted)}
.bsd .stars{display:flex; gap:2px; color:#F5A623}
.bsd .stars svg{width:18px; height:18px}
.bsd .reviews b{color:var(--ink)}
.bsd .hero-visual{position:relative}
.bsd .hero-visual .pic{aspect-ratio:4/5; border-radius:32px}
.bsd .float{position:absolute; background:#fff; border-radius:18px; padding:16px 18px; box-shadow:0 24px 50px -24px rgba(30,27,58,.35); font-size:14px}
.bsd .float b{display:block; font-size:16px}
.bsd .float-next{left:-28px; bottom:40px; display:flex; gap:12px; align-items:center}
.bsd .float-next i{width:12px; height:12px; border-radius:50%; background:var(--mint); flex:none; animation:bsd-pulse 1.8s infinite}
.bsd .float-hours{right:-18px; top:28px; min-width:190px}
.bsd .float-hours div{display:flex; justify-content:space-between; gap:14px}
@keyframes bsd-pulse{0%{box-shadow:0 0 0 0 rgba(31,158,120,.5)} 70%{box-shadow:0 0 0 10px rgba(31,158,120,0)} 100%{box-shadow:0 0 0 0 rgba(31,158,120,0)}}

/* Quick booking strip */
.bsd .quick{margin-top:-44px; position:relative; z-index:2}
.bsd .quick-card{background:#fff; border-radius:24px; padding:22px; box-shadow:0 30px 60px -30px rgba(30,27,58,.3); display:grid; grid-template-columns:1.2fr 1fr auto; gap:14px; align-items:end}
.bsd label{display:block; font-size:14px; font-weight:500; margin-bottom:6px}
.bsd input,.bsd select,.bsd textarea{width:100%; font:400 16px var(--font); color:var(--ink); padding:14px 16px; border-radius:14px; border:1.5px solid var(--line); background:var(--bg)}
.bsd input:focus,.bsd select:focus,.bsd textarea:focus{border-color:var(--lilac); background:#fff; outline:none}
.bsd textarea{resize:vertical; min-height:110px}
.bsd .field-err{color:var(--red); font-size:13px; margin-top:6px; min-height:0}

/* Trust strip */
.bsd .trust{display:flex; flex-wrap:wrap; justify-content:space-between; gap:24px; padding:44px 0 0; color:var(--muted); font-size:15px}
.bsd .trust div{display:flex; align-items:center; gap:10px}
.bsd .trust svg{width:22px; height:22px; color:var(--lilac); flex:none}

/* Service cards */
.bsd .services{display:grid; grid-template-columns:repeat(3,1fr); gap:24px}
.bsd .svc{background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; display:flex; flex-direction:column}
.bsd .svc .pic{border-radius:0; aspect-ratio:16/10}
.bsd .svc-body{padding:24px; display:flex; flex-direction:column; gap:10px; flex:1}
.bsd .svc h3{font-size:21px}
.bsd .svc p{color:var(--muted); font-size:16px}
.bsd .svc-foot{margin-top:auto; padding-top:10px; display:flex; justify-content:space-between; align-items:center; gap:10px}
.bsd .price{font-weight:500}
.bsd .svc-link{font-weight:500; color:var(--lilac); text-decoration:none}
.bsd .svc-link:hover{text-decoration:underline}

/* Steps */
.bsd .steps{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3,1fr); gap:24px; counter-reset:s}
.bsd .steps li{background:#fff; border-radius:var(--radius); padding:30px; position:relative}
.bsd .steps li::before{counter-increment:s; content:counter(s); display:grid; place-items:center; width:46px; height:46px; border-radius:14px; background:var(--lilac); color:#fff; font-weight:600; font-size:19px; margin-bottom:18px}
.bsd .steps h3{font-size:21px; margin-bottom:8px}
.bsd .steps p{color:var(--muted); font-size:16px}

/* Split + why */
.bsd .split{display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center}
.bsd .why{list-style:none; padding:0; margin:28px 0 0; display:grid; grid-template-columns:1fr 1fr; gap:22px}
.bsd .why li{display:flex; gap:14px}
.bsd .why .ic{width:44px; height:44px; flex:none; border-radius:14px; background:var(--mint-soft); color:var(--mint); display:grid; place-items:center}
.bsd .why .ic svg{width:22px; height:22px}
.bsd .why b{display:block; margin-bottom:2px}
.bsd .why span{color:var(--muted); font-size:15px}
.bsd .split .pic.tall{aspect-ratio:5/6}

/* Doctors */
.bsd .docs{display:grid; grid-template-columns:repeat(3,1fr); gap:24px}
.bsd .doc{background:#fff; border-radius:var(--radius); overflow:hidden; border:1px solid var(--line)}
.bsd .doc .pic{border-radius:0; aspect-ratio:1/1}
.bsd .doc div.info{padding:20px 22px}
.bsd .doc h3{font-size:20px}
.bsd .doc p{color:var(--muted); font-size:15px}

/* Testimonials */
.bsd .quotes{display:grid; grid-template-columns:repeat(3,1fr); gap:24px}
.bsd .quote{background:#fff; border-radius:var(--radius); padding:28px; display:flex; flex-direction:column; gap:16px}
.bsd .quote p{font-size:17px}
.bsd .quote footer{margin-top:auto; font-size:15px; color:var(--muted)}
.bsd .quote footer b{color:var(--ink); display:block}

/* Emergency band */
.bsd .emergency{background:var(--red-soft); border-radius:28px; padding:40px; display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap}
.bsd .emergency h2{font-size:clamp(26px,3vw,36px); margin-bottom:6px}

/* FAQ */
.bsd .faq{max-width:820px; margin:0 auto}
.bsd details{background:#fff; border-radius:16px; padding:20px 24px; margin-bottom:12px; border:1px solid var(--line)}
.bsd summary{cursor:pointer; list-style:none; font-weight:500; font-size:18px; display:flex; justify-content:space-between; gap:16px}
.bsd summary::-webkit-details-marker{display:none}
.bsd summary::after{content:"+"; font-size:24px; line-height:1; color:var(--lilac)}
.bsd details[open] summary::after{content:"\2212"}
.bsd details p{margin-top:10px; color:var(--muted)}

/* CTA band */
.bsd .cta-band{background:var(--lilac); color:#fff; border-radius:32px; padding:64px 48px; text-align:center}
.bsd .cta-band h2{font-size:clamp(30px,4vw,48px); max-width:18ch; margin:0 auto 14px}
.bsd .cta-band p{opacity:.9; margin-bottom:28px}
.bsd .cta-band .row{justify-content:center}
.bsd .cta-band .btn-line{border-color:#fff; color:#fff}
.bsd .cta-band .btn-line:hover{background:#fff; color:var(--lilac)}

/* Page hero (inner pages) */
.bsd .page-hero{padding:64px 0 56px; background:var(--lilac-soft)}
.bsd .page-hero h1{font-size:clamp(36px,4.6vw,56px); margin-bottom:14px}

/* Services page list */
.bsd .svc-row{display:grid; grid-template-columns:320px 1fr auto; gap:32px; align-items:center; background:#fff; border-radius:24px; padding:20px; border:1px solid var(--line); margin-bottom:20px}
.bsd .svc-row .pic{aspect-ratio:4/3}
.bsd .svc-row h2{font-size:26px; margin-bottom:8px}
.bsd .svc-row ul{margin:12px 0 0; padding-left:20px; color:var(--muted); font-size:16px}
.bsd .svc-meta{text-align:right; display:flex; flex-direction:column; gap:10px; align-items:flex-end; padding-right:12px}
.bsd .svc-meta .price{font-size:22px}
.bsd .tag{display:inline-block; font-size:13px; font-weight:500; padding:4px 10px; border-radius:999px; background:var(--lilac-soft); color:var(--lilac-d)}

/* Booking page */
.bsd .book-grid{display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:32px; align-items:start}
.bsd .book-grid > *{min-width:0}
.bsd .step-card{background:#fff; border-radius:24px; padding:28px; border:1px solid var(--line); margin-bottom:20px}
.bsd .step-card h2{font-size:22px; margin-bottom:18px; display:flex; align-items:center; gap:12px}
.bsd .step-card h2 span{width:34px; height:34px; border-radius:10px; background:var(--lilac-soft); color:var(--lilac-d); display:grid; place-items:center; font-size:16px}
.bsd .choice-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:12px}
.bsd .choice{text-align:left; font:400 15px/1.4 var(--font); color:var(--ink); background:var(--bg); border:1.5px solid var(--line); border-radius:16px; padding:16px; cursor:pointer}
.bsd .choice b{display:block; font-size:16px; margin-bottom:2px}
.bsd .choice small{color:var(--muted)}
.bsd .choice:hover{border-color:var(--lilac)}
.bsd .choice[aria-pressed="true"]{border-color:var(--lilac); background:var(--lilac-soft); box-shadow:inset 0 0 0 1px var(--lilac)}
.bsd .dates{display:grid; grid-auto-flow:column; grid-auto-columns:84px; gap:10px; overflow-x:auto; padding-bottom:8px; scrollbar-width:thin}
.bsd .date{font:400 14px/1.3 var(--font); color:var(--ink); background:var(--bg); border:1.5px solid var(--line); border-radius:16px; padding:12px 6px; text-align:center; cursor:pointer}
.bsd .date b{display:block; font-size:22px; font-weight:600}
.bsd .date small{display:block; color:var(--muted); font-size:12px}
.bsd .date[aria-pressed="true"]{background:var(--lilac); border-color:var(--lilac); color:#fff}
.bsd .date[aria-pressed="true"] small{color:#fff}
.bsd .date:disabled{opacity:.4; cursor:not-allowed}
.bsd .times{display:grid; grid-template-columns:repeat(4,1fr); gap:10px}
.bsd .time{font:500 15px/1.2 var(--font); color:var(--ink); background:var(--mint-soft); border:1.5px solid transparent; border-radius:14px; padding:12px 6px; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:2px; min-height:56px; justify-content:center; transition:background .3s}
.bsd .time small{font-size:12px; font-weight:400; color:var(--mint)}
.bsd .time:hover{border-color:var(--mint)}
.bsd .time[aria-pressed="true"]{background:var(--mint); color:#fff}
.bsd .time[aria-pressed="true"] small{color:#fff}
.bsd .time:disabled{background:transparent; border:1.5px dashed var(--line); color:#A5A2BC; cursor:not-allowed}
.bsd .time:disabled small{color:#A5A2BC}
.bsd .time.just{animation:bsd-flash 1.2s}
@keyframes bsd-flash{0%{background:var(--sun)} 100%{background:transparent}}
.bsd .legend{display:flex; gap:18px; font-size:14px; color:var(--muted); margin-top:14px}
.bsd .legend i{display:inline-block; width:12px; height:12px; border-radius:4px; margin-right:6px; vertical-align:-1px}
.bsd .empty{padding:20px; text-align:center; color:var(--muted); background:var(--bg); border-radius:14px}
.bsd .form-grid{display:grid; grid-template-columns:1fr 1fr; gap:16px}
.bsd .form-grid .full{grid-column:1/-1}
.bsd .summary{position:sticky; top:96px; background:#fff; border-radius:24px; padding:26px; border:1px solid var(--line); box-shadow:0 30px 60px -40px rgba(30,27,58,.4)}
.bsd .summary h3{font-size:20px; margin-bottom:16px}
.bsd .sum-row{display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); font-size:15px}
.bsd .sum-row span{color:var(--muted)}
.bsd .sum-row b{text-align:right}
.bsd .summary .btn{width:100%; margin-top:20px}
.bsd .summary .note{font-size:13px; color:var(--muted); margin-top:12px; text-align:center}
.bsd .success{display:none; background:#fff; border-radius:28px; padding:44px; border:1px solid var(--line); text-align:center; max-width:720px; margin:0 auto}
.bsd .success.show{display:block; animation:bsd-in .5s ease}
@keyframes bsd-in{from{opacity:0; transform:translateY(16px)} to{opacity:1; transform:none}}
.bsd .success .check{width:72px; height:72px; border-radius:50%; background:var(--mint-soft); color:var(--mint); display:grid; place-items:center; margin:0 auto 20px}
.bsd .success h2{font-size:32px; margin-bottom:10px}
.bsd .success .details{background:var(--bg); border-radius:18px; padding:20px; margin:24px 0; text-align:left; display:grid; gap:8px}
.bsd .success .row{justify-content:center}
.bsd .success .next{margin-top:24px; font-size:15px; color:var(--muted)}

/* Contact */
.bsd .contact-cards{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:48px}
.bsd .c-card{background:#fff; border-radius:var(--radius); padding:28px; border:1px solid var(--line)}
.bsd .c-card .ic{width:48px; height:48px; border-radius:14px; background:var(--lilac-soft); color:var(--lilac); display:grid; place-items:center; margin-bottom:16px}
.bsd .c-card .ic svg{width:24px; height:24px}
.bsd .c-card h3{font-size:19px; margin-bottom:6px}
.bsd .c-card a{font-weight:500; text-decoration:none; color:var(--lilac-d)}
.bsd .hours{width:100%; border-collapse:collapse; font-size:16px}
.bsd .hours td{padding:12px 0; border-bottom:1px solid var(--line)}
.bsd .hours td:last-child{text-align:right; font-weight:500}
.bsd .hours tr.today td{color:var(--lilac-d); font-weight:600}
.bsd .map{aspect-ratio:16/10; border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); background:var(--lilac-soft)}
.bsd .map iframe{width:100%; height:100%; border:0}
.bsd .form-card{background:#fff; border-radius:24px; padding:32px; border:1px solid var(--line)}
.bsd .ok-msg{display:none; margin-top:14px; padding:14px 16px; border-radius:14px; background:var(--mint-soft); color:var(--mint); font-weight:500}
.bsd .ok-msg.show{display:block}

/* Footer */
.bsd .footer{background:var(--ink); color:#C9C6E0; padding:72px 0 32px; font-size:15px}
.bsd .footer .cols{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px}
.bsd .footer h4{color:#fff; font-size:16px; margin-bottom:14px}
.bsd .footer ul{list-style:none; margin:0; padding:0; display:grid; gap:8px}
.bsd .footer a{text-decoration:none}
.bsd .footer a:hover{color:#fff}
.bsd .footer .logo{color:#fff; margin-bottom:14px}
.bsd .footer .base{border-top:1px solid #3A3660; margin-top:48px; padding-top:24px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:14px}

/* Mobile sticky action bar */
.bsd .mbar{display:none}

/* Toast */
.bsd .toast{position:fixed; right:20px; bottom:20px; z-index:90; background:var(--ink); color:#fff; padding:14px 18px; border-radius:14px; font-size:15px; max-width:360px; box-shadow:0 20px 40px -20px rgba(0,0,0,.5); transform:translateY(20px); opacity:0; transition:all .35s; pointer-events:none}
.bsd .toast.show{transform:none; opacity:1}

/* Reveal */
.bsd .reveal{opacity:0; transform:translateY(22px); transition:opacity .7s ease, transform .7s ease}
.bsd .reveal.in{opacity:1; transform:none}

/* ===== Dashboard ===== */
.bsd.dash-body{background:#F4F3FA}
.bsd .dash{display:grid; grid-template-columns:240px 1fr; min-height:100vh}
.bsd .side{background:var(--ink); color:#C9C6E0; padding:24px 18px; display:flex; flex-direction:column; gap:28px}
.bsd .side .logo{color:#fff; font-size:17px; white-space:nowrap}
.bsd .side nav{display:grid; gap:4px}
.bsd .side nav a{display:flex; align-items:center; gap:12px; padding:11px 14px; border-radius:12px; text-decoration:none; font-size:15px}
.bsd .side nav a svg{width:18px; height:18px}
.bsd .side nav a[aria-current="page"]{background:#2F2B55; color:#fff}
.bsd .side nav a:hover{color:#fff}
.bsd .side .back{margin-top:auto; font-size:14px}
.bsd .main{padding:28px 32px; min-width:0}
.bsd .dash-top{display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:24px}
.bsd .dash-top h1{font-size:28px}
.bsd .live{display:inline-flex; align-items:center; gap:8px; font-size:14px; font-weight:500; color:var(--mint); background:var(--mint-soft); padding:6px 12px; border-radius:999px}
.bsd .live i{width:8px; height:8px; border-radius:50%; background:var(--mint); animation:bsd-pulse 1.8s infinite}
.bsd .daynav{display:flex; align-items:center; gap:8px}
.bsd .icon-btn{width:40px; height:40px; border-radius:12px; border:1px solid var(--line); background:#fff; cursor:pointer; display:grid; place-items:center; color:var(--ink)}
.bsd .icon-btn svg{width:18px; height:18px}
.bsd .stats{display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:24px}
.bsd .stat{background:#fff; border-radius:18px; padding:20px; border:1px solid var(--line)}
.bsd .stat span{font-size:14px; color:var(--muted)}
.bsd .stat b{display:block; font-size:30px; font-weight:600; margin-top:4px}
.bsd .stat.hi{background:var(--lilac); color:#fff; border-color:var(--lilac)}
.bsd .stat.hi span{color:#E3DFFC}
.bsd .dash-grid{display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:24px; align-items:start}
.bsd .panel{background:#fff; border-radius:20px; border:1px solid var(--line); padding:22px; margin-bottom:24px}
.bsd .panel-head{display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:14px; flex-wrap:wrap}
.bsd .panel-head h2{font-size:19px}
.bsd .tabs{display:flex; gap:6px; flex-wrap:wrap}
.bsd .tab{font:400 14px var(--font); padding:8px 12px; border-radius:10px; border:1px solid var(--line); background:#fff; cursor:pointer; color:var(--ink)}
.bsd .tab[aria-pressed="true"]{background:var(--ink); color:#fff; border-color:var(--ink)}
.bsd .appt{display:grid; grid-template-columns:86px 1fr auto; gap:14px; align-items:center; padding:13px 12px; border-radius:14px; cursor:pointer; border:1px solid transparent; width:100%; background:none; text-align:left; font:inherit; color:inherit}
.bsd .appt + .appt{margin-top:4px}
.bsd .appt:hover{background:var(--bg)}
.bsd .appt.sel{border-color:var(--lilac); background:var(--lilac-soft)}
.bsd .appt time{font-weight:600; font-size:15px; white-space:nowrap}
.bsd .appt .who b{display:block; font-weight:500}
.bsd .appt .who span{font-size:14px; color:var(--muted)}
.bsd .appt.new-in{animation:bsd-in .6s ease}
.bsd .pill{font-style:normal; font-size:12px; font-weight:500; padding:5px 10px; border-radius:999px; white-space:nowrap; display:inline-block}
.bsd .p-done{background:#EFEFF4; color:#8C89A6}
.bsd .p-chair{background:var(--lilac); color:#fff}
.bsd .p-arrived{background:var(--sun-soft); color:#8A6200}
.bsd .p-soon{background:var(--sun-soft); color:#8A6200}
.bsd .p-conf{background:var(--mint-soft); color:var(--mint)}
.bsd .p-online{background:var(--sun); color:var(--ink)}
.bsd .now-line{display:flex; align-items:center; gap:10px; font-size:12px; font-weight:600; color:var(--red); margin:6px 0}
.bsd .now-line::after{content:""; flex:1; height:2px; background:var(--red)}
.bsd .detail h3{font-size:22px; margin-bottom:4px}
.bsd .detail .meta{display:grid; gap:10px; margin:18px 0; font-size:15px}
.bsd .detail .meta div{display:flex; justify-content:space-between; gap:12px; border-bottom:1px solid var(--line); padding-bottom:10px}
.bsd .detail .meta span{color:var(--muted)}
.bsd .actions{display:grid; gap:10px}
.bsd .actions .btn{width:100%}
.bsd .upload{border:2px dashed var(--line); border-radius:16px; padding:16px; text-align:center; font-size:14px; color:var(--muted); cursor:pointer; display:block}
.bsd .upload:hover{border-color:var(--lilac)}
.bsd .upload input{display:none}
.bsd .log{margin-top:14px; display:grid; gap:8px; font-size:14px}
.bsd .log div{background:var(--mint-soft); color:#13684F; padding:10px 12px; border-radius:12px}
.bsd .feed-item{display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); font-size:15px}
.bsd .feed-item:last-child{border-bottom:0}
.bsd .feed-item span{color:var(--muted); font-size:13px; white-space:nowrap}
.bsd .rem{display:flex; justify-content:space-between; gap:10px; font-size:14px; padding:10px 0; border-bottom:1px solid var(--line)}
.bsd .rem:last-child{border-bottom:0}
.bsd .rem span{color:var(--muted)}

/* Dashboard views */
.bsd [data-panel][hidden]{display:none}
.bsd .week{display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px}
.bsd .day-col{background:var(--bg); border:1px solid var(--line); border-radius:16px; padding:12px; min-height:260px; display:flex; flex-direction:column; gap:6px}
.bsd .day-col.is-today{border-color:var(--lilac); box-shadow:inset 0 0 0 1px var(--lilac)}
.bsd .day-head{display:flex; justify-content:space-between; align-items:baseline; margin-bottom:4px; font-size:15px}
.bsd .day-head span{font-size:12px; color:var(--muted)}
.bsd .appt-chip{display:grid; grid-template-columns:1fr; gap:1px; text-align:left; width:100%; border:0; cursor:pointer; font:inherit; color:var(--ink); background:var(--lilac-soft); border-radius:10px; padding:7px 9px; font-size:13px}
.bsd .appt-chip time{font-weight:600; white-space:nowrap}
.bsd .appt-chip small{color:var(--muted); font-size:11px}
.bsd .appt-chip span{font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.bsd .appt-chip.online{background:var(--sun-soft)}
.bsd .appt-chip:hover{outline:2px solid var(--lilac)}
.bsd .search{max-width:260px; padding:10px 14px; font-size:15px}
.bsd .table-wrap{overflow-x:auto}
.bsd .ptable{width:100%; border-collapse:collapse; font-size:15px; min-width:620px}
.bsd .ptable th{text-align:left; font-weight:500; color:var(--muted); font-size:13px; padding:10px 12px; border-bottom:1px solid var(--line)}
.bsd .ptable td{padding:12px; border-bottom:1px solid var(--line)}
.bsd .ptable tr:hover td{background:var(--bg)}


/* ===== v2: booking UX ===== */
.bsd .stepper{list-style:none; margin:0 0 18px; padding:0; display:grid; grid-template-columns:repeat(4,1fr); gap:8px}
.bsd .stepper li{display:flex; align-items:center; gap:8px; font-size:14px; font-weight:500; color:var(--muted); background:#fff; border:1px solid var(--line); border-radius:14px; padding:10px 12px}
.bsd .stepper li span{width:24px; height:24px; border-radius:8px; display:grid; place-items:center; background:var(--bg); font-size:13px; flex:none}
.bsd .stepper li.active{border-color:var(--lilac); color:var(--ink)}
.bsd .stepper li.active span{background:var(--lilac); color:#fff}
.bsd .stepper li.done{color:var(--mint)}
.bsd .stepper li.done span{background:var(--mint); color:#fff; font-size:0}
.bsd .stepper li.done span::after{content:"\2713"; font-size:13px}
.bsd .next-slot{display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; background:var(--mint-soft); border-radius:16px; padding:14px 18px; margin-bottom:20px; font-size:15px}
.bsd .next-slot[hidden]{display:none}
.bsd .pulse-dot{display:inline-block; width:10px; height:10px; border-radius:50%; background:var(--mint); margin-right:8px; animation:bsd-pulse 1.8s infinite}
.bsd .doc-choice{display:flex; gap:12px; align-items:flex-start}
.bsd .doc-av{width:40px; height:40px; border-radius:12px; display:grid; place-items:center; color:#fff; font-weight:600; font-size:14px; flex:none}
.bsd .doc-av.sm{width:26px; height:26px; border-radius:8px; font-size:11px}
.bsd .doc-choice small{display:block}
.bsd .doc-next{color:var(--mint)!important; font-weight:500; margin-top:2px}
.bsd .doc-next.none{color:#A5A2BC!important}
.bsd .time-group{font-size:14px; font-weight:600; margin:4px 0 10px}
.bsd .time-group span{font-weight:400; color:var(--muted); margin-left:6px}
.bsd .time-wrap .times + .time-group{margin-top:18px}

.bsd .time-hint{font-size:14px; color:var(--muted); background:var(--bg); border-radius:12px; padding:10px 12px; margin-bottom:14px}
.bsd .doc-choice:disabled{opacity:.55; cursor:not-allowed}

/* ===== v2: dashboard ===== */
.bsd .sec-label{font-size:17px; margin:0 0 12px}
.bsd .doctors{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:24px}
.bsd .doc-card{background:#fff; border:1px solid var(--line); border-radius:18px; padding:18px; display:flex; flex-direction:column; gap:8px; position:relative; overflow:hidden}
.bsd .doc-card::before{content:""; position:absolute; left:0; top:0; bottom:0; width:5px; background:var(--line)}
.bsd .doc-card.st-free::before{background:var(--mint)}
.bsd .doc-card.st-busy::before{background:var(--lilac)}
.bsd .doc-card.st-idle::before{background:var(--sun)}
.bsd .doc-card.st-off{opacity:.7}
.bsd .doc-top{display:flex; gap:12px; align-items:center}
.bsd .doc-top b{display:block; font-size:16px}
.bsd .doc-top span:not(.doc-av){font-size:13px; color:var(--muted)}
.bsd .doc-status{display:flex; align-items:center; gap:8px; font-size:16px; margin-top:4px}
.bsd .dot-st{width:10px; height:10px; border-radius:50%; background:#C9C6E0}
.bsd .st-free .dot-st{background:var(--mint); animation:bsd-pulse 1.8s infinite}
.bsd .st-busy .dot-st{background:var(--lilac)}
.bsd .st-idle .dot-st{background:var(--sun)}
.bsd .doc-sub{font-size:14px; color:var(--muted)}
.bsd .doc-sub.link{color:var(--lilac-d); cursor:pointer; text-decoration:underline}
.bsd .doc-bar{height:6px; border-radius:99px; background:var(--bg); overflow:hidden}
.bsd .doc-bar i{display:block; height:100%; background:var(--lilac); border-radius:99px}
.bsd .doc-count{font-size:13px; color:var(--muted)}
.bsd .doc-card .btn{margin-top:auto}
.bsd .legend-row{display:flex; flex-wrap:wrap; gap:14px; font-size:13px; color:var(--muted)}
.bsd .lg{display:inline-block; width:12px; height:12px; border-radius:4px; margin-right:6px; vertical-align:-1px}
.bsd .lg.free{border:1.5px dashed var(--mint); background:#fff}
.bsd .lg.booked{background:var(--lilac-soft)}
.bsd .lg.chair{background:var(--lilac)}
.bsd .lg.online{background:var(--sun)}
.bsd .lg.open{background:var(--mint-soft)}
.bsd .lg.some{background:var(--sun-soft)}
.bsd .lg.full{background:#E9E7F3}
.bsd .grid-wrap{overflow-x:auto}
.bsd .day-grid{display:grid; grid-template-columns:76px repeat(3,minmax(150px,1fr)); gap:6px; min-width:560px}
.bsd .g-head{font-size:14px; font-weight:600; display:flex; align-items:center; gap:8px; padding:4px 2px 8px; position:sticky; top:0; background:#fff}
.bsd .g-time{font-size:13px; font-weight:500; color:var(--muted); padding-top:12px; white-space:nowrap}
.bsd .g-cell{min-height:64px; border-radius:12px; padding:9px 11px; font:inherit; text-align:left; border:0; display:flex; flex-direction:column; gap:2px; color:var(--ink)}
.bsd .g-cell b{font-size:14px; font-weight:600; line-height:1.25}
.bsd .g-cell > span{font-size:12px; color:var(--muted)}
.bsd .g-tags{display:flex; gap:4px; flex-wrap:wrap; margin-top:3px}
.bsd .g-cell .pill{font-size:11px; padding:2px 8px}
.bsd .g-cell.appt{background:var(--lilac-soft); border-left:4px solid var(--lilac); cursor:pointer}
.bsd .g-cell.appt:hover{box-shadow:0 0 0 2px var(--lilac)}
.bsd .g-cell.appt.s-chair{background:var(--lilac); color:#fff; border-left-color:var(--ink)}
.bsd .g-cell.appt.s-chair > span{color:#E3DFFC}
.bsd .g-cell.appt.s-done{background:#F1F0F6; border-left-color:#C9C6E0; color:#7E7B98}
.bsd .g-cell.appt.s-noshow{background:var(--red-soft); border-left-color:var(--red)}
.bsd .g-cell.appt.s-arrived{border-left-color:var(--sun)}
.bsd .g-cell.appt.has-cont{border-bottom-left-radius:4px; border-bottom-right-radius:4px}
.bsd .g-cell.appt.cont{min-height:44px; margin-top:-4px; border-top-left-radius:4px; border-top-right-radius:4px; background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.35) 0 6px,transparent 6px 12px); justify-content:center}
.bsd .g-cell.appt.cont span{font-size:12px}
.bsd .g-cell.free{background:#fff; border:1.5px dashed #9FD9C3; cursor:pointer; align-items:center; justify-content:center; text-align:center}
.bsd .g-cell.free span{font-weight:600; color:var(--mint); font-size:14px}
.bsd .g-cell.free small{font-size:12px; color:var(--muted); opacity:0; transition:opacity .2s}
.bsd .g-cell.free:hover{background:var(--mint-soft)}
.bsd .g-cell.free:hover small,.bsd .g-cell.free:focus-visible small{opacity:1}
.bsd .g-cell.past{background:repeating-linear-gradient(135deg,#F6F5FA 0 8px,#F1F0F6 8px 16px)}
.bsd .g-cell.off{background:var(--bg); color:#A5A2BC; font-size:13px; align-items:center; justify-content:center}
.bsd .g-break{grid-column:1/-1; text-align:center; font-size:12px; color:var(--muted); background:var(--bg); border-radius:8px; padding:6px}
.bsd .g-now{grid-column:1/-1; display:flex; align-items:center; gap:10px; font-size:12px; font-weight:600; color:var(--red)}
.bsd .g-now::after{content:""; flex:1; height:2px; background:var(--red)}
.bsd .new-in{animation:bsd-in .6s ease, bsd-glow 2.4s ease}
@keyframes bsd-glow{0%,60%{box-shadow:0 0 0 3px var(--sun)}100%{box-shadow:none}}
.bsd .pill.src-online{background:var(--sun); color:var(--ink)}
.bsd .pill.src-walkin{background:#FDE7D6; color:#9A4A0E}
.bsd .p-noshow{background:var(--red-soft); color:var(--red)}
.bsd .feed-btn{width:100%; background:none; border:0; border-bottom:1px solid var(--line); text-align:left; font:inherit; color:inherit; cursor:pointer; padding:12px 6px; border-radius:10px}
.bsd .feed-btn:hover{background:var(--bg)}
.bsd .rem-btn{width:100%; background:none; border:0; border-bottom:1px solid var(--line); text-align:left; font:inherit; color:inherit; cursor:pointer}
.bsd .rem-btn:hover{background:var(--bg)}

/* week overview */
.bsd .week-grid{display:grid; grid-template-columns:76px repeat(6,minmax(90px,1fr)); gap:6px; min-width:680px}
.bsd .w-day{font:inherit; color:var(--ink); background:var(--bg); border:1px solid var(--line); border-radius:12px; padding:10px; text-align:left; cursor:pointer}
.bsd .w-day b{display:block; font-size:15px}
.bsd .w-day span{font-size:12px; color:var(--muted)}
.bsd .w-day.is-today{border-color:var(--lilac); background:var(--lilac-soft)}
.bsd .w-cell{font:500 13px var(--font); border:0; border-radius:10px; min-height:40px; cursor:pointer; color:var(--ink)}
.bsd .w-cell.open{background:var(--mint-soft); color:#13684F}
.bsd .w-cell.some{background:var(--sun-soft); color:#8A6200}
.bsd .w-cell.full{background:#E9E7F3; color:#7E7B98}
.bsd .w-cell.past{background:repeating-linear-gradient(135deg,#F6F5FA 0 8px,#F1F0F6 8px 16px); cursor:pointer}
.bsd .w-cell.closed{background:transparent; color:#C9C6E0; display:grid; place-items:center; cursor:default}
.bsd .w-cell:hover:not(.closed){outline:2px solid var(--lilac)}
.bsd .ptable tr[data-name]{cursor:pointer}
.bsd .ptable td .pf-av.sm{margin-right:10px; vertical-align:middle}

/* profile drawer */
.bsd .drawer{margin:0 0 0 auto; height:100%; max-height:100vh; width:min(460px,100vw); border:0; padding:0; background:#fff; color:var(--ink); font-family:var(--font); box-shadow:-30px 0 60px -20px rgba(30,27,58,.35)}
.bsd .drawer::backdrop{background:rgba(30,27,58,.4)}
.bsd .drawer[open]{animation:bsd-slide .3s cubic-bezier(.2,.8,.2,1)}
@keyframes bsd-slide{from{transform:translateX(40px); opacity:0}to{transform:none; opacity:1}}
.bsd .drawer-bar{display:flex; justify-content:space-between; align-items:center; padding:16px 22px; border-bottom:1px solid var(--line); font-size:14px; color:var(--muted); position:sticky; top:0; background:#fff; z-index:1}
.bsd .drawer-body{padding:22px; overflow-y:auto; height:calc(100% - 73px)}
.bsd .pf-head{display:flex; gap:14px; align-items:center}
.bsd .pf-av{width:56px; height:56px; border-radius:16px; background:var(--ink); color:var(--sun); display:grid; place-items:center; font-weight:600; font-size:18px; flex:none}
.bsd .pf-av.sm{width:30px; height:30px; border-radius:9px; font-size:11px; display:inline-grid}
.bsd .pf-head h2{font-size:22px}
.bsd .pf-tags{display:flex; gap:6px; flex-wrap:wrap; margin-top:6px}
.bsd .pf-contact{display:grid; gap:4px; margin:16px 0 4px; font-size:15px}
.bsd .pf-contact a{color:var(--lilac-d); text-decoration:none}
.bsd .pf-sec{border-top:1px solid var(--line); padding:18px 0 4px; margin-top:14px}
.bsd .pf-sec h3{font-size:15px; margin-bottom:10px}
.bsd .pf-appt{display:flex; justify-content:space-between; align-items:flex-start; gap:12px; background:var(--bg); border-radius:14px; padding:14px}
.bsd .pf-appt span{display:block; font-size:14px; color:var(--muted)}
.bsd .pf-note{font-size:14px; background:var(--sun-soft); border-radius:10px; padding:10px 12px; margin-top:10px}
.bsd .pf-status{display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:12px}
.bsd .pf-list{display:grid; gap:8px}
.bsd .pf-list div{background:var(--bg); border-radius:12px; padding:10px 12px; font-size:14px}
.bsd .pf-list b{display:block; font-weight:600}
.bsd .pf-list span{color:var(--muted)}
.bsd .drawer select{margin-top:10px}
.bsd .drawer textarea{min-height:90px}

/* walk-in modal */
.bsd .modal{border:0; border-radius:24px; padding:28px; width:min(520px,calc(100vw - 32px)); color:var(--ink); font-family:var(--font); box-shadow:0 40px 80px -30px rgba(30,27,58,.5)}
.bsd .modal::backdrop{background:rgba(30,27,58,.4)}
.bsd .modal h2{font-size:22px}

@media (max-width:1024px){
  .bsd .doctors{grid-template-columns:1fr}
}
@media (max-width:640px){
  .bsd .stepper{grid-template-columns:repeat(4,auto); overflow-x:auto}
  .bsd .stepper li{font-size:12px; padding:8px; white-space:nowrap}
  .bsd .daynav{flex-wrap:wrap}
  .bsd .drawer{width:100vw}
}

/* Responsive */
@media (max-width:1024px){
  .bsd .week{grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:200px; overflow-x:auto}
  .bsd .dash-grid{grid-template-columns:1fr}
  .bsd .stats{grid-template-columns:repeat(2,1fr)}
  .bsd .book-grid{grid-template-columns:minmax(0,1fr)}
  .bsd .summary{position:static}
}
@media (max-width:900px){
  .bsd{font-size:16px}
  .bsd .sec{padding:72px 0}
  .bsd .nav-links{display:none; position:absolute; left:0; right:0; top:100%; background:#fff; flex-direction:column; align-items:flex-start; gap:0; padding:8px 24px 20px; box-shadow:0 20px 30px -20px rgba(30,27,58,.3)}
  .bsd .nav-links.open{display:flex}
  .bsd .nav-links li{width:100%}
  .bsd .nav-links a{display:block; padding:12px 0}
  .bsd .menu-btn{display:block}
  .bsd .nav-cta .btn{display:none}
  .bsd .hero{padding:40px 0 72px}
  .bsd .hero-grid,.bsd .split{grid-template-columns:1fr; gap:40px}
  .bsd .float-next{left:12px} .bsd .float-hours{right:12px}
  .bsd .quick{margin-top:-30px}
  .bsd .quick-card{grid-template-columns:1fr}
  .bsd .services,.bsd .docs,.bsd .quotes,.bsd .steps,.bsd .contact-cards{grid-template-columns:1fr}
  .bsd .why{grid-template-columns:1fr}
  .bsd .svc-row{grid-template-columns:1fr; gap:18px}
  .bsd .svc-meta{text-align:left; align-items:flex-start; padding:0}
  .bsd .footer .cols{grid-template-columns:1fr 1fr}
  .bsd .choice-grid{grid-template-columns:1fr 1fr}
  .bsd .times{grid-template-columns:repeat(3,1fr)}
  .bsd .form-grid{grid-template-columns:1fr}
  .bsd .cta-band{padding:48px 24px}
  .bsd .mbar{display:grid; grid-template-columns:1fr 1fr; gap:10px; position:fixed; left:0; right:0; bottom:0; z-index:60; background:#fff; padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px)); box-shadow:0 -10px 30px -10px rgba(30,27,58,.25)}
  .bsd .mbar .btn{padding:14px}
  .bsd.has-mbar{padding-bottom:80px}
  .bsd .toast{bottom:96px; left:16px; right:16px; max-width:none}
  .bsd .dash{grid-template-columns:1fr}
  .bsd .side{flex-direction:row; align-items:center; padding:14px 16px; gap:16px; overflow-x:auto}
  .bsd .side nav{display:flex}
  .bsd .side nav a span{display:none}
  .bsd .side .back{margin:0 0 0 auto; white-space:nowrap}
  .bsd .main{padding:20px 16px}
}
@media (max-width:520px){
  .bsd .choice-grid{grid-template-columns:1fr}
  .bsd .footer .cols{grid-template-columns:1fr}
  .bsd .stats{grid-template-columns:1fr 1fr}
  .bsd .appt{grid-template-columns:76px 1fr}
  .bsd .appt .pill{grid-column:2; justify-self:start}
  .bsd .float-hours{display:none}
  .bsd .emergency{padding:28px}
}
@media (prefers-reduced-motion:reduce){
  .bsd *,.bsd *::before,.bsd *::after{animation:none !important; transition:none !important}
  .bsd .reveal{opacity:1; transform:none}
}