/* ==========================================================================
   Manara Salla Story Theme v3.0.0 — Pure Visual Showcase & Apple Fluid Motion
   ========================================================================== */

:root {
  --ap-ink: #1d1d1f;
  --ap-muted: #5c626e;
  --ap-subtle: #6e6e73;
  --ap-white: #ffffff;
  --ap-stone: #f5f5f7;
  --ap-obsidian: #070709;
  --ap-accent: #ff3203;
  --ap-accent-hover: #e02a00;
  --ap-accent-text: #d92b04;
  --ap-line: rgba(15, 23, 42, 0.08);
  --ap-track-light: rgba(118, 118, 128, 0.12);
  --ap-track-dark: rgba(255, 255, 255, 0.12);
  --ap-spring: cubic-bezier(0.32, 0.72, 0, 1);
}

body.mnr-story-home {
  background: var(--ap-white);
  color: var(--ap-ink);
  overflow-x: clip;
}

body.mnr-story-home ::selection {
  background: rgba(255, 50, 3, 0.16);
  color: var(--ap-ink);
}

#mn-native-home {
  font-family: 'Alexandria', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ap-ink);
}

#mn-native-home *,
#mf-start-sheet *,
#mf-quick-order-modal *,
#mf-lightbox-modal * {
  box-sizing: border-box;
}

#mn-native-home [hidden],
.mf-modal-backdrop[hidden],
.mf-modal-backdrop [hidden] {
  display: none !important;
}

/* ---------- Header Chrome & Top Spotlight Hero (Preserved Lock) ---------- */
body.mnr-story-home .mnr-header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: background-color 0.25s var(--ap-spring), backdrop-filter 0.25s var(--ap-spring);
}

body.mnr-story-home .mnr-header.is-scrolled {
  background: rgba(11, 12, 16, 0.86);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

body.mnr-story-home .mnr-header .mnr-nav a {
  color: rgba(255, 255, 255, 0.9);
}

body.mnr-story-home .mnr-header .mnr-nav a:hover,
body.mnr-story-home .mnr-header .mnr-nav a.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

body.mnr-story-home .mnr-header .mnr-burger {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

body.mnr-story-home .mnr-header-actions a[href*="manarh.td-i.co"] {
  display: none !important;
}

.mf-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #080604;
  color: #ffffff;
  margin-top: -64px;
  padding-block: 118px 68px;
  text-align: center;
}

.mf-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.95;
  filter: none;
  z-index: -2;
  pointer-events: none;
}

.mf-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 72% 62% at 50% 0%, rgba(255, 62, 10, 0.38) 0%, rgba(255, 50, 3, 0.14) 46%, transparent 76%),
    linear-gradient(180deg, rgba(8, 6, 4, 0.04) 0%, rgba(8, 6, 4, 0.58) 76%, #0b0c10 100%);
}

.mf-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  max-width: 780px;
  margin-inline: auto;
  position: relative;
}

.mf-hero-wordmark {
  width: 148px;
  height: auto;
  display: block;
}

.mf-hero-title {
  margin: 0;
  font-size: clamp(2.35rem, 5.2vw, 3.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-wrap: balance;
}

.mf-accent {
  color: var(--ap-accent);
}

.mf-hero-lead {
  margin: 0;
  max-width: 650px;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.86);
  text-wrap: pretty;
}

/* ---------- Sticky Glass Chapter Dock ---------- */
.ap-story-dock {
  position: sticky;
  top: 64px;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--ap-line);
}

.ap-story-dock-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-block: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ap-story-dock-inner::-webkit-scrollbar {
  display: none;
}

.ap-dock-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ap-muted);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.2s var(--ap-spring), color 0.2s ease, transform 0.14s ease;
}

.ap-dock-pill:hover {
  color: var(--ap-ink);
  background: rgba(15, 23, 42, 0.05);
}

.ap-dock-pill.is-active {
  background: var(--ap-ink);
  color: #ffffff;
}

/* ---------- Core Containers & Typographic Rhythm ---------- */
.ap-wrap,
.mf-wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.ap-section {
  padding-block: clamp(54px, 6vw, 84px);
  position: relative;
  scroll-margin-top: 118px;
}

.mf-white {
  background: var(--ap-white);
}

.ap-stone {
  background: var(--ap-stone);
}

.mf-dark {
  background: var(--ap-obsidian);
  color: #f5f5f7;
}

.ap-head {
  margin-bottom: clamp(22px, 2.8vw, 34px);
  max-width: 720px;
}

.ap-head.is-center {
  margin-inline: auto;
  text-align: center;
}

.ap-head h2,
.ap-head-row h2 {
  margin: 0 0 8px;
  font-size: clamp(1.62rem, 3.2vw, 2.55rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: var(--ap-ink);
  text-wrap: balance;
}

.mf-dark .ap-head h2,
.ap-section-dark h2 {
  color: #ffffff;
}

.ap-head p {
  margin: 0;
  font-size: clamp(0.94rem, 1.3vw, 1.04rem);
  line-height: 1.65;
  color: var(--ap-muted);
  text-wrap: pretty;
}

.ap-head-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(22px, 2.8vw, 32px);
}

/* ---------- Apple Segmented Controls + Sliding Glider ---------- */
.ap-seg-wrap {
  display: flex;
  margin-bottom: clamp(20px, 2.5vw, 30px);
}

.ap-seg-wrap.is-center {
  justify-content: center;
}

.ap-seg {
  position: relative;
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 16px;
  background: var(--ap-track-light);
  max-width: 100%;
  isolation: isolate;
}

.ap-seg-compact {
  padding: 4px;
  border-radius: 13px;
}

.ap-video-showcase .ap-seg {
  background: var(--ap-track-dark);
}

.ap-seg-glider {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: transform 0.28s var(--ap-spring), width 0.28s var(--ap-spring), height 0.28s var(--ap-spring), opacity 0.18s ease;
  opacity: 0;
}

.ap-video-showcase .ap-seg .ap-seg-glider {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.ap-seg-compact .ap-seg-glider {
  border-radius: 10px;
}

.ap-seg-btn {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ap-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 9px 16px;
  min-height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease, transform 0.14s ease;
}

.ap-seg-compact .ap-seg-btn {
  font-size: 0.84rem;
  padding: 7px 13px;
  min-height: 36px;
  border-radius: 10px;
}

.ap-seg-btn.is-active {
  color: var(--ap-ink);
}

.ap-video-showcase .ap-seg-btn {
  color: rgba(245, 245, 247, 0.72);
}

.ap-video-showcase .ap-seg-btn.is-active {
  color: #ffffff;
}

/* ---------- Buttons, Prices & Shared Controls ---------- */
.ap-dock-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.mf-bar-price {
  font-size: clamp(1.38rem, 2.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ap-ink);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.mf-dark .mf-bar-price,
.ap-video-showcase .mf-bar-price {
  color: #ffffff;
}

.mf-bar-price .mnr-sar-sym,
.mf-pkg-price .mnr-sar-sym,
.ap-start-price .mnr-sar-sym,
.ap-choice-pill .mnr-sar-sym {
  width: 0.78em;
  height: 0.78em;
  vertical-align: -0.06em;
  flex-shrink: 0;
}

.mf-bar-strike {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ap-subtle);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.mf-dark .mf-bar-strike {
  color: rgba(245, 245, 247, 0.56);
}

.mf-bar-strike .mnr-sar-sym {
  width: 0.75em;
  height: 0.75em;
}

.mf-btn {
  appearance: none;
  border: 0;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  min-height: 44px;
  padding: 11px 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.16s var(--ap-spring), opacity 0.2s ease;
}

.mf-btn-primary {
  background: var(--ap-accent);
  color: #ffffff;
}

.mf-btn-primary:hover {
  background: var(--ap-accent-hover);
  color: #ffffff;
}

.ap-text-link {
  color: var(--ap-accent-text);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding-inline: 4px;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.ap-text-link.is-light {
  color: #ff8a65;
}

.ap-short-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ap-short-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ap-stone);
  border: 1px solid var(--ap-line);
  color: var(--ap-ink);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.ap-short-badges.is-dark .ap-short-badge,
.ap-video-showcase .ap-short-badge {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f5f5f7;
}

/* ---------- Section 1: البداية مع منارة (Visual 4-Card Studio Grid) ---------- */
.ap-start-visual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.ap-start-tile {
  appearance: none;
  border: 1px solid var(--ap-line);
  background: var(--ap-stone);
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  text-align: right;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.28s var(--ap-spring), box-shadow 0.28s var(--ap-spring), border-color 0.2s ease;
}

.ap-start-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 50, 3, 0.32);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.ap-start-tile:active {
  transform: scale(0.98);
}

.ap-start-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  overflow: hidden;
}

.ap-start-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.36s var(--ap-spring);
}

.ap-start-tile:hover .ap-start-media img {
  transform: scale(1.035);
}

.ap-tile-plus {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(29, 29, 31, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ap-start-foot {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.ap-start-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ap-ink);
}

.ap-start-price {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--ap-accent-text);
  font-variant-numeric: tabular-nums;
}

.ap-start-price .mnr-price-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.ap-start-price .mnr-price-unit {
  font-size: 0.8rem;
  color: var(--ap-muted);
  font-weight: 700;
}

/* ---------- Section 2: تصميم واجهة المتجر (Phone Comparisons Spotlight) ---------- */
.ap-design-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 18px;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.ap-design-stage {
  max-width: 900px;
  margin-inline: auto;
}

.ap-ba-phones-large {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
  justify-items: center;
  margin-bottom: 26px;
}

.mf-ba-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  transition: opacity 0.28s var(--ap-spring), transform 0.28s var(--ap-spring);
}

.ap-phone-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.08);
  color: var(--ap-ink);
}

.ap-phone-badge.is-accent {
  background: var(--ap-accent);
  color: #ffffff;
}

.ap-phone-frame {
  appearance: none;
  padding: 0;
  width: 100%;
  max-width: 246px;
  aspect-ratio: 9 / 19;
  border-radius: 30px;
  overflow: hidden;
  border: 6px solid #1d1d1f;
  background: #1d1d1f;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  cursor: zoom-in;
  display: block;
  transition: transform 0.28s var(--ap-spring), box-shadow 0.28s var(--ap-spring);
}

.ap-phone-frame:hover {
  transform: translateY(-3px);
}

.ap-phone-frame.is-after {
  border-color: var(--ap-accent);
  box-shadow: 0 20px 44px rgba(255, 50, 3, 0.2);
}

.ap-phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.mf-ba-slot.is-dimmed {
  opacity: 0.34;
  transform: scale(0.95);
}

.mf-ba-slot.is-highlighted {
  opacity: 1;
  transform: scale(1.03);
}

.ap-dock-bar {
  background: var(--ap-white);
  border: 1px solid var(--ap-line);
  border-radius: 22px;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 20px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.ap-dock-bar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 18px;
}

.ap-dock-bar-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ap-ink);
}

/* ---------- Section 3: الحملات الإعلانية الممولة (#growth) ---------- */
.ap-growth-showcase {
  max-width: 960px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 36px;
  align-items: center;
}

.ap-growth-visual {
  background: var(--ap-stone);
  border: 1px solid var(--ap-line);
  border-radius: 28px;
  padding: 24px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ap-growth-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.32s var(--ap-spring);
}

.ap-growth-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.ap-growth-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.7vw, 2.15rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ap-ink);
}

.ap-growth-buy {
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid var(--ap-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

/* ---------- Section 4: السيو وتصدر نتائج قوقل (#seo Dark) ---------- */
.ap-seo-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 30px;
}

.ap-seo-hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 3.3vw, 2.65rem);
  font-weight: 800;
  line-height: 1.22;
}

.ap-seo-hero-art {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ap-seo-hero-art img {
  width: 100%;
  max-width: 340px;
  height: auto;
  object-fit: contain;
  display: block;
}

.ap-seo-proofs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.ap-seo-proof-card {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 10px;
  text-align: center;
  cursor: zoom-in;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s var(--ap-spring), border-color 0.2s ease;
}

.ap-seo-proof-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 50, 3, 0.6);
}

.ap-seo-proof-card img {
  width: 100%;
  aspect-ratio: 358 / 196;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.ap-seo-proof-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(245, 245, 247, 0.9);
  padding-bottom: 4px;
}

.ap-seo-bottom-bar {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 22px;
  padding: 15px 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

/* ---------- Section 5: التصاميم الإبداعية والفيديو (#artworks + #video) ---------- */
.ap-art-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ap-art-tile {
  appearance: none;
  border: 1px solid var(--ap-line);
  background: var(--ap-stone);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: zoom-in;
  transition: transform 0.25s var(--ap-spring), border-color 0.2s ease, box-shadow 0.25s ease;
}

.ap-art-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 50, 3, 0.48);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.ap-art-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ap-design-price-bar {
  margin-top: 22px;
  background: var(--ap-stone);
  border: 1px solid var(--ap-line);
  border-radius: 22px;
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.ap-design-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ap-choice-pill {
  appearance: none;
  border: 1px solid var(--ap-line);
  background: var(--ap-white);
  color: var(--ap-ink);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 14px;
  min-height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.14s ease;
}

.ap-choice-pill .mnr-price-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.ap-choice-pill.is-active {
  background: var(--ap-ink);
  border-color: var(--ap-ink);
  color: #ffffff;
}

.ap-design-bar-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Video Studio Showcase */
.ap-video-showcase {
  margin-top: 42px;
  background: var(--ap-obsidian);
  color: #ffffff;
  border-radius: 28px;
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: center;
}

.ap-video-visual {
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  justify-self: center;
}

.ap-video-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ap-video-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ap-video-head h3 {
  margin: 0 0 12px;
  font-size: clamp(1.32rem, 2.2vw, 1.75rem);
  font-weight: 800;
  color: #ffffff;
}

.ap-video-controls-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.ap-video-bottom-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ap-video-buy {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ---------- Section 6: تصوير المنتجات (#photography) ---------- */
.ap-photo-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 22px;
}

.ap-photo-portrait-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #e5e5ea;
  transition: transform 0.25s var(--ap-spring), border-color 0.2s ease, box-shadow 0.25s ease;
}

.ap-photo-portrait-card:hover {
  transform: translateY(-3px);
}

.ap-photo-portrait-card.is-active {
  border-color: var(--ap-accent);
  box-shadow: 0 14px 32px rgba(255, 50, 3, 0.16);
}

.ap-zoom-fab {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(15, 15, 20, 0.54);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.ap-photo-select {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  cursor: pointer;
  background: transparent;
}

.ap-photo-select::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 56%, rgba(8, 8, 12, 0.84) 100%);
  pointer-events: none;
}

.ap-photo-select img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ap-photo-overlay-title {
  position: absolute;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 2;
  color: #ffffff;
  font-size: 1.18rem;
  font-weight: 800;
  text-align: right;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.ap-photo-calc-bar {
  background: var(--ap-white);
  border: 1px solid var(--ap-line);
  border-radius: 22px;
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 18px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.04);
}

.ap-photo-stepper-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ap-stepper {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--ap-stone);
  border: 1px solid var(--ap-line);
  padding: 3px;
}

.ap-stepper button {
  appearance: none;
  border: 0;
  background: var(--ap-white);
  color: var(--ap-ink);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ap-stepper input {
  width: 44px;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ap-ink);
  font-variant-numeric: tabular-nums;
}

.ap-preset-nums {
  display: inline-flex;
  gap: 5px;
}

.ap-mini-num {
  appearance: none;
  border: 1px solid var(--ap-line);
  background: var(--ap-stone);
  color: var(--ap-ink);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
}

.ap-photo-buy-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ap-unit-note {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ap-muted);
}

/* ---------- Section 7: الباقات والخاتمة (#closing) ---------- */
.ap-packages-compact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.ap-pkg-tile {
  background: var(--ap-stone);
  border: 1px solid var(--ap-line);
  border-radius: 26px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.ap-pkg-tile.is-featured {
  background: var(--ap-white);
  border-color: rgba(255, 50, 3, 0.36);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.ap-pkg-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.ap-pkg-name {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ap-ink);
}

.mnr-badge-mint {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ap-pkg-hero-price {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.mf-pkg-price {
  font-size: clamp(2.15rem, 3.2vw, 2.95rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--ap-ink);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.ap-pkg-chips {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--ap-line);
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ap-pkg-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--ap-white);
  border: 1px solid var(--ap-line);
  color: var(--ap-ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.ap-pkg-tile.is-featured .ap-pkg-chip {
  background: var(--ap-stone);
}

.ap-pkg-cta {
  width: 100%;
}

/* Visual Closing Banner */
.ap-closing-banner {
  margin-top: 34px;
  background:
    radial-gradient(ellipse 68% 60% at 50% 0%, rgba(255, 50, 3, 0.28) 0%, transparent 66%),
    #050507;
  color: #ffffff;
  border-radius: 30px;
  padding: clamp(36px, 5vw, 56px) 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.ap-closing-logo {
  width: 160px;
  height: auto;
  display: block;
}

.ap-closing-title {
  margin: 0;
  max-width: 720px;
  font-size: clamp(1.42rem, 2.8vw, 2.15rem);
  font-weight: 800;
  line-height: 1.38;
  color: #ffffff;
  text-wrap: balance;
}

.ap-closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

/* ---------- Non-Blocking Footer Theme Switcher Strip ---------- */
.ap-mode-strip {
  background: #080e1b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 20px 26px;
  text-align: center;
}

.ap-mode-strip a.mf-theme-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Alexandria', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ap-mode-strip a.mf-theme-switcher:hover {
  background: rgba(255, 50, 3, 0.22);
  border-color: rgba(255, 50, 3, 0.55);
  color: #ffffff;
}

/* ---------- Apple Start Bottom Sheet, Quick-Order & Lightbox Modals ---------- */
.mf-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 10, 14, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
}

#mf-quick-order-modal,
#mf-lightbox-modal {
  align-items: center;
}

.mf-modal-dialog,
.mf-lightbox-dialog {
  width: 100%;
  max-width: 560px;
  max-height: 90dvh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 26px;
  padding: 16px 24px 26px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  will-change: transform;
  animation: apSheetUp 0.34s var(--ap-spring);
}

.mf-lightbox-dialog {
  max-width: 780px;
}

.ap-sheet-grabber {
  display: flex;
  justify-content: center;
  padding: 2px 0 10px;
  touch-action: none;
  cursor: grab;
}

.ap-sheet-grabber span {
  width: 40px;
  height: 5px;
  border-radius: 999px;
  background: #d1d5db;
}

.mf-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--ap-line);
}

.mf-modal-summary {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--ap-ink);
}

.mf-modal-close {
  appearance: none;
  border: 0;
  background: var(--ap-stone);
  color: var(--ap-ink);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.mf-lightbox-dialog img {
  width: 100%;
  max-height: 74dvh;
  object-fit: contain;
  border-radius: 14px;
  display: block;
  margin-inline: auto;
}

.ap-sheet-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ap-sheet-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ap-sheet-top img {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--ap-line);
  flex-shrink: 0;
}

.ap-sheet-meta p {
  margin: 0 0 8px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ap-muted);
}

.ap-sheet-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--ap-stone);
  font-size: 0.92rem;
  font-weight: 700;
}

.ap-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.ap-sheet-cta {
  flex: 1 1 200px;
}

/* ---------- Responsive Tablet (<= 960px) ---------- */
@media (max-width: 960px) {
  .ap-growth-showcase,
  .ap-seo-hero-split,
  .ap-video-showcase,
  .ap-packages-compact-grid {
    grid-template-columns: 1fr;
  }

  .ap-start-visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ap-seo-proofs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Responsive Mobile (<= 768px & <= 640px) ---------- */
@media (max-width: 768px) {
  .mf-btn,
  .ap-seg-btn,
  .ap-choice-pill,
  .ap-stepper button,
  .mf-modal-close {
    min-height: 44px;
  }

  .mf-modal-backdrop,
  #mf-quick-order-modal,
  #mf-lightbox-modal {
    align-items: flex-end;
    padding: 0;
  }

  .mf-modal-dialog,
  .mf-lightbox-dialog {
    max-width: 100%;
    border-radius: 26px 26px 0 0;
    padding: 12px 18px max(24px, env(safe-area-inset-bottom));
  }

  .mf-modal-head {
    touch-action: none;
  }
}

@media (max-width: 640px) {
  .ap-wrap,
  .mf-wrap {
    width: calc(100% - 28px);
  }

  .mf-hero {
    padding-block: 98px 46px;
  }

  .mf-hero-wordmark {
    width: 124px;
  }

  .mf-hero-title {
    font-size: clamp(1.95rem, 8.2vw, 2.45rem);
  }

  .mf-hero-lead {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .ap-story-dock-inner {
    justify-content: flex-start;
  }

  .ap-section {
    padding-block: 40px;
  }

  .ap-head,
  .ap-head-row {
    margin-bottom: 18px;
  }

  .ap-head h2,
  .ap-head-row h2 {
    font-size: 1.46rem;
    margin-bottom: 5px;
  }

  .ap-start-visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .ap-start-tile {
    border-radius: 18px;
  }

  .ap-start-foot {
    padding: 10px 12px 12px;
  }

  .ap-start-title {
    font-size: 0.92rem;
  }

  .ap-start-price {
    font-size: 0.84rem;
  }

  .ap-ba-phones-large {
    gap: 14px;
  }

  .ap-phone-frame {
    max-width: 168px;
    border-width: 4px;
    border-radius: 22px;
  }

  .ap-dock-bar {
    padding: 14px;
    border-radius: 18px;
  }

  .ap-dock-bar .mf-btn {
    width: 100%;
  }

  /* Ensure 5 Ad Platform Tabs stay strictly in 1 horizontal row on 430px */
  #mf-ads-tabs {
    width: 100%;
    justify-content: space-between;
    padding: 4px;
    gap: 2px;
  }

  #mf-ads-tabs .ap-seg-btn {
    flex: 1 1 0;
    font-size: 0.72rem;
    padding: 6px 4px;
    min-width: 0;
  }

  .ap-growth-visual {
    border-radius: 22px;
    padding: 16px;
  }

  .ap-growth-buy .mf-btn {
    width: 100%;
  }

  .ap-seo-proofs-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ap-seo-bottom-bar .mf-btn {
    width: 100%;
  }

  .ap-art-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .ap-art-tile {
    border-radius: 14px;
  }

  .ap-design-price-bar {
    padding: 14px;
    border-radius: 18px;
  }

  .ap-design-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .ap-choice-pill {
    justify-content: center;
    font-size: 0.78rem;
    padding: 8px 6px;
  }

  .ap-design-bar-cta {
    width: 100%;
    justify-content: space-between;
  }

  .ap-video-showcase {
    border-radius: 22px;
    padding: 18px;
    margin-top: 28px;
  }

  .ap-video-controls-stack .ap-seg {
    width: 100%;
  }

  .ap-video-controls-stack .ap-seg-btn {
    flex: 1 1 0;
    font-size: 0.75rem;
    padding: 6px 4px;
  }

  .ap-video-buy {
    width: 100%;
    justify-content: space-between;
  }

  .ap-photo-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
  }

  .ap-photo-portrait-card {
    border-radius: 16px;
  }

  .ap-zoom-fab {
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
  }

  .ap-photo-overlay-title {
    inset-inline: 8px;
    bottom: 10px;
    font-size: 0.84rem;
  }

  .ap-photo-calc-bar {
    padding: 14px;
    border-radius: 18px;
  }

  #mf-photo-style-seg {
    width: 100%;
  }

  #mf-photo-style-seg .ap-seg-btn {
    flex: 1 1 0;
    font-size: 0.76rem;
    padding: 6px 4px;
  }

  .ap-photo-stepper-group {
    width: 100%;
    justify-content: space-between;
  }

  .ap-photo-buy-group {
    width: 100%;
    justify-content: space-between;
  }

  .ap-pkg-tile {
    padding: 20px 18px;
    border-radius: 20px;
    gap: 16px;
  }

  .mf-pkg-price {
    font-size: 2rem;
  }

  .ap-closing-banner {
    border-radius: 22px;
    padding: 30px 18px;
  }
}

@keyframes apSheetUp {
  from {
    transform: translateY(100%);
    opacity: 0.9;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ap-seg-glider,
  .mf-ba-slot,
  .ap-start-tile,
  .ap-art-tile,
  .ap-photo-portrait-card,
  .mf-btn,
  .mf-modal-dialog,
  .mf-lightbox-dialog {
    transition: none !important;
    animation: none !important;
  }
}
