/* Co-Hub — صفحة المنتج. أرضية فاتحة، حبر أخضر غامق، ولون تمييز واحد (ليموني). */
/* خطوط عربي (خط لكل دور). مافيهمش حروف إنجليزي، فالإنجليزي والأرقام بيطلعوا بـ Rubik. */
@font-face { font-family: "Zain"; src: url(/fonts/zain.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0600-0605, U+0608-065F, U+066A-06EF, U+06FA-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC, U+200C-200F, U+00AB, U+00BB; }
@font-face { font-family: "GE Unique"; size-adjust: 104%; src: url(/fonts/ge-ss-unique-bold.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0600-0605, U+0608-065F, U+066A-06EF, U+06FA-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC, U+200C-200F, U+00AB, U+00BB; }
@font-face { font-family: "GE TV"; size-adjust: 112%; src: url(/fonts/ge-ss-tv-medium.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0600-0605, U+0608-065F, U+066A-06EF, U+06FA-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC, U+200C-200F, U+00AB, U+00BB; }
@font-face { font-family: "GE Text"; size-adjust: 106%; src: url(/fonts/ge-ss-text-medium.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0600-0605, U+0608-065F, U+066A-06EF, U+06FA-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC, U+200C-200F, U+00AB, U+00BB; }
@font-face { font-family: Rubik; src: url(/fonts/rubik-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; 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: Rubik; src: url(/fonts/rubik-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; 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: Rubik; src: url(/fonts/rubik-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; 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: Rubik; src: url(/fonts/rubik-latin-900-normal.woff2) format("woff2"); font-weight: 900; font-display: swap; 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: #f3f5f1; --stage: #e5eae3; --panel: #ffffff; --ink: #10211c; --ink-2: #1b3029; --muted: #56625d; --line: rgba(16, 33, 28, .12);
  --lime: #c5f04a; --lime-deep: #a6d424; --lime-soft: #edf9cf; --green: #17784b;
  --red: #d93f3f; --red-soft: #fde7e6; --amber: #e39b12; --amber-soft: #fdf0d3; --ok: #2b9a5f; --ok-soft: #dff3e7;
  --m: clamp(20px, 3.2vw, 44px);
  --t-display: clamp(40px, 6.2vw, 96px); --t-h2: clamp(30px, 4vw, 58px); --t-st: clamp(21px, 2vw, 28px); --t-lead: 19px; --t-body: 17px; --t-small: 15px;
  --r: 22px; --gap: clamp(96px, 12vw, 180px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: "GE Text", Rubik, system-ui, sans-serif; font-synthesis: none; font-size: var(--t-body); line-height: 1.75; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
::selection { background: var(--ink); color: var(--lime); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2 * var(--m), 1320px); margin-inline: auto; }
.display { font-family: "Zain", "GE Unique", Rubik, sans-serif; font-size: var(--t-display); font-weight: 900; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.display em { font-style: normal; background: linear-gradient(transparent 62%, var(--lime) 62%, var(--lime) 92%, transparent 92%); padding-inline: .06em; }
.h2 { font-family: "GE Unique", Rubik, sans-serif; font-size: var(--t-h2); font-weight: 700; line-height: 1.18; letter-spacing: -.015em; text-wrap: balance; }
.st { font-size: var(--t-st); font-weight: 700; line-height: 1.35; }
.lead { font-size: var(--t-lead); line-height: 1.85; max-width: 36em; color: var(--ink-2); }
section { margin-top: var(--gap); }
.hero > *, .vs > *, [class$="-grid"] > * { min-width: 0; }
bdi { unicode-bidi: isolate; }

/* ---------- اللوجو والأزرار ---------- */
.wordmark { font-weight: 900; letter-spacing: -.03em; direction: ltr; display: inline-flex; align-items: baseline; }
.wordmark i { font-style: normal; color: var(--green); padding-inline: .02em; }
.logo { display: inline-flex; align-items: center; gap: .45em; font-size: 24px; text-decoration: none; direction: ltr; }
.logo img { height: 1.3em; width: 1.3em; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 58px; padding: 0 30px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 700; font-size: var(--t-body); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, transform .2s var(--ease); }
.btn:hover { background: var(--ink); color: var(--lime); }
.btn:active { transform: scale(.97); }
.btn.sm { height: 46px; padding: 0 22px; font-size: var(--t-small); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn.wide { width: 100%; }
.text-link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; text-decoration-color: var(--lime-deep); }
.text-link:hover { text-decoration-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 34px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-small); font-weight: 500; color: var(--ink-2); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px 6px 14px; }
.kicker i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); animation: pulse 2.4s infinite; }
.kicker.light { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #dfe8e3; }
.kicker.light i { background: var(--lime); box-shadow: 0 0 0 4px rgba(197, 240, 74, .2); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.t-lbl { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }

/* ---------- الهيدر ---------- */
/* العناوين الصغيرة والزراير والكلام التقيل */
b, strong, th, summary, .st, .btn, .text-link, .kicker, .bar nav, .tabs b, .tile b, .plan-list b, .dtitle, .loan-num, .fit-list li, .stats dd, .cat, .sev, .g-st, .xls, .sup-count, .sup em, .seg button, .keys button, .t-again, .tk, .man, .sum h3, .steps, .legend { font-family: "GE TV", Rubik, sans-serif; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; }
.bar nav { display: flex; gap: 30px; font-size: var(--t-small); font-weight: 500; }
.bar nav a { text-decoration: none; color: var(--ink-2); }
.bar nav a:hover { color: var(--green); }
@media (max-width: 860px) { .bar nav { display: none; } }

/* ---------- البداية ---------- */
.hero { margin-top: clamp(48px, 7vw, 96px); display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.hero .display { margin-top: 22px; }
.hero .lead { margin-top: 26px; }
@media (max-width: 1180px) { .hero { grid-template-columns: 1fr; } .hero .stage { max-width: 820px; } }

.stage { position: relative; background: var(--stage); border-radius: 32px; padding: clamp(22px, 3vw, 40px); padding-bottom: 64px; display: grid; grid-template-columns: 1.25fr .9fr; gap: 18px; align-items: end; }
.demo-hint { position: absolute; inset-inline: 0; bottom: 20px; text-align: center; font-size: 14px; color: var(--muted); }
@media (max-width: 620px) { .stage { grid-template-columns: 1fr; } }

.tablet { background: var(--bg); border: 12px solid var(--ink); border-radius: 30px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(16, 33, 28, .55); }
.t-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 0; }
.t-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.t-clock { font-weight: 700; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.t-body { padding: 14px 16px 18px; }
.t-who { display: flex; align-items: baseline; justify-content: space-between; background: var(--panel); border-radius: 12px; padding: 10px 14px; }
.t-who .t-lbl { white-space: nowrap; }
.t-code { white-space: nowrap; direction: ltr; font-weight: 900; letter-spacing: .04em; }
.t-pin { display: flex; justify-content: center; gap: 14px; margin: 16px 0; }
.t-pin i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); transition: background .15s, transform .15s; }
.t-pin i.on { background: var(--ink); transform: scale(1.1); }
.t-pin.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(6px); } 75% { transform: translateX(-6px); } }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; direction: ltr; }
.keys button { height: 50px; border-radius: 12px; background: var(--panel); font-weight: 700; font-size: 20px; box-shadow: 0 1px 0 var(--line); transition: background .15s, transform .1s; }
.keys button:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.keys button:active { transform: scale(.95); }
.keys .go { background: var(--lime); font-size: 16px; }
.keys .go:disabled { background: var(--stage); color: var(--muted); cursor: not-allowed; }
.t-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 38px 16px 34px; min-height: 330px; justify-content: center; }
.t-ok { width: 68px; height: 68px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; animation: pop .5s var(--ease); }
.t-ok svg { width: 34px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.t-done b { font-size: 24px; font-weight: 900; margin-top: 8px; }
.t-done > span:not(.t-ok) { color: var(--muted); font-size: 15px; }
.t-again { margin-top: 14px; font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: none; opacity: 1; } }

.sup { background: var(--panel); border-radius: 22px; padding: 16px 16px 12px; box-shadow: 0 24px 50px -30px rgba(16, 33, 28, .45); }
.sup-head { gap: 8px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 15px; }
.sup-count { white-space: nowrap; font-size: 13px; font-weight: 700; background: var(--lime-soft); border-radius: 999px; padding: 2px 10px; transition: background .3s; }
.sup-count.bump { animation: bump .5s var(--ease); background: var(--lime); }
@keyframes bump { 40% { transform: scale(1.15); } }
.sup ul { list-style: none; }
.sup li { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.sup em { font-style: normal; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 9px; font-variant-numeric: tabular-nums; }
.sup em.in { background: var(--ok-soft); color: var(--green); }
.sup em.late { background: var(--amber-soft); color: #8a5a00; }
.sup em.wait { background: var(--red-soft); color: #a32424; }
.sup em.off { background: var(--stage); color: var(--muted); }
.sup li.flash { animation: flash 1.2s; }
@keyframes flash { 0%, 40% { background: var(--lime-soft); } }
.frag-cap { margin-top: 8px; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- قبل وبعد ---------- */
.vs { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.vs-head .lead { margin-top: 20px; }
.vs table { width: 100%; border-collapse: collapse; font-size: var(--t-body); }
.vs th { text-align: start; font-size: var(--t-small); font-weight: 700; padding: 0 16px 12px; }
.vs th:first-child { color: var(--muted); }
.vs th:last-child { color: var(--green); }
.vs td { padding: 18px 16px; border-top: 1px solid var(--line); vertical-align: top; width: 50%; }
.vs td:first-child { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(217, 63, 63, .45); text-decoration-thickness: 1.5px; }
.vs td:last-child { font-weight: 500; background: var(--panel); }
.vs tr:first-child td:last-child { border-radius: 16px 16px 0 0; }
.vs tr:last-child td:last-child { border-radius: 0 0 16px 16px; }
@media (max-width: 900px) { .vs { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .vs table { font-size: 15px; } .vs td { padding: 14px 10px; } }

/* ---------- الأدوار ---------- */
.roles-head { max-width: 820px; }
.roles-head .lead { margin-top: 18px; }
.roles-grid { margin-top: 48px; display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }
.tabs { display: grid; gap: 10px; }
.tabs button { text-align: start; border-radius: 18px; padding: 18px 22px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); transition: background .2s, box-shadow .2s; display: flex; flex-direction: column; }
.tabs button b { font-size: 19px; }
.tabs button span { font-size: 14px; color: var(--muted); }
.tabs button:hover { background: var(--panel); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.tabs button[aria-selected="true"] span { color: var(--lime); }
.role-view { background: var(--stage); border-radius: 28px; padding: clamp(20px, 3vw, 36px); }
.role-note { font-size: 17px; font-weight: 500; max-width: 40em; min-height: 3.6em; }
.home { margin-top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { background: var(--panel); border-radius: 18px; padding: 16px; min-height: 132px; display: flex; flex-direction: column; animation: rise .45s var(--ease) both; }
.tile b { margin-top: auto; padding-top: 18px; font-size: 16px; line-height: 1.4; }
.tile span { font-size: 13px; color: var(--muted); line-height: 1.5; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.home[data-role="emp"] .tile:not([data-for~="emp"]),
.home[data-role="sup"] .tile:not([data-for~="sup"]),
.home[data-role="adm"] .tile:not([data-for~="adm"]),
.home[data-role="kio"] .tile:not([data-for~="kio"]) { display: none; }
.home[data-role="kio"] { grid-template-columns: repeat(2, 1fr); max-width: 520px; }
.home[data-role="kio"] .tile { min-height: 180px; }
@media (max-width: 1100px) { .home { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .roles-grid { grid-template-columns: 1fr; } .tabs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .home { grid-template-columns: repeat(2, 1fr); } .tabs button { padding: 14px 16px; } .tabs button b { font-size: 16px; } .tabs button span { font-size: 12px; } }

/* أيقونات: SVG كماسك على مربع ملوّن */
.ic { width: 42px; height: 42px; border-radius: 12px; background: var(--lime-soft); position: relative; display: block; }
.ic::after { content: ""; position: absolute; inset: 10px; background: var(--ink); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ic-user { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E"); }
.ic-cal { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='3'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.ic-mic { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='9' y='3' width='6' height='11' rx='3'/%3E%3Cpath d='M5.5 11a6.5 6.5 0 0 0 13 0M12 17.5V21'/%3E%3C/svg%3E"); }
.ic-wallet { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M19 7V5.5A1.5 1.5 0 0 0 17.5 4h-12A2.5 2.5 0 0 0 3 6.5v11A2.5 2.5 0 0 0 5.5 20h14a1.5 1.5 0 0 0 1.5-1.5V9a2 2 0 0 0-2-2H5.5A2.5 2.5 0 0 1 3 4.5'/%3E%3Ccircle cx='16.5' cy='13.5' r='1.2'/%3E%3C/svg%3E"); }
.ic-plane { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M21 4 3 11l7 2.5L12.5 21 21 4zM10 13.5 21 4'/%3E%3C/svg%3E"); }
.ic-team { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c1-3.5 3.5-5.5 6.5-5.5s5.5 2 6.5 5.5M16 4.8a3.5 3.5 0 0 1 0 6.5M18.5 14.8c1.5.8 2.5 2.6 3 5.2'/%3E%3C/svg%3E"); }
.ic-grid { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='3'/%3E%3Cpath d='M3.5 9.5h17M3.5 15h17M9.5 3.5v17'/%3E%3C/svg%3E"); }
.ic-alert { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 17v-5a6 6 0 0 1 12 0v5M4 17h16M9.5 20.5h5M12 3v1.5M4.5 6l1 1M19.5 6l-1 1'/%3E%3C/svg%3E"); }
.ic-chart { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 20h16M7 16v-5M12 16V6M17 16v-8'/%3E%3C/svg%3E"); }
.ic-id { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Ccircle cx='9' cy='11' r='2'/%3E%3Cpath d='M6 16c.6-1.4 1.7-2 3-2s2.4.6 3 2M15 10h3M15 13.5h3'/%3E%3C/svg%3E"); }
.ic-gear { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2.5v3M12 18.5v3M2.5 12h3M18.5 12h3M5.3 5.3l2.1 2.1M16.6 16.6l2.1 2.1M5.3 18.7l2.1-2.1M16.6 7.4l2.1-2.1'/%3E%3C/svg%3E"); }
.ic-pad { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Ccircle cx='6' cy='5' r='2'/%3E%3Ccircle cx='12' cy='5' r='2'/%3E%3Ccircle cx='18' cy='5' r='2'/%3E%3Ccircle cx='6' cy='11' r='2'/%3E%3Ccircle cx='12' cy='11' r='2'/%3E%3Ccircle cx='18' cy='11' r='2'/%3E%3Ccircle cx='6' cy='17' r='2'/%3E%3Ccircle cx='12' cy='17' r='2'/%3E%3Ccircle cx='18' cy='17' r='2'/%3E%3Ccircle cx='12' cy='22' r='1.6'/%3E%3C/svg%3E"); }
.ic-book { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 6.5C10 5 7 4.5 3.5 5v13c3.5-.5 6.5 0 8.5 1.5 2-1.5 5-2 8.5-1.5V5C17 4.5 14 5 12 6.5zM12 6.5v13'/%3E%3C/svg%3E"); }

/* ---------- الحضور ---------- */
.att { background: var(--panel); padding-block: clamp(72px, 9vw, 130px); }
.att-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.att-text .lead { margin-top: 20px; }
.facts { list-style: none; margin-top: 28px; display: grid; gap: 0; }
.facts li { padding: 14px 0 14px 0; padding-inline-start: 30px; border-top: 1px solid var(--line); position: relative; }
.facts li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 25px; width: 12px; height: 12px; border-radius: 4px; background: var(--lime); box-shadow: 0 0 0 1.5px var(--ink); }
.facts b { font-weight: 700; }
.sheet { background: var(--bg); border-radius: 24px; padding: clamp(16px, 2vw, 26px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.xls { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; background: var(--lime); border-radius: 999px; padding: 7px 16px; }
.xls svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--panel); border-radius: 14px; overflow: hidden; }
.sheet th { font-size: 13px; font-weight: 700; color: var(--muted); text-align: start; padding: 11px 12px; background: #f8faf6; }
.sheet td { padding: 11px 12px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.sheet td:nth-child(n+3), .sheet th:nth-child(n+3) { text-align: center; }
.man { display: inline-block; font-size: 11px; font-weight: 700; background: var(--amber-soft); color: #8a5a00; border-radius: 999px; padding: 0 7px; margin-inline-start: 4px; }
.sheet figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
@media (max-width: 980px) { .att-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .sheet table { font-size: 13px; } .sheet th, .sheet td { padding: 9px 6px; } }

/* ---------- تقرير آخر اليوم ---------- */
.voice-head { max-width: 860px; }
.voice-head .lead { margin-top: 18px; }
.voice-grid { margin-top: 44px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px; align-items: stretch; }
.rec { background: var(--ink); color: #fff; border-radius: 28px; padding: 28px; display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; gap: 16px; }
.rec .t-lbl { color: #a9bab2; }
.mic { width: 104px; height: 104px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; transition: transform .2s var(--ease); position: relative; }
.mic svg { width: 44px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.mic:hover { transform: scale(1.05); }
.mic.live { background: #ff6b5e; }
.mic.live::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid #ff6b5e; animation: ring 1.2s infinite; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.wave { display: flex; align-items: center; gap: 4px; height: 40px; }
.wave i { width: 5px; height: 8px; border-radius: 3px; background: #3c5a4f; transition: height .15s; }
.wave.live i { background: var(--lime); animation: wv .9s infinite ease-in-out; }
.wave.live i:nth-child(3n) { animation-delay: -.3s; } .wave.live i:nth-child(3n+1) { animation-delay: -.6s; } .wave.live i:nth-child(4n) { animation-duration: .7s; }
@keyframes wv { 50% { height: 36px; } }
.rec-time { font-size: 22px; font-variant-numeric: tabular-nums; direction: ltr; }
.rec-say { font-size: 15px; color: #c7d4ce; min-height: 3.4em; max-width: 22em; }
.sum { background: var(--panel); border-radius: 28px; padding: clamp(20px, 2.6vw, 32px); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .4s; }
.sum-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.sum-top b { font-size: 19px; }
.sev { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 4px 12px; background: var(--stage); color: var(--muted); white-space: nowrap; }
.sum[data-state="done"] .sev { background: var(--red); color: #fff; }
.sum h3 { font-size: 14px; font-weight: 700; color: var(--muted); margin-top: 16px; }
.sum p, .sum li { font-size: 16px; }
.sum ul { list-style: none; margin-top: 4px; }
.issues li { display: flex; gap: 10px; align-items: baseline; padding: 5px 0; }
.cat { flex: none; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 10px; background: var(--amber-soft); color: #8a5a00; }
.cat.urgent { background: var(--red-soft); color: #a32424; }
.needs li { padding: 3px 0; padding-inline-start: 18px; position: relative; }
.needs li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--lime-deep); }
.sum-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.tk { font-weight: 700; color: var(--ink); }
/* قبل التسجيل: الملخص باهت، وبعده بيظهر سطر سطر */
.js .sum .sum-body > *, .js .sum .sum-foot { transition: opacity .5s var(--ease), transform .5s var(--ease), filter .5s; transition-delay: var(--sd, 0ms); }
.js .sum[data-state="empty"] .sum-body > *, .js .sum[data-state="empty"] .sum-foot { opacity: .25; filter: blur(3px); }
.js .sum[data-state="work"] .sum-body > *, .js .sum[data-state="work"] .sum-foot { opacity: .25; filter: blur(3px); }
.sum[data-state="done"] { box-shadow: inset 0 0 0 2px var(--ink); }
.chips { list-style: none; margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font-size: 14px; font-weight: 500; background: var(--panel); border-radius: 999px; padding: 8px 16px; box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 900px) { .voice-grid { grid-template-columns: 1fr; } }

/* ---------- الجدول ---------- */
.sched { background: var(--stage); padding-block: clamp(72px, 9vw, 130px); }
.sched-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.sched-text .lead { margin-top: 20px; }
.grid-card { background: var(--panel); border-radius: 26px; padding: clamp(16px, 2.2vw, 28px); box-shadow: 0 30px 60px -40px rgba(16, 33, 28, .4); }
.g-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.g-st { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 12px; background: var(--amber-soft); color: #8a5a00; }
.grid-card[data-state="pub"] .g-st { background: var(--ok-soft); color: var(--green); }
.g-scroll { overflow-x: auto; }
.g { width: 100%; border-collapse: separate; border-spacing: 4px; min-width: 520px; }
.g th { font-size: 13px; font-weight: 700; color: var(--muted); padding: 2px 0 6px; }
.g th[scope="row"] { text-align: start; color: var(--ink); font-size: 14px; padding-inline-end: 6px; white-space: nowrap; }
.g td { padding: 0; }
.g td button { width: 100%; height: 40px; border-radius: 10px; font-size: 13px; font-weight: 700; transition: background .2s, color .2s, transform .1s; }
.g td button:active { transform: scale(.93); }
.g .s-am { background: var(--ink); color: #fff; }
.g .s-pm { background: var(--lime); color: var(--ink); }
.g .s-off { background: var(--bg); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.g .s-empty { background: repeating-linear-gradient(-45deg, var(--bg) 0 6px, #e9ede6 6px 12px); color: var(--muted); }
.g td button.pulse { animation: bump .45s var(--ease); }
.g-warn { margin-top: 12px; font-size: 14px; font-weight: 500; min-height: 1.75em; color: #8a5a00; }
.g-warn.ok { color: var(--green); }
.g-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.g-hint { margin-top: 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 1180px) { .sched-grid { grid-template-columns: 1fr; } }

/* ---------- السلف والأجازات ---------- */
.money-grid { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card { background: var(--panel); border-radius: 28px; padding: clamp(22px, 3vw, 36px); }
.card .st { margin-top: 26px; }
.card p { margin-top: 10px; color: var(--ink-2); }
.card .note { font-size: 15px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); margin-top: 16px; }
.loan { background: var(--bg); border-radius: 20px; padding: 22px; }
.loan-num { display: block; font-size: 22px; font-weight: 900; margin-top: 4px; }
.bar-track { display: block; height: 10px; border-radius: 99px; background: var(--stage); margin-top: 14px; overflow: hidden; }
.bar-track i { display: block; height: 100%; background: var(--lime-deep); border-radius: 99px; }
.steps { list-style: none; margin-top: 16px; display: grid; gap: 6px; font-size: 14px; }
.steps li { display: flex; align-items: center; gap: 10px; }
.steps li::before { content: "✓"; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.cal { background: var(--bg); border-radius: 20px; padding: 18px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal span { aspect-ratio: 1; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cal .d-h { aspect-ratio: auto; font-size: 11px; color: var(--muted); font-weight: 500; }
.cal .d-work { background: var(--ink); color: #fff; }
.cal .d-off { background: var(--ok-soft); color: var(--green); }
.cal .d-abs { background: var(--red); color: #fff; }
.cal .d-sick { background: #f6c64f; color: var(--ink); }
.cal .d-fut { background: var(--panel); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend span::before { content: ""; width: 11px; height: 11px; border-radius: 3px; }
.l-work::before { background: var(--ink); } .l-off::before { background: var(--ok-soft); box-shadow: inset 0 0 0 1px var(--green); } .l-abs::before { background: var(--red); } .l-sick::before { background: #f6c64f; }
@media (max-width: 900px) { .money-grid { grid-template-columns: 1fr; } }

/* ---------- أول عميل ---------- */
.client { background: var(--ink); color: #fff; padding-block: clamp(80px, 10vw, 150px); position: relative; overflow: hidden; }
.client::before { content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(closest-side, rgba(197, 240, 74, .16), transparent); inset-inline-end: -160px; top: -200px; }
.client-grid { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(36px, 6vw, 100px); align-items: end; }
.client .display { margin-top: 22px; font-size: clamp(38px, 5.2vw, 80px); }
.client .lead { color: #c7d4ce; margin-top: 24px; }
.client .btn:hover { background: #fff; color: var(--ink); }
.client-small { margin-top: 18px; font-size: 14px; color: #93a69d; max-width: 34em; }
.stats { display: grid; gap: 0; }
.stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.stats dt { color: #c7d4ce; font-size: 16px; }
.stats dd { font-size: clamp(48px, 5vw, 72px); font-weight: 900; line-height: 1; color: var(--lime); }
@media (max-width: 900px) { .client-grid { grid-template-columns: 1fr; } }

/* ---------- لمين ---------- */
.fit-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.fit-list li { font-size: 18px; font-weight: 700; border-radius: 999px; padding: 8px 22px; background: var(--lime-soft); }
.fit-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.fit-grid > div { border-top: 2px solid var(--ink); padding-top: 20px; }
.fit-grid p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
@media (max-width: 1000px) { .fit-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fit-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- البداية بفرع ---------- */
.plan-list { list-style: none; counter-reset: s; margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.plan-list li { counter-increment: s; background: var(--panel); border-radius: 24px; padding: 28px; }
.plan-list li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: var(--lime); font-weight: 900; font-size: 20px; margin-bottom: 24px; }
.plan-list b { font-size: var(--t-st); }
.plan-list p { margin-top: 6px; color: var(--ink-2); }
@media (max-width: 860px) { .plan-list { grid-template-columns: 1fr; } }

/* ---------- الأسئلة ---------- */
.faq { max-width: 980px; }
.qs { margin-top: 32px; }
.qs details { border-top: 1px solid var(--line); }
.qs details:last-child { border-bottom: 1px solid var(--line); }
.qs summary { list-style: none; cursor: pointer; padding: 22px 0; padding-inline-end: 44px; font-size: 19px; font-weight: 700; position: relative; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%; background: var(--stage); display: grid; place-items: center; font-size: 20px; font-weight: 500; transition: rotate .25s var(--ease), background .2s; }
.qs details[open] summary::after { rotate: 45deg; background: var(--lime); }
.qs p { padding-bottom: 22px; max-width: 46em; color: var(--ink-2); }

/* ---------- الطلب ---------- */
.start { background: var(--lime); padding-block: clamp(80px, 10vw, 140px); }
.start-grid { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.start .lead { margin-top: 20px; color: var(--ink); }
.dialog { background: var(--panel); border-radius: 28px; padding: clamp(22px, 3vw, 34px); display: grid; gap: 18px; box-shadow: 0 40px 80px -40px rgba(16, 33, 28, .5); }
.dtitle { font-size: 22px; font-weight: 900; }
.dialog label, .dseg-wrap { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.dialog input[type="text"] { height: 54px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); padding: 0 16px; font-size: 17px; color: var(--ink); }
.dialog input[type="text"]:focus { outline: none; border-color: var(--ink); background: #fff; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; background: var(--bg); border-radius: 14px; padding: 5px; }
.seg button { flex: 1; min-height: 44px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; padding: 0 10px; }
.seg button.on { background: var(--ink); color: #fff; }
.dialog .btn { background: var(--ink); color: var(--lime); }
.dialog .btn:hover { background: var(--green); color: #fff; }
@media (max-width: 900px) { .start-grid { grid-template-columns: 1fr; } }

/* ---------- الفوتر ---------- */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 32px; padding-block: 40px; font-size: 14px; color: var(--muted); }
.foot .logo { font-size: 19px; color: var(--ink); }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- الظهور مع السكرول ---------- */
.js [data-r] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-r].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-r] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
