/* خطوط النظام: تدعم العربي وما تحتاج تحميل من الإنترنت */
:root {
  --bg: #EDF1F7;
  --card: #FFFFFF;
  --border: #D3DAE5;
  --ink: #0F172A;
  --muted: #5B6474;
  --blue: #1D4ED8;
  --blue-light: #DBE4FF;
  --blue-mid: #4A72E6;
  --orange: #B45309;
  --orange-bg: #FFF1E6;
  --red: #B91C1C;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", system-ui, sans-serif;
}

h1, h2, p { margin: 0; }
.muted { color: var(--muted); font-size: 14px; }

.screen {
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
}

/* ---------- الدخول ---------- */
.login { padding-top: 64px; gap: 32px; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.brand h1 { font-size: 26px; }
.logo {
  width: 72px; height: 72px; border-radius: 22px; background: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.form { display: flex; flex-direction: column; gap: 8px; }
.form label { font-size: 14px; font-weight: 600; margin-top: 8px; }
.form input {
  height: 52px; border: 1.5px solid #8A96A8; border-radius: 12px; padding: 0 16px;
  font-size: 16px; font-family: inherit; background: #FAFBFC; color: var(--ink); text-align: left;
}
.form input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.btn {
  height: 54px; margin-top: 16px; border: 0; border-radius: 14px; background: var(--blue);
  color: #fff; font-size: 17px; font-weight: 600; font-family: inherit; cursor: pointer;
}
.btn:disabled { opacity: .6; cursor: wait; }
.error { color: var(--red); font-size: 14px; font-weight: 600; margin-top: 8px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; margin-top: 8px; }
.help { text-align: center; margin-top: auto; }

/* ---------- معلوماتي ---------- */
.top { display: flex; align-items: center; justify-content: space-between; }
.top h1 { font-size: 22px; }
.btn-ghost {
  min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--card); color: var(--ink); font-family: inherit; font-size: 14px; cursor: pointer;
}

.status { background: var(--blue); border: 0; color: #fff; display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.label-light { display: block; font-size: 13px; color: var(--blue-light); }
.status strong { font-size: 17px; }
.badge { background: #fff; color: var(--blue); font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.badge.expired { background: var(--orange-bg); color: var(--orange); }

.ring-row { justify-content: flex-start; gap: 20px; }
.ring { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.ring-bg { fill: none; stroke: var(--blue-mid); stroke-width: 10; }
.ring-fg { fill: none; stroke: #fff; stroke-width: 10; stroke-linecap: round; }
.ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-text strong { font-size: 36px; line-height: 1; }
.ring-text span { font-size: 13px; color: var(--blue-light); }
.dates { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.dates strong { display: block; text-align: right; }
.dates hr { border: 0; height: 1px; background: var(--blue-mid); margin: 0; width: 100%; }

.debt { display: flex; align-items: center; gap: 14px; }
.icon-box { width: 48px; height: 48px; border-radius: 14px; background: var(--orange-bg); color: var(--orange); display: flex; align-items: center; justify-content: center; }
.debt strong { display: block; font-size: 22px; color: var(--orange); }
.debt strong.zero { color: var(--ink); }

.signal { display: flex; flex-direction: column; gap: 16px; }
.signal h2 { font-size: 17px; }
.quality { display: flex; align-items: center; gap: 10px; color: var(--blue); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 22px; direction: ltr; }
.bars i { width: 5px; border-radius: 2px; background: #CBD3DE; }
.bars i:nth-child(1) { height: 6px; }
.bars i:nth-child(2) { height: 10px; }
.bars i:nth-child(3) { height: 14px; }
.bars i:nth-child(4) { height: 18px; }
.bars i:nth-child(5) { height: 22px; }
.bars i.on { background: var(--blue); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid > div { background: var(--bg); border-radius: 14px; padding: 12px 14px; }
.grid span { display: block; font-size: 12px; }
.grid strong { display: block; font-size: 16px; text-align: right; }

.loading { text-align: center; padding: 40px; }

/* ---------- التبويبات والقائمة السفلية ---------- */
.home { padding-bottom: 100px; }
.tab { display: flex; flex-direction: column; gap: 16px; }
.tab-title { font-size: 24px; }
.list { display: flex; flex-direction: column; gap: 12px; }
.empty { text-align: center; padding: 32px 0; }

.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: center;
  background: var(--card); border-top: 1px solid var(--border);
  padding: 6px 12px 14px;
}
.bottom-nav button {
  flex: 1; max-width: 140px; min-height: 56px; border: 0; background: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--muted); font-family: inherit; font-size: 12px; cursor: pointer;
}
.bottom-nav button.active { color: var(--blue); font-weight: 700; }

/* ---------- كارت العرض ---------- */
.offer { display: flex; flex-direction: column; gap: 8px; }
.offer h3 { margin: 0; font-size: 18px; }
.offer .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.offer .price { font-size: 18px; font-weight: 700; }
.offer .speed { color: var(--blue); font-weight: 700; font-size: 14px; }
.offer p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- كارت الرسالة ---------- */
.msg { display: flex; flex-direction: column; gap: 6px; border-right: 0; }
.msg .meta { display: flex; justify-content: space-between; font-size: 12px; }
.msg .kind { font-weight: 700; }
.msg h3 { margin: 0; font-size: 15px; }
.msg p { color: #3E4757; font-size: 14px; line-height: 1.6; white-space: pre-line; }
.msg.outage { border-color: #F3C9A8; }
.msg.outage .kind { color: var(--orange); }
.msg.announcement { border-color: #C7D5F7; }
.msg.announcement .kind { color: var(--blue); }
.msg.reminder .kind, .msg.fixed .kind { color: var(--muted); }

/* ---------- لوحة التحكم ---------- */
.admin { max-width: 720px; }
.form textarea, .form select {
  border: 1.5px solid #8A96A8; border-radius: 12px; padding: 12px 16px;
  font-size: 16px; font-family: inherit; background: #FAFBFC; color: var(--ink);
}
.form textarea { min-height: 96px; resize: vertical; }
.form select { height: 52px; }
.form .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form .two > div { display: flex; flex-direction: column; gap: 8px; }
.ok { color: #15803D; font-size: 14px; font-weight: 600; }
.row-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.btn-danger {
  min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid #FCA5A5;
  background: #FEF2F2; color: var(--red); font-family: inherit; font-size: 13px; cursor: pointer; flex-shrink: 0;
}

/* وسم البرج */
.tag {
  display: inline-block; align-self: flex-start; margin-top: 4px;
  background: #E8EEFD; color: var(--blue); font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.actions { display: flex; gap: 8px; flex-shrink: 0; }
.actions .btn-ghost { min-height: 40px; font-size: 13px; }

/* ---------- تبويبات لوحة التحكم ---------- */
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-tabs button {
  flex: 1; min-height: 44px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--card); color: var(--ink); font-family: inherit; font-size: 15px; cursor: pointer;
}
.admin-tabs button.active { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 700; }
.admin-section { display: flex; flex-direction: column; gap: 16px; }

/* ---------- الديون ---------- */
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.summary div { display: flex; flex-direction: column; gap: 4px; }
.summary strong { font-size: 18px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500 !important; }
.check input { width: 20px; height: 20px; }
.sub-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%;
  padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--card);
  font-family: inherit; font-size: 15px; color: var(--ink); cursor: pointer; text-align: right;
}
.sub-row:hover { border-color: var(--blue); }
.sub-row .amount { font-weight: 700; white-space: nowrap; }
.debt-pos { color: var(--orange); }
.debt-neg { color: #15803D; }
.balance-box { display: flex; justify-content: space-between; align-items: center; margin: 12px 0; padding: 14px; border-radius: 14px; background: var(--bg); }
.balance-box strong { font-size: 24px; }
.ledger-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.ledger-row:last-child { border-bottom: 0; }
h3 { margin: 16px 0 4px; font-size: 16px; }

/* ---------- التجديد ---------- */
.sas-box { border: 1px solid #C7D5F7; background: #F5F8FF; border-radius: 14px; padding: 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.sas-box strong { display: block; font-size: 17px; margin-top: 4px; }
.badge-days { background: var(--blue); color: #fff; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.badge-days.expired { background: var(--orange-bg); color: var(--orange); }

/* =========================================================
   صفحة المشترك (ترتيب مثل utower)
   ========================================================= */
.ltr { direction: ltr; unicode-bidi: isolate; }

/* صف بالقائمة: مربع الأيام | المعلومات | الإشارة */
.sub-row { align-items: stretch; padding: 10px; gap: 14px; }
.sub-row .sub-info { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.days-badge {
  width: 84px; flex-shrink: 0; border-radius: 14px; color: #fff;
  background: linear-gradient(180deg, #1E88E5, #0B5CAD);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.days-badge strong { font-size: 17px; }
.days-badge span { font-size: 13px; opacity: .9; }
.days-badge.expired { background: var(--orange-bg); color: var(--orange); }
.sig { width: 64px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); }
.sig strong { font-size: 17px; color: var(--ink); direction: ltr; }
.sig span { font-size: 12px; direction: ltr; }

.status-dot { font-size: 14px; font-weight: 600; }
.status-dot::before { content: "●"; margin-left: 6px; font-size: 11px; }
.status-dot.on { color: #15803D; }
.status-dot.off { color: var(--red); }

/* شريط الأيقونات */
.d-toolbar { display: flex; align-items: center; gap: 8px; }
.d-toolbar .spacer { flex: 1; }
.icon-btn {
  width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--border); background: var(--card);
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; color: var(--ink);
  font-family: inherit;
}
.icon-btn svg { width: 22px; height: 22px; fill: currentColor; }
.icon-btn:hover { border-color: var(--blue); color: var(--blue); }

/* كارت الاسم والدين */
.name-card {
  border-radius: 20px; padding: 20px; color: #fff;
  background: linear-gradient(135deg, #1E88E5, #0B5CAD);
  display: flex; flex-direction: column; gap: 4px;
}
.name-card h2 { font-size: 26px; margin-bottom: 14px; }
.name-card strong { font-size: 30px; }
.tag.light { background: rgba(255,255,255,.2); color: #fff; margin: 0; }

/* جدول المعلومات */
.info-card dl, #receipt dl, .kv { margin: 0; display: flex; flex-direction: column; }
.info-card dl > div, #receipt dl > div, .kv > div {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.info-card dl > div:last-child, .kv > div:last-child { border-bottom: 0; }
.info-card dt, .kv dt { color: var(--muted); font-size: 14px; }
.info-card dd, .kv dd { margin: 0; font-weight: 700; font-size: 16px; }
dd.link { color: var(--blue); }
.note-box { margin-top: 12px; padding: 12px; border-radius: 12px; background: #FFF8E1; white-space: pre-line; line-height: 1.6; }

/* أزرار أسفل الصفحة */
.d-actions {
  position: sticky; bottom: 0; display: flex; flex-direction: column; gap: 10px;
  padding: 12px 0 16px; background: var(--bg);
}
.d-actions .btn { margin: 0; }
.btn-outline {
  height: 52px; border-radius: 14px; border: 1.5px solid var(--blue); background: var(--card);
  color: var(--blue); font-size: 16px; font-weight: 600; font-family: inherit; cursor: pointer;
}

/* النوافذ المنبثقة من تحت */
dialog.sheet {
  width: 100%; max-width: 520px; margin: auto auto 0; padding: 20px 20px 28px;
  border: 0; border-radius: 22px 22px 0 0; background: var(--card); color: var(--ink);
  max-height: 90vh; overflow-y: auto; overflow-x: hidden; left: 0; right: 0;
}
dialog.sheet::backdrop { background: rgba(15, 23, 42, .5); }
dialog.sheet h2 { font-size: 20px; margin-bottom: 4px; }
dialog.tall-sheet { min-height: 70vh; }
.amount-field { display: flex; align-items: center; gap: 10px; }
.amount-field input { flex: 1; min-width: 0; width: 100%; font-size: 26px !important; font-weight: 700; height: 60px !important; }
.amount-field span { font-size: 18px; color: var(--muted); }
.form textarea.tall { min-height: 150px; }
.switch-row {
  display: flex !important; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; font-weight: 500 !important;
}
.switch-row input { width: 22px; height: 22px; }
.kv { background: var(--bg); border-radius: 14px; padding: 4px 14px; }
.toggles { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  flex: 1; display: flex !important; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px;
  font-weight: 600 !important; cursor: pointer; margin: 0 !important;
}
.chip:has(input:checked) { background: var(--blue-light); border-color: var(--blue); color: var(--blue); }
.chip input { width: 18px; height: 18px; }
.tpl summary { cursor: pointer; color: var(--muted); padding: 8px 0; }
.tpl { display: flex; flex-direction: column; gap: 8px; }

.menu { display: flex; flex-direction: column; }
.menu button {
  text-align: right; padding: 16px 8px; border: 0; border-bottom: 1px solid var(--border); background: none;
  font-family: inherit; font-size: 17px; color: var(--ink); cursor: pointer;
}
.menu button:last-child { border-bottom: 0; }
.menu button:hover { background: var(--bg); }

/* السجل */
.h-row { display: flex; flex-direction: column; gap: 6px; padding: 14px; }
.h-row strong { font-size: 16px; }
.kind-chip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; background: var(--bg); }
.k-payment { background: #E0ECFF; color: var(--blue); }
.k-renewal { background: #EDE7FF; color: #5B3FD1; }
.k-debt, .k-opening { background: var(--orange-bg); color: var(--orange); }
.k-correction { background: #F1F5F9; color: var(--muted); }
#h-filter { height: 44px; border-radius: 12px; border: 1px solid var(--border); padding: 0 10px; font-family: inherit; }

/* وصل الطباعة: يطلع بالطباعة بس */
#receipt { display: none; }
@media print {
  body > *:not(#receipt) { display: none !important; }
  #receipt { display: block; font-family: inherit; max-width: 80mm; margin: 0 auto; color: #000; }
  #receipt h1 { font-size: 18px; text-align: center; margin-bottom: 4px; }
  #receipt > p { text-align: center; font-size: 12px; margin: 6px 0; }
  #receipt dl > div { padding: 6px 0; border-bottom: 1px dashed #999; font-size: 13px; }
  #receipt dt { font-weight: 400; } #receipt dd { margin: 0; font-weight: 700; }
}

/* بطاقة اتصالك */
.conn-status { color: #15803D; font-size: 15px; }
.conn-status.off { color: var(--red); }

/* تنبيه التجديدات اللي تحتاج تشيك */
.alert-box { border: 2px solid #d97706; background: #fff7ed; color: #7c2d12; border-radius: 12px;
             padding: 12px; display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.alert-box[hidden] { display: none; }
.alert-item { display: flex; flex-direction: column; gap: 6px; }
.alert-item p { margin: 0; }

/* ---------- الفلاتر والفرز ---------- */
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.filter-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-inline-start: 4px; vertical-align: middle; }
.sub-count { margin: 0; font-size: 13px; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
              padding: 8px 4px 0; border-bottom: 2px solid var(--blue-light); }
.group-head strong { color: var(--blue); font-size: 16px; }
.group-head span { font-size: 13px; }

/* قسم اللوحات: ينفتح وينسد */
.panels { background: var(--bg); border-radius: 14px; padding: 4px 14px; margin-top: 8px; }
.panels summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.form .panel-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
                   padding: 10px 0; margin: 0; border-top: 1px solid var(--border); font-weight: 500; cursor: pointer; }
.form .panel-row.all { font-weight: 700; }

/* مفتاح تبديل (Toggle Switch) من checkbox عادي */
.form input.switch { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; flex: none;
                     border-radius: 999px; background: #CBD3DE; position: relative; cursor: pointer; margin: 0;
                     border: 0; padding: 0; transition: background .15s; }
.form input.switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px;
                            border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: inset-inline-start .15s; }
.form input.switch:checked { background: var(--blue); }
.form input.switch:checked::after { inset-inline-start: 21px; }
.form input.switch:indeterminate { background: var(--blue-mid); }
.form input.switch:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- كبسولة الأيقونات وإضافة مشترك ---------- */
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-pill { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px;
             background: var(--card); border: 1px solid var(--border); }
.icon-pill button { width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--ink);
                    display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; }
.icon-pill button:hover, .icon-pill button:focus-visible { background: var(--blue-light); color: var(--blue); }
.icon-pill svg { width: 22px; height: 22px; fill: currentColor; }
.icon-pill .filter-dot { position: absolute; top: 6px; inset-inline-end: 6px; margin: 0; }

.page-head { display: flex; align-items: center; gap: 12px; }
.page-head h2 { margin: 0; font-size: 20px; }

.add-form { gap: 12px; }
.ifield { position: relative; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 14px;
          background: var(--card); border: 1.5px solid var(--border); border-radius: 14px; }
.ifield:focus-within { border-color: var(--blue); }
.form .ifield input, .form .ifield select { flex: 1; min-width: 0; height: 54px; border: 0; padding: 0; background: transparent;
                                            outline: none; font-size: 16px; text-align: right; }
.form .ifield input[dir="ltr"]:not(:placeholder-shown) { text-align: left; }
.ficon { flex: none; width: 26px; display: flex; justify-content: center; color: var(--muted); }
.ficon svg { width: 22px; height: 22px; fill: currentColor; }
.ficon.txt { font-weight: 700; font-size: 13px; }
.ifield .sub-label { position: absolute; top: 4px; inset-inline-start: 50px; margin: 0; font-size: 11px; color: var(--muted); font-weight: 500; }
.ifield-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pill-btn { border-radius: 999px; }

.loc-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1.5px dashed var(--border);
            border-radius: 14px; background: var(--card); }
.loc-head { display: flex; align-items: center; gap: 8px; }
.loc-head .ficon { color: var(--blue); }
.loc-card p { margin: 0; }
.map-link { color: var(--blue); font-weight: 700; text-decoration: none; }

/* ---------- التنبيهات وموعد التسديد ---------- */
.alerts-badge { position: absolute; top: 2px; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 5px;
                border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
                display: flex; align-items: center; justify-content: center; }
.alerts-list { display: flex; flex-direction: column; gap: 8px; }
.alert-row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: right; padding: 12px;
             border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--ink);
             font-family: inherit; cursor: pointer; }
.alert-row:hover { border-color: var(--blue); }
.due-chip { align-self: flex-start; margin: -8px 0 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.5);
            background: rgba(255,255,255,.15); color: #fff; font-family: inherit; font-size: 14px; cursor: pointer; }
.due-chip.late { background: #FEE2E2; color: var(--red); border-color: #FCA5A5; font-weight: 700; }
.card-title { margin: 0 0 6px; font-size: 16px; }
@media print {
  #receipt .receipt-ledger { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 11px; }
  #receipt .receipt-ledger th, #receipt .receipt-ledger td { border-bottom: 1px dashed #999; padding: 4px 2px; text-align: right; }
}

/* ---------- التأكيد والمقيّد ---------- */
.confirm-text { margin: 4px 0 8px; font-size: 17px; line-height: 1.7; white-space: pre-line; }
#dlg-confirm { z-index: 10; }
.name-card.restricted { background: linear-gradient(135deg, #F97316, #DC2626); }

/* ---------- حذف المشترك ---------- */
.menu .menu-danger { color: var(--red); font-weight: 700; }
.danger-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: #FEE2E2; color: var(--red); line-height: 1.6; }
.btn.btn-delete { background: var(--red); }
.btn.btn-delete:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- الأرشيف ---------- */
.archive-list { display: flex; flex-direction: column; gap: 10px; }
.archive-row { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--border);
               border-radius: 12px; background: var(--card); }
.archive-row p { margin: 0; }
.archive-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.archive-actions button { min-height: 44px; }
.danger-outline { color: var(--red) !important; border-color: #FCA5A5 !important; }
