/* ===== فرحنا — الموقع الرئيسي ===== */
:root {
  --gold: #c9a227;
  --gold-soft: #e8c87a;
  --ink: #1a1612;
  --cream: #fdfaf2;
  --bg: #0c0a08;
  --card: #15120e;
  --line: rgba(201, 162, 39, 0.28);
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Amiri", "Noto Naskh Arabic", serif;
  --font-script: "Aref Ruqaa", "Amiri", serif;
  --font-body: "Cairo", "Tajawal", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(12, 10, 8, 0.82);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 1rem;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.55rem; font-weight: 700; color: var(--gold-soft);
}
.logo span { color: var(--cream); font-weight: 400; font-size: 0.85rem; margin-inline-start: 0.4rem; opacity: 0.7; }
.nav-links { display: flex; gap: 0.65rem; align-items: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.85rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s, filter .2s, background .2s; white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, #d4af37, #a67c00);
  color: #1a1408; font-weight: 700;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  border-color: rgba(232, 200, 122, 0.35);
  color: var(--gold-soft); background: transparent;
}
.btn-ghost:hover { background: rgba(232, 200, 122, 0.08); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.55rem 0.95rem; font-size: 0.9rem; }

.hero {
  position: relative; min-height: min(92vh, 860px);
  display: grid; place-items: center; overflow: hidden; padding: 3rem 0 4rem;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 18%, rgba(201,162,39,.2), transparent 60%),
    linear-gradient(180deg, #1a140f 0%, #0c0a08 75%);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; text-align: center; width: min(760px, 100%); }
.eyebrow {
  display: inline-block; color: var(--gold); font-size: 0.85rem;
  letter-spacing: 0.12em; margin-bottom: 1rem; opacity: 0.95;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.35; margin: 0 0 1rem; font-weight: 700;
}
.hero p.lead {
  color: rgba(253,250,242,.78);
  font-size: clamp(1rem, 3.2vw, 1.15rem);
  margin: 0 auto 2rem; max-width: 38ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.hero-note { margin-top: 1rem; color: rgba(253,250,242,.45); font-size: 0.88rem; }

.demo-phones {
  margin-top: 2.75rem;
  display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
}
.phone-frame {
  width: min(250px, 72vw);
  aspect-ratio: 9/16;
  border-radius: 28px;
  border: 3px solid rgba(232,200,122,.35);
  background:
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.5)),
    radial-gradient(ellipse at center, #3a2a18, #120e0a);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  animation: floatPhone 5s ease-in-out infinite;
}
.phone-frame .demo-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1rem; color: var(--gold-soft);
}
.phone-frame .demo-names {
  font-family: var(--font-display); font-size: 1.45rem; line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0,0,0,.6);
}
.phone-frame .demo-date { margin-top: .6rem; font-size: .75rem; opacity: .8; }
.phone-frame .demo-hint { position: absolute; bottom: 12%; left: 0; right: 0; font-size: .68rem; opacity: .85; }
@keyframes floatPhone {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.section { padding: 4.5rem 0; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head .eyebrow { margin-bottom: .55rem; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.4rem); margin: 0 0 .6rem;
}
.section-head p { margin: 0; color: rgba(253,250,242,.65); }

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.theme-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.theme-card:hover { transform: translateY(-4px); border-color: rgba(201,162,39,.4); }
.theme-preview {
  height: 200px; position: relative;
  display: grid; place-items: center; overflow: hidden;
}
.theme-preview .mini-card {
  width: 58%; height: 78%; border-radius: 12px;
  display: grid; place-content: center; text-align: center;
  padding: .75rem; box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.theme-preview .mini-card strong {
  font-family: var(--font-display); font-size: 1.05rem; display: block; margin-bottom: .25rem;
}
.theme-preview .mini-card small { opacity: .7; font-size: .7rem; }
.badge-gold {
  position: absolute; top: 10px; inset-inline-start: 10px;
  background: rgba(201,162,39,.2); color: var(--gold-soft);
  border: 1px solid rgba(201,162,39,.35);
  font-size: .72rem; padding: .25rem .55rem; border-radius: 999px;
}
.theme-body { padding: 1.1rem 1.2rem 1.3rem; }
.theme-body h3 { margin: 0 0 .35rem; font-size: 1.15rem; }
.theme-body p { margin: 0 0 1rem; color: rgba(253,250,242,.6); font-size: .92rem; }
.swatches { display: flex; gap: .35rem; margin-bottom: 1rem; }
.swatches i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); }

.tp-thurayya { background: #0a0a0a; }
.tp-thurayya .mini-card { background: #15100a; color: #d4af37; border: 1px solid #d4af37; }
.tp-duha { background: #3d3429; }
.tp-duha .mini-card { background: #fffcf5; color: #3d3429; }
.tp-rawda { background: #0a1f18; }
.tp-rawda .mini-card { background: #f7f3ea; color: #0a1f18; }
.tp-classic { background: #1a1612; }
.tp-classic .mini-card { background: #fdfaf2; color: #1a1612; }
.tp-minimal { background: #111; }
.tp-minimal .mini-card { background: #fff; color: #111; }
.tp-imperial { background: #1c1408; }
.tp-imperial .mini-card { background: #faf6eb; color: #1c1408; border: 2px solid #c9a227; }
.tp-royal { background: #0b1320; }
.tp-royal .mini-card { background: #f5f0e6; color: #0b1320; }
.tp-floral { background: linear-gradient(160deg,#3a1f24,#2c1810); }
.tp-floral .mini-card { background: #fff8f5; color: #2c1810; }

.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.step {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius); padding: 1.5rem 1.25rem; text-align: center;
}
.step-num {
  width: 42px; height: 42px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(201,162,39,.15); color: var(--gold-soft);
  font-family: var(--font-display); font-size: 1.2rem;
}
.step h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.step p { margin: 0; color: rgba(253,250,242,.6); font-size: .92rem; }

.timeline { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.tl-card {
  background: var(--card); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius); padding: 1.5rem;
}
.tl-card .num { color: var(--gold); font-family: var(--font-display); font-size: 1.4rem; margin-bottom: .5rem; }
.tl-card h3 { margin: 0 0 .5rem; }
.tl-card p { margin: 0; color: rgba(253,250,242,.6); font-size: .95rem; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 1rem; }
.feat {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius); padding: 1.35rem;
}
.feat .ico { font-size: 1.5rem; margin-bottom: .6rem; }
.feat h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.feat p { margin: 0; color: rgba(253,250,242,.6); font-size: .9rem; }

.quote-box {
  max-width: 640px; margin: 0 auto; text-align: center;
  padding: 2rem; border-radius: 20px;
  background: rgba(201,162,39,.06); border: 1px solid var(--line);
}
.quote-box blockquote {
  margin: 0 0 1rem; font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.5vw, 1.45rem); line-height: 1.7;
}
.quote-box cite { color: var(--gold-soft); font-style: normal; }

.faq-list { max-width: 720px; margin: 0 auto; display: grid; gap: .75rem; }
.faq-item {
  background: var(--card); border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 1rem 1.15rem; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 1.2rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .ans { padding: 0 1.15rem 1.1rem; color: rgba(253,250,242,.65); margin: 0; }

.cta-band {
  text-align: center; padding: 3.5rem 1.5rem; margin: 1rem auto 0;
  border-radius: 24px;
  background: radial-gradient(ellipse at center, rgba(201,162,39,.16), transparent 70%), rgba(255,255,255,.03);
  border: 1px solid var(--line);
}
.cta-band h2 { font-family: var(--font-display); font-size: clamp(1.6rem,5vw,2.2rem); margin: 0 0 .75rem; }
.cta-band p { margin: 0 0 1.5rem; color: rgba(253,250,242,.7); }

.site-footer {
  padding: 2rem 0 2.5rem; border-top: 1px solid rgba(255,255,255,.06);
  text-align: center; color: rgba(253,250,242,.45); font-size: .9rem;
}

/* Create */
.create-page { padding: 2rem 0 4rem; }
.create-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 900px) {
  .create-layout { grid-template-columns: 1.1fr .9fr; align-items: start; }
}
.panel {
  background: var(--card); border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius); padding: 1.35rem;
}
.panel h1, .panel h2 { font-family: var(--font-display); margin: 0 0 .35rem; }
.panel .sub { margin: 0 0 1.5rem; color: rgba(253,250,242,.55); font-size: .95rem; }
.form-grid { display: grid; gap: 1rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
@media (max-width: 520px) { .form-row-2 { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: .4rem; font-size: .88rem; color: rgba(253,250,242,.75); }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem .95rem; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.28);
  color: var(--cream); outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(201,162,39,.55); }
.field textarea { min-height: 90px; resize: vertical; }
.theme-picker { display: grid; grid-template-columns: repeat(4,1fr); gap: .55rem; }
@media (max-width: 620px) { .theme-picker { grid-template-columns: repeat(2,1fr); } }
.theme-option { position: relative; cursor: pointer; }
.theme-option input { position: absolute; opacity: 0; pointer-events: none; }
.theme-option .chip {
  display: block; text-align: center; padding: .85rem .4rem; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.25); font-size: .82rem;
}
.theme-option input:checked + .chip {
  border-color: var(--gold); background: rgba(201,162,39,.12); color: var(--gold-soft);
}
.preset-btns { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .55rem; }
.alert { padding: .9rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-size: .95rem; }
.alert-error { background: rgba(180,50,50,.2); border: 1px solid rgba(255,120,120,.35); color: #ffc9c9; }
.alert-success { background: rgba(50,140,80,.18); border: 1px solid rgba(120,220,150,.3); color: #c8f0d4; }
.live-preview { position: sticky; top: 84px; }
.live-preview .phone {
  width: min(300px,100%); margin-inline: auto; aspect-ratio: 9/17;
  border-radius: 28px; border: 3px solid rgba(232,200,122,.3);
  overflow: hidden; background: #1a1612; position: relative;
}
.live-preview .pv-card {
  position: absolute; inset: 8% 7%; background: #fdfaf2; color: #1a1612;
  border-radius: 16px; padding: 1.1rem .9rem; text-align: center;
  display: flex; flex-direction: column; justify-content: center; gap: .55rem; font-size: .78rem;
}
.live-preview .pv-title { opacity: .55; font-size: .7rem; }
.live-preview .pv-names { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.25; }
.live-preview .pv-names .amp { color: #c9a227; }
.live-preview .pv-line { width: 55%; height: 1px; margin: .2rem auto; background: linear-gradient(90deg,transparent,#c9a227,transparent); }
.live-preview .pv-msg { opacity: .8; font-size: .72rem; line-height: 1.55; }
.live-preview .pv-meta strong { display: block; font-size: .8rem; }
.live-preview .pv-meta span { opacity: .5; font-size: .65rem; }
.success-box { text-align: center; padding: 2.5rem 1.25rem; }
.success-box h1 { font-family: var(--font-display); font-size: 2rem; margin-bottom: .5rem; }
.link-box { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; justify-content: center; }
.link-box input {
  flex: 1; min-width: 200px; padding: .85rem 1rem; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.3);
  color: var(--cream); direction: ltr; text-align: left;
}
.check-row { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; }
.check-row label { display: flex; align-items: center; gap: .4rem; font-size: .9rem; color: rgba(253,250,242,.8); }

@media (max-width: 760px) {
  .steps, .timeline { grid-template-columns: 1fr; }
  .nav .hide-sm { display: none; }
}
