/*
 * «مِقَص» — قسم الحساب في تطبيق الزبون (customer-app.dc.html عرض 412px: المفضلة ~643-672، الإشعارات ~673-696،
 * حسابي ~697-721، طرق الدفع ~783-811، تعديل الملف ~812-845، الدعم والمساعدة ~846-882) بعد organic.css و app.css
 * و customer.css. كل لون من متغيّرات organic.css؛ الاتجاه بخصائص منطقية ليعمل RTL و LTR.
 */

/* ── الشاشات الفرعية: رأس برجوع (x-customer.page-header) ثم المحتوى، حشوة 16/20/20 كما في التصميم ── */
.ac-page { flex: 1; display: flex; flex-direction: column; padding: 16px 20px 20px; animation: scrIn .22s ease both; }
.ac-sec { margin: 22px 0 10px; font-size: 16px; }

/* ══ المفضلة ══ */
.fav-list { display: flex; flex-direction: column; gap: 12px; }
.fav-heart { width: 40px; height: 40px; flex: none; border: 0; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--color-bg); color: var(--color-accent); cursor: pointer; }
.fav-heart:hover { background: var(--color-accent-100); }
.fav-heart:disabled { cursor: default; opacity: .6; }
.fav-empty .btn { margin-top: 8px; min-height: 46px; }

/* ══ الإشعارات: غير المقروء بخلفية تراكوتا فاتحة، ودائرة الرمز بلون النوع ══ */
.nt-all { margin-inline-start: auto; }
.nt-all .btn { min-height: 40px; font-size: 13px; }
.nt-list { display: flex; flex-direction: column; gap: 10px; }
.nt { display: flex; gap: 12px; width: 100%; padding: 14px; border: 0; border-radius: 24px; background: var(--color-surface); color: var(--color-text); font: inherit; text-align: start; cursor: pointer; }
.nt:hover { background: color-mix(in srgb, var(--color-text) 5%, var(--color-surface)); }
.nt.is-unread { background: var(--color-accent-100); }
.nt.is-unread:hover { background: color-mix(in srgb, var(--color-accent) 9%, var(--color-accent-100)); }
.nt:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.nt-ic { width: 40px; height: 40px; flex: none; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 800; font-size: 17px; line-height: 1; color: var(--color-bg); background: var(--color-neutral-600); }
.nt-ic.t-acc { background: var(--color-accent); }
.nt-ic.t-a600 { background: var(--color-accent-600); }
.nt-ic.t-g600 { background: var(--color-accent-2-600); }
.nt-ic.t-g700 { background: var(--color-accent-2-700); }
.nt-ic.t-n700 { background: var(--color-neutral-700); }
.nt-main { flex: 1; min-width: 0; }
.nt-title { display: block; font-size: 14px; font-weight: 700; }
.nt-body { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.6; color: var(--color-neutral-700); overflow-wrap: anywhere; }
.nt-time { display: block; margin-top: 5px; font-size: 11px; color: var(--color-neutral-600); }
.ac-pager { display: flex; gap: 10px; margin-top: 16px; }
.ac-pager .btn { min-height: 44px; }
.ac-pager .is-older { margin-inline-start: auto; }

/* ══ حسابي ══ */
.ac { padding-bottom: 20px; animation: scrIn .22s ease both; }
.ac-head { display: flex; align-items: center; gap: 14px; padding: 22px 20px 24px; border-radius: 0 0 30px 30px; background: var(--color-surface); }
.ac-av { width: 70px; height: 70px; flex: none; overflow: hidden; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 800; font-size: 27px; line-height: 1; color: var(--color-bg); background: var(--color-accent); }
.ac-av img { width: 100%; height: 100%; object-fit: cover; }
.ac-id { flex: 1; min-width: 0; }
.ac-name { font-family: var(--font-heading); font-weight: 800; font-size: 22px; line-height: 1.3; overflow-wrap: anywhere; }
/* الرقم LTR حتى لا ينقلب "+968 9123 4567"، ويبدأ من جهة بداية السطر كما في التصميم */
.ac-phone { font-size: 13px; color: var(--color-neutral-700); direction: ltr; text-align: left; }
[dir="rtl"] .ac-phone { text-align: right; }
.ac-since { margin-top: 6px; font-weight: 600; }
.ac-blocked { margin: 16px 20px 0; }
.ac .link-glyph { font-size: 16px; }
.ac .link-row .label { font-weight: 600; }
.ac .link-row .label small { display: block; margin-top: 1px; font-size: 11.5px; font-weight: 500; color: var(--color-neutral-700); }
.ac .link-row .tag { flex: none; font-weight: 700; }
.ac .link-row .chev { flex: none; color: var(--color-neutral-500); }
.ac-group { padding: 0 20px; }
.ac-group .links { padding: 0; }

/* مفاتيح التنبيهات (نفس مفتاح التشغيل في app.css) داخل بطاقة واحدة بفواصل */
.ac-prefs { display: flex; flex-direction: column; padding: 2px 16px; border-radius: 24px; background: var(--color-surface); }
.ac-prefs .switch-row { padding: 14px 0; font: inherit; }
.ac-prefs .switch-row + .switch-row { border-top: 1px solid var(--color-divider); }
.ac-prefs .switch-row .t { font-size: 14.5px; }
.ac-prefs .switch-row[aria-busy="true"] { cursor: progress; }
.ac-prefs .switch-row:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 12px; }
.ac-note { margin: 10px 4px 0; font-size: 11.5px; line-height: 1.8; color: var(--color-neutral-700); }
.ac-logout { padding: 0 20px; }

/* ── حذف الحساب: details أصلي (بلا JavaScript) بتأكيد صريح وزر بلون التحذير ── */
.ac-delete { margin-top: 12px; }
.ac-delete summary { list-style: none; }
.ac-delete summary::-webkit-details-marker { display: none; }
.ac-delete summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 12px; }
.ac-delete summary .link-glyph { color: var(--color-accent-700); }
.ac-delete-body { padding: 14px 4px 0; font-size: 12.5px; line-height: 1.8; color: var(--color-neutral-700); }
.ac-delete-body p { margin: 0 0 12px; }
.ac-delete-body .tip a { color: inherit; font-weight: 700; }
.ac-check { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; font-weight: 600; color: var(--color-text); cursor: pointer; }
.ac-check input { width: 18px; height: 18px; flex: none; margin: 3px 0 0; accent-color: var(--color-accent); }
.ac-delete-btn { margin-top: 14px; border-color: var(--color-accent); background: var(--color-accent); color: var(--color-bg); }
.ac-delete-btn:hover { background: var(--color-accent-600); }

/* ══ تعديل بياناتي: حشوة 16/20/24 ورأس بهامش 18 كما في التصميم ══ */
.ac-page.ac-edit { padding-bottom: 24px; }
.ac-edit .topbar { margin-bottom: 18px; }
.ac-photo { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 20px; }
.ac-photo-slot { position: relative; width: 104px; height: 104px; flex: none; cursor: pointer; }
.ac-photo-img { width: 104px; height: 104px; overflow: hidden; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--color-surface); border: 1.5px dashed var(--color-neutral-400); color: var(--color-neutral-700); font-size: 12px; font-weight: 700; }
.ac-photo-img.has-img { border-color: transparent; }
.ac-photo-img img { width: 100%; height: 100%; object-fit: cover; }
.ac-photo-edit { position: absolute; bottom: -2px; inset-inline-end: -2px; width: 34px; height: 34px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--color-accent); border: 3px solid var(--color-bg); color: var(--color-bg); }
.ac-photo-slot:has(input:focus-visible) .ac-photo-img { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.ac-fields { display: flex; flex-direction: column; gap: 14px; }
.ac-fields .input { min-height: 48px; font-size: 15px; }
.ac-fields .input[readonly] { background: var(--color-surface); color: var(--color-neutral-800); cursor: default; }
.ac-ltr { direction: ltr; text-align: left; }
[dir="rtl"] .ac-ltr { text-align: right; }
.ac-opt { color: var(--color-neutral-600); }
.ac-fields .hint { margin-top: 6px; }
.ac-fields .hint a { color: var(--color-accent-700); font-weight: 700; }
.ac-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.ac-fieldset legend { padding: 0; margin-bottom: 5px; font-size: 12px; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.ac-fieldset .chips { margin-top: 4px; }
.ac-save { min-height: 54px; font-size: 16px; margin-top: 20px; }
/* تغيير الرقم: سطر تعريف فوق الحقلين، ثم خانات الرمز (otp-step من customer.css) */
.ac-intro { margin: 0 0 18px; font-size: 13px; line-height: 1.8; color: var(--color-neutral-700); }

/* ══ طرق الدفع: النقد مفعّل، والبطاقة والمحفظة "قريبًا" ══ */
.pm-list { display: flex; flex-direction: column; gap: 10px; }
.pm { display: flex; align-items: center; gap: 13px; width: 100%; padding: 15px; border-radius: 24px; border: 1.5px solid transparent; background: var(--color-surface); }
.pm.is-on { background: var(--color-accent-100); border-color: var(--color-accent); }
.pm-badge { width: 46px; height: 32px; flex: none; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.pm-badge.b-cash { background: var(--color-accent-2-200); color: var(--color-accent-2-800); }
.pm-badge.b-card { background: var(--color-neutral-200); color: var(--color-neutral-800); }
.pm-badge.b-wallet { background: var(--color-accent-200); color: var(--color-accent-800); }
.pm-main { flex: 1; min-width: 0; }
.pm-title { display: block; font-size: 14.5px; font-weight: 700; color: var(--color-text); }
.pm-sub { display: block; font-size: 12px; color: var(--color-neutral-700); }
.pm-dot { width: 19px; height: 19px; flex: none; border-radius: 999px; border: 2px solid var(--color-neutral-500); display: flex; align-items: center; justify-content: center; }
.pm-dot::after { content: ""; width: 8px; height: 8px; border-radius: 999px; }
.pm.is-on .pm-dot { border-color: var(--color-accent); }
.pm.is-on .pm-dot::after { background: var(--color-accent); }
.pm.is-soon .pm-badge, .pm.is-soon .pm-main { opacity: .62; }
.pm.is-soon .tag { flex: none; font-weight: 700; }
.pm-add { margin-top: 14px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 16px; border-radius: 24px; border: 1.5px dashed var(--color-accent-400); background: var(--color-accent-100); color: var(--color-accent-800); font-size: 14px; font-weight: 700; cursor: not-allowed; }
.pm-add .tag { background: var(--color-bg); font-weight: 700; }
.pm-note { margin: 16px 0 0; font-size: 11.5px; line-height: 1.8; color: var(--color-neutral-700); }

/* ══ الدعم والمساعدة: حشوة 16/20/22 كما في التصميم ══ */
.ac-page.sp-page { padding-bottom: 22px; }
.sp-actions { display: flex; gap: 10px; }
.sp-btn { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 18px 10px; border-radius: 24px; border: 1px solid var(--color-divider); background: var(--color-surface); color: var(--color-text); font-size: 13.5px; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; }
.sp-btn svg { color: var(--color-accent-2-800); }
.sp-btn i { font-size: 22px; line-height: 1; color: var(--color-accent-2-800); }
.sp-btn:hover { color: var(--color-text); background: color-mix(in srgb, var(--color-text) 5%, var(--color-surface)); }
.sp-btn.is-call { border-color: transparent; background: var(--color-accent); color: var(--color-bg); }
.sp-btn.is-call svg { color: var(--color-bg); }
.sp-btn.is-call:hover { background: var(--color-accent-600); color: var(--color-bg); }
.sp-btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.sp-faqs { display: flex; flex-direction: column; gap: 9px; }
.sp-faq { overflow: hidden; border-radius: 22px; background: var(--color-surface); }
.sp-faq summary { display: flex; align-items: center; gap: 10px; padding: 15px; cursor: pointer; list-style: none; }
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; border-radius: 22px; }
.sp-q { flex: 1; font-size: 14px; font-weight: 700; color: var(--color-text); }
.sp-sign { flex: none; font-size: 18px; line-height: 1; color: var(--color-accent-700); }
.sp-sign::before { content: "+"; }
.sp-faq[open] .sp-sign::before { content: "\2212"; }
.sp-a { padding: 0 15px 15px; font-size: 13px; line-height: 1.85; color: var(--color-neutral-700); white-space: pre-line; overflow-wrap: anywhere; }
.sp-note { margin-top: 18px; padding: 15px; border-radius: 22px; background: var(--color-accent-100); font-size: 12.5px; line-height: 1.8; color: var(--color-accent-800); }
.sp-note a { color: inherit; font-weight: 700; text-decoration: none; }
.sp-note a:hover { color: var(--color-accent); }
