/* عونك · الرئيسية — أنماط التصميم المعتمد (Awnak_Phone_Telegram_Demo_Vercel، 25 أكتوبر 2026) منقولة حرفياً من <style> إلى ملف
   (CSP يمنع الأنماط المضمّنة). المحذوف: لوحة التعريف الجانبية (.intro) وقائمة الأوامر التجريبية (.drawer). المضاف في آخر الملف فقط. */
:root{--ink:#14232d;--muted:#7d8b95;--line:#e9edf0;--bg:#f5f7f8;--white:#fff;--sand:#eac48e;--navy:#132833;--red:#d76e55;--blue:#466e86;--good:#357d69;--shadow:0 25px 80px rgba(14,35,48,.18)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#eaf0f2;color:var(--ink);font-family:Tahoma,'Segoe UI',Arial,sans-serif;-webkit-font-smoothing:antialiased}button{font:inherit;cursor:pointer}button:focus-visible{outline:3px solid #88aacc;outline-offset:2px}
.outer{min-height:100vh;display:flex;align-items:center;justify-content:center;gap:46px;padding:30px 24px;background:radial-gradient(ellipse at 80% 15%,#fff 0,#e7edef 42%,#e3ebee 100%)}
.phone{width:397px;min-width:397px;height:830px;max-height:calc(100vh - 38px);background:#f7f8f9;border:8px solid #202b32;border-radius:44px;box-shadow:var(--shadow);position:relative;overflow:hidden;isolation:isolate}.phone:before{content:'';position:absolute;z-index:9;top:0;left:50%;transform:translateX(-50%);width:111px;height:19px;background:#202b32;border-radius:0 0 15px 15px;pointer-events:none}.mobile-app{height:100%;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;padding-bottom:90px}.mobile-app::-webkit-scrollbar{display:none}
.top{background:var(--navy);color:#fff;padding:31px 21px 68px;position:relative;overflow:hidden}.top:after{content:'';position:absolute;width:230px;height:230px;border:1px solid #ffffff14;border-radius:50%;top:-65px;left:-120px;box-shadow:0 0 0 38px #ffffff07,0 0 0 78px #ffffff04;pointer-events:none}.topbar,.titlebar{display:flex;align-items:center;justify-content:space-between;position:relative;z-index:1}.topbar{margin-bottom:25px}.topbrand{font-size:27px;font-weight:900;letter-spacing:-1px}.icon-btn{width:39px;height:39px;border:1px solid #ffffff35;border-radius:14px;background:#ffffff13;color:white;display:grid;place-items:center}.avatar{width:38px;height:38px;border-radius:14px;background:#e6c89a;color:#20323c;display:grid;place-items:center;font-weight:900}.small-top{font-size:11px;color:#bac8cf;margin-bottom:7px}.hello{font-size:22px;font-weight:850}.subhello{font-size:12px;color:#c0cdd2;margin-top:9px}.subhello span{color:#efcf9d}.mini-state{border-radius:6px;background:#ffffff1c;font-size:10px;padding:5px 9px;color:#f5ead6}.titlebar{align-items:flex-end}.demo-stripe{position:absolute;top:0;right:0;left:0;background:#b98b53;color:#171e23;text-align:center;font-size:10px;font-weight:800;padding:4px;z-index:2}
.content{padding:0 16px 30px;margin-top:-42px;position:relative;z-index:1}.hero{background:#fff;border:1px solid #eef0f1;box-shadow:0 9px 24px #12304112;border-radius:20px;padding:18px;margin-bottom:14px}.hero-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.eyelabel{font-size:12px;color:#7a8a95}.big-count{font-size:41px;font-weight:900;line-height:1.2;margin:5px 0 2px;font-variant-numeric:tabular-nums}.unit{font-size:12px;font-weight:700;color:#5f7180}.hero-total{display:flex;align-items:flex-end;justify-content:space-between}.tiny-tip{display:flex;align-items:center;gap:4px;font-size:10px;color:#477b68;background:#eaf6ef;border-radius:20px;padding:7px 9px}.divider{height:1px;background:#eaf0f0;margin:15px 0 13px}.species{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.spec{text-align:center;border-left:1px solid #eff1f2}.spec:last-child{border-left:0}.animal-icon{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:#f6f6f3;font-size:17px;margin:0 auto 4px}.spec strong{display:block;font-size:15px}.spec small{display:block;font-size:9px;color:#859098;margin-top:2px}
.section-head{display:flex;align-items:center;justify-content:space-between;margin:16px 3px 10px}.section-head strong{font-size:15px}.section-head small{font-size:10px;color:#8b9aa2}.live{display:flex;align-items:center;gap:6px;color:#308065;font-size:10px;font-weight:800}.pulse{width:7px;height:7px;border-radius:50%;background:#308065;box-shadow:0 0 0 4px #dff0e9;animation:pulse 2s infinite}@keyframes pulse{50%{box-shadow:0 0 0 7px #dff0e900}}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat{background:#fff;border:1px solid var(--line);padding:15px 12px 13px;border-radius:17px;min-height:106px}.stat-row{display:flex;justify-content:space-between;gap:5px;align-items:center}.stat-ico{width:32px;height:32px;background:#f4f7f8;border-radius:10px;display:grid;place-items:center;font-size:16px}.statname{font-size:10.5px;color:#73838b}.num{margin-top:11px;font-size:23px;line-height:1.1;font-weight:900;direction:ltr;text-align:right}.num small{font-size:11px;color:#93a0a6;font-weight:600}.stat-foot{font-size:9px;color:#93a1a7;margin-top:5px}
.periods{display:flex;gap:3px;background:#edf0f2;border-radius:11px;padding:3px}.period{padding:6px 11px;border:0;background:transparent;color:#81909a;font-size:10px;font-weight:700;border-radius:9px}.period[aria-pressed="true"]{background:#fff;color:#1a303d;box-shadow:0 2px 6px #081f2914}
.fin-box{background:#fff;border:1px solid var(--line);border-radius:17px;padding:15px;margin-bottom:12px}.fin-head{display:flex;align-items:center;justify-content:space-between}.fin-head span{font-size:10px;color:#89969d}.fin-grid{display:flex;gap:13px;margin:15px 0 9px}.fin-grid>div{flex:1}.fin-grid b{font-size:19px;display:block;margin-top:6px}.fin-grid small{font-size:10px;color:#778893}.fin-grid .sales b{color:#395f73}.fin-grid .cost b{color:#b27d45}.fin-grid .vline{flex:0 0 1px;background:#e9edef}.chart{height:94px;display:flex;align-items:end;gap:8px;direction:ltr;justify-content:space-between;padding-top:7px;position:relative}.chart:before,.chart:after{content:'';position:absolute;left:0;right:0;border-top:1px dashed #e8edef;z-index:-1}.chart:before{top:31%}.chart:after{top:66%}.bar-group{height:100%;display:flex;align-items:flex-end;justify-content:center;gap:3px;flex:1}.bar{border-radius:5px 5px 0 0;width:9px;min-height:5px;transition:height .4s}.bar.sales{background:#385d70}.bar.cost{background:#e5bc85}.axis{display:flex;justify-content:space-between;direction:ltr;margin-top:6px;color:#acb5ba;font-size:9px}.chart-key{display:flex;gap:14px;margin-top:14px}.chart-key span{font-size:10px;color:#7c8c95}.key-dot{display:inline-block;width:8px;height:8px;border-radius:2px;margin-left:5px}
.feed{background:#fff;border-radius:17px;border:1px solid #e9eef0;overflow:hidden}.activity{display:flex;align-items:center;gap:9px;padding:12px 11px;border-bottom:1px solid #eff1f2}.activity:last-child{border-bottom:0}.activity-symbol{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:#eff4f4;font-size:17px;flex:0 0 36px}.activity-body{flex:1}.activity-title{font-size:11px;font-weight:800}.activity-detail{color:#87959b;font-size:9px;margin-top:4px}.activity-end{font-size:10px;color:#68818f;white-space:nowrap}.empty{text-align:center;padding:18px;color:#8898a2;font-size:12px}
.bottom{height:76px;position:absolute;right:0;left:0;bottom:0;display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border-top:1px solid #e9edef;z-index:5;padding-bottom:9px;box-shadow:0 -6px 18px #13304008}.tab{background:transparent;border:0;color:#96a3aa;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:10px}.tab.on{color:#173340;font-weight:900}.tab .i{font-size:21px}.tab.on .i{background:#e9f0f0;border-radius:10px;padding:3px 12px}.action-fab{position:absolute;bottom:91px;left:18px;border:0;background:#19333e;color:#fff;padding:12px 17px;border-radius:30px;z-index:4;font-weight:850;font-size:12px;box-shadow:0 7px 20px #18364240;display:flex;align-items:center;gap:7px}.action-fab .mic{background:#e5bd86;border-radius:100%;width:27px;height:27px;display:grid;place-items:center;color:#182a32;font-size:17px}
.toast{position:absolute;z-index:20;top:70px;left:17px;right:17px;min-height:56px;background:#fff;border-right:4px solid #43826e;border-radius:14px;display:flex;align-items:center;gap:10px;padding:12px 13px;box-shadow:0 10px 35px #1c394b25;font-size:11px;font-weight:700;opacity:0;transform:translateY(-14px);pointer-events:none;transition:.25s}.toast.show{opacity:1;transform:translateY(0)}.toast span{font-size:20px}.unavailable{background:#fff;padding:22px;border-radius:18px;text-align:center;border:1px solid #e7edef}.unavailable h3{margin:7px 0}.unavailable p{font-size:12px;color:#748792;line-height:1.8}.backhome{background:#173440;color:#fff;border:0;padding:10px 18px;border-radius:12px;font-size:12px}.testhint{font-size:10px;color:#a5aeb3;margin:8px 3px 16px}
@media (max-width:860px){.outer{padding:0;display:block;background:#f7f8f9}.phone{margin:auto;max-height:none;border:none;border-radius:0;width:100%;max-width:460px;min-width:0;height:100dvh;box-shadow:none}.phone:before{display:none}.top{padding-top:max(34px,env(safe-area-inset-top))}.bottom{padding-bottom:max(10px,env(safe-area-inset-bottom));height:calc(69px + env(safe-area-inset-bottom))}.mobile-app{padding-bottom:calc(85px + env(safe-area-inset-bottom))}.action-fab{bottom:calc(83px + env(safe-area-inset-bottom))}}
@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* ===== إضافات الربط بالبيانات الحقيقية (لا تغيّر الشكل المعتمد) ===== */
[hidden]{display:none!important}
.topbrand-en{font-size:11px;font-weight:400;margin-right:8px;color:#c3d0d3}
.fin-title{font-size:12px}
.key-sales{background:#385d70}.key-cost{background:#e5bc85}
.content-alt{margin-top:-40px}
.unavailable-ico{font-size:36px}
.mini-state[data-s="ok"]{background:#eef4f0;color:#3b7861}
.mini-state[data-s="loading"]{background:#f6f1e6;color:#8a6a33}
.mini-state[data-s="offline"],.mini-state[data-s="error"]{background:#fbecea;color:#a3432f}
.live[data-s="offline"],.live[data-s="error"]{color:#a3432f}.live[data-s="offline"] .pulse,.live[data-s="error"] .pulse{background:#a3432f;box-shadow:0 0 0 4px #f6dcd6;animation:none}
.top .demo-stripe+.topbar{margin-top:6px}
.fin-note{font-size:9px;color:#9aa6ac;margin-top:10px;line-height:1.6}
.fin-off{font-size:11px;color:#7c8c95;margin-top:12px;line-height:1.8}
.chart.single .bar-group{flex:0 0 40px;margin:0 auto}
#home[aria-busy="true"] .big-count,#home[aria-busy="true"] .num{color:transparent;background:#eef1f2;border-radius:8px}
.spec small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.toast.err{border-right-color:#c25a43}
/* [DASH-2] الحالات المفتوحة والأعمار والمراحل: نفس رموز التصميم (بطاقات .fin-box، صفوف .activity، أزرار .periods) */
.age-select{font:inherit;font-size:10px;font-weight:700;color:#1a303d;background:#edf0f2;border:0;border-radius:11px;padding:7px 10px;max-width:58%}
.age-count{margin:12px 0 8px}.age-count b{font-size:28px;font-weight:900}.age-count small{font-size:11px;color:#778893}
.chip-row,.tag-row{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
.chip{font-size:10px;background:#f4f7f8;border:1px solid #e9edef;border-radius:20px;padding:4px 9px;color:#36505d}.chip b{color:#173340}
.chip.pen{background:#fbf6ee;border-color:#efe2cd;color:#7a5a2c}
.tag{font-size:10px;font-weight:700;background:#eef4f0;color:#2f6a56;border-radius:7px;padding:3px 7px;direction:ltr}.tag.est{background:#fff;border:1px dashed #c9b48e;color:#8a6a33}
.badge{font-size:9px;font-weight:800;border-radius:7px;padding:3px 7px;white-space:nowrap}
.badge.due{background:#fbecea;color:#a3432f}.badge.st-مريض{background:#fbecea;color:#a3432f}.badge.st-قيد{background:#f6f1e6;color:#8a6a33}.badge.st-يتحسن{background:#eef4f0;color:#3b7861}
.activity-end{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.stage-nums{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
