/* Kroot – واجهة لوحة التحكم والموقع */
@font-face{font-family:Cairo;font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/cairo-arabic-400-normal.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:Cairo;font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/cairo-arabic-600-normal.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:Cairo;font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/cairo-arabic-700-normal.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:Cairo;font-style:normal;font-weight:800;font-display:swap;src:url(../fonts/cairo-arabic-800-normal.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:Cairo;font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/cairo-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Cairo;font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/cairo-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Cairo;font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/cairo-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Cairo;font-style:normal;font-weight:800;font-display:swap;src:url(../fonts/cairo-latin-800-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
  --bg:#F5F3EE; --surface:#fff; --surface-2:#FBFAF7; --ink:#1A1F1C; --ink-2:#3D4440; --muted:#6E746F; --line:#E6E2D8; --line-2:#EFECE4;
  --brand:#0E7C66; --brand-600:#0A6654; --brand-50:#E6F3EF; --brand-100:#CDE8E0;
  --accent:#E9A23B; --ok:#15803D; --ok-50:#E8F6EC; --warn:#B45309; --warn-50:#FDF3E2; --bad:#B91C1C; --bad-50:#FDECEC; --info:#1D4ED8; --info-50:#EAF0FD;
  --wa:#1FA855;
  --r:14px; --r-sm:10px; --r-lg:20px;
  --sh-1:0 1px 2px rgba(26,31,28,.05),0 1px 1px rgba(26,31,28,.03);
  --sh-2:0 8px 24px -12px rgba(26,31,28,.18),0 2px 6px rgba(26,31,28,.04);
  --side:264px;
  --font:Cairo,"Segoe UI",Tahoma,system-ui,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;font-family:var(--font);font-size:15.5px;line-height:1.7;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased}
img,video{max-width:100%;display:block}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
button,input,select,textarea{font:inherit;color:inherit}
code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.88em;background:var(--line-2);padding:.1em .4em;border-radius:6px;word-break:break-all}
[hidden]{display:none!important}
.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hp{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);opacity:0;pointer-events:none}
.ic{width:1.15em;height:1.15em;flex:none;vertical-align:-.2em}
.muted{color:var(--muted)} .small{font-size:.86rem} .center{text-align:center} .d-block{display:block}
.h1,.h2,.h3,.h4{margin:0 0 .4em;line-height:1.35;font-weight:800;letter-spacing:-.01em}
.h2{font-size:1.45rem} .h3{font-size:1.2rem} .h4{font-size:1.02rem;font-weight:700}
.lead{font-size:1.1rem;color:var(--ink-2)}
.row{display:flex;align-items:center} .row.gap,.gap{gap:.6rem} .wrap{flex-wrap:wrap}
.row-between{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem 1rem}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem}
.span-2{grid-column:span 2}
.gap-lg{gap:1.2rem}

/* Brand */
.brand{display:inline-flex;align-items:center;gap:.55rem;font-weight:800;font-size:1.2rem;color:var(--ink)}
.brand:hover{text-decoration:none}
.brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:var(--brand);color:#fff;box-shadow:0 6px 14px -6px var(--brand)}
.brand-mark .ic{width:20px;height:20px}
.brand-lg{font-size:1.5rem;margin-bottom:1.2rem}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;border:1px solid transparent;border-radius:var(--r-sm);padding:.6rem 1.05rem;font-weight:700;font-size:.95rem;line-height:1.3;cursor:pointer;transition:background .15s,border-color .15s,transform .05s,box-shadow .15s;white-space:nowrap;text-decoration:none!important;background:var(--surface);color:var(--ink)}
.btn:active{transform:translateY(1px)}
.btn:focus-visible,.icon-btn:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.chip-btn:focus-visible{outline:3px solid color-mix(in srgb,var(--brand) 35%,transparent);outline-offset:2px}
.btn-primary{background:var(--brand);color:#fff;box-shadow:0 6px 14px -8px var(--brand)}
.btn-primary:hover{background:var(--brand-600)}
.btn-light{background:var(--surface);border-color:var(--line);color:var(--ink)}
.btn-light:hover{background:var(--surface-2);border-color:#d8d3c6}
.btn-ghost{background:transparent;border-color:transparent;color:var(--ink-2)}
.btn-ghost:hover{background:var(--line-2)}
.btn-wa{background:var(--wa);color:#fff}
.btn-wa:hover{background:#178c46}
.danger{color:var(--bad)!important}
.btn-ghost.danger:hover{background:var(--bad-50)}
.btn-sm{padding:.38rem .75rem;font-size:.86rem;border-radius:9px}
.btn-lg{padding:.8rem 1.35rem;font-size:1.02rem}
.btn-block{width:100%}
.icon-btn{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:10px;border:1px solid transparent;background:transparent;cursor:pointer;color:var(--ink-2);flex:none}
.icon-btn:hover{background:var(--line-2)}
.icon-btn.is-off{color:#b9b4a8;text-decoration:line-through}
.icon-btn.danger:hover{background:var(--bad-50)}
.link-btn{background:none;border:0;color:var(--brand);cursor:pointer;padding:0;font-weight:600}

/* Cards */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:1.25rem 1.35rem;box-shadow:var(--sh-1);margin-bottom:1.1rem}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.85rem;flex-wrap:wrap}
.card-head .h4{display:flex;align-items:center;gap:.5rem;margin:0}
.card-head .h4 .ic{color:var(--brand)}
.card-alert{border-color:var(--accent);background:#FFFBF3}
.table-card{padding:0;overflow:auto}

/* Forms */
.form{display:block}
.field{display:flex;flex-direction:column;gap:.35rem;margin-bottom:.9rem;min-width:0}
.field>span:first-child{font-weight:700;font-size:.92rem;color:var(--ink-2)}
.field-inline{flex-direction:row;align-items:center;gap:.5rem;margin:0}
.field-inline input{width:90px}
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]),select,textarea{width:100%;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-sm);padding:.62rem .8rem;min-height:44px;transition:border-color .15s,box-shadow .15s}
textarea{resize:vertical;min-height:90px;line-height:1.7}
input:focus,select:focus,textarea:focus{outline:0;border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 16%,transparent)}
input::placeholder,textarea::placeholder{color:#a8a397}
input[type=color]{width:100%;height:44px;border:1px solid var(--line);border-radius:var(--r-sm);padding:4px;background:var(--surface);cursor:pointer}
input[type=file]{font-size:.9rem}
.hint{font-size:.83rem;color:var(--muted);margin:.1rem 0 0}
.f-err{color:var(--bad);font-size:.85rem;margin:.2rem 0 0;font-weight:600}
.check{display:inline-flex;align-items:center;gap:.45rem;cursor:pointer;font-weight:600;font-size:.93rem}
.check input{width:18px;height:18px;accent-color:var(--brand)}
.checks{display:flex;flex-wrap:wrap;gap:.5rem 1.1rem;margin:.4rem 0 1rem}
.prefix-input{display:flex;align-items:stretch;border:1px solid var(--line);border-radius:var(--r-sm);overflow:hidden;background:var(--surface)}
.prefix-input em{font-style:normal;background:var(--surface-2);color:var(--muted);padding:.62rem .6rem;border-inline-end:1px solid var(--line);font-size:.85rem;white-space:nowrap;display:flex;align-items:center}
.prefix-input input{border:0!important;border-radius:0!important;box-shadow:none!important}
.pw-wrap{position:relative;display:block}
.pw-toggle{position:absolute;inset-inline-start:6px;top:50%;transform:translateY(-50%);background:none;border:0;color:var(--muted);cursor:pointer;padding:6px}
.otp{font-size:1.5rem!important;letter-spacing:.35em;text-align:center;font-weight:700}
.narrow{max-width:360px;margin-inline:auto}
.inline-form{display:flex;gap:.6rem;align-items:flex-end;flex-wrap:wrap}
.inline-form .field{margin:0;flex:1;min-width:140px}

/* Switch */
.switch{appearance:none;-webkit-appearance:none;width:46px;height:26px;border-radius:99px;background:#d9d4c8;position:relative;cursor:pointer;transition:background .2s;flex:none;margin:0}
.switch::after{content:"";position:absolute;top:3px;right:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .2s}
.switch:checked{background:var(--brand)}
.switch:checked::after{transform:translateX(-20px)}
.switch:disabled{opacity:.5;cursor:not-allowed}
.switch-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;cursor:pointer}
.switch-row>span{display:flex;flex-direction:column}
.seg{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}
.seg label{display:inline-flex;align-items:center;gap:.4rem;border:1px solid var(--line);border-radius:99px;padding:.4rem .9rem;cursor:pointer;font-weight:600;font-size:.9rem;background:var(--surface)}
.seg label:has(input:checked){border-color:var(--brand);background:var(--brand-50);color:var(--brand-600)}
.seg input{accent-color:var(--brand)}

/* Chips */
.chip{display:inline-flex;align-items:center;gap:.3rem;padding:.12rem .6rem;border-radius:99px;font-size:.8rem;font-weight:700;background:var(--line-2);color:var(--ink-2);white-space:nowrap;border:1px solid transparent}
.chip .ic{width:14px;height:14px}
.chip-ok{background:var(--ok-50);color:var(--ok)} .chip-bad{background:var(--bad-50);color:var(--bad)} .chip-warn{background:var(--warn-50);color:var(--warn)} .chip-info{background:var(--info-50);color:var(--info)}
.chip-btn{cursor:pointer;background:var(--surface);border-color:var(--line);padding:.35rem .75rem;font-size:.86rem}
.chip-btn:hover{border-color:var(--brand);color:var(--brand)}

/* Flash */
.flash{display:flex;align-items:center;gap:.6rem;padding:.75rem 1rem;border-radius:var(--r-sm);margin-bottom:1rem;font-weight:600;border:1px solid transparent;animation:fin .25s ease}
.flash>span{flex:1}
.flash-success{background:var(--ok-50);color:#14532d;border-color:#c9ead3}
.flash-error{background:var(--bad-50);color:#7f1d1d;border-color:#f6cccc}
.flash-warning{background:var(--warn-50);color:#7c3a06;border-color:#f3dcb4}
.flash-info{background:var(--info-50);color:#1e3a8a;border-color:#cfdcfa}
.flash a{color:inherit;text-decoration:underline}
.flash-x{background:none;border:0;cursor:pointer;color:inherit;opacity:.6;padding:2px}
.sub-banner .btn{margin-inline-start:auto}
@keyframes fin{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}

/* Tables */
.table{width:100%;border-collapse:collapse;font-size:.93rem}
.table th{font-weight:700;color:var(--muted);font-size:.82rem;text-align:start;padding:.7rem .9rem;border-bottom:1px solid var(--line);background:var(--surface-2);white-space:nowrap}
.table td{padding:.75rem .9rem;border-bottom:1px solid var(--line-2);vertical-align:middle}
.table tr:last-child td{border-bottom:0}
.row-warn td{background:#FFF8EC}

/* Bare (auth / install) */
.bare{min-height:100vh;background:radial-gradient(1200px 500px at 80% -10%,var(--brand-50),transparent 60%),var(--bg)}
.bare-wrap{max-width:460px;margin:0 auto;padding:3rem 1rem 2rem;display:flex;flex-direction:column;align-items:center}
.bare-wrap>.card,.bare-wrap>.flash{width:100%}
.auth-card{padding:1.8rem}
.auth-wide,.card-wide{max-width:none}
.bare-wrap:has(.auth-wide),.bare-wrap:has(.card-wide){max-width:720px}
.auth-links{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem;margin-top:1rem;font-size:.9rem}
.auth-ic{width:56px;height:56px;border-radius:16px;background:var(--brand-50);color:var(--brand);display:grid;place-items:center;margin-bottom:.8rem}
.auth-ic .ic{width:28px;height:28px}
.secure-note{display:flex;align-items:center;gap:.4rem;justify-content:center;color:var(--muted);font-size:.83rem;margin-top:.6rem}
.error-card{padding:2.5rem 1.5rem}
.err-code{font-size:4rem;font-weight:800;color:var(--brand);line-height:1}

/* Dashboard shell */
.shell{display:flex;min-height:100vh}
.side{position:fixed;inset-block:0;inset-inline-start:0;width:var(--side);background:var(--surface);border-inline-end:1px solid var(--line);display:flex;flex-direction:column;z-index:40;transition:transform .25s ease}
.side-head{display:flex;align-items:center;justify-content:space-between;padding:1.05rem 1.1rem .8rem}
.side-close{display:none}
.side-nav{flex:1;overflow-y:auto;padding:.2rem .7rem 1rem}
.side-group{font-size:.74rem;font-weight:800;color:var(--muted);letter-spacing:.02em;padding:1rem .7rem .35rem}
.side-link{display:flex;align-items:center;gap:.7rem;padding:.55rem .75rem;border-radius:10px;color:var(--ink-2);font-weight:600;font-size:.94rem;width:100%;background:none;border:0;cursor:pointer;text-align:start}
.side-link .ic{color:var(--muted);width:19px;height:19px}
.side-link:hover{background:var(--surface-2);text-decoration:none}
.side-link.is-active{background:var(--brand-50);color:var(--brand-600)}
.side-link.is-active .ic{color:var(--brand)}
.side-foot{border-top:1px solid var(--line);padding:.8rem .7rem}
.who{display:flex;align-items:center;gap:.6rem;padding:.3rem .5rem .6rem;min-width:0}
.avatar{width:36px;height:36px;border-radius:50%;background:var(--brand);color:#fff;display:grid;place-items:center;font-weight:800;flex:none}
.who-txt{display:flex;flex-direction:column;min-width:0;line-height:1.35}
.who-txt b{font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.who-txt small{color:var(--muted);font-size:.76rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:ltr;text-align:end}
.side-logout{color:var(--bad)} .side-logout .ic{color:var(--bad)}
.side-backdrop{display:none}
.main{flex:1;margin-inline-start:var(--side);min-width:0;display:flex;flex-direction:column}
.top{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:.7rem;padding:.8rem 1.6rem;background:color-mix(in srgb,var(--bg) 85%,transparent);backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid transparent}
.top-title{font-size:1.25rem;font-weight:800;margin:0;flex:1}
.menu-btn{display:none}
.content-wrap{display:flex;gap:1.6rem;padding:1.2rem 1.6rem 6rem;align-items:flex-start}
.content{flex:1;min-width:0;max-width:880px}
.preview{position:sticky;top:76px;width:330px;flex:none;display:none}
.phone{border-radius:38px;background:#111;padding:11px;box-shadow:0 30px 60px -30px rgba(0,0,0,.45);position:relative}
.phone-notch{position:absolute;top:18px;left:50%;transform:translateX(-50%);width:90px;height:20px;background:#111;border-radius:12px;z-index:2}
.phone iframe{width:100%;height:640px;border:0;border-radius:28px;background:#fff;display:block}
.imp-bar{position:sticky;top:0;z-index:60;display:flex;align-items:center;justify-content:center;gap:1rem;background:#1f2937;color:#fff;padding:.45rem 1rem;font-size:.9rem}
.imp-bar .ic{vertical-align:-.25em}

/* Save bar */
.save-bar{position:sticky;bottom:12px;z-index:15;display:flex;align-items:center;justify-content:space-between;gap:1rem;background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(8px);border:1px solid var(--line);border-radius:var(--r);padding:.7rem .8rem .7rem 1rem;box-shadow:var(--sh-2);margin-top:.5rem}
.save-hint{display:flex;align-items:center;gap:.35rem}

/* Dashboard home */
.hello{display:flex;align-items:center;justify-content:space-between;gap:1.2rem;flex-wrap:wrap;background:linear-gradient(135deg,var(--surface),var(--brand-50))}
.hello-main{display:flex;align-items:center;gap:1rem;min-width:0}
.hello-logo{width:64px;height:64px;border-radius:18px;background:var(--brand);color:#fff;display:grid;place-items:center;overflow:hidden;flex:none}
.hello-logo img{width:100%;height:100%;object-fit:cover}
.hello-logo .ic{width:30px;height:30px}
.hello .h2{margin:0}
.hello-actions{display:flex;gap:.5rem;flex-wrap:wrap}
.copy-line{display:flex;align-items:center;gap:.4rem;min-width:0;flex-wrap:wrap}
.copy-line a{font-weight:700;overflow:hidden;text-overflow:ellipsis}
.copy-box{background:var(--surface-2);border:1px dashed var(--line);border-radius:var(--r-sm);padding:.45rem .5rem .45rem .8rem;margin-bottom:.6rem;justify-content:space-between}
.copy-box code{background:none;flex:1}
.copy-box span{font-weight:700;font-size:.85rem;color:var(--muted)}
.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.9rem;margin-bottom:1.1rem}
.stat-grid-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.stat-grid-6{grid-template-columns:repeat(3,minmax(0,1fr))}
.stat{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:1rem 1.1rem;display:flex;flex-direction:column;gap:.1rem;box-shadow:var(--sh-1);color:var(--ink)}
.stat b{font-size:1.6rem;font-weight:800;line-height:1.25}
.stat small{color:var(--muted);font-weight:600}
.stat-ic{width:34px;height:34px;border-radius:10px;background:var(--brand-50);color:var(--brand);display:grid;place-items:center;margin-bottom:.35rem}
.stat-link:hover{text-decoration:none;border-color:var(--brand)}
.stat-alert{border-color:var(--accent);background:#FFFBF3}
.stat-alert .stat-ic{background:#FDEFD6;color:var(--warn)}
.progress{height:8px;background:var(--line-2);border-radius:99px;overflow:hidden;margin-bottom:.9rem}
.progress span{display:block;height:100%;background:linear-gradient(90deg,var(--brand),#3BB08F);border-radius:99px}
.checklist{list-style:none;margin:0;padding:0}
.checklist a{display:flex;align-items:center;gap:.6rem;padding:.5rem .3rem;color:var(--ink-2);font-weight:600;border-radius:8px}
.checklist a:hover{background:var(--surface-2);text-decoration:none}
.checklist .ck{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;border:1.5px dashed #c9c3b5;color:var(--muted)}
.checklist .ck .ic{width:14px;height:14px}
.checklist .is-done a{color:var(--muted);text-decoration:line-through}
.checklist .is-done .ck{background:var(--ok);border-color:var(--ok);color:#fff}
.ic-end{margin-inline-start:auto;color:#c9c3b5}
.big-number{display:flex;align-items:baseline;gap:.6rem;margin-bottom:1rem}
.big-number b{font-size:2.6rem;font-weight:800;color:var(--brand);line-height:1}
.empty{display:flex;flex-direction:column;align-items:center;gap:.4rem;text-align:center;padding:1.4rem;color:var(--muted)}
.empty>.ic{width:34px;height:34px;color:#c9c3b5}
.empty p{margin:0}
.section-title{margin:1.4rem 0 .8rem}

/* Uploader */
.uploader{display:flex;gap:1.1rem;align-items:center;flex-wrap:wrap}
.up-thumb{background:var(--surface-2);border:1px dashed var(--line);border-radius:var(--r);display:grid;place-items:center;overflow:hidden;color:#c9c3b5}
.up-thumb img{width:100%;height:100%;object-fit:cover}
.up-square{width:108px;height:108px;border-radius:50%}
.up-square .ic{width:40px;height:40px}
.up-wide{width:100%;aspect-ratio:16/6;margin-bottom:.8rem}
.up-body{display:flex;flex-direction:column;gap:.4rem;align-items:flex-start}
label.btn{position:relative}
.vid-prev{border-radius:var(--r-sm);max-height:220px;margin-bottom:.6rem;background:#000}
.help{background:var(--surface-2);border:1px solid var(--line-2);border-radius:var(--r-sm);padding:.6rem .9rem;margin-top:.6rem}
.help summary{cursor:pointer;font-weight:700;color:var(--ink-2)}
.help ol{margin:.5rem 0;padding-inline-start:1.2rem}

/* Link rows / menu rows */
.lrows{display:flex;flex-direction:column;gap:.6rem;margin-bottom:.9rem}
.lrow,.mrow{display:flex;align-items:flex-start;gap:.7rem;border:1px solid var(--line);border-radius:var(--r);padding:.7rem;background:var(--surface-2);animation:fin .2s ease}
.lrow-ic{width:42px;height:42px;border-radius:12px;background:var(--surface);border:1px solid var(--line);display:grid;place-items:center;color:var(--brand);flex:none}
.lrow-ic .ic{width:20px;height:20px}
.lrow-fields{flex:1;display:grid;grid-template-columns:160px 1fr;gap:.5rem;min-width:0}
.lrow-fields input[name="llabel[]"]{grid-column:1/-1}
.lrow-tools{display:flex;flex-direction:column;gap:2px}
.lrow-tools .icon-btn{width:32px;height:30px}
.mrow-fields{flex:1;display:flex;flex-direction:column;gap:.5rem;min-width:0}
.mrow-img{width:64px;height:64px;border-radius:12px;background:var(--surface);border:1px dashed var(--line);display:grid;place-items:center;overflow:hidden;color:#c9c3b5;cursor:pointer;flex:none}
.mrow-img img{width:100%;height:100%;object-fit:cover}
.quick-add{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center}

/* Hours */
.hours{display:flex;flex-direction:column;margin-bottom:1rem}
.hrow{display:flex;align-items:center;gap:1rem;padding:.65rem 0;border-bottom:1px solid var(--line-2);flex-wrap:wrap}
.hday{display:flex;align-items:center;gap:.7rem;width:140px;cursor:pointer}
.hslots{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;flex:1}
.hper{display:flex;align-items:center;gap:.4rem}
.hper input{width:128px!important;min-height:40px!important;padding:.4rem .5rem!important}
.hclosed{display:none}
.hrow.is-closed .hper,.hrow.is-closed [data-second]{display:none}
.hrow.is-closed .hclosed{display:inline}

/* Themes picker */
.themes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}
.theme-card{position:relative;border:2px solid var(--line);border-radius:var(--r);padding:.6rem;cursor:pointer;display:flex;flex-direction:column;gap:.2rem;transition:border-color .15s,box-shadow .15s;background:var(--surface)}
.theme-card input{position:absolute;opacity:0}
.theme-card:has(input:checked){border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-50)}
.theme-card:has(input:focus-visible){outline:3px solid var(--brand-100)}
.theme-name{font-weight:800}
.theme-thumb{display:flex;flex-direction:column;align-items:center;gap:5px;height:118px;border-radius:10px;overflow:hidden;background:#F3F4F6;padding-bottom:8px;margin-bottom:.3rem}
.theme-thumb i{display:block;width:100%;height:38px;background:var(--brand)}
.theme-thumb b{display:block;width:30px;height:30px;border-radius:50%;background:#fff;border:3px solid #fff;margin-top:-18px;box-shadow:0 2px 6px rgba(0,0,0,.15)}
.theme-thumb em{display:block;width:78%;height:11px;border-radius:6px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.tt-medical{background:#EEF5FB}.tt-medical i{background:linear-gradient(135deg,#0F6CBD,#38BDF8)}.tt-medical em{border-radius:4px}
.tt-warm{background:#FBF4EA}.tt-warm i{background:#C2410C}.tt-warm b{border-radius:14px}.tt-warm em{background:#FFFDF8}
.tt-luxe{background:#151515}.tt-luxe i{background:#1F1F1F;border-bottom:2px solid #B08D57}.tt-luxe b{border-color:#B08D57;background:#2a2a2a}.tt-luxe em{background:#232323;border:1px solid #3a3326}
.tt-gradient{background:linear-gradient(160deg,#7C3AED,#DB2777)}.tt-gradient i{background:transparent}.tt-gradient em{background:rgba(255,255,255,.85)}
.tt-minimal{background:#fff;border:1px solid var(--line)}.tt-minimal i{height:0}.tt-minimal b{margin-top:10px;border-color:#eee}.tt-minimal em{box-shadow:none;border-bottom:1px solid #e5e5e5;border-radius:0;background:transparent}
.swatches{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}
.swatch{position:relative;cursor:pointer;display:block}
.swatch input[type=radio]{position:absolute;opacity:0}
.swatch span{display:block;width:40px;height:40px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px var(--line)}
.swatch input:checked+span{box-shadow:0 0 0 3px var(--ink)}
.swatch-custom input[type=color]{width:46px;height:46px;border-radius:50%;padding:3px}
.swatch-custom:has(input:checked) input[type=color]{box-shadow:0 0 0 3px var(--ink)}
.sw-0E7C66 span{background:#0E7C66}.sw-0F6CBD span{background:#0F6CBD}.sw-7C3AED span{background:#7C3AED}.sw-DB2777 span{background:#DB2777}.sw-C2410C span{background:#C2410C}
.sw-B08D57 span{background:#B08D57}.sw-7C4A2D span{background:#7C4A2D}.sw-1F2937 span{background:#1F2937}.sw-059669 span{background:#059669}.sw-DC2626 span{background:#DC2626}

/* Bookings */
.tabs{display:flex;gap:.3rem;margin-bottom:1rem;border-bottom:1px solid var(--line);overflow-x:auto}
.tab{padding:.6rem 1rem;font-weight:700;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}
.tab:hover{text-decoration:none;color:var(--ink)}
.tab.is-active{color:var(--brand);border-bottom-color:var(--brand)}
.b-date{font-size:.9rem;color:var(--muted);margin:1.2rem 0 .5rem;font-weight:800}
.bcard{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;padding:.9rem 1rem;margin-bottom:.6rem}
.bcard-time{font-weight:800;font-size:1.05rem;color:var(--brand);background:var(--brand-50);border-radius:10px;padding:.35rem .7rem;white-space:nowrap}
.bcard-main{flex:1;display:flex;flex-direction:column;min-width:150px}
.bcard-main p{margin:.2rem 0 0}
.bcard-actions{display:flex;gap:.4rem;flex-wrap:wrap;width:100%;justify-content:flex-end}

/* QR */
.qr-box{display:grid;place-items:center;background:var(--surface-2);border:1px dashed var(--line);border-radius:var(--r);padding:1.2rem;margin-bottom:1rem}
.qr-box #qr,.qr-box #mfaQr{width:240px;max-width:100%}
.qr-box svg{width:100%;height:auto;display:block}
.qr-sm #mfaQr{width:190px}
.steps{padding-inline-start:1.3rem;margin:.6rem 0 1rem}
.steps li{margin-bottom:.35rem}
.print-stand{display:none}
.codes{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem;margin:.8rem 0}
.codes code{text-align:center;padding:.5rem;font-size:1rem;background:var(--surface)}
.activity{list-style:none;padding:0;margin:0}
.activity li{display:flex;justify-content:space-between;gap:1rem;padding:.5rem 0;border-bottom:1px solid var(--line-2)}

/* Stats */
.bars{display:flex;align-items:flex-end;gap:4px;height:160px;padding:.5rem 0;border-bottom:1px solid var(--line)}
.bar{flex:1;height:100%;display:flex;align-items:flex-end}
.bar span{display:block;width:100%;background:linear-gradient(180deg,#3BB08F,var(--brand));border-radius:4px 4px 1px 1px;min-height:2px}
.bars-axis{display:flex;justify-content:space-between;margin-top:.3rem}

/* Plans */
.plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem;margin-bottom:1.2rem}
.plan{display:flex;flex-direction:column;margin:0}
.plan-featured{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-50),var(--sh-2)}
.plan-price{margin:.2rem 0 .4rem}
.plan-price b{font-size:2.1rem;font-weight:800}
.feat{list-style:none;padding:0;margin:.6rem 0 1.1rem;flex:1}
.feat li{display:flex;align-items:center;gap:.45rem;padding:.2rem 0;font-size:.92rem}
.feat .on .ic{color:var(--ok)}
.feat .off{color:#a8a397}
.feat .off .ic{color:#c9c3b5}
.sub-now{display:flex;justify-content:space-between;align-items:center}
.sub-now .h3{display:flex;align-items:center;gap:.6rem}
.or{display:flex;align-items:center;gap:.8rem;color:var(--muted);margin:1rem 0}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line)}
.pay-targets{display:flex;flex-direction:column}
.pay-item{display:flex;gap:1rem;align-items:flex-start;flex-wrap:wrap}
.receipt{width:110px;height:150px;border-radius:10px;overflow:hidden;border:1px solid var(--line);flex:none;background:var(--surface-2)}
.receipt img{width:100%;height:100%;object-fit:cover}
.pay-info{flex:1;min-width:200px}
.pay-info p{margin:.15rem 0}
.pay-actions{display:flex;flex-direction:column;gap:.5rem}
.pay-actions input{min-height:38px!important}
.toolbar{display:flex;gap:.6rem;margin-bottom:1rem;flex-wrap:wrap}
.toolbar input[type=search]{flex:1;min-width:200px}
.toolbar select{width:auto}
.pager{display:flex;gap:.3rem;justify-content:center;flex-wrap:wrap}
.pager a{padding:.35rem .75rem;border-radius:8px;border:1px solid var(--line);background:var(--surface);color:var(--ink-2)}
.pager a.is-active{background:var(--brand);color:#fff;border-color:var(--brand)}
.list{list-style:none;padding:0;margin:0}
.list li{display:flex;justify-content:space-between;align-items:center;gap:.6rem;padding:.6rem 0;border-bottom:1px solid var(--line-2)}
.list li a{display:flex;flex-direction:column;line-height:1.4;color:var(--ink)}
.dl{display:grid;grid-template-columns:110px 1fr;gap:.45rem .8rem;margin:0 0 1rem}
.dl dt{color:var(--muted);font-weight:600}
.dl dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.plan-form .checks{margin-top:0}

/* Progress & bar height helpers (CSP-safe, no inline styles) */
.w-0{width:0}.w-5{width:5%}.w-10{width:10%}.w-15{width:15%}.w-20{width:20%}.w-25{width:25%}.w-30{width:30%}.w-35{width:35%}.w-40{width:40%}.w-45{width:45%}.w-50{width:50%}.w-55{width:55%}.w-60{width:60%}.w-65{width:65%}.w-70{width:70%}.w-75{width:75%}.w-80{width:80%}.w-85{width:85%}.w-90{width:90%}.w-95{width:95%}.w-100{width:100%}
.h-0{height:0}.h-5{height:5%}.h-10{height:10%}.h-15{height:15%}.h-20{height:20%}.h-25{height:25%}.h-30{height:30%}.h-35{height:35%}.h-40{height:40%}.h-45{height:45%}.h-50{height:50%}.h-55{height:55%}.h-60{height:60%}.h-65{height:65%}.h-70{height:70%}.h-75{height:75%}.h-80{height:80%}.h-85{height:85%}.h-90{height:90%}.h-95{height:95%}.h-100{height:100%}

/* Toast */
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);background:#1A1F1C;color:#fff;padding:.6rem 1.1rem;border-radius:99px;font-weight:700;font-size:.9rem;opacity:0;pointer-events:none;transition:all .25s;z-index:100}
.toast.show{opacity:1;transform:translateX(-50%)}

/* Marketing site */
.site{background:var(--bg)}
.wrap{max-width:1140px;margin:0 auto;padding:0 1.2rem}
.site-top{position:sticky;top:0;z-index:30;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(10px);border-bottom:1px solid var(--line-2);padding:.75rem 0}
.site-nav{display:flex;align-items:center;gap:1.1rem;font-weight:700}
.site-nav a:not(.btn){color:var(--ink-2)}
.site>.flash{max-width:1100px;margin:1rem auto}
.hero{padding:4rem 0 3rem;overflow:hidden;background:radial-gradient(900px 420px at 15% 20%,var(--brand-50),transparent 65%)}
.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:2.5rem;align-items:center}
.eyebrow{display:inline-flex;align-items:center;gap:.4rem;background:var(--surface);border:1px solid var(--line);border-radius:99px;padding:.25rem .8rem;font-weight:700;font-size:.86rem;color:var(--brand-600)}
.hero h1{font-size:clamp(2rem,4.6vw,3.3rem);line-height:1.25;margin:.8rem 0;font-weight:800;letter-spacing:-.02em}
.hero h1 em{font-style:normal;color:var(--brand);background:linear-gradient(transparent 62%,#F7D9A6 62%)}
.hero-points{display:flex;gap:1.2rem;flex-wrap:wrap;list-style:none;padding:0;margin:1.4rem 0 0;color:var(--ink-2);font-weight:600}
.hero-points .ic{color:var(--ok)}
.hero-art{position:relative;height:440px}
.stand{position:absolute;inset-inline-start:0;bottom:20px;width:210px;transform:rotate(-4deg)}
.stand-card{background:#fff;border-radius:18px;padding:1.2rem;text-align:center;box-shadow:var(--sh-2);border:1px solid var(--line);display:flex;flex-direction:column;align-items:center;gap:.3rem}
.stand-card small{color:var(--muted)}
.stand-qr{width:120px;height:120px;border-radius:12px;background:var(--surface-2);display:grid;place-items:center;color:var(--ink);border:1px solid var(--line)}
.stand-qr .ic{width:84px;height:84px;stroke-width:1.4}
.stand-base{height:18px;margin:0 30px;background:linear-gradient(#d8d2c4,#c7c0b0);border-radius:0 0 12px 12px}
.mini-phone{position:absolute;inset-inline-end:10px;top:0;width:230px;height:430px;border-radius:34px;background:#fff;border:9px solid #151515;box-shadow:0 40px 80px -40px rgba(0,0,0,.45);overflow:hidden;display:flex;flex-direction:column;align-items:center;gap:.25rem;padding-bottom:1rem}
.mp-cover{width:100%;height:100px;background:linear-gradient(135deg,#0F6CBD,#38BDF8)}
.mp-logo{width:62px;height:62px;border-radius:50%;background:#fff;border:4px solid #fff;margin-top:-32px;display:grid;place-items:center;color:#0F6CBD;box-shadow:0 4px 12px rgba(0,0,0,.15)}
.mini-phone small{color:var(--muted);font-size:.75rem}
.mp-acts{display:flex;gap:.5rem;margin:.5rem 0}
.mp-acts i{width:34px;height:34px;border-radius:12px;background:#EEF5FB}
.mp-row{width:82%;height:38px;border-radius:12px;background:#F3F5F7;margin-top:.35rem}
.mp-row.short{width:60%}
.section{padding:3rem 1.2rem}
.section-h{font-size:1.7rem;font-weight:800;text-align:center;margin:0 0 1.6rem}
.steps-3{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.step{margin:0}
.step h3{margin:.5rem 0 .3rem;font-size:1.1rem}
.step p{margin:0;color:var(--muted)}
.step-n{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--brand);color:#fff;font-weight:800}
.audience{display:flex;flex-wrap:wrap;justify-content:center;gap:.7rem}
.aud{display:flex;align-items:center;gap:.55rem;background:var(--surface);border:1px solid var(--line);border-radius:99px;padding:.45rem 1rem .45rem .5rem;font-weight:700}
.aud span{width:32px;height:32px;border-radius:50%;background:var(--brand-50);color:var(--brand);display:grid;place-items:center}
.features{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.feature{display:flex;gap:.8rem;align-items:flex-start;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:1rem}
.feature h3{margin:0;font-size:1rem}
.feature p{margin:.15rem 0 0;color:var(--muted);font-size:.9rem}
.f-ic{width:40px;height:40px;border-radius:12px;background:var(--brand-50);color:var(--brand);display:grid;place-items:center;flex:none}
.site-foot{border-top:1px solid var(--line);padding:1.4rem 0;color:var(--muted);font-size:.9rem;margin-top:2rem}
.site-foot a{color:var(--ink-2);font-weight:700;display:inline-flex;align-items:center;gap:.35rem}

/* Responsive */
@media (min-width:1280px){.has-preview .preview{display:block}}
@media (max-width:1024px){
  .side{transform:translateX(100%);box-shadow:var(--sh-2)}
  .side.open{transform:none}
  .side-close{display:inline-grid}
  .side-backdrop{position:fixed;inset:0;background:rgba(20,24,22,.4);z-index:35}
  .side.open+.side-backdrop{display:block}
  .main{margin-inline-start:0}
  .menu-btn{display:inline-grid}
  .top{padding:.7rem 1rem}
  .content-wrap{padding:1rem 1rem 5rem}
  .stat-grid-6{grid-template-columns:repeat(2,minmax(0,1fr))}
  .features{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:760px){
  body{font-size:15px}
  .grid-2,.steps-3{grid-template-columns:1fr}
  .span-2{grid-column:auto}
  .stat-grid,.stat-grid-5{grid-template-columns:repeat(2,minmax(0,1fr))}
  .themes{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lrow-fields{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr 1fr}
  .grid-3 .span-2{grid-column:1/-1}
  .card{padding:1rem}
  .hide-sm{display:none}
  .hero{padding:2rem 0}
  .hero-grid{grid-template-columns:1fr}
  .hero-art{height:360px}
  .mini-phone{transform:scale(.85);transform-origin:top left}
  .features{grid-template-columns:1fr}
  .save-hint{display:none}
  .save-bar{border-radius:0;margin:0 -1rem;border-inline:0;position:fixed;inset-inline:0;bottom:0;margin:0;padding-bottom:calc(.7rem + env(safe-area-inset-bottom))}
  .save-bar .btn{width:100%}
  .hday{width:100%}
  .table{font-size:.86rem}
  .dl{grid-template-columns:1fr}
  .dl dt{margin-top:.3rem}
}

/* Print: A5 stand */
@media print{
  @page{size:A5 portrait;margin:0}
  body *{visibility:hidden}
  .print-stand,.print-stand *{visibility:visible}
  .print-stand{display:block;position:fixed;inset:0;background:#fff}
  .ps-card{height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:12mm;font-family:var(--font)}
  .ps-logo{width:28mm;height:28mm;border-radius:50%;object-fit:cover;margin-bottom:4mm}
  .ps-card h1{font-size:22pt;margin:0}
  .ps-slogan{font-size:11pt;color:#555;margin:2mm 0 6mm}
  .ps-qr{width:75mm}
  .ps-qr svg{width:100%;height:auto}
  .ps-cta{font-size:16pt;font-weight:800;margin:6mm 0 1mm}
  .ps-sub{font-size:10pt;color:#666;margin:0}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Devices */
.table-wrap{overflow-x:auto}
.dev-type{display:flex;align-items:center;gap:.5rem}
.dev-type>.ic{color:var(--brand);width:22px;height:22px}
.dev-code{font-size:1rem;font-weight:700;background:var(--brand-50);color:var(--brand-600)}
.dev-links{display:flex;gap:.35rem;flex-wrap:wrap;margin-top:.4rem}
.dev-links .chip-btn{padding:.2rem .6rem;font-size:.78rem}
.dev-summary{display:flex;gap:.4rem;flex-wrap:wrap;margin-bottom:.8rem}
.dev-forms{margin-top:1.2rem;padding-top:1.2rem;border-top:1px solid var(--line-2)}
.dev-menu{position:relative}
.dev-menu summary{list-style:none}
.dev-menu summary::-webkit-details-marker{display:none}
.dev-menu-pop{position:absolute;inset-inline-end:0;top:100%;z-index:10;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--sh-2);padding:.35rem;min-width:230px}
.dev-menu-pop .side-link{font-size:.88rem}
.row-off td{opacity:.6}
b.danger{color:var(--bad)}
.field-label{font-weight:700;font-size:.92rem;color:var(--ink-2);margin:.2rem 0 .5rem}
.sep-top{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--line-2)}
.check-field{align-self:end;min-height:44px}
.sub-link{display:flex;flex-direction:column;gap:.1rem;background:linear-gradient(135deg,var(--surface),var(--brand-50))}
.big-link{font-size:1.25rem;font-weight:800}
.dev-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:.8rem;margin-bottom:.6rem}
.dev-card{border:1px solid var(--line);border-radius:var(--r);padding:.9rem;background:var(--surface-2)}
.dev-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:.2rem}
.dev-stats{margin-bottom:.6rem}
.dev-stats .ic{width:14px;height:14px}
.dev-target{display:flex;align-items:center;gap:.25rem;color:var(--muted);font-size:.78rem;margin-top:.25rem}
.dev-target .ic{width:13px;height:13px}

/* Admin client file */
.client-hero{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}
.ch-main{display:flex;gap:1rem;align-items:center;min-width:0}
.ch-main .h3{margin:0}
.ch-chips{display:flex;gap:.35rem;flex-wrap:wrap;margin-top:.4rem}
.ch-kpis{display:flex;gap:.6rem}
.ch-kpis div{background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:.5rem .9rem;text-align:center;min-width:74px;display:flex;flex-direction:column;line-height:1.3}
.ch-kpis b{font-size:1.35rem;font-weight:800}
.ch-kpis small{color:var(--muted);font-size:.75rem;font-weight:700}
.sticky-tabs{position:sticky;top:62px;z-index:12;background:var(--bg);padding-top:.2rem}
.stat-grid.compact .stat{padding:.7rem .9rem}
.stat-grid.compact .stat b{font-size:1.3rem}
.bars-sm{height:100px}
.top-links{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:.8rem}
.span-3{grid-column:1/-1}
.crm-form{display:grid!important;align-items:end;padding-bottom:1rem;border-bottom:1px solid var(--line-2);margin-bottom:1rem}
.note-form{display:flex;flex-direction:column;gap:.6rem;margin-bottom:1rem}
.note-form .seg{margin:0}
.note-form .seg .ic{width:15px;height:15px}
.note-form button{align-self:flex-start}
.timeline{list-style:none;margin:0;padding:0;position:relative}
.timeline::before{content:"";position:absolute;inset-inline-start:17px;top:6px;bottom:6px;width:2px;background:var(--line)}
.timeline li{display:flex;gap:.8rem;padding:.5rem 0;position:relative}
.tl-ic{width:36px;height:36px;border-radius:50%;background:var(--surface);border:2px solid var(--line);display:grid;place-items:center;color:var(--brand);flex:none;z-index:1}
.tl-ic .ic{width:16px;height:16px}
.tl-visit .tl-ic{color:#0F6CBD;border-color:#cfe1f6}.tl-call .tl-ic{color:#7C3AED;border-color:#e3d6fb}.tl-feedback .tl-ic{color:#B45309;border-color:#f5e0c0}
.tl-payment .tl-ic{color:var(--ok);border-color:#c9ead3}.tl-issue .tl-ic{color:var(--bad);border-color:#f6cccc}
.tl-body{flex:1;background:var(--surface-2);border:1px solid var(--line-2);border-radius:12px;padding:.5rem .8rem}
.tl-meta{font-size:.84rem;display:flex;gap:.35rem;align-items:center;flex-wrap:wrap}
.tl-body p{margin:.2rem 0 0}
form.inline{display:inline;margin-inline-start:auto}
.pause-form .field{min-width:260px}
.self-off .empty p{max-width:460px}
@media (max-width:760px){.ch-kpis{width:100%}.ch-kpis div{flex:1}.sticky-tabs{top:56px}}
.roles{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:.7rem;margin-bottom:1rem}
.role-card{position:relative;border:2px solid var(--line);border-radius:var(--r);padding:.8rem .9rem;cursor:pointer;display:flex;flex-direction:column;gap:.2rem;background:var(--surface)}
.role-card input{position:absolute;opacity:0}
.role-card:has(input:checked){border-color:var(--brand);background:var(--brand-50)}
.role-perms{display:flex;flex-wrap:wrap;gap:.25rem;margin-top:.35rem}
.role-perms span{font-size:.72rem;background:var(--surface-2);border:1px solid var(--line);border-radius:99px;padding:0 .5rem}

/* Stand designer */
.stand-layout{display:grid;grid-template-columns:minmax(320px,420px) 1fr;gap:1.2rem;align-items:start}
.stand-form{position:sticky;top:76px;margin:0}
.tpl-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem;margin-bottom:1rem}
.tpl-card{position:relative;border:2px solid var(--line);border-radius:12px;padding:.45rem;cursor:pointer;display:flex;flex-direction:column;gap:.1rem;background:var(--surface)}
.tpl-card input{position:absolute;opacity:0}
.tpl-card:has(input:checked){border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-50)}
.tpl-card strong{font-size:.88rem}
.tpl-card small{font-size:.72rem;line-height:1.4}
.tpl-thumb{height:54px;border-radius:8px;background:#f3f3f1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;overflow:hidden;position:relative;margin-bottom:.2rem}
.tpl-thumb i{position:absolute;top:0;left:0;right:0;height:16px;background:var(--brand)}
.tpl-thumb b{width:24px;height:24px;background:repeating-conic-gradient(#111 0 25%,#fff 0 50%) 0 0/8px 8px;border:2px solid #fff;margin-top:8px;z-index:1}
.tpl-thumb em{width:50%;height:5px;border-radius:3px;background:#cfcac0}
.tpl-simple .tpl-thumb i{display:none}.tpl-simple .tpl-thumb{border:2px solid #111;background:#fff}
.tpl-maps .tpl-thumb i,.tpl-review .tpl-thumb i{height:5px;background:linear-gradient(90deg,#4285F4 25%,#EA4335 0 50%,#FBBC05 0 75%,#34A853 0)}
.tpl-review .tpl-thumb em{background:#FBBC05}.tpl-maps .tpl-thumb em{background:#4285F4}
.tpl-pay .tpl-thumb{background:#151515}.tpl-pay .tpl-thumb i{display:none}.tpl-pay .tpl-thumb em{background:#555}
.tpl-menu .tpl-thumb{background:#FBF1E6}.tpl-menu .tpl-thumb i{display:none}.tpl-menu .tpl-thumb em{background:#C2410C}
.stand-preview{min-width:0}
.preview-frame{background:#e8e5de;border-radius:var(--r);overflow:hidden;margin-bottom:1rem;border:1px solid var(--line)}
.preview-frame iframe{width:100%;border:0;display:block}
.preview-a5 iframe{height:870px}.preview-a6 iframe{height:620px}.preview-sq iframe{height:430px}.preview-card iframe{height:270px}
@media (max-width:1100px){.stand-layout{grid-template-columns:1fr}.stand-form{position:static}}
.bell{position:relative;color:var(--ink-2)}
.bell .dot{position:absolute;top:2px;inset-inline-end:0;min-width:18px;height:18px;border-radius:99px;background:var(--bad);color:#fff;font-size:.68rem;font-weight:800;display:grid;place-items:center;padding:0 4px}
.notif-list{list-style:none;margin:0;padding:0}
.notif-list a{display:flex;gap:.8rem;align-items:center;padding:.7rem .4rem;border-bottom:1px solid var(--line-2);color:var(--ink);border-radius:8px}
.notif-list a:hover{background:var(--surface-2);text-decoration:none}
.notif-list .is-read a{opacity:.55}
.n-ic{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;flex:none;padding:0}
.n-txt{flex:1;display:flex;flex-direction:column;line-height:1.45;min-width:0}
.n-txt small{color:var(--muted)}
.code-block{background:#1f2937;color:#e5e7eb;padding:.9rem 1rem;border-radius:10px;overflow-x:auto;font-size:.82rem;line-height:1.7;white-space:pre}
.captcha{display:flex;justify-content:center;margin:.4rem 0 .8rem;min-height:65px}
.mod-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:.6rem;margin-bottom:.8rem}
.mod-card{display:flex;align-items:center;gap:.7rem;border:1px solid var(--line);border-radius:12px;padding:.6rem .8rem;cursor:pointer;background:var(--surface-2)}
.mod-card:has(input:checked){border-color:var(--brand-100);background:var(--brand-50)}
.mod-card span{display:flex;align-items:center;gap:.4rem;font-weight:700;font-size:.92rem}
.grid-5{display:grid;grid-template-columns:2fr 1.4fr 1.4fr 1fr 1fr;gap:.6rem}
.audit-filters .field{margin-bottom:.5rem}
.nowrap{white-space:nowrap}
@media (max-width:900px){.grid-5{grid-template-columns:1fr 1fr}}
.top-search{position:relative;flex:0 1 420px}
.top-search input{min-height:38px!important;padding:.4rem 2.2rem .4rem .8rem!important;border-radius:99px!important;background:var(--surface)!important;font-size:.88rem}
.ts-ic{position:absolute;inset-inline-start:.8rem;top:50%;transform:translateY(-50%);color:var(--muted);width:16px;height:16px}
.search-big{display:flex;gap:.6rem}
.search-big input{flex:1;font-size:1.05rem}
@media (max-width:760px){.top-search{display:none}}
/* التقارير */
.report-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:.9rem}
.report-card{display:flex;flex-direction:column;gap:.25rem;color:var(--ink);transition:border-color .15s}
.report-card:hover{text-decoration:none;border-color:var(--brand)}
.report-head{justify-content:space-between;margin-bottom:.8rem}
.field-btn{justify-content:flex-end;display:flex;flex-direction:column}
.report-stats{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}
.stat-success b{color:var(--ok)}.stat-danger b{color:var(--bad)}.stat-warning b{color:var(--warn)}
.card-pad{padding:.9rem 1.1rem}
.report-party{display:grid;grid-template-columns:max-content 1fr max-content 1fr;gap:.35rem 1rem;margin:0}
.report-party dd{margin:0;font-weight:700}
.table tfoot td{border-top:2px solid var(--line);background:var(--surface-2)}
@media (max-width:760px){.report-party{grid-template-columns:max-content 1fr}}
.design-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.35rem}
.design-list li{display:flex;justify-content:space-between;gap:.6rem;padding:.45rem .6rem;border-radius:10px;border:1px solid var(--line-2)}
.design-list li.is-active{border-color:var(--brand);background:var(--brand-50)}
.save-design .checks{margin:.2rem 0 .6rem}
.report-actions{margin-bottom:1rem}
.brand-logo{background:#fff;box-shadow:none;border:1px solid var(--line);overflow:hidden;width:auto;min-width:36px;padding:2px}
.brand-logo img{height:30px;width:auto;max-width:140px;object-fit:contain;display:block}
/* الموقع والهوية */
.radio-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:.7rem;margin:.6rem 0 1rem}
.radio-card{position:relative;display:flex;flex-direction:column;gap:.25rem;border:1.5px solid var(--line);border-radius:var(--r);padding:.9rem 1rem .9rem 2.6rem;cursor:pointer;background:var(--surface)}
.radio-card input{position:absolute;inset-inline-end:auto;inset-inline-start:.9rem;top:1.05rem;accent-color:var(--brand)}
.radio-card:has(input:checked){border-color:var(--brand);background:var(--brand-50)}
.align-end{align-self:end;margin-bottom:.7rem}
.brand-preview{display:flex;align-items:center;gap:.55rem;font-weight:800;padding:.5rem 0}
.fav-preview{width:40px;height:40px;border-radius:10px;border:1px solid var(--line);object-fit:cover;margin:.4rem 0}
.hero-preview{max-width:260px;border-radius:12px;border:1px solid var(--line);margin:.4rem 0}
.copy-box small{white-space:nowrap}
.hero-img{width:100%;max-width:520px;border-radius:22px;box-shadow:var(--sh-2,0 20px 40px -20px rgba(0,0,0,.25));display:block;margin-inline:auto}
.faq{display:flex;flex-direction:column;gap:.6rem;max-width:820px;margin:0 auto}
.faq-item summary{cursor:pointer;font-weight:700;list-style:none;display:flex;justify-content:space-between;gap:1rem}
.faq-item summary::after{content:"+";color:var(--brand);font-weight:800}
.faq-item[open] summary::after{content:"–"}
.faq-item p{margin:.6rem 0 0;color:var(--muted)}
.cta-band{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;background:var(--brand-50);border-color:var(--brand-100)}
.cta-band h2{margin:0 0 .3rem}
.contact-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.8rem}
.contact-item{display:flex;align-items:center;gap:.6rem;color:var(--ink)}
.contact-item .ic{color:var(--brand)}
.social-row{display:flex;justify-content:center;gap:.8rem;margin-top:1rem}
.social-row a{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--surface);border:1px solid var(--line);color:var(--ink)}
.social-row a:hover{border-color:var(--brand);color:var(--brand)}
.plan-pick{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.6rem}
.plan-pick .radio-card{padding-block:.7rem}
.plan-pick b{font-size:1.05rem}
/* حالة السيرفر واختبار الحمل */
.sys-table td.st{width:28px}
.sys-table .st-ok .st{color:var(--ok)}.sys-table .st-warn .st{color:var(--warn)}.sys-table .st-bad .st{color:var(--bad)}
.sys-table .st-bad{background:color-mix(in srgb,var(--bad) 6%,transparent)}
.cron-line{margin:.55rem 0}
.cron-line code{word-break:break-all}
.lt-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.6rem;margin:.8rem 0}
.lt-stat{border:1px solid var(--line);border-radius:12px;padding:.6rem .8rem;background:var(--surface)}
.lt-stat b{display:block;font-size:1.35rem}
.lt-stat small{color:var(--muted)}
.progress{height:10px;background:var(--line-2);border-radius:99px;overflow:hidden;margin:.6rem 0}
.progress i{display:block;height:100%;width:0;background:var(--brand);transition:width .3s}
.lt-verdict{font-weight:700;padding:.8rem 1rem;border-radius:12px}
.lt-verdict.good{background:color-mix(in srgb,var(--ok) 12%,transparent)}
.lt-verdict.mid{background:color-mix(in srgb,var(--warn) 14%,transparent)}
.lt-verdict.bad{background:color-mix(in srgb,var(--bad) 12%,transparent)}
.lt-codes{font-family:ui-monospace,monospace;font-size:.85rem}
