/* Janaseva PRO layer: depth, motion, dark mode. Loads last; pure CSS, no logic changes. */
:root{--pro-glow:rgba(47,143,120,.22);--pro-ring:0 0 0 3px rgba(47,143,120,.28)}
html{scroll-behavior:smooth}
::selection{background:#cdeae1;color:#10405a}
/* scroll progress */
.pro-progress{position:fixed;left:0;top:0;height:3px;width:100%;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,#12705f,#2f8f78,#6a5fa8);z-index:9999;pointer-events:none;transition:transform .12s linear}
/* animated mesh background */
.pro-bg{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.pro-bg i{position:absolute;border-radius:50%;filter:blur(70px);opacity:.55;animation:proFloat 22s ease-in-out infinite alternate}
.pro-bg i:nth-child(1){width:360px;height:360px;left:-90px;top:6%;background:#bfe6da}
.pro-bg i:nth-child(2){width:320px;height:320px;right:-80px;top:38%;background:#e2d8ff;animation-delay:-8s}
.pro-bg i:nth-child(3){width:280px;height:280px;left:30%;bottom:-90px;background:#ffdce9;animation-delay:-14s}
@keyframes proFloat{to{transform:translate3d(40px,-50px,0) scale(1.15)}}
/* interactive cards: cursor glow + tilt */
.pro-card{position:relative;transform:perspective(900px) rotateX(var(--rx,0)) rotateY(var(--ry,0));transition:transform .35s var(--ease,ease),box-shadow .35s}
.pro-card::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .3s;background:radial-gradient(240px circle at var(--mx,50%) var(--my,50%),var(--pro-glow),transparent 70%)}
.pro-card:hover::after{opacity:1}
/* scroll reveal */
.pro-rv{opacity:0;transform:translateY(18px) scale(.98);transition:opacity .6s var(--ease,ease),transform .6s var(--ease,ease)}
.pro-rv.in{opacity:1;transform:none}
/* focus + buttons */
:where(button,a,input,select,textarea,[tabindex]):focus-visible{outline:none;box-shadow:var(--pro-ring)!important}
.app-primary{background-size:200% 100%;transition:background-position .6s,transform .25s,box-shadow .25s}
.app-primary:hover{background-position:100% 0}
.status-pill{position:relative}
.status-pill.serving::before,.status-pill.called::before{content:"";display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:currentColor;animation:proPulse 1.6s ease-out infinite}
@keyframes proPulse{0%{box-shadow:0 0 0 0 currentColor}100%{box-shadow:0 0 0 9px transparent}}
.skeleton-box{background:linear-gradient(100deg,#e9eeee 30%,#f6f9f9 50%,#e9eeee 70%);background-size:200% 100%;animation:proShimmer 1.3s linear infinite}
@keyframes proShimmer{to{background-position:-200% 0}}
/* floating pro buttons (SVG icons, no emojis) */
.pro-fab{position:fixed;right:14px;bottom:calc(150px + env(safe-area-inset-bottom,0px));z-index:60;display:flex;flex-direction:column;gap:10px}
.pro-fab button{width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.9);background:rgba(255,255,255,.85);backdrop-filter:blur(12px);box-shadow:var(--shadow-sm);display:grid;place-items:center;color:var(--ink-2,#2f2a4d);cursor:pointer;transition:transform .25s var(--ease,ease)}
.pro-fab button:active{transform:scale(.9)}
.pro-fab svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pro-fab .pro-install{display:none}.pro-fab .pro-install.on{display:grid}
/* dark mode */
html[data-theme=dark]{--ink:#eef3f2;--ink-2:#d6dedd;--muted:#9aa7a5;--muted-2:#7f8d8b;--line:#27353a;--line-2:#31434a;--bg:#0c1517;--blue-soft:#12302c;--shadow-sm:0 6px 18px rgba(0,0,0,.35);--shadow:0 18px 44px rgba(0,0,0,.45);color-scheme:dark}
html[data-theme=dark] body,html[data-theme=dark] .mobile-app{background:#0c1517}
html[data-theme=dark] .app-header{background:rgba(12,21,23,.75);border-color:#1d2b2f}
html[data-theme=dark] :is(.flow-card,.admin-card,.scan-card,.qr-poster-card,.token-main,.soft-card,.pay-card,.agent-row,.manage-card,.history-item,.queue-item,.svc-card,.admin-metric,.tp-card,.perm-card,.choice-row,.service-choice,.option-chip,.book-bar-inner,.admin-bottom-nav){background:linear-gradient(160deg,rgba(24,38,41,.94),rgba(18,30,33,.8));border-color:#243439;color:var(--ink)}
html[data-theme=dark] .home-hero{background:linear-gradient(150deg,#12302c,#1b1a3a 60%,#2b1a2a);border-color:#243439}
html[data-theme=dark] :is(h1,h2,h3,b,strong){color:var(--ink)}
html[data-theme=dark] :is(input,select,textarea){background:#10201f;color:var(--ink);border-color:#27353a}
html[data-theme=dark] .app-secondary,html[data-theme=dark] .ghost-mini{background:#14262a;color:var(--ink);border-color:#27353a}
html[data-theme=dark] .pro-bg i{opacity:.18}
html[data-theme=dark] .pro-fab button{background:rgba(20,34,37,.9);border-color:#27353a;color:var(--ink)}
@media (prefers-reduced-motion:reduce){.pro-bg i,.status-pill::before,.skeleton-box{animation:none!important}.pro-rv{opacity:1;transform:none;transition:none}.pro-card{transform:none!important}html{scroll-behavior:auto}}
@media (hover:none){.pro-card{transform:none!important}}

/* docked buttons share one column; make sure they always sit on top and are clickable */
.js-tools{z-index:2000!important;pointer-events:none}.js-tools button{pointer-events:auto;display:grid;place-items:center;padding:0}
.js-tools .js-top:not(.on){pointer-events:none}
.js-tools .pro-theme,.js-tools .pro-install{border:1px solid #dfe5f1;background:rgba(255,255,255,.92);color:#0d1f3c;box-shadow:0 8px 22px rgba(26,37,82,.16);border-radius:50%;width:44px;height:44px;cursor:pointer}
.js-tools svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.js-tools .pro-install{display:none}.js-tools .pro-install.on{display:grid}
html[data-theme=dark] .js-tools button{background:rgba(20,34,37,.95);border-color:#27353a;color:#eef3f2}
/* Aa text size now really scales the whole app (the old rule only changed rem and the UI uses px) */
html[data-ts="1"] #app{zoom:1.1}html[data-ts="2"] #app{zoom:1.22}

.carry-tag{display:inline-block;margin-left:8px;padding:3px 9px;border-radius:999px;background:#fff3dc;color:#8a5a00;font:700 11px/1.2 var(--font);letter-spacing:.02em;white-space:nowrap}
html[data-theme=dark] .carry-tag{background:#3a2d12;color:#ffd58a}
