@font-face{font-family:'Cairo';font-style:normal;font-weight:400 800;font-display:swap;src:url(../assets/fonts/cairo-arabic.woff2) format('woff2');unicode-range: U+0600-06FF, U+0750-077F, U+0870-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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;}
@font-face{font-family:'Cairo';font-style:normal;font-weight:400 800;font-display:swap;src:url(../assets/fonts/cairo-latin.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{
  --teal:#0f766e; --teal-dark:#0b4f4a; --mint:#5eead4; --teal-soft:#e6f4f2; --teal-line:#bfe3de;
  --ink:#12212a; --muted:#5b6b73; --bg:#f4f8f7; --card:#ffffff; --line:#e3ecea;
  --amber:#b45309; --amber-soft:#fef3e2; --red:#b42318; --red-soft:#fdecea;
  --green:#047857; --green-soft:#e7f6ef; --violet:#6d28d9; --violet-soft:#f1eafe;
  --radius:16px; --shadow:0 1px 3px rgba(18,33,42,.07),0 4px 14px rgba(18,33,42,.05);
  --nav-h:64px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{
  font-family:'Cairo',system-ui,sans-serif;background:var(--bg);color:var(--ink);
  min-height:100dvh;line-height:1.6;
}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;border:none;background:none}
a{color:var(--teal);text-decoration:none}
.hidden{display:none!important}
.muted{color:var(--muted)}
.small{font-size:.82rem}
.num{direction:ltr;unicode-bidi:embed}

/* splash */
#splash{position:fixed;inset:0;background:radial-gradient(circle at 50% 38%,#12a094 0%,#0b5f58 45%,#06322f 100%);display:flex;align-items:center;justify-content:center;z-index:100;transition:opacity .45s ease .2s;cursor:pointer}
#splash.hide{opacity:0;pointer-events:none}
.splash-logo{transition:opacity .2s ease}#splash.hide .splash-logo{opacity:0}
.sp-on #app,.sp-on #bottomnav{opacity:0}#app,#bottomnav{transition:opacity .4s ease .3s}
.splash-logo{display:flex;flex-direction:column;align-items:center;gap:0;color:#fff}
.sp-stage{position:relative;width:170px;height:170px;margin-bottom:34px}
.sp-stage svg{width:170px;height:170px;overflow:visible;display:block}
.sp-halo{position:absolute;inset:-18px;border-radius:44px;box-shadow:0 0 0 12px #ffffff10,0 0 0 26px #ffffff08;opacity:0;animation:spF .8s ease 1.75s forwards}
.sp-cap,.sp-seg{opacity:0;transform-box:fill-box;transform-origin:center}
.sp-cl{animation:spCl 1s cubic-bezier(.2,.8,.2,1) .1s forwards}
.sp-cr{animation:spCr 1s cubic-bezier(.2,.8,.2,1) .1s forwards}
@keyframes spCl{0%{opacity:0;transform:translate(-62px,-6px) rotate(-40deg)}20%{opacity:1}100%{opacity:1;transform:none}}
@keyframes spCr{0%{opacity:0;transform:translate(62px,-6px) rotate(40deg)}20%{opacity:1}100%{opacity:1;transform:none}}
.sp-seg{animation:spSeg .6s cubic-bezier(.2,.8,.2,1) forwards;--x:0px;--y:0px}
.sp-rl{animation-delay:1s;--x:-22px;--y:-18px}.sp-rr{animation-delay:1.07s;--x:22px;--y:-18px}
.sp-wl{animation-delay:1.2s;--x:-24px;--y:0px}.sp-wr{animation-delay:1.27s;--x:24px;--y:0px}
.sp-fl{animation-delay:1.34s;--x:0px;--y:22px}
@keyframes spSeg{0%{opacity:0;transform:translate(var(--x),var(--y))}100%{opacity:1;transform:none}}
@keyframes spF{to{opacity:1}}
.sp-wm{width:230px;height:auto;display:block;opacity:0;animation:spF .6s ease 1.7s forwards}
.sp-ar{display:none}
.sp-tag{font-size:.82rem;color:#9fd6cf;margin-top:14px;opacity:0;animation:spF .6s ease 2s forwards}
@media (prefers-reduced-motion:reduce){.splash-logo *{animation:none!important;opacity:1!important;transform:none!important}}

#app{max-width:560px;margin:0 auto;padding:0 14px calc(var(--nav-h) + 28px)}
body.no-nav #app{padding-bottom:28px}

/* top bar */
.topbar{position:sticky;top:0;z-index:20;background:linear-gradient(135deg,#0b4f4a,#0f766e);margin:0 -14px 12px;padding:10px 14px;display:flex;align-items:center;gap:10px;box-shadow:0 2px 14px rgba(11,79,74,.22)}
.topbar h1{font-size:1.15rem;font-weight:800;flex:1;color:#fff}
.topbar .logo{display:flex;align-items:center}.topbar .logo img{height:42px;width:auto;display:block}
.icon-btn{width:38px;height:38px;border-radius:12px;background:var(--card);border:1px solid var(--line);display:inline-flex;align-items:center;justify-content:center;position:relative;box-shadow:var(--shadow)}
.icon-btn svg{width:20px;height:20px;stroke:var(--ink)}
.badge{position:absolute;top:-5px;inset-inline-start:-5px;background:var(--red);color:#fff;font-size:.68rem;min-width:17px;height:17px;border-radius:9px;display:flex;align-items:center;justify-content:center;padding:0 4px;font-weight:700}

/* cards */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px;margin:12px 0}
.card.tight{padding:12px 14px}
.card h2{font-size:1.05rem;font-weight:800}
.card h3{font-size:.98rem;font-weight:700}
.section-title{display:flex;align-items:center;justify-content:space-between;margin:20px 2px 6px;font-size:1rem;font-weight:800}
.section-title a{font-size:.8rem;font-weight:600}

/* hero */
.hero{background:radial-gradient(circle at 85% 0%,rgba(94,234,212,.28),transparent 55%),linear-gradient(140deg,#0b4f4a,#0f766e 70%,#12a094);border-radius:20px;color:#fff;padding:20px 18px;margin-top:14px;box-shadow:0 8px 24px rgba(15,118,110,.25)}
.hero .hi{font-size:1.25rem;font-weight:800}
.hero .sub{opacity:.9;font-size:.9rem;margin-top:2px}
.hero .quick{display:flex;gap:10px;margin-top:14px}
.hero .quick a{flex:1;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);color:#fff;border-radius:14px;padding:10px 8px;text-align:center;font-weight:700;font-size:.85rem;transition:background .2s}
.hero .quick a:active{background:rgba(255,255,255,.28)}

/* chips */
.chips{display:flex;gap:8px;overflow-x:auto;padding:4px 2px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;border:1px solid var(--line);background:var(--card);border-radius:999px;padding:6px 14px;font-size:.82rem;font-weight:600;color:var(--muted)}
.chip.on{background:var(--teal-dark);border-color:var(--teal-dark);color:#fff}

/* drug post card */
.post{display:flex;flex-direction:column;gap:6px}
.post .row1{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.post .drug{font-weight:800;font-size:1.02rem}
.post .meta{color:var(--muted);font-size:.82rem;display:flex;flex-wrap:wrap;gap:4px 12px}
.post .foot{display:flex;align-items:center;justify-content:space-between;margin-top:4px}
.tag{display:inline-flex;align-items:center;gap:4px;font-size:.72rem;font-weight:700;border-radius:999px;padding:3px 10px}
.tag.needed{background:var(--red-soft);color:var(--red)}
.tag.available{background:var(--green-soft);color:var(--green)}
.tag.expiry{background:var(--amber-soft);color:var(--amber)}
.tag.status{background:var(--teal-soft);color:var(--teal-dark)}
.tag.reserved{background:var(--amber-soft);color:var(--amber)}
.tag.done{background:var(--teal-soft);color:var(--teal-dark)}
.tag.closed{background:#eef1f2;color:var(--muted)}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:13px;padding:11px 18px;font-weight:700;font-size:.92rem;transition:transform .06s,background .2s;border:1px solid transparent}
.btn:active{transform:scale(.97)}
.btn.primary{background:linear-gradient(135deg,#0f766e,#0b5a54);color:#fff;box-shadow:0 3px 10px rgba(15,118,110,.25)}
.btn.primary:hover{background:linear-gradient(135deg,#0b5a54,#0b4f4a)}
.btn.ghost{background:var(--card);border-color:var(--line);color:var(--ink)}
.btn.soft{background:var(--teal-soft);color:var(--teal-dark)}
.btn.danger{background:var(--red-soft);color:var(--red)}
.btn.block{width:100%}
.btn.sm{padding:7px 13px;font-size:.8rem;border-radius:10px}
.btn[disabled]{opacity:.5;pointer-events:none}

/* forms */
.field{margin:12px 0}
.field label{display:block;font-size:.85rem;font-weight:700;margin-bottom:5px}
.field input,.field select,.field textarea{width:100%;border:1.5px solid var(--line);border-radius:12px;padding:11px 13px;background:var(--card);font-size:.95rem;transition:border-color .2s,box-shadow .2s}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--teal);box-shadow:0 0 0 3px var(--teal-soft)}
.field .hint{font-size:.75rem;color:var(--muted);margin-top:4px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}

/* auth */
.auth-wrap{min-height:100dvh;display:flex;flex-direction:column;justify-content:center;padding:24px 0}
.auth-brand{display:flex;flex-direction:column;align-items:center;gap:10px;margin-bottom:18px}
.auth-brand span{font-size:1.5rem;font-weight:800;color:var(--teal-dark)}
.auth-brand p{color:var(--muted);font-size:.88rem;text-align:center}
.tabs{display:flex;background:#e9efee;border-radius:12px;padding:4px;margin-bottom:6px}
.tabs button{flex:1;padding:9px;border-radius:9px;font-weight:700;font-size:.9rem;color:var(--muted)}
.tabs button.on{background:var(--card);color:var(--ink);box-shadow:var(--shadow)}
.role-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.role-opt{border:1.5px solid var(--line);border-radius:12px;padding:10px;background:var(--card);text-align:center;font-weight:700;font-size:.85rem}
.role-opt small{display:block;font-weight:400;color:var(--muted);font-size:.72rem}
.role-opt.on{border-color:var(--teal);background:var(--teal-soft);color:var(--teal-dark)}

/* empty state */
.empty{text-align:center;padding:34px 18px;color:var(--muted)}
.empty svg{width:56px;height:56px;stroke:var(--teal-line);margin-bottom:10px}
.empty b{display:block;color:var(--ink);font-size:.95rem;margin-bottom:2px}

/* skeleton */
.sk{border-radius:var(--radius);background:linear-gradient(90deg,#e8efee 25%,#f2f7f6 50%,#e8efee 75%);background-size:200% 100%;animation:shimmer 1.2s infinite;height:86px;margin:12px 0}
@keyframes shimmer{to{background-position:-200% 0}}

/* chat */
.chat-head{display:flex;align-items:center;gap:10px}
.chat-head .back{width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center}
.chat-body{display:flex;flex-direction:column;gap:8px;padding:10px 0}
.msg{max-width:78%;padding:9px 13px;border-radius:16px;font-size:.9rem;box-shadow:var(--shadow)}
.msg.mine{align-self:flex-start;background:var(--teal);color:#fff;border-end-start-radius:5px}
.msg.theirs{align-self:flex-end;background:var(--card);border:1px solid var(--line);border-end-end-radius:5px}
.msg time{display:block;font-size:.65rem;opacity:.65;margin-top:3px}
.chat-input{position:sticky;bottom:calc(var(--nav-h) + 8px);display:flex;gap:8px;background:var(--bg);padding:8px 0}
.chat-input input{flex:1;border:1.5px solid var(--line);border-radius:999px;padding:11px 16px;background:var(--card)}
.chat-input button{width:46px;height:46px;border-radius:50%;background:var(--teal);display:flex;align-items:center;justify-content:center;flex:none}
.chat-input button svg{width:20px;height:20px;stroke:#fff;transform:scaleX(-1)}

/* request rows */
.req{display:flex;align-items:center;gap:12px}
.req .avatar{width:44px;height:44px;border-radius:14px;background:var(--teal-soft);color:var(--teal-dark);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:1.05rem;flex:none}
.req .info{flex:1;min-width:0}
.req .info b{display:block;font-size:.92rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.req .info span{font-size:.78rem;color:var(--muted)}

/* notifications panel */
.notif{display:flex;gap:10px;align-items:flex-start;padding:10px 4px;border-bottom:1px solid var(--line)}
.notif:last-child{border-bottom:none}
.notif .dot{width:8px;height:8px;border-radius:50%;background:var(--teal);margin-top:8px;flex:none}
.notif.read .dot{background:var(--line)}
.notif b{font-size:.88rem}
.notif p{font-size:.8rem;color:var(--muted)}

/* profile */
.profile-head{display:flex;align-items:center;gap:14px}
.profile-head .avatar{width:64px;height:64px;border-radius:20px;background:linear-gradient(140deg,var(--teal),var(--teal-dark));color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.6rem;font-weight:800}
.vbadge{display:inline-flex;align-items:center;gap:4px;font-size:.72rem;font-weight:700;border-radius:999px;padding:3px 10px;background:var(--teal-soft);color:var(--teal-dark)}
.kv{display:flex;justify-content:space-between;padding:9px 2px;border-bottom:1px dashed var(--line);font-size:.88rem}
.kv:last-child{border-bottom:none}
.kv b{font-weight:600}
.kv span{color:var(--muted)}

/* bottom nav */
#bottomnav{position:fixed;bottom:0;inset-inline:0;height:var(--nav-h);background:var(--card);border-top:1px solid var(--line);display:flex;z-index:30;padding-bottom:env(safe-area-inset-bottom)}
#bottomnav a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--muted);font-size:.68rem;font-weight:700;position:relative}
#bottomnav a svg{width:22px;height:22px}
#bottomnav a.on{color:var(--teal-dark)}#bottomnav a.on::before{content:'';position:absolute;top:0;width:28px;height:3px;border-radius:0 0 3px 3px;background:linear-gradient(90deg,#0f766e,#5eead4)}
#bottomnav a .badge{top:4px;inset-inline-start:calc(50% + 6px)}

/* toasts */
#toasts{position:fixed;bottom:calc(var(--nav-h) + 14px);inset-inline:0;display:flex;flex-direction:column;align-items:center;gap:8px;z-index:60;pointer-events:none}
.toast{background:#12212a;color:#fff;border-radius:12px;padding:10px 18px;font-size:.86rem;font-weight:600;box-shadow:0 6px 20px rgba(0,0,0,.25);animation:toastin .25s ease;max-width:90%}
.toast.ok{background:var(--green)}
.toast.err{background:var(--red)}
@keyframes toastin{from{transform:translateY(12px);opacity:0}to{transform:none;opacity:1}}

/* bottom sheet */
.sheet-back{position:fixed;inset:0;background:rgba(10,20,25,.45);z-index:70;display:flex;align-items:flex-end;justify-content:center;animation:fadein .2s ease}
@keyframes fadein{from{opacity:0}}
.sheet{background:var(--card);width:100%;max-width:560px;border-radius:22px 22px 0 0;padding:20px 18px calc(20px + env(safe-area-inset-bottom));animation:sheetup .28s cubic-bezier(.2,.9,.3,1)}
@keyframes sheetup{from{transform:translateY(40px);opacity:.5}}
.sheet h3{font-size:1.05rem;font-weight:800;margin-bottom:4px}

.match-note{background:var(--violet-soft);border:1px solid #ddd0fa;color:var(--violet);border-radius:12px;padding:10px 14px;font-size:.85rem;font-weight:600;margin-top:10px}
.offline-bar{position:sticky;top:0;background:var(--amber-soft);color:var(--amber);text-align:center;font-size:.78rem;font-weight:700;padding:5px;border-radius:0 0 10px 10px;margin:0 -14px}

@media (min-width:561px){
  body{background:var(--bg)}
  #bottomnav{max-width:560px;inset-inline:calc(50% - 280px);border-radius:18px 18px 0 0;border:1px solid var(--line);border-bottom:none}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.calc-res{display:none;margin-top:10px;background:var(--teal-soft);border:1px solid var(--teal-line);border-radius:12px;padding:12px;font-size:.92rem}
.calc-res .err{color:#c0392b;font-weight:700}
.field{position:relative}
.ac-list{position:absolute;inset-inline:0;top:100%;z-index:30;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);max-height:260px;overflow:auto;margin-top:4px}
.ac-list button{display:block;width:100%;text-align:start;padding:10px 14px;border-bottom:1px solid var(--line)}
.ac-list button:last-child{border-bottom:none}
.ac-list button:hover,.ac-list button:focus{background:var(--teal-soft)}
.ac-list small{display:block;color:var(--muted)}

/* phase10: rich chat */
.msg { position:relative; }
.msg .msg-quote { border-right:3px solid var(--teal); background:rgba(13,148,136,.08); border-radius:8px; padding:4px 8px; margin-bottom:4px; font-size:.8rem; color:var(--muted); }
.msg .msg-meta { display:flex; gap:4px; align-items:center; justify-content:flex-end; }
.msg .ticks { font-size:.75rem; color:var(--muted); }
.msg .ticks.seen { color:#0d9488; font-weight:700; }
.msg.deleted .msg-body { opacity:.75; }
.msg-img { max-width:220px; border-radius:12px; display:block; }
.msg-voice { max-width:220px; height:36px; }
.msg-rx { display:flex; flex-wrap:wrap; gap:4px; margin-top:4px; }
.rx-chip { border:1px solid var(--line); background:var(--card); border-radius:999px; padding:1px 8px; font-size:.8rem; }
.rx-chip.on { border-color:var(--teal); background:var(--teal-soft); }
.msg-actions { display:none; gap:6px; flex-wrap:wrap; margin-top:4px; }
.msg.show-actions .msg-actions { display:flex; }
.msg-actions .ma { font-size:.72rem; border:1px solid var(--line); border-radius:999px; padding:2px 8px; background:var(--card); color:var(--ink); }
.msg-actions .ma.danger { color:#dc2626; border-color:#fecaca; }
.date-sep { text-align:center; font-size:.75rem; color:var(--muted); margin:10px 0 4px; }
.date-sep::before { content:''; }
.unread-sep { text-align:center; font-size:.75rem; color:var(--teal); font-weight:700; margin:8px 0 4px; border-top:1px dashed var(--teal-line); padding-top:6px; }
.reply-bar { display:flex; justify-content:space-between; align-items:center; gap:8px; background:var(--teal-soft); border:1px solid var(--teal-line); border-radius:12px; padding:6px 10px; margin:0 0 6px; font-size:.82rem; }
.reply-bar button { color:var(--muted); }
.chat-input button#msg-voice.recording { background:#fee2e2; border-radius:50%; }
.msg-body mark { background:#fef08a; border-radius:3px; padding:0 1px; }

/* ---------- dark mode (auto + manual) ---------- */
:root[data-theme=dark]{
  --teal:#2dd4bf; --teal-dark:#5eead4; --teal-soft:#0f2e2b; --teal-line:#1f4f4a;
  --ink:#e8f1ef; --muted:#9bb0ac; --bg:#0b1517; --card:#121f22; --line:#1f3236;
  --amber:#fbbf24; --amber-soft:#2a2110; --red:#f87171; --red-soft:#2d1517;
  --green:#34d399; --green-soft:#0f2a20; --violet:#a78bfa; --violet-soft:#1f1a33;
  --shadow:0 1px 3px rgba(0,0,0,.4),0 4px 14px rgba(0,0,0,.3); color-scheme:dark;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme=light]){
    --teal:#2dd4bf; --teal-dark:#5eead4; --teal-soft:#0f2e2b; --teal-line:#1f4f4a;
    --ink:#e8f1ef; --muted:#9bb0ac; --bg:#0b1517; --card:#121f22; --line:#1f3236;
    --amber:#fbbf24; --amber-soft:#2a2110; --red:#f87171; --red-soft:#2d1517;
    --green:#34d399; --green-soft:#0f2a20; --violet:#a78bfa; --violet-soft:#1f1a33;
    --shadow:0 1px 3px rgba(0,0,0,.4),0 4px 14px rgba(0,0,0,.3); color-scheme:dark;
  }
}
input,select,textarea{background:var(--card);color:var(--ink)}

/* ---------- polish: motion, focus, depth ---------- */
.btn{transition:transform .12s ease,background .15s ease,box-shadow .15s ease}
.btn:active{transform:scale(.97)}
.card{transition:box-shadow .2s ease}
a,button{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:2px solid var(--teal);outline-offset:2px;border-radius:6px}
.msg{animation:msg-in .18s ease}
@keyframes msg-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.chip{transition:background .15s ease,border-color .15s ease}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001s !important;transition-duration:.001s !important;scroll-behavior:auto !important}
}
.msg-actions .ma{min-height:32px;display:inline-flex;align-items:center}
.rx-chip{min-height:28px;display:inline-flex;align-items:center;gap:3px}
.scan-modal{position:fixed;inset:0;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;z-index:200;padding:20px}
.scan-box{background:var(--card);border-radius:16px;padding:16px;width:100%;max-width:380px;display:flex;flex-direction:column;gap:10px;text-align:center}
.scan-box video{width:100%;border-radius:12px;background:#000;min-height:220px}

/* landing (logged-out) */
.landing-hero{margin-bottom:14px}
.hero-badges{display:flex;gap:6px;justify-content:center}
.feat-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.feat{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:10px;position:relative;text-align:start;font:inherit;color:inherit;cursor:pointer;display:block;width:100%;-webkit-tap-highlight-color:transparent;transition:transform .12s ease,background .12s ease,border-color .12s ease;min-height:44px}
.feat:active{transform:scale(.97);background:var(--teal-soft);border-color:var(--teal-line)}
.feat-go{position:absolute;inset-inline-end:8px;top:8px;font-style:normal;font-weight:800;color:var(--teal);font-size:1.1rem;line-height:1}
.feat .fi{font-size:1.3rem}
.feat b{display:block;font-size:.85rem;margin:4px 0 2px}
.feat span{font-size:.74rem;color:var(--muted);line-height:1.5;display:block}
.install-sheet{position:fixed;inset:0;background:rgba(0,0,0,.45);display:flex;align-items:flex-end;justify-content:center;z-index:99}
.install-sheet>div{background:var(--card);border-radius:20px 20px 0 0;padding:20px;max-width:430px;width:100%}
.install-sheet li{margin:8px 0;font-size:.9rem}

.auth-brand .brand-en{display:block;font-size:2rem;font-weight:800;letter-spacing:.3px;line-height:1.1}
.auth-brand .brand-ar{display:block;font-size:1.05rem;font-weight:700;opacity:.8;margin-top:2px}

.feat-sheet{max-height:88vh;overflow:auto}
.fs-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}.fs-head h3{flex:1;margin:0}
.fs-ic{font-size:1.6rem}.fs-x{border:0;background:var(--bg);width:36px;height:36px;border-radius:50%;font-size:1rem;color:var(--muted);cursor:pointer}
.fs-list{margin:0 0 10px;padding-inline-start:20px;font-size:.88rem;line-height:1.8;color:var(--text,#1c2b2a)}
.fs-pv{background:var(--bg);border:1px dashed var(--line);border-radius:14px;padding:10px}
.pv-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px}
.pv-row{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:.85rem}
.pv-line{font-size:.76rem;color:var(--muted);margin:6px 0 8px}
.pv-btns{display:flex;gap:6px}.pv-btns span{flex:1;text-align:center;background:var(--teal-soft);color:var(--teal-dark);border-radius:8px;padding:6px;font-size:.78rem;font-weight:700}
.pv-btns.wa span{background:#25d366;color:#fff}
.pv-bub{max-width:78%;padding:7px 10px;border-radius:12px;font-size:.8rem;margin:4px 0}
.pv-bub.in{background:var(--bg);margin-inline-end:auto}.pv-bub.out{background:var(--teal);color:#fff;margin-inline-start:auto}

.fld{display:block;margin:0 0 12px;text-align:start}
.fld>span{display:block;font-size:.82rem;font-weight:700;margin-bottom:5px;line-height:1.5;color:var(--text,#1c2b2a)}
.fld input,.tool-in{display:block;width:100%;box-sizing:border-box;min-height:46px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;font:inherit;font-size:1rem;text-align:start}
.fld input.num{text-align:start}
.fld input:focus,.tool-in:focus{outline:2px solid var(--teal-line);border-color:var(--teal)}
#tdrug-card .ac-box{position:absolute;inset-inline:0;top:100%;z-index:20;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.12);max-height:260px;overflow:auto}
#tdrug-card .ac-box button{display:block;width:100%;text-align:start;padding:10px 12px;border:0;border-bottom:1px solid var(--line);background:none;font:inherit;font-size:.9rem}
#tdrug-card .ac-box small{display:block;color:var(--muted);font-size:.74rem;margin-top:2px}
.tool-pick{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;background:var(--teal-soft);border:1px solid var(--teal-line);border-radius:12px;padding:10px 12px}
.tool-pick button{border:0;background:#fff;width:34px;height:34px;border-radius:50%;color:var(--muted)}
.tool-note{margin-top:10px;font-size:.78rem;color:#92400e;background:#fef3c7;border-radius:10px;padding:8px 10px;line-height:1.6}

.drug-acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.drug-acts .btn{flex:1;min-width:96px;text-align:center;min-height:40px;display:inline-flex;align-items:center;justify-content:center}

.post-row{display:flex;gap:8px;margin:0 0 14px}
.post-row a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:74px;padding:10px 6px;border-radius:14px;color:#fff;font-size:1.3rem;text-align:center;-webkit-tap-highlight-color:transparent}
.post-row a b{font-size:.78rem;line-height:1.3}
.post-row a:active{transform:scale(.97)}
.pr-need{background:#dc2626}.pr-avail{background:var(--teal)}.pr-job{background:#6d28d9}
#fab-add{position:fixed;inset-inline-start:16px;bottom:calc(84px + env(safe-area-inset-bottom));z-index:40;display:flex;align-items:center;gap:6px;border:0;border-radius:28px;background:var(--teal);color:#fff;padding:0 18px 0 14px;height:52px;box-shadow:0 6px 18px rgba(15,118,110,.4);font:inherit;font-weight:800;font-size:.95rem;cursor:pointer}
#fab-add span{font-size:1.5rem;line-height:1}
#fab-add:active{transform:scale(.96)}
.add-opt{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:14px;margin-top:8px;color:inherit}
.add-opt>span{font-size:1.5rem}.add-opt b{display:block;font-size:.95rem}.add-opt small{color:var(--muted);font-size:.78rem}
.fi svg,.fs-ic svg{width:1.5em;height:1.5em;color:var(--teal,#0f766e)}.btn svg{width:1.1em;height:1.1em;vertical-align:-.2em;margin-inline-end:4px}.sp-en bdi,.brand-en bdi{unicode-bidi:isolate}

.auth-brand .brand-wm{width:220px;height:auto;display:block;margin-top:2px}
.auth-brand .brand-ar{display:none}
.install-top{margin-top:4px;padding:8px 16px;font-size:.85rem;border:1px solid var(--teal-line)}
.install-banner{display:flex;align-items:stretch;margin:0 0 12px;border-radius:16px;background:linear-gradient(135deg,#0b4f4a,#0f766e);box-shadow:0 4px 14px rgba(15,118,110,.25);overflow:hidden}
.install-banner .ib-main{flex:1;display:flex;align-items:center;gap:12px;padding:12px 14px;color:#fff;text-align:start}
.install-banner .ib-main svg{width:30px;height:30px;flex:none;color:#5eead4;stroke:#5eead4}
.install-banner .ib-main span{display:flex;flex-direction:column;line-height:1.35}
.install-banner .ib-main b{font-size:.95rem}.install-banner .ib-main small{font-size:.76rem;opacity:.85}
.install-banner .ib-x{width:40px;color:#bfeee8;font-size:1.4rem;line-height:1}
.install-banner{margin:0 0 10px;border-radius:12px;box-shadow:none;background:var(--teal-dark)}.install-banner .ib-main{padding:8px 12px}.install-banner .ib-main svg{width:22px;height:22px}.install-banner .ib-main b{font-size:.85rem}.install-banner .ib-x{width:36px}

.install-cta{width:100%;max-width:360px;margin:12px auto 0;text-align:center}
.install-big{display:flex;align-items:center;justify-content:center;gap:8px;font-size:1.05rem;font-weight:800;padding:15px 18px;border-radius:16px;box-shadow:0 6px 18px rgba(15,118,110,.35);text-decoration:none;animation:ipulse 2.4s ease-in-out infinite}
.install-big svg{width:22px;height:22px}
@keyframes ipulse{0%,100%{transform:scale(1)}50%{transform:scale(1.025)}}
@media (prefers-reduced-motion:reduce){.install-big{animation:none}}
.install-steps{text-align:right;margin:10px 0 0;padding-inline-start:22px;font-size:.88rem;background:var(--teal-soft);border-radius:12px;padding-block:8px;padding-inline-end:12px}
.install-steps li{margin:6px 0}
.install-note{font-size:.8rem;margin:8px 4px 0;color:var(--muted,#64748b)}
.install-sub{font-size:.78rem;margin-top:6px;color:var(--muted,#64748b)}
