/* Reset */
* { margin:0; padding:0; box-sizing:border-box; font-family: 'Tahoma', sans-serif; }
body { background:#020617; color:#fff; overflow-x:hidden; }

/* Animation ورود */
body.fade-in { animation: fadeIn 1s ease-in-out; }
@keyframes fadeIn { from{opacity:0; transform:translateY(-10px);} to{opacity:1; transform:translateY(0);} }

/* Header & Footer */
/* Footer */
footer.footer {
  display: flex;
  justify-content: center;   /* وسط افقی */
  align-items: center;       /* وسط عمودی */
  flex-direction: column;
  padding: 16px 0;
  background: rgba(0,0,0,0.2); /* شیشه‌ای ملایم */
  backdrop-filter: blur(10px);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  margin-top: 40px;
  box-shadow:0 4px 16px rgba(0,0,0,0.4);
}

/* Neon text */
footer .neon-text {
  font-size: 12px;           
  color: #0ff;
  text-shadow:
    0 0 4px #0ff,
    0 0 8px #0ff,
    0 0 12px #0ff,
    0 0 16px #0ff;
  letter-spacing: 1px;
  margin-top:4px;
}

footer .neon-text a {
  color: #0ff;
  text-decoration: none;
  text-shadow:
    0 0 4px #0ff,
    0 0 8px #0ff,
    0 0 12px #0ff,
    0 0 16px #0ff;
  transition: 0.3s;
}

footer .neon-text a:hover {
  text-shadow:
    0 0 6px #0ff,
    0 0 12px #0ff,
    0 0 18px #0ff,
    0 0 24px #0ff;
}

header.glass {
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 16px 24px;
  margin: 12px;
  display:flex;
  justify-content: space-between;
  align-items:center;
  box-shadow:0 8px 24px rgba(0,0,0,0.5);
}

.header-cta {
  font-size: 14px;          /* کمی ریزتر از دکمه اصلی */
  padding: 6px 12px;
  background: rgba(0, 255, 255, 0.2); /* شیشه‌ای سبک */
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,255,255,0.3);
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.header-cta:hover {
  transform: scale(1.1);
  box-shadow: 0 0 8px #0ff, 0 0 16px #0ff;
}

.lang-flag {
  position: fixed;
  top: 15px;
  left: 15px;
  width: 30px;
  height: auto;
  cursor: pointer;
  border-radius: 60%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
  z-index: 9999;
}
.lang-flag:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 30px rgba(0,0,0,0.7);
}

section.slider{
  margin:20px auto;
  max-width:900px;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 12px 36px rgba(0,0,0,0.6);
  background: transparent;
  position: relative;
  z-index: 2;
}

/* Slider */
section.slider.glass {
  margin:20px auto;
  max-width:900px;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 12px 36px rgba(0,0,0,0.6);
}
section.slider img { width:100%; display:block; transition:0.5s; }
section.slider img:hover { transform: scale(1.05); }

/* CTA Buttons */
section.cta.glass {
  display:flex;
  justify-content:center;
  gap:20px;
  margin:30px;
  padding:20px;
  border-radius:20px;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.1);
}
.cta-btn {
  padding:14px 28px;
  border:none;
  border-radius:16px;
  cursor:pointer;
  font-size:16px;
  font-weight:bold;
  transition:0.3s;
  color:#fff;
  background: linear-gradient(135deg,#0ea5e9,#2563eb);
    box-shadow:
    0 10px 30px rgba(0,0,0,0.35),
    inset 0 0 0 rgba(255,255,255,0.2);
}
.cta-btn:hover { transform:scale(1.1);
  box-shadow:
    0 12px 40px rgba(14,165,233,0.5),
    inset 0 0 12px rgba(255,255,255,0.25);
    
}

/* Lead Section */
section.lead.glass {
  margin:40px auto;
  max-width:400px;
  padding:24px;
  border-radius:20px;
  backdrop-filter:blur(14px);
  background:rgba(255,255,255,0.12);
  display:flex;
  flex-direction:column;
  gap:12px;
  text-align:center;
}
section.lead input { padding:12px; border-radius:12px; border:none; font-size:16px; text-align:center; }
section.lead button { padding:12px; border-radius:12px; border:none; cursor:pointer; background:linear-gradient(135deg,#16a34a,#22c55e); color:#fff; font-weight:bold; }
section.lead p { color:#0ea5e9; font-size:14px; }

/* WhatsApp Floating */
/* WhatsApp */
.whatsapp{
    position:fixed;
    bottom:20px;
    right:20px;
    background:#25D366;
    width:60px;
    height:60px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 10px 30px rgba(0,0,0,.5);
}
.whatsapp img{width:34px}
.whatsapp:hover { transform:scale(1.1); }

/* Responsive */
@media(max-width:768px){
  header.glass, footer.glass { margin:8px; padding:12px; }
  section.cta.glass { flex-direction:column; }
  .cta-btn { width:100%; }
  section.lead.glass { width:90%; }
}

.login-container {
  max-width:350px; margin:80px auto; padding:24px; border-radius:16px;
  backdrop-filter: blur(12px); background: rgba(255,255,255,0.12);
  text-align:center; box-shadow:0 8px 24px rgba(0,0,0,0.5);
}
.login-container input { width:80%; margin:10px 0; padding:10px; border-radius:10px; border:none; }
.login-container button { width:84%; margin-top:12px; }

.dashboard-container {
  max-width:900px; margin:20px auto; padding:24px; border-radius:16px;
  backdrop-filter: blur(12px); background: rgba(255,255,255,0.12);
  box-shadow:0 8px 24px rgba(0,0,0,0.5); text-align:center;
}

.leads-container {
  max-width:900px;
  margin:20px auto;
  padding:20px;
  border-radius:16px;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  overflow-x:auto;
}

.leads-container table {
  width:100%;
  border-collapse: collapse;
  text-align:center;
}

.leads-container th, .leads-container td {
  padding:12px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.leads-container th {
  background: rgba(255,255,255,0.15);
  font-weight:bold;
}

.leads-container tr:hover {
  background: rgba(255,255,255,0.1);
}

.scroll-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1); /* شیشه‌ای مات */
  backdrop-filter: blur(10px); /* مات شدن پس‌زمینه */
  color: #fff; /* رنگ فلش سفید */
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: none; /* ابتدا مخفی */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 0 8px #0ff, 0 0 16px #0ff, 0 0 24px #0ff; /* نئون سفید-آبی */
  transition: transform 0.3s, box-shadow 0.3s;
}

.scroll-top:hover {
  transform: scale(1.2);
  box-shadow: 0 0 12px #0ff, 0 0 24px #0ff, 0 0 36px #0ff;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    radial-gradient(circle at top right, rgba(14,165,233,0.15), transparent 40%),
    radial-gradient(circle at bottom left, rgba(34,197,94,0.12), transparent 45%);
  z-index:-1;
}

.glass{
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.14),
    rgba(255,255,255,0.06)
  );
  border: 1px solid rgba(255,255,255,0.18);
}

.cta-btn,
.header-cta,
.whatsapp,
.scroll-top{
  transition:
    transform .35s cubic-bezier(.4,0,.2,1),
    box-shadow .35s cubic-bezier(.4,0,.2,1),
    background .35s;
}

.header{
  position:relative;
}

.header-logo{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
}

.header-logo img{
  width:44px;
  height:auto;
  filter:
    drop-shadow(0 0 6px rgba(0,255,255,0.6))
    drop-shadow(0 0 12px rgba(14,165,233,0.4));
  transition: transform .3s;
}

.header-logo img:hover{
  transform: scale(1.15);
}

#spaceBg{
  position:fixed;
  inset:0;
  z-index:0;
  background:#020617;
    pointer-events: auto;
}

.map-container {
  position: relative;      /* مهم: relative یا absolute */
  z-index: 10;             /* بالاتر از پس‌زمینه‌های canvas و glass */
  width: 90%;
  max-width: 800px;
  height: 500px;
  margin: 30px auto;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(212,175,55,0.2);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  border-radius: 20px; /* خمیدگی خود آیفریم */
}

@media (max-width: 480px) {
  .map-container {
    width: 95%;      /* تقریباً کل عرض موبایل */
    height: 300px;   /* ارتفاع مناسب موبایل */
  }
}
