/* ==========================================================
   Makeen AI — Saudi Minimalism (Revamp v2)
   Focus: Glassmorphism, Dark/Light Mode, High Conversion UI
========================================================== */

/* ---------- 1) Root + Reset ---------- */
:root {
  --white: #ffffff;
  --emerald: #1A9667;
  --emerald-dark: #126e4b;
  --maroon: #971A4D;
  --pink: #FF3386;

  /* Theme Colors (Default Dark) */
  --bg-dark: #0b0b0f;
  --bg-dark-2: #0e0f16;
  --text-dark: #0b0b0f;
  
  --bg-light: #fbfbfe;
  --bg-light-2: #f2f4f8;
  --text-light: #f4f6fb;
  --text-light-2: rgba(255,255,255,.78);

  /* Functional vars (will be swapped by theme) */
  --text: var(--text-light);
  --muted: var(--text-light-2);
  --stroke: rgba(255,255,255,.14);
  --surface: rgba(255,255,255,.06);
  --surface-2: rgba(255,255,255,.09);
  --glass: rgba(255,255,255,.06);
  --shadow: 0 18px 55px rgba(0,0,0,.35);

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1180px;
  --section-pad: 88px;
  --section-pad-m: 62px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

/* Base Setup */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  background: var(--bg-dark);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

/* Links & Images */
a { text-decoration: none; color: inherit; transition: .2s; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

/* ---------- 2) Theme Engine ---------- */
body.theme-dark {
  background: 
    radial-gradient(1000px 700px at 70% 10%, rgba(26,150,103,.12), transparent 55%),
    radial-gradient(900px 650px at 20% 15%, rgba(151,26,77,.12), transparent 58%),
    linear-gradient(180deg, var(--bg-dark), var(--bg-dark-2));
  --text: #f4f6fb;
  --muted: rgba(255,255,255,.62);
  --stroke: rgba(255,255,255,.14);
  --surface: rgba(255,255,255,.05);
  --surface-2: rgba(255,255,255,.08);
}

body.theme-light {
  background: 
    radial-gradient(1000px 700px at 70% 10%, rgba(26,150,103,.08), transparent 55%),
    linear-gradient(180deg, var(--bg-light), var(--bg-light-2));
  --text: #0b0b0f;
  --muted: rgba(11,11,15,.66);
  --stroke: rgba(11,11,15,.12);
  --surface: #ffffff;
  --surface-2: #f4f6fb;
  --shadow: 0 10px 26px rgba(0,0,0,.08);
}

.accent-emerald { color: var(--emerald); font-weight: 700; }
.accent-maroon { color: var(--maroon); font-weight: 700; }

/* ---------- 3) Animated Backgrounds ---------- */
.bg-stage, .bg-particles {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
.bg-stage::before, .bg-stage::after {
  content: ""; position: absolute; inset: -20%;
  background: radial-gradient(closest-side at 20% 30%, rgba(151,26,77,.15), transparent 60%);
  filter: blur(40px); opacity: 0.8; animation: drift 20s infinite alternate;
}
@keyframes drift { from { transform: translate(0,0); } to { transform: translate(2%, -2%); } }

.bg-particles {
  background-image: radial-gradient(rgba(128,128,128,0.15) 1px, transparent 1px);
  background-size: 30px 30px; opacity: 0.4;
}

/* ---------- 4) Header & Nav ---------- */
.site-header, main { position: relative; z-index: 2; }
.site-header {
  position: sticky; top: 0; z-index: 999; padding: 12px 0;
  background: rgba(11,11,15,0.7); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stroke);
}
body.theme-light .site-header { background: rgba(255,255,255,0.8); }

.container { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.brand-logo { height: 40px; width: auto; }
.nav { display: flex; gap: 6px; }
.nav-link {
  font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 99px;
  color: var(--text); opacity: 0.8;
}
.nav-link:hover { opacity: 1; background: var(--surface-2); }
@media (max-width: 900px) { .nav { display: none; } } /* Hide nav on mobile */

.header-actions { display: flex; align-items: center; gap: 8px; }

/* Buttons & Icons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 99px; font-weight: 700; font-size: 14px;
  border: 1px solid var(--stroke); cursor: pointer; transition: .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.btn-primary {
  background: var(--emerald); color: #fff; border-color: var(--emerald);
  box-shadow: 0 4px 14px rgba(26,150,103,0.3);
}
.btn-primary:hover { background: var(--emerald-dark); }

.btn-ghost { background: var(--surface); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }

.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--stroke);
  background: var(--surface); display: grid; place-items: center; cursor: pointer;
}
body.theme-dark .icon-sun { display: none; }
body.theme-light .icon-moon { display: none; }

.w-full { width: 100%; }

/* ---------- 5) Hero Section ---------- */
.section { padding: var(--section-pad) 0; }
.hero { padding-top: 60px; }

.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; text-align: center; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border-radius: 99px; background: var(--surface-2); font-size: 13px; font-weight: 700;
  border: 1px solid var(--stroke); margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 52px); font-weight: 800; line-height: 1.2; letter-spacing: -1px;
}
.hero-subtitle {
  margin-top: 16px; font-size: 17px; color: var(--muted); line-height: 1.6;
}

.hero-actions {
  display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap;
}
@media (max-width: 900px) { .hero-actions { justify-content: center; } }

/* Hero Visual (Mockup) */
.hero-visual { position: relative; }
.mockup-stage {
  border: none; background: none; padding: 0; cursor: pointer; width: 100%; position: relative;
}
.mockup-image {
  display: block; width: 100%; aspect-ratio: 4/5;
  background: url("../assets/hero-mockup.png") center/contain no-repeat;
  transition: transform .3s var(--ease);
}
.mockup-stage:hover .mockup-image { transform: scale(1.02); }

/* Floating Stats in Hero */
.hero-floats { position: absolute; inset: 0; pointer-events: none; }
.float-box {
  position: absolute; background: rgba(255,255,255,0.1); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 16px; padding: 12px;
  text-align: center; width: 100px; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  animation: floatKPI 6s ease-in-out infinite;
}
body.theme-light .float-box { background: rgba(255,255,255,0.85); border-color: #fff; }

.float-ic { width: 36px; height: 36px; background: var(--surface-2); border-radius: 10px; margin: 0 auto 6px; display: grid; place-items: center; }
.float-num { font-weight: 800; font-size: 16px; }
.float-label { font-size: 11px; color: var(--muted); }

/* Float Positions */
.float-a { top: 15%; right: 5%; animation-delay: 0s; }
.float-b { bottom: 20%; left: 5%; animation-delay: 1.5s; }
.float-c { top: 40%; left: -2%; animation-delay: 3s; }

@keyframes floatKPI {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Pulse Animation for CTA */
.pulse-animation { animation: pulse-emerald 2s infinite; }
@keyframes pulse-emerald {
  0% { box-shadow: 0 0 0 0 rgba(26, 150, 103, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(26, 150, 103, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 150, 103, 0); }
}

/* Trust Badges Bar */
.integrations-wrapper { display: flex; flex-direction: column; gap: 10px; }
.trust-badges { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 900px) { .trust-badges { justify-content: center; } }
.trust-badge {
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--stroke); color: var(--muted);
}
/* START OF PART 2 */

/* ---------- 6) Platforms Section ---------- */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}
@media (max-width: 860px) { .platforms-grid { grid-template-columns: 1fr; } }

.platform-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; flex-direction: column; align-items: flex-start;
  transition: transform 0.2s var(--ease);
}
.platform-card:hover { transform: translateY(-4px); border-color: var(--emerald); }

.platform-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center; margin-bottom: 16px; color: #fff;
}
.whatsapp-bg { background: linear-gradient(135deg, #25D366, #128C7E); box-shadow: 0 10px 20px rgba(37,211,102,0.2); }
.insta-bg { background: linear-gradient(135deg, #833AB4, #FD1D1D, #FCAF45); box-shadow: 0 10px 20px rgba(253,29,29,0.2); }
.web-bg { background: linear-gradient(135deg, #2980b9, #6dd5fa); box-shadow: 0 10px 20px rgba(41,128,185,0.2); }
.calendar-bg { background: linear-gradient(135deg, #971A4D, #FF3386); box-shadow: 0 10px 20px rgba(255,51,134,0.2); }

.card-title { font-size: 18px; font-weight: 800; margin-bottom: 12px; }

.feature-list { margin-bottom: 20px; padding-right: 18px; }
.feature-list li {
  list-style: disc; color: var(--muted); margin-bottom: 6px; font-size: 14px;
}

.example-box {
  margin-top: auto; width: 100%; padding: 12px;
  background: color-mix(in srgb, var(--surface-2) 50%, transparent);
  border-radius: 12px; font-size: 13px; border: 1px dashed var(--stroke);
  color: var(--text); font-weight: 600;
}
.example-label { color: var(--emerald); font-weight: 800; margin-left: 4px; }

/* ---------- 7) Bento Grid (Capabilities) ---------- */
.section-header { text-align: center; max-width: 800px; margin: 0 auto 40px; }
.section-title { font-size: clamp(24px, 4vw, 36px); font-weight: 800; margin-bottom: 12px; }
.section-subtitle { font-size: 16px; color: var(--muted); }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 16px;
  margin-top: 30px;
}
@media (max-width: 980px) { .bento-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bento-grid { grid-template-columns: 1fr; } }

.bento-card {
  background: var(--surface); border: 1px solid var(--stroke);
  border-radius: 20px; padding: 24px; display: flex; flex-direction: column;
  transition: transform 0.2s var(--ease);
}
.bento-card:hover { transform: translateY(-4px); border-color: var(--emerald); }

.large-card { grid-column: span 2; }
.tall-card { grid-row: span 2; }
.wide-card { grid-column: span 3; }
@media (max-width: 980px) {
  .large-card, .wide-card { grid-column: span 1; }
  .tall-card { grid-row: span 1; }
}

.accent-card {
  background: linear-gradient(135deg, rgba(26,150,103,0.1), rgba(26,150,103,0.05));
  border-color: rgba(26,150,103,0.3);
}

.bento-icon { font-size: 32px; margin-bottom: 14px; }
.bento-title { font-weight: 900; font-size: 18px; margin-bottom: 8px; }
.bento-text { color: var(--muted); font-size: 14px; line-height: 1.5; }

.bento-list { margin-top: 14px; }
.bento-list li {
  font-size: 13px; margin-bottom: 6px; color: var(--text); display: flex; align-items: center; gap: 6px;
}
.bento-list li::before { content: "✓"; color: var(--emerald); font-weight: bold; }

.bento-content-row { display: flex; justify-content: space-between; align-items: flex-end; width: 100%; flex-wrap: wrap; gap: 10px; }
.bento-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.bento-tags span {
  font-size: 12px; padding: 4px 10px; background: var(--surface-2); border-radius: 8px; font-weight: bold;
}

/* ---------- 8) Chat Demo Tabs ---------- */
.demo-tabs-wrapper { margin-top: 30px; max-width: 800px; margin-inline: auto; }
.tabs-nav { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }

.tab-btn {
  background: transparent; border: 1px solid var(--stroke); color: var(--muted);
  padding: 10px 16px; border-radius: 99px; cursor: pointer; font-weight: 700;
  display: flex; align-items: center; gap: 8px; transition: 0.2s;
}
.tab-btn.active, .tab-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--emerald); }
.tab-btn.active { background: var(--emerald); color: #fff; border-color: var(--emerald); }

.chat-display-frame {
  background: var(--bg-dark); border: 1px solid var(--stroke); border-radius: 24px;
  overflow: hidden; max-width: 500px; margin: 0 auto;
  height: 450px; position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.chat-panel { display: none; height: 100%; flex-direction: column; }
.chat-panel.active { display: flex; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.chat-header { padding: 16px; display: flex; align-items: center; gap: 12px; color: #fff; }
.wa-header { background: #075E54; }
.ig-header { background: linear-gradient(45deg, #405DE6, #833AB4); }
.web-header { background: #2c3e50; }

.chat-avatar { width: 40px; height: 40px; background: rgba(255,255,255,0.2); border-radius: 50%; display: grid; place-items: center; }
.chat-name { font-weight: bold; font-size: 15px; }
.chat-status { font-size: 12px; opacity: 0.8; }

.chat-body {
  flex: 1; padding: 20px; background: #e5ddd5; display: flex; flex-direction: column; gap: 12px; overflow-y: auto;
}
body.theme-dark .chat-body { background: #0b0b0f; }

.msg {
  max-width: 80%; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.4; position: relative;
}
.msg.user { align-self: flex-end; background: #dcf8c6; color: #000; border-bottom-right-radius: 2px; }
.msg.bot { align-self: flex-start; background: #fff; color: #000; border-bottom-left-radius: 2px; }

body.theme-dark .msg.user { background: var(--emerald); color: #fff; }
body.theme-dark .msg.bot { background: var(--surface); color: var(--text); }

.bot-btn {
  align-self: center; background: var(--text); color: var(--bg-dark); padding: 8px 16px;
  border-radius: 6px; font-size: 13px; font-weight: bold; margin-top: 5px; cursor: pointer;
}

/* ---------- 9) Problems & Solutions ---------- */
.problems-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 30px;
}
@media (max-width: 768px) { .problems-grid { grid-template-columns: 1fr; } }

.problem-card {
  background: var(--surface); border: 1px solid var(--stroke);
  border-radius: 18px; padding: 20px; transition: 0.2s;
}
.problem-card:hover { border-color: var(--maroon); transform: translateY(-3px); }

.problem-icon { font-size: 28px; margin-bottom: 10px; }
.problem-title { font-weight: 800; margin-bottom: 6px; font-size: 16px; }
.problem-text { color: var(--muted); font-size: 14px; }

.problem-callout {
  margin-top: 30px; background: color-mix(in srgb, var(--surface-2) 60%, transparent);
  border: 1px dashed var(--stroke); border-radius: 12px; padding: 16px;
  display: flex; align-items: center; gap: 12px; font-size: 14px;
}

/* Solution Steps */
.solution-steps { display: grid; gap: 16px; max-width: 800px; margin: 30px auto; }
.solution-step {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--surface); padding: 18px; border-radius: 16px; border: 1px solid var(--stroke);
}
.human-step { border-color: var(--emerald); background: rgba(26,150,103,0.05); }

.step-marker {
  width: 32px; height: 32px; background: var(--surface-2); border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; color: var(--emerald);
  flex-shrink: 0; border: 1px solid var(--stroke);
}
.step-heading { font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.step-desc { color: var(--muted); font-size: 14px; }
/* START OF PART 3 */

/* ---------- 10) Results & Stories ---------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 30px;
}
@media (max-width: 860px) { .stats-grid { grid-template-columns: 1fr; } }

.stat-card {
  background: var(--surface); border: 1px solid var(--stroke);
  border-radius: var(--radius-lg); padding: 18px; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.stat-value {
  font-weight: 950; font-size: 30px;
  background: linear-gradient(135deg, var(--emerald), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { margin-top: 6px; font-weight: 900; color: var(--muted); }

.stories-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 860px) { .stories-grid { grid-template-columns: 1fr; } }

.story-card {
  background: var(--surface); border: 1px solid var(--stroke);
  border-radius: 16px; padding: 18px; text-align: center;
}
.story-icon { font-size: 28px; margin-bottom: 10px; }
.story-card h4 { font-weight: 800; margin-bottom: 6px; font-size: 15px; }
.story-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.story-card strong { color: var(--emerald); }

/* ---------- 11) Sectors ---------- */
.bg-soft { background: color-mix(in srgb, var(--surface) 30%, transparent); }

.sectors-grid-modern {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 30px 0;
}
.sector-item {
  background: var(--surface); border: 1px solid var(--stroke);
  padding: 12px 20px; border-radius: 99px; font-weight: 700; font-size: 14px;
  color: var(--text); box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* ---------- 12) Journey Timeline (Vertical) ---------- */
.journey-intro-box {
  background: color-mix(in srgb, var(--emerald) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--emerald) 30%, transparent);
  border-radius: 16px; padding: 20px; display: flex; gap: 16px;
  align-items: flex-start; max-width: 800px; margin: 0 auto 40px;
}
.intro-icon {
  font-size: 24px; background: var(--surface-2); width: 40px; height: 40px;
  border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
}
.intro-title { font-weight: 800; font-size: 16px; margin-bottom: 6px; color: var(--emerald); }
.intro-text { font-size: 14px; color: var(--text); }

.timeline-wrapper {
  max-width: 800px; margin: 0 auto; position: relative; padding: 20px 0;
}
/* Vertical Line (RTL positioned on Right) */
.timeline-wrapper::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: 27px; width: 2px;
  background: var(--stroke); z-index: 0;
}

.timeline-step {
  position: relative; margin-bottom: 40px; padding-right: 70px;
}
.step-marker {
  position: absolute; right: 0; top: 0; width: 56px; height: 56px;
  border-radius: 50%; background: var(--surface); border: 4px solid var(--bg-dark);
  box-shadow: 0 0 0 2px var(--stroke); display: grid; place-items: center;
  font-weight: 900; font-size: 20px; color: var(--muted); z-index: 1;
}
.accent-marker {
  background: var(--emerald); color: #fff;
  box-shadow: 0 0 0 4px rgba(26,150,103,0.2); border-color: var(--bg-dark);
}

.step-card {
  background: var(--surface); border: 1px solid var(--stroke);
  border-radius: 20px; padding: 24px; position: relative;
}
.accent-card-border { border-color: var(--emerald); }

.step-head { font-weight: 900; font-size: 18px; margin-bottom: 8px; }
.step-body { color: var(--muted); font-size: 15px; margin-bottom: 16px; line-height: 1.6; }

.deliverables-box {
  background: color-mix(in srgb, var(--surface-2) 50%, transparent);
  border-radius: 12px; padding: 16px; border: 1px dashed var(--stroke);
}
.del-label {
  display: block; font-weight: 800; font-size: 13px; margin-bottom: 8px;
  color: var(--emerald); text-transform: uppercase;
}
.check-list li {
  font-size: 14px; margin-bottom: 6px; position: relative; padding-right: 20px;
}
.check-list li::before {
  content: "✓"; position: absolute; right: 0; color: var(--emerald); font-weight: bold;
}

.timeline-footer { text-align: center; max-width: 800px; margin: 0 auto; }
.duration-block {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: 16px;
  padding: 20px; width: 100%; text-align: right;
}
.duration-list li { margin-bottom: 6px; font-size: 14px; }

/* ---------- 13) Pricing Calculator ---------- */
.pricing-calculator {
  max-width: 800px; margin: 0 auto 40px; background: var(--surface);
  border: 1px solid var(--stroke); border-radius: 20px; padding: 24px;
}

.calc-row {
  display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px;
}
@media (max-width: 600px) { .calc-row { flex-direction: column; align-items: flex-start; gap: 16px; } }

.calc-label { font-weight: 800; font-size: 14px; margin-bottom: 4px; }
.calc-value { font-size: 24px; font-weight: 900; color: var(--emerald); }
.calc-hint { font-size: 13px; color: var(--muted); margin-top: 4px; }

.range { width: 100%; accent-color: var(--emerald); margin-bottom: 10px; }
.range-legend {
  display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 700;
}

.billing-toggle { display: flex; gap: 8px; }
.pill {
  border: 1px solid var(--stroke); background: var(--surface); color: var(--text);
  padding: 8px 14px; border-radius: 99px; font-weight: 700; cursor: pointer; transition: .2s;
}
.pill:hover { background: var(--surface-2); }
.pill.is-active {
  background: var(--emerald); color: #fff; border-color: var(--emerald);
  box-shadow: 0 4px 12px rgba(26,150,103,0.3);
}

/* ---------- 14) Pricing Cards (Updated) ---------- */
.pricing-grid {
  display: grid;
  gap: 20px; /* مسافة أكبر بين الكروت */
}
.plans-grid { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1024px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 650px) { .plans-grid { grid-template-columns: 1fr; } }

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 24px; /* مساحة داخلية مريحة */
  position: relative;
  overflow: hidden;
  transition: transform .2s var(--ease), border-color .2s;
  
  /* Flexbox Magic for Alignment */
  display: flex;
  flex-direction: column;
  height: 100%; /* يجعل جميع الكروت بنفس الطول */
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
}

/* Highlight Active Plan */
.pricing-card.is-selected {
  border-color: var(--emerald);
  box-shadow: 0 0 0 1px var(--emerald) inset, 0 14px 40px rgba(26,150,103,0.15);
  background: color-mix(in srgb, var(--emerald) 4%, var(--surface));
  z-index: 1;
}

.pricing-card-title { font-weight: 950; font-size: 18px; margin-bottom: 10px; }
.pricing-price { font-weight: 950; font-size: 24px; margin-bottom: 6px; }
.pricing-note { color: var(--muted); font-weight: 800; font-size: 13px; margin-bottom: 8px; }

/* Customer Count Styling */
.pricing-customers {
  font-size: 13px;
  margin-bottom: 16px;
  font-weight: 700;
  color: var(--emerald);
  display: inline-block;
  background: rgba(26,150,103,0.1);
  padding: 4px 10px;
  border-radius: 6px;
}

/* Features List Styling */
.pricing-includes {
  flex-grow: 1; /* يجعل القائمة تأخذ المساحة الفارغة لدفع الزر للأسفل */
  margin-bottom: 24px; /* مسافة أمان بين القائمة والزر */
}

.pricing-includes li {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2) !important; /* لتوحيد اللون حتى لو كان هناك ستايل داخلي */
  border: 1px solid var(--stroke) !important; /* لتوحيد الإطار */
  color: var(--text) !important; /* لتوحيد لون الخط */
  margin-top: 8px;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

/* Optional: Icon for list items */
.pricing-includes li::before {
  /* content: "✓";  <-- يمكنك تفعيل هذا السطر إذا أردت علامة صح تلقائية */ 
  /* color: var(--emerald); */
}

.pricing-savings {
  position: absolute; top: 12px; left: 12px; padding: 6px 12px;
  border-radius: 99px; background: linear-gradient(135deg, #FF9F1C, #FF5B5B);
  color: #fff; font-weight: 950; font-size: 11px;
  box-shadow: 0 4px 10px rgba(255,91,91,0.3);
}

/* Plan Button (Sticky at Bottom) */
.plan-cta {
  margin-top: auto; /* الميزة السحرية: تدفع الزر لأسفل الكارت دائماً */
  width: 100%;
  padding: 14px;
  font-size: 15px;
}

/* Guarantee Section */
.pricing-guarantee {
  max-width: 700px; margin: 40px auto 0; display: flex; gap: 14px;
  align-items: flex-start; font-size: 14px; color: var(--muted);
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
  padding: 20px; border-radius: 16px; border: 1px dashed var(--stroke);
}
.guarantee-icon { font-size: 24px; flex-shrink: 0; }
/* START OF PART 4 (FINAL) */

/* ---------- 15) Setup Fees ---------- */
.setup-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px;
}
@media (max-width: 900px) { .setup-grid { grid-template-columns: 1fr; } }

.setup-card {
  background: var(--surface); border: 1px solid var(--stroke);
  border-radius: 20px; padding: 24px; display: flex; flex-direction: column;
}

.featured-setup {
  border-color: var(--emerald); box-shadow: 0 10px 30px rgba(26,150,103,0.1);
  transform: scale(1.02); position: relative; z-index: 1;
}

.setup-head { margin-bottom: 20px; text-align: center; }
.setup-head h3 { font-size: 18px; font-weight: 900; margin-bottom: 10px; }
.setup-price { font-size: 28px; font-weight: 900; color: var(--text); }
.setup-price small { font-size: 14px; color: var(--muted); font-weight: 700; }

.why-setup-box {
  max-width: 700px; margin: 40px auto 0; text-align: center;
}
.why-setup-box h4 { font-weight: 900; margin-bottom: 8px; }
.why-setup-box p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- 16) FAQ Accordion ---------- */
.faq-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: flex-start;
}
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

.faq-item {
  background: var(--surface); border: 1px solid var(--stroke);
  border-radius: 16px; margin-bottom: 12px; overflow: hidden; transition: 0.2s;
}
.faq-item[open] { border-color: var(--emerald); }

.faq-question {
  padding: 16px; font-weight: 800; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center; list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: "+"; font-size: 20px; color: var(--muted); }
.faq-item[open] .faq-question::after { content: "−"; color: var(--emerald); }

.faq-answer {
  padding: 0 16px 16px; color: var(--muted); font-size: 14px; line-height: 1.6;
  border-top: 1px dashed var(--stroke); padding-top: 12px;
}
.faq-footer {
  text-align: center; margin-top: 30px; display: flex;
  flex-direction: column; align-items: center; gap: 10px; font-weight: 700;
}

/* ---------- 17) Final CTA & Footer ---------- */
.cta-glass-card {
  background: linear-gradient(135deg, rgba(26,150,103,0.1), rgba(151,26,77,0.05));
  border: 1px solid rgba(26,150,103,0.3); border-radius: 24px; padding: 40px;
  text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.cta-header-center { max-width: 600px; margin: 0 auto 30px; }

/* Mini Flow Steps */
.steps-mini-flow {
  display: flex; justify-content: center; align-items: center; gap: 20px;
  margin-bottom: 40px; flex-wrap: wrap;
}
.mini-step {
  background: var(--surface); border: 1px solid var(--stroke);
  border-radius: 16px; padding: 16px; width: 180px;
}
.step-icon { font-size: 24px; margin-bottom: 8px; }
.step-desc { font-weight: 700; font-size: 13px; color: var(--text); }
.step-arrow { font-size: 24px; color: var(--muted); font-weight: bold; }
@media (max-width: 768px) {
  .step-arrow { display: none; }
  .mini-step { width: 100%; display: flex; align-items: center; gap: 12px; }
  .step-icon { margin-bottom: 0; }
}

.cta-actions-row {
  display: flex; justify-content: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.micro-trust { color: var(--muted); font-size: 12px; font-weight: 700; }

/* Site Footer */
.site-footer {
  background: #0b0b0f; padding: 60px 0 30px; border-top: 1px solid var(--stroke);
  color: #fff; position: relative; z-index: 10;
}
body.theme-light .site-footer { background: #1a1a1a; }

.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo { margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-desc { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.6; max-width: 350px; }
.footer-heading { color: #fff; font-weight: 900; margin-bottom: 20px; font-size: 16px; }

.footer-nav a {
  display: block; color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 14px; margin-bottom: 12px; transition: 0.2s;
}
.footer-nav a:hover { color: var(--emerald); padding-right: 6px; }

.contact-details li {
  display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.8);
  font-size: 14px; margin-bottom: 16px;
}
.contact-details a { color: #fff; text-decoration: none; font-weight: 700; border-bottom: 1px dotted rgba(255,255,255,0.3); }

/* QR Container */
.qr-container {
  display: flex; align-items: center; gap: 12px; margin-top: 24px;
  background: rgba(255,255,255,0.05); padding: 12px; border-radius: 12px; width: fit-content;
}
.qr-img { width: 50px; height: 50px; border-radius: 4px; background: #fff; padding: 2px; }
.qr-text strong { display: block; color: #fff; font-size: 13px; }
.qr-text span { font-size: 11px; color: rgba(255,255,255,0.6); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,0.5);
}
.legal-links a { color: rgba(255,255,255,0.5); text-decoration: none; }
.legal-links .sep { margin: 0 8px; }

/* ---------- 18) Sticky Mobile & Float ---------- */
.mobile-sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(11,11,15,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--stroke); padding: 12px 16px;
  display: none;
}
body.theme-light .mobile-sticky-bar { background: rgba(255,255,255,0.85); }
@media (max-width: 768px) {
  .mobile-sticky-bar { display: block; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}

.sticky-inner { display: flex; gap: 10px; }
.btn-sm { padding: 10px 16px; font-size: 14px; flex: 1; }

.whatsapp-float {
  position: fixed; left: 20px; bottom: 20px; z-index: 999;
  background: #25D366; color: #fff; padding: 12px 24px; border-radius: 99px;
  font-weight: bold; box-shadow: 0 10px 30px rgba(37,211,102,0.4);
  transition: .3s;
}
.whatsapp-float:hover { transform: translateY(-4px); }
@media (max-width: 768px) { .whatsapp-float { display: none; } } /* Hide on mobile (sticky bar used instead) */


