/* ============================================================
   أنورت — ملف التنسيق الموحّد
   الحلول المتمكنة للدعوات الالكترونية
   ============================================================ */

:root {
  /* ── ألوان العلامة التجارية: أنورت ── */
  --brand:         #6B2D8B;
  --brand-hover:   #561f72;
  --brand-light:   #8B4DAB;
  --brand-gold:    #F0B429;
  --brand-gold-hover: #D9A020;
  --brand-pink:    #E91E8C;
  --brand-pink-soft: #f06fba;

  /* ── السطوح الداكنة ── */
  --bg:            #0C0E1A;
  --bg-alt:        #111328;
  --surface:       #161836;
  --surface-2:     #111328;
  --surface-glow:  rgba(107,45,139,.06);
  --border:        #232548;
  --border-strong: #2E3060;

  /* ── النصوص ── */
  --text:          #EDE9F6;
  --text-muted:    #9B95B8;
  --text-soft:     #C4BDD8;

  /* ── الحالات ── */
  --success:       #66d19e;
  --success-bg:    #0f2a1c;
  --warning:       #e0c766;
  --warning-bg:    #2a2610;
  --danger:        #ffb3c0;
  --danger-bg:     #2a141a;
  --whatsapp:      #25d366;

  /* ── القياسات ── */
  --radius:        16px;
  --radius-sm:     10px;
  --radius-lg:     22px;
  --gap:           24px;

  /* ── الخطوط ── */
  --font:          'Segoe UI', Tahoma, Arial, sans-serif;
  --fs-body:       15px;

  /* ── الحركة ── */
  --ease-out:      cubic-bezier(0.16,1,0.3,1);
  --ease-spring:   cubic-bezier(0.34,1.56,0.64,1);
  --dur:           300ms;
}

/* ============================================================
   الأساسيات
   ============================================================ */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a { color: var(--brand); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 18px; }

/* توسيط عمودي — لصفحات الدخول والحالة */
body.centered {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

/* ============================================================
   الرأس
   ============================================================ */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 16px 24px; flex-wrap: wrap;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.site-header h1 { margin: 0; font-size: 19px; }
.site-header a  { color: var(--text-muted); text-decoration: none; font-size: 14px; }
.site-header a:hover { color: var(--text); }
.logo { font-size: 22px; font-weight: 700; color: var(--text); text-decoration: none; }

main { max-width: 1150px; margin: 24px auto; padding: 0 16px; display: grid; gap: var(--gap); }

/* ============================================================
   الحاويات
   ============================================================ */

/* .card = لوحة قسم داخل صفحة (لوحة التحكم، الإدارة) */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.card h2 { margin: 0 0 16px; font-size: 17px; }

/* .box = صندوق موسّط مستقل (دخول، تفعيل، حالة الدفع، ربط واتساب) */
.box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 34px; width: min(440px, 94vw);
}
.box.wide { width: min(560px, 94vw); text-align: center; }
.box h1 { margin: 0 0 6px; font-size: 22px; text-align: center; }
.box .sub { margin: 0 0 24px; text-align: center; color: var(--text-muted); font-size: 14px; }

/* ============================================================
   النماذج
   ============================================================ */
label { display: block; margin: 12px 0 6px; font-size: 14px; color: var(--text-soft); }

input, select, textarea {
  width: 100%; padding: 11px 13px; font-size: var(--fs-body);
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text); font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--brand); border-color: transparent;
}
input[type="file"] { padding: 9px; }

button, .btn {
  padding: 11px 20px; border: 0; border-radius: var(--radius-sm);
  background: var(--brand); color: #fff; font-size: var(--fs-body);
  font-weight: 600; cursor: pointer; font-family: inherit;
  text-decoration: none; display: inline-block; text-align: center;
}
button:hover, .btn:hover { background: var(--brand-hover); }
button.ghost, .btn.ghost { background: var(--border); color: var(--text); }
button.ghost:hover, .btn.ghost:hover { background: #2c405c; }
button:disabled { opacity: .55; cursor: not-allowed; }
.btn.block, button.block { display: block; width: 100%; padding: 13px; font-size: 16px; }

.row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.row-quad { grid-template-columns: 1fr 1fr auto auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }

/* ============================================================
   الرسائل والشارات
   ============================================================ */
.msg { margin-top: 14px; padding: 11px 14px; border-radius: var(--radius-sm);
       font-size: 14px; display: none; white-space: pre-line; }
.msg.show { display: block; }
.msg.ok   { background: var(--success-bg); color: var(--success); }
.msg.err  { background: var(--danger-bg);  color: var(--danger); }

.alert { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.8; }
.alert.err  { background: var(--danger-bg);  color: var(--danger); }
.alert.warn { background: var(--warning-bg); color: #f0d585; text-align: right; }
.alert.ok   { background: var(--success-bg); color: var(--success); }

.badge { padding: 3px 10px; border-radius: 20px; font-size: 12px; }
.badge.ok      { background: var(--success-bg); color: var(--success); }
.badge.pending { background: var(--warning-bg); color: var(--warning); }
.badge.err     { background: var(--danger-bg);  color: var(--danger); }

/* ============================================================
   الجداول
   ============================================================ */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 8px; text-align: right; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-weight: 600; }
td.ltr { direction: ltr; text-align: right; }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.pager a { padding: 7px 12px; border-radius: 8px; background: var(--surface-2);
           color: var(--text-soft); text-decoration: none; font-size: 14px; }
.pager a.active { background: var(--brand); color: #fff; }

a.wa { color: var(--whatsapp); text-decoration: none; font-size: 13px; }

/* ============================================================
   الإحصائيات
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat  { background: var(--surface-2); border-radius: 12px; padding: 16px; text-align: center; }
.stat b { display: block; font-size: 26px; margin-bottom: 4px; }
.stat span { color: var(--text-muted); font-size: 13px; }

.link-box { display: flex; gap: 8px; align-items: center; background: var(--surface-2);
            padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); }
.link-box code { flex: 1; font-size: 12px; color: var(--text-muted); overflow-wrap: anywhere; }

/* ============================================================
   معرض القوالب
   ============================================================ */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.tpl { border: 2px solid var(--border); border-radius: 10px; overflow: hidden;
       cursor: pointer; background: var(--surface-2); }
.tpl.active { border-color: var(--brand); }
.tpl img { width: 100%; display: block; aspect-ratio: 9/16; object-fit: cover; }
.tpl p { margin: 0; padding: 7px; text-align: center; font-size: 12px; color: var(--text-soft); }

/* ============================================================
   طرق الإرسال
   ============================================================ */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.mode { background: var(--surface-2); border: 2px solid var(--border); border-radius: 12px;
        padding: 18px; cursor: pointer; transition: border-color .15s; }
.mode:hover  { border-color: #3a4f6d; }
.mode.active { border-color: var(--brand); background: #12203a; }
.mode h3 { margin: 0 0 6px; font-size: 16px; }
.mode > p { margin: 0 0 10px; font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.mode ul { margin: 0; padding: 0; list-style: none; }
.mode li { font-size: 12.5px; color: #a9bcd4; padding: 3px 0; }
.mode li::before { content: '•'; color: var(--brand); margin-left: 7px; }
.mode-link { display: block; margin-top: 12px; padding: 9px; background: var(--brand);
             color: #fff; border-radius: 8px; text-align: center; font-size: 13px; text-decoration: none; }

.send-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.wa-stats { display: flex; gap: 20px; margin-top: 16px; font-size: 14px;
            color: var(--text-muted); flex-wrap: wrap; }
progress { width: 100%; height: 12px; margin-top: 12px; }

.sent-badge { font-size: 12px; padding: 2px 8px; border-radius: 12px; }
.s-sent    { background: var(--success-bg); color: var(--success); }
.s-pending { background: #1d2c40; color: var(--text-muted); }
.s-failed  { background: var(--danger-bg); color: #ff9db0; }

/* ============================================================
   المتجر (index.php) — تصميم عصري
   ============================================================ */

/* --- النافبار --- */
/* ─── شريط التنقل ─────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════
   المتجر — تصميم أنورت Premium
   UI/UX Pro Max: Modern Dark Cinema + Wedding Luxury
   ═══════════════════════════════════════════════════════════ */

/* ── شريط التنقل (glassmorphism) ─────────────────────────── */
.store-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12,14,26,.82);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(107,45,139,.12);
}
.store-nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 10px 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.store-logo { text-decoration: none; display: flex; align-items: center; }
.nav-logo-img { height: 50px; width: auto; transition: transform .3s var(--ease-out, ease); }
.store-logo:hover .nav-logo-img { transform: scale(1.04); }
.nav-links { display: flex; align-items: center; gap: 14px; }
.nav-privacy {
  color: var(--text-muted); text-decoration: none; font-size: 13px;
  transition: color .25s ease;
}
.nav-privacy:hover { color: var(--brand); }
.nav-login {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-muted); text-decoration: none; font-size: 14px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all .25s ease;
  cursor: pointer;
}
.nav-login:hover {
  background: rgba(107,45,139,.12);
  color: var(--text); border-color: var(--brand);
}

/* ── Hero — cinematic ambient glow ───────────────────────── */
.store-hero {
  position: relative; overflow: hidden;
  padding: 80px 24px 72px; text-align: center;
  background:
    radial-gradient(ellipse 65% 50% at 50% -5%, rgba(107,45,139,.22) 0%, transparent 55%),
    radial-gradient(circle at 25% 90%, rgba(233,30,140,.06) 0%, transparent 40%),
    radial-gradient(circle at 78% 15%, rgba(240,180,41,.05) 0%, transparent 35%);
}
.hero-glow {
  position: absolute; top: -130px; left: 50%; transform: translateX(-50%);
  width: 680px; height: 680px; border-radius: 50%;
  background: radial-gradient(circle,
    rgba(107,45,139,.18) 0%,
    rgba(240,180,41,.06) 35%,
    transparent 65%);
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: .5; transform: translateX(-50%) scale(1); }
  50%      { opacity: .85; transform: translateX(-50%) scale(1.1); }
}
.hero-content { position: relative; max-width: 740px; margin: 0 auto; }
.hero-logo-img {
  height: 110px; width: auto; margin-bottom: 28px;
  filter: drop-shadow(0 4px 20px rgba(107,45,139,.3));
  animation: fadeUp .6s ease both;
}
.hero-content h1 {
  font-size: clamp(26px, 4.5vw, 44px); font-weight: 800;
  margin: 0 0 20px; line-height: 1.4; color: #fff;
  animation: fadeUp .6s ease .1s both;
}
.hero-gradient-text {
  background: linear-gradient(135deg, var(--brand-gold) 10%, var(--brand-pink) 50%, var(--brand-light, #8B4DAB) 90%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  color: var(--text-muted); font-size: 17px; line-height: 1.9;
  margin: 0 auto 36px; max-width: 600px;
  animation: fadeUp .6s ease .2s both;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 34px; border-radius: var(--radius); font-size: 16px; font-weight: 700;
  background: linear-gradient(135deg, var(--brand), var(--brand-light, #8B4DAB));
  color: #fff; text-decoration: none;
  transition: all .3s ease;
  box-shadow: 0 4px 28px rgba(107,45,139,.35);
  cursor: pointer;
  animation: fadeUp .6s ease .3s both;
}
.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(107,45,139,.5);
}
.hero-cta svg { transition: transform .25s ease; }
.hero-cta:hover svg { transform: translateY(3px); }

.hero-cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-cta-wa {
  background: #25D366; box-shadow: 0 4px 28px rgba(37,211,102,.35);
}
.hero-cta-wa:hover { box-shadow: 0 10px 40px rgba(37,211,102,.5); }

/* ── كيف يعمل ──────────────────────────────────────────── */
.how-it-works {
  padding: 80px 0;
  background: var(--bg-alt, var(--surface-2));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-title {
  text-align: center; font-size: clamp(24px,4vw,30px);
  font-weight: 800; margin: 0 0 10px; color: #fff;
}
.section-sub {
  text-align: center; color: var(--text-muted); font-size: 15px;
  margin: 0 auto 50px; max-width: 560px; line-height: 1.8;
}
.flow-steps {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.flow-step {
  flex: 0 1 210px; text-align: center; padding: 0 14px;
  opacity: 0; animation: fadeUp .5s ease forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.flow-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(107,45,139,.18), rgba(240,180,41,.08));
  border: 1px solid rgba(107,45,139,.25);
  color: var(--brand-gold);
  transition: transform .3s ease, box-shadow .3s ease;
}
.flow-step:hover .flow-icon {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(107,45,139,.2);
}
.flow-num {
  font-size: 11px; font-weight: 800; color: var(--brand-gold);
  margin-bottom: 6px; letter-spacing: 1.5px;
}
.flow-step h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--text); }
.flow-step p  { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.8; }
.flow-connector {
  flex: 0 0 40px; display: flex; align-items: center; justify-content: center;
  color: var(--border-strong); padding-top: 20px;
}
@media (max-width: 700px) {
  .flow-connector { display: none; }
  .flow-steps { gap: 32px; }
}

/* ── معرض التصاميم الجاهزة ─────────────────────────────── */
.templates-gallery { padding: 60px 0; background: var(--bg-alt); }
.tpl-grid {
  display: grid; gap: 20px; padding: 16px 0 0;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 600px) { .tpl-grid { grid-template-columns: repeat(2, 1fr); }
  .tpl-grid .tpl-card:nth-child(3) { display: none; }
}
.tpl-card {
  text-align: center; border-radius: 14px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  transition: transform .25s, box-shadow .25s;
}
.tpl-card:hover { transform: translateY(-6px); box-shadow: 0 8px 30px rgba(107,45,139,.2); }
.tpl-card img { width: 100%; height: auto; display: block; }
.tpl-label {
  display: block; padding: 10px; font-weight: 600; font-size: .9rem;
  color: var(--text-main, #e8e8f0);
}

/* ── بطاقات الباقات ────────────────────────────────────── */
.store-packages { padding: 60px 0 90px; }
.pkg-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
}
@media (min-width: 1100px) { .pkg-grid { grid-template-columns: repeat(4, 1fr); } }

a.pkg-card {
  position: relative; text-decoration: none; color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 22px); padding: 30px 24px 24px;
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  animation: cardIn .45s ease both;
  animation-delay: calc(var(--i, 0) * .07s);
  cursor: pointer;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
a.pkg-card:hover {
  transform: translateY(-7px);
  box-shadow:
    0 24px 60px rgba(107,45,139,.18),
    0 0 0 1px rgba(107,45,139,.12),
    0 0 80px -20px rgba(240,180,41,.06);
  border-color: rgba(107,45,139,.35);
}

a.pkg-popular {
  border-color: rgba(240,180,41,.3);
  background: linear-gradient(170deg, #1c1040 0%, var(--surface) 55%);
  box-shadow: 0 0 0 1px rgba(240,180,41,.1), 0 8px 32px rgba(107,45,139,.1);
}
a.pkg-popular:hover {
  border-color: rgba(240,180,41,.5);
  box-shadow: 0 24px 60px rgba(240,180,41,.12), 0 0 0 1px rgba(240,180,41,.18);
}
.pkg-ribbon {
  position: absolute; top: -1px; right: 24px;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-hover, #D9A020));
  color: #1a0d2b; font-size: 11px; font-weight: 800;
  padding: 5px 16px 7px; border-radius: 0 0 10px 10px;
  letter-spacing: .3px;
  box-shadow: 0 4px 12px rgba(240,180,41,.3);
}

.pkg-head { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.pkg-type-row { display: flex; }
.pkg-type-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 600;
  transition: background .2s ease;
}
.tag-ready  { background: rgba(240,180,41,.1);  color: var(--brand-gold); border: 1px solid rgba(240,180,41,.22); }
.tag-custom { background: rgba(233,30,140,.08); color: #f06fba; border: 1px solid rgba(233,30,140,.18); }
.tag-wa     { background: rgba(37,211,102,.07); color: #4ade80; border: 1px solid rgba(37,211,102,.15); }
.tag-site   { background: rgba(107,45,139,.1); color: #b57ed3; border: 1px solid rgba(107,45,139,.22); }

.pkg-price-block {
  display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap;
  margin-bottom: 18px; padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.pkg-price-from { font-size: 12px; color: var(--text-muted); }
.pkg-amount {
  font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -1px;
  color: var(--brand-gold);
}
.pkg-currency { font-size: 16px; font-weight: 700; color: var(--text-soft); }
.pkg-per { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.pkg-old-price {
  flex-basis: 100%;
  font-size: 15px; font-weight: 600; color: var(--text-muted);
  text-decoration: line-through; text-decoration-color: #e74c3c; opacity: .8;
}

.pkg-description {
  color: var(--text-muted); font-size: 13px; margin: 0 0 16px;
  line-height: 1.8; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.pkg-features {
  list-style: none; padding: 0; margin: 0 0 24px; flex: 1;
}
.pkg-features li {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 0; font-size: 13.5px; color: var(--text-soft);
}
.pkg-features li svg { flex-shrink: 0; color: var(--brand-gold); }

.pkg-detail-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; border-radius: var(--radius);
  font-size: 15px; font-weight: 700; margin-top: auto;
  background: linear-gradient(135deg, var(--brand), var(--brand-light, #8B4DAB));
  color: #fff;
  transition: all .3s ease;
  box-shadow: 0 4px 16px rgba(107,45,139,.25);
}
a.pkg-card:hover .pkg-detail-cta {
  box-shadow: 0 8px 32px rgba(107,45,139,.4);
  background: linear-gradient(135deg, var(--brand-hover), var(--brand));
}
.pkg-detail-cta svg { transition: transform .25s ease; }
a.pkg-card:hover .pkg-detail-cta svg { transform: translateX(-4px); }

/* --- النافذة --- */
dialog {
  border: 0; border-radius: 22px; padding: 0;
  background: linear-gradient(170deg, #1a2744, #14202f);
  color: var(--text); width: min(440px, 92vw);
  max-height: 88vh; overflow-y: auto; overflow-x: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  border: 1px solid var(--border);
}
dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(6px); }
dialog form { padding: 28px; }
.dlg-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.dlg-header h3 { margin: 0; font-size: 20px; font-weight: 700; }
.dlg-close {
  background: none; border: 0; color: var(--text-muted); cursor: pointer;
  padding: 4px; border-radius: 8px; display: grid; place-items: center;
  transition: color .15s;
}
.dlg-close:hover { color: #fff; }
.dlg-summary {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 16px; border-radius: 12px;
  background: rgba(61,125,250,.08); border: 1px solid rgba(61,125,250,.15);
  margin-bottom: 20px; font-size: 14px;
}
.dlg-summary strong { color: #fff; font-size: 15px; }
.dlg-summary span { color: var(--text-muted); font-size: 13px; }
.dlg-field { margin-bottom: 14px; }
.dlg-field label { margin: 0 0 6px; display: block; font-size: 13px; color: var(--text-soft); }
.dlg-field small { color: var(--text-muted); }
.dlg-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; border: 0; border-radius: 14px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  background: linear-gradient(135deg, #3d7dfa, #6366f1);
  color: #fff; font-family: inherit; margin-top: 8px;
  box-shadow: 0 4px 20px rgba(61,125,250,.3);
  transition: all .2s;
}
.dlg-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(61,125,250,.45);
}

/* ─── الفوتر ─────────────────────────────────────────────── */
.store-footer {
  border-top: 1px solid var(--border); padding: 36px 0;
  color: var(--text-muted); font-size: 13px;
  background: var(--bg-alt, var(--surface-2));
}
.store-footer .wrap {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; text-align: center;
}
.footer-logo { height: 48px; width: auto; opacity: .7; }
/* ── لماذا أنورت / المناسبات / الأسئلة الشائعة ─────────────── */
.why-anwart, .occasions, .home-faq { padding: 64px 0; }
.occasions { background: var(--surface-2, transparent); }

.why-grid, .occ-grid {
  display: grid; gap: 18px; margin-top: 34px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.why-card, .occ-card {
  padding: 26px 22px; border-radius: var(--radius-md, 14px);
  border: 1px solid var(--border); background: var(--surface, transparent);
  transition: transform .25s ease, border-color .25s ease;
}
.why-card:hover, .occ-card:hover { transform: translateY(-4px); border-color: var(--brand); }
.why-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(107,45,139,.12); color: var(--brand);
}
.why-card h3, .occ-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--text); }
.why-card p, .occ-card p { font-size: 14px; color: var(--text-muted); line-height: 1.8; }

.faq-list { max-width: 760px; margin: 34px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface, transparent); overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px; cursor: pointer; font-size: 15px; color: var(--text);
  list-style: none; position: relative; padding-inline-end: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; inset-inline-end: 20px; top: 50%;
  transform: translateY(-50%); font-size: 20px; color: var(--brand);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-item p { padding: 16px 20px; font-size: 14px; color: var(--text-muted); line-height: 1.9; }

/* ── نموذج شراكة القاعات ─────────────────────────────────── */
.partner-form { display: flex; flex-direction: column; gap: 14px; text-align: right; }
.partner-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 14px; color: var(--text-muted);
}
.partner-form input, .partner-form textarea {
  padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-2, transparent);
  color: var(--text); font: inherit; font-size: 15px;
}
.partner-form input:focus, .partner-form textarea:focus {
  outline: none; border-color: var(--brand);
}
.partner-form textarea { resize: vertical; }

.footer-privacy { color: var(--text-muted); text-decoration: none; font-size: 12px; }
.footer-privacy:hover { color: var(--brand); text-decoration: underline; }

/* --- صفحة المتجر: إزالة رأس الموقع الافتراضي --- */
body.store-page .site-header { display: none; }

/* القسم القديم (للتوافق) */
h2.section { text-align: center; margin: 52px 0 26px; font-size: 26px; }

.site-footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 26px 0;
               color: #7b8ca3; font-size: 13px; text-align: center; }

/* ============================================================
   صفحات الحالة (الدفع، التفعيل)
   ============================================================ */
.status-icon { font-size: 52px; margin-bottom: 10px; }
.ref { display: inline-block; background: var(--surface-2); border: 1px solid var(--border-strong);
       padding: 6px 14px; border-radius: 8px; font-size: 13px;
       color: var(--text-muted); margin-bottom: 20px; }
.reveal-box { background: var(--surface-2); border: 1px solid var(--brand);
              border-radius: 12px; padding: 16px; margin: 20px 0; }
.reveal-box code { display: block; font-size: 12px; color: #8fb4ff;
                   overflow-wrap: anywhere; margin-bottom: 12px; }
.info-box { background: var(--surface-2); border-radius: 10px; padding: 12px 14px;
            font-size: 14px; margin-bottom: 16px; }
.info-box b { color: var(--success); }
.steps-list { text-align: right; background: var(--surface-2); border-radius: 10px;
              padding: 16px 18px; margin-bottom: 20px; font-size: 14px;
              color: var(--text-soft); line-height: 2; }

/* ============================================================
   رمز الإدارة
   ============================================================ */
.pin-input { font-size: 18px; text-align: center; letter-spacing: 6px; }

/* ============================================================
   ماسح البوابة
   ============================================================ */
body.scanner { min-height: 100vh; display: flex; flex-direction: column;
               align-items: center; padding: 16px; }
.scanner-title { font-size: 18px; margin: 8px 0 16px; text-align: center; }
#reader { width: min(420px, 94vw); border-radius: var(--radius); overflow: hidden; }
#result { width: min(420px, 94vw); margin-top: 18px; padding: 22px; border-radius: var(--radius);
          text-align: center; font-size: 18px; display: none; line-height: 1.7; }
#result.success      { background: var(--success-bg); color: #8fe3b6; border: 1px solid #1e5c3c; }
#result.used         { background: var(--warning-bg); color: #f0d585; border: 1px solid #6b5a1e; }
#result.invalid,
#result.unauthorized { background: var(--danger-bg); color: var(--danger); border: 1px solid #7a2f3f; }
#result b { display: block; font-size: 24px; margin-top: 8px; }
.counter { margin-top: 14px; color: var(--text-muted); font-size: 14px; }

/* ============================================================
   ربط الواتساب
   ============================================================ */
#qrBox { background: #fff; border-radius: var(--radius); padding: 14px;
         min-height: 300px; min-width: 300px; display: grid; place-items: center; }
#qrBox img { display: block; width: 290px; height: 290px; }
.spinner { color: #666; font-size: 14px; }
.state { margin-top: 20px; padding: 13px; border-radius: 10px; font-size: 15px; }
.state.connected { background: var(--success-bg); color: #8fe3b6; }
.state.waiting   { background: var(--surface-2); color: var(--text-muted); }
.state.error     { background: var(--danger-bg); color: var(--danger); }

/* ============================================================
   محرر مواضع التصميم
   ============================================================ */
.editor-layout { display: grid; grid-template-columns: minmax(280px, 405px) 1fr;
                 gap: 24px; align-items: start; }
@media (max-width: 820px) { .editor-layout { grid-template-columns: 1fr; } }

.stage { position: relative; width: 100%; max-width: 405px; aspect-ratio: 1080/1920;
         background: var(--surface-2); border-radius: 12px; overflow: hidden;
         border: 1px solid var(--border-strong); touch-action: none; user-select: none; }
.stage img.bg { position: absolute; inset: 0; width: 100%; height: 100%;
                object-fit: cover; pointer-events: none; }

.handle { position: absolute; cursor: move; border: 2px dashed rgba(61,125,250,.9);
          background: rgba(61,125,250,.12); border-radius: 6px; display: grid;
          place-items: center; text-align: center; overflow: hidden; }
.handle.active { border-style: solid; box-shadow: 0 0 0 2px rgba(61,125,250,.35); }
.handle-label { position: absolute; top: -1px; right: -1px; background: var(--brand);
                color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 0 4px 0 6px; }
#nameHandle span.preview-text { font-weight: 600; white-space: nowrap; line-height: 1; }
#qrHandle .qr-mock { width: 78%; height: 78%; background:
   repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0 0/ 33% 33%; border: 3px solid #fff; }

.editor-controls .field { margin-bottom: 14px; }
.editor-controls input[type="range"] { padding: 0; }
.editor-controls input[type="color"] { height: 42px; padding: 4px; }
.val { color: var(--brand); font-weight: 600; }

/* ============================================================
   صفحة الباقة التفصيلية (package.php)
   ============================================================ */

body.pkg-detail-page .site-header { display: none; }

/* فتات الخبز */
.breadcrumb-nav { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; align-items: center; gap: 6px; list-style: none;
              margin: 0; padding: 10px 0; font-size: 13px; flex-wrap: wrap; }
.breadcrumb li:not(:last-child)::after { content: '/'; color: var(--text-muted); margin-right: 6px; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb li[aria-current] { color: var(--text); }

/* Hero الباقة */
.pkg-detail-hero {
  background: linear-gradient(160deg, #1a0d2b 0%, #0f1724 60%);
  border-bottom: 1px solid var(--border);
  padding: 52px 0 44px;
}
.pkg-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pd-tag { display: inline-flex; align-items: center; gap: 6px;
          padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 500; }
.tag-ready   { background: rgba(240,180,41,.15); color: #F0B429; border: 1px solid rgba(240,180,41,.3); }
.tag-custom  { background: rgba(233,30,140,.12); color: #f06fba; border: 1px solid rgba(233,30,140,.25); }
.tag-wa      { background: rgba(37,211,102,.12); color: #25d366;  border: 1px solid rgba(37,211,102,.25); }
.tag-site    { background: rgba(107,45,139,.15); color: #b57ed3;  border: 1px solid rgba(107,45,139,.3); }

.pkg-detail-title { font-size: clamp(22px, 4vw, 34px); margin: 0 0 12px; font-weight: 700; line-height: 1.3; }
.pkg-detail-desc  { font-size: 16px; color: var(--text-soft); max-width: 680px; margin: 0 0 24px; line-height: 1.8; }

.pkg-detail-price-badge {
  display: inline-flex; align-items: baseline; gap: 4px; flex-wrap: wrap;
  background: rgba(107,45,139,.2); border: 1px solid rgba(107,45,139,.4);
  border-radius: 12px; padding: 10px 18px;
}
.pdb-from { font-size: 13px; color: var(--text-muted); }
.pdb-amount { font-size: 32px; font-weight: 700; color: var(--brand-gold); }
.pdb-cur, .pdb-per { font-size: 14px; color: var(--text-muted); }
.pdb-old {
  flex-basis: 100%;
  font-size: 15px; font-weight: 600; color: var(--text-muted);
  text-decoration: line-through; text-decoration-color: #e74c3c; opacity: .8;
}

/* الشبكة الرئيسية */
.pkg-detail-body { padding: 40px 0 80px; }
.pkg-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 860px) { .pkg-detail-grid { grid-template-columns: 1fr; } }

/* بطاقات المعلومات */
.pd-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.pd-card-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 700; margin: 0 0 18px;
  color: var(--text);
}
.pd-card-title svg { color: var(--brand-gold); flex-shrink: 0; }

/* قائمة المزايا */
.pd-features-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pd-features-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.pd-features-list svg { color: var(--brand-gold); flex-shrink: 0; margin-top: 2px; }

/* خطوات كيف يعمل */
.pd-how-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.pd-how-list li { display: flex; align-items: flex-start; gap: 14px; }
.pd-how-num {
  width: 32px; height: 32px; flex-shrink: 0;
  background: var(--brand); color: #fff;
  border-radius: 50%; display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
}
.pd-how-list strong { display: block; font-size: 15px; margin-bottom: 3px; }
.pd-how-list p { margin: 0; font-size: 14px; color: var(--text-soft); }

/* FAQ */
.pd-faq { display: flex; flex-direction: column; gap: 8px; }
.pd-faq details { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.pd-faq summary {
  padding: 13px 16px; cursor: pointer; font-size: 15px; font-weight: 500;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.pd-faq summary::-webkit-details-marker { display: none; }
.pd-faq summary::after { content: '+'; font-size: 20px; color: var(--brand); transition: transform .2s; }
.pd-faq details[open] summary::after { transform: rotate(45deg); }
.pd-faq details[open] { background: var(--surface-2); }
.pd-faq details p { margin: 0; padding: 0 16px 14px; font-size: 14px; color: var(--text-soft); }

/* بطاقة الطلب اللاصقة */
.order-sticky { position: sticky; top: 20px; }
.order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.order-card-head {
  background: linear-gradient(135deg, var(--brand) 0%, #3d1260 100%);
  padding: 18px 22px;
}
.order-card-head h2 { margin: 0; font-size: 17px; color: #fff; }

/* حاسبة الطلب */
.order-calc { padding: 20px 22px; border-bottom: 1px solid var(--border); }
.oc-label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.oc-range { color: var(--text-muted); font-size: 12px; }
.oc-stepper { display: flex; align-items: center; gap: 0; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; }
.oc-btn { width: 42px; height: 42px; background: var(--surface-2); border: none;
          font-size: 20px; cursor: pointer; color: var(--text); flex-shrink: 0; }
.oc-btn:hover { background: var(--brand); color: #fff; }
.oc-input { flex: 1; border: none; background: transparent; text-align: center;
            font-size: 18px; font-weight: 600; color: var(--text); padding: 0; min-width: 0; }
.oc-input::-webkit-inner-spin-button, .oc-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.oc-total-row { display: flex; justify-content: space-between; align-items: center;
                margin-top: 14px; font-size: 14px; }
.oc-total-row strong { font-size: 22px; color: var(--brand-gold); }
.oc-price-note { font-size: 12px; color: var(--text-muted); margin-top: 4px; text-align: left; direction: ltr; }

/* نموذج الطلب */
.order-form { padding: 20px 22px; }
.of-field { margin-bottom: 14px; }
.of-field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 5px; }
.of-field small { font-size: 11px; }

.order-submit-btn {
  width: 100%; padding: 14px;
  background: var(--brand);
  color: #fff; border: none; border-radius: 10px;
  font-size: 16px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s, transform .1s;
}
.order-submit-btn:hover { background: var(--brand-hover); transform: translateY(-1px); }
.order-secure-note { font-size: 12px; color: var(--text-muted); text-align: center;
                     margin: 10px 0 0; display: flex; align-items: center; justify-content: center; gap: 4px; }

/* روابط الباقات الأخرى */
.pd-other-pkgs { margin-top: 14px; text-align: center; }
.pd-other-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.pd-other-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--text-soft); text-decoration: none;
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px;
}
.pd-other-link:hover { border-color: var(--brand); color: var(--brand); }

/* ─── إضافات index.php ──────────────────────────────────────── */
.pkg-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.pkg-detail-link {
  display: block; text-align: center; padding: 9px;
  font-size: 14px; color: var(--text-muted); text-decoration: none;
  border: 1px solid var(--border); border-radius: 9px;
  transition: border-color .2s, color .2s;
}
.pkg-detail-link:hover { border-color: var(--brand); color: var(--brand); }

/* Footer مُحسَّن */
.store-footer .wrap span:last-child { color: var(--text-muted); font-size: 12px; }

/* ============================================================
   تحسينات الجوال الشاملة
   ============================================================ */
@media (max-width: 640px) {

  /* ── لوحة التحكم: حقول النموذج ─────────────────────────── */
  input, select, textarea {
    font-size: 16px; /* يمنع التكبير التلقائي في iOS */
    padding: 12px 14px;
    border-radius: 10px;
  }

  label { font-size: 15px; margin: 14px 0 6px; }

  .row {
    grid-template-columns: 1fr;
  }
  .row > *:last-child { margin-top: 0; }

  .grid {
    grid-template-columns: 1fr;
  }

  button, .btn {
    font-size: 15px;
    padding: 13px 18px;
  }

  /* الحقول المتجاورة (اسم عريس + عروس) */
  .field-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* بطاقات المعلومات في لوحة التحكم */
  .card { padding: 16px; border-radius: 14px; }
  .card h2 { font-size: 17px; }

  /* جداول اللوحة: اجعلها قابلة للتمرير */
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 560px; }

  /* إحصائيات */
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-val { font-size: 26px; }

  /* ── صفحة الباقة: اعكس الترتيب (الطلب أولاً) ──────────── */
  .pkg-detail-grid {
    display: flex;
    flex-direction: column;
  }
  /* بطاقة الطلب تظهر أولاً */
  .pkg-detail-order { order: -1; }
  .pkg-detail-info  { order:  1; }

  /* إلغاء sticky على الجوال */
  .order-sticky { position: static; }

  /* حاسبة الضيوف أكبر */
  .oc-btn  { width: 48px; height: 48px; font-size: 22px; }
  .oc-input { font-size: 20px; }
  .oc-total-row strong { font-size: 24px; }

  /* حقول نموذج الطلب */
  .of-field input, .of-field select {
    font-size: 16px;
    padding: 13px 14px;
  }

  /* زر الدفع */
  .order-submit-btn {
    padding: 16px;
    font-size: 17px;
  }

  /* كود الخصم */
  .coupon-apply-btn {
    padding: 0 14px;
    font-size: 15px;
    min-height: 48px;
  }

  /* بطاقات المعلومات */
  .pd-card { padding: 18px 16px; }
  .pd-card-title { font-size: 16px; }

  /* رأس صفحة الباقة */
  .pkg-detail-hero .wrap { padding: 24px 16px; }
  .pkg-detail-title { font-size: 22px; }
  .pdb-amount { font-size: 36px; }

  /* شريط التنقل */
  .store-nav-inner { padding: 0 16px; }

  /* مقاطعة breadcrumb */
  .breadcrumb { font-size: 13px; }
}

/* تحسين وضوح رسالة القيمة والثقة في الصفحة الرئيسية */
.store-hero .hero-content > p:not(.hero-trust) {
  color: #d9d5e6;
  font-weight: 500;
  max-width: 650px;
  margin-bottom: 16px;
}
.hero-trust {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 8px 14px;
  margin: 0 auto 32px !important;
  border: 1px solid rgba(240,180,41,.28);
  border-radius: 999px;
  background: rgba(240,180,41,.08);
  color: #f2dfaa !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}
@media (max-width: 640px) {
  .hero-trust { font-size: 12px !important; padding: 8px 12px; }
}

/* ملخص سريع يساعد العميل على اتخاذ قرار الباقة */
.pkg-decision-strip { background: rgba(107,45,139,.10); border-bottom: 1px solid rgba(107,45,139,.22); }
.pkg-decision-strip .wrap { display:flex; flex-wrap:wrap; gap:10px 18px; align-items:center; padding:14px 18px; color:var(--text-soft); font-size:14px; }
.pkg-decision-strip strong { color:#fff; }
.pkg-decision-strip span::before { content:'✓'; color:var(--brand-gold); margin-left:7px; font-weight:800; }
.order-next-step { margin:8px 0 0; color:var(--text-muted); font-size:13px; line-height:1.7; }
.order-secure-note span { display:inline-block; margin-top:4px; color:var(--text-soft); }
@media (max-width:640px) { .pkg-decision-strip .wrap { font-size:13px; gap:7px 12px; } }

/* ============================================================
   تصنيف قوالب بطاقة الدعوة
   ============================================================ */
.template-category-help { color:var(--text-muted); font-size:13px; line-height:1.7; margin:-4px 0 14px; }
.template-category-tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; margin-bottom:12px; }
.template-category-tab { min-height:46px; padding:10px 12px; border:1px solid var(--border-strong); border-radius:10px; background:var(--surface-2); color:var(--text-soft); font:inherit; font-size:13px; font-weight:700; cursor:pointer; transition:border-color .16s ease,background .16s ease,color .16s ease,transform .16s ease; }
.template-category-tab:hover { border-color:#8966ad; background:#202443; color:#fff; }
.template-category-tab.active { border-color:var(--brand); background:linear-gradient(135deg,#6b2d8b,#9b3c9d); color:#fff; box-shadow:0 6px 16px rgba(107,45,139,.24); }
.template-category-summary { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 14px; margin-bottom:14px; border:1px solid var(--border); border-radius:10px; background:rgba(255,255,255,.025); }
.template-category-summary strong { display:block; color:var(--brand-gold); font-size:14px; margin-bottom:3px; }
.template-category-summary span { display:block; color:var(--text-muted); font-size:12px; line-height:1.6; }
.template-general-link { flex:0 0 auto; padding:8px 11px; border:1px solid #465273; border-radius:8px; background:transparent; color:#c3cee8; font:inherit; font-size:12px; cursor:pointer; }
.template-general-link:hover { border-color:var(--brand); color:#fff; }
.tpl[hidden] { display:none !important; }
@media (max-width:720px) { .template-category-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); } .template-category-summary { align-items:flex-start; flex-direction:column; } }
@media (max-width:390px) { .template-category-tabs { grid-template-columns:1fr; } .template-category-tab { min-height:42px; } }

/* ============================================================
   لوحة العميل — إعادة تصميم تجربة الاستخدام
   ============================================================ */
.dashboard-page {
  min-height: 100vh;
  background:
    radial-gradient(900px 460px at 92% -12%, rgba(107,45,139,.24), transparent 60%),
    radial-gradient(740px 420px at -8% 18%, rgba(233,30,140,.09), transparent 64%),
    var(--bg);
}
.dashboard-page::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.016) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.016) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 74%);
}
.client-topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding: 13px max(22px, calc((100vw - 1240px) / 2));
  background: rgba(12,14,26,.82); backdrop-filter: blur(22px) saturate(1.25); -webkit-backdrop-filter: blur(22px) saturate(1.25);
  border-bottom: 1px solid rgba(160,128,219,.14);
}
.client-topbar__brand, .client-topbar__nav { display: flex; align-items: center; gap: 14px; }
.client-topbar__logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: rgba(255,255,255,.035); border: 1px solid rgba(240,180,41,.18); }
.client-topbar__logo img { width: 32px; height: 32px; object-fit: contain; }
.client-topbar__eyebrow, .dashboard-eyebrow { display: block; color: var(--brand-gold); font-size: 11px; line-height: 1.3; font-weight: 800; letter-spacing: .04em; }
.client-topbar h1 { margin: 2px 0 0; color: var(--text); font-size: 15px; line-height: 1.25; }
.client-topbar__nav { gap: 6px; }
.client-topbar__nav a { color: var(--text-muted); text-decoration: none; font-size: 13px; font-weight: 650; padding: 9px 11px; border-radius: 9px; transition: color var(--dur) ease, background var(--dur) ease; }
.client-topbar__nav a:not(.client-topbar__logout):hover { color: var(--text); background: rgba(255,255,255,.055); }
.client-topbar__nav .client-topbar__logout { color: #ffc0ca; background: rgba(255,132,157,.08); border: 1px solid rgba(255,132,157,.15); }
.event-countdown {
  display: flex; align-items: center; justify-content: center; gap: 13px;
  min-height: 42px; padding: 8px 20px; color: var(--text);
  background: linear-gradient(90deg, rgba(107,45,139,.96), rgba(141,54,139,.96)); border-bottom: 1px solid rgba(240,180,41,.23);
  box-shadow: 0 8px 22px rgba(0,0,0,.13);
}
.event-countdown__label { color: #f0d9f9; font-size: 13px; }
.event-countdown strong { color: #fff5d5; font-size: 15px; font-variant-numeric: tabular-nums; }
.dashboard-main { max-width: 1240px; gap: 20px; margin: 28px auto 48px; }
.dashboard-hero {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr); gap: 18px;
  position: relative; overflow: hidden; padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(174,132,226,.22); border-radius: 24px;
  background: linear-gradient(132deg, rgba(28,29,65,.98), rgba(18,19,43,.98));
  box-shadow: 0 24px 64px rgba(0,0,0,.17);
}
.dashboard-hero::after { content: ''; position: absolute; width: 280px; height: 280px; border-radius: 50%; left: -125px; bottom: -155px; background: radial-gradient(circle, rgba(233,30,140,.16), transparent 69%); pointer-events: none; }
.dashboard-hero__copy, .dashboard-hero__status, .dashboard-scanner { position: relative; z-index: 1; }
.dashboard-hero__copy h2 { max-width: 650px; margin: 8px 0 8px; color: #fff; font-size: clamp(24px, 3vw, 36px); line-height: 1.25; letter-spacing: -.02em; }
.dashboard-hero__copy p { max-width: 600px; margin: 0; color: var(--text-soft); font-size: 15px; }
.dashboard-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.dashboard-primary-action { background: linear-gradient(135deg, var(--brand-pink), var(--brand)); box-shadow: 0 10px 24px rgba(107,45,139,.32); }
.dashboard-primary-action:hover { background: linear-gradient(135deg, #d9157c, var(--brand-hover)); }
.dashboard-text-action { color: #dfc4ff; text-decoration: none; font-size: 13px; font-weight: 700; padding: 8px 4px; }
.dashboard-text-action:hover { color: #fff; text-decoration: underline; }
.dashboard-hero__status { align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 14px; min-height: 148px; padding: 20px; border-radius: 17px; background: rgba(8,10,28,.45); border: 1px solid rgba(255,255,255,.08); }
.hero-status__top, .hero-status__foot { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.hero-status__top span, .hero-status__foot { color: var(--text-muted); font-size: 12px; }
.hero-status__top strong { color: #fff; font-size: 25px; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-status__top strong small { color: var(--text-muted); font-size: 12px; font-weight: 600; }
.hero-status__track { height: 8px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.1); }
.hero-status__track span { display: block; height: 100%; min-width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand-gold), #f3ce69); box-shadow: 0 0 18px rgba(240,180,41,.5); }
.dashboard-scanner { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; padding: 13px 15px; border-radius: 14px; background: rgba(8,10,28,.32); border: 1px solid rgba(255,255,255,.075); }
.dashboard-scanner__header { display: flex; align-items: center; gap: 8px; min-width: 118px; color: var(--text); font-size: 13px; font-weight: 800; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(102,209,158,.12); }
.dashboard-scanner p { flex: 1; margin: 0; color: var(--text-muted); font-size: 12px; }
.dashboard-scanner__link { display: flex; align-items: center; gap: 9px; min-width: min(470px, 100%); padding: 6px; border-radius: 10px; background: rgba(0,0,0,.17); }
.dashboard-scanner__link code { flex: 1; overflow: hidden; color: #c9c0dc; font-size: 11px; direction: ltr; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-scanner__link button { padding: 7px 10px; white-space: nowrap; font-size: 12px; }
.dashboard-journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dashboard-journey a { display: flex; align-items: center; gap: 10px; min-height: 72px; padding: 12px; color: var(--text); text-decoration: none; border: 1px solid var(--border); border-radius: 14px; background: rgba(22,24,54,.72); transition: transform var(--dur) var(--ease-out), border-color var(--dur) ease, background var(--dur) ease; }
.dashboard-journey a:hover { transform: translateY(-2px); border-color: rgba(240,180,41,.46); background: rgba(36,35,75,.92); }
.dashboard-journey a > span { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; color: var(--brand-gold); font-size: 12px; font-weight: 850; border-radius: 9px; background: rgba(240,180,41,.09); }
.dashboard-journey strong, .dashboard-journey small { display: block; }
.dashboard-journey strong { font-size: 13px; line-height: 1.35; }
.dashboard-journey small { margin-top: 2px; color: var(--text-muted); font-size: 11px; line-height: 1.35; }
.dashboard-page .card.dashboard-panel { padding: clamp(20px, 3vw, 30px); border-radius: 19px; border-color: rgba(87,91,157,.34); box-shadow: 0 14px 38px rgba(0,0,0,.09); }
.dashboard-panel__heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; padding-bottom: 15px; margin-bottom: 19px; border-bottom: 1px solid rgba(156,157,211,.13); }
.dashboard-panel__heading h2 { margin: 4px 0 0; color: #fff; font-size: 20px; }
.dashboard-panel__hint { max-width: 280px; padding-top: 3px; color: var(--text-muted); font-size: 12px; line-height: 1.55; text-align: left; }
.dashboard-panel--event > h2 { color: #fff; font-size: 20px; }
.dashboard-panel--event > h2::before { content: 'الخطوة الأولى'; display: block; margin-bottom: 3px; color: var(--brand-gold); font-size: 11px; font-weight: 800; }
.dashboard-panel .row { gap: 15px; }
.dashboard-panel label { margin-top: 0; font-weight: 650; }
.dashboard-panel input, .dashboard-panel select, .dashboard-panel textarea { min-height: 46px; transition: border-color var(--dur) ease, box-shadow var(--dur) ease, background var(--dur) ease; }
.dashboard-panel input:hover, .dashboard-panel select:hover, .dashboard-panel textarea:hover { border-color: rgba(194,158,236,.5); }
.dashboard-panel .template-category-help { margin: -5px 0 16px; color: var(--text-muted); font-size: 13px; }
.dashboard-panel--guest { border-right: 3px solid rgba(240,180,41,.7) !important; }
.dashboard-panel--import { border-right: 3px solid rgba(107,45,139,.75) !important; }
.dashboard-panel--delivery { border-right: 3px solid rgba(102,209,158,.7) !important; }
.dashboard-panel--analytics .stats { gap: 10px; }
.dashboard-panel--analytics .stat { border: 1px solid rgba(255,255,255,.055); background: linear-gradient(140deg, rgba(26,27,61,.9), rgba(16,18,41,.9)); }
.dashboard-panel--guests { overflow: hidden; }
.dashboard-panel--guests > h2 { color: #fff; font-size: 20px; }
.dashboard-panel--guests form[method="get"] { align-items: center; padding: 9px; border: 1px solid rgba(156,157,211,.16); border-radius: 13px; background: rgba(5,7,20,.17); }
.dashboard-panel--guests form[method="get"] input { min-height: 42px; border-color: transparent; background: transparent; }
.dashboard-panel--guests .table-scroll { border: 1px solid rgba(156,157,211,.16); border-radius: 13px; }
.dashboard-panel--guests table { overflow: hidden; }
.dashboard-panel--guests th { padding: 13px 11px; color: #bdb6d2; font-size: 12px; background: rgba(9,11,29,.35); }
.dashboard-panel--guests td { padding: 13px 11px; }
.dashboard-panel--guests tbody tr { transition: background var(--dur) ease; }
.dashboard-panel--guests tbody tr:hover { background: rgba(107,45,139,.09); }
.dashboard-page progress { overflow: hidden; height: 9px; border: 0; border-radius: 99px; background: rgba(255,255,255,.09); }
.dashboard-page progress::-webkit-progress-bar { background: rgba(255,255,255,.09); border-radius: 99px; }
.dashboard-page progress::-webkit-progress-value { border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand-pink)); }
.dashboard-page progress::-moz-progress-bar { border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand-pink)); }
@media (max-width: 840px) {
  .client-topbar { padding: 11px 16px; }
  .client-topbar__nav a:not(.client-topbar__logout) { display: none; }
  .dashboard-main { margin-top: 18px; }
  .dashboard-hero { grid-template-columns: 1fr; }
  .dashboard-hero__status { min-height: auto; }
  .dashboard-scanner { grid-column: auto; align-items: stretch; flex-direction: column; gap: 9px; }
  .dashboard-scanner__link { min-width: 0; width: 100%; }
  .dashboard-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .client-topbar__logo { width: 38px; height: 38px; }
  .client-topbar__logo img { width: 28px; height: 28px; }
  .client-topbar__eyebrow { font-size: 10px; }
  .client-topbar h1 { max-width: 175px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .event-countdown { gap: 7px; padding: 8px 14px; }
  .event-countdown__label { font-size: 11px; }
  .event-countdown strong { font-size: 12px; }
  .dashboard-main { padding: 0 12px; }
  .dashboard-hero { padding: 22px 18px; border-radius: 18px; }
  .dashboard-hero__copy h2 { font-size: 26px; }
  .dashboard-hero__actions > * { width: 100%; }
  .dashboard-hero__actions .dashboard-text-action { text-align: center; }
  .dashboard-journey { grid-template-columns: 1fr; }
  .dashboard-journey a { min-height: 62px; }
  .dashboard-page .card.dashboard-panel { padding: 18px; border-radius: 16px; }
  .dashboard-panel__heading { align-items: start; flex-direction: column; gap: 5px; }
  .dashboard-panel__hint { max-width: none; padding: 0; text-align: right; }
  .dashboard-panel .row, .dashboard-panel .row-quad { grid-template-columns: 1fr; }
  .dashboard-panel--guests form[method="get"] { align-items: stretch; flex-direction: column; }
  .dashboard-panel--guests form[method="get"] .ghost { width: 100%; }
}
