/* ============================================================
   30% | أنت مو بروحك — Shared Stylesheet
   Tech Lead: Al-Maraghi TECHS
   Pages: gateway (index) · shop (30%) · story (you-not-alone)
   RTL · CSS Logical Properties · Zero CLS
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   §1  DESIGN TOKENS
══════════════════════════════════════════════════════════════ */
:root {
  --tech-primary:   #D31D24;
  --corp-navy:      #1A1A4E;
  --neutral-black:  #000000;
  --neutral-white:  #e5e5e5;
  --impact-blue:    #0057A0;
  --impact-green:   #79B443;
  --impact-yellow:  #FFD200;

  --footer-h:       72px;
  --nav-h:          64px;

  --font-arabic:    'Tajawal', 'Segoe UI', 'Tahoma', sans-serif;
  --ease-premium:   cubic-bezier(0.77, 0, 0.175, 1);
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);

  --glass-bg:       rgba(8, 8, 18, 0.78);
  --glass-border:   rgba(255, 255, 255, 0.13);
}

/* ══════════════════════════════════════════════════════════════
   §2  RESET & BASE
══════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-arabic);
  background: var(--neutral-black);
  color: var(--neutral-white);
  min-block-size: 100dvh;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-inline-size: 100%; }
a   { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ══════════════════════════════════════════════════════════════
   §3  GATEWAY  — split screen (visible immediately, no splash)
   SplashScreen component lives in assets/SplashScreen/ — use it
   on-demand from any page; it is NOT auto-triggered on load.
══════════════════════════════════════════════════════════════ */

#main-content { /* gateway wrapper — always visible */ }

/* ══════════════════════════════════════════════════════════════
   §4  GATEWAY SPLIT  — index.html
   We use dir="ltr" on the container so first DOM child = visual LEFT.
   All inner text content remains RTL via its own dir attribute.
══════════════════════════════════════════════════════════════ */
.gateway-split {
  display: flex;
  block-size: calc(100dvh - var(--footer-h));
  overflow: hidden;
  position: relative;
}

/* Vertical divider line */
@keyframes divider-breathe {
  0%, 100% { opacity: 0.55; }
  50%       { opacity: 1; filter: drop-shadow(0 0 7px rgba(255,255,255,0.22)); }
}

/* Panel ambient glow animations */
@keyframes pulse-glow-red {
  0%, 100% { opacity: 0.12; }
  50%       { opacity: 0.30; }
}
@keyframes pulse-glow-blue {
  0%, 100% { opacity: 0.09; }
  50%       { opacity: 0.24; }
}

.gateway-divider {
  position: absolute;
  inset-inline-start: 50%;
  inset-block: 8%;
  inline-size: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255,255,255,0.22) 30%,
    rgba(255,255,255,0.22) 70%,
    transparent 100%
  );
  z-index: 10;
  pointer-events: none;
  animation: divider-breathe 4.5s ease-in-out infinite;
}

/* Panel base */
.gateway-panel {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  outline: none;
  transition: flex 0.72s var(--ease-premium);
}

/* Desktop hover expand — 62/38 */
@media (min-width: 768px) {
  .gateway-split:has(.gateway-commerce:hover)          .gateway-commerce      { flex: 1 1 62%; }
  .gateway-split:has(.gateway-commerce:hover)          .gateway-humanitarian  { flex: 1 1 38%; }
  .gateway-split:has(.gateway-humanitarian:hover)      .gateway-humanitarian  { flex: 1 1 62%; }
  .gateway-split:has(.gateway-humanitarian:hover)      .gateway-commerce      { flex: 1 1 38%; }
  .gateway-split:has(.gateway-commerce:focus-within)   .gateway-commerce      { flex: 1 1 62%; }
  .gateway-split:has(.gateway-commerce:focus-within)   .gateway-humanitarian  { flex: 1 1 38%; }
  .gateway-split:has(.gateway-humanitarian:focus-within) .gateway-humanitarian { flex: 1 1 62%; }
  .gateway-split:has(.gateway-humanitarian:focus-within) .gateway-commerce    { flex: 1 1 38%; }
}

/* Commerce panel */
.gateway-commerce { background: var(--neutral-black); }

.gateway-commerce::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.gateway-commerce::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(211,29,36,0.42) 0%, transparent 65%);
  animation: pulse-glow-red 5s ease-in-out infinite;
  pointer-events: none;
}
.gateway-commerce:hover::after,
.gateway-commerce:focus-within::after { animation: none; opacity: 0.52; }

/* Humanitarian panel */
.gateway-humanitarian {
  background: linear-gradient(145deg, #f0f4ff 0%, #e8eeff 50%, #dce6f8 100%);
  color: var(--neutral-black);
}

/* Diagonal stripe texture — mirrors dot-grid on commerce side */
.gateway-humanitarian::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -55deg,
    transparent 0px,
    transparent 22px,
    rgba(0,87,160,0.05) 22px,
    rgba(0,87,160,0.05) 23px
  );
  pointer-events: none;
  z-index: 0;
}

.gateway-humanitarian::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(0,87,160,0.28) 0%, transparent 65%);
  animation: pulse-glow-blue 5.5s ease-in-out infinite;
  pointer-events: none;
}
.gateway-humanitarian:hover::after,
.gateway-humanitarian:focus-within::after { animation: none; opacity: 0.40; }

/* Full-area link */
.gateway-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  inline-size: 100%;
  block-size: 100%;
  position: relative;
  z-index: 2;
  color: inherit;
}

/* Inner content */
.gateway-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
  padding: 2.5rem 2rem;
  transition: transform 0.65s var(--ease-premium);
}
.gateway-panel:hover .gateway-content,
.gateway-panel:focus-within .gateway-content { transform: scale(1.035); }

/* Logo circle */
.gateway-logo-wrap {
  inline-size: clamp(120px, 14vw, 180px);
  block-size:  clamp(120px, 14vw, 180px);
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  transition: box-shadow 0.55s ease, border-color 0.55s ease;
}
.gateway-commerce .gateway-logo-wrap   { border-color: rgba(211,29,36,0.18); }
.gateway-humanitarian .gateway-logo-wrap { border-color: rgba(0,87,160,0.15); background: rgba(0,87,160,0.05); }
.gateway-commerce:hover .gateway-logo-wrap {
  box-shadow: 0 0 70px rgba(211,29,36,0.45), 0 0 24px rgba(211,29,36,0.2);
  border-color: rgba(211,29,36,0.55);
}
.gateway-humanitarian:hover .gateway-logo-wrap {
  box-shadow: 0 0 70px rgba(0,87,160,0.32), 0 0 24px rgba(0,87,160,0.15);
  border-color: rgba(0,87,160,0.45);
}

.gateway-logo { inline-size: 100%; block-size: 100%; object-fit: cover; }

.gateway-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0.72;
  font-weight: 500;
}

.gateway-title {
  font-size: clamp(3.5rem, 8vw, 9rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0;
}

.gateway-desc {
  font-size: clamp(0.88rem, 1.5vw, 1.1rem);
  opacity: 0.82;
  max-inline-size: 26ch;
  line-height: 1.65;
  font-weight: 400;
}

/* Desktop micro-copy — always visible, below CTA */
.gateway-micro {
  display: none;
  font-size: 0.62rem;
  font-weight: 500;
  opacity: 0.30;
  letter-spacing: 0.06em;
  margin-block-start: -0.2rem;
  pointer-events: none;
}
@media (min-width: 768px) {
  .gateway-micro { display: block; }
}
.gateway-humanitarian .gateway-micro { color: var(--impact-blue); }

/* Enter CTA — visible at 40% by default, full on hover */
.gateway-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.8rem;
  border-radius: 2rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-block-start: 0.4rem;
  opacity: 0.40;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.gateway-panel:hover .gateway-cta,
.gateway-panel:focus-within .gateway-cta {
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 4px 24px rgba(0,0,0,0.22);
}
.gateway-commerce .gateway-cta     { background: var(--tech-primary); color: white; }
.gateway-humanitarian .gateway-cta { background: var(--impact-blue);  color: white; }
/* CTA text variant: hide mobile hint by default */
.cta-mobile { display: none; }

/* ── Mobile Swiper (< 768px) ── */
@media (max-width: 767px) {
  .gateway-split { block-size: calc(100dvh - 60px); }
  .gateway-split .swiper-wrapper { display: flex; block-size: 100%; }
  .gateway-panel  { block-size: 100%; }
  .gateway-divider { display: none; }
  .gateway-title  { font-size: clamp(4rem, 22vw, 7rem); }
  .gateway-cta    { opacity: 1; transform: none; }
  .gateway-split .swiper-pagination { display: none; }
  .cta-desktop    { display: none; }
  .cta-mobile     { display: inline; }

  .swiper-pagination-bullet        { background: rgba(140,140,140,0.7); opacity: 1; }
  .swiper-pagination-bullet-active { background: var(--tech-primary); }
}

/* Desktop: neutralise any Swiper bundle overrides on the flex container */
@media (min-width: 768px) {
  .gateway-split.swiper { overflow: visible; }
  .gateway-split .swiper-wrapper {
    display: flex !important;
    transform: none !important;
    transition: none !important;
    block-size: 100%;
  }
  .gateway-split .swiper-slide { inline-size: auto !important; }
}

/* ── Mobile swipe hints «» — below centre of each panel ── */
.gateway-swipe-hint {
  position: absolute;
  bottom: 10%;
  left: 50%;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  z-index: 3;
  display: none; /* desktop: hidden */
  user-select: none;
}
.gateway-commerce    .gateway-swipe-hint { color: rgba(255,255,255,0.60); }
.gateway-humanitarian .gateway-swipe-hint { color: rgba(0,87,160,0.60); }

@keyframes swipe-left-hint {
  0%, 100% { transform: translateX(-50%);           opacity: 0.45; }
  55%       { transform: translateX(calc(-50% - 14px)); opacity: 0.90; }
}
@keyframes swipe-right-hint {
  0%, 100% { transform: translateX(-50%);           opacity: 0.45; }
  55%       { transform: translateX(calc(-50% + 14px)); opacity: 0.90; }
}

@media (max-width: 767px) {
  .gateway-swipe-hint { display: block; }
  .gateway-commerce    .gateway-swipe-hint { animation: swipe-left-hint  1.7s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
  .gateway-humanitarian .gateway-swipe-hint { animation: swipe-right-hint 1.7s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
}

/* ── Entrance animation — triggered by .gateway-revealed on #main-content ── */
@keyframes gatewayFadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
#main-content.gateway-revealed .gateway-commerce .gateway-content {
  animation: gatewayFadeUp 0.75s 0.05s var(--ease-out) both;
}
#main-content.gateway-revealed .gateway-humanitarian .gateway-content {
  animation: gatewayFadeUp 0.75s 0.22s var(--ease-out) both;
}

/* ══════════════════════════════════════════════════════════════
   §5  SUB-PAGE NAV BAR  — shop & story
══════════════════════════════════════════════════════════════ */
.subpage-nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: var(--nav-h);
  z-index: 5000;
  display: flex;
  align-items: center;
  padding-inline: 2rem;
  gap: 1rem;
  background: rgba(8, 8, 16, 0.88);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-block-end: 1px solid var(--glass-border);
}

body[data-page="story"] .subpage-nav {
  background: rgba(248, 248, 255, 0.92);
  border-block-end-color: rgba(0,0,0,0.08);
  color: var(--neutral-black);
}

.home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 40px;
  block-size: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  flex-shrink: 0;
}
.home-btn:hover { background: var(--glass-bg); transform: scale(1.1); }
body[data-page="story"] .home-btn:hover { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.2); }

.nav-title {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0.52;
  font-weight: 600;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-inline-size: 40px;
  justify-content: flex-end;
}

/* Cart button */
.cart-btn {
  position: relative;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  inline-size: 40px;
  block-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--neutral-white);
  font-size: 1rem;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.cart-btn:hover { background: var(--tech-primary); border-color: var(--tech-primary); transform: scale(1.1); }

.cart-count {
  position: absolute;
  inset-block-start: -5px;
  inset-inline-end: -5px;
  background: var(--tech-primary);
  color: white;
  border-radius: 50%;
  inline-size: 18px;
  block-size: 18px;
  font-size: 0.62rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s, transform 0.3s var(--ease-premium);
}
.cart-count.visible { opacity: 1; transform: scale(1); }

/* ══════════════════════════════════════════════════════════════
   §6  SHOP PAGE  — 30-percent.html
══════════════════════════════════════════════════════════════ */
body[data-page="shop"] {
  background: #e5e5e5;
  overflow-y: auto;
}

.shop-main {
  padding-block-start: var(--nav-h);
  padding-block-end: calc(var(--footer-h) + 3rem);
  min-block-size: 100dvh;
}

/* Hero banner — light, premium, emotionally persuasive */
.shop-hero {
  min-block-size: clamp(55dvh, 65dvh, 80dvh);
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  border-block-end: 1px solid rgba(0,0,0,0.07);
}

/* Ghost number background */
.shop-hero::before {
  content: '٣٠٪';
  position: absolute;
  inset-inline-end: -2rem;
  inset-block-end: -4rem;
  font-size: clamp(12rem, 34vw, 26rem);
  font-weight: 900;
  color: rgba(0,0,0,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  font-family: var(--font-arabic);
}

.shop-hero-kicker {
  font-size: 0.7rem;
  letter-spacing: 0;
  color: var(--tech-primary);
  text-transform: uppercase;
  font-weight: 600;
  margin-block-end: 1.25rem;
  display: block;
}

.shop-hero-title {
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
  color: #000000;
  margin-block-end: 1.5rem;
}

.shop-hero-accent {
  color: var(--tech-primary);
  font-style: normal;
  display: block;
}

.shop-hero-tagline {
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  color: rgba(0,0,0,0.52);
  max-inline-size: 42ch;
  line-height: 1.85;
  margin-block-end: 2.5rem;
  letter-spacing: 0;
}

.shop-hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.shop-hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 2.2rem;
  background: #000000;
  color: #ffffff;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0;
  transition: transform 0.2s, opacity 0.2s;
}
.shop-hero-cta:hover { opacity: 0.85; transform: translateY(-2px); }

.shop-hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: rgba(121,180,67,0.12);
  border: 1px solid rgba(121,180,67,0.3);
  border-radius: 0.5rem;
  font-size: 0.78rem;
  color: #3d7a1a;
}

/* Impact strip */
.impact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--tech-primary);
}
.impact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border-inline-start: 1px solid rgba(255,255,255,0.18);
  color: #e5e5e5;
  text-align: center;
}
.impact-item:last-child { border-inline-start: none; }
.impact-num {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}
.impact-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.85);
  margin-block-start: 0.4rem;
  letter-spacing: 0;
}

/* Product section */
.product-section { padding: 3rem clamp(1.5rem, 5vw, 5rem); background: #e5e5e5; }

.product-section-label {
  font-size: 0.64rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(0,0,0,0.38);
  margin-block-end: 2rem;
  padding-block-end: 1rem;
  border-block-end: 1px solid rgba(0,0,0,0.08);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(0,0,0,0.07);
}
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }

.product-card {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 3rem 1rem 1.5rem;
  gap: 0.55rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.35s ease;
}
.product-card:hover { background: #f5f5f5; }

.product-card::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 3px;
  background: var(--tech-primary);
  transform: scaleX(0);
  transition: transform 0.45s var(--ease-premium);
}
.product-card:hover::before { transform: scaleX(1); }

/* 30% badge on each card */
.product-card::after {
  content: '30% ← أطفال';
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  font-size: 0.5rem;
  font-weight: 700;
  color: #3d7a1a;
  background: rgba(121,180,67,0.12);
  border: 1px solid rgba(121,180,67,0.3);
  border-radius: 0.3rem;
  padding: 0.2rem 0.45rem;
  letter-spacing: 0;
}

.product-emoji {
  inline-size: clamp(100px, 13vw, 140px);
  block-size: clamp(100px, 13vw, 140px);
  border-radius: 1rem;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.45s var(--ease-premium);
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.14));
  margin-block-end: 0.4rem;
}
.product-emoji img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  display: block;
}
.product-card:hover .product-emoji { transform: translateY(-12px) scale(1.12); }

.product-name  { font-size: 0.88rem; font-weight: 700; color: #000000; text-align: center; letter-spacing: 0; }
.product-sub   { font-size: 0.65rem; color: rgba(0,0,0,0.38); text-align: center; letter-spacing: 0; }
.product-price { font-size: 1.05rem; color: var(--tech-primary); direction: ltr; font-weight: 800; margin-block-start: 0.2rem; }

.add-to-cart {
  position: absolute;
  inset-block-end: 1rem;
  left: 50%;
  background: #000000;
  border: none;
  border-radius: 50%;
  inline-size: 36px;
  block-size: 36px;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(-50%) scale(0) rotate(-90deg);
  transition: all 0.35s var(--ease-premium);
  font-weight: 700;
}
.product-card:hover .add-to-cart { opacity: 1; transform: translateX(-50%) scale(1) rotate(0deg); }
.add-to-cart:active { transform: translateX(-50%) scale(0.88) !important; }
/* Always visible on touch devices (no hover) */
@media (max-width: 767px) {
  .product-card { padding-block-end: 3.5rem; }
  .add-to-cart { opacity: 1; transform: translateX(-50%) scale(1) rotate(0deg); }
}

/* Cart Panel */
#cart-panel {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  block-size: 100dvh;
  inline-size: min(400px, 100vw);
  background: #111;
  z-index: 8000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);  /* RTL: panel on right, hide off-screen to the right */
  transition: transform 0.55s var(--ease-premium);
  box-shadow: -4px 0 60px rgba(0,0,0,0.8);
}
#cart-panel.open { transform: translateX(0); }

.cart-header {
  padding: 1.25rem 1.75rem;
  border-block-end: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-header h2 { font-size: 0.95rem; font-weight: 600; letter-spacing: 0; }
.cart-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.45);
  font-size: 1.25rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}
.cart-close:hover { color: var(--neutral-white); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.cart-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: rgba(255,255,255,0.22);
  font-size: 0.85rem;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: rgba(255,255,255,0.04);
  border-radius: 0.6rem;
  transition: background 0.2s;
}
.cart-item-row:hover { background: rgba(255,255,255,0.07); }
.cart-item-icon { font-size: 1.35rem; flex-shrink: 0; }
.cart-item-name { flex: 1; font-size: 0.8rem; }
.cart-item-qty  { font-size: 0.7rem; color: rgba(255,255,255,0.38); direction: ltr; }

.cart-footer {
  padding: 1.25rem 1.75rem;
  border-block-start: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
}
.cart-total-value { font-weight: 700; direction: ltr; }

.checkout-btn {
  inline-size: 100%;
  padding: 0.85rem;
  background: var(--tech-primary);
  color: white;
  border: none;
  border-radius: 0.65rem;
  font-family: var(--font-arabic);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0;
  transition: opacity 0.3s, transform 0.2s;
}
.checkout-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.payment-methods { display: flex; gap: 0.45rem; justify-content: center; flex-wrap: wrap; }
.pay-badge {
  padding: 0.22rem 0.55rem;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  font-size: 0.63rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0;
}

.impact-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.7rem;
  background: rgba(121,180,67,0.1);
  border: 1px solid rgba(121,180,67,0.2);
  border-radius: 0.5rem;
  font-size: 0.7rem;
  color: var(--impact-green);
}

#cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 7999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(3px);
}
#cart-overlay.visible { opacity: 1; pointer-events: auto; }

#cart-toast {
  position: fixed;
  inset-block-end: calc(var(--footer-h) + 1.25rem);
  inset-inline-start: 50%;
  transform: translateX(-50%) translateY(14px);
  background: rgba(18, 18, 28, 0.96);
  color: var(--neutral-white);
  padding: 0.65rem 1.35rem;
  border-radius: 2rem;
  font-size: 0.82rem;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s var(--ease-out);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  white-space: nowrap;
}
#cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════════════════════════════════════
   §7  STORY PAGE  — you-not-alone.html
══════════════════════════════════════════════════════════════ */
body[data-page="story"] {
  background: var(--neutral-white);
  color: var(--neutral-black);
  overflow-y: auto;
}

.story-main {
  padding-block-start: var(--nav-h);
  padding-block-end: calc(var(--footer-h) + 3rem);
  min-block-size: 100dvh;
}

/* Hero video */
.story-hero {
  position: relative;
  block-size: 50vh;
  background: var(--corp-navy);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-unmute-btn {
  position: absolute;
  inset-block-end: 1rem;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  color: white;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  backdrop-filter: blur(8px);
  transition: background 0.25s;
}
.video-unmute-btn:hover { background: rgba(211,29,36,0.75); border-color: transparent; }

.story-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0c0c38 0%, var(--corp-navy) 55%, #0d2b5e 100%);
}
.story-hero-bg::before,
.story-hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05);
  inset-inline-start: 50%;
  inset-block-start: 50%;
  transform: translate(-50%,-50%);
  animation: ringPulse 4.5s ease-in-out infinite;
}
.story-hero-bg::before { inline-size: 55%; aspect-ratio: 1; }
.story-hero-bg::after  { inline-size: 82%; aspect-ratio: 1; animation-delay: 1.2s; }

@keyframes ringPulse {
  0%,100% { opacity: 0.25; transform: translate(-50%,-50%) scale(1);    }
  50%      { opacity: 0.65; transform: translate(-50%,-50%) scale(1.06); }
}

.video-placeholder {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  cursor: pointer;
  padding: 2rem;
  text-align: center;
}

.story-hero-video {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  z-index: 2;
}

.play-circle {
  inline-size: 82px;
  block-size: 82px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  transition: all 0.35s ease;
  backdrop-filter: blur(10px);
}
.video-placeholder:hover .play-circle {
  background: var(--tech-primary);
  border-color: var(--tech-primary);
  transform: scale(1.12);
  box-shadow: 0 0 50px rgba(211,29,36,0.55);
}
.video-label { color: rgba(255,255,255,0.62); font-size: 0.88rem; letter-spacing: 0; }

/* Stats strip */
.story-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--corp-navy);
  color: white;
}
@media (max-width: 767px) { .story-stats { grid-template-columns: repeat(2, 1fr); } }

.stat-item {
  padding: 1.75rem 1rem;
  text-align: center;
  border-inline-end: 1px solid rgba(255,255,255,0.07);
  transition: background 0.3s;
}
.stat-item:last-child { border-inline-end: none; }
.stat-item:hover { background: rgba(255,255,255,0.04); }

.stat-value {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  direction: ltr;
}
.stat-value.c-blue   { color: #5ab3ff; }
.stat-value.c-green  { color: var(--impact-green); }
.stat-value.c-yellow { color: var(--impact-yellow); }
.stat-value.c-red    { color: #ff6b6b; }

.stat-label { font-size: 0.68rem; color: rgba(255,255,255,0.44); margin-block-start: 0.35rem; letter-spacing: 0; }

/* Narrative */
.story-narrative {
  padding: 3.5rem clamp(1.5rem, 7vw, 6rem);
  max-inline-size: 1200px;
  margin-inline: auto;
}

.narrative-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--impact-blue);
  font-weight: 600;
  margin-block-end: 0.85rem;
}

.narrative-title {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-block-end: 1.5rem;
  color: var(--corp-navy);
}

.narrative-quote {
  background: linear-gradient(135deg, rgba(0,87,160,0.06), rgba(121,180,67,0.04));
  border-inline-start: 4px solid var(--impact-blue);
  padding: 1.5rem 2rem;
  border-radius: 0 1rem 1rem 0;
  font-size: clamp(0.92rem, 1.8vw, 1.08rem);
  line-height: 1.95;
  color: rgba(0,0,0,0.7);
  font-style: italic;
  margin-block-end: 2.5rem;
}

/* Mission cards */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-block-end: 2.5rem;
}
@media (max-width: 900px) { .mission-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .mission-grid { grid-template-columns: 1fr; } }

.mission-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(0,0,0,0.07);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.mission-card:hover { transform: translateY(-4px); box-shadow: 0 14px 44px rgba(0,0,0,0.07); }
.mission-card::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 3px;
  border-radius: 1rem 1rem 0 0;
}
.mission-card.m-blue::before   { background: var(--impact-blue); }
.mission-card.m-green::before  { background: var(--impact-green); }
.mission-card.m-yellow::before { background: var(--impact-yellow); }

.mission-icon  { font-size: 2rem; margin-block-end: 0.75rem; }
.mission-title { font-size: 0.9rem; font-weight: 700; color: var(--corp-navy); margin-block-end: 0.4rem; }
.mission-text  { font-size: 0.78rem; color: rgba(0,0,0,0.52); line-height: 1.65; }

/* Message section */
.message-section {
  padding: 2.5rem clamp(1.5rem, 7vw, 6rem);
  background: linear-gradient(135deg, rgba(0,87,160,0.04) 0%, rgba(121,180,67,0.04) 100%);
  border-block: 1px solid rgba(0,0,0,0.05);
}
.message-section h2 { font-size: 1.15rem; font-weight: 800; color: var(--corp-navy); margin-block-end: 0.4rem; }
.message-section p  { font-size: 0.82rem; color: rgba(0,0,0,0.46); margin-block-end: 1.2rem; }

.message-textarea {
  inline-size: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 0.75rem;
  font-family: var(--font-arabic);
  font-size: 0.88rem;
  resize: vertical;
  min-block-size: 96px;
  direction: rtl;
  outline: none;
  background: white;
  color: var(--neutral-black);
  margin-block-end: 0.75rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.message-textarea:focus {
  border-color: var(--impact-blue);
  box-shadow: 0 0 0 3px rgba(0,87,160,0.1);
}

.message-send-btn {
  padding: 0.72rem 2.4rem;
  background: var(--impact-blue);
  color: white;
  border: none;
  border-radius: 0.6rem;
  font-family: var(--font-arabic);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.2s;
}
.message-send-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* ══════════════════════════════════════════════════════════════
   §8  GLASSMORPHIC FOOTER + SPONSOR MARQUEE  — all pages
══════════════════════════════════════════════════════════════ */
@keyframes sponsor-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--marquee-offset, -50%)); }
}

#sponsor-footer {
  position: fixed;
  inset-block-end: 0;
  inset-inline: 0;
  block-size: var(--footer-h);
  z-index: 4000;
  background: var(--glass-bg);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border-block-start: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 10px;
}

.sponsor-marquee {
  flex: 1;
  overflow: hidden;
  min-inline-size: 0;
  block-size: 100%;
  display: flex;
  position: relative;
  align-items: center;
}

/* Gradient fade edges — left and right */
.sponsor-marquee::before,
.sponsor-marquee::after {
  content: '';
  position: absolute;
  inset-block: 0;
  inline-size: clamp(40px, 8vw, 120px);
  z-index: 2;
  pointer-events: none;
}
.sponsor-marquee::before {
  inset-inline-start: 0;
  background: linear-gradient(to right, #080812 0%, transparent 100%);
}
.sponsor-marquee::after {
  inset-inline-end: 0;
  background: linear-gradient(to left, #080812 0%, transparent 100%);
}

body[data-page="shop"] .sponsor-marquee::before {
  background: linear-gradient(to right, #111111 0%, transparent 100%);
}
body[data-page="shop"] .sponsor-marquee::after {
  background: linear-gradient(to left, #111111 0%, transparent 100%);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: sponsor-scroll 22s linear infinite;
  will-change: transform;
}
.sponsor-marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-strip {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 2rem;
  flex-shrink: 0;
  cursor: pointer;
}

.sponsor-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  block-size: 48px;
  inline-size: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
}

.sponsor-logo-wrap img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(1.4) contrast(0.85);
  transition: filter 0.45s ease, transform 0.3s ease;
}
.sponsor-logo-wrap:hover img {
  filter: grayscale(0) brightness(1) contrast(1);
  /* transform: translateY(-3px); */
}

/* ALL.png splash trigger button */
.splash-trigger-btn {
  flex-shrink: 0;
  block-size: 100%;
  padding-inline: 0.6rem;
  background: none;
  border: none;
  border-inline-start: 1px solid var(--glass-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.splash-trigger-btn:hover { background: rgba(255,255,255,0.06); }
.splash-trigger-btn img {
  block-size: 44px;
  inline-size: 44px;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(0.3) brightness(1.1);
  transition: filter 0.3s, transform 0.3s;
}
.splash-trigger-btn:hover img {
  filter: grayscale(0) brightness(1.15);
  transform: scale(1.08);
}

.footer-credit-wrap {
  padding-inline: 0.9rem;
  flex-shrink: 0;
  border-inline-start: 1px solid var(--glass-border);
  block-size: 100%;
  display: flex;
  align-items: center;
  max-inline-size: 160px;
}

.footer-credit {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0;
  white-space: normal;
  line-height: 1.5;
  text-align: center;
  transition: color 0.3s;
}
.footer-credit:hover { color: rgba(255,255,255,0.85); }
.footer-credit strong { color: var(--tech-primary); font-weight: 700; }
.footer-credit strong a { color: inherit; text-decoration: none; }
.footer-credit strong a:hover { text-decoration: underline; }

@media (max-width: 767px) {
  :root { --footer-h: 64px; }
  .footer-credit-wrap { padding-inline: 0.6rem; max-inline-size: 130px; }
  .footer-credit { font-size: 0.62rem; letter-spacing: 0; white-space: normal; line-height: 1.45; }
  .splash-trigger-btn img { block-size: 36px; inline-size: 36px; }
  .marquee-item { padding-inline: 1.25rem; }
  .sponsor-logo-wrap { inline-size: 40px; block-size: 40px; }
  .sponsor-logo-wrap img { inline-size: 100%; block-size: 100%; }
}

/* Shop: dark footer bar (the 30% black accent on a light page) */
body[data-page="shop"] #sponsor-footer {
  background: #111111;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-block-start-color: rgba(255,255,255,0.08);
}

/* Story: keep glass blur on the dark story page */
body[data-page="story"] #sponsor-footer {
  background: rgba(8, 8, 18, 0.92);
}

/* ══════════════════════════════════════════════════════════════
   §9  UTILITY
══════════════════════════════════════════════════════════════ */
.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════
   §10  AUDIO GATE — one-tap audio unlock
   Visible by default; JS hides it after autoplay or on first tap.
══════════════════════════════════════════════════════════════ */
#audio-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.9s ease, transform 0.9s ease, filter 0.9s ease;
}

#audio-gate.ag-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(2.18);
  filter: blur(14px);
}

.audio-gate-inner {
  text-align: center;
  color: #fff;
  font-family: var(--font-arabic);
  user-select: none;
  padding: 2rem;
}

.audio-gate-waves {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
  block-size: 64px;
  margin-block-end: 2rem;
}

.audio-gate-waves span {
  inline-size: 5px;
  background: var(--tech-primary);
  border-radius: 4px;
  animation: ag-wave 1.3s ease-in-out infinite;
}
.audio-gate-waves span:nth-child(1) { block-size: 22px; animation-delay: 0s; }
.audio-gate-waves span:nth-child(2) { block-size: 44px; animation-delay: 0.18s; }
.audio-gate-waves span:nth-child(3) { block-size: 64px; animation-delay: 0.36s; }
.audio-gate-waves span:nth-child(4) { block-size: 44px; animation-delay: 0.54s; }
.audio-gate-waves span:nth-child(5) { block-size: 22px; animation-delay: 0.72s; }

@keyframes ag-wave {
  0%, 100% { transform: scaleY(0.5); opacity: 0.55; }
  50%       { transform: scaleY(1);   opacity: 3; }
}

.audio-gate-title {
  font-size: clamp(2.4rem, 4vw, 5.5rem);
  font-weight: 900;
  margin-block-end: 0.6rem;
  letter-spacing: -0.01em;
}

.audio-gate-sub {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.45;
  letter-spacing: 0.1em;
}

/* Brand hint below "إضغط للبدء" — tracking-in-contract animation */
@-webkit-keyframes tracking-in-contract {
  0%   { letter-spacing: 1em; opacity: 0; }
  40%  { opacity: 0.6; }
  100% { letter-spacing: normal; opacity: 1; }
}
@keyframes tracking-in-contract {
  0%   { letter-spacing: 1em; opacity: 0; }
  40%  { opacity: 0.6; }
  100% { letter-spacing: normal; opacity: 1; }
}

.audio-gate-brand {
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
  font-weight: 500;
  opacity: 0.45;
  margin-block-start: 1.4rem;
  letter-spacing: normal;
  -webkit-animation: tracking-in-contract 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) infinite alternate-reverse both;
          animation: tracking-in-contract 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) infinite alternate-reverse both;
}
