@charset "UTF-8";
/* ═══════════════════════════════════════════════════════════════════════
   مُونَتْنا — لوحات التحكّم وصناديق الدخول
   حسابي (الزبون) · لوحة التاجر · لوحة الإدارة

   نفس رموز style.css — ولا لون ولا خط جديد. أزرار كبيرة (٤٤px+)
   لأن كتير من التجّار والزباين بيستعملوا الموقع من التلفون.
   ═══════════════════════════════════════════════════════════════════════ */

.muted { color: var(--muted); }
.small { font-size: var(--t-xs); }
.ltr   { direction: ltr; unicode-bidi: embed; }
.nowrap { white-space: nowrap; }

/* ── صندوق الدخول ─────────────────────────────────────────────────── */
.auth { max-width: 500px; margin: 0 auto; }
.auth__head { text-align: center; margin-bottom: var(--s4); }
.auth__ico {
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto var(--s3);
  background: var(--green-soft); color: var(--green-deep);
}
.auth__ico svg { width: 38px; height: 38px; }
.auth[data-auth="seller"] .auth__ico { background: var(--red-soft); color: var(--red); }
.auth[data-auth="admin"]  .auth__ico { background: #ECE6F5; color: #4B3778; }
.auth__head h1 { font-size: var(--t-xl); margin-bottom: .3rem; }
.auth__head p  { color: var(--muted); }

.auth__tabs, .seg {
  display: flex; background: var(--paper-2); border-radius: var(--r-pill);
  padding: 4px; margin-bottom: var(--s3); gap: 4px;
}
.auth__tabs button, .seg button {
  flex: 1; min-height: 48px; border-radius: var(--r-pill);
  font-weight: 800; color: var(--muted);
}
.auth__tabs button.on, .seg button.on { background: var(--white); color: var(--ink); box-shadow: var(--sh-1); }

.auth__msg { border-radius: var(--r-sm); padding: .8rem 1rem; font-size: var(--t-sm); margin-bottom: var(--s3); line-height: 1.7; }
.auth__msg--err { background: var(--red-soft); color: var(--red-deep); }
.auth__msg--ok  { background: var(--ok-bg); color: var(--ok); }
.auth__msg a { font-weight: 800; text-decoration: underline; }

.auth__alt { text-align: center; margin-top: var(--s3); font-size: var(--t-sm); color: var(--muted); }
.auth__alt a, .linkbtn { color: var(--green-deep); font-weight: 800; text-decoration: underline; }
.linkbtn { background: none; border: 0; cursor: pointer; font-size: var(--t-sm); min-height: 40px; }
.auth form .btn--full { margin-top: .4rem; }
.auth .form-foot { display: flex; justify-content: center; margin-top: var(--s2); }

.code-input {
  direction: ltr; text-align: center; letter-spacing: .5em;
  font-size: 1.7rem !important; font-weight: 800; font-family: ui-monospace, monospace;
}

/* ── تخطيط اللوحة ─────────────────────────────────────────────────── */
.dash { display: grid; grid-template-columns: 250px 1fr; gap: var(--s4); align-items: start; }
.dash__nav {
  position: sticky; top: 90px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s2); display: flex; flex-direction: column; gap: .2rem;
  box-shadow: var(--sh-1);
}
.dash__who { padding: .4rem .8rem .8rem; border-bottom: 1px solid var(--line); margin-bottom: .4rem; }
.dash__who b { display: block; font-family: var(--f-head); font-size: var(--t-md); }
.dash__who span { color: var(--muted); font-size: var(--t-xs); }
.dash__nav a, .dash__nav button {
  display: flex; align-items: center; gap: .65rem; width: 100%;
  min-height: 50px; padding: .5rem .9rem; border-radius: var(--r-sm);
  font-weight: 700; color: var(--ink-2); text-align: start;
}
.dash__nav a:hover, .dash__nav button:hover { background: var(--paper); }
.dash__nav .is-on { background: var(--red-soft); color: var(--red-deep); }
.dash__nav svg { width: 20px; height: 20px; flex: none; }
.dash__nav .dot {
  margin-inline-start: auto; background: var(--red); color: #fff;
  border-radius: var(--r-pill); font-size: .75rem; padding: 0 .5rem; min-width: 22px; text-align: center;
}
.dash__nav .dash__out { color: var(--muted); margin-top: .4rem; border-top: 1px solid var(--line); border-radius: 0; }
.dash__main { min-width: 0; }
.dash__view[hidden] { display: none !important; }
.dash__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s3);
}
.dash__head h1, .dash__head h2 { font-size: var(--t-xl); line-height: 1.2; }
.dash__head p { color: var(--muted); margin-top: .2rem; }

@media (max-width: 920px) {
  .dash { grid-template-columns: 1fr; gap: var(--s3); }
  .dash__nav {
    position: static; flex-direction: row; overflow-x: auto; padding: .35rem;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .dash__nav::-webkit-scrollbar { display: none; }
  .dash__who { display: none; }
  .dash__nav a, .dash__nav button { white-space: nowrap; width: auto; min-height: 46px; }
  .dash__nav .dash__out { border-top: 0; margin-top: 0; }
}

/* ── الأرقام ──────────────────────────────────────────────────────── */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; margin-bottom: var(--s4); }
.kpi {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s3); display: block; color: inherit;
}
a.kpi:hover { box-shadow: var(--sh-2); }
.kpi b { display: block; font-family: var(--f-head); font-weight: 900; font-size: 1.8rem; line-height: 1.1; }
.kpi span { color: var(--muted); font-size: var(--t-xs); font-weight: 700; }
.kpi--hot  { border-color: var(--red);  background: var(--red-soft); }
.kpi--hot b { color: var(--red-deep); }
.kpi--ok   { border-color: var(--ok);   background: var(--ok-bg); }
.kpi--warn { border-color: var(--warn); background: var(--warn-bg); }

/* ── لوحات ─────────────────────────────────────────────────────────── */
.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s4); margin-bottom: var(--s3); box-shadow: var(--sh-1);
}
.panel > h2, .panel > h3 { font-size: var(--t-lg); margin-bottom: .3rem; }
.panel > h3 { font-size: var(--t-md); }
.panel > p.muted { margin-bottom: var(--s3); }
.panel--warn { border: 2px solid var(--warn); }
.panel--danger { border: 2px solid var(--red); }
.panel--info { border-inline-start: 4px solid var(--info); }

.dash .dtable th, .dash .dtable td { padding: .7rem .8rem; vertical-align: top; }
.dash .dtable td .small { display: block; }
.dash .table-scroll { margin-bottom: var(--s3); }
.empty-row { text-align: center; color: var(--muted); padding: var(--s4) !important; }

.row-actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.btn--xs { min-height: 38px; padding: .3rem .8rem; font-size: var(--t-xs); }
.btn--danger { background: var(--white); color: var(--red); border-color: var(--red); }
.btn--danger:hover { background: var(--red); color: #fff; }

.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: var(--s3); align-items: center; }
.filters input, .filters select {
  min-height: 46px; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: .5rem .8rem; background: var(--white); font: inherit;
}
.filters input[type="search"] { flex: 1; min-width: 200px; }

.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip {
  min-height: 40px; padding: .3rem .95rem; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--white); font-weight: 700; font-size: var(--t-sm);
}
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── شارات الحالة ──────────────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap;
  border-radius: var(--r-pill); padding: .15rem .7rem; font-size: .8rem; font-weight: 800;
  background: #EEE7DC; color: var(--muted);
}
.tag--new, .tag--info                          { background: var(--info-bg); color: var(--info); }
.tag--confirmed, .tag--pending, .tag--trial    { background: var(--warn-bg); color: var(--warn); }
.tag--shipped                                  { background: #ECE6F5; color: #4B3778; }
.tag--delivered, .tag--paid, .tag--active, .tag--ok { background: var(--ok-bg); color: var(--ok); }
.tag--cancelled, .tag--rejected, .tag--expired,
.tag--suspended, .tag--failed, .tag--hot        { background: var(--red-soft); color: var(--red-deep); }

/* ── منتجات التاجر ─────────────────────────────────────────────────── */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--s3); }
.pitem {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; display: flex; flex-direction: column;
}
.pitem img { aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--paper-2); }
.pitem__b { padding: var(--s2) var(--s3) var(--s3); display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.pitem__n { font-weight: 800; line-height: 1.4; }
.pitem__p { color: var(--red); font-weight: 900; font-family: var(--f-head); }
.pitem__b .row-actions { margin-top: auto; }
.pitem.is-off { opacity: .6; }

.imgpick { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.imgpick__prev {
  width: 132px; height: 132px; border-radius: var(--r-md); flex: none;
  border: 2px dashed var(--clay); display: grid; place-items: center;
  overflow: hidden; background: var(--paper-2); color: var(--clay);
}
.imgpick__prev img { width: 100%; height: 100%; object-fit: cover; }
.imgpick__prev svg { width: 42px; height: 42px; }

/* ── بطاقات الطلبات ────────────────────────────────────────────────── */
.ocard {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s3); margin-bottom: var(--s2);
}
.ocard__top { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: .5rem; }
.ocard__ref { font-family: var(--f-head); font-weight: 900; direction: ltr; }
.ocard ul { list-style: none; margin: .5rem 0; padding: 0; }
.ocard li { display: flex; justify-content: space-between; gap: .6rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); font-size: var(--t-sm); }
.ocard li:last-child { border-bottom: 0; }
.ocard__info { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.9; background: var(--paper); border-radius: var(--r-sm); padding: .6rem .8rem; margin: .5rem 0; }
.ocard__sum { font-weight: 900; font-family: var(--f-head); }

/* ── الباقات والاشتراك ─────────────────────────────────────────────── */
.subbar {
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s3) var(--s4); margin-bottom: var(--s3);
}
.subbar__days { font-family: var(--f-head); font-weight: 900; font-size: 2.4rem; color: var(--green-deep); line-height: 1; min-width: 3ch; text-align: center; }
.subbar__days small { display: block; font-size: var(--t-xs); color: var(--muted); font-weight: 700; }
.subbar__txt { flex: 1; min-width: 200px; }
.subbar__txt b { font-size: var(--t-md); display: block; }
.subbar--warn { border-color: var(--warn); background: var(--warn-bg); }
.subbar--warn .subbar__days { color: var(--warn); }
.subbar--dead { border-color: var(--red); background: var(--red-soft); }
.subbar--dead .subbar__days { color: var(--red); }

.plans2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--s3); margin-bottom: var(--s3); }
.plan2 {
  position: relative; display: block; cursor: pointer;
  border: 2px solid var(--line); border-radius: var(--r-lg); padding: var(--s3);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.plan2 input { position: absolute; opacity: 0; pointer-events: none; }
.plan2:has(input:checked) { border-color: var(--red); box-shadow: var(--sh-red); }
.plan2 h3 { font-size: var(--t-md); }
.plan2__price { font-family: var(--f-head); font-weight: 900; font-size: 2rem; color: var(--red); line-height: 1.2; }
.plan2__price small { font-size: var(--t-xs); color: var(--muted); font-weight: 700; }
.plan2 ul { list-style: none; padding: 0; margin: .6rem 0 0; font-size: var(--t-sm); }
.plan2 li { display: flex; gap: .4rem; align-items: center; padding: .15rem 0; }
.plan2 li svg { width: 18px; height: 18px; flex: none; color: var(--ok); }
.plan2 li.no { color: var(--muted); }
.plan2 li.no svg { color: var(--clay); }

.perm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem; }
.perm-list > div {
  display: flex; gap: .5rem; align-items: center; padding: .6rem .8rem;
  border-radius: var(--r-sm); background: var(--paper); font-size: var(--t-sm);
}
.perm-list svg { width: 20px; height: 20px; flex: none; }
.perm-list .on svg { color: var(--ok); }
.perm-list .off { color: var(--muted); }
.perm-list .off svg { color: var(--clay); }

.wishbox { background: var(--paper); border: 2px dashed var(--gold); border-radius: var(--r-md); padding: var(--s3); margin-bottom: var(--s3); }
.wishbox b.ltr { font-family: var(--f-head); font-size: var(--t-lg); color: var(--green-deep); }

/* ── تبديل نعم/لأ ──────────────────────────────────────────────────── */
.tog { display: flex; align-items: center; gap: .7rem; min-height: 48px; cursor: pointer; font-weight: 700; }
.tog input { width: 22px; height: 22px; accent-color: var(--red); flex: none; }

/* ── نافذة منبثقة ─────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 300; padding: 1rem;
  background: rgba(20,14,10,.55); display: grid; place-items: center;
}
.modal[hidden] { display: none; }
.modal__box {
  position: relative; background: var(--white); border-radius: var(--r-lg);
  width: min(760px, 100%); max-height: 90vh; overflow: auto; padding: var(--s4);
  box-shadow: var(--sh-3);
}
.modal__x {
  position: absolute; inset-inline-end: .8rem; top: .8rem;
  width: 44px; height: 44px; border-radius: 50%; background: var(--paper-2);
  display: grid; place-items: center;
}
.modal__x svg { width: 20px; height: 20px; }
.modal__box h2 { font-size: var(--t-lg); margin-bottom: var(--s3); padding-inline-end: 3rem; }
.receipt { max-width: 100%; border-radius: var(--r-md); border: 1px solid var(--line); }

/* ── مؤشّرات الأمان ───────────────────────────────────────────────── */
.sig { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); margin-bottom: var(--s3); overflow: hidden; }
.sig > h3 {
  display: flex; justify-content: space-between; align-items: center; gap: .6rem;
  padding: .8rem var(--s3); background: var(--paper-2); font-size: var(--t-sm);
}
.sig--hot > h3 { background: var(--red-soft); color: var(--red-deep); }
.sig > p { padding: .3rem var(--s3) .8rem; color: var(--muted); font-size: var(--t-xs); }
.sig .dtable { border-radius: 0; }
.sig .dtable th, .sig .dtable td { font-size: var(--t-xs); }

.settings-grid { display: grid; gap: var(--s3); }
.hero-prev { width: 100%; max-width: 420px; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper-2); }

/* ── صفحة حسابي ───────────────────────────────────────────────────── */
.me-card { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.me-card__ava {
  width: 64px; height: 64px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-family: var(--f-head); font-weight: 900; font-size: 1.7rem;
  background: var(--green-soft); color: var(--green-deep);
}
.me-card h1 { font-size: var(--t-lg); }

/* صورة البروفايل دايرية */
.imgpick__prev--round { border-radius: 50%; width: 110px; height: 110px; }

/* ── حساب موقوف: بيشوف بس ── */
.frozen {
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  padding: var(--s3); margin-bottom: var(--s3); border-radius: 14px;
  background: #fde8e6; border: 1px solid #f3b8b2; color: #7a1d16;
}
.frozen > svg { width: 28px; height: 28px; flex: none; }
.frozen > div { flex: 1 1 240px; display: grid; gap: .2rem; }
.frozen span { font-size: var(--t-sm); }

/* ── مبيعات التاجر ── */
.sales-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--s2); margin-top: var(--s2); }
.sales-grid > div { padding: var(--s2) var(--s3); border-radius: 12px; background: var(--bg-2, #f6f3ee); display: grid; gap: .15rem; }
.sales-grid b { font-size: var(--t-lg); }
.sales-grid span { font-size: var(--t-xs); color: var(--muted); }
.sales-grid > div:last-child { background: var(--green-soft, #eaf3ec); }

/* ── شريط تأكيد الإيميل / تفعيل الإشعارات ── */
.verifybar {
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  padding: var(--s3); margin-bottom: var(--s3); border-radius: 14px;
  background: var(--warn-bg, #fff4dc); border: 1px solid #e6c980; color: #6b4a00;
}
/* بدون هيدا، خاصية display فوق بتغلب على [hidden] والشريط بيضلّ ظاهر
   حتى لو JS حطّ hidden=true (زر «فعّلها» أو «لأ شكراً» بيبيّنوا ما
   عم يعملوا شي — شوف push.js) */
.verifybar[hidden] { display: none; }
.verifybar > svg { width: 26px; height: 26px; flex: none; }
.verifybar__txt { flex: 1 1 240px; display: grid; gap: .15rem; }
.verifybar__txt span { font-size: var(--t-sm); }
.verifybar__act { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.verifybar__act input {
  width: 8ch; text-align: center; letter-spacing: .25em; font-weight: 700;
  padding: .45rem .5rem; border-radius: 10px; border: 1px solid #d9c08a; background: #fff;
}
.verifybar.is-done { background: var(--green-soft, #eaf3ec); border-color: #b9d8c2; color: var(--green-deep, #2f5d3a); }

/* ── تقويم الزوّار ──────────────────────────────────────────────────── */
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s3); flex-wrap: wrap; }
.cal__head h3 { font-size: var(--t-lg); font-family: var(--f-head); }
.cal__dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; margin-bottom: .3rem; }
.cal__dow span {
  text-align: center; font-size: var(--t-xs); color: var(--muted); font-weight: 800;
  overflow: hidden; text-overflow: clip; white-space: nowrap;
}
@media (max-width: 420px) {
  .cal__dow span { font-size: .62rem; }
}
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; }
.calday {
  aspect-ratio: 1; min-height: 54px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background-color: var(--paper);
  background-image: linear-gradient(0deg, var(--red-soft), var(--red-soft));
  background-repeat: no-repeat; background-position: bottom;
  background-size: 100% calc(var(--heat, 0) * 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
}
.calday:hover { box-shadow: var(--sh-1); }
.calday b { font-family: var(--f-head); font-weight: 800; font-size: var(--t-sm); }
.calday span { font-size: .68rem; font-weight: 800; color: var(--red-deep); }
.calday--empty { visibility: hidden; border: 0; background: none; }
.calday--today { border: 2px solid var(--red); }
@media (max-width: 560px) {
  .calday b { font-size: var(--t-xs); }
  .calday span { font-size: .6rem; }
}

.hourchart { display: flex; align-items: flex-end; gap: 2px; height: 110px; padding-top: .5rem; }
.hourbar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.hourbar span { display: block; width: 100%; min-height: 2px; background: var(--red); border-radius: 3px 3px 0 0; }
.hourbar small { font-size: .6rem; color: var(--muted); margin-top: .2rem; }

/* ── المؤقّت بشريط الاشتراك: نصّ مش رقم، فلازم يتمدّد ── */
.subbar__days { min-width: 9ch; text-align: center; }
.subbar__days b { display: block; font-size: var(--t-lg); line-height: 1.15; font-weight: 800; }
.subbar__days small { display: block; font-size: var(--t-xs); opacity: .75; }
.plan-pill.is-over b, .subbar__days b.is-over { color: var(--red, #b3261e); }
