/* =====================================================================
   هوية داش الجديدة لكل الصفحات
   يُحمَّل بعد dash.css و app.css فيعيد تعيين الألوان والخطوط القديمة
   إلى ألوان ليل مسقط، دون إعادة كتابة كل صفحة.
   ===================================================================== */
:root {
  --night:     #12081F;
  --panel:     #1b0f33;
  --edge:      #3a2270;
  --edge-soft: #26164a;

  --orchid:      #7A4DFF;               /* أزرار أساسية: نص أبيض بتباين كافٍ */
  --orchid-lift: #B18CFF;
  --orchid-deep: #6D3BFF;
  --orchid-wash: rgba(177, 140, 255, .12);
  --gold:        #EBA324;               /* وردي هادئ بدل الذهبي */
  --gold-wash:   rgba(235, 163, 36, .10);

  --mist:      #F3EEFF;
  --mist-soft: #B9ACD9;
  --mist-dim:  #8A7BB4;

  --ring: 0 0 0 3px rgba(177, 140, 255, .45);
  --lift: 0 1px 2px rgba(0,0,0,.4), 0 24px 60px -18px rgba(4, 8, 30, .8);
  --r-lg: 28px;

  --display: 'Alexandria', 'Readex Pro', system-ui, sans-serif;
  --body:    'Readex Pro', 'Alexandria', system-ui, sans-serif;
  --serif:   'Instrument Serif', Georgia, serif;
}

body {
  font-family: var(--body) !important; font-weight: 300;
  background-color: var(--night);
  background-image:
    radial-gradient(1200px 600px at 90% -10%, rgba(109, 59, 255, .22), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(177, 140, 255, .10), transparent 60%);
  background-attachment: fixed;
}
h1, h2, h3, .mark-name, .price, .plan-name, .hero h1, .page-hero h1 {
  font-family: var(--display) !important; letter-spacing: -.02em; line-height: 1.25;
}
h1 { font-weight: 800; } h2 { font-weight: 700; }
b, strong { font-weight: 600; }

/* الأزرار: نفس سلوك الصفحة الرئيسية */
.btn { font-family: var(--display); font-weight: 500; border-radius: 999px; transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .3s, background .3s; }
.btn-primary { background: #F3EEFF; color: #12081F; box-shadow: none; }
.btn-primary:hover { background: #fff; box-shadow: 0 18px 44px -14px rgba(177, 140, 255, .6); color: #12081F; }
.btn-gold { background: linear-gradient(120deg, #EBA324, #B18CFF); color: #12081F; }

/* البطاقات: ظل أعمق وحدود أنعم */
.card { border-color: rgba(243, 238, 255, .09); background: linear-gradient(160deg, rgba(243,238,255,.045), rgba(243,238,255,.012)); }

/* الأرقام الكبيرة بخط Instrument Serif */
.price .amount, .price-num, .metric .val, .stat .num { font-family: var(--serif) !important; font-weight: 400; letter-spacing: -.01em; }

/* العناوين تتكشّف كلمة كلمة عند الوصول إليها */
.rv-w { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em .02em .2em; margin: -.14em -.02em -.2em; }
.rv-w > i { display: inline-block; font-style: normal; transform: translateY(110%) rotate(3deg); transition: transform 1.1s cubic-bezier(.22,1,.36,1); transition-delay: calc(var(--k) * 60ms); }
.rv-on .rv-w > i { transform: none; }

/* ضوء المؤشر */
.site-light { position: fixed; top: 0; left: 0; width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(177,140,255,.12), rgba(109,59,255,.05) 45%, transparent 70%); opacity: 0; transition: opacity .5s; }
body.has-pointer .site-light { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .rv-w > i { transform: none !important; transition: none !important; }
  .site-light { display: none; }
}

/* العلامة في الصفحات الداخلية: نفس كلمة «داش» في الرئيسية، بلا تسمية لاتينية بأحرف كبيرة */
.mark-name small { display: none !important; }
.mark-name { font-family: var(--display) !important; font-weight: 800 !important; font-size: 1.55rem !important; letter-spacing: -.01em; }
.mark-glyph { background: linear-gradient(140deg, #6D3BFF, #B18CFF) !important; box-shadow: 0 8px 22px -8px rgba(177,140,255,.6) !important; }
.topbar, .site-header, header.nav, .navbar { background: rgba(18, 8, 31, .72) !important; backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }

/* ==========================================================
   الأيقونات الخطية في الصفحات العامة
   (كانت ناقصة هنا، فتظهر الأيقونات أشكالًا سوداء كبيرة في جدول الباقات)
   ========================================================== */
.ic {
  width: 1.15em; height: 1.15em; flex-shrink: 0;
  display: inline-block; vertical-align: -0.2em;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic-e { margin-inline-end: .3em; }
.btn .ic { width: 1.05em; height: 1.05em; }
.i-tip { display: inline-flex; align-items: center; justify-content: center; width: 1.35rem; height: 1.35rem;
  border-radius: 50%; cursor: help; vertical-align: middle; margin-inline-start: .35rem; position: relative; }
.i-tip .ic { width: 1.05rem; height: 1.05rem; stroke-width: 1.8; }
.i-tip-body { position: absolute; top: calc(100% + 9px); inset-inline-start: -10px; width: max-content;
  max-width: min(290px, 70vw); background: #14112b; color: #f3eeff; font-size: .82rem; line-height: 1.8;
  padding: .6rem .8rem; border-radius: 11px; opacity: 0; visibility: hidden; pointer-events: none; z-index: 90;
  transition: opacity .16s, visibility .16s; white-space: normal; }
.i-tip:hover .i-tip-body, .i-tip:focus .i-tip-body, .i-tip:focus-within .i-tip-body { opacity: 1; visibility: visible; }

/* سطر التعريف أعلى الصفحات: لمن داش */
.eyebrow-soon { display: inline-block; margin: 0 0 .9rem; padding: .3rem .9rem; border-radius: 99px;
  font-size: .85rem; color: #EBA324; background: rgba(235,163,36,.1); border: 1px solid rgba(235,163,36,.28); }

/* ==========================================================
   الجوال: لا تمرير جانبي، لا تكبير تلقائي عند الكتابة، شريط علوي يتسع
   ========================================================== */
html { overflow-x: clip; }
.t-short { display: none; }
.contact-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
.hp-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; inset-inline-start: 0; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  /* iOS يكبّر الصفحة عند لمس حقل خطه أصغر من 16px */
  input, select, textarea { font-size: 16px !important; }
  .i-tip-body { position: fixed; inset-inline: 14px; top: auto; bottom: 14px; width: auto; max-width: none; z-index: 200; }
}
@media (max-width: 480px) {
  .t-long { display: none; }
  .t-short { display: inline; }
  .topbar-inner { gap: .6rem; }
  .topbar-cta { gap: .4rem; }
  .topbar-cta .btn-sm { padding-inline: .8rem; }
  .menu-toggle { width: 40px; height: 40px; flex-shrink: 0; }
  .page-head h1 { font-size: clamp(1.7rem, 7.5vw, 2.2rem); }
}
/* جدول مقارنة الباقات: يتسع للشاشة الصغيرة بدل ما يخفي أعمدة الباقات */
.cmp-table { min-width: 560px; }
@media (max-width: 620px) {
  .cmp-table { min-width: 0; table-layout: fixed; }
  .cmp-table th, .cmp-table td { padding: .7rem .45rem !important; font-size: .86rem !important; }
  .cmp-table th:first-child, .cmp-table td:first-child { width: 52%; padding-inline-start: .9rem !important; }
  .cmp-table td:first-child .ic { display: none; }
}

/* مبدّل اللغة */
.lang-switch { font-size: .88rem; opacity: .85; padding: .35rem .6rem; border-radius: 8px; white-space: nowrap; }
.lang-switch:hover { opacity: 1; background: rgba(255,255,255,.06); }
/* الجوال: مبدّل اللغة ينتقل لداخل القائمة حتى لا يدفع زر القائمة خارج الشاشة */
.lang-switch-nav { display: none; }
@media (max-width: 860px) {
  .topbar-cta .lang-switch { display: none; }
  .lang-switch-nav { display: block; }
}
/* منطقة الحذف: الحقول لا تتجاوز عرض البطاقة */
.danger-zone, .dz-item { max-width: 100%; overflow: hidden; }
.dz-form > * { min-width: 0; max-width: 100%; }
.dz-form .input { width: 100%; box-sizing: border-box; }
/* عناصر الشبكة لا تتمدد بسبب كلمة إنجليزية طويلة (صفحة التسجيل على الجوال) */
.auth-wrap > *, .form-row > *, .field { min-width: 0; }
.field .input, .field select { max-width: 100%; }
.plan-trial-note { text-align: center; font-size: .8rem; opacity: .7; margin: .45rem 0 0; }
/* أقسام يضيفها المدير */
.custom-block-in { max-width: 860px; }
.custom-block-in h2 { margin-bottom: 1rem; }
.custom-block-in p { line-height: 1.95; margin-bottom: .9rem; color: var(--mist, #cfc6e6); }
/* الأمان والدعم في صفحة الحساب */
.sec-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.06); flex-wrap: wrap; }
.sec-log { list-style: none; margin: 0; padding: 0; }
.sec-log li { display: flex; justify-content: space-between; gap: .6rem; padding: .4rem 0; border-bottom: 1px solid rgba(255,255,255,.05); flex-wrap: wrap; font-size: .9rem; }
.backup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .4rem; margin-top: .6rem; }
.backup-grid code { background: rgba(0,0,0,.25); padding: .35rem .5rem; border-radius: 8px; text-align: center; font-size: .95rem; }
.otp-input { font-size: 1.4rem; letter-spacing: .4em; text-align: center; }
.banner-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.tk { border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: .7rem .9rem; margin-bottom: .6rem; }
.tk summary { cursor: pointer; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.tk-thread { margin-top: .7rem; display: grid; gap: .5rem; }
.tk-msg { padding: .6rem .8rem; border-radius: 10px; background: rgba(255,255,255,.04); }
.tk-msg.is-admin { background: rgba(177,140,255,.12); border-inline-start: 3px solid #b18cff; }

/* v7: لا أزرار كبسولية. زوايا ناعمة موحّدة لكل الأزرار */
.btn, .btn-lg, .btn-sm, .btn-xl { border-radius: 10px !important; }
.cycle-switch { border-radius: 12px; }
.cycle-switch button { border-radius: 8px; }
