/* ═══════════════════════════════════════════
   Fe Calisthenics — Cyber-Neon Mobile-First CSS
   ═══════════════════════════════════════════ */

:root {
  --bg-deep: #060911;
  --bg-frame: #0a0f1d;
  --bg-card: rgba(15, 23, 42, 0.75);
  --neon-cyan: #00E5FF;
  --neon-blue: #1A6AC4;
  --amber: #F59E0B;
  --pulse-red: #EF4444;
  --text-primary: #F8FAFC;
  --text-muted: #94A3B8;
  --text-cyan-light: #38BDF8;
  --card-border: rgba(0, 229, 255, 0.15);
  --glow-cyan: 0 0 20px rgba(0, 229, 255, 0.3), 0 0 60px rgba(0, 229, 255, 0.1);
  --glow-cyan-strong: 0 0 30px rgba(0, 229, 255, 0.5), 0 0 80px rgba(0, 229, 255, 0.2);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--neon-cyan) var(--bg-deep);
}

body {
  background: #050811;
  color: var(--text-primary);
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.7;
}

/* ── Desktop Phone Frame ── */
.phone-frame {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-frame);
  position: relative;
}
@media (min-width: 768px) {
  .phone-frame {
    box-shadow: 0 0 80px rgba(0, 229, 255, 0.12);
    border-left: 1px solid rgba(0, 229, 255, 0.2);
    border-right: 1px solid rgba(0, 229, 255, 0.2);
  }
}
@media (max-width: 480px) {
  .phone-frame {
    max-width: 100vw;
    border: none;
    box-shadow: none;
  }
}

/* ── Scrollbar Webkit ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--neon-cyan); border-radius: 3px; }

/* ── Glass Cards (High Performance GPU-Friendly) ── */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
}
.glass-card-glow {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 10px rgba(0, 229, 255, 0.15);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.glass-card-glow:hover {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 229, 255, 0.25);
}

/* ── Neon Text ── */
.neon-text {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5), 0 0 30px rgba(0, 229, 255, 0.2);
}
.neon-text-blue {
  color: var(--neon-blue);
  text-shadow: 0 0 10px rgba(26, 106, 196, 0.5);
}

/* ── CTA Button ── */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--bg-deep);
  background: linear-gradient(135deg, #22d3ee, var(--neon-blue));
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.4), 0 0 50px rgba(0, 229, 255, 0.15);
  position: relative;
  overflow: hidden;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.6), 0 0 80px rgba(0, 229, 255, 0.25);
}
.cta-btn::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

/* ── Giant CTA (Order button) ── */
.cta-giant {
  height: 64px;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
  width: 100%;
}

/* ── Pulse Animations ── */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 229, 255, 0.3); }
  50% { box-shadow: 0 0 40px rgba(0, 229, 255, 0.6), 0 0 80px rgba(0, 229, 255, 0.2); }
}
.pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }

@keyframes pulse-red-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.3); }
  50% { box-shadow: 0 0 30px rgba(239, 68, 68, 0.6); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-anim { animation: float 3s ease-in-out infinite; }

/* ── Fade-in scroll ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Notification Bar ── */
.notif-bar {
  background: linear-gradient(90deg, var(--pulse-red), #dc2626);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  line-height: 1.5;
}
.notif-bar .countdown {
  display: inline-block;
  background: rgba(0,0,0,0.35);
  padding: 0.1rem 0.5rem;
  border-radius: 0.25rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  margin-right: 0.4rem;
  font-size: 0.85rem;
}

/* ── Mobile Header ── */
.mobile-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 15, 29, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--card-border);
  padding: 0.6rem 1rem;
}

/* ── Rank Card ── */
.rank-card {
  text-align: center;
  transition: transform 0.3s ease;
  min-width: 0;
}
.rank-card:hover { transform: scale(1.05); }
.rank-card img {
  width: 56px; height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.4));
  margin-bottom: 0.3rem;
}

/* ── Mode Card ── */
.mode-card {
  text-align: center;
  transition: transform 0.3s ease;
}
.mode-card:hover { transform: scale(1.05); }
.mode-card img {
  width: 48px; height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.3));
  margin-bottom: 0.3rem;
}

/* ── Package Card ── */
.package-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.package-card:active { transform: scale(0.98); }
.package-card.selected {
  border-color: var(--neon-cyan) !important;
  box-shadow: var(--glow-cyan-strong);
}
.badge-popular {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--amber), #d97706);
  color: var(--bg-deep);
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.2rem 0.8rem;
  border-radius: 2rem;
  white-space: nowrap;
}

.old-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.new-price {
  color: var(--neon-cyan);
  font-weight: 900;
  font-size: 1.6rem;
}

/* ── Form ── */
.form-input, .form-select {
  width: 100%;
  height: 56px;
  padding: 0 1rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  direction: rtl;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}
.form-input::placeholder { color: var(--text-muted); }
.form-select option { background: #0f172a; color: var(--text-primary); }

.form-label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: var(--text-cyan-light);
  font-size: 0.85rem;
}

/* ── Invoice Box ── */
.invoice-box {
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 0.75rem;
  padding: 1rem;
}
.invoice-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(0, 229, 255, 0.08);
}
.invoice-row:last-child { border-bottom: none; }
.invoice-total { font-size: 1.3rem; font-weight: 900; color: var(--neon-cyan); }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--card-border); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: color 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.faq-question:hover { color: var(--neon-cyan); }
.faq-question .icon { transition: transform 0.3s ease; color: var(--neon-cyan); font-size: 1.2rem; }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.9rem;
}
.faq-item.open .faq-answer { max-height: 500px; padding-bottom: 0.75rem; }

/* ── WhatsApp Float ── */
.whatsapp-float {
  position: fixed;
  bottom: 5.5rem;
  left: 1rem;
  z-index: 45;
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s;
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* ── Sticky Bottom Bar ── */
.sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  z-index: 40;
  padding: 0.6rem 1rem;
  background: rgba(10, 15, 29, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(0, 229, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.sticky-bottom-bar.visible { transform: translateY(0); }
.sticky-bottom-bar .price-col {
  text-align: right;
  flex-shrink: 0;
}
.sticky-bottom-bar .price-col .amount {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--neon-cyan);
}
.sticky-bottom-bar .price-col .sub {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.sticky-bottom-bar .bar-cta {
  flex: 1;
  height: 44px;
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: 0.6rem;
  padding: 0 1rem;
}

/* ── Success Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 17, 0.92);
  backdrop-filter: blur(8px);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-content {
  max-width: 420px;
  width: 90%;
  text-align: center;
  padding: 2rem;
  animation: modalPop 0.4s ease;
}
@keyframes modalPop {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ── Delivery Toggle ── */
.delivery-toggle {
  display: flex;
  gap: 0.5rem;
}
.delivery-toggle label {
  flex: 1;
  text-align: center;
  padding: 0.65rem 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  font-size: 0.85rem;
  background: rgba(15, 23, 42, 0.6);
  -webkit-tap-highlight-color: transparent;
}
.delivery-toggle input { display: none; }
.delivery-toggle input:checked + label {
  border-color: var(--neon-cyan);
  background: rgba(0, 229, 255, 0.1);
  color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

/* ── Trust Badge ── */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem;
  border-radius: 0.6rem;
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.1);
  font-size: 0.75rem;
  color: var(--text-cyan-light);
  line-height: 1.4;
}

/* ── Section Divider ── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-border), transparent);
}

/* ── Logo Glow ── */
.logo-glow {
  border: 2px solid var(--neon-cyan);
  border-radius: 0.75rem;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

/* ── Exercise Image ── */
.exercise-img {
  border-radius: 0.6rem;
  border: 1px solid var(--card-border);
  object-fit: cover;
  transition: transform 0.3s;
}

/* ── Social Proof Stars ── */
.social-proof {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.8rem;
  border-radius: 2rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber);
}

/* ── Confetti ── */
.confetti-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 300;
}

/* ── Bottom padding for sticky bar ── */
.bottom-spacer { height: 70px; }

/* ── Feature Bullet ── */
.feature-bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem;
}
.feature-bullet .icon-wrap {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.15);
  font-size: 1.1rem;
}

/* ═══════════════════════════════════════════════════════════════
   LIGHTWEIGHT UTILITY CLASSES (Replaces 3MB Tailwind CDN Runtime)
   ═══════════════════════════════════════════════════════════════ */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.block { display: block; }
.inline-block { display: inline-block; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.relative { position: relative; }
.cursor-pointer { cursor: pointer; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Spacing */
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-4 { gap: 1rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pt-8 { padding-top: 2rem; }
.pb-6 { padding-bottom: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }

/* Dimensions */
.w-full { width: 100%; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }
.w-9 { width: 2.25rem; }
.h-9 { height: 2.25rem; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }

/* Typography */
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-black { font-weight: 900; }
.font-extrabold { font-weight: 800; }
.font-bold { font-weight: 700; }
.leading-snug { line-height: 1.375; }
.text-\[10px\] { font-size: 10px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

/* Colors */
.text-white { color: #ffffff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-cyan-300 { color: #67e8f9; }
.text-blue-300 { color: #93c5fd; }
.text-blue-400 { color: #60a5fa; }
.text-emerald-400 { color: #34d399; }
.text-amber-400 { color: #fbbf24; }
.text-amber-500 { color: #f59e0b; }
.text-yellow-400 { color: #facc15; }
.text-red-500 { color: #ef4444; }
.text-muted-slate { color: #94a3b8; }

.bg-cyan-900\/30 { background-color: rgba(22, 78, 99, 0.3); }
.border-cyan-700\/30 { border-color: rgba(14, 116, 144, 0.3); }
.bg-emerald-600\/20 { background-color: rgba(5, 150, 105, 0.2); }
.bg-amber-600\/20 { background-color: rgba(217, 119, 6, 0.2); }
.bg-cyan-950\/80 { background-color: rgba(8, 51, 68, 0.8); }
.border-cyan-500\/40 { border-color: rgba(6, 182, 212, 0.4); }

/* Borders */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-t-transparent { border-top-color: transparent; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* Overrides */
.\!px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.\!py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.\!text-xs { font-size: 0.75rem !important; }
.\!text-sm { font-size: 0.875rem !important; }
.\!rounded-lg { border-radius: 0.5rem !important; }

/* Animations */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

