/* PBS Fitness Studio – design system (light, minimal, mobile-first) */
:root{
  --bg:#f6f5f3;--surface:#fff;--ink:#141414;--ink2:#3d3b37;--mute:#76736d;--line:#e9e6e0;
  --acc:#f26a1b;--acc-d:#d95a10;--acc-soft:#fff1e8;
  --ok:#127a3d;--ok-bg:#e6f5ec;--bad:#b42318;--bad-bg:#fdecea;--warn:#92580a;--warn-bg:#fdf3e1;
  --sh:0 1px 2px rgba(20,20,20,.04),0 6px 20px rgba(20,20,20,.04);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased}
h1,h2,h3,p{margin:0}
h1{font-size:22px;letter-spacing:-.02em;font-weight:700;line-height:1.25}
h2{font-size:17px;font-weight:600;letter-spacing:-.01em}
h3{font-size:15px;font-weight:600}
a{color:var(--acc-d)}
.mute{color:var(--mute)}.sm{font-size:13px}.xs{font-size:12px}.b{font-weight:600}
.hide{display:none!important}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.row.end{justify-content:flex-end}.row.between{justify-content:space-between}
.gap{display:grid;gap:14px}
svg.i{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}

/* brand */
.wm{display:flex;align-items:center;text-decoration:none;color:inherit}
.wm img{height:38px;width:auto;display:block}
.wm .lw{display:none}
/* dark backgrounds use the white logo, light backgrounds the black one */
.side .wm .lb,.auth-brand .wm .lb{display:none}
.side .wm .lw,.auth-brand .wm .lw{display:block}
.side .wm img,.auth-brand .wm img{height:50px}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 18px;border:1px solid transparent;border-radius:12px;background:var(--acc);color:#fff;font:600 15px Inter,system-ui,sans-serif;cursor:pointer;text-decoration:none;transition:background .15s,border-color .15s;white-space:nowrap}
.btn:hover{background:var(--acc-d)}.btn:disabled{opacity:.55;cursor:not-allowed}
.btn.ghost{background:#fff;color:var(--ink);border-color:var(--line)}.btn.ghost:hover{background:#faf9f7}
.btn.dark{background:var(--ink)}.btn.dark:hover{background:#2a2a2a}
.btn.danger{background:#fff;color:var(--bad);border-color:#f2c7c3}.btn.danger:hover{background:var(--bad-bg)}
.btn.bad{background:var(--bad)}.btn.bad:hover{background:#912016}
.btn.s{height:34px;padding:0 12px;font-size:13px;border-radius:10px}
.btn.block{width:100%}
.ib{width:40px;height:40px;border-radius:12px;border:1px solid var(--line);background:#fff;display:inline-grid;place-items:center;cursor:pointer;color:var(--ink);text-decoration:none;flex-shrink:0}
.ib:hover{background:#faf9f7}

/* forms */
.fld{margin-bottom:14px}
label.f{display:block;font-size:13px;font-weight:500;color:var(--ink2);margin:0 0 6px}
input,select,textarea{width:100%;height:46px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font:16px Inter,system-ui,sans-serif}
input:focus,select:focus{outline:none;border-color:var(--acc);box-shadow:0 0 0 4px rgba(242,106,27,.14)}
select{appearance:none;-webkit-appearance:none;padding-right:36px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2376736d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center}
.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.seg{display:flex;gap:8px}.seg label{flex:1;position:relative}
.seg input{position:absolute;opacity:0;inset:0;width:100%;height:100%;cursor:pointer}
.seg span{display:grid;place-items:center;height:46px;border:1px solid var(--line);border-radius:12px;background:#fff;font-weight:500;font-size:14px}
.seg input:checked+span{border-color:var(--acc);background:var(--acc-soft);color:var(--acc-d);font-weight:600}
.search{position:relative;flex:1;min-width:200px}.search svg{position:absolute;left:13px;top:13px;color:var(--mute);width:18px;height:18px}.search input{padding-left:40px}
.msg{padding:11px 14px;border-radius:12px;margin:4px 0 12px;font-size:14px}.msg.err{background:var(--bad-bg);color:var(--bad)}.msg.ok{background:var(--ok-bg);color:var(--ok)}

/* surfaces */
.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:var(--sh)}
.card.pad0{padding:0;overflow:hidden}
.card-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;gap:10px}
.badge{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:99px;font-size:12px;font-weight:600;white-space:nowrap}
.badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.badge.ok{background:var(--ok-bg);color:var(--ok)}.badge.bad{background:var(--bad-bg);color:var(--bad)}.badge.off{background:#efece7;color:var(--mute)}.badge.warn{background:var(--warn-bg);color:var(--warn)}
.badge.acc{background:var(--acc-soft);color:var(--acc-d)}.badge.plain::before{display:none}
.chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}.chips::-webkit-scrollbar{display:none}
.chip{height:36px;padding:0 14px;border:1px solid var(--line);border-radius:99px;background:#fff;font:500 13px Inter,system-ui,sans-serif;cursor:pointer;white-space:nowrap;color:var(--ink2)}
.chip.on{background:var(--ink);color:#fff;border-color:var(--ink)}
.av{width:38px;height:38px;border-radius:50%;background:var(--acc-soft);color:var(--acc-d);display:grid;place-items:center;font-weight:700;font-size:13px;flex-shrink:0}
.av.lg{width:52px;height:52px;font-size:18px}
.person{display:flex;align-items:center;gap:12px;min-width:0}.person>div{min-width:0}
.empty{text-align:center;padding:40px 16px;color:var(--mute)}
.empty .i{width:34px;height:34px;color:#c9c5bd;margin-bottom:8px}

/* stats */
.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:16px}
.stat{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;box-shadow:var(--sh)}
.stat .si{width:34px;height:34px;border-radius:10px;background:var(--acc-soft);color:var(--acc-d);display:grid;place-items:center;margin-bottom:12px}
.stat .l{color:var(--mute);font-size:12.5px;font-weight:500}
.stat .n{font-size:24px;font-weight:700;letter-spacing:-.02em;margin-top:2px}
.cols{display:grid;gap:16px}
.list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.list>div:last-child{border-bottom:0;padding-bottom:0}.list>div:first-child{padding-top:0}
.bl{margin:14px 0}.bl .t{display:flex;justify-content:space-between;gap:10px;font-size:13.5px;margin-bottom:6px}
.track{height:8px;background:#f0ede8;border-radius:6px;overflow:hidden}.fill{height:100%;background:var(--acc);border-radius:6px}
.kv{display:grid;grid-template-columns:1fr 1fr;gap:14px 12px}.kv .k{font-size:12px;color:var(--mute)}.kv .v{font-weight:500;word-break:break-word}

/* page header / toolbar */
.ph{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:18px;flex-wrap:wrap}
.ph p{color:var(--mute);font-size:14px;margin-top:2px}
.tb{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px;align-items:center}
.cards{display:grid;gap:12px;grid-template-columns:1fr}

/* table (cards on mobile) */
.tcard{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--sh);overflow:hidden}
.tw{overflow-x:auto}
.tbl{width:100%;border-collapse:collapse;font-size:14px}
.tbl th{text-align:left;font-size:12px;font-weight:600;color:var(--mute);padding:12px 16px;background:#faf9f7;border-bottom:1px solid var(--line);white-space:nowrap}
.tbl td{padding:13px 16px;border-bottom:1px solid var(--line);vertical-align:middle}
.tbl tr:last-child td{border-bottom:0}
.tbl tbody tr.click{cursor:pointer}.tbl tbody tr.click:hover{background:#fcfbf9}
.tbl td.act{text-align:right;white-space:nowrap}
@media(max-width:719px){
  .tcard{background:none;border:0;box-shadow:none;overflow:visible}
  .tbl thead{display:none}.tbl,.tbl tbody{display:block}
  .tbl tr{display:block;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin-bottom:10px;box-shadow:var(--sh)}
  .tbl td{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:6px 0;border:0;text-align:right}
  .tbl td::before{content:attr(data-l);color:var(--mute);font-size:12px;text-align:left;flex-shrink:0}
  .tbl td.pri{display:block;text-align:left;padding-bottom:8px}.tbl td.pri::before{display:none}
  .tbl td.act{justify-content:flex-end;padding-top:10px}.tbl td.act::before{display:none}
  .two.keep{grid-template-columns:1fr 1fr}
}

/* admin shell */
.side{display:none}
.main{padding-bottom:88px;min-height:100vh}
.bar{position:sticky;top:0;z-index:20;background:rgba(246,245,243,.92);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 16px;height:60px;gap:10px}
.bar .ttl{font-weight:700;font-size:16px}
.content{padding:18px 16px;max-width:1120px;margin:0 auto}
.bnav{position:fixed;left:0;right:0;bottom:0;z-index:30;background:#fff;border-top:1px solid var(--line);display:flex;padding:6px 6px calc(6px + env(safe-area-inset-bottom))}
.bnav button{flex:1;background:none;border:0;display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 0;font:500 11px Inter,system-ui,sans-serif;color:var(--mute);cursor:pointer}
.bnav button.on{color:var(--acc-d)}
.side nav{display:grid;gap:4px;margin-top:26px}
.side nav button{display:flex;align-items:center;gap:12px;width:100%;height:42px;padding:0 12px;border:0;border-radius:10px;background:none;color:#b9b6af;font:500 14px Inter,system-ui,sans-serif;cursor:pointer;text-align:left}
.side nav button:hover{background:#1d1d1d;color:#fff}
.side nav button.on{background:#242424;color:#fff}.side nav button.on svg{color:var(--acc)}
.side .foot{margin-top:auto;border-top:1px solid #262626;padding-top:14px;display:grid;gap:4px}
.side .foot a,.side .foot button{display:flex;align-items:center;gap:12px;height:40px;padding:0 12px;border:0;border-radius:10px;background:none;color:#b9b6af;font:500 14px Inter,system-ui,sans-serif;cursor:pointer;text-decoration:none}
.side .foot a:hover,.side .foot button:hover{background:#1d1d1d;color:#fff}
.menu a,.menu button{display:flex;align-items:center;gap:14px;width:100%;height:50px;border:0;background:none;border-bottom:1px solid var(--line);font:500 15px Inter,system-ui,sans-serif;color:var(--ink);cursor:pointer;text-decoration:none;text-align:left}
.menu>*:last-child{border-bottom:0}

/* sheets, toast */
.ov{position:fixed;inset:0;background:rgba(20,20,20,.45);z-index:100;display:flex;align-items:flex-end;justify-content:center;animation:fade .15s}
.sheet{background:#fff;width:100%;max-height:92vh;border-radius:20px 20px 0 0;display:flex;flex-direction:column;animation:up .22s ease}
.sh-h{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid var(--line)}
.sh-b{padding:18px;overflow:auto;padding-bottom:calc(18px + env(safe-area-inset-bottom))}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:96px;background:var(--ink);color:#fff;padding:11px 18px;border-radius:12px;font-size:14px;z-index:200;box-shadow:0 8px 24px rgba(0,0,0,.2);max-width:90vw}
.toast.err{background:var(--bad)}
@keyframes fade{from{opacity:0}}@keyframes up{from{transform:translateY(30px);opacity:.6}}

@media(min-width:700px){
  .ov{align-items:center}.sheet{max-width:500px;border-radius:20px}.sheet.wide{max-width:640px}
  .cards{grid-template-columns:repeat(2,1fr)}
  .toast{bottom:32px}
}
@media(min-width:900px){
  .side{display:flex;position:fixed;inset:0 auto 0 0;width:248px;background:#121212;color:#fff;flex-direction:column;padding:20px 14px}
  .main{margin-left:248px;padding-bottom:30px}
  .bnav{display:none}
  .content{padding:28px 32px}.bar{padding:0 32px;height:64px}.bar .wm{display:none}
  .stats{grid-template-columns:repeat(3,1fr)}
  .cols{grid-template-columns:1fr 1fr}
  h1{font-size:26px}
}
@media(min-width:1100px){.cards.c3{grid-template-columns:repeat(3,1fr)}}

/* ---------- client site ---------- */
.demo{background:#fff6e0;color:#8a5a00;text-align:center;font-size:12.5px;padding:7px 12px;border-bottom:1px solid #f3e2b5}
.auth{min-height:100vh;display:grid}
.auth-brand{background:#121212;color:#fff;padding:22px 20px 26px;position:relative;overflow:hidden}
.auth-brand::after{content:"";position:absolute;right:-60px;top:-60px;width:220px;height:220px;border-radius:50%;background:radial-gradient(closest-side,rgba(242,106,27,.55),transparent)}
.auth-brand h2{font-size:22px;margin-top:22px;max-width:320px;line-height:1.25;position:relative;z-index:1}
.auth-brand p{color:#b9b6af;margin-top:8px;font-size:14px;max-width:340px;position:relative;z-index:1}
.auth-form{padding:24px 18px 40px;display:flex;justify-content:center}
.auth-box{width:100%;max-width:400px}
.tabs2{display:grid;grid-template-columns:1fr 1fr;background:#ebe8e2;border-radius:12px;padding:4px;margin-bottom:22px}
.tabs2 button{height:38px;border:0;background:none;border-radius:9px;font:600 14px Inter,system-ui,sans-serif;color:var(--mute);cursor:pointer}
.tabs2 button.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.top{position:sticky;top:0;z-index:20;background:rgba(246,245,243,.92);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.top .in{max-width:900px;margin:0 auto;padding:0 16px;height:60px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.wrap{max-width:900px;margin:0 auto;padding:18px 16px 28px}
.tabs2.nav{max-width:380px;margin-bottom:20px}
.stepper{display:flex;align-items:center;gap:8px;margin-bottom:18px}
.stp{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--mute);font-weight:500}
.stp i{width:26px;height:26px;border-radius:50%;border:1.5px solid var(--line);display:grid;place-items:center;font-style:normal;font-size:12px;font-weight:700;background:#fff}
.stp span{display:none}.stp.on span{display:inline}
.stp.on{color:var(--ink)}.stp.on i{background:var(--acc);border-color:var(--acc);color:#fff}
.stp.done i{background:var(--ink);border-color:var(--ink);color:#fff}
.stepper .ln{flex:1;height:1.5px;background:var(--line);min-width:10px}
.offer{display:flex;gap:12px;align-items:flex-start;background:var(--acc-soft);border:1px solid #fbd9c2;border-radius:14px;padding:12px 14px;margin-bottom:10px;font-size:14px}
.offer .i{color:var(--acc-d);margin-top:1px}
.opt{display:flex;gap:14px;align-items:center;background:#fff;border:1.5px solid var(--line);border-radius:16px;padding:16px;cursor:pointer;transition:.15s;text-align:left;width:100%;font:inherit;color:inherit}
.opt:hover{border-color:#d6d1c7}.opt .ic{width:42px;height:42px;border-radius:12px;background:var(--acc-soft);color:var(--acc-d);display:grid;place-items:center;flex-shrink:0}
.opt .go{margin-left:auto;color:var(--mute)}
.pcard{position:relative;background:#fff;border:1.5px solid var(--line);border-radius:18px;padding:18px;cursor:pointer;display:flex;flex-direction:column;gap:4px;text-align:left;font:inherit;color:inherit;transition:.15s}
.pcard:hover{border-color:var(--acc);box-shadow:var(--sh)}
.pcard .pr{font-size:28px;font-weight:700;letter-spacing:-.02em;margin-top:6px}
.pcard .pr s{font-size:14px;color:var(--mute);font-weight:400;margin-left:8px}
.pcard .rb{position:absolute;top:16px;right:16px}
.pcard .pm{color:var(--mute);font-size:13px}
.summary{background:#faf9f7;border:1px solid var(--line);border-radius:14px;padding:14px 16px;margin-bottom:16px}
.summary .tot{display:flex;justify-content:space-between;align-items:baseline;margin-top:8px;padding-top:8px;border-top:1px dashed var(--line)}
.summary .tot b{font-size:22px}
.paybar{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid var(--line);padding:12px 16px calc(12px + env(safe-area-inset-bottom));z-index:25}
.paybar .in{max-width:900px;margin:0 auto;display:flex;gap:14px;align-items:center;justify-content:space-between}
.paybar .btn{flex:1;max-width:340px;font-size:16px;height:48px}
.hero{background:#121212;color:#fff;border-radius:20px;padding:20px;position:relative;overflow:hidden;margin-bottom:16px}
.hero::after{content:"";position:absolute;right:-50px;top:-50px;width:200px;height:200px;border-radius:50%;background:radial-gradient(closest-side,rgba(242,106,27,.5),transparent)}
.hero>*{position:relative;z-index:1}
.hero .pl{font-size:22px;font-weight:700;margin:10px 0 2px}.hero .sub{color:#b9b6af;font-size:14px}
.hero .meter{height:8px;background:#2b2b2b;border-radius:6px;margin:18px 0 8px;overflow:hidden}.hero .meter i{display:block;height:100%;background:var(--acc);border-radius:6px}
.hero .meta{display:flex;justify-content:space-between;font-size:13px;color:#d8d5ce}
.done{text-align:center;padding:26px 8px}
.done .ok{width:64px;height:64px;border-radius:50%;background:var(--ok-bg);color:var(--ok);display:grid;place-items:center;margin:0 auto 14px}
.done .ok svg{width:30px;height:30px;stroke-width:2.4}
@media(min-width:600px){.stp span{display:inline}.cards.p3{grid-template-columns:repeat(2,1fr)}}
@media(min-width:900px){
  .auth{grid-template-columns:1.05fr 1fr}
  .auth-brand{padding:44px;display:flex;flex-direction:column;justify-content:space-between}
  .auth-brand h2{font-size:34px;max-width:420px}
  .auth-form{align-items:center;padding:40px}
  .cards.p3{grid-template-columns:repeat(3,1fr)}
}

/* footer + policy pages */
.site-foot{border-top:1px solid var(--line);padding:22px 16px;text-align:center;font-size:12.5px;color:var(--mute)}
.site-foot nav{display:flex;flex-wrap:wrap;gap:6px 18px;justify-content:center;margin-bottom:10px}
.site-foot a{color:var(--ink2);text-decoration:none}
.site-foot a:hover{color:var(--acc-d);text-decoration:underline}
.site-foot p{margin:0;line-height:1.7}
.main .site-foot{margin-top:24px}
body:has(#paybar:not(.hide)) .site-foot{padding-bottom:100px}
.legal{max-width:760px;margin:0 auto;padding:26px 16px 40px}
.legal .upd{color:var(--mute);font-size:13px;margin:4px 0 18px}
.legal h2{margin:26px 0 8px}
.legal p,.legal li{color:var(--ink2);line-height:1.65}
.legal p{margin:8px 0}
.legal ul{padding-left:20px;margin:8px 0}.legal ul.nolist{list-style:none;padding:0}.legal ul.nolist li{margin-bottom:12px}
.legal .todo{color:var(--bad);font-weight:600}
