/* ══════════════════════════════════════════════════════════
   OCEAN — COMPONENTS
══════════════════════════════════════════════════════════ */

/* ── App shell ── */
#app { min-height:100dvh; }
.screen { display:none; }
.screen.active { display:block; animation:fade .4s var(--ease); }

.appbar {
  position:sticky; top:0; z-index:40;
  display:flex; align-items:center; gap:var(--s3);
  padding:calc(env(safe-area-inset-top,0px) + 10px) var(--s4) 10px;
  background:var(--glass-bg);
  -webkit-backdrop-filter:var(--glass-blur); backdrop-filter:var(--glass-blur);
  border-bottom:1px solid var(--hairline-2);
}
.appbar h1 { font-size:22px; font-weight:900; }
.appbar .sub { font-size:12.5px; color:var(--text-2); font-weight:600; }
.appbar-btn{ width:38px; height:38px; border-radius:var(--r-pill); display:flex; align-items:center;
  justify-content:center; color:var(--text); background:var(--bg-2); transition:transform var(--t-fast) var(--spring), background var(--t-fast); }
.appbar-btn:active{ transform:scale(.9); }
.appbar-btn .ic{ width:20px; height:20px; }

.view { padding:var(--s4) var(--s4) calc(var(--nav-h) + var(--safe-b) + 90px);
        max-width:920px; margin-inline:auto; }
.view-pad-lg { padding-top:var(--s5); }

.section-title { font-family:var(--font-head); font-size:13px; font-weight:800; color:var(--text-2);
  text-transform:uppercase; letter-spacing:.04em; margin:var(--s6) var(--s1) var(--s3); }
.section-title:first-child { margin-top:var(--s2); }

/* ── Cards ── */
.card {
  background:var(--surface); border:1px solid var(--hairline-2);
  border-radius:var(--r-lg); box-shadow:var(--sh-1);
}
.card-pad { padding:var(--s4); }
.card-tap { transition:transform var(--t-fast) var(--spring), box-shadow var(--t); cursor:pointer; }
.card-tap:active { transform:scale(.985); box-shadow:var(--sh-2); }

/* list group (iOS inset grouped) */
.list { background:var(--surface); border:1px solid var(--hairline-2);
  border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--sh-1); }
.row-item { display:flex; align-items:center; gap:var(--s3); padding:14px var(--s4);
  border-bottom:1px solid var(--hairline-2); transition:background var(--t-fast); }
.row-item:last-child { border-bottom:none; }
.row-item.tap:active { background:var(--bg-2); }
.row-item .chev { color:var(--text-3); margin-inline-start:auto; }
.row-item .chev .ic{ width:18px; height:18px; }

/* ── Buttons ── */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:var(--s2);
  padding:13px var(--s5); border-radius:var(--r-md); font-family:var(--font-head);
  font-weight:800; font-size:15px; transition:transform var(--t-fast) var(--spring), filter var(--t-fast), background var(--t-fast); }
.btn:active { transform:scale(.96); }
.btn .ic { width:19px; height:19px; }
.btn-primary { background:var(--accent); color:#fff; box-shadow:0 2px 10px rgba(10,132,255,.32); }
.btn-primary:active { background:var(--accent-press); }
.btn-tonal { background:var(--accent-soft); color:var(--accent); }
.btn-grey { background:var(--bg-2); color:var(--text); }
.btn-danger { background:rgba(255,69,58,.14); color:var(--red); }
.btn-block { display:flex; width:100%; }
.btn:disabled { opacity:.5; pointer-events:none; }
.btn-lg { padding:16px var(--s6); font-size:16px; border-radius:var(--r-lg); }
.icon-btn{ width:40px;height:40px;border-radius:var(--r-pill);display:flex;align-items:center;justify-content:center;
  background:var(--bg-2); color:var(--text); transition:transform var(--t-fast) var(--spring); }
.icon-btn:active{ transform:scale(.88); }

/* ── Badges / chips / pills ── */
.badge { display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:var(--r-pill);
  font-size:12px; font-weight:800; font-family:var(--font-head); line-height:1; }
.badge .ic{ width:13px; height:13px; }
.b-green{ background:rgba(48,209,88,.15); color:var(--green);}
.b-amber{ background:rgba(255,159,10,.15); color:var(--amber);}
.b-red{ background:rgba(255,69,58,.15); color:var(--red);}
.b-blue{ background:var(--accent-soft); color:var(--accent);}
.b-grey{ background:var(--bg-2); color:var(--text-2);}
.b-purple{ background:rgba(191,90,242,.15); color:var(--purple);}

.chip { display:inline-flex; align-items:center; gap:6px; padding:8px 14px; border-radius:var(--r-pill);
  background:var(--bg-2); color:var(--text-2); font-weight:700; font-size:13.5px; font-family:var(--font-head);
  border:1.5px solid transparent; transition:all var(--t-fast) var(--spring); cursor:pointer; }
.chip .ic{ width:15px; height:15px; }
.chip:active{ transform:scale(.94); }
.chip.on { background:var(--accent-soft); color:var(--accent); border-color:transparent; }

/* segmented control */
.seg { display:flex; background:var(--bg-2); border-radius:var(--r-md); padding:3px; gap:2px; }
.seg button { flex:1; padding:9px 8px; border-radius:calc(var(--r-md) - 3px); font-family:var(--font-head);
  font-weight:800; font-size:13.5px; color:var(--text-2); transition:color var(--t-fast); position:relative; z-index:1; }
.seg button.on { color:var(--text); background:var(--surface); box-shadow:var(--sh-1); }

/* ── Avatars ── */
.avatar { position:relative; width:44px; height:44px; border-radius:var(--r-md); display:flex; align-items:center; justify-content:center;
  font-family:var(--font-head); font-weight:900; font-size:17px; color:#fff; flex:0 0 auto; overflow:hidden; }
/* الصورة تغطي الحرف؛ وإن فشل التحميل يظهر الحرف تلقائياً */
.avatar img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.avatar-sm{ width:34px; height:34px; font-size:14px; border-radius:var(--r-sm); }
.avatar-lg{ width:60px; height:60px; font-size:24px; border-radius:var(--r-lg); }

/* ── Stat tiles ── */
.stat-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:var(--s3); }
.stat { background:var(--surface); border:1px solid var(--hairline-2); border-radius:var(--r-lg);
  padding:var(--s4); box-shadow:var(--sh-1); }
.stat .k { display:flex; align-items:center; gap:6px; color:var(--text-2); font-size:12.5px; font-weight:700; }
.stat .k .ic{ width:15px; height:15px; }
.stat .v { font-family:var(--font-num); font-weight:800; font-size:26px; margin-top:6px; letter-spacing:-.02em; }
.stat .v small{ font-size:14px; color:var(--text-2); font-weight:700; }

/* ── Forms ── */
.field { margin-bottom:var(--s4); }
.field label { display:block; font-size:13px; font-weight:800; color:var(--text-2); margin:0 var(--s1) 7px;
  font-family:var(--font-head); }
.input, .textarea, select.input {
  width:100%; padding:14px var(--s4); background:var(--bg-2); border:1.5px solid transparent;
  border-radius:var(--r-md); font-size:15.5px; color:var(--text); transition:border var(--t-fast), background var(--t-fast); }
.input::placeholder,.textarea::placeholder { color:var(--text-3); }
.input:focus,.textarea:focus,select.input:focus { border-color:var(--accent); background:var(--surface); }
.textarea { min-height:96px; line-height:1.6; }
select.input{ -webkit-appearance:none; appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238A8A8E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:left 16px center; padding-inline-start:16px; }

/* ── Bottom nav (glass) ── */
.tabbar {
  position:fixed; inset-inline:0; bottom:0; z-index:50;
  padding:8px max(var(--s4), env(safe-area-inset-left)) calc(8px + var(--safe-b));
  display:flex; justify-content:center;
}
.tabbar-inner { display:flex; gap:2px; padding:6px; border-radius:var(--r-pill);
  background:var(--glass-bg); -webkit-backdrop-filter:var(--glass-blur); backdrop-filter:var(--glass-blur);
  border:1px solid var(--glass-brd); box-shadow:var(--sh-glass); }
.tab { position:relative; display:flex; flex-direction:column; align-items:center; gap:3px;
  padding:8px 15px; border-radius:var(--r-pill); color:var(--text-3); font-size:10.5px; font-weight:800;
  font-family:var(--font-head); transition:color var(--t-fast); }
.tab .ic { width:23px; height:23px; transition:transform var(--t) var(--spring); }
.tab.on { color:var(--accent); }
.tab.on .ic { transform:translateY(-1px); }
.tab.on::after{ content:""; position:absolute; bottom:2px; width:5px; height:5px; border-radius:99px; background:var(--accent); }

/* FAB */
.fab { position:fixed; inset-inline-end:18px; bottom:calc(var(--nav-h) + var(--safe-b) + 22px); z-index:49;
  width:58px; height:58px; border-radius:var(--r-lg); display:flex; align-items:center; justify-content:center;
  color:#fff; background:var(--accent-grad); box-shadow:0 10px 30px rgba(10,132,255,.45), inset 0 1px 0 rgba(255,255,255,.4);
  transition:transform var(--t) var(--spring); }
.fab .ic{ width:28px; height:28px; stroke-width:2.4; }
.fab:active{ transform:scale(.9) rotate(90deg); }
.fab[hidden]{ display:none; }   /* display:flex أعلاه يتغلّب على السمة hidden */

/* ── Sheet / modal (glass) ── */
.scrim { position:fixed; inset:0; z-index:60; background:rgba(0,0,0,.4); opacity:0; pointer-events:none;
  transition:opacity var(--t) var(--ease); -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px); }
.scrim.open { opacity:1; pointer-events:auto; }
.sheet { position:fixed; inset-inline:0; bottom:0; z-index:61; max-width:560px; margin-inline:auto;
  background:var(--surface); border-radius:var(--r-xl) var(--r-xl) 0 0;
  border-top:1px solid var(--glass-brd);
  box-shadow:0 -12px 50px rgba(0,0,0,.3);
  transform:translateY(101%); transition:transform var(--t) var(--spring);
  max-height:92dvh; display:flex; flex-direction:column; }
.sheet.open { transform:translateY(0); }
.sheet-grab { width:38px; height:5px; border-radius:99px; background:var(--hairline); margin:10px auto 4px; flex:0 0 auto; }
.sheet-head { display:flex; align-items:center; gap:var(--s3); padding:6px var(--s5) var(--s3); }
.sheet-head h2 { font-size:19px; font-weight:900; }
.sheet-body { padding:var(--s2) var(--s5) calc(var(--s6) + var(--safe-b)); overflow-y:auto; }
.sheet-x { margin-inline-start:auto; width:32px; height:32px; border-radius:99px; background:var(--bg-2);
  display:flex; align-items:center; justify-content:center; color:var(--text-2); }
.sheet-x .ic{ width:17px; height:17px; }

/* ── Toast ── */
.toast { position:fixed; inset-inline:0; bottom:calc(var(--nav-h) + var(--safe-b) + 84px); z-index:80;
  display:flex; justify-content:center; pointer-events:none; padding-inline:var(--s4); }
.toast-inner { display:flex; align-items:center; gap:10px; padding:12px 18px; border-radius:var(--r-pill);
  background:var(--glass-bg); -webkit-backdrop-filter:var(--glass-blur); backdrop-filter:var(--glass-blur);
  border:1px solid var(--glass-brd); box-shadow:var(--sh-3); color:var(--text); font-weight:700; font-size:14px;
  transform:translateY(20px) scale(.95); opacity:0; transition:all var(--t) var(--spring); max-width:92vw; }
.toast.show .toast-inner { transform:none; opacity:1; }
.toast .ic{ width:18px; height:18px; }
.toast.ok .ic{ color:var(--green);} .toast.err .ic{ color:var(--red);}

/* ── Empty state ── */
.empty { text-align:center; padding:var(--s12) var(--s6); color:var(--text-3); }
.empty .ic { width:44px; height:44px; stroke-width:1.5; margin-bottom:var(--s3); opacity:.6; }
.empty h3 { font-size:17px; color:var(--text-2); margin-bottom:6px; }
.empty p { font-size:13.5px; }

/* skeleton */
.skel { background:linear-gradient(100deg, var(--bg-2) 30%, var(--hairline-2) 50%, var(--bg-2) 70%);
  background-size:200% 100%; animation:shimmer 1.3s infinite; border-radius:var(--r-md); }
.page-loading { display:flex; justify-content:center; padding:var(--s16) 0; }

/* progress bar */
.pbar { height:7px; border-radius:99px; background:var(--bg-2); overflow:hidden; }
.pbar > i { display:block; height:100%; border-radius:99px; background:var(--accent-grad);
  transition:width var(--t-slow) var(--spring); }

/* ── Login ── */
#loginScreen { min-height:100dvh; display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:var(--s8) var(--s6); text-align:center; position:relative; overflow:hidden; }
.login-orb { position:absolute; width:520px; height:520px; border-radius:50%; filter:blur(80px); opacity:.28;
  background:var(--accent-grad); top:-160px; inset-inline-end:-120px; pointer-events:none; }
.login-orb.b{ background:linear-gradient(135deg,#BF5AF2,#0A84FF); top:auto; bottom:-200px; inset-inline-start:-140px; opacity:.20; }
.login-card { position:relative; width:100%; max-width:380px; }
.login-logo { width:84px; height:84px; border-radius:var(--r-xl); margin:0 auto var(--s5);
  display:flex; align-items:center; justify-content:center; background:var(--surface); box-shadow:var(--sh-2);
  border:1px solid var(--hairline-2); }
.login-logo svg{ width:52px; height:52px; }
.login-title { font-size:30px; font-weight:900; }
.login-sub { color:var(--text-2); font-size:14.5px; margin:8px 0 var(--s8); line-height:1.7; font-weight:600; }
.google-btn { display:flex; align-items:center; justify-content:center; gap:12px; width:100%;
  padding:16px var(--s5); border-radius:var(--r-lg); background:var(--surface); color:var(--text);
  border:1.5px solid var(--hairline); font-family:var(--font-head); font-weight:800; font-size:16px;
  box-shadow:var(--sh-2); transition:transform var(--t-fast) var(--spring), background var(--t-fast); }
.google-btn:active{ transform:scale(.97); }
.google-btn.is-loading{ color:transparent; position:relative; }
.google-btn.is-loading svg{ visibility:hidden; }
.google-btn.is-loading::after{ content:""; position:absolute; width:22px; height:22px; border-radius:50%;
  border:2.5px solid var(--hairline); border-top-color:var(--accent); animation:spin .7s linear infinite; }
.google-g{ width:22px; height:22px; }
.login-note{ margin-top:var(--s6); color:var(--text-3); font-size:12px; display:flex; align-items:center; gap:6px; justify-content:center; }
.login-note .ic{ width:14px; height:14px; }

/* full-screen status (loading / pending / rejected) */
.status-screen { min-height:100dvh; display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:var(--s8) var(--s6); text-align:center; gap:var(--s2); }
.status-screen .badge-ic{ width:76px; height:76px; border-radius:var(--r-xl); display:flex; align-items:center;
  justify-content:center; margin-bottom:var(--s3); }
.status-screen .badge-ic .ic{ width:36px; height:36px; }
.status-screen h2{ font-size:22px; font-weight:900; }
.status-screen p{ color:var(--text-2); font-size:14px; line-height:1.7; max-width:320px; }

/* ══════════════════════════════════════════════════════════
   نبض الشهر + طبقة المرح (التعليقات والبيض المخفي)
══════════════════════════════════════════════════════════ */

/* ── تعليق ساخر داخل لوحة الترحيب ── */
.hero .quip { position:relative; z-index:1; display:flex; align-items:flex-start; gap:9px; width:100%;
  margin-top:var(--s4); padding:11px 13px; border-radius:var(--r-md); text-align:start; color:#fff;
  background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.24);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  font-family:var(--font-body); font-size:13.5px; font-weight:600; line-height:1.65;
  transition:transform var(--t-fast) var(--spring), background var(--t-fast); }
.hero .quip:active { transform:scale(.985); background:rgba(255,255,255,.22); }
.hero .quip-ic { display:flex; opacity:.9; }
.hero .quip-ic .ic { width:16px; height:16px; margin-top:2px; }
.hero .quip-t { flex:1 1 auto; }
.hero .quip-t.flip { animation:quipin .32s var(--spring) both; }
@keyframes quipin { from{ opacity:0; transform:translateY(4px) } to{ opacity:1; transform:none } }
.hero .name .egg-star { display:inline-flex; vertical-align:middle; margin-inline-start:6px; opacity:.75; }
.hero .name .egg-star .ic { width:16px; height:16px; }

/* ── بطاقة نبض الشهر ── */
.pulse { margin-bottom:var(--s5); animation:rise .45s var(--spring) both; }
.pulse-head { display:flex; align-items:center; justify-content:space-between; gap:var(--s3); margin-bottom:var(--s4); }
.pulse-ic { width:36px; height:36px; border-radius:var(--r-sm); display:flex; align-items:center; justify-content:center;
  background:var(--accent-soft); color:var(--accent); flex:0 0 auto; }
.pulse-ic .ic { width:19px; height:19px; }
.pulse-t { font-family:var(--font-head); font-weight:900; font-size:16px; }
.pulse-s { color:var(--text-3); font-size:12px; font-weight:700; margin-top:1px; }

.pulse-main { display:flex; align-items:center; gap:var(--s4); }
.pulse-num { font-family:var(--font-num); font-weight:800; font-size:40px; line-height:1; letter-spacing:-.03em;
  flex:0 0 auto; cursor:pointer; transition:transform var(--t-fast) var(--spring); }
.pulse-num:active { transform:scale(.94); }
.pulse-num small { font-size:13px; color:var(--text-3); font-weight:700; margin-inline-start:6px; letter-spacing:0; }
.pulse-bar { position:relative; height:9px; border-radius:99px; background:var(--bg-2); overflow:hidden; }
.pulse-bar i { display:block; height:100%; border-radius:99px; background:var(--accent-grad);
  transition:width .8s var(--spring); }
.pulse-bar b { position:absolute; top:-3px; width:2px; height:15px; border-radius:2px;
  background:var(--text-3); opacity:.55; }
.pulse-note { margin-top:8px; font-size:12.5px; font-weight:700; color:var(--text-2); }
.pulse-note.up   { color:var(--green); }
.pulse-note.down { color:var(--amber); }

.pulse-mini { display:grid; grid-template-columns:repeat(3,1fr); gap:var(--s2); margin-top:var(--s5);
  padding-top:var(--s4); border-top:1px solid var(--hairline-2); text-align:center; }
.pulse-mini span { display:block; font-family:var(--font-num); font-weight:800; font-size:19px; letter-spacing:-.02em; }
.pulse-mini em { display:block; font-style:normal; margin-top:2px; color:var(--text-3); font-size:11.5px; font-weight:700; }

.pulse-stages { margin-top:var(--s4); display:flex; flex-direction:column; gap:9px; }
.sbar { display:flex; align-items:center; gap:var(--s3); }
.sbar-l { display:flex; align-items:center; gap:6px; width:74px; flex:0 0 auto;
  font-size:12.5px; font-weight:700; color:var(--text-2); }
.sbar-l .ic { width:14px; height:14px; }
.sbar-t { flex:1 1 auto; height:6px; border-radius:99px; background:var(--bg-2); overflow:hidden; }
.sbar-t b { display:block; height:100%; border-radius:99px; background:var(--accent); opacity:.85;
  transition:width .8s var(--spring); }
.sbar em { font-style:normal; font-size:12px; font-weight:700; color:var(--text-3); min-width:44px; text-align:end; }

.pulse-foot { margin-top:var(--s4); padding-top:var(--s3); border-top:1px solid var(--hairline-2);
  display:flex; align-items:center; justify-content:space-between; gap:var(--s2); flex-wrap:wrap;
  color:var(--text-3); font-size:11.5px; font-weight:700; }
.pulse-star { display:inline-flex; align-items:center; gap:5px; color:var(--accent); }
.pulse-star .ic { width:13px; height:13px; }

.pulse-empty { display:flex; align-items:center; gap:10px; color:var(--text-3); font-size:13px; font-weight:700; }
.pulse-empty .ic { width:18px; height:18px; }

/* الوضع الصادق (بيضة مخفية) */
.pulse.honest { box-shadow:0 0 0 1.5px var(--accent) inset, var(--sh-2); }
.pulse.honest .pulse-mini em { color:var(--accent); }

/* ── وضع المحيط (بيضة مخفية): فقاعات صاعدة + موجة ── */
.ocean-egg { position:fixed; inset:0; z-index:200; pointer-events:none; overflow:hidden; }
.ocean-egg i { position:absolute; bottom:-40px; left:var(--x);
  width:calc(9px * var(--s)); height:calc(9px * var(--s)); border-radius:50%;
  background:radial-gradient(circle at 32% 30%, rgba(255,255,255,.95), rgba(52,198,255,.4) 60%, rgba(10,132,255,.12));
  border:1px solid rgba(255,255,255,.5);
  animation:eggrise var(--d) var(--ease) var(--dl) forwards; }
@keyframes eggrise {
  0%   { transform:translateY(0) scale(.5); opacity:0 }
  12%  { opacity:1 }
  100% { transform:translateY(-108vh) scale(1.15); opacity:0 }
}
.ocean-egg-wave { position:absolute; inset:0;
  background:linear-gradient(0deg, rgba(10,132,255,.30), rgba(52,198,255,.10) 32%, transparent 55%);
  animation:eggwave 2.8s var(--ease) forwards; }
@keyframes eggwave {
  0%   { opacity:0; transform:translateY(35%) }
  22%  { opacity:1; transform:none }
  100% { opacity:0; transform:translateY(-12%) }
}

/* ══════════════════════════════════════════════════════════
   الأولوية — أقسام وصفوف مميّزة في قائمة المهام
══════════════════════════════════════════════════════════ */
.section-title.st-pri1, .section-title.st-pri2 {
  display:flex; align-items:center; gap:6px; text-transform:none; letter-spacing:0; }
.section-title.st-pri1 { color:var(--accent); }
.section-title.st-pri2 { color:var(--text-2); }
.section-title.st-pri1 .ic, .section-title.st-pri2 .ic { width:15px; height:15px; }

/* ١) مرفوعة يدوياً — تمييز كامل */
.row-item.row-pri1 { position:relative; background:var(--accent-soft); }
.row-item.row-pri1::before { content:""; position:absolute; inset-block:0; inset-inline-start:0;
  width:3px; background:var(--accent); }
.row-item.row-pri1.tap:active { background:var(--accent-soft); filter:brightness(.97); }
/* ٢) عميل ذو أولوية — إشارة أخف، بلا خلفية */
.row-item.row-pri2 { position:relative; }
.row-item.row-pri2::before { content:""; position:absolute; inset-block:0; inset-inline-start:0;
  width:3px; background:var(--accent); opacity:.4; }

/* زر أيقونة في وضع «مفعّل» (أولوية العميل) */
.icon-btn.on { background:var(--accent-soft); color:var(--accent); }

/* ══════════════════════════════════════════════════════════
   الصور — زر تغيير الصورة (المستخدم والعميل)
══════════════════════════════════════════════════════════ */
.avatar-xl { width:96px; height:96px; font-size:36px; border-radius:var(--r-xl); }
.avatar-edit { position:relative; display:inline-flex; border-radius:var(--r-lg);
  transition:transform var(--t-fast) var(--spring); }
.avatar-edit:active { transform:scale(.94); }
.avatar-edit:disabled { opacity:.55; pointer-events:none; }
.avatar-edit-ic { position:absolute; inset-block-end:-4px; inset-inline-end:-4px;
  width:26px; height:26px; border-radius:var(--r-pill); display:flex; align-items:center; justify-content:center;
  background:var(--accent); color:#fff; border:2.5px solid var(--surface); box-shadow:var(--sh-1); }
.avatar-edit-ic .ic { width:13px; height:13px; }
/* أثناء الرفع */
.avatar-edit.busy { pointer-events:none; }
.avatar-edit.busy .avatar { filter:brightness(.6); }
.avatar-edit.busy::after { content:""; position:absolute; inset:0; margin:auto; width:24px; height:24px;
  border-radius:50%; border:2.5px solid rgba(255,255,255,.35); border-top-color:#fff;
  animation:spin .7s linear infinite; }

/* ══════════════════════════════════════════════════════════
   خط البحر — موجة متحركة تُظهر نسبة إنجاز الشهر
══════════════════════════════════════════════════════════ */
.wave-line { position:relative; height:22px; overflow:hidden; }
.wave-line .wave-bg, .wave-line .wave-fg { position:absolute; inset:0; overflow:hidden; }
/* القناع ثابت على الغلاف، بينما تنجرف الموجات داخله */
.wave-line .wave-fg {
  -webkit-mask-image: linear-gradient(to left, #000 var(--pct), transparent var(--pct));
          mask-image: linear-gradient(to left, #000 var(--pct), transparent var(--pct));
}
.wave-line .wv { position:absolute; inset-block:0; inset-inline-start:0; width:200%; height:100%; }
.wave-line .wv path { fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round;
  vector-effect:non-scaling-stroke; }
.wave-line .wv-b { color:var(--text-3); opacity:.25; animation:wavedrift 13s linear infinite; }
.wave-line .wv-2 { color:var(--accent); opacity:.4;  animation:wavedrift 11s linear infinite reverse; }
.wave-line .wv-1 { color:var(--accent); opacity:.95; animation:wavedrift 7s  linear infinite; }
@keyframes wavedrift { from { transform:translateX(0) } to { transform:translateX(-50%) } }

.wave-head { margin:2px 0 var(--s4); }
.wave-head .cap { display:flex; align-items:center; justify-content:space-between;
  margin-top:2px; color:var(--text-3); font-size:11.5px; font-weight:700; }
.wave-head .cap b { color:var(--accent); font-family:var(--font-num); }
.empty-wave { width:min(220px, 70%); margin:14px auto 0; opacity:.9; }
/* تلميح المبلغ تحت الحقل */
.fld-hint { margin:7px var(--s1) 0; font-size:11.5px; font-weight:800; color:var(--accent);
  font-family:var(--font-head); min-height:14px; }
