:root {
  --bg: #f3f6f6; --card: #fff; --text: #17222b; --muted: #6a7682; --line: #e2e8ea;
  --primary: #0f766e; --primary-dark: #0b5953; --primary-soft: #dff3f0;
  --ok: #15803d; --ok-soft: #e5f5ea; --warn: #b45309; --warn-soft: #fdf0de; --bad: #b91c1c; --bad-soft: #fde8e8;
  --out: #9a3412; --out-soft: #ffedd5;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; }
.hidden { display: none !important; }
.sub { color: var(--muted); font-size: 13px; }
h2 { font-size: 18px; margin: 0; } h3 { font-size: 15px; margin: 0 0 8px; }
.screen { max-width: 480px; margin: 0 auto; min-height: 100%; }

/* ---------- الدخول ---------- */
.login { display: flex; flex-direction: column; background: var(--primary); }
.login-top { color: #fff; text-align: center; padding: 56px 24px 32px; }
.login-top h1 { margin: 12px 0 4px; font-size: 26px; }
.login-top p { margin: 0; opacity: .85; }
.logo { width: 68px; height: 68px; border-radius: 20px; background: #fff; color: var(--primary); display: grid; place-items: center; font-size: 34px; font-weight: 600; margin: 0 auto; }
.sheet { flex: 1; background: var(--bg); border-radius: 26px 26px 0 0; padding: 28px 22px; display: grid; gap: 14px; align-content: start; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input { font: inherit; font-size: 16px; color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; width: 100%; }
input:focus { outline: 3px solid var(--primary-soft); border-color: var(--primary); }
.btn { font: inherit; font-weight: 500; border: 0; border-radius: 12px; padding: 14px; width: 100%; cursor: pointer; background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.danger { color: var(--bad); margin-top: 10px; }
.btn.ghost { margin-top: 10px; }
.btn:disabled { opacity: .6; }
.error { color: var(--bad); font-size: 13px; min-height: 18px; }
.hint { color: var(--muted); font-size: 12px; line-height: 1.8; text-align: center; margin: 4px 0 0; }

/* ---------- التطبيق ---------- */
#appScreen { padding: 0 16px calc(84px + env(safe-area-inset-bottom)); }
.top { display: flex; justify-content: space-between; align-items: center; padding: calc(18px + env(safe-area-inset-top)) 2px 14px; }
.hello { font-size: 19px; font-weight: 600; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 600; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 12px; }
.clock-card { text-align: center; }
.clock { font-size: 44px; font-weight: 600; letter-spacing: 1px; direction: ltr; }

.loc-card { display: flex; align-items: center; gap: 14px; transition: background .3s, border-color .3s; }
.loc-card.ok { background: var(--ok-soft); border-color: #bfe5cb; }
.loc-card.out { background: var(--out-soft); border-color: #fbd3a5; }
.loc-card.bad { background: var(--bad-soft); border-color: #f6c5c5; }
.loc-title { font-weight: 600; }
.radar { position: relative; width: 54px; height: 54px; flex: none; }
.radar .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed currentColor; opacity: .5; }
.radar .dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: currentColor; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.radar::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid currentColor; animation: ping 1.8s infinite; }
@keyframes ping { from { transform: scale(.3); opacity: .8; } to { transform: scale(1.15); opacity: 0; } }
.loc-card { color: var(--muted); } .loc-card .loc-text { color: var(--text); }
.loc-card.ok { color: var(--ok); } .loc-card.out { color: var(--out); } .loc-card.bad { color: var(--bad); }

.punch { width: 100%; border: 0; border-radius: 22px; padding: 22px; font: inherit; font-size: 20px; font-weight: 600; color: #fff; background: var(--primary); display: flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; transition: transform .1s, background .2s; margin-top: 4px; }
.punch:active:not(:disabled) { transform: scale(.98); }
.punch.out { background: #c2410c; }
.punch:disabled { background: #b8c3c6; cursor: not-allowed; }
.punch.busy { opacity: .75; }
.punch-ico { display: grid; }
.msg { text-align: center; min-height: 22px; margin: 10px 0; font-size: 14px; }
.msg.ok { color: var(--ok); } .msg.err { color: var(--bad); }

.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.time-box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; text-align: center; }
.time-box .t { font-weight: 600; font-size: 17px; margin-top: 2px; }

.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 6px 0 12px; }
.row-between input { width: auto; padding: 8px 10px; font-size: 14px; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.summary div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; text-align: center; }
.summary b { display: block; font-size: 20px; }
.list { display: grid; gap: 8px; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.item .d { font-weight: 600; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.gray { background: #eef1f3; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.kv { display: grid; gap: 8px; margin-top: 10px; font-size: 14px; }
.kv div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
.form { display: grid; gap: 10px; }

.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); display: flex; justify-content: space-around; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); z-index: 10; }
.bottom-nav button { border: 0; background: none; font: inherit; font-size: 12px; color: var(--muted); display: grid; justify-items: center; gap: 2px; padding: 4px 6px; cursor: pointer; flex: 1; }
.bottom-nav button span { font-size: 20px; line-height: 1; }
.bottom-nav button.active { color: var(--primary); font-weight: 600; }

/* ---------- تفعيل البصمة ---------- */
.enroll { display: grid; place-items: center; padding: 24px 20px; min-height: 100vh; }
.enroll-box { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px 22px; text-align: center; display: grid; gap: 12px; }
.enroll-box h1 { font-size: 22px; margin: 4px 0 0; }
.enroll-box p { color: var(--muted); line-height: 1.8; margin: 0; }
.enroll-box ul { text-align: right; margin: 0; padding: 12px 28px 12px 12px; background: var(--primary-soft); border-radius: 14px; line-height: 2; font-size: 14px; color: var(--primary-dark); }
.face-ico { width: 104px; height: 104px; border-radius: 30px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin: 0 auto; }
.verified { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ok); }

.toast { position: fixed; top: 16px; left: 50%; transform: translate(-50%, -140%); background: var(--text); color: #fff; padding: 10px 18px; border-radius: 12px; transition: transform .25s; z-index: 50; max-width: 92vw; text-align: center; }
.toast.show { transform: translate(-50%, 0); }
.toast.err { background: var(--bad); }

/* ---------- الطلبات والراتب ---------- */
select { font: inherit; font-size: 16px; color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; width: 100%; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #e5eaec; border-radius: 14px; padding: 4px; margin: 6px 0 12px; }
.seg button { border: 0; background: none; font: inherit; padding: 10px; border-radius: 11px; color: var(--muted); cursor: pointer; }
.seg button.active { background: #fff; color: var(--text); font-weight: 600; }
.balance { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: 12px; }
.balance b { display: block; font-size: 20px; color: var(--primary); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: #e8efff; color: #1d4ed8; }
.req .act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.link-btn { border: 0; background: none; color: var(--bad); font: inherit; font-size: 12px; cursor: pointer; padding: 0; }
.slip { display: block; }
.slip summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; }
.slip summary::-webkit-details-marker { display: none; }
.slip .net { font-size: 18px; font-weight: 600; color: var(--primary); }
.slip .rows { margin-top: 10px; display: grid; gap: 6px; font-size: 14px; }
.slip .rows div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 4px; }
.slip .neg { color: var(--bad); } .slip .pos { color: var(--ok); }
.form { grid-template-columns: minmax(0, 1fr); }
.two > label, .form input, .form select { min-width: 0; }

/* ---------- التناسق على الكمبيوتر والتابلت ---------- */
.bottom-nav { max-width: 480px; margin: 0 auto; }
select, input, button { -webkit-appearance: none; appearance: none; }
input[type=checkbox] { -webkit-appearance: auto; appearance: auto; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: 18px 50%, 13px 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-left: 32px; }
@media (hover: hover) {
  .btn:hover:not(:disabled) { filter: brightness(.97); }
  .bottom-nav button:hover { color: var(--primary); }
  .item:hover { border-color: #cfd8db; }
}
@media (min-width: 600px) {
  body { background: radial-gradient(1200px 600px at 50% -10%, #d7ede9 0%, var(--bg) 60%); }
  .screen { min-height: 100vh; }
  #appScreen { background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgba(15, 50, 48, .08); padding-bottom: 110px; }
  .bottom-nav { bottom: 16px; left: 50%; right: auto; transform: translateX(-50%); width: min(448px, calc(100% - 32px));
    border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 30px rgba(15, 50, 48, .12); padding: 8px 0; }
  .login { border-radius: 0 0 0 0; min-height: 100vh; }
  .login-top { padding-top: 72px; }
  .sheet { border-radius: 26px 26px 0 0; }
  .enroll { min-height: 100vh; }
  .toast { top: 24px; }
}
@media (min-width: 1000px) {
  .screen { max-width: 520px; }
  .bottom-nav { width: 488px; }
  .clock { font-size: 52px; }
}
/* داخل نافذة التطبيق المثبّت على الكمبيوتر */
@media (display-mode: standalone) and (min-width: 600px) {
  body { background: var(--bg); }
}
.toast { visibility: hidden; opacity: 0; transition: transform .25s, opacity .25s, visibility .25s; }
.toast.show { visibility: visible; opacity: 1; }

/* ================= شاشة دخول الموظف ================= */
.elog { --deep: #0b3b37; --deep2: #072a27; --mint: #5eead4; --ease: cubic-bezier(.22,1,.36,1);
  background: linear-gradient(170deg, var(--deep), var(--deep2)); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.elog svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.elog-hero { position: relative; overflow: hidden; color: #fff; text-align: center; padding: calc(22px + env(safe-area-inset-top)) 20px 34px; display: grid; justify-items: center; gap: 10px; }
.elog-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 36px 36px; mask-image: radial-gradient(circle at 50% 40%, #000 15%, transparent 70%); -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 15%, transparent 70%); }
.elog-hero > :not(.elog-grid) { position: relative; }
.elog-brand { display: flex; align-items: center; gap: 10px; }
.elog-brand .logo { width: 38px; height: 38px; border-radius: 12px; font-size: 20px; margin: 0; background: var(--mint); color: var(--deep2); }
.elog-brand h1 { margin: 0; font: 700 21px 'Readex Pro', sans-serif; }
.elog-radar { width: 132px; height: 132px; position: relative; display: grid; place-items: center; margin: 6px 0 2px; }
.elog-radar .ring { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(94,234,212,.35); }
.elog-radar .r1 { inset: 0; } .elog-radar .r2 { inset: 26px; border-style: solid; border-color: rgba(94,234,212,.25); background: rgba(94,234,212,.06); }
.elog-radar .pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--mint); animation: eRadar 2.6s var(--ease) infinite; }
@keyframes eRadar { from { transform: scale(.25); opacity: .9; } to { transform: scale(1.1); opacity: 0; } }
.elog-radar .pin { width: 50px; height: 50px; border-radius: 16px; background: #fff; color: var(--deep); display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0,0,0,.45); animation: ePin 3s var(--ease) infinite alternate; }
.elog-radar .pin svg { width: 26px; height: 26px; }
@keyframes ePin { to { transform: translateY(-5px); } }
.elog-clock { display: grid; line-height: 1.2; }
.elog-clock b { font: 700 40px 'Readex Pro', sans-serif; direction: ltr; letter-spacing: .02em; }
.elog-clock small { color: rgba(255,255,255,.65); font-size: 13px; }
.elog-tag { margin: 4px 0 0; color: rgba(255,255,255,.85); font-size: 15px; }
.elog-chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.elog-chips li { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.9); }
.elog-chips svg { width: 15px; height: 15px; color: var(--mint); }

.elog-sheet { flex: 1; background: var(--bg); border-radius: 28px 28px 0 0; padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); gap: 14px; box-shadow: 0 -20px 40px -20px rgba(0,0,0,.35);
  animation: eSheet .6s var(--ease) both; }
@keyframes eSheet { from { transform: translateY(40px); opacity: 0; } }
.elog-head h2 { font: 700 21px 'Readex Pro', sans-serif; margin: 0 0 4px; }
.elog-head p { margin: 0; color: var(--muted); font-size: 13px; }
.elog-sheet label { font-weight: 600; color: var(--text); }
.efield { position: relative; display: flex; align-items: center; }
.efield > svg { position: absolute; inset-inline-start: 14px; color: #8a9593; pointer-events: none; }
.efield input { height: 52px; border-radius: 14px; border: 1.5px solid var(--line); padding-inline: 42px; font-weight: 500; transition: border-color .2s, box-shadow .2s; }
.efield input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15,118,110,.14); }
.efield:focus-within > svg { color: var(--primary); }
.efield input::placeholder { color: #b3bbb9; }
.eeye { position: absolute; inset-inline-end: 8px; width: 36px; height: 36px; border: 0; background: none; color: #8a9593; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.elog-submit { height: 54px; border-radius: 16px; font-size: 17px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--deep) !important; border-color: var(--deep) !important;
  box-shadow: 0 12px 24px -12px rgba(11,59,55,.7); transition: transform .2s var(--ease); }
.elog-submit:active { transform: scale(.98); }
.elog-submit:disabled { opacity: .7; }
.elog .btn.ghost { background: #fff; }
.elog .error:empty { display: none; }
.elog-help { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; font-size: 13px; color: var(--muted); }
.elog-help summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; }
.elog-help summary::after { content: '+'; color: var(--primary); font-size: 18px; line-height: 1; }
.elog-help[open] summary::after { content: '−'; }
.elog-help ol { margin: 0 0 12px; padding-inline-start: 18px; display: grid; gap: 6px; line-height: 1.7; }
.elog-privacy { text-align: center; font-size: 13px; color: var(--muted); text-decoration: none; }

@media (max-height: 700px) { .elog-radar, .elog-chips { display: none; } .elog-hero { padding-bottom: 26px; } }
@media (min-width: 600px) {
  .elog.screen { max-width: none; }
  .elog { flex-direction: row; background: linear-gradient(160deg, var(--deep), var(--deep2)); }
  .elog-hero { flex: 1.05 1 0; min-width: 0; align-content: center; gap: 14px; padding: 40px; }
  .elog-radar { width: 190px; height: 190px; } .elog-radar .r2 { inset: 38px; }
  .elog-radar .pin { width: 64px; height: 64px; border-radius: 20px; } .elog-radar .pin svg { width: 32px; height: 32px; }
  .elog-clock b { font-size: 56px; }
  .elog-tag { font-size: 18px; }
  .elog-sheet { flex: .95 1 0; min-width: 0; border-radius: 0; align-content: center; justify-content: center; grid-template-columns: min(400px, 100%); padding: 40px 32px; box-shadow: none; animation: none; }
  .elog-radar, .elog-chips { display: grid; }
  .elog-chips { display: flex; }
}
@media (min-width: 600px) and (max-width: 860px) {
  .elog { flex-direction: column; }
  .elog-hero { padding: 36px 24px 40px; }
  .elog-hero, .elog-sheet { flex: none; }
  .elog-sheet { flex: 1; border-radius: 28px 28px 0 0; padding: 32px 24px; grid-template-columns: min(440px, 100%); align-content: start; }
}
@media (prefers-reduced-motion: reduce) { .elog *, .elog { animation: none !important; } }

/* ================= واجهة التطبيق الداخلية (بنفس هوية الموقع: تركواز داكن + نعناعي + كهرماني) ================= */
:root { --deep: #0b3b37; --deep2: #072a27; --mint: #5eead4; --amber: #f59e0b; --ease: cubic-bezier(.22,1,.36,1);
  --bg: #f7f5f0; --line: #e7e3da; --shadow: 0 14px 34px -24px rgba(11,59,55,.45); }
h2, h3, .hello, .clock, .elog-head h2 { font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif; }
#appScreen { padding-top: 0; }

/* الرأس: شريط داكن بشبكة خفيفة، والساعة بطاقة تطفو فوقه */
.top { position: relative; overflow: hidden; display: grid; gap: 10px; margin: 0 -16px; color: #fff;
  padding: calc(16px + env(safe-area-inset-top)) 18px 58px; border-radius: 0 0 28px 28px;
  background: radial-gradient(circle at 0% 120%, rgba(245,158,11,.22), transparent 45%), radial-gradient(circle at 100% 0%, rgba(94,234,212,.22), transparent 50%), linear-gradient(160deg, var(--deep), var(--deep2)); }
.top-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); }
.top > :not(.top-grid) { position: relative; }
.top-brand { display: flex; align-items: center; gap: 10px; }
.top-brand .logo { width: 30px; height: 30px; border-radius: 9px; font-size: 16px; margin: 0; background: var(--mint); color: var(--deep2); font-weight: 700; }
.top-brand .sub { color: rgba(255,255,255,.7); }
.top-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hello { font-size: 22px; font-weight: 700; color: #fff; }
.avatar { width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2); font-weight: 700; transition: background .2s; }
.avatar:hover { background: rgba(255,255,255,.2); }

.card { border-radius: 20px; border-color: var(--line); box-shadow: var(--shadow); }
.clock-card { position: relative; margin-top: -42px; padding: 18px 16px 14px; }
.clock { font-weight: 700; color: var(--deep); font-size: 40px; line-height: 1.2; }
#shiftLine { display: inline-block; margin-top: 6px; padding: 3px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: 12.5px; font-weight: 500; }

.loc-card { border-radius: 20px; }
.loc-card.ok { background: linear-gradient(135deg, #e7f7ee, #fff); }
.loc-card.out { background: linear-gradient(135deg, #fff1e2, #fff); }
.loc-card.bad { background: linear-gradient(135deg, #fdeaea, #fff); }

.punch { position: relative; overflow: hidden; border-radius: 24px; padding: 24px; font-family: 'Readex Pro', sans-serif; font-size: 21px;
  background: linear-gradient(135deg, var(--primary), var(--deep)); box-shadow: 0 18px 34px -16px rgba(11,59,55,.75); transition: transform .15s var(--ease), box-shadow .3s, background .3s; }
.punch::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%); transform: translateX(120%); animation: punchShine 3.2s var(--ease) infinite; }
@keyframes punchShine { 60%, 100% { transform: translateX(-120%); } }
.punch-ico { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.14); place-items: center; }
.punch.out { background: linear-gradient(135deg, #ea580c, #9a3412); box-shadow: 0 18px 34px -16px rgba(154,52,18,.7); }
.punch:disabled { background: #c9d1cf; box-shadow: none; }
.punch:disabled::after { display: none; }

.push-cta { display: flex !important; align-items: center; gap: 12px; text-align: start; margin: 0 0 12px !important; padding: 12px 14px; border-radius: 18px;
  background: linear-gradient(135deg, #fff8eb, #fff) !important; border: 1px solid #f6dcaa !important; }
.push-cta[hidden] { display: none !important; }
.push-cta svg { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--amber); color: #fff; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; animation: bell 2.4s var(--ease) infinite; }
@keyframes bell { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(12deg); } 85% { transform: rotate(-10deg); } }
.push-cta span { display: grid; } .push-cta small { color: var(--muted); font-size: 12px; }

.times { gap: 10px; }
.time-box { border-radius: 16px; border-color: var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.time-box::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--primary); }
.time-box.out::before { background: #ea580c; } .time-box.work::before { background: var(--amber); }
.time-box .t { font-family: 'Readex Pro', sans-serif; color: var(--deep); }
.foot-link { display: block; text-align: center; margin: 16px 0 4px; font-size: 13px; color: var(--muted); text-decoration: none; }

/* الطلبات والسجل */
.tab:not(#tab-home) { padding-top: 16px; }
.seg { background: #ebe7de; border-radius: 16px; }
.seg button.active { box-shadow: 0 4px 12px -6px rgba(11,59,55,.35); color: var(--deep); }
.balance { border-radius: 20px; background: linear-gradient(135deg, var(--deep), #0f5e57); color: #fff; border: 0; }
.balance .sub { color: rgba(255,255,255,.7); }
.balance b { color: var(--mint); font-family: 'Readex Pro', sans-serif; font-size: 24px; }
.item, .summary div { border-radius: 16px; border-color: var(--line); box-shadow: 0 8px 22px -20px rgba(11,59,55,.5); }
input, select { border-radius: 14px; border-color: var(--line); }
input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15,118,110,.14); }
.btn { border-radius: 14px; }
.btn.primary { background: var(--deep); border-color: var(--deep); font-weight: 600; box-shadow: 0 12px 24px -14px rgba(11,59,55,.7); }

/* الشريط السفلي */
.bottom-nav { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top-color: var(--line); }
.bottom-nav button span { width: 46px; height: 30px; border-radius: 999px; display: grid; place-items: center; transition: background .25s var(--ease); }
.bottom-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav button.active { color: var(--deep); }
.bottom-nav button.active span { background: var(--primary-soft); }

/* تفعيل البصمة */
.enroll { background: linear-gradient(170deg, var(--deep), var(--deep2)); }
.enroll-box { border: 0; border-radius: 28px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.face-ico { background: linear-gradient(135deg, var(--primary-soft), #fff); box-shadow: inset 0 0 0 1px #cde9e4; }
.toast { border-radius: 14px; background: var(--deep2); box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); }

@media (min-width: 600px) {
  body { background: radial-gradient(1200px 600px at 50% -10%, #d9ece8 0%, var(--bg) 60%); }
  #appScreen { background: var(--bg); }
  .top { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .punch::after, .push-cta svg { animation: none; } }
#appScreen:has(#tab-home.hidden) .top { padding-bottom: 22px; }

/* ================= تفعيل الحساب من رابط واتساب ================= */
.invite .inv-badge { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; margin: 8px 0 2px;
  background: rgba(94,234,212,.12); border: 1px solid rgba(94,234,212,.3); color: var(--mint); animation: ePin 3s var(--ease) infinite alternate; }
.invite .inv-badge svg { width: 34px; height: 34px; }
.invite .elog-tag { font: 700 20px 'Readex Pro', sans-serif; color: #fff; }
.inv-company { margin: 0; color: rgba(255,255,255,.7); font-size: 14px; }
.inv-info { margin: 0; display: grid; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 14px; }
.inv-info:empty { display: none; }
.inv-info div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.inv-info div:last-child { border-bottom: 0; }
.inv-info dt { color: var(--muted); } .inv-info dd { margin: 0; font-weight: 600; text-align: end; }

/* ===== الوقت المتبقي على نهاية الدوام ===== */
.shift-left { margin: 4px 0 14px; padding: 16px 18px; border-radius: 20px; color: #fff; border: 0;
  background: linear-gradient(135deg, #0f766e, #0b3b37); box-shadow: 0 14px 30px -14px rgba(11, 59, 55, .6); }
.shift-left .sl-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.shift-left .sl-label { font-size: 13px; opacity: .85; }
.shift-left .sl-time { font: 700 34px/1.1 'Readex Pro', sans-serif; letter-spacing: 1px; direction: ltr; text-align: right; font-variant-numeric: tabular-nums; margin-top: 4px; }
.shift-left .sl-end { text-align: left; font-size: 12px; opacity: .9; display: grid; gap: 2px; }
.shift-left .sl-end b { font: 600 17px 'Readex Pro', sans-serif; }
.shift-left .sl-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .18); margin: 14px 0 8px; overflow: hidden; }
.shift-left .sl-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #5eead4, #a7f3d0); transition: width .8s ease; }
.shift-left .sl-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; opacity: .9; }
.shift-left.soon { background: linear-gradient(135deg, #b45309, #7c2d12); }
.shift-left.soon .sl-bar i { background: linear-gradient(90deg, #fbbf24, #fde68a); }
.shift-left.over { background: linear-gradient(135deg, #c2410c, #7c2d12); }
.shift-left.over .sl-bar i { background: #fde68a; }
.shift-left.over .sl-foot span:last-child { font-weight: 700; }
