/* EBDA3 THEME — Custom CSS for Salla Control Panel */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --e-primary: #2EBCED;
  --e-primary-dark: #1a9dc9;
  --e-primary-deep: #0f7ba3;
  --e-primary-pale: #e8f7fd;
  --e-primary-glow: rgba(46,188,237,0.35);
  --e-sale: #e53935;
  --e-success: #16a34a;
  --e-text: #0f172a;
  --e-text-mid: #475569;
  --e-text-light: #94a3b8;
  --e-border: #e2e8f0;
  --e-bg: #f1f5f9;
  --e-white: #ffffff;
  --e-radius: 16px;
  --e-radius-sm: 10px;
  --e-shadow: 0 2px 20px rgba(15,23,42,0.07);
  --e-shadow-lg: 0 12px 48px rgba(15,23,42,0.12);
  --e-shadow-primary: 0 8px 32px rgba(46,188,237,0.25);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--e-bg) !important;
  color: var(--e-text) !important;
  font-family: 'Cairo', sans-serif !important;
  overflow-x: hidden;
}

/* Ensure main content text stays dark */
main, main *, #maincontent, #maincontent *, .s-home, .s-home * {
  color: inherit;
}

*, input, button, select, textarea {
  font-family: 'Cairo', sans-serif !important;
}

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Header Enhancement */
header {
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1) !important;
}
header.scrolled {
  background: rgba(255,255,255,0.85) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 1px 30px rgba(15,23,42,0.08) !important;
}

/* Hero Slider */
.s-block--hero-slider, .ebda3-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0a1628;
}

.ebda3-hero__slides { position: absolute; inset: 0; }

.ebda3-hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s ease, transform 8s ease-out;
}
.ebda3-hero__slide.active { opacity: 1; transform: scale(1); }

.ebda3-hero__dots {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; gap: 0.6rem;
}
.ebda3-hero__dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5); background: transparent;
  cursor: pointer; transition: all 0.3s; padding: 0;
}
.ebda3-hero__dot.active { background: var(--e-primary); border-color: var(--e-primary); transform: scale(1.3); }

.ebda3-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(9,18,36,0.88) 0%, rgba(9,18,36,0.55) 55%, rgba(46,188,237,0.18) 100%), radial-gradient(ellipse at 80% 20%, rgba(46,188,237,0.15) 0%, transparent 60%);
}

.ebda3-hero__inner { position: relative; z-index: 2; padding: 8rem 0 6rem; width: 100%; }
.ebda3-hero__content { max-width: 600px; padding: 0 1.5rem; }

.ebda3-hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(46,188,237,0.15); border: 1px solid rgba(46,188,237,0.35);
  color: var(--e-primary); font-size: 0.82rem; font-weight: 700;
  padding: 0.4rem 1.1rem; border-radius: 50px; margin-bottom: 1.5rem;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease-out;
}

.ebda3-hero__badge .pulse {
  width: 8px; height: 8px; background: var(--e-primary);
  border-radius: 50%; animation: pulse 2s infinite;
}

.ebda3-hero__title {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem); font-weight: 900;
  color: #fff; line-height: 1.15; margin-bottom: 1.25rem;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}
.ebda3-hero__title span {
  background: linear-gradient(135deg, var(--e-primary), #6dd5ed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.ebda3-hero__desc {
  font-size: 1.1rem; color: rgba(255,255,255,0.8); line-height: 1.85;
  margin-bottom: 2.5rem; max-width: 460px; animation: fadeInUp 0.8s ease-out 0.3s both;
}

.ebda3-hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeInUp 0.8s ease-out 0.45s both; }

.ebda3-hero__stats {
  display: flex; gap: 2.5rem; margin-top: 4rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1); animation: fadeInUp 0.8s ease-out 0.6s both;
}
.ebda3-hero__stat { text-align: center; }
.ebda3-hero__stat-num { font-size: 2rem; font-weight: 900; color: var(--e-primary); line-height: 1; }
.ebda3-hero__stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-top: 0.25rem; }

@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.5); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Buttons */
.ebda3-btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2.25rem; background: linear-gradient(135deg, var(--e-primary), #1ac0e0);
  color: #fff; font-weight: 800; font-size: 1rem; border-radius: 50px; border: none;
  text-decoration: none; cursor: pointer; transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  font-family: 'Cairo', sans-serif; box-shadow: 0 4px 20px rgba(46,188,237,0.3);
}
.ebda3-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 36px rgba(46,188,237,0.45); color: #fff; }

.ebda3-btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2.25rem; background: rgba(255,255,255,0.06); color: #fff;
  font-weight: 700; font-size: 1rem; border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.25); text-decoration: none; cursor: pointer;
  transition: all 0.3s; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.ebda3-btn-outline:hover { background: #fff; color: var(--e-primary); border-color: #fff; }

/* Trust Bar */
.ebda3-trust-wrap { position: relative; z-index: 10; margin-top: -3rem; padding-bottom: 3rem; }

.ebda3-trust-bar {
  background: linear-gradient(135deg, var(--e-primary), var(--e-primary-dark));
  border-radius: var(--e-radius); box-shadow: var(--e-shadow-primary);
  display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden;
}

.ebda3-trust-item {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1.4rem 1.5rem; color: #fff;
  border-right: 1px solid rgba(255,255,255,0.15); transition: background 0.2s;
}
.ebda3-trust-item:last-child { border-right: none; }
.ebda3-trust-item:hover { background: rgba(255,255,255,0.08); }

.ebda3-trust-icon {
  width: 44px; height: 44px; background: rgba(255,255,255,0.15);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.ebda3-trust-text strong { display: block; font-size: 0.875rem; font-weight: 700; }
.ebda3-trust-text span { font-size: 0.75rem; opacity: 0.75; }

/* Section Headers */
.ebda3-section { padding: 5rem 0; }
.ebda3-section--white { background: var(--e-white); }
.ebda3-section--gray { background: var(--e-bg); }

.ebda3-section-header { text-align: center; margin-bottom: 3.5rem; }
.ebda3-section-header .tag {
  display: inline-block; background: var(--e-primary-pale); color: var(--e-primary-deep);
  font-size: 0.8rem; font-weight: 700; padding: 0.35rem 1rem; border-radius: 50px; margin-bottom: 1rem;
}
.ebda3-section-header h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 900; color: var(--e-text); margin-bottom: 0.6rem; }
.ebda3-section-header p { color: var(--e-text-mid); font-size: 1.05rem; max-width: 500px; margin: 0 auto; line-height: 1.7; }

/* How It Works */
.ebda3-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
.ebda3-steps::before {
  content: ''; position: absolute; top: 42px; left: 15%; right: 15%; height: 3px;
  background: linear-gradient(90deg, var(--e-primary-pale), var(--e-primary), var(--e-primary-pale)); border-radius: 2px;
}
.ebda3-step { text-align: center; position: relative; }
.ebda3-step__num {
  width: 56px; height: 56px; background: linear-gradient(135deg, var(--e-primary), var(--e-primary-dark));
  color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 900; margin: 0 auto 1.25rem;
  box-shadow: 0 4px 20px var(--e-primary-glow); position: relative; z-index: 2;
}
.ebda3-step h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.4rem; }
.ebda3-step p { font-size: 0.875rem; color: var(--e-text-mid); line-height: 1.6; }

/* Product Cards Enhancement */
salla-product-card::part(wrapper) {
  border-radius: var(--e-radius) !important;
  border: 2px solid var(--e-border) !important;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1) !important;
  overflow: hidden !important;
}
salla-product-card::part(wrapper):hover {
  border-color: var(--e-primary) !important;
  box-shadow: 0 12px 48px rgba(46,188,237,0.2) !important;
  transform: translateY(-6px) !important;
}

/* Reviews */
.ebda3-reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ebda3-review {
  background: var(--e-white); border-radius: var(--e-radius); padding: 2rem;
  border: 1px solid var(--e-border); transition: all 0.3s;
}
.ebda3-review:hover { box-shadow: var(--e-shadow-lg); transform: translateY(-3px); }
.ebda3-review__stars { color: #f59e0b; font-size: 1rem; margin-bottom: 0.75rem; letter-spacing: 2px; }
.ebda3-review__text { font-size: 0.9rem; color: var(--e-text-mid); line-height: 1.75; margin-bottom: 1.25rem; }
.ebda3-review__author { display: flex; align-items: center; gap: 0.75rem; }
.ebda3-review__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--e-primary), var(--e-primary-dark));
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem;
}
.ebda3-review__name { font-weight: 700; font-size: 0.875rem; }
.ebda3-review__loc { font-size: 0.75rem; color: var(--e-text-light); }

/* CTA Banner */
.ebda3-cta-banner {
  background: linear-gradient(135deg, #0a1628 0%, #0f2847 50%, #0a1628 100%);
  padding: 5rem 0; text-align: center; position: relative; overflow: hidden;
}
.ebda3-cta-banner::before {
  content: ''; position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(46,188,237,0.12) 0%, transparent 70%);
  top: -200px; right: -100px; border-radius: 50%;
}
.ebda3-cta-banner h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; color: #fff; margin-bottom: 1rem; position: relative; }
.ebda3-cta-banner p { color: rgba(255,255,255,0.65); font-size: 1.05rem; margin-bottom: 2.5rem; max-width: 450px; margin-left: auto; margin-right: auto; position: relative; }

/* FAQ */
.ebda3-faq-list { max-width: 750px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.85rem; }
.ebda3-faq-item {
  background: var(--e-white); border-radius: var(--e-radius);
  border: 2px solid var(--e-border); overflow: hidden; transition: all 0.3s;
}
.ebda3-faq-item.open { border-color: var(--e-primary); box-shadow: 0 4px 24px var(--e-primary-glow); }
.ebda3-faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 1.75rem; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; -webkit-user-select: none; user-select: none; gap: 1rem;
}
.ebda3-faq-item.open .ebda3-faq-q { color: var(--e-primary-deep); }
.ebda3-faq-q .arrow {
  width: 30px; height: 30px; border-radius: 50%; background: var(--e-bg);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 0.75rem; transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
}
.ebda3-faq-item.open .arrow { background: var(--e-primary); color: #fff; transform: rotate(180deg); }
.ebda3-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1), padding 0.3s; padding: 0 1.75rem; }
.ebda3-faq-item.open .ebda3-faq-a { max-height: 300px; padding: 0 1.75rem 1.5rem; }
.ebda3-faq-a p { color: var(--e-text-mid); font-size: 0.9rem; line-height: 1.85; border-top: 1px solid var(--e-border); padding-top: 1rem; }

/* Footer Enhancement */
.main-footer {
  background: #0a0f1a !important;
}
.main-footer, .main-footer p, .main-footer span, .main-footer li {
  color: rgba(255,255,255,0.7) !important;
}
.main-footer a {
  color: rgba(255,255,255,0.5) !important;
}
.main-footer a:hover {
  color: #2EBCED !important;
}
.main-footer h1, .main-footer h2, .main-footer h3, .main-footer h4, .main-footer h5 {
  color: #fff !important;
}

/* WhatsApp Float */
.ebda3-whatsapp {
  position: fixed; bottom: 2rem; left: 2rem; z-index: 99;
  width: 60px; height: 60px; background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.8rem; text-decoration: none;
  box-shadow: 0 4px 24px rgba(37,211,102,0.4); transition: all 0.3s;
  animation: whatsappBounce 3s ease-in-out infinite;
}
.ebda3-whatsapp:hover { transform: scale(1.12); box-shadow: 0 6px 32px rgba(37,211,102,0.5); }
.ebda3-whatsapp__tooltip {
  position: absolute; right: 70px; background: #fff; color: var(--e-text);
  font-size: 0.82rem; font-weight: 600; padding: 0.5rem 1rem;
  border-radius: 10px; box-shadow: var(--e-shadow); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.ebda3-whatsapp:hover .ebda3-whatsapp__tooltip { opacity: 1; }
@keyframes whatsappBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Mobile */
@media (max-width: 768px) {
  .ebda3-hero { min-height: 90vh; }
  .ebda3-hero__inner { padding: 7rem 0 5rem; }
  .ebda3-hero__title { font-size: 2.2rem; }
  .ebda3-hero__cta { flex-direction: column; gap: 0.75rem; }
  .ebda3-hero__cta a { text-align: center; justify-content: center; }
  .ebda3-hero__stats { gap: 1.25rem; flex-wrap: wrap; }
  .ebda3-trust-wrap { margin-top: 1.5rem; padding-bottom: 1.5rem; }
  .ebda3-trust-bar { grid-template-columns: repeat(2, 1fr); }
  .ebda3-trust-item:nth-child(2) { border-right: none; }
  .ebda3-steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .ebda3-steps::before { display: none; }
  .ebda3-reviews-grid { grid-template-columns: 1fr; }
  .ebda3-section { padding: 3rem 0; }
  .ebda3-whatsapp { width: 52px; height: 52px; font-size: 1.5rem; bottom: 1.5rem; left: 1rem; }
  .ebda3-whatsapp__tooltip { display: none; }
}

@media (max-width: 380px) {
  .ebda3-hero__title { font-size: 1.8rem; }
  .ebda3-trust-bar { grid-template-columns: 1fr; }
  .ebda3-trust-item { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .ebda3-trust-item:last-child { border-bottom: none; }
}