:root{
  --bg:#0A0C14;
  --surface:rgba(255,255,255,.055);
  --surface-2:rgba(255,255,255,.1);
  --tray:rgba(255,255,255,.035);
  --line:rgba(255,255,255,.12);
  --line-strong:rgba(255,255,255,.22);
  --ink:#F0F4FC;
  --muted:#9BA7C2;
  --muted-2:#78849F;
  --accent:#5FE6FF;
  --red:#FF5C6E;
  --radius:18px;
  --shadow:0 8px 22px rgba(4,7,18,.35);
  --shadow-md:0 26px 60px rgba(3,5,12,.62);
  --rgb:linear-gradient(115deg,#FF3D7F 0%,#FFA53D 20%,#2FF2A8 42%,#4FBCFF 62%,#A46BFF 82%,#FF3D7F 100%);
  --rgb-size:260% 260%;
  --glass-blur:blur(20px) saturate(160%);
}

*,*::before,*::after{box-sizing:border-box}
html{
  -webkit-text-size-adjust:100%;
  color-scheme:dark;
  background-color:#080A12;
  background-image:
    radial-gradient(920px 640px at 6% -8%, rgba(255,61,127,.30), transparent 62%),
    radial-gradient(840px 620px at 102% 0%, rgba(79,188,255,.26), transparent 62%),
    radial-gradient(900px 720px at 48% 106%, rgba(47,242,168,.16), transparent 64%),
    linear-gradient(180deg,#0A0C14 0%,#0C101C 48%,#070910 100%);
  background-repeat:no-repeat;
  background-attachment:fixed;
}
body{
  margin:0;
  min-height:100vh;
  background:transparent;
  color:var(--ink);
  font-family:'IBM Plex Sans Arabic',system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -webkit-tap-highlight-color:transparent;
  overflow-x:hidden;
}
body.modal-open{overflow:hidden}
h1,h2,h3,p{margin:0}
button{font-family:inherit;font-size:inherit;color:inherit;user-select:none;-webkit-user-select:none;cursor:pointer}
input,select,textarea{font-family:inherit;font-size:16px;color:var(--ink)}
input,textarea,select{-webkit-user-select:auto;user-select:auto}
svg{display:block}
.num{font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}
.muted{color:var(--muted)}
.small{font-size:12.5px;line-height:1.5}
.brass{color:var(--accent)}
.hidden{display:none!important}
.wrap{max-width:1140px;margin-inline:auto;padding-inline:16px}

/* ---------- rgb flow ---------- */
@keyframes rgbFlow{from{background-position:0% 50%}to{background-position:200% 50%}}
@keyframes rgbSlide{from{background-position:0 0}to{background-position:0 200%}}

/* ---------- barber pole ---------- */
.pole{
  height:7px;
  background-image:var(--rgb);
  background-size:var(--rgb-size);
  background-position:0% 50%;
  animation:rgbFlow 9s linear infinite;
  box-shadow:0 0 26px rgba(255,61,127,.45);
}
.brand-pole{
  width:10px;height:38px;border-radius:7px;flex:0 0 auto;
  background-image:linear-gradient(180deg,#FF3D7F,#FFA53D,#2FF2A8,#4FBCFF,#A46BFF,#FF3D7F);
  background-size:100% 220%;
  animation:rgbSlide 6s linear infinite;
  box-shadow:0 0 18px rgba(79,188,255,.5), inset 0 0 0 1px rgba(255,255,255,.22);
}

/* ---------- header ---------- */
.site{
  position:sticky;top:0;z-index:40;
  background:rgba(10,13,22,.6);
  -webkit-backdrop-filter:var(--glass-blur);
  backdrop-filter:var(--glass-blur);
  border-bottom:1px solid rgba(255,255,255,.1);
  box-shadow:0 12px 34px rgba(4,7,18,.4);
}
.head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-block:12px 8px}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.brand-txt{min-width:0}
.brand h1{font-size:19px;font-weight:700;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  background-image:linear-gradient(100deg,#FFFFFF,#BFE8FF 55%,#E7C7FF);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#fff}
.brand .sub{font-size:11.5px;color:var(--muted);line-height:1.4}
.head-right{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.head-rev{text-align:end;display:flex;flex-direction:column;line-height:1.2}
.head-rev .lbl{font-size:10.5px;color:var(--muted)}
.head-rev .val{font-size:15px;font-weight:700;color:var(--accent);text-shadow:0 0 16px rgba(95,230,255,.45)}
.icon-btn{
  width:40px;height:40px;display:grid;place-items:center;
  border:1px solid var(--line);background:var(--surface);border-radius:12px;
  color:var(--muted);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  transition:background .15s ease,color .15s ease,border-color .15s ease;
}
.icon-btn svg{width:19px;height:19px}
.icon-btn:active{background:var(--surface-2);color:var(--ink)}
.icon-btn.danger{color:#FF9AA5;border-color:rgba(255,92,110,.38);background:rgba(255,92,110,.14)}
.icon-btn.danger:active{background:rgba(255,92,110,.24)}

.tabs{display:flex;gap:6px;padding-bottom:10px;overflow-x:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tab{
  flex:0 0 auto;border:1px solid transparent;background:transparent;
  color:var(--muted);font-size:13.5px;font-weight:500;
  padding:7px 14px;border-radius:999px;min-height:38px;
  transition:background .15s ease,color .15s ease,border-color .15s ease;
}
.tab[aria-selected="true"]{
  background-image:var(--rgb);background-size:var(--rgb-size);background-position:0% 50%;
  animation:rgbFlow 12s linear infinite;
  color:#080B12;font-weight:700;border-color:rgba(255,255,255,.35);
  box-shadow:0 6px 20px rgba(79,188,255,.28);
}
.tab:active{background-color:var(--surface-2);color:var(--ink)}
.tab[aria-selected="true"]:active{color:#080B12}

/* ---------- layout ---------- */
.main{padding-block:16px 56px}
.view{animation:fade .22s ease}
@keyframes fade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
  .view{animation:none}
  .pole,.brand-pole,.tab[aria-selected="true"],.btn-primary,.stat .val{animation:none!important}
}

.card{
  background:linear-gradient(180deg,rgba(255,255,255,.085),rgba(255,255,255,.04));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow),inset 0 1px 0 rgba(255,255,255,.13);
  -webkit-backdrop-filter:var(--glass-blur);
  backdrop-filter:var(--glass-blur);
}
.pad{padding:14px}

.sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-block:2px 12px;flex-wrap:wrap}
.sec-head.tight{align-items:center;margin-block:0 10px}
.sec-head h2{font-size:16px;font-weight:600}
.sec-head p{max-width:44ch}

/* ---------- stats ---------- */
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:16px}
.stat{
  background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.035));
  border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow),inset 0 1px 0 rgba(255,255,255,.14);
  -webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);
  padding:10px 11px;display:flex;flex-direction:column;gap:1px;min-width:0;
}
.stat .lbl{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stat .val{font-size:17px;font-weight:700;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stat.brass .val{
  background-image:linear-gradient(100deg,#8FF3FF,#B7A6FF 60%,#FF9AD5);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:var(--accent);
}
@media(min-width:480px){.stat .val{font-size:19px}}

/* ---------- board ---------- */
.board{display:grid;grid-template-columns:1fr;gap:12px}
@media(min-width:900px){.board{grid-template-columns:repeat(3,1fr);align-items:start}}
.col{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.09);
  border-radius:18px;padding:9px;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
}
.col-head{display:flex;align-items:center;gap:8px;padding:4px 6px 9px}
.col-head h3{font-size:13px;font-weight:600;color:var(--ink)}
.col-dot{width:8px;height:8px;border-radius:50%;flex:0 0 auto;background:#8B96B2;box-shadow:0 0 10px currentColor}
.col-dot.wait{background:#FFA53D;color:#FFA53D}
.col-dot.chair{background:#2FF2A8;color:#2FF2A8}
.col-dot.done{background:#4FBCFF;color:#4FBCFF}
.col-head .count{
  margin-inline-start:auto;font-size:11.5px;color:var(--ink);
  background:rgba(255,255,255,.08);border:1px solid var(--line);border-radius:999px;
  padding:1px 9px;min-width:26px;text-align:center;
}
.col-body{display:flex;flex-direction:column;gap:8px;min-height:76px}
.empty-col{
  border:1px dashed rgba(255,255,255,.16);border-radius:12px;
  padding:16px 10px;text-align:center;font-size:12.5px;color:var(--muted);
}

/* ---------- item card ---------- */
.item{
  position:relative;
  background:linear-gradient(180deg,rgba(255,255,255,.1),rgba(255,255,255,.045));
  border:1px solid rgba(255,255,255,.13);
  border-radius:14px;
  box-shadow:0 8px 22px rgba(4,7,18,.34),inset 0 1px 0 rgba(255,255,255,.14);
  -webkit-backdrop-filter:blur(16px) saturate(150%);
  backdrop-filter:blur(16px) saturate(150%);
  overflow:hidden;
  padding:9px 13px 10px;
  padding-inline-start:15px;
}
.item::before{
  content:"";position:absolute;inset-block:0;inset-inline-start:0;width:3px;
  background:var(--accent,#8B96B2);
  box-shadow:0 0 14px var(--accent,#8B96B2);
}
.item-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.item-name{font-weight:600;font-size:14.5px;line-height:1.35;overflow-wrap:anywhere}
.item-time{font-size:12.5px;color:var(--muted);flex:0 0 auto;white-space:nowrap}
.item-time.hot{color:#FFC46B;font-weight:700}
.item-svc{font-size:12.5px;color:var(--muted);margin-top:1px}
.item-svc .sep{margin-inline:5px;opacity:.6}
.item-mid{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:7px}
.chip{
  display:inline-flex;align-items:center;gap:5px;font-size:11.5px;color:var(--ink);
  background:rgba(255,255,255,.09);border:1px solid var(--line);border-radius:999px;padding:2px 9px;min-width:0;
}
.chip i{width:7px;height:7px;border-radius:50%;flex:0 0 auto;box-shadow:0 0 8px currentColor}
.item-price{font-size:13.5px;font-weight:700;color:var(--accent);white-space:nowrap}
.item-wait{font-size:11.5px;color:var(--muted);margin-top:5px}
.item-wait.on-chair{color:#2FF2A8}
.item-actions{display:flex;align-items:center;gap:6px;margin-top:9px;flex-wrap:wrap}
.item-actions .btn{flex:1 1 auto}
.item-actions .icon-btn{width:34px;height:34px;border-radius:10px}
.item-actions .icon-btn svg{width:15px;height:15px}
.item-actions .seg{flex:1 1 auto}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  border:1px solid transparent;border-radius:12px;font-weight:500;font-size:14px;
  padding:9px 16px;min-height:44px;
  transition:background .15s ease,border-color .15s ease,transform .1s ease,color .15s ease;
}
.btn svg{width:16px;height:16px}
.btn:active{transform:scale(.985)}
.btn:disabled{opacity:.45;pointer-events:none}
.btn-primary{
  background-image:var(--rgb);background-size:var(--rgb-size);background-position:0% 50%;
  animation:rgbFlow 12s linear infinite;
  color:#080B12;font-weight:700;border-color:rgba(255,255,255,.32);
  box-shadow:0 10px 26px rgba(79,188,255,.26);
}
.btn-primary:active{filter:brightness(.92)}
.btn-ghost{
  background:rgba(255,255,255,.07);border-color:var(--line-strong);color:var(--ink);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
}
.btn-ghost:active{background:rgba(255,255,255,.14)}
.btn-danger{background:#FF5C6E;color:#1A0508;font-weight:700;border-color:rgba(255,255,255,.25)}
.btn-danger:active{background:#E44B5E}
.btn-danger-outline{background:transparent;border-color:rgba(255,92,110,.45);color:#FF9AA5;width:100%}
.btn-danger-outline:active{background:rgba(255,92,110,.16)}
.btn-sm{min-height:36px;padding:6px 12px;font-size:13px;border-radius:10px}
.btn.wide{width:100%;margin-top:14px}
.btn-row{display:flex;gap:8px;flex-wrap:wrap}
.btn-row .btn{flex:1 1 140px}

.item .btn-primary{
  background-image:linear-gradient(120deg,rgba(255,61,127,.35),rgba(47,242,168,.26) 50%,rgba(79,188,255,.35));
  background-size:var(--rgb-size);background-position:0% 50%;
  animation:rgbFlow 16s linear infinite;
  color:#F2FBFF;border-color:rgba(255,255,255,.22);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18);
}

.seg{
  display:inline-flex;background:rgba(255,255,255,.06);border:1px solid var(--line);
  border-radius:11px;padding:2px;gap:2px;
}
.seg button{
  border:0;background:transparent;color:var(--muted);font-size:12.5px;font-weight:500;
  padding:6px 11px;border-radius:9px;min-height:32px;white-space:nowrap;
  transition:background .15s ease,color .15s ease;
}
.seg button.on{
  background-image:var(--rgb);background-size:var(--rgb-size);background-position:0% 50%;
  animation:rgbFlow 14s linear infinite;
  color:#080B12;font-weight:700;
}

/* ---------- inputs ---------- */
.inp{
  width:100%;background:rgba(255,255,255,.07);border:1px solid var(--line);border-radius:12px;
  padding:9px 11px;min-height:44px;outline:none;color:var(--ink);
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
.inp:focus{border-color:rgba(95,230,255,.65);background:rgba(255,255,255,.1);box-shadow:0 0 0 3px rgba(95,230,255,.16)}
.inp::placeholder{color:var(--muted-2)}
.inp.bare{border:0;background:transparent;padding:0;min-height:0;font-weight:600;font-size:14.5px;border-radius:6px}
.inp.bare:focus{box-shadow:none;border-bottom:1px solid var(--accent);border-radius:0;background:transparent}
select.inp{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(0% + 16px) 21px,calc(0% + 21px) 21px;background-size:5px 5px,5px 5px;background-repeat:no-repeat}
select.inp option{background:#12151F;color:var(--ink)}
textarea.inp{resize:vertical;min-height:60px;line-height:1.6}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.inp:focus-visible{outline:none}

/* ---------- services ---------- */
.svc-grid{display:grid;grid-template-columns:1fr 84px 72px 34px;gap:7px;align-items:center}
.svc-head{display:none}
@media(min-width:600px){
  .svc-head{display:grid;font-size:11px;color:var(--muted);padding-inline:2px;margin-bottom:6px}
}
.svc-row{display:grid;grid-template-columns:1fr 84px 72px 34px;gap:7px;align-items:center;padding-block:5px;border-bottom:1px solid rgba(255,255,255,.08)}
.svc-row:last-child{border-bottom:0}
.svc-row .inp{min-height:40px;padding:7px 9px;font-size:14px}
.suffix{
  display:flex;align-items:center;gap:2px;background:rgba(255,255,255,.07);border:1px solid var(--line);
  border-radius:12px;height:40px;padding-inline:7px;min-width:0;
}
.suffix input{
  border:0;background:transparent;width:100%;min-width:0;height:100%;padding:0;
  outline:none;text-align:center;font-variant-numeric:tabular-nums;font-size:14px;color:var(--ink);
}
.suffix span{font-size:10.5px;color:var(--muted);flex:0 0 auto}
.add-svc{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.add-svc .name{grid-column:1 / -1}
.add-svc .btn-add{grid-column:1 / -1}
@media(min-width:600px){
  .add-svc{grid-template-columns:1fr 96px 84px auto}
  .add-svc .name{grid-column:auto}
  .add-svc .btn-add{grid-column:auto}
}

/* ---------- team ---------- */
.team-grid{display:grid;grid-template-columns:1fr;gap:10px;margin-bottom:12px}
@media(min-width:640px){.team-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1000px){.team-grid{grid-template-columns:repeat(3,1fr)}}
.barber{display:flex;flex-direction:column;gap:10px}
.barber-top{display:flex;align-items:center;gap:10px}
.avatar{
  width:42px;height:42px;border-radius:50%;flex:0 0 auto;display:grid;place-items:center;
  color:#080B12;font-weight:700;font-size:16px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.35),0 0 18px rgba(255,255,255,.14);
}
.barber-id{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}
.add-barber{margin-top:2px}
.add-barber .lbl{font-size:12px;color:var(--muted);display:block;margin-bottom:6px}
.add-barber-row{display:flex;gap:8px;flex-wrap:wrap}
.add-barber-row .inp{flex:1 1 160px}
.colors{display:flex;gap:6px;align-items:center}
.swatch{width:30px;height:30px;border-radius:50%;border:2px solid transparent;padding:0;box-shadow:inset 0 0 0 1px rgba(255,255,255,.25)}
.swatch[aria-pressed="true"]{border-color:#FFFFFF;box-shadow:0 0 14px rgba(255,255,255,.55)}

/* ---------- cash ---------- */
.cash-hero{margin-bottom:12px}
.cash-hero .big{
  font-size:34px;font-weight:700;line-height:1.2;margin-block:2px 12px;overflow-wrap:anywhere;
  background-image:linear-gradient(100deg,#8FF3FF,#B7A6FF 55%,#FF9AD5);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:var(--accent);
}
.cash-hero .lbl{font-size:11.5px;color:var(--muted)}
.split{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;border-top:1px solid var(--line);padding-top:12px}
.split div{display:flex;flex-direction:column;gap:1px;min-width:0}
.split span:first-child{font-size:11px;color:var(--muted)}
.split .num{font-size:14.5px;font-weight:600}
#view-cash .card{margin-bottom:12px}
.shares{display:flex;flex-direction:column;gap:2px}
.share-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-block:9px;border-bottom:1px solid rgba(255,255,255,.08);flex-wrap:wrap}
.share-row:last-child{border-bottom:0}
.share-row .left{display:flex;align-items:center;gap:7px;min-width:0;font-size:13.5px;font-weight:500}
.share-nums{display:flex;gap:14px}
.share-nums div{display:flex;flex-direction:column;align-items:flex-end}
.share-nums .lbl{font-size:10.5px;color:var(--muted)}
.share-nums .num{font-size:13.5px;font-weight:600}

.chart{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;align-items:end;height:132px;padding-top:6px}
.chart .bcol{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:100%;gap:5px}
.chart .bar{
  width:100%;max-width:30px;border-radius:6px 6px 3px 3px;min-height:4px;
  background:linear-gradient(180deg,#9BF0FF,#4FBCFF);
  box-shadow:0 0 14px rgba(79,188,255,.4);
  transition:height .3s ease;
}
.chart .bar.zero{background:rgba(255,255,255,.12);box-shadow:none}
.chart .blbl{font-size:10.5px;color:var(--muted);white-space:nowrap}

/* ---------- customers ---------- */
.search-wrap{position:relative;margin-bottom:12px}
.search-wrap svg{position:absolute;inset-inline-start:12px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--muted);pointer-events:none}
.search-wrap .inp{padding-inline-start:40px}
.stack{display:flex;flex-direction:column;gap:10px}
.cust-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.cust-top h3{font-size:15px;font-weight:600;overflow-wrap:anywhere}
.cust-stats{display:flex;flex-direction:column;align-items:flex-end;gap:1px;flex:0 0 auto}
.cust-stats .num{font-size:13px;font-weight:600}
.cust-stats .brass{color:var(--accent)}
.cust .note{margin-top:9px;font-size:13.5px;min-height:44px}
.empty{
  border:1px dashed rgba(255,255,255,.16);border-radius:var(--radius);
  padding:22px 14px;text-align:center;color:var(--muted);font-size:13.5px;background:transparent;
}

/* ---------- overlays ---------- */
.overlay{
  position:fixed;inset:0;z-index:100;display:flex;align-items:flex-end;justify-content:center;
  background:rgba(5,7,14,.66);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  padding:0;
}
@media(min-width:600px){.overlay{align-items:center;padding:24px}}
.sheet{
  width:100%;max-width:520px;max-height:92vh;overflow:auto;
  background:linear-gradient(180deg,rgba(24,29,44,.94),rgba(14,17,28,.96));
  border:1px solid rgba(255,255,255,.16);
  border-radius:24px 24px 0 0;
  box-shadow:var(--shadow-md),inset 0 1px 0 rgba(255,255,255,.16);
  -webkit-backdrop-filter:blur(28px) saturate(170%);
  backdrop-filter:blur(28px) saturate(170%);
  animation:sheetIn .24s ease;
}
@media(min-width:600px){.sheet{border-radius:20px}}
@keyframes sheetIn{from{transform:translateY(18px);opacity:.6}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.sheet{animation:none}}
.sheet-sm{max-width:420px}
.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px 0}
.sheet-head h2{font-size:16.5px;font-weight:600}
.sheet-body{padding:14px 16px 18px;display:flex;flex-direction:column;gap:12px}
.field{display:flex;flex-direction:column;gap:5px}
.field label{font-size:12.5px;color:var(--muted);font-weight:500}
.field .opt{color:var(--muted-2);font-weight:400}
.hint{font-size:12px;color:var(--muted)}
.form-error{
  font-size:13px;color:#FFB3BB;background:rgba(255,92,110,.14);
  border:1px solid rgba(255,92,110,.4);border-radius:12px;padding:9px 11px;
}
.sheet-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
.sheet-actions .btn{flex:1 1 160px}
.confirm-msg{font-size:14px;color:var(--ink);line-height:1.65}

/* ---------- toast ---------- */
.toast{
  position:fixed;z-index:200;inset-inline:16px;bottom:18px;margin-inline:auto;max-width:420px;
  background:rgba(22,27,42,.94);color:#F4F8FF;border:1px solid rgba(255,255,255,.18);
  border-radius:14px;padding:11px 16px;
  -webkit-backdrop-filter:blur(18px) saturate(160%);
  backdrop-filter:blur(18px) saturate(160%);
  font-size:13.5px;text-align:center;
  box-shadow:var(--shadow-md),inset 0 1px 0 rgba(255,255,255,.14);
  animation:toastIn .2s ease;
}
@keyframes toastIn{from{transform:translateY(10px);opacity:0}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.toast{animation:none}}

.inp:disabled{opacity:.55;cursor:not-allowed}

/* ---------- license ---------- */
.lic-chip{
  display:inline-flex;align-items:center;gap:4px;
  border:1px solid var(--line);background:rgba(255,255,255,.07);
  border-radius:999px;padding:5px 9px;min-height:32px;
  font-size:11px;font-weight:600;color:var(--ink);white-space:nowrap;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  transition:background .15s ease,border-color .15s ease,color .15s ease;
}
.lic-chip svg{width:13px;height:13px;flex:0 0 auto}
.lic-chip:active{transform:scale(.97)}
.lic-chip.ok{color:#B8FFE6;border-color:rgba(47,242,168,.55);background:rgba(47,242,168,.14)}
.lic-chip.warn{color:#FFDDAC;border-color:rgba(255,165,61,.5);background:rgba(255,165,61,.14)}
.lic-chip.bad{color:#FFB3BB;border-color:rgba(255,92,110,.5);background:rgba(255,92,110,.16)}

.lic-banner{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:space-between;
  background:rgba(255,92,110,.12);border:1px solid rgba(255,92,110,.42);
  border-radius:14px;padding:10px 12px;margin-bottom:12px;
  font-size:12.5px;color:#FFD3D8;line-height:1.55;
}
.lic-banner .btn{flex:0 0 auto}

.lock-panel{
  border:1px dashed rgba(255,165,61,.45);border-radius:var(--radius);
  background:rgba(255,165,61,.08);padding:22px 16px;text-align:center;
  display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--ink);
}
.lock-panel svg{width:34px;height:34px;color:#FFC46B}
.lock-panel h3{font-size:15px;font-weight:600}
.lock-panel p{font-size:13px;color:var(--muted);max-width:36ch}
.lock-panel .btn{margin-top:4px}
.lock-inline{
  border:1px dashed rgba(255,165,61,.4);border-radius:12px;background:rgba(255,165,61,.08);
  padding:18px 12px;text-align:center;font-size:12.5px;color:#FFD8A6;line-height:1.6;
}

.lic-status{display:flex;flex-direction:column;gap:7px;align-items:flex-start}
.lic-badge{display:inline-flex;align-items:center;border-radius:999px;padding:3px 12px;font-size:12px;font-weight:700;border:1px solid var(--line)}
.lic-badge.ok{color:#B8FFE6;border-color:rgba(47,242,168,.55);background:rgba(47,242,168,.14)}
.lic-badge.warn{color:#FFDDAC;border-color:rgba(255,165,61,.5);background:rgba(255,165,61,.14)}
.lic-badge.bad{color:#FFB3BB;border-color:rgba(255,92,110,.5);background:rgba(255,92,110,.16)}
.inp.code{letter-spacing:.16em;text-align:center;font-size:16px;font-weight:600;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.lic-perks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.lic-perks li{position:relative;padding-inline-start:20px;font-size:13px;color:var(--muted);line-height:1.6}
.lic-perks li::before{content:"";position:absolute;inset-inline-start:3px;top:8px;width:7px;height:7px;border-radius:50%;background:linear-gradient(135deg,#5FE6FF,#A46BFF);box-shadow:0 0 10px rgba(95,230,255,.6)}
.lic-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}

.seller-tool{border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.04);padding:10px 12px}
.seller-tool summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--muted);list-style:none}
.seller-tool summary::-webkit-details-marker{display:none}
.seller-body{display:flex;flex-direction:column;gap:8px;padding-top:10px}
.gen-out{display:flex;flex-direction:column;gap:6px}
.gen-code{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  background:rgba(255,255,255,.07);border:1px solid var(--line);border-radius:12px;padding:8px 10px;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:14px;letter-spacing:.1em;
  direction:ltr;color:#BFF3FF;
}

/* ---------- zakat ---------- */
.zakat-hero{margin-bottom:12px}
.zakat-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.zakat-head .lbl{font-size:11.5px;color:var(--muted)}
.zakat-hero .big{
  font-size:32px;font-weight:700;line-height:1.2;margin-top:2px;overflow-wrap:anywhere;
  background-image:linear-gradient(100deg,#B8FFE6,#8FF3FF 55%,#C9B6FF);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:#B8FFE6;
}
.zakat-rate{display:flex;flex-direction:column;gap:4px;min-width:108px}
.zakat-rate label{font-size:11px;color:var(--muted)}
.suffix-lg{height:46px}
.zakat-note{margin-top:12px;padding-inline:4px}
#view-zakat .card{margin-bottom:12px}
.z-row{display:flex;align-items:center;gap:10px;padding-block:9px;border-bottom:1px solid rgba(255,255,255,.08)}
.z-row:last-child{border-bottom:0}
.z-tag{font-size:11px;font-weight:700;border-radius:999px;padding:2px 9px;flex:0 0 auto}
.z-tag.z{color:#B8FFE6;background:rgba(47,242,168,.16);border:1px solid rgba(47,242,168,.45)}
.z-tag.s{color:#C9B6FF;background:rgba(164,107,255,.16);border:1px solid rgba(164,107,255,.45)}
.z-main{display:flex;flex-direction:column;min-width:0;flex:1 1 auto}
.z-amt{font-weight:700;font-size:14px;color:var(--accent)}
.z-main .small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.z-date{flex:0 0 auto}
.z-row .icon-btn{width:34px;height:34px;border-radius:10px;flex:0 0 auto}
.z-row .icon-btn svg{width:15px;height:15px}

@media(hover:hover){
  .btn-primary:hover{filter:brightness(1.08)}
  .btn-ghost:hover{background:rgba(255,255,255,.13);color:#fff}
  .btn-danger-outline:hover{background:rgba(255,92,110,.16)}
  .icon-btn:hover{background:var(--surface-2);color:var(--ink)}
  .tab:hover{background:rgba(255,255,255,.08);color:var(--ink)}
  .tab[aria-selected="true"]:hover{color:#080B12;filter:brightness(1.06)}
  .swatch:hover{border-color:rgba(255,255,255,.7)}
  .lic-chip:hover{background:rgba(255,255,255,.13)}
  .card:hover,.item:hover{border-color:rgba(255,255,255,.2)}
}