:root {
  --green: #16B84E;
  --dark-green: #087A3A;
  --orange: #FF8A00;
  --cream: #FFF8EC;
  --mint: #EAF7EE;
  --text: #252525;
  --muted: #68746d;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(8, 122, 58, 0.14);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Cairo", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--cream);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 28px;
}

.hero-content,
.section,
.footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.blob {
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  filter: blur(0.2px);
  opacity: 0.98;
}
.blob-green {
  width: 520px;
  height: 360px;
  background: linear-gradient(135deg, var(--green), var(--dark-green));
  top: -170px;
  right: -160px;
  transform: rotate(-15deg);
}
.blob-orange {
  width: 520px;
  height: 300px;
  background: linear-gradient(135deg, #ffc46c, var(--orange));
  bottom: -150px;
  left: -170px;
  transform: rotate(10deg);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(8, 122, 58, 0.08);
  border-radius: 999px;
  padding: 14px 18px;
  box-shadow: 0 14px 50px rgba(37, 37, 37, 0.06);
  backdrop-filter: blur(10px);
}
.brand img { width: 148px; height: auto; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.language-switch {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--mint);
  color: var(--dark-green);
  font-weight: 900;
  border: 1px solid rgba(8, 122, 58, 0.1);
}

body.lang-en {
  font-family: "Inter", "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.lang-en .hero-copy h1,
body.lang-en .section-heading h2,
body.lang-en .form-intro h2 {
  letter-spacing: -0.055em;
}
body.lang-en .hero-copy p,
body.lang-en .section-heading p,
body.lang-en .form-intro p,
body.lang-en .feature-card p,
body.lang-en .step p {
  line-height: 1.65;
}
body.lang-en .blob-green { right: auto; left: -160px; }
body.lang-en .blob-orange { left: auto; right: -170px; }
body.lang-en .card-topline { right: auto; left: 28px; }
body.lang-en .mock-phone { direction: ltr; }
body.lang-en .footer { direction: ltr; }
body.lang-en .footer div { direction: ltr; }
body.lang-en .footer a { margin-inline-start: auto; }
body.lang-ar .footer { direction: ltr; }
body.lang-ar .footer div { direction: rtl; }


.hero-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 54px;
  align-items: center;
  padding: 82px 0 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dark-green);
  background: rgba(22, 184, 78, 0.1);
  border: 1px solid rgba(22, 184, 78, 0.12);
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--orange);
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 760px;
}
.hero-copy h1 span { color: var(--green); font-family: "Inter", sans-serif; letter-spacing: -0.05em; }
.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.8;
  max-width: 700px;
}

.cta-row { display: flex; gap: 14px; align-items: center; margin-top: 30px; flex-wrap: wrap; }
.solid-button,
.ghost-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 50px;
  padding: 0 24px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.solid-button {
  background: var(--green);
  color: white;
  box-shadow: 0 14px 34px rgba(22, 184, 78, 0.28);
}
.solid-button:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(22, 184, 78, 0.34); }
.solid-button.small { min-height: 42px; padding: 0 18px; }
.ghost-button {
  background: white;
  color: var(--dark-green);
  border: 1px solid rgba(8, 122, 58, 0.12);
}
.link-button {
  min-height: 42px;
  padding: 0 16px;
  color: var(--dark-green);
  background: transparent;
}

.trust-row {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.trust-row div {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(8, 122, 58, 0.08);
  border-radius: 20px;
  padding: 12px 18px;
  min-width: 120px;
}
.trust-row strong { display: block; color: var(--dark-green); font-size: 20px; line-height: 1.2; }
.trust-row span { display: block; color: var(--muted); font-size: 13px; }

.hero-card {
  position: relative;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(8, 122, 58, 0.08);
  border-radius: 44px;
  min-height: 550px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}
.hero-card::before {
  width: 260px;
  height: 260px;
  background: var(--mint);
  top: -100px;
  right: -90px;
}
.hero-card::after {
  width: 180px;
  height: 180px;
  background: rgba(255, 138, 0, 0.12);
  bottom: -50px;
  left: -50px;
}
.card-topline {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 2;
  color: var(--dark-green);
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 13px;
}
.mock-phone {
  position: relative;
  z-index: 2;
  width: 275px;
  min-height: 500px;
  background: linear-gradient(180deg, #fff, #f7fff9);
  border: 10px solid #1d1d1d;
  border-radius: 42px;
  padding: 30px 16px 16px;
  direction: rtl;
  box-shadow: 0 32px 60px rgba(37, 37, 37, 0.16);
}
.phone-speaker {
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 6px;
  background: #1d1d1d;
  border-radius: 999px;
  opacity: 0.85;
}
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 22px; }
.app-top img { width: 92px; }
.app-top span { color: var(--muted); font-family: "Inter"; font-size: 12px; }
.order-card {
  background: white;
  border: 1px solid rgba(8, 122, 58, 0.08);
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 10px 24px rgba(8, 122, 58, 0.06);
}
.order-card.active { background: var(--green); color: white; }
.order-card strong,
.order-card span { display: block; }
.order-card span { color: inherit; opacity: 0.72; font-size: 13px; }
.order-card b { color: var(--orange); }
.order-card.active b { color: white; }
.mini-list { margin-top: 24px; display: grid; gap: 10px; }
.mini-list span { height: 54px; border-radius: 18px; background: var(--mint); display: block; }
.phone-nav { position: absolute; right: 22px; left: 22px; bottom: 18px; height: 46px; background: #fff; border-radius: 20px; display: flex; align-items: center; justify-content: space-around; box-shadow: 0 -4px 16px rgba(37,37,37,.05); }
.phone-nav i { width: 20px; height: 20px; border-radius: 8px; background: rgba(22,184,78,.24); display: block; }
.phone-nav i:nth-child(2) { background: rgba(255,138,0,.28); }

.section { padding: 72px 0; }
.section-heading { text-align: center; margin: 0 auto 34px; max-width: 780px; }
.section-heading.narrow { max-width: 620px; }
.section-heading h2,
.form-intro h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.15; margin: 16px 0 12px; letter-spacing: -0.03em; }
.section-heading p,
.form-intro p { color: var(--muted); font-size: 18px; line-height: 1.75; margin: 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card,
.step {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(8, 122, 58, 0.08);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 14px 40px rgba(8, 122, 58, 0.07);
}
.icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--mint);
  font-size: 28px;
  margin-bottom: 16px;
}
.feature-card h3,
.step h3 { margin: 0 0 8px; font-size: 22px; }
.feature-card p,
.step p { margin: 0; color: var(--muted); line-height: 1.7; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: steps;
}
.step span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-family: "Inter", sans-serif;
  font-weight: 900;
  margin-bottom: 14px;
}

.form-card {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(8, 122, 58, 0.09);
  border-radius: 36px;
  padding: clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow);
}
.form-intro { max-width: 760px; margin-bottom: 30px; }
.registration-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.form-group h3 {
  margin: 18px 0 0;
  color: var(--dark-green);
  font-size: 24px;
}
label { display: grid; gap: 8px; }
label span { font-weight: 800; color: var(--text); }
input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(8, 122, 58, 0.14);
  border-radius: 18px;
  min-height: 54px;
  padding: 13px 16px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
textarea { resize: vertical; min-height: 130px; }
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(22, 184, 78, 0.6);
  box-shadow: 0 0 0 4px rgba(22, 184, 78, 0.1);
}
small { color: var(--muted); }
.full { grid-column: 1 / -1; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form-footer p { color: var(--muted); margin: 0; }
.submit-button { min-height: 56px; font-size: 17px; }
.notice {
  border-radius: 20px;
  padding: 14px 16px;
  margin-bottom: 22px;
  font-weight: 800;
}
.notice.success { background: var(--mint); color: var(--dark-green); border: 1px solid rgba(22, 184, 78, .18); }
.notice.error { background: #fff1e0; color: #9f4f00; border: 1px solid rgba(255, 138, 0, .22); }

.footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 36px 0 54px;
  direction: ltr;
  color: var(--muted);
}
.footer img { width: 112px; }
.footer div { display: grid; direction: rtl; }
.footer strong { color: var(--text); font-family: "Inter", sans-serif; }
.footer a { margin-inline-start: auto; color: var(--dark-green); font-weight: 800; }

@media (max-width: 920px) {
  .hero { padding: 16px; min-height: auto; }
  .nav { border-radius: 28px; flex-direction: column; align-items: stretch; }
  .brand img { margin: 0 auto; }
  .nav-actions { justify-content: center; flex-wrap: wrap; }
  .hero-grid { grid-template-columns: 1fr; padding: 54px 0 28px; }
  .hero-card { min-height: 500px; }
  .features-grid,
  .steps { grid-template-columns: 1fr 1fr; }
  .registration-form { grid-template-columns: 1fr; }
  .footer { flex-wrap: wrap; direction: rtl; }
  .footer a { margin-inline-start: 0; }
}

@media (max-width: 620px) {
  .hero-copy h1 { font-size: 40px; }
  .hero-copy p { font-size: 18px; }
  .features-grid,
  .steps { grid-template-columns: 1fr; }
  .mock-phone { width: min(275px, 84vw); }
  .form-footer { align-items: stretch; }
  .form-footer .solid-button { width: 100%; }
  .blob-green { width: 400px; height: 300px; }
  .blob-orange { width: 360px; height: 240px; }
}

/* Admin dashboard */
.admin-body {
  background: var(--cream);
  min-height: 100vh;
}
.admin-login-shell,
.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.admin-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 0;
}
.admin-login-card,
.admin-panel,
.lead-card,
.admin-empty,
.admin-header,
.admin-stats article {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(8,122,58,.09);
  box-shadow: 0 18px 56px rgba(8,122,58,.1);
}
.admin-login-card {
  width: min(520px, 100%);
  border-radius: 36px;
  padding: clamp(26px, 5vw, 44px);
}
.admin-login-logo { width: 150px; margin-bottom: 22px; }
.admin-login-card h1,
.admin-header h1 { margin: 12px 0 8px; letter-spacing: -0.05em; }
.admin-login-card p,
.admin-header p { color: var(--muted); margin: 0 0 22px; line-height: 1.65; }
.admin-login-form { display: grid; gap: 16px; }
.admin-shell { padding: 28px 0 54px; }
.admin-header {
  border-radius: 32px;
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}
.admin-logo img { width: 132px; }
.admin-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.admin-stats article {
  border-radius: 24px;
  padding: 18px;
}
.admin-stats span { color: var(--muted); font-weight: 800; font-size: 13px; }
.admin-stats strong { display: block; color: var(--dark-green); font-size: 34px; line-height: 1; margin-top: 8px; }
.admin-panel { border-radius: 28px; padding: 18px; margin-bottom: 18px; }
.admin-filter {
  display: grid;
  grid-template-columns: 1fr 240px auto auto;
  gap: 12px;
  align-items: end;
}
.admin-results { display: grid; gap: 16px; }
.admin-empty {
  border-radius: 28px;
  padding: 28px;
  color: var(--muted);
  font-weight: 800;
}
.lead-card {
  border-radius: 30px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 18px;
}
.lead-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.lead-date { color: var(--muted); font-size: 12px; font-weight: 800; }
.lead-card h2 { margin: 6px 0; font-size: 28px; letter-spacing: -0.04em; }
.lead-card p { margin: 0; color: var(--muted); }
.status-pill {
  display: inline-flex;
  min-height: 36px;
  padding: 0 14px;
  align-items: center;
  border-radius: 999px;
  font-weight: 900;
  color: var(--dark-green);
  background: var(--mint);
  white-space: nowrap;
}
.status-contacted .status-pill { color: #7a4400; background: #fff1df; }
.status-approved .status-pill { color: var(--dark-green); background: rgba(22,184,78,.14); }
.status-not-interested .status-pill { color: #7a2727; background: #ffe8e8; }
.lead-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.lead-details div {
  background: rgba(234,247,238,.6);
  border: 1px solid rgba(8,122,58,.06);
  border-radius: 18px;
  padding: 12px;
}
.lead-details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.lead-details dd { margin: 4px 0 0; font-weight: 800; word-break: break-word; }
.lead-details a { color: var(--dark-green); text-decoration: underline; }
.lead-notes {
  margin-top: 14px;
  border-radius: 18px;
  padding: 14px;
  background: #fff8ef;
  color: var(--text);
  line-height: 1.6;
}
.lead-status-form {
  display: grid;
  gap: 14px;
  align-content: start;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(8,122,58,.08);
  border-radius: 24px;
  padding: 16px;
}
.lead-status-form textarea { min-height: 156px; }

@media (max-width: 980px) {
  .admin-header { grid-template-columns: 1fr; }
  .admin-actions { justify-content: flex-start; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-filter { grid-template-columns: 1fr; }
  .lead-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .admin-stats { grid-template-columns: 1fr; }
  .lead-title-row { flex-direction: column; }
  .lead-details { grid-template-columns: 1fr; }
  .admin-actions a { width: 100%; }
}
