:root{
  --black:#050707;
  --panel:#0e1413;
  --panel2:#151d1c;
  --line:#26332f;
  --teal:#5f9a8e;
  --teal-deep:#354643;
  --silver:#a6adab;
  --ink:#e9efed;
  --warn:#e0b25a;
  --bad:#d8745f;
  --head:"Barlow Condensed","Arial Narrow",Arial,sans-serif;
  --body:"Barlow",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
html{background:var(--black)}
body{background:radial-gradient(1200px 600px at 70% -10%,#13201d 0,var(--black) 60%) fixed;color:var(--ink);font-family:var(--body);font-size:16px;line-height:1.45;min-height:100vh}
button,input{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* header */
.top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px clamp(16px,4vw,40px);border-bottom:1px solid var(--line);flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:12px}
.brand img{border-radius:8px;display:block}
.brand strong{font-family:var(--head);font-size:24px;font-weight:600;letter-spacing:.02em;display:block;line-height:1}
.brand span{font-size:13px;color:var(--silver)}
.toggle{display:inline-flex;background:var(--panel);border:1px solid var(--line);border-radius:999px;padding:4px}
.toggle button{background:none;border:0;border-radius:999px;padding:8px 20px;cursor:pointer;color:var(--silver);font-weight:500;display:inline-flex;gap:8px;align-items:center}
.toggle button[aria-pressed=true]{background:var(--teal);color:#04100d;font-weight:600}
.badge{background:var(--warn);color:#241a00;font-size:12px;font-weight:700;border-radius:999px;padding:0 7px;line-height:18px}
.concept{font-size:13px;color:var(--silver);text-align:center;padding:8px 16px;background:var(--panel);border-bottom:1px solid var(--line)}

/* stage */
.stage{display:grid;grid-template-columns:minmax(340px,380px) minmax(0,1fr);gap:clamp(24px,5vw,72px);padding:clamp(20px,4vw,48px) clamp(16px,4vw,40px);max-width:1280px;margin:0 auto;align-items:start}
.station-wrap{min-width:0}
.station-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.station-head h1{font-family:var(--head);font-weight:600;font-size:40px;line-height:1;letter-spacing:.01em}
.station-head p{color:var(--silver);font-size:15px;margin-top:4px}
.station{width:100%;height:auto;border-radius:16px;border:1px solid var(--line);display:block;background:#080c0b}
.note{font-size:13px;color:var(--silver);margin-top:10px}
.steps-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:12px}
.steps-row div{border:1px solid var(--line);border-radius:10px;padding:10px 12px;display:flex;align-items:center;gap:10px;color:var(--silver);background:var(--panel)}
.steps-row i{width:10px;height:10px;border-radius:50%;background:var(--line);flex:none}
.steps-row div.on{border-color:var(--teal);color:var(--ink)}
.steps-row div.on i{background:var(--teal);box-shadow:0 0 0 4px rgba(95,154,142,.25)}
.steps-row div.done i{background:var(--teal)}

/* buttons */
.btn{border:1px solid var(--line);background:var(--panel2);border-radius:12px;padding:12px 18px;cursor:pointer;font-weight:600;transition:background .15s,border-color .15s}
.btn:hover{border-color:var(--teal)}
.btn.primary{background:var(--teal);color:#04100d;border-color:var(--teal);width:100%;padding:14px;font-size:17px}
.btn.primary:hover{background:#74b0a3}
.btn.ghost{background:none;color:var(--ink);font-weight:500;padding:10px 14px;font-size:14px}
.btn:disabled{opacity:.4;cursor:not-allowed}

/* phone */
.phone-wrap{display:flex;justify-content:center}
.phone{width:360px;height:740px;background:#000;border-radius:52px;padding:11px;border:1px solid #2a3532;box-shadow:0 0 0 2px #121816,0 40px 80px rgba(0,0,0,.6);position:relative}
.notch{position:absolute;top:20px;left:50%;transform:translateX(-50%);width:100px;height:26px;background:#000;border-radius:20px;z-index:5}
.screen{background:#0a0f0e;border-radius:42px;height:100%;overflow:hidden;position:relative;display:flex;flex-direction:column;color:var(--ink)}
.scr{flex:1;overflow:auto;padding-top:52px;scrollbar-width:none}
.scr::-webkit-scrollbar{display:none}
.scr-body{padding:8px 20px 20px;display:flex;flex-direction:column;gap:14px;min-height:100%}
.scr-body.center-all{align-items:center;justify-content:center;text-align:center;gap:16px}
.scr h2{font-family:var(--head);font-weight:600;font-size:24px;line-height:1.1}
.scr h2.center{text-align:center;margin-top:6px}
.scr h2.pad{padding-top:8px}
.small{font-size:13px;color:var(--silver)}
.keep{margin-top:auto}
.app-head{display:flex;align-items:center;gap:10px;font-family:var(--head);font-size:28px;font-weight:600}
.app-head img{border-radius:8px}
.credit-card{background:linear-gradient(160deg,#1f302c,#131c1a);border:1px solid var(--teal-deep);border-radius:20px;padding:18px;display:flex;flex-direction:column;gap:8px}
.credit-card .big{font-family:var(--head);font-size:56px;font-weight:600;line-height:1}
.credit-card .big small{font-family:var(--body);font-size:16px;font-weight:400;color:var(--silver)}
.meter{height:6px;border-radius:3px;background:#0a0f0e;overflow:hidden}
.meter i{display:block;height:100%;background:var(--teal);transition:width .6s}
.list{list-style:none;display:flex;flex-direction:column}
.list li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}
.list strong{display:block;font-weight:600;font-size:15px}
.list span{font-size:13px;color:var(--silver)}
.list em{font-style:normal;font-size:12px;font-weight:600;padding:2px 10px;border-radius:999px}
.ok{color:#9fd8c9;background:rgba(95,154,142,.18)}
.tabs{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);background:#080c0b;padding:6px 8px 14px}
.tabs button{background:none;border:0;padding:10px;color:var(--silver);cursor:pointer;font-weight:500;border-radius:10px}
.tabs button.on{color:var(--teal);font-weight:600}
.back{background:none;border:0;color:var(--teal);text-align:left;cursor:pointer;font-weight:500;padding:4px 0;align-self:flex-start}
.scr-body.dark{background:#050707}

/* scan */
.viewfinder{position:relative;height:210px;border-radius:18px;background:#101716;overflow:hidden;display:grid;place-items:center}
.qr{width:100px;height:100px;background:
  conic-gradient(from 90deg at 50% 50%,#e9efed 25%,transparent 0 50%,#e9efed 0 75%,transparent 0) 0 0/20px 20px,#0a0f0e;border:6px solid #e9efed;opacity:.85}
.c{position:absolute;width:26px;height:26px;border:3px solid var(--teal)}
.c.tl{top:14px;left:14px;border-right:0;border-bottom:0;border-radius:8px 0 0 0}
.c.tr{top:14px;right:14px;border-left:0;border-bottom:0;border-radius:0 8px 0 0}
.c.bl{bottom:14px;left:14px;border-right:0;border-top:0;border-radius:0 0 0 8px}
.c.br{bottom:14px;right:14px;border-left:0;border-top:0;border-radius:0 0 8px 0}
.scanline{position:absolute;left:14px;right:14px;height:2px;background:var(--teal);box-shadow:0 0 12px var(--teal);animation:scan 2.2s ease-in-out infinite alternate}
@keyframes scan{from{top:20px}to{top:188px}}
.or{display:flex;align-items:center;gap:10px;color:var(--silver);font-size:13px}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line)}
.idform{display:flex;gap:8px}
.idform input{flex:1;min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px 14px;font-size:17px;letter-spacing:.06em;text-transform:uppercase}
.err{color:var(--bad);font-size:14px}
.hint{font-size:12px;color:var(--silver)}

/* confirm */
.mach-card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:2px}
.mach-card h2{font-size:30px}
.mach-card p{color:var(--silver);font-size:14px}
.pill{align-self:flex-start;font-size:12px;font-weight:600;color:#9fd8c9;background:rgba(95,154,142,.18);padding:2px 10px;border-radius:999px;margin-bottom:6px}
.opt{display:flex;gap:12px;align-items:center;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:14px;cursor:pointer}
.opt:has(input:checked){border-color:var(--teal);background:#122220}
.opt input{accent-color:var(--teal);width:18px;height:18px}
.opt strong{display:block;font-weight:600}
.opt small{color:var(--silver);font-size:13px}
.opt.off{opacity:.45;cursor:not-allowed}

/* paying / washing */
.spinner{width:44px;height:44px;border-radius:50%;border:4px solid var(--line);border-top-color:var(--teal);animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.ring{position:relative;width:200px;height:200px;display:grid;place-items:center}
.ring svg{position:absolute;inset:0;transform:rotate(-90deg)}
.ring circle{fill:none;stroke-width:7}
.ring .track{stroke:var(--panel2)}
.ring .fill{stroke:var(--teal);stroke-linecap:round;stroke-dasharray:326.7;stroke-dashoffset:0}
.ring strong{font-family:var(--head);font-size:56px;font-weight:600;line-height:1;display:block}
.ring span{color:var(--silver);font-size:14px}
.steps{list-style:none;display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.steps li{font-size:13px;padding:4px 12px;border-radius:999px;border:1px solid var(--line);color:var(--silver)}
.steps li.on{border-color:var(--teal);color:var(--ink);background:#122220}
.steps li.done{color:#9fd8c9}
.tick{width:84px;height:84px;border-radius:50%;background:rgba(95,154,142,.18);display:grid;place-items:center}
.tick svg{width:44px;height:44px;fill:none;stroke:var(--teal);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:30;stroke-dashoffset:30;animation:draw .6s .1s forwards}
@keyframes draw{to{stroke-dashoffset:0}}
.receipt{width:100%;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:6px 14px}
.receipt div{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px}
.receipt div:last-child{border:0}
.receipt span{color:var(--silver)}
.plan{display:flex;justify-content:space-between;align-items:center;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:16px}
.plan.cur{border-color:var(--teal);background:#122220}
.plan strong{display:block;font-family:var(--head);font-size:22px;font-weight:600}
.plan span{font-size:13px;color:var(--silver);display:block}
.plan em{font-style:normal;font-size:12px;color:#9fd8c9;font-weight:600}
.plan b{font-family:var(--head);font-size:30px;font-weight:600}

/* ============ STATION ANIMATION ============ */
.station text{font-family:var(--body)}
.station .lcd{fill:#8fe0cf;font-family:"Courier New",monospace}
.station .lcd.s{font-size:10px}
.station .lcd.b{font-size:24px;font-weight:700}
.lamps circle{fill:#26332f;stroke:#354643;transition:fill .3s,filter .3s}
.station[data-phase=rinse1] #lampWater,.station[data-phase=rinse2] #lampWater,.station[data-phase=shampoo] #lampWater{fill:#6fd0ee;filter:drop-shadow(0 0 5px #6fd0ee)}
.station[data-phase=shampoo] #lampSoap{fill:#e4efe9;filter:drop-shadow(0 0 5px #e4efe9)}
.station[data-phase=dry] #lampDry{fill:#f1b45e;filter:drop-shadow(0 0 5px #f1b45e)}

.spray,.soap,.air{opacity:0;transition:opacity .4s}
.spray path{stroke-dasharray:6 10;animation:flow .5s linear infinite}
.air path{stroke-dasharray:14 12;animation:flow .6s linear infinite}
@keyframes flow{to{stroke-dashoffset:-32}}
.station[data-phase=rinse1] .spray,.station[data-phase=rinse2] .spray{opacity:.95}
.station[data-phase=shampoo] .spray{opacity:.35}
.station[data-phase=shampoo] .soap{opacity:1}
.soap circle{animation:drip 1s linear infinite}
.soap circle:nth-child(2){animation-delay:.25s}.soap circle:nth-child(3){animation-delay:.5s}.soap circle:nth-child(4){animation-delay:.75s}
@keyframes drip{from{transform:translateY(-60px);opacity:0}30%{opacity:1}to{transform:translateY(60px);opacity:0}}
.station[data-phase=dry] .air{opacity:.8}

.foam{opacity:0;transform:scale(.2);transform-box:fill-box;transform-origin:center;transition:opacity 5s,transform 5s}
.station[data-phase=shampoo] .foam{opacity:1;transform:scale(1);transition:opacity 1.2s,transform 1.6s}
.station[data-phase=shampoo] .foam:nth-child(2){transition-delay:.5s}.station[data-phase=shampoo] .foam:nth-child(3){transition-delay:1s}
.station[data-phase=shampoo] .foam:nth-child(4){transition-delay:1.5s}.station[data-phase=shampoo] .foam:nth-child(5){transition-delay:2s}
.station[data-phase=shampoo] .foam:nth-child(6){transition-delay:2.5s}.station[data-phase=shampoo] .foam:nth-child(7){transition-delay:3s}.station[data-phase=shampoo] .foam:nth-child(8){transition-delay:3.5s}
.station[data-phase=rinse2] .foam{opacity:0;transform:scale(.5);transition:opacity 8s linear,transform 8s linear}
.station[data-phase=rinse2] .foam.fresh{opacity:1;transform:scale(1);transition:none}

.tail{transform-box:fill-box;transform-origin:0% 100%;animation:wag 1.6s ease-in-out infinite}
@keyframes wag{0%,100%{transform:rotate(-6deg)}50%{transform:rotate(8deg)}}
.station[data-phase=done] .tail{animation-duration:.35s}
.body{transform-box:fill-box;transform-origin:center bottom}
.station[data-phase=shampoo] .body,.station[data-phase=rinse1] .body,.station[data-phase=rinse2] .body{animation:shiver 1.2s ease-in-out infinite}
@keyframes shiver{50%{transform:translateY(-1.5px)}}
.station[data-phase=dry] .body{animation:ruffle .25s linear infinite}
@keyframes ruffle{0%,100%{transform:translateX(0)}50%{transform:translateX(-1.5px)}}
.station[data-phase=dry] .ear{animation:flap .2s linear infinite alternate;transform-box:fill-box;transform-origin:top left}
@keyframes flap{to{transform:rotate(-14deg)}}

/* ============ ADMIN ============ */
.admin{max-width:1280px;margin:0 auto;padding:clamp(20px,4vw,40px) clamp(16px,4vw,40px) 64px}
.admin-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;flex-wrap:wrap;margin-bottom:20px}
.admin h1{font-family:var(--head);font-weight:600;font-size:40px;line-height:1}
.admin-head p{color:var(--silver);margin-top:4px}
.admin-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.period{border:1px solid var(--line);padding:9px 14px;border-radius:12px;font-size:14px;background:var(--panel)}
.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:20px}
.kpi{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:14px 16px}
.kpi span{display:block;font-size:13px;color:var(--silver)}
.kpi b{font-family:var(--head);font-size:40px;font-weight:600;line-height:1.1;display:block;margin-top:2px}
.kpi.pulse{animation:pulse 1.4s}
@keyframes pulse{0%{border-color:var(--teal);background:#16302b}100%{border-color:var(--line);background:var(--panel)}}
.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:18px 20px}
.card.wide{grid-column:1/-1}
.card h2{font-family:var(--head);font-weight:600;font-size:22px;margin-bottom:10px}
.tablewrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:14px}
th{text-align:left;font-weight:500;color:var(--silver);padding:8px 10px;border-bottom:1px solid var(--line);white-space:nowrap}
td{padding:11px 10px;border-bottom:1px solid var(--line);white-space:nowrap}
tr:last-child td{border-bottom:0}
.r{text-align:right}
td small{display:block;color:var(--silver);font-size:12px}
.status{font-size:12px;font-weight:600;padding:2px 10px;border-radius:999px}
.status.warn{color:var(--warn);background:rgba(224,178,90,.15)}
.status.busy{color:#8fd3e8;background:rgba(143,211,232,.15)}
.bar{display:inline-block;width:70px;height:6px;background:#0a0f0e;border-radius:3px;vertical-align:middle;margin-right:8px;overflow:hidden}
.bar i{display:block;height:100%;background:var(--teal)}
.bar.low i{background:var(--warn)}
tr.flash td{animation:flash 2s}
@keyframes flash{0%{background:#16302b}100%{background:transparent}}
.feed{list-style:none;max-height:300px;overflow:auto}
.feed li{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}
.feed li small{display:block;color:var(--silver);font-size:12px}
.feed li.new{animation:flash 2.4s}
.feed time{color:var(--silver);font-size:13px;white-space:nowrap}
.mini{margin-top:8px}
.alerts{list-style:none;display:flex;flex-direction:column;gap:10px}
.alerts li{border:1px solid var(--line);border-radius:12px;padding:12px 14px;font-size:14px}
.alerts li.w{border-color:#5a4a22}
.alerts li small{display:block;color:var(--silver);font-size:13px}

@media (max-width:1000px){
  .stage{grid-template-columns:1fr;justify-items:center}
  .station-wrap{width:100%;max-width:720px}
  .kpis{grid-template-columns:repeat(2,1fr)}
  .admin-grid{grid-template-columns:1fr}
}
@media (max-width:420px){
  .phone{width:100%;max-width:340px;height:700px}
  .steps-row{grid-template-columns:repeat(2,1fr)}
}
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.001s!important;animation-iteration-count:1!important;transition-duration:.001s!important}
  .scanline{animation:none;top:100px}
}
