/* Black Friday offer: top strip, home section, badges. Uses the tokens from style.css. */

.bf-bar {
  display: block;
  background: var(--brand-deep);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.bf-bar:hover { background: #142019; }
.bf-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding-block: 7px;
  text-align: center;
}
.bf-bar-tag {
  background: #c9f0d8;
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 1px 9px;
  border-radius: 6px;
  direction: ltr;
}
.bf-bar-countdown {
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 10px;
  border-radius: 999px;
}

/* Black Friday panel inside the home hero */
.bf-panel {
  background: var(--surface);
  color: var(--text);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
}
.bf-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.bf-tag {
  display: inline-block;
  direction: ltr;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--brand-deep);
  color: var(--cream);
  padding: 3px 10px;
  border-radius: 6px;
}
.bf-title { font-size: 1.3rem; line-height: 1.35; margin: 10px 0 4px; font-weight: 800; }
.bf-subtitle { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.bf-count { flex: none; text-align: center; }
.bf-flip { display: flex; gap: 6px; justify-content: center; }
.bf-flip-card {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 56px;
  border-radius: 8px;
  background: var(--brand-deep);
  color: var(--cream);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.bf-flip-card::after { content: ''; position: absolute; inset-inline: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, 0.35); }
.bf-days { margin: 6px 0 0; font-weight: 700; font-size: 0.85rem; color: var(--brand-dark); }
.bf-clock { margin: 0; font-size: 0.8rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.bf-product {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--brand-deep);
  color: #fff;
  text-decoration: none;
}
.bf-product:hover { background: #142019; }
.bf-product .app-tile { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.bf-product-info { flex: 1; min-width: 0; line-height: 1.3; }
.bf-product-info small { display: block; font-size: 0.75rem; font-weight: 600; color: var(--cream); opacity: 0.85; }
.bf-product-info strong { display: block; font-size: 1.05rem; font-weight: 800; }
.bf-product-save {
  flex: none;
  font-size: 0.8rem;
  font-weight: 800;
  background: var(--cream);
  color: var(--brand-deep);
  padding: 4px 10px;
  border-radius: 999px;
}
.bf-plans { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.bf-plan {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.bf-plan.is-featured { border-color: var(--brand); background: var(--brand-tint); }
.bf-plan-label strong { display: block; font-size: 0.95rem; }
.bf-plan-note { font-size: 0.78rem; font-weight: 700; color: var(--brand-dark); }
.bf-plan-price { text-align: end; line-height: 1.25; }
.bf-plan-price strong { display: block; font-size: 1.1rem; color: var(--brand); direction: ltr; unicode-bidi: isolate; }
.bf-plan-price s { font-size: 0.78rem; color: var(--text-muted); }
.bf-plan-add { padding: 8px 14px; }
.bf-gifts { margin: 12px 0 0; font-size: 0.88rem; font-weight: 600; color: var(--text-muted); }
.bf-gifts:empty { display: none; }
.bf-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 0.88rem; font-weight: 700; }
.bf-more-chip {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
  background: var(--bg);
  color: var(--brand-dark);
  text-decoration: none;
}
.bf-more-chip:hover { border-color: var(--brand); }
.bf-cta { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--brand); text-decoration: none; }
.bf-cta:hover { text-decoration: underline; }

.badge-bf { background: var(--brand-deep); color: #c9f0d8; }

.bf-gift-note {
  margin: 6px 0 10px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.5;
}
.bf-gift-note[hidden] { display: none; }


/* WhatsApp number shown as text */
.contact-phone { margin: -6px 0 14px; font-weight: 700; }
.contact-phone a { color: #fff; text-decoration: none; font-size: 1.1rem; letter-spacing: 0.03em; unicode-bidi: isolate; }
.contact-phone a:hover { text-decoration: underline; }
.contact-phone-inline { margin: 8px 0 0; font-weight: 700; }
.contact-phone-inline a { unicode-bidi: isolate; letter-spacing: 0.03em; }

/* Offer products with no listed price */
.card-ask-note { margin: 2px 0 12px; font-weight: 700; color: var(--brand-dark); font-size: 0.95rem; }
.btn-ask { background: var(--surface); color: var(--brand-dark); border-color: var(--brand); }
.btn-ask:hover { background: var(--brand-tint); }
.btn-ask .wa-icon { color: #1fa855; }

/* Product cards: starting price and plan count; the plan is picked on the product page */
.price-from { flex-basis: 100%; font-size: 0.82rem; color: var(--text-muted); margin-bottom: -6px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 12px; font-size: 0.85rem; color: var(--text-muted); }
.card-gift { color: var(--brand-dark); font-weight: 700; }

/* Plan picker on the product page */
.plan-options { display: grid; gap: 8px; margin-bottom: 18px; }
.plan-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.plan-option:hover { border-color: #cbd5c6; }
.plan-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.plan-option.is-selected { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.plan-option:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.plan-name strong { display: block; font-size: 0.98rem; }
.plan-name small { font-size: 0.8rem; font-weight: 700; color: var(--brand-dark); }
.plan-price { text-align: end; line-height: 1.25; }
.plan-price strong { display: block; font-size: 1.1rem; color: var(--brand); direction: ltr; unicode-bidi: isolate; }
.plan-price s { font-size: 0.8rem; color: var(--text-muted); }

/* Catalogue failed to load */
.load-error { text-align: center; max-width: 560px; }
.load-error .hero-ctas { justify-content: center; margin-top: 18px; }

/* Product logos shown whole (object-fit: contain) instead of cropped */
.product-visual img.img-fit { position: absolute; inset: 0; width: 100%; height: 100%; box-sizing: border-box; }

/* Forgot-password panel in the login window */
.forgot-intro { margin: 0 0 4px; color: var(--text-muted); line-height: 1.7; }
.auth-back { justify-self: center; margin-top: 4px; }

/* Privacy / terms pages: Arabic then English */
.legal + .legal { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.legal h2 { font-size: 1.2rem; margin: 26px 0 8px; }
.legal ul { padding-inline-start: 22px; line-height: 1.9; }

/* Reset code entry */
.code-input { font-size: 1.6rem; letter-spacing: 0.5em; text-align: center; font-variant-numeric: tabular-nums; }
.forgot-resend { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.forgot-resend .link-btn:disabled { opacity: 0.6; cursor: default; text-decoration: none; }
[data-forgot-step] { display: grid; gap: 14px; }
[data-forgot-step].hidden { display: none; }

/* Small button (Black Friday plan rows) */
.btn-sm { padding: 8px 14px; font-size: 0.9rem; }

/* Checkout page */
.page-hero-slim { padding-block: 32px 30px; }
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}
.checkout-main { display: grid; gap: 16px; }
.checkout-main .checkout-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.checkout-main .checkout-step + .checkout-step { border-top: 1px solid var(--border); padding-top: 20px; }
.checkout-aside { position: sticky; top: 96px; }
.checkout-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  gap: 14px;
}
.checkout-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.checkout-card-head h2 { margin: 0; font-size: 1.15rem; }
.checkout-card .checkout-summary { margin: 0; }
.checkout-submit { margin-top: 4px; }
.checkout-reassure { margin: 0; text-align: center; font-size: 0.88rem; color: var(--text-muted); }
.checkout-empty { text-align: center; padding: 48px 16px; }
.checkout-empty h2 { margin: 0 0 18px; font-size: 1.3rem; }
@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-aside { position: static; order: -1; }
}
