/* ===== رِزق — نظام تصميم الواجهة =====
   هوية: يشب وذهب (Jade & Teal) — محفّز، نظيف، عربي RTL. */
:root {
  --brand: #12876A; --brand-2: #17A17E; --brand-deep: #0C5E4C;
  --gold: #C99A22; --gold-2: #E3B84A;
  --ink: #10201B; --muted: #49564F; --brand-ink: #0E7258;
  --bg: #EEF7F4; --card: #ffffff; --line: #D3E6DE;
  --green: #12876A; --red: #d3384a;
  --shadow: 0 10px 30px rgba(12, 94, 76, .12);
  --radius: 18px;
  /* هوية «المخطوطة» الموحّدة — نفس ساحة التحكيم */
  --font-disp: "Reem Kufi", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(160deg, #E4F1EC 0%, #F4FAF8 40%, #EEF7F4 100%);
  min-height: 100vh;
}
.phone {
  max-width: 460px; margin: 0 auto; min-height: 100vh; position: relative; z-index: 1;
  padding: calc(1rem + env(safe-area-inset-top, 0px)) 1rem calc(7.6rem + env(safe-area-inset-bottom, 0px));
  overflow-x: clip;
}
/* خلفية إيحائية ثابتة: مشهد عملنا خلف التطبيق — خفيفة عموماً، وأوضح على شاشة الدخول */
.app-scene {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url("scene.svg") no-repeat center 42% / clamp(680px, 104vw, 1200px) auto;
  opacity: .09; transition: opacity .5s ease;
}
body.on-auth .app-scene { opacity: .26; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .85rem; } .xsmall { font-size: .75rem; }
.center { text-align: center; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.gap { gap: .5rem; }
h1, h2, h3, .brand, .topbar-brand span { font-family: var(--font-disp); }
h2 { margin: .4rem 0 .6rem; } h3 { font-size: 1.02rem; }
.screen { display: flex; flex-direction: column; gap: .85rem; animation: rise .25s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===== عناصر أساسية ===== */
input, select {
  width: 100%; padding: .9rem 1rem; font-family: inherit; font-size: 1rem;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
/* مربّع الاختيار ليس حقل نص: width:100% + padding يضيّق جملة الموافقة لعمود كلمة-كلمة في RTL */
input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: checkbox;
  appearance: checkbox;
  width: 1.2rem !important;
  max-width: 1.2rem;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 !important;
  margin: .2rem 0 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  flex: 0 0 1.2rem;
  align-self: flex-start;
  accent-color: var(--brand);
}
input:focus, select:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(23, 161, 126, .15); }
.field { position: relative; }
.fld-label { display: block; font-size: .82rem; font-weight: 700; color: var(--muted); margin: .55rem 0 .3rem; }
.fld-hint { font-size: .82rem; color: var(--muted); margin: 0 0 .7rem; line-height: 1.5; }
/* رقائق المجالات المفضّلة — انتقاء متعدّد بالنقر (aria-pressed) */
.interest-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; }
.interest-chip { font-family: inherit; font-weight: 700; font-size: .85rem; cursor: pointer;
  padding: .4rem .85rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--muted); transition: all .15s; }
.interest-chip:hover { border-color: var(--brand-2); color: var(--brand); }
.interest-chip.on { background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(12, 94, 76, .3); }
.btn {
  padding: .9rem 1.1rem; border: none; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-weight: 800; font-size: 1rem; transition: transform .06s ease, filter .15s;
}
.btn:active { transform: scale(.98); }
.btn-block { width: 100%; }
.btn-sm { padding: .55rem .95rem; font-size: .88rem; }
.btn-primary { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; box-shadow: 0 8px 20px rgba(12, 94, 76, .35); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #4a3200; box-shadow: 0 8px 18px rgba(255, 183, 3, .35); }
.btn-ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn-glass { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.link { background: none; border: none; color: var(--brand-ink); font-family: inherit; font-weight: 700; cursor: pointer; font-size: .9rem; padding: .4rem .3rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.05rem; box-shadow: var(--shadow); min-width: 0; }
.msg { min-height: 1.2rem; font-weight: 700; text-align: center; font-size: .9rem; }

/* ===== ⚖️ قيّم واربح (المهمة المزدوجة) — أزرار كبيرة بلمسة واحدة ===== */
.rate-prompt {
  background: linear-gradient(160deg, #EEF7F4, var(--card));
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 1.05rem 1.1rem; font-size: 1.12rem; font-weight: 800; line-height: 1.6;
  color: var(--ink); text-align: center; box-shadow: var(--shadow); margin-bottom: .2rem;
}
.rate-dialect {
  display: inline-block; font-size: .72rem; font-weight: 800; color: var(--brand);
  background: rgba(23, 161, 126, .1); border-radius: 999px; padding: .2rem .7rem; margin-bottom: .5rem;
}
.rate-opt {
  width: 100%; text-align: right; cursor: pointer; font-family: inherit;
  padding: 1.1rem 1.15rem; margin: .1rem 0; font-size: 1.05rem; font-weight: 700; line-height: 1.55;
  color: var(--ink); background: var(--card); border: 2px solid var(--line); border-radius: 16px;
  transition: border-color .15s, box-shadow .15s, transform .06s ease; position: relative;
}
.rate-opt:hover { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(23, 161, 126, .12); }
.rate-opt:active { transform: scale(.985); }
.rate-opt:disabled { opacity: .55; cursor: default; }
/* 🕌 رياض المتقين — يرث شكل خيارات التقييم، مع حسم ملوّن صادق بعد الإجابة */
.quiz-meta { margin-bottom: .3rem; }
.quiz-cat {
  display: inline-block; padding: .12rem .6rem; border-radius: 999px;
  font-size: .78rem; font-weight: 800; color: var(--brand-deep);
  background: rgba(23, 161, 126, .1); border: 1px solid rgba(23, 161, 126, .28);
}
.quiz-opt-correct { border-color: var(--green) !important; box-shadow: 0 0 0 3px rgba(18, 135, 106, .2); }
.quiz-opt-wrong { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(211, 56, 74, .16); }
.quiz-opt-correct:disabled, .quiz-opt-wrong:disabled { opacity: 1; } /* الحسم يبقى واضحاً لا باهتاً */
.quiz-result { border-top: 1.5px dashed var(--line); margin-top: .6rem; padding-top: .55rem; }
.quiz-verdict { font-weight: 800; margin-bottom: .2rem; }
.quiz-verdict.ok { color: var(--green); }
.quiz-verdict.err { color: var(--red); }
#quiz-next { margin-top: .55rem; }
/* ✍️ خانة الاقتراح الاختيارية — مطوية افتراضياً كي يبقى مسار النقرة الواحدة كما هو */
.rate-propose { margin: .35rem 0 .1rem; }
.rate-propose summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.rate-propose textarea {
  width: 100%; margin-top: .45rem; padding: .55rem .7rem; border: 1.5px solid var(--line);
  border-radius: 10px; font-family: inherit; font-size: .85rem; resize: vertical;
  background: #fff; color: var(--ink);
}
.rate-propose textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(23, 161, 126, .12); }
#rate-propose-count { text-align: left; margin: .15rem 0 0; }
.hint { font-size: .78rem; color: var(--muted); text-align: center; }

/* ===== شاشة الدخول ===== */
.auth-hero { text-align: center; padding-top: 1.6rem; }
.forgot-row { text-align: center; margin: .35rem 0 0; }
.logo-lg { width: 84px; height: 84px; border-radius: 22px; box-shadow: var(--shadow); }
.logo-md { width: 60px; height: 60px; border-radius: 16px; align-self: center; }
.logo-sm { width: 32px; height: 32px; border-radius: 9px; }
.brand { color: var(--brand); font-size: 2.1rem; font-weight: 800; margin-top: .5rem; }
.tagline { color: var(--muted); margin-top: .15rem; }
.seg { display: flex; background: #D3E6DE; border-radius: 999px; padding: .3rem; margin-top: .4rem; }
.seg-btn { flex: 1; border: none; background: transparent; padding: .78rem .65rem; border-radius: 999px; font-family: inherit; font-weight: 800; color: var(--muted); cursor: pointer; }
.seg-btn.active { background: #fff; color: var(--brand-ink); box-shadow: 0 3px 10px rgba(12, 94, 76,.12); }
.pass-field input { padding-inline-end: 3rem; }
.eye { position: absolute; inset-inline-end: .15rem; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 1.15rem; cursor: pointer; opacity: .7; width: 44px; height: 44px; display: grid; place-items: center; }
.trust-row { display: flex; justify-content: center; gap: 1.2rem; color: var(--muted); font-size: .78rem; margin-top: .4rem; }
.ticks { list-style: none; margin-top: .5rem; line-height: 2.05; }

/* ===== الهيدر العلوي ===== */
.topbar { display: flex; justify-content: space-between; align-items: center; padding: .1rem .1rem .2rem; }
.topbar-brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--brand); font-size: 1.15rem; }
.chip { padding: .3rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.chip-gold { background: linear-gradient(135deg, #fff3d6, #ffe9b3); color: #7a5200; border: 1px solid #ffd166; }

/* ===== بطاقة الرصيد (الهيرو) ===== */
.hero-card {
  background: linear-gradient(150deg, var(--brand-2) 0%, var(--brand) 55%, var(--brand-deep) 100%);
  border-radius: 24px; padding: 1.35rem 1.2rem; color: #fff;
  box-shadow: 0 16px 38px rgba(12, 94, 76, .35);
  position: relative; overflow: hidden;
}
.hero-card::after {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 220px; height: 220px;
  background: radial-gradient(closest-side, rgba(255,255,255,.16), transparent);
  border-radius: 50%;
}
.hero-label { opacity: .85; font-size: .9rem; }
.hero-amount { font-size: 2.7rem; font-weight: 800; letter-spacing: .5px; margin: .1rem 0 .35rem; }
.hero-chips { display: flex; gap: .6rem; flex-wrap: wrap; font-size: .8rem; opacity: .95; }
.hero-chips span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); padding: .3rem .65rem; border-radius: 999px; }
/* 🔥 صفّ ربح اليوم + السلسلة — على أرضية البطاقة الداكنة */
.today-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0 0 .6rem; font-size: .88rem; }
.today-row .today-earned b { font-size: 1rem; }
.streak-chip { display: inline-flex; align-items: center; gap: .25rem; background: rgba(227,184,74,.24); border: 1px solid rgba(227,184,74,.5); color: #ffe9b8; padding: .28rem .7rem; border-radius: 999px; font-weight: 700; font-size: .82rem; }
.streak-chip b { color: #fff; }
.hero-actions { display: flex; gap: .6rem; margin-top: 1rem; }
.hero-actions .btn { flex: 1; }
/* 🎉 نبضة احتفال عند بلوغ حدّ السحب (تُضاف/تُزال من JS، مرّة عند العبور) */
.hero-card.celebrate { animation: heroPulse .9s ease; }
@keyframes heroPulse {
  0% { transform: scale(1); box-shadow: 0 16px 38px rgba(12,94,76,.35); }
  35% { transform: scale(1.025); box-shadow: 0 20px 50px rgba(201,154,34,.55); }
  100% { transform: scale(1); box-shadow: 0 16px 38px rgba(12,94,76,.35); }
}
@media (prefers-reduced-motion: reduce) { .hero-card.celebrate { animation: none; } }

/* ===== المستوى ===== */
.level-card { display: flex; flex-direction: column; gap: .5rem; }
.progress { height: 10px; background: #E4F1EC; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transition: width .6s ease; }

/* ===== ✦ بطاقة «جودتك» — شفافية أداء العامل (أفضل ممارسة عالمية) ===== */
.quality-card { display: flex; flex-direction: column; gap: .6rem; border-inline-start: 4px solid var(--brand-2); transition: border-color .2s; }
.quality-card.qc-ok      { border-inline-start-color: var(--brand-2); }
.quality-card.qc-warning { border-inline-start-color: var(--gold); }
.quality-card.qc-paused  { border-inline-start-color: var(--red); }
.quality-card.qc-new     { border-inline-start-color: var(--line); }
.qc-top b { font-family: var(--font-disp); }
.qc-pill { padding: .28rem .7rem; border-radius: 999px; font-size: .76rem; font-weight: 800; }
.qc-pill-ok      { background: #dff3ec; color: var(--brand-deep); }
.qc-pill-warning { background: #fdf0d3; color: #7a5200; }
.qc-pill-paused  { background: #fbe0e4; color: #92132a; }
.qc-pill-new     { background: #eef2f1; color: var(--muted); }
.qc-meter-wrap { display: flex; align-items: center; gap: .6rem; }
.qc-meter { flex: 1; height: 9px; background: #E4F1EC; border-radius: 999px; overflow: hidden; }
.qc-meter-fill { height: 100%; width: 0%; border-radius: 999px; transition: width .6s ease; background: var(--brand-2); }
.qc-meter-fill.qc-fill-ok      { background: linear-gradient(90deg, var(--brand-2), var(--brand)); }
.qc-meter-fill.qc-fill-warning { background: linear-gradient(90deg, var(--gold-2), var(--gold)); }
.qc-meter-fill.qc-fill-paused  { background: linear-gradient(90deg, #e57387, var(--red)); }
.qc-accuracy { font-weight: 800; font-size: .95rem; min-width: 3ch; text-align: end; }

/* ===== المهام ===== */
.section-head { display: flex; justify-content: space-between; align-items: center; margin-top: .2rem; }
.offers { display: flex; flex-direction: column; gap: .55rem; }
.offer-row {
  display: flex; justify-content: space-between; align-items: center; gap: .7rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .85rem .95rem; box-shadow: var(--shadow);
}
.offer-title { font-weight: 800; font-size: .95rem; }
.offer-provider { font-size: .74rem; color: var(--muted); margin-top: .1rem; }
.offer-open {
  background: linear-gradient(135deg, #34d3a5, #159c6b); color: #fff; border: none;
  border-radius: 12px; padding: .7rem 1.25rem; font-family: inherit; font-weight: 800; cursor: pointer; white-space: nowrap;
  box-shadow: 0 6px 14px rgba(21,156,107,.3);
}
.offer-open:active { transform: scale(.97); }
.empty-box { text-align: center; padding: 1.4rem 1rem; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); background: rgba(255,255,255,.6); }

/* ===== السجل ===== */
.stat-row { display: flex; gap: .6rem; }
.stat { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .9rem; box-shadow: var(--shadow); }
.stat b { font-size: 1.15rem; color: var(--brand); }
.list { display: flex; flex-direction: column; gap: .45rem; }
.tx-row { display: flex; justify-content: space-between; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: .65rem .85rem; }
.tx-amount.plus { color: var(--green); font-weight: 800; }
.tx-amount.minus { color: var(--red); font-weight: 800; }
.tx-label { font-size: .88rem; font-weight: 700; }
.tx-sub { font-size: .72rem; color: var(--muted); }
.badge { padding: .22rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 800; }
.badge.requested { background: #fff3d6; color: #7a5200; }
.badge.approved { background: #e2ecff; color: #1c4ed8; }
.badge.paid { background: #dcf5ea; color: #0b7a52; }
.badge.rejected { background: #ffe1e5; color: #b3123a; }

/* ===== السحب ===== */
.withdraw-card { display: flex; flex-direction: column; gap: .6rem; }

/* ===== مفتاح المشاركة ===== */
.switch { position: relative; width: 52px; height: 30px; display: inline-block; flex-shrink: 0; }
.switch input { display: none; }
.switch span { position: absolute; inset: 0; background: #D3E6DE; border-radius: 999px; transition: .2s; }
.switch span::before { content: ""; position: absolute; width: 24px; height: 24px; right: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::before { transform: translateX(-22px); }

/* ===== شريط التنقّل السفلي ===== */
.bottomnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(460px, 100%); display: flex; align-items: flex-end; justify-content: space-around;
  background: rgba(255,255,255,.95); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); padding: .55rem .35rem calc(.5rem + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0; box-shadow: 0 -10px 30px rgba(12, 94, 76,.10); z-index: 50;
}
.nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: .22rem;
  background: none; border: none; font-family: inherit; font-size: .68rem; font-weight: 700;
  color: var(--muted); cursor: pointer; padding: .5rem 0 .2rem; position: relative;
  transition: color .2s ease; -webkit-tap-highlight-color: transparent;
}
/* مؤشّر التبويب النشط: شريط علوي صغير ينمو */
.nav-btn::before {
  content: ""; position: absolute; top: 0; width: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--brand); transition: width .25s var(--ease, ease);
}
.nav-btn.active::before { width: 26px; }
.nav-svg { width: 24px; height: 24px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.nav-lbl { line-height: 1; }
.nav-btn.active { color: var(--brand-ink); }
.nav-btn.active .nav-svg { transform: translateY(-2px); }
/* «المهام» = صانع الدخل: لمسة برند دائمة تهدي العين إليه حتى وهو غير نشط */
.nav-earn:not(.active) { color: var(--brand-ink); }
.nav-earn:not(.active) .nav-svg { fill: rgba(23,161,126,.14); }
.nav-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 10px; }

/* ===== توست ===== */
.toast {
  position: fixed; top: calc(1rem + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: 999px;
  font-weight: 700; font-size: .9rem; z-index: 99; box-shadow: 0 10px 26px rgba(0,0,0,.28);
  animation: pop .2s ease; max-width: 90%; text-align: center;
}
.toast.ok { background: var(--green); }
.toast.err { background: var(--red); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ===== سكيلتون (تحميل) ===== */
.skeleton {
  height: 58px; border-radius: var(--radius);
  background: linear-gradient(90deg, #E4F1EC 25%, #F4FAF8 50%, #E4F1EC 75%);
  background-size: 200% 100%; animation: shimmer 1.1s infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ===== لافتة نصائح القبول ===== */
.tips-banner {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  width: 100%; margin-bottom: .9rem; padding: .85rem 1rem;
  border: 1px solid #ffd166; border-radius: var(--radius);
  background: linear-gradient(135deg, #fff8e6, #fff1cc);
  color: #7a5200; font-weight: 800; font-size: .92rem; cursor: pointer;
  box-shadow: 0 6px 16px rgba(255, 183, 3, .18);
}
.tips-banner:active { transform: scale(.99); }
.tips-arrow { font-size: 1.3rem; line-height: 1; }

/* ===== نافذة النصائح المنبثقة ===== */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.modal.hidden { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(16, 32, 27, .55); backdrop-filter: blur(2px); }
.modal-sheet {
  position: relative; width: 100%; max-width: 460px;
  max-height: 88vh; overflow-y: auto;
  background: var(--card); border-radius: 22px 22px 0 0;
  padding: 1.1rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(12, 94, 76, .25);
  animation: sheet-up .28s cubic-bezier(.2, .8, .2, 1);
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.modal-head h3 { font-size: 1.15rem; }
.modal-x { background: #EEF7F4; border: none; border-radius: 999px; width: 34px; height: 34px; font-size: .95rem; cursor: pointer; color: var(--muted); }
.tips-list { list-style: none; margin: .9rem 0; display: grid; gap: .7rem; }
.tips-list li { display: flex; gap: .7rem; align-items: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: .7rem .8rem; }
.tip-ico { font-size: 1.3rem; line-height: 1.4; flex-shrink: 0; }
.tips-list li b { display: block; font-size: .95rem; margin-bottom: .15rem; }
.tips-list li p { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.tips-note {
  background: linear-gradient(135deg, #eafaf2, #e0f5ea); border: 1px solid #bfe9d3;
  color: #0f7a52; border-radius: 14px; padding: .8rem .9rem; font-size: .84rem;
  line-height: 1.6; margin-bottom: 1rem;
}

/* ===== تبويب الفرص (سلّم الدخل) ===== */
.opp-card { margin-bottom: .9rem; }
.opp-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; }
.opp-pay {
  flex: none; font-size: .72rem; font-weight: 800; color: var(--brand);
  background: #EEF7F4; border-radius: 999px; padding: .2rem .6rem; white-space: nowrap;
}
.opp-facts { margin: .5rem 0; padding: 0 1.1rem 0 0; font-size: .78rem; color: var(--muted); }
.opp-facts li { margin-bottom: .25rem; }
.opp-links { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .55rem; }
.opp-links a {
  font-size: .78rem; font-weight: 700; text-decoration: none; color: var(--brand);
  border: 1.5px solid var(--brand); border-radius: 999px; padding: .3rem .75rem;
}
.opp-links a:active { background: #EEF7F4; }

/* نموذج فريق التقييم */
.opp-team { margin-top: .8rem; padding-top: .8rem; border-top: 1px dashed var(--line); }
.opp-form { display: grid; gap: .45rem; margin-top: .5rem; }
.opp-form select,
.opp-form input[type="text"] {
  width: 100%; padding: .55rem .7rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .8rem; background: #fff; color: var(--ink);
}
.opp-pc,
.consent-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: .65rem;
  color: var(--muted);
  max-width: 100%;
  margin: .75rem 0 .55rem;
  text-align: start;
  line-height: 1.65;
  direction: rtl;
}
.consent-row span,
.opp-pc span {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.heritage-box {
  margin: .85rem 0 .35rem;
  padding: .75rem .85rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #F3FBF8;
}
.heritage-kicker { font-size: .72rem; font-weight: 800; color: var(--brand-deep); margin-bottom: .2rem; }
.heritage-kind { font-size: .92rem; font-weight: 800; color: var(--ink); margin-bottom: .25rem; line-height: 1.45; }
.heritage-gap { font-size: .82rem; font-weight: 700; color: var(--muted); line-height: 1.5; margin: .15rem 0 .2rem; }
.heritage-box .fld-hint { margin: 0; }
.demo-summary { margin: .15rem 0 .2rem; display: grid; gap: .55rem; }
.demo-sum-row { display: grid; gap: .1rem; }
.demo-sum-row dt { font-size: .75rem; font-weight: 800; color: var(--muted); }
.demo-sum-row dd { font-size: .98rem; font-weight: 800; color: var(--ink); line-height: 1.45; }
#pf-demo-cancel, #pf-id-cancel { margin-top: .55rem; }
#pf-demo-edit, #pf-id-edit { margin-top: .7rem; }

/* نموذج مزوّد الخدمة المحلي: وسائل الدفع (مربّعات اختيار متعددة) */
.cx-methods { display: grid; gap: .3rem; color: var(--ink); }
.cx-methods label { display: flex; align-items: center; gap: .4rem; }

/* اختبار التأهيل */
.opp-quiz { margin-top: .6rem; display: grid; gap: 1.05rem; }
.opp-quiz .q { display: grid; gap: .4rem; }
.opp-quiz .q > b { font-size: .84rem; color: var(--ink); line-height: 1.5; margin-bottom: .1rem; }
/* كل خيار بطاقة راديو مرتّبة: حدّ واضح، الراديو محاذٍ للأعلى (يصلح مع التفاف النصّ)،
   وحالتا تحويم واختيار — بدل خيارات مبعثرة بلا ترتيب */
.opp-quiz label {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .6rem .8rem; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--card); font-size: .82rem; color: var(--ink); line-height: 1.55;
  cursor: pointer; transition: border-color .18s, background .18s;
}
.opp-quiz label:hover { border-color: var(--brand-2); }
.opp-quiz input[type="radio"] {
  flex: none; width: 17px; height: 17px; margin-top: .12rem;
  accent-color: var(--brand); cursor: pointer;
}
.opp-quiz label:has(input:checked) { border-color: var(--brand); background: rgba(23,161,126,.07); font-weight: 600; }
.opp-quiz textarea {
  width: 100%; padding: .55rem .7rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .8rem; resize: vertical;
}

/* بطاقة «ادعُ واربح» (الإحالة) — نداء نموّ بارز بلون العلامة */
.ref-card {
  background: linear-gradient(150deg, #F3FBF8 0%, #E8F6F0 100%);
  border-color: var(--brand-2);
}
.ref-title { margin: 0 0 .35rem; color: var(--brand-deep); font-size: 1.15rem; }
#ref-link {
  direction: ltr; text-align: left; font-size: .82rem; color: var(--brand-deep);
  background: #fff; font-weight: 600;
}
.ref-stats { display: flex; gap: .5rem; margin-top: .85rem; }
.ref-stat {
  flex: 1; text-align: center; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: .55rem .3rem;
}
.ref-num { display: block; font-size: 1.15rem; font-weight: 800; color: var(--brand); }
.ref-lbl { display: block; font-size: .72rem; color: var(--muted); margin-top: .15rem; }

/* نافذة «لحظة أوّل ربح» — احتفال يُبرز الدعوة */
.fe-sheet { text-align: center; }
.fe-emoji { font-size: 2.6rem; line-height: 1; margin-bottom: .3rem; animation: fe-pop .45s ease; }
@keyframes fe-pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
#fe-link { direction: ltr; text-align: left; font-size: .82rem; color: var(--brand-deep); font-weight: 600; }

/* موبايل: حقول بحجم 16px — أقل من هيك سفاري iOS يعمل زوم قسري عند الكتابة */
@media (max-width: 768px) {
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px !important; }
}

/* لافتة «ثبّت رِزق كتطبيق» (سفاري iOS خارج وضع التطبيق فقط) */
.a2hs {
  position: fixed; inset-inline: .7rem; bottom: calc(4.6rem + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: .6rem; z-index: 90;
  background: var(--ink); color: #fff; border-radius: 14px; padding: .7rem .9rem;
  font-size: .82rem; box-shadow: 0 10px 26px rgba(0,0,0,.28);
}
.a2hs b { color: #ffd98a; }
.a2hs-x { margin-inline-start: auto; background: none; border: none; color: #fff; font-size: 1rem; cursor: pointer; opacity: .8; }
.empty-box .btn { margin-top: .65rem; }

/* 🏭 المصنع: صندوق التسليم الناتج */
.fx-out {
  white-space: pre-wrap; background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  padding: .85rem .95rem; font-size: .85rem; max-height: 340px; overflow: auto; margin-top: .6rem;
}
.opp-form textarea {
  width: 100%; padding: .55rem .7rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .8rem; resize: vertical; background: #fff; color: var(--ink);
}

/* 🗂 محور الفرص: شبكة أبواب — كل نوع بصفحته */
.dom-actions { display: grid; gap: .5rem; margin: .55rem 0 .7rem; }
.loop-strip {
  list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: .15rem 0 .55rem; padding: 0;
}
.loop-strip li {
  flex: 1 1 auto; min-width: 4.4rem; text-align: center; font-size: .68rem; font-weight: 800;
  color: var(--brand-deep); background: #E7F5F0; border: 1px solid var(--line); border-radius: 999px;
  padding: .35rem .45rem;
}
.hub-kicker { font-size: .72rem; font-weight: 800; color: var(--brand-deep); margin: .45rem 0 .3rem; }
.hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .2rem 0 .9rem; }
.hub-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .95rem .5rem .8rem; display: grid; gap: .15rem; justify-items: center; text-align: center;
  font-family: inherit; font-weight: 800; font-size: .92rem; color: var(--ink);
  cursor: pointer; box-shadow: var(--shadow); transition: transform .06s ease;
  text-decoration: none;
}
.hub-item:active { transform: scale(.97); }
.hub-other { margin: .2rem 0 1rem; }
.hub-other summary {
  cursor: pointer; font-size: .78rem; font-weight: 700; color: var(--muted);
  padding: .45rem .2rem; list-style-position: inside;
}
.hub-grid-other { margin-top: .5rem; }
.hub-ico { font-size: 1.7rem; line-height: 1.2; }
.hub-sub { font-size: .72rem; color: var(--muted); font-weight: 500; }
.subview { animation: rise .2s ease; }
.sub-back { display: inline-block; margin-bottom: .5rem; }

/* 💼 معالج خمسات */
.wizard { list-style: none; display: grid; gap: .7rem; margin-top: .5rem; }
.wizard .step { border: 1.5px dashed var(--line); border-radius: 12px; padding: .7rem .8rem; display: grid; gap: .45rem; }
.wizard .step.done { border-color: var(--green); background: #f3fbf7; }
.wizard .step label { display: flex; align-items: center; gap: .45rem; font-size: .9rem; cursor: pointer; }
.wizard .step .btn { justify-self: start; }

/* 📨 أزرار بطاقة الطلب (تأكيد/نزاع/استرجاع) */
.ex-actions { display: flex; flex-direction: column; gap: .35rem; }
.ex-actions .offer-open { padding: .5rem .8rem; font-size: .8rem; }
.offer-open.ex-danger { background: linear-gradient(135deg, #ef6b7d, var(--red)); box-shadow: 0 6px 14px rgba(211,56,74,.3); }

/* 💳 لوحة رسوم المزوّد */
#ex-fees { display: grid; gap: .3rem; margin-bottom: .6rem; }
.fee-row { display: flex; justify-content: space-between; font-size: .85rem; }
.fee-row.fee-owed { border-top: 1px dashed var(--line); padding-top: .3rem; margin-top: .1rem; }
.fee-row.fee-owed b { color: var(--brand); }

/* ===== الدخول بجوجل ===== */
.google-wrap { margin-top: 14px; }
.google-wrap.hidden { display: none; }
.or-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 4px 0 12px; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.google-btn { display: flex; justify-content: center; }

/* ===== ⚡ مهام رِزق أولاً (الرئيسية + المهام) ===== */
.rizq-tasks { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 4px; }
@media (min-width: 720px) { .rizq-tasks { grid-template-columns: 1fr 1fr; } }
.task-cta {
  display: block; width: 100%; text-align: right; text-decoration: none; color: inherit;
  cursor: pointer; border: 1px solid rgba(18, 135, 106, .18); font: inherit;
}
.task-cta:active { transform: scale(.985); }
.task-cta .chip { white-space: nowrap; }
.task-cta p { margin: 6px 0 0; }
.pre-wrap { white-space: pre-wrap; }


/* ===== 📸 ساهم بالبيانات: حملات الجمع (صور/صوت/فيديو/استبيان) ===== */
.col-meta { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .74rem; color: var(--muted); margin-bottom: .5rem; }
.col-prog-label { font-size: .72rem; color: var(--muted); margin-top: .3rem; }
.col-form { display: grid; gap: .55rem; margin-top: .7rem; padding-top: .7rem; border-top: 1px dashed var(--line); }
.col-slot { border: 1.5px dashed var(--line); border-radius: 12px; padding: .7rem .8rem; display: grid; gap: .45rem; background: rgba(255,255,255,.6); }
.col-slot-label { font-size: .78rem; font-weight: 700; color: var(--muted); }
.col-slot input[type="file"] { width: 100%; font-family: inherit; font-size: .78rem; color: var(--ink); }
.col-slot textarea {
  width: 100%; padding: .55rem .7rem; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .8rem; resize: vertical; background: #fff; color: var(--ink);
}
.col-preview { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); }
img.col-preview { max-height: 160px; object-fit: contain; background: #fff; }
audio.col-preview, video.col-preview { width: 100%; }
.col-substate { margin-top: .6rem; }
.col-note {
  font-size: .76rem; color: var(--ink); background: #fff8e6; border: 1px solid #f0dfb2;
  border-radius: 10px; padding: .45rem .6rem; margin-top: .4rem; white-space: pre-wrap;
}
.badge.col-pending { background: #fff3d6; color: #7a5200; }
.badge.col-approved { background: #dcf5ea; color: #0b7a52; }
.badge.col-partial { background: #e9f2d9; color: #4d6b12; }
.badge.col-rejected { background: #ffe1e5; color: #b3123a; }

/* ═══════════════════════════════════════════════════════════════════
   💻 طبقة الشاشات الكبيرة — إضافية بحتة: الموبايل (<768px) لا يتأثر بكسلاً واحداً.
   كل القواعد هنا داخل استعلامات min-width فقط.
   ═══════════════════════════════════════════════════════════════════ */

/* ── تابلت ≥768px: العمود يتوسّع إلى 640px ── */
@media (min-width: 768px) {
  .phone { max-width: 640px; }
  .bottomnav { width: min(640px, 100%); }
  .hub-grid { grid-template-columns: repeat(3, 1fr); }
  /* شاشات الدخول/الموافقة/كلمة المرور: عرض قراءة مريح في الوسط */
  #auth, #consent, #changepass { max-width: 500px; width: 100%; margin-inline: auto; }
  /* نافذة النصائح: ورقة عائمة في المنتصف بدل ورقة سفلية */
  .modal { align-items: center; padding: 1.5rem; }
  .modal-sheet { max-width: 560px; border-radius: 22px; }
}

/* ── حاسوب ≥1100px: العمود يتوسّع إلى 1020px والرئيسية شبكة عمودين ── */
@media (min-width: 1100px) {
  .phone { max-width: 1020px; padding: calc(1.4rem + env(safe-area-inset-top, 0px)) 1.4rem calc(7.2rem + env(safe-area-inset-bottom, 0px)); }
  /* الشريط السفلي: يبقى (اتساق مع الموبايل) — ممركز وبحدّ أقصى لطيف */
  .bottomnav { width: min(720px, 100%); }

  /* تباعد وأنفاس أوسع مع الحفاظ على لغة التصميم نفسها */
  .card { padding: 1.2rem 1.3rem; }
  .hero-card { padding: 1.6rem 1.5rem; }
  .hero-amount { font-size: 3rem; }

  /* الرئيسية: شبكة عمودين متوازنة — المحفظة مهيمنة والمستوى بجانبها */
  #view-home { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1rem; }
  #view-home > * { grid-column: 1 / -1; min-width: 0; }
  #view-home > .hero-card { grid-column: 1; grid-row: 1; }
  #view-home > .level-card { grid-column: 2; grid-row: 1; }
  /* بطاقة السحب: تمتد على العرض لكن بعرض نموذج مريح في الوسط */
  #view-home > .withdraw-card { max-width: 680px; width: 100%; justify-self: center; }
  /* عروض الشركاء (الرئيسية + المهام): صفّان جنباً إلى جنب بدل عمود طويل */
  #offers-preview, #offers-list { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }

  /* فرص: المحور 4 أعمدة، والصفحات الفرعية بعرض قراءة ممركز */
  .hub-grid { grid-template-columns: repeat(4, 1fr); }
  .subview { max-width: 720px; width: 100%; margin-inline: auto; }
  #view-opps > p, #opps-hub > p { max-width: 78ch; margin-inline: auto; }

  /* السجل + حسابي: طول السطر لا يتضخّم — عرض قراءة ممركز */
  #view-history, #view-profile { max-width: 720px; width: 100%; margin-inline: auto; }
}

/* ============================================================
   🗺️ رحلة رِزق — الواجهة الموجّهة (هدف السحب + المحطّات + المحطّة الحالية)
   ============================================================ */

/* شريط الهدف داخل بطاقة الرصيد — يحوّل الرصيد إلى «كم بقي لأول سحب» */
.goal-wrap { margin: .15rem 0 .7rem; }
.goal-bar { height: 8px; background: rgba(255,255,255,.22); border-radius: 999px; overflow: hidden; }
.goal-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  box-shadow: 0 0 8px rgba(227,184,74,.7); transition: width .7s ease;
}
.goal-text { font-size: .76rem; font-weight: 700; opacity: .95; margin-top: .35rem; }

/* المحطّات الثلاث */
.journey { display: flex; align-items: center; padding: .1rem .25rem; }
.jstep { display: flex; flex-direction: column; align-items: center; gap: .28rem; flex-shrink: 0; }
.js-dot {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem; background: #fff; color: var(--muted); border: 2px solid var(--line); transition: .3s;
}
.js-lbl { font-size: .72rem; font-weight: 700; color: var(--muted); transition: .3s; }
.jbar { flex: 1; height: 3px; background: var(--line); border-radius: 999px; margin: 0 .2rem 1.05rem; transition: .3s; }
.jbar.done { background: var(--brand); }
.jstep.done .js-dot { background: var(--brand); color: #fff; border-color: var(--brand); }
.jstep.done .js-lbl { color: var(--brand-ink); }
.jstep.active .js-dot {
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #4a3200; border-color: var(--gold);
  animation: jspulse 1.8s ease-in-out infinite;
}
.jstep.active .js-lbl { color: var(--brand-deep); font-weight: 800; }
@keyframes jspulse { 0%,100% { box-shadow: 0 0 0 4px rgba(227,184,74,.28); } 50% { box-shadow: 0 0 0 8px rgba(227,184,74,.06); } }

/* بطاقة المحطّة الحالية — إجراء واحد بارز */
.next-stop { text-align: center; display: flex; flex-direction: column; gap: .5rem; border: 1.5px solid var(--brand-2); box-shadow: 0 12px 30px rgba(18,135,106,.16); }
.ns-emoji { font-size: 2.2rem; line-height: 1; }
.ns-title { font-size: 1.1rem; color: var(--brand-deep); }
.next-stop .btn { margin-top: .2rem; }

/* طرق تربح بها — شبكة مدخل سريع */
.earn-ways { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.earn-way {
  display: flex; flex-direction: column; align-items: center; gap: .22rem; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: .9rem .6rem;
  font-family: inherit; cursor: pointer; box-shadow: var(--shadow); color: var(--ink);
  transition: transform .06s ease, border-color .15s;
}
.earn-way:active { transform: scale(.97); }
.earn-way:hover { border-color: var(--brand-2); }
.ew-ico { font-size: 1.7rem; line-height: 1.1; }
.ew-t { font-weight: 800; font-size: .9rem; }
.ew-s { font-size: .72rem; color: var(--brand-ink); font-weight: 700; }

/* زر السحب يتوهّج عند بلوغ الحدّ */
.btn-gold.glow { animation: goldglow 1.6s ease-in-out infinite; }
@keyframes goldglow { 0%,100% { box-shadow: 0 8px 18px rgba(255,183,3,.35); } 50% { box-shadow: 0 8px 28px rgba(255,183,3,.9); } }

/* نافذة الترحيب — خريطة الرحلة أوّل مرّة */
.wl-sheet { text-align: center; display: flex; flex-direction: column; gap: .5rem; }
.wl-sheet .logo-md { align-self: center; }
.wl-steps { list-style: none; text-align: right; display: flex; flex-direction: column; gap: .6rem; margin: .5rem 0; }
.wl-steps li { display: flex; gap: .7rem; align-items: flex-start; }
.wl-n {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff;
}
.wl-steps li b { font-size: .95rem; }
.wl-steps li p { margin-top: .1rem; }
.wl-dialect-box { text-align: right; margin: .2rem 0 .5rem; }

@media (min-width: 768px) { .earn-ways { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) {
  /* المحطّة الحالية بجانب الرصيد؛ المستوى والمحطّات بعرض كامل تحتهما */
  #view-home > .next-stop { grid-column: 2; grid-row: 1; }
  #view-home > .level-card { grid-column: 1 / -1; grid-row: auto; }
}

/* بطاقة هوية الحساب الحالي (صفحة الحساب) — تمييز واضح بأيّ مستخدم أنت داخل */
.acct-box { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; }
.acct-label { font-size: .82rem; color: var(--muted); font-weight: 700; }
.acct-email { font-weight: 800; word-break: break-all; color: var(--brand-deep); }

/* عدّاد كلمات حملة النصّ الأصيل */
.col-word-count { font-size: .78rem; color: var(--muted); text-align: left; margin-top: .25rem; }
.col-word-count.ok { color: var(--green); font-weight: 700; }

/* 📲 صفّ دعوة التثبيت (PWA) */
.install-row {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 14px 0; padding: 10px 12px;
  background: var(--card, #fff); border: 1px solid var(--line, #dbe7e1);
  border-radius: 12px; font-size: 13px;
}
.install-row span { flex: 1; }

/* 🏅 شبكة الإنجازات */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ach {
  border: 1px solid var(--line, #dbe7e1); border-radius: 10px;
  padding: 8px 10px; font-size: 12.5px; background: var(--card, #fff);
}
.ach b { display: block; font-size: 13px; margin-bottom: 2px; }
.ach .ach-desc { color: var(--muted, #5c6f66); }
.ach.locked { opacity: .55; filter: grayscale(.5); }
.ach .ach-progress { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted, #5c6f66); font-variant-numeric: tabular-nums; }

/* 📈 رسم آخر 30 يوماً — أعمدة بسيطة (CSSOM لا style attributes — CSP سليم) */
.prog-chart { display: flex; align-items: flex-end; gap: 2px; height: 72px; direction: ltr; }
.prog-bar { flex: 1; min-width: 2px; background: var(--brand, #12876A); border-radius: 2px 2px 0 0; opacity: .85; }
.prog-bar.zero { background: var(--line, #dbe7e1); height: 3px !important; }
.prog-legend { margin-top: 6px; }

/* 🌍 مبدّل اللغة */
.lang-row { text-align: center; margin: 0 0 6px; }
.lang-toggle {
  background: none; border: 1px solid var(--line, #dbe7e1); border-radius: 999px;
  padding: 9px 16px; min-height: 44px; font-size: 13px; color: var(--muted, #49564F); cursor: pointer;
}
.topbar-side .lang-toggle { padding: 6px 12px; min-height: 36px; font-weight: 700; }

/* 🎧 تذاكر الدعم */
.sup-list { margin-top: 10px; display: grid; gap: 8px; }
/* 💬 الدردشة الحيّة مع فريق البشر (تبويب حسابي) */
.chat-msgs { max-height: 260px; overflow-y: auto; display: grid; gap: 8px; align-content: start; margin-bottom: 10px; padding: 4px 2px; }
.chat-m { max-width: 85%; padding: 8px 12px; border-radius: 14px; font-size: .84rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-m.me { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; justify-self: end; }
.chat-m.team { background: var(--bg); border: 1px solid var(--line); justify-self: start; }
.chat-m small { display: block; opacity: .75; font-size: .68rem; margin-top: 3px; }
.chat-compose { display: flex; gap: 8px; align-items: stretch; }
.chat-compose input { flex: 1; min-width: 0; }
.chat-compose .btn { white-space: nowrap; }
#chat-end { margin-top: 8px; }

.sup-item { border: 1px solid var(--line, #dbe7e1); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.sup-item b { display: block; margin-bottom: 2px; }
.sup-status { font-size: 11.5px; border-radius: 999px; padding: 1px 8px; background: var(--card, #f2f8f5); border: 1px solid var(--line, #dbe7e1); }
.sup-reply { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: rgba(18,135,106,.08); }
.sup-reply small { color: var(--muted, #5c6f66); display: block; margin-top: 2px; }


/* 👀 زر المعاينة بلا تسجيل */
.demo-try-btn { margin-bottom: 10px; border: 1px dashed var(--brand, #12876A); color: var(--brand, #12876A); background: transparent; }

/* سطر القيم في نافذة الترحيب + إصلاح خط زر المعاينة */
.wl-values { margin: 2px 0 10px; }
.demo-try-btn { text-decoration: none; }

/* ♿ حلقة تركيز واضحة لكل عنصر تفاعلي — تنقّل كيبورد/قارئ شاشة */
button:focus-visible, a:focus-visible, select:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 8px; }

/* 🎧 مدخل الدعم من الرئيسية */
.support-entry { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start;
  border: 1.5px solid var(--line); cursor: pointer; font-family: inherit; font-size: .88rem;
  color: var(--ink); margin-top: .8rem; }
.support-entry-ico { font-size: 1.4rem; flex: none; }
.support-entry-txt { flex: 1; line-height: 1.6; }
.support-entry-go { color: var(--brand-ink); font-size: 1.3rem; font-weight: 800; flex: none; }

/* 🤖 المساعد العائم */
.asst-fab { position: fixed; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 14px; z-index: 40;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer; font-size: 1.5rem;
  background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff;
  box-shadow: 0 8px 22px rgba(12,94,76,.4); }
body.on-profile .asst-fab,
body.on-profile .asst-panel { display: none; }
.asst-panel { position: fixed; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 10px; z-index: 61;
  width: min(340px, calc(100vw - 20px)); max-height: min(480px, calc(100vh - 120px));
  background: var(--card); border: 1.5px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.asst-head { padding: 10px 14px; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; position: relative; }
.asst-head b { display: block; font-size: .95rem; }
.asst-sub { font-size: .7rem; opacity: .9; }
.asst-x { position: absolute; top: 8px; inset-inline-end: 8px; background: none; border: none; color: #fff; font-size: 1rem; cursor: pointer; width: 36px; height: 36px; }
.asst-msgs { flex: 1; overflow-y: auto; padding: 10px; display: grid; gap: 8px; align-content: start; min-height: 120px; }
.asst-m { max-width: 85%; padding: 8px 12px; border-radius: 14px; font-size: .84rem; line-height: 1.7; white-space: pre-wrap; }
.asst-m.bot { background: var(--bg); border: 1px solid var(--line); justify-self: start; }
.asst-m.me { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; justify-self: end; }
.asst-quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 10px 8px; }
.asst-chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 11px; font-size: .74rem; font-family: inherit; cursor: pointer; color: var(--ink); }
.asst-chip-human { color: var(--brand-ink); border-color: var(--brand-ink); font-weight: 700; }
.asst-inrow { display: flex; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--line); }
.asst-inrow input { flex: 1; border: 1.5px solid var(--line); border-radius: 10px; padding: .5rem .7rem; font-family: inherit; font-size: .86rem; background: var(--card); color: var(--ink); }
