/* ===== Dawaty — نظام تصميم المنصة (هبوط + تسجيل + لوحة تحكم) ===== */
:root {
  --ink: #1c1a17;
  --muted: #6d675f;
  --paper: #fffdf9;
  --paper-soft: #faf5ec;
  --gold: #b9924f;
  --gold-deep: #8a6a2f;
  --emerald: #16382f;
  --line: rgba(28, 26, 23, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --font-ar: "Cairo", system-ui, "Segoe UI", sans-serif;
  --font-display-ar: "Aref Ruqaa", "Amiri", serif;
  --font-en: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ar);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap-sm { width: 100%; max-width: 480px; margin: 0 auto; padding: 0 20px; }

/* ——— شريط علوي ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 249, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-family: var(--font-display-ar);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* شكل هندسي بـ CSS بدل رمز يونيكود، اتساقًا مع قاعدة عدم استخدام أي إيموجي في المنصة */
.brand .dot {
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: 0 0 auto;
  display: inline-block;
}
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 0.92rem; }
.nav-links a:hover { color: var(--gold-deep); }
.nav-cta { display: flex; gap: 10px; }

/* ——— أزرار ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--gold); }
.btn-solid { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-solid:hover { filter: brightness(1.06); }
.btn-dark { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.ic { width: 18px; height: 18px; flex: 0 0 auto; }

/* ——— قسم ——— */
.sec { padding: 72px 0; }
.sec-tight { padding: 40px 0; }
.eyebrow {
  font-family: var(--font-en);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--gold-deep);
  text-align: center;
  margin: 0 0 10px;
}
/*
 * ملاحظة مهمة: خط Aref Ruqaa (font-display-ar) خط عربي متصل الحروف (calligraphic)
 * مصمم لكلمات قصيرة/أسماء فقط. استخدامه في عناوين طويلة متعددة الكلمات يسبب
 * تراكب وتشابك الحروف بصريًا. لذلك العناوين الطويلة هنا بخط Cairo العادي بوزن ثقيل،
 * ويبقى Aref Ruqaa محصورًا في العناصر القصيرة جدًا (البراند، أسماء العروسين، كلمة واحدة).
 */
.h1 {
  font-family: var(--font-ar);
  font-weight: 800;
  font-size: clamp(1.9rem, 5.6vw, 3rem);
  line-height: 1.35;
  text-align: center;
  margin: 0 0 16px;
}
.h2 {
  font-family: var(--font-ar);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  text-align: center;
  margin: 0 0 8px;
}
.lead {
  text-align: center;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 560px;
  margin: 0 auto 34px;
}

/* ——— كروت ——— */
.cards { display: grid; gap: 18px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.55);
}
/* Aref Ruqaa هنا كان يسبب نفس مشكلة تراكب الحروف مع عناوين "كيف تعمل" المتعددة الكلمات */
.card h3 { font-family: var(--font-ar); font-weight: 800; margin: 0 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ——— معرض الاستايلات ——— */
.styles-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.style-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  isolation: isolate;
  color: #fff;
}
.style-card img { width: 100%; height: 100%; object-fit: cover; }
.style-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(10, 8, 5, 0.85));
}
.style-card .meta { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 16px; z-index: 1; }
.style-card .en {
  font-family: var(--font-en);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.6rem;
  opacity: 0.85;
}
.style-card .ar { font-family: var(--font-display-ar); font-size: 1.2rem; margin-top: 2px; }
.style-card .badge {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  z-index: 1;
  background: var(--gold);
  color: #1d1608;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ——— جدول التسعير ——— */
.pricing {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}
.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.featured { border-color: var(--gold); box-shadow: 0 30px 60px -40px rgba(185, 146, 79, 0.5); }
.plan .tag {
  position: absolute;
  inset-block-start: -12px;
  inset-inline-start: 26px;
  background: var(--gold);
  color: #1d1608;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.plan h3 { font-family: var(--font-display-ar); font-size: 1.3rem; margin: 6px 0 4px; }
.plan .price { font-size: 2.1rem; font-weight: 800; margin: 10px 0 4px; }
.plan .price small { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; font-size: 0.9rem; }
.plan ul li { display: flex; align-items: flex-start; gap: 8px; }
.plan ul li .ic { color: var(--gold-deep); margin-top: 2px; }
.plan .btn { margin-top: auto; }

/* ——— فورم ——— */
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.6);
}
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.85rem; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.form-error {
  background: rgba(178, 46, 46, 0.08);
  border: 1px solid rgba(178, 46, 46, 0.3);
  color: #7a2323;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-bottom: 16px;
}
.form-ok {
  background: rgba(22, 56, 47, 0.08);
  border: 1px solid rgba(22, 56, 47, 0.3);
  color: var(--emerald);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-bottom: 16px;
}
.form-foot { text-align: center; margin-top: 18px; font-size: 0.88rem; color: var(--muted); }

/* ——— شبكة الأسئلة الشائعة ——— */
.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.5);
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: 0.92rem; }

/* ——— فوتر ——— */
footer.site {
  border-top: 1px solid var(--line);
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ——— لوحة التحكم ——— */
.dash {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}
.dash-side {
  border-inline-end: 1px solid var(--line);
  padding: 22px 16px;
  background: var(--paper-soft);
}
.dash-side .brand { margin-bottom: 26px; padding-inline-start: 6px; }
.dash-nav { display: grid; gap: 4px; }
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--muted);
}
.dash-nav a:hover, .dash-nav a[aria-current="true"] { background: rgba(185, 146, 79, 0.12); color: var(--ink); font-weight: 700; }
.dash-main { padding: 28px 26px; }
.dash-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.dash-top h1 { font-family: var(--font-ar); font-weight: 800; font-size: 1.5rem; margin: 0; }

.table-list { display: grid; gap: 12px; }
.row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.6);
  flex-wrap: wrap;
}
.row-card .title { font-weight: 700; }
.row-card .sub { color: var(--muted); font-size: 0.82rem; }
.status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.status-draft { background: rgba(109, 103, 95, 0.15); color: var(--muted); }
.status-pending_review { background: rgba(185, 146, 79, 0.18); color: var(--gold-deep); }
.status-published { background: rgba(22, 56, 47, 0.15); color: var(--emerald); }
.status-rejected { background: rgba(178, 46, 46, 0.12); color: #7a2323; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side {
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .dash-nav { display: flex; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
}
