/* ============================================================
   "احجز مقعدك" / Book Your Seat — shared theme
   Mirrors the learnby.work identity (purple + cream, Roboto/Cairo)
   ============================================================ */
:root {
  --purple: #5B2D8E;
  --purple-light: #7B4DB8;
  --purple-dark: #3A1A6E;
  --cream: #FFFDD0;
  --cream-dark: #F5F0A0;
  --beige: #FAF8EE;
  --beige-dark: #EDE8C4;
  --beige-mid: #F2EED8;
  --text-dark: #1A1A2E;
  --text-mid: #4A4060;
  --white: #FFFFFF;
  --ok: #1f9d55;
  --no: #c0392b;
  --shadow-sm: 0 4px 20px rgba(58,26,110,0.12), 0 1px 4px rgba(58,26,110,0.08);
  --shadow-lg: 0 16px 44px rgba(58,26,110,0.22), 0 2px 8px rgba(58,26,110,0.12);
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto', sans-serif;
  background: var(--beige);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}
body.rtl { direction: rtl; font-family: 'Cairo', sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ─── NAV ─── */
.wnav {
  position: fixed; top: 0; inset-inline: 0; z-index: 1000;
  background: rgba(255,253,208,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--purple);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.wnav .brand {
  font-weight: 900; color: var(--purple); font-size: 1.25rem;
  letter-spacing: 0.03em; text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.wnav .brand .ring { font-size: 1.1rem; }
.wnav .spacer { flex: 1; }
.wnav-links { display: flex; gap: 26px; list-style: none; align-items: center; }
.wnav-links a {
  text-decoration: none; color: var(--text-mid);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; transition: color 0.25s;
}
.wnav-links a:hover { color: var(--purple); }
.lang-switcher { display: flex; gap: 6px; align-items: center; }
.lang-btn {
  padding: 5px 12px; border-radius: 20px; font-size: 0.72rem;
  font-weight: 700; cursor: pointer; border: 2px solid var(--purple);
  background: transparent; color: var(--purple);
  transition: all 0.2s; letter-spacing: 0.05em;
}
.lang-btn.active, .lang-btn:hover { background: var(--purple); color: var(--cream); }
.wnav .menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.wnav .menu-toggle span { display: block; width: 24px; height: 2px; background: var(--purple); margin: 5px 0; }

/* ─── BUTTONS (match main site) ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: 2px; cursor: pointer;
  text-decoration: none; font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: all 0.3s; border: 2px solid transparent; font-family: inherit;
}
.btn-primary { background: var(--purple); color: var(--cream); }
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(91,45,142,0.35); }
.btn-cream { background: var(--cream); color: var(--purple-dark); }
.btn-cream:hover { background: var(--cream-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,253,208,0.5); }
.btn-outline { border-color: var(--purple); color: var(--purple); background: transparent; }
.btn-outline:hover { background: var(--purple); color: var(--cream); }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { background: #1da851; transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.75rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ─── LAYOUT HELPERS ─── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 5%; }
.section { padding: 90px 0; }
.section-label { color: var(--purple); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; text-align: center; }
.section-title { font-size: 2.4rem; font-weight: 900; text-align: center; margin: 10px 0 8px; }
.section-title em { color: var(--purple); font-style: normal; }
.section-sub { text-align: center; color: var(--text-mid); max-width: 620px; margin: 0 auto 46px; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.hidden { display: none !important; }

/* ─── SALES HERO ─── */
.whero {
  min-height: 92vh; display: flex; align-items: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 55%, #8B5DB0 100%);
  color: var(--white); padding: 120px 0 80px;
}
.whero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,253,208,0.10), transparent 40%),
                    radial-gradient(circle at 80% 70%, rgba(255,253,208,0.08), transparent 40%);
}
.whero .container { position: relative; z-index: 1; text-align: center; }
.whero .eyebrow { letter-spacing: 0.28em; text-transform: uppercase; font-size: 0.8rem; opacity: 0.85; }
.whero h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 900; margin: 14px 0 8px; line-height: 1.05; }
.whero .sub { font-size: 1.15rem; opacity: 0.95; max-width: 640px; margin: 0 auto 14px; }
.whero .desc { opacity: 0.75; max-width: 560px; margin: 0 auto 34px; }
.whero .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── TEMPLATE GALLERY ─── */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.tpl-card { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--white); transition: transform 0.3s, box-shadow 0.3s; }
.tpl-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tpl-preview { height: 320px; position: relative; display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; padding: 20px; }
.tpl-preview .names { font-family: 'Playfair Display', Georgia, serif; }
.tpl-preview .amp { font-size: 2.2rem; opacity: 0.85; margin: 6px 0; }
.tpl-preview .cname { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.tpl-preview .date { margin-top: 14px; letter-spacing: 0.24em; font-size: 0.72rem; text-transform: uppercase; opacity: 0.9; }
.tpl-body { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tpl-body .tname { font-weight: 700; }
.tpl-tier { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 20px; }
.tier-basic { background: var(--beige-dark); color: var(--text-mid); }
.tier-advanced { background: #E7DBF5; color: var(--purple); }
.tier-luxury { background: linear-gradient(135deg,#C9A227,#F5D77E); color: #4a3b00; }

/* ─── PRICING ─── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.plan { position: relative; padding: 40px 28px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s; border: 2px solid transparent; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan.featured { border-color: var(--purple); }
.plan .badge { position: absolute; top: -13px; inset-inline: 0; margin: auto; width: fit-content; background: var(--purple); color: var(--cream); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 16px; border-radius: 20px; }
.plan .pname { font-size: 1.2rem; font-weight: 900; color: var(--purple); letter-spacing: 0.04em; }
.plan .price { font-size: 3rem; font-weight: 900; margin: 12px 0 2px; }
.plan .price span { font-size: 0.9rem; font-weight: 400; color: var(--text-mid); }
.plan ul { list-style: none; margin: 22px 0 26px; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.plan li::before { content: '✓'; color: var(--purple); font-weight: 900; flex-shrink: 0; }
.plan .btn { margin-top: auto; }

/* ─── HOW IT WORKS ─── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { text-align: center; padding: 26px 18px; }
.step .n { width: 54px; height: 54px; border-radius: 50%; background: var(--purple); color: var(--cream); font-weight: 900; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.step h4 { font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--text-mid); font-size: 0.9rem; }

/* ─── FOOTER ─── */
.wfooter { background: var(--purple-dark); color: rgba(255,255,255,0.85); text-align: center; padding: 40px 5%; }
.wfooter a { color: var(--cream); text-decoration: none; }

/* ─── FORMS / PANELS ─── */
.field { margin-bottom: 16px; text-align: start; }
.field label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--beige-dark);
  border-radius: 10px; font-size: 0.95rem; font-family: inherit; background: #fff; color: var(--text-dark);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple); }
.notice { padding: 12px 16px; border-radius: 10px; font-size: 0.9rem; margin: 12px 0; }
.notice.ok { background: #e6f6ec; color: #14663a; }
.notice.err { background: #fdeaea; color: #a12; }

/* ─── TABLE ─── */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--beige-dark); font-size: 0.9rem; }
.tbl th { font-weight: 700; color: var(--purple); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.06em; }
.pill { padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; }
.pill.yes { background: #e6f6ec; color: #14663a; }
.pill.no { background: #fdeaea; color: #a12; }
.pill.pending { background: var(--beige-dark); color: var(--text-mid); }

/* ─── STAT TILES ─── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 18px; margin-bottom: 30px; }
.stat { padding: 22px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); text-align: center; }
.stat .v { font-size: 2.2rem; font-weight: 900; color: var(--purple); }
.stat .l { color: var(--text-mid); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ─── AUTH CARD ─── */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 100px 20px 40px; background: linear-gradient(135deg, var(--purple-dark), var(--purple)); }
.auth-card { width: 100%; max-width: 420px; padding: 40px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg); text-align: center; }
.auth-card h2 { color: var(--purple); margin-bottom: 6px; }
.auth-card p.hint { color: var(--text-mid); font-size: 0.88rem; margin-bottom: 24px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  .wnav-links { position: fixed; top: 70px; inset-inline: 0; background: var(--cream); flex-direction: column; padding: 20px 5%; gap: 16px; border-bottom: 2px solid var(--purple); transform: translateY(-140%); transition: transform 0.3s; }
  .wnav-links.open { transform: translateY(0); }
  .wnav .menu-toggle { display: block; }
  .plans, .steps { grid-template-columns: 1fr; }
  .section-title { font-size: 1.8rem; }
}
