:root {
  --brand-primary: #2563eb;
  --brand-primary-dark: #1d4ed8;
  --brand-accent: #f59e0b;
  --brand-dark: #0f172a;
  --brand-dark-2: #1e293b;
  --text-muted-light: rgba(255,255,255,.72);
  --radius-lg: 18px;
  --radius-md: 12px;
}

body.lang-ar, body.lang-ar * { font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif; }
body.lang-en, body.lang-fr { font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
body.lang-en h1, body.lang-en h2, body.lang-en h3,
body.lang-fr h1, body.lang-fr h2, body.lang-fr h3 { font-family: 'Poppins', 'Inter', sans-serif; }

body { background: #f8fafc; color: #1e293b; }

/* Navbar */
.main-navbar {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  padding-top: .85rem; padding-bottom: .85rem;
}
.main-navbar .navbar-brand { color: #fff; font-size: 1.3rem; }
.main-navbar .nav-link { color: rgba(255,255,255,.85); font-weight: 500; }
.main-navbar .nav-link:hover { color: #fff; }
.main-navbar .btn-primary { background: var(--brand-primary); border-color: var(--brand-primary); }
.lang-switch { color: rgba(255,255,255,.85) !important; cursor: pointer; }

/* Hero */
.hero-section {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-dark-2) 55%, #14213d 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding-top: 2rem;
}
.hero-section::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(37,99,235,.35), transparent 55%);
  pointer-events: none;
}
.hero-badge {
  background: rgba(245, 158, 11, .15);
  color: var(--brand-accent);
  border: 1px solid rgba(245, 158, 11, .35);
  padding: .5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .85rem;
  display: inline-block;
}
.hero-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; margin: 1rem 0 1rem; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-muted-light); max-width: 620px; }
.trust-item {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: .75rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: #e2e8f0;
  height: 100%;
}
.hero-visual { position: relative; height: 360px; }
.hero-visual-card {
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 24px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
  animation: float 6s ease-in-out infinite;
}
.hero-visual .card-1 { top: 0; left: 10%; animation-delay: 0s; }
.hero-visual .card-2 { top: 15%; right: 5%; animation-delay: 1.2s; }
.hero-visual .card-3 { bottom: 15%; left: 0; animation-delay: 2.4s; }
.hero-visual .card-4 { bottom: 0; right: 15%; animation-delay: 3.6s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@media (max-width: 991px) { .hero-visual { display: none; } }

/* Sections */
.section-title { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--brand-dark); }
.section-subtitle { color: #64748b; max-width: 640px; font-size: 1.05rem; }

/* App cards */
.apps-section { background: #f8fafc; }
.app-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  padding: 1.75rem;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.app-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(15,23,42,.08); border-color: #cbd5e1; }
.app-card-icon { font-size: 2.4rem; margin-bottom: .75rem; }
.app-card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; color: var(--brand-dark); }
.app-card-desc { color: #64748b; font-size: .92rem; flex-grow: 1; }
.app-card-actions { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }

/* How it works */
.how-section { background: #fff; }
.how-step { text-align: center; padding: 0 .5rem; }
.how-step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin: 0 auto 1rem;
}
.how-step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.how-step p { color: #64748b; font-size: .92rem; }

/* Custom CTA */
.custom-cta-section {
  background: linear-gradient(120deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
}
.custom-cta-section .section-subtitle { color: rgba(255,255,255,.85); }

/* Footer */
.site-footer { background: var(--brand-dark); color: #cbd5e1; }
.site-footer h5, .site-footer h6 { color: #fff; }
.footer-links a { color: #94a3b8; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.text-light-50 { color: rgba(255,255,255,.55); }

/* Forms (order / custom-app) */
.form-shell {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  padding: 2rem;
}
.form-section-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 1rem; color: var(--brand-dark); }
.price-box {
  background: linear-gradient(120deg, #eff6ff, #eef2ff);
  border: 1px solid #dbeafe;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}
.price-box .price-amount { font-size: 2rem; font-weight: 800; color: var(--brand-primary); }
.payment-account-card {
  border: 1px solid #e2e8f0; border-radius: var(--radius-md);
  padding: 1rem; margin-bottom: .75rem; background: #f8fafc;
}
.payment-account-card .provider-badge { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }

.platform-choice { display: block; }
.platform-choice input { display: none; }
.platform-choice .platform-choice-box {
  border: 2px solid #e2e8f0; border-radius: var(--radius-md);
  padding: .85rem; text-align: center; cursor: pointer; font-weight: 600; font-size: .88rem;
  transition: all .15s ease; height: 100%;
}
.platform-choice input:checked + .platform-choice-box {
  border-color: var(--brand-primary); background: #eff6ff; color: var(--brand-primary-dark);
}

/* Admin login-only tweaks reused sparingly */
.admin-shell { background: #f1f5f9; min-height: 100vh; }
