/* ===== Variables ===== */
:root {
  --green-dark: #1a4d3e;
  --green: #2d6a4f;
  --green-light: #40916c;
  --gold: #d4a853;
  --gold-light: #f0d78c;
  --cream: #f8f6f1;
  --white: #ffffff;
  --text: #1c1c1c;
  --text-muted: #5c5c5c;
  --danger: #c0392b;
  --shadow: 0 4px 24px rgba(26, 77, 62, 0.12);
  --radius: 16px;
  --font: 'Cairo', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  padding-bottom: 80px;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== Urgency bar ===== */
.urgency-bar {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--green-dark), var(--green), #40916c, var(--green-dark));
  background-size: 300% 100%;
  animation: urgencyGradient 5s ease infinite;
  color: var(--white);
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-align: center;
}

.urgency-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 60%,
    transparent 100%
  );
  animation: urgencyShine 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes urgencyGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes urgencyShine {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.urgency-text {
  position: relative;
  z-index: 1;
  margin: 0;
  flex: 1;
  max-width: 100%;
  font-size: clamp(0.72rem, 3.2vw, 0.88rem);
  font-weight: 600;
  line-height: 1.55;
  animation: urgencyTextPulse 2.5s ease-in-out infinite;
}

.urgency-label {
  display: inline-block;
  font-weight: 800;
  color: #fff;
  animation: urgencyLabelPop 2s ease-in-out infinite;
}

.urgency-msg {
  display: inline;
}

@keyframes urgencyTextPulse {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 0 transparent;
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
  }
}

@keyframes urgencyLabelPop {
  0%, 100% {
    color: #fff;
    transform: scale(1);
  }
  50% {
    color: #ffe082;
    transform: scale(1.04);
  }
}

@media (max-width: 768px) {
  .urgency-bar {
    padding: 0.7rem 0.65rem;
  }

  .urgency-text {
    font-size: 0.76rem;
    line-height: 1.6;
  }

  .urgency-label {
    display: block;
    margin-bottom: 0.15rem;
  }

  .urgency-msg {
    display: block;
  }
}

@media (min-width: 769px) {
  .urgency-label,
  .urgency-msg {
    display: inline;
  }

  .urgency-label {
    margin-left: 0.35rem;
  }
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #ff6b6b;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ===== Header ===== */
@keyframes headerSlideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(-10deg);
  }
}

@keyframes logoTextIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes ctaPulse {
  0%, 100% {
    box-shadow: 0 2px 12px rgba(45, 106, 79, 0.35);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 4px 20px rgba(45, 106, 79, 0.55);
    transform: scale(1.03);
  }
}

@keyframes ctaShine {
  0% {
    left: -120%;
  }
  25%, 100% {
    left: 150%;
  }
}

.header {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  animation: headerSlideDown 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: box-shadow 0.35s ease, background 0.35s ease, padding 0.35s ease;
}

.header.header-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 6px 24px rgba(26, 77, 62, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  transition: padding 0.35s ease;
}

.header.header-scrolled .header-inner {
  padding: 0.65rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--green-dark);
}

.logo-icon {
  display: inline-block;
  animation: logoFloat 2.8s ease-in-out infinite;
  transform-origin: center bottom;
}

.logo-text {
  animation: logoTextIn 0.6s ease 0.15s both;
}

.logo small {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--gold);
}

.header-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-light), var(--green));
  color: var(--white);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  animation: ctaPulse 2.2s ease-in-out infinite, logoTextIn 0.5s ease 0.3s both;
  transition: background 0.25s, transform 0.2s;
}

.header-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 100%
  );
  animation: ctaShine 3.5s ease-in-out infinite;
  pointer-events: none;
}

.header-cta:hover {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  transform: scale(1.05);
  animation: none;
}

.header-cta:active {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .urgency-bar,
  .urgency-bar::after,
  .urgency-text,
  .urgency-label,
  .header,
  .logo-icon,
  .logo-text,
  .header-cta,
  .header-cta::after {
    animation: none !important;
  }

  .header {
    opacity: 1;
    transform: none;
  }

  .urgency-label {
    display: inline;
    margin-bottom: 0;
  }

  .urgency-msg {
    display: inline;
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 800;
  border-radius: 14px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%);
  color: #1a1a1a;
  box-shadow: 0 6px 20px rgba(212, 168, 83, 0.45);
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(212, 168, 83, 0.55);
}

.btn-lg {
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  width: 100%;
}

.btn-lg small {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.85;
  margin-top: 0.2rem;
}

.btn-block { width: 100%; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(160deg, #e8f5e9 0%, var(--cream) 50%, #fff8e7 100%);
  padding: 2rem 0 2.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.badge {
  background: rgba(45, 106, 79, 0.12);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.badge-gold {
  background: rgba(212, 168, 83, 0.25);
  color: #7a5c00;
}

.hero h1 {
  font-size: clamp(1.55rem, 5vw, 2.25rem);
  font-weight: 900;
  line-height: 1.35;
  color: var(--green-dark);
  margin-bottom: 1rem;
}

.highlight {
  color: var(--green);
  background: linear-gradient(transparent 60%, rgba(212,168,83,0.35) 60%);
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.hero-checks {
  list-style: none;
  margin-bottom: 1.5rem;
}

.hero-checks li {
  padding: 0.35rem 0;
  padding-right: 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

.hero-checks li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--green);
  font-weight: 800;
}

.hero-cta-group { max-width: 400px; }

.trust-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.hero-visual {
  position: relative;
  text-align: center;
}

.hero-product-img {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(26, 77, 62, 0.22);
  object-fit: cover;
}

@media (min-width: 768px) {
  .hero-product-img {
    max-width: 100%;
  }
}

.hero-float-card {
  position: absolute;
  bottom: 10%;
  left: 5%;
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.float-num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}

.float-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ===== Trust strip ===== */
.trust-strip {
  background: var(--green-dark);
  color: var(--white);
  padding: 1rem 0;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
}

.trust-item span { display: block; font-size: 1.3rem; margin-bottom: 0.2rem; }

/* ===== Offer CTA (before problem) ===== */
.offer-cta {
  background: var(--white);
  padding: 1.25rem 0 1.75rem;
  border-bottom: 1px solid #eee;
}

.offer-social-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  padding: 0.75rem 1rem;
  background: #faf8f5;
  border: 1px solid #e8e4dc;
  border-radius: 12px;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.offer-rating-num {
  font-size: 1rem;
  font-weight: 900;
  color: var(--green-dark);
}

.offer-stars {
  color: #f4b400;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.offer-social-text {
  color: var(--text-muted);
  font-weight: 600;
}

.offer-urgency {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: #fff0f0;
  border: 1px solid #f5c6c6;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  text-align: center;
}

.offer-urgency-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.offer-urgency p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #c0392b;
  line-height: 1.5;
}

.offer-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text);
  text-align: right;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.offer-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-top: 0.35rem;
}

.offer-card {
  position: relative;
  display: block;
  cursor: pointer;
  background: var(--white);
  border: 1.5px solid #d9d4cc;
  border-radius: 14px;
  padding: 1rem 0.85rem;
  transition: box-shadow 0.2s;
}

.offer-card-basic {
  border-color: #d9d4cc;
}

.offer-card-popular {
  background: #fffaf8;
  border: 2px solid #e85d4c;
}

.offer-card-best {
  border: 1.5px solid #38a89d;
}

.offer-card-popular,
.offer-card-best {
  padding-top: 1.75rem;
}

.offer-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.offer-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 0.65rem 0.75rem;
  direction: rtl;
}

.offer-radio-ui {
  width: 22px;
  height: 22px;
  border: 2px solid #bdbdbd;
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
  justify-self: center;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.offer-card:has(.offer-radio:checked) .offer-radio-ui {
  border-color: #e53e3e;
  border-width: 2px;
  background: #e53e3e;
  box-shadow: inset 0 0 0 5px var(--white);
}

.offer-details {
  min-width: 0;
  text-align: right;
}

.offer-name {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.5;
}

.offer-sub,
.offer-unit {
  display: block;
  font-size: 0.7rem;
  color: #888;
  font-weight: 600;
  line-height: 1.45;
  margin-top: 0.15rem;
}

.offer-gift {
  display: block;
  font-size: 0.7rem;
  color: #38a169;
  font-weight: 700;
  margin-top: 0.35rem;
}

.offer-price-col {
  text-align: left;
  flex-shrink: 0;
  min-width: 78px;
  direction: ltr;
}

.offer-price {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  color: #e53e3e;
  line-height: 1.1;
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}

.offer-price small {
  font-size: 0.72rem;
  font-weight: 800;
}

.offer-save-line {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: #38a169;
  margin-top: 0.25rem;
  text-align: left;
}

.offer-badges {
  position: absolute;
  top: -10px;
  left: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
}

.offer-badges-single {
  justify-content: center;
}

.offer-badge {
  position: static;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: var(--white);
  white-space: nowrap;
  line-height: 1.2;
  flex-shrink: 0;
}

.offer-badge-popular {
  background: #e53e3e;
}

.offer-badge-save {
  background: #dd6b20;
}

.offer-badge-gift {
  background: #319795;
}

.offer-order-btn {
  margin-top: 0.25rem;
}

/* ===== Offer CTA — Mobile first ===== */
@media (max-width: 639px) {
  .offer-cta {
    padding: 1rem 0 1.5rem;
  }

  .offer-cta .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .offer-title {
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
  }

  .offer-cards {
    gap: 0.85rem;
    padding-top: 0.5rem;
  }

  .offer-card {
    padding: 0.8rem 0.7rem;
    min-height: 48px;
  }

  .offer-card-popular,
  .offer-card-best {
    padding-top: 1.65rem;
  }

  .offer-badges {
    top: -9px;
    left: 6px;
    right: 6px;
    gap: 0.25rem;
  }

  .offer-badge {
    font-size: 0.58rem;
    padding: 0.22rem 0.45rem;
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .offer-row {
    display: grid;
    grid-template-columns: 26px 1fr;
    grid-template-areas:
      "radio details"
      "price price";
    gap: 0.35rem 0.5rem;
    direction: rtl;
    align-items: start;
  }

  .offer-radio-ui {
    grid-area: radio;
    align-self: start;
    margin-top: 0.15rem;
    width: 20px;
    height: 20px;
  }

  .offer-card:has(.offer-radio:checked) .offer-radio-ui {
    box-shadow: inset 0 0 0 4px var(--white);
  }

  .offer-details {
    grid-area: details;
    padding-left: 0.15rem;
  }

  .offer-name {
    font-size: 0.8rem;
    line-height: 1.4;
    word-break: break-word;
  }

  .offer-sub,
  .offer-unit {
    font-size: 0.65rem;
  }

  .offer-gift {
    display: none;
  }

  .offer-price-col {
    grid-area: price;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
    padding: 0.55rem 0.15rem 0;
    margin-top: 0.15rem;
    border-top: 1px dashed #e8e4e4;
    direction: ltr;
  }

  .offer-price {
    font-size: 1.2rem;
    white-space: nowrap;
  }

  .offer-price-old {
    font-size: 0.7rem;
    margin: 0;
    text-align: right;
    flex: 1;
  }

  .offer-save-line {
    font-size: 0.65rem;
    margin: 0;
    white-space: nowrap;
  }

  .offer-order-btn {
    font-size: 0.95rem;
    padding: 0.9rem 1rem;
  }
}

/* Desktop: صف واحد أفقي */
@media (min-width: 640px) {
  .offer-cta { padding: 2rem 0; }
  .offer-title { font-size: 1.35rem; }
  .offer-card {
    padding: 1.1rem 1rem;
  }
  .offer-card-popular,
  .offer-card-best {
    padding-top: 1.75rem;
  }
  .offer-row {
    display: grid;
    grid-template-columns: 26px 1fr auto;
    grid-template-areas: none;
    align-items: center;
  }
  .offer-radio-ui {
    grid-area: unset;
    margin-top: 0;
  }
  .offer-details {
    grid-area: unset;
  }
  .offer-price-col {
    grid-area: unset;
    display: block;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
    min-width: 88px;
  }
  .offer-name { font-size: 0.92rem; }
  .offer-price { font-size: 1.5rem; }
  .offer-badge { font-size: 0.65rem; padding: 0.3rem 0.7rem; max-width: none; }
}

/* ===== Sections ===== */
.section {
  padding: 3rem 0;
}

.section-tag {
  display: inline-block;
  background: rgba(192, 57, 43, 0.1);
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.section-tag-green {
  background: rgba(45, 106, 79, 0.12);
  color: var(--green);
}

.section-tag-gold {
  background: rgba(212, 168, 83, 0.25);
  color: #7a5c00;
}

.section h2 {
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  font-weight: 900;
  color: var(--green-dark);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.text-danger { color: var(--danger); }

.section-lead {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

/* ===== Problem ===== */
.problem-section { background: var(--white); }

.split-block {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.split-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

.problem-photo {
  object-fit: cover;
  aspect-ratio: 16 / 10;
  max-height: 420px;
}

.pain-list {
  list-style: none;
}

.pain-list li {
  padding: 0.65rem 0;
  padding-right: 1.75rem;
  position: relative;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.pain-list li::before {
  content: '✗';
  position: absolute;
  right: 0;
  color: var(--danger);
  font-weight: 800;
}

.empathy {
  margin-top: 1.25rem;
  padding: 1rem;
  background: #fff5f5;
  border-radius: var(--radius);
  border-right: 4px solid var(--danger);
  font-size: 0.9rem;
}

/* ===== Solution benefits ===== */
.solution-section { background: linear-gradient(180deg, var(--cream) 0%, #e8f5e9 100%); }

.benefits-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.benefit-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.benefit-icon { font-size: 2rem; margin-bottom: 0.5rem; }

.benefit-card h3 {
  font-size: 1rem;
  color: var(--green-dark);
  margin-bottom: 0.4rem;
}

.benefit-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ===== Before / After ===== */
.before-after-section {
  background: linear-gradient(180deg, var(--white) 0%, #f0f7f4 50%, var(--cream) 100%);
}

.ba-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.ba-header .section-tag { margin-bottom: 0.75rem; }

.ba-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.75rem;
  line-height: 1.8;
}

.ba-showcase {
  background: linear-gradient(145deg, var(--green-dark) 0%, #1e5c48 100%);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: 0 20px 50px rgba(26, 77, 62, 0.25);
  margin-bottom: 1.75rem;
}

@media (min-width: 640px) {
  .ba-showcase { padding: 1.75rem 2rem; }
}

/* صورة المقارنة — يسار=قبل، يمين=بعد (لا يتأثر بـ RTL الصفحة) */
.ba-frame,
.ba-frame-desktop {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.ba-split-mobile {
  display: none;
}

.ba-frame::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: linear-gradient(180deg, transparent 5%, var(--gold) 50%, transparent 95%);
  z-index: 2;
  pointer-events: none;
}

.ba-hero-img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

/* بطاقات قبل / بعد */
.ba-pill {
  position: absolute;
  top: 1rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem 0.5rem 0.5rem;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* يسار الصورة = قبل | يمين الصورة = بعد */
.ba-pill-before {
  left: 1rem;
  right: auto;
  background: rgba(192, 57, 43, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ba-pill-after {
  right: 1rem;
  left: auto;
  background: rgba(45, 106, 79, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pill-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  flex-shrink: 0;
}

.pill-text {
  display: flex;
  flex-direction: column;
  color: var(--white);
  line-height: 1.2;
}

.pill-text strong {
  font-size: 0.85rem;
  font-weight: 800;
}

.pill-text small {
  font-size: 0.68rem;
  opacity: 0.9;
  font-weight: 600;
}

/* VS في المنتصف */
.ba-frame .ba-vs {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-frame .ba-vs span {
  font-size: 0.9rem;
  font-weight: 900;
  color: #1a1a1a;
}

/* خط زمني */
.ba-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 1.5rem;
  padding: 0 0.5rem;
}

.ba-timeline-item {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s;
}

.ba-timeline-active {
  background: rgba(212, 168, 83, 0.25);
  border: 1px solid rgba(212, 168, 83, 0.5);
}

.tl-week {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 0.2rem;
}

.tl-desc {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.ba-timeline-line {
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

/* مقاييس */
.ba-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.ba-metric {
  text-align: center;
  padding: 0.85rem 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.metric-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1.2;
}

.metric-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.25rem;
}

.ba-showcase .ba-disclaimer {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  margin: 1rem 0 0;
}

/* ===== Mobile: تخطيط عمودي أوضح ===== */
@media (max-width: 640px) {
  .ba-showcase {
    padding: 1rem;
    border-radius: 18px;
  }

  .ba-frame-desktop {
    display: none;
  }

  .ba-split-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .ba-panel {
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.15);
  }

  /* قصّ نصف الصورة: يسار=قبل | يمين=بعد */
  .ba-panel-crop {
    width: 100%;
    height: 220px;
    background-image: url('assets/before-after.png');
    background-repeat: no-repeat;
    background-size: 200% 100%;
  }

  .ba-crop-before {
    background-position: 0% center;
  }

  .ba-crop-after {
    background-position: 100% center;
  }

  .ba-panel-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    color: var(--white);
  }

  .ba-panel-label span {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
  }

  .ba-panel-label strong {
    font-size: 0.9rem;
  }

  .ba-panel-label small {
    font-size: 0.72rem;
    opacity: 0.9;
  }

  .ba-panel-label-before {
    background: rgba(192, 57, 43, 0.85);
  }

  .ba-panel-label-after {
    background: rgba(45, 106, 79, 0.85);
  }

  .ba-timeline {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.25rem;
  }

  .ba-timeline-line {
    width: 2px;
    height: 20px;
    margin: 0 auto;
  }

  .ba-timeline-item {
    width: 100%;
    padding: 0.85rem 1rem;
  }

  .ba-metrics {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .ba-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: right;
    padding: 0.75rem 1rem;
  }

  .metric-value {
    font-size: 1.4rem;
    order: -1;
  }

  .metric-label {
    margin-top: 0;
    font-size: 0.8rem;
  }
}

@media (min-width: 641px) {
  .ba-split-mobile {
    display: none;
  }
}

.result-card {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.result-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.result-card p { font-size: 0.9rem; opacity: 0.9; }

.result-side-img {
  border-radius: 12px;
  max-height: 220px;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

/* ===== How to use ===== */
.how-section { background: var(--cream); }

.steps-list {
  list-style: none;
  counter-reset: steps;
  margin-bottom: 1.5rem;
}

.steps-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed #ccc;
  font-weight: 600;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  flex-shrink: 0;
}

.spec-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  background: var(--white);
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-dark);
}

/* ===== Reviews ===== */
.reviews-section { background: var(--white); }

.reviews-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--cream);
  border-radius: var(--radius);
}

.stat-big {
  font-size: 3rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}

.stat-big span { font-size: 1.2rem; color: var(--text-muted); }

.stars { color: var(--gold); font-size: 1.2rem; letter-spacing: 2px; }

.stat-detail p { font-size: 0.82rem; color: var(--text-muted); }

.reviews-grid {
  display: grid;
  gap: 1rem;
}

.review-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid #e8e4dc;
}

.stars-sm { color: var(--gold); font-size: 0.9rem; margin-bottom: 0.5rem; }

.review-card p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.review-card footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 40px;
  height: 40px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.review-card footer strong { display: block; font-size: 0.9rem; }
.review-card footer small { color: var(--green); font-size: 0.75rem; }

/* ===== Packages (new design) ===== */
.packages-section {
  background: linear-gradient(180deg, #faf8f5 0%, #eef6f1 100%);
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  scroll-margin-top: 80px;
}

.pkg-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.pkg-title {
  font-size: clamp(1.25rem, 4.5vw, 1.65rem);
  font-weight: 900;
  color: var(--green-dark);
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.pkg-title-accent {
  color: var(--green);
  background: linear-gradient(transparent 65%, rgba(212, 168, 83, 0.35) 65%);
}

.pkg-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.offer-cards-bottom {
  margin-bottom: 1.5rem;
}

.offer-price-old {
  display: block;
  font-size: 0.72rem;
  color: #aaa;
  text-decoration: line-through;
  font-weight: 600;
  margin-bottom: 0.1rem;
  text-align: left;
}

/* نموذج الطلب */
#orderForm {
  scroll-margin-top: 90px;
}

.pkg-form {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcf9 100%);
  border-radius: 20px;
  padding: 1.75rem 1.35rem;
  max-width: 540px;
  margin: 2rem auto 0;
  border: 3px solid var(--green);
  box-shadow:
    0 0 0 6px rgba(45, 106, 79, 0.08),
    0 16px 48px rgba(26, 77, 62, 0.18);
  animation: formGlow 3s ease-in-out infinite;
}

@keyframes formGlow {
  0%, 100% {
    box-shadow:
      0 0 0 6px rgba(45, 106, 79, 0.08),
      0 16px 48px rgba(26, 77, 62, 0.18);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(45, 106, 79, 0.14),
      0 20px 56px rgba(26, 77, 62, 0.22);
  }
}

.pkg-form-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px dashed #d4e8dc;
}

.pkg-form-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.pkg-form-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--green-dark);
  margin: 0 0 0.4rem;
  line-height: 1.35;
}

.pkg-form-sub {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #c0392b;
}

.pkg-form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 1.35rem;
}

.pkg-form .form-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
  color: var(--green-dark);
}

.field-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.pkg-form .form-group input {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 2px solid #c5d9ce;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pkg-form .form-group input::placeholder {
  color: #aaa;
  font-weight: 500;
}

.pkg-form .form-group input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.15);
  transform: translateY(-1px);
}

.pkg-order-summary {
  background: linear-gradient(135deg, #e8f5e9 0%, #f0f9f4 100%);
  border: 2px solid #b8dfc8;
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.35rem;
}

.pkg-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.4rem 0;
}

.pkg-summary-row strong {
  color: var(--green-dark);
  font-weight: 900;
  text-align: left;
  font-size: 0.92rem;
}

.pkg-summary-total {
  border-top: 2px solid #b8dfc8;
  margin-top: 0.5rem;
  padding-top: 0.85rem;
}

.pkg-summary-total span:first-child {
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-dark);
}

.pkg-summary-price {
  font-size: 1.5rem;
  color: var(--green-dark) !important;
  font-variant-numeric: lining-nums;
  direction: ltr;
}

.pkg-submit {
  font-size: 1.1rem !important;
  padding: 1.1rem 1.25rem !important;
  box-shadow: 0 8px 24px rgba(212, 168, 83, 0.45) !important;
}

.pkg-submit small {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.35rem;
  opacity: 0.95;
}

.pkg-form-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid #e8e4dc;
}

.pkg-form-trust span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-dark);
  background: #f0f7f4;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .pkg-form {
    margin-top: 1.5rem;
    padding: 1.5rem 1.1rem;
    border-width: 2px;
    border-radius: 18px;
  }

  .pkg-form-title {
    font-size: 1.2rem;
  }

  .pkg-form .form-group input {
    padding: 1.05rem 1rem;
    font-size: 1rem;
    min-height: 52px;
  }

  .pkg-submit {
    min-height: 56px;
  }

  .pkg-form-trust {
    flex-direction: column;
    align-items: stretch;
  }

  .pkg-form-trust span {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pkg-form {
    animation: none;
  }
}

/* ===== Order form (shared fields) ===== */
.order-form,
.pkg-form {
  /* uses .form-group below */
}

.form-title {
  font-size: 1.1rem;
  color: var(--green-dark);
  margin-bottom: 1.25rem;
  text-align: center;
}

.form-title span { color: var(--green); font-size: 0.9rem; }

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--green-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color 0.2s;
  background: var(--cream);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}

.input-rtl {
  direction: rtl;
  text-align: right;
}

.input-rtl::placeholder {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

.order-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: #e8f5e9;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin: 1.25rem 0;
  font-weight: 600;
}

.summary-price {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--green-dark);
}

.form-trust {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ===== Guarantee ===== */
.guarantee-section { padding: 2rem 0; }

.guarantee-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.guarantee-icon { font-size: 2.5rem; flex-shrink: 0; }

.guarantee-box h3 {
  color: var(--green-dark);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.guarantee-box p { font-size: 0.88rem; color: var(--text-muted); }

/* ===== FAQ ===== */
.faq-section { background: var(--white); }

.faq-list { max-width: 700px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid #eee;
  padding: 0.5rem 0;
}

.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  padding: 0.85rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--green-dark);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--green);
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
  padding-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
  padding: 2rem 0 5rem;
  text-align: center;
  font-size: 0.82rem;
}

.footer-note {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  opacity: 0.7;
}

.footer-version {
  font-size: 0.6rem;
  opacity: 0.35;
  margin-top: 0.25rem;
}

/* ===== Sticky CTA ===== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 200;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}

.sticky-price small {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.sticky-price strong {
  font-size: 1.1rem;
  color: var(--green-dark);
}

.sticky-cta .btn {
  flex: 1;
  max-width: 220px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  border-radius: 12px;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 1rem;
}

.modal[hidden] { display: none; }

.modal-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  max-width: 360px;
  width: 100%;
}

.modal-icon { font-size: 3rem; display: block; margin-bottom: 1rem; }

.modal-content h3 { color: var(--green-dark); margin-bottom: 0.5rem; }

.modal-content p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.9rem; }

/* ===== Desktop ===== */
@media (min-width: 640px) {
  .trust-items { grid-template-columns: repeat(4, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-full { grid-column: 1 / -1; }
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .split-block {
    grid-template-columns: 1fr 1fr;
  }
  .result-card {
    grid-template-columns: 200px 1fr;
  }
  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
}
