:root{
  --bg:#f3f4f6;
  --bg-soft:#e5e7eb;
  --card:#ffffff;
  --border:#e2e8f0;
  --text:#0f172a;
  --muted:#6b7280;
  --accent:#2563eb;
  --accent-soft:#dbeafe;
  --accent-strong:#1d4ed8;
  --danger:#ef4444;
  --radius:14px;
  --shadow:0 14px 40px rgba(15,23,42,0.12);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Vazirmatn","Tahoma",system-ui,-apple-system,"Segoe UI",Roboto,Arial;
  background:var(--bg);
  color:var(--text);
  direction:rtl;
}








/* ===========================
   HEADER جدید فانتزی
   =========================== */

.x-header{
  position:sticky;
  top:0;
  z-index:2000;
  background:linear-gradient(90deg,#2563eb,#1d4ed8);
  color:#fff;
  box-shadow:0 4px 20px rgba(0,0,0,0.15);
  backdrop-filter:blur(10px);
}

.x-header-inner{
  max-width:1200px;
  margin:0 auto;
  padding:12px 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

/* BRAND */
.x-brand-title{
  font-size:22px;
  font-weight:900;
}
.x-brand-title span{
  color:#dbeafe;
}
.x-brand-sub{
  font-size:12px;
  opacity:0.9;
  margin-top:2px;
}

/* DESKTOP NAV */
.x-nav-desktop{
  display:flex;
  gap:14px;
}
.x-nav-item{
  border:none;
  background:transparent;
  padding:8px 14px;
  border-radius:10px;
  font-size:14px;
  font-weight:700;
  color:#e2e8f0;
  cursor:pointer;
  transition:0.2s;
}
.x-nav-item:hover{
  background:#ffffff33;
  transform:translateY(-2px);
}
.x-nav-item.active{
  background:#ffffff55;
  color:#fff;
  box-shadow:0 4px 12px rgba(255,255,255,0.25);
}

/* CTA */
.x-cta{
  background:#fff;
  color:#1d4ed8;
  border:none;
  padding:8px 16px;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 6px 20px rgba(255,255,255,0.35);
  transition:0.2s;
}
.x-cta:hover{
  transform:translateY(-2px);
}

/* ACCOUNT BUTTON */
.x-account-btn{
  width:40px;
  height:40px;
  border-radius:50%;
  border:2px solid #fff;
  background:transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.x-acc-icon{
  width:18px;
  height:18px;
  border-radius:50%;
  border:2px solid #fff;
  border-top-color:transparent;
  border-left-color:transparent;
  transform:rotate(45deg);
}

/* HAMBURGER */
.x-hamburger{
  width:40px;
  height:34px;
  border-radius:10px;
  border:2px solid #fff;
  background:transparent;
  display:none;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.x-hamburger span{
  width:20px;
  height:2px;
  background:#fff;
  margin:3px 0;
  border-radius:2px;
  transition:0.2s;
}
.x-hamburger.open span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.x-hamburger.open span:nth-child(2){ opacity:0; }
.x-hamburger.open span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }

/* MOBILE NAV */
.x-nav-mobile{
  position:fixed;
  top:0;
  right:-260px;
  width:260px;
  height:100vh;
  background:#1e3a8a;
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:12px;
  transition:0.3s;
  z-index:3000;
}
.x-nav-mobile.open{
  right:0;
}
.x-m-item{
  border:none;
  background:#ffffff22;
  padding:12px;
  border-radius:10px;
  font-size:15px;
  font-weight:700;
  color:#fff;
  cursor:pointer;
  transition:0.2s;
}
.x-m-item:hover{
  background:#ffffff55;
}

/* RESPONSIVE */
@media (max-width:900px){
  .x-nav-desktop{ display:none; }
  .x-hamburger{ display:flex; }
}
















/* ACCOUNT ICON */
.account-toggle{
  width:38px;height:38px;border-radius:999px;border:1px solid var(--border);
  background:#ffffff;display:flex;align-items:center;justify-content:center;cursor:pointer;
}
.account-icon{
  width:18px;height:18px;border-radius:999px;
  border:2px solid var(--accent);border-top-color:transparent;border-left-color:transparent;
  transform:rotate(45deg);
}

/* PAGE */
.page{
  max-width:1100px;
  margin:0 auto;
  padding:18px 16px 40px;
}

/* SECTIONS: فقط یکی نمایش داده می‌شود */
.section{display:none}
.section-home{display:block}
.section-empty{
  min-height:260px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f9fafb;
  border-radius:var(--radius);
  border:1px dashed var(--border);
}
.section-title{margin:0;font-size:18px;color:var(--muted)}

/* HERO */
.hero-grid{
  display:grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
  gap:18px;
}
@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr}
}
.hero-left{
  background:var(--card);
  border-radius:var(--radius);
  padding:18px 18px 20px;
  box-shadow:var(--shadow);
}
.hero-title{
  margin:0 0 10px;
  font-size:24px;
  font-weight:900;
}
.hero-lead{
  margin:0 0 16px;
  font-size:14px;
  color:var(--muted);
}
.hero-cta{display:flex;gap:10px;margin-bottom:16px;flex-wrap:wrap}
.hero-badges{display:flex;gap:10px;flex-wrap:wrap}
.badge-card{
  flex:1 1 90px;
  min-width:90px;
  background:#f9fafb;
  border-radius:12px;
  padding:10px 12px;
  border:1px solid var(--border);
}
.badge-title{font-size:11px;color:var(--muted)}
.badge-value{font-size:13px;font-weight:800;color:var(--accent-strong);margin-top:4px}

/* HERO RIGHT */
.hero-right{
  display:flex;
  align-items:stretch;
}
.ai-card{
  background:var(--card);
  border-radius:var(--radius);
  padding:14px;
  box-shadow:var(--shadow);
  width:100%;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.ai-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.ai-label{font-size:13px;font-weight:700;color:var(--text)}
.ai-pill{
  font-size:11px;
  padding:4px 10px;
  border-radius:999px;
  background:var(--accent-soft);
  color:var(--accent-strong);
  font-weight:700;
}
.ai-chart-wrapper{border-radius:12px;overflow:hidden;border:1px solid var(--border);background:#f8fafc}
.ai-chart{width:100%;height:auto;display:block}
.ai-footer{
  display:flex;
  justify-content:space-between;
  font-size:12px;
  color:var(--muted);
}
.ai-stat strong{display:block;font-size:13px;color:var(--accent-strong);margin-top:2px}

/* ACCOUNT PANEL */
.account-panel{
  position:fixed;
  top:76px;
  left:16px;
  width:360px;
  max-width:92vw;
  background:var(--card);
  border-radius:var(--radius);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  padding:14px 14px 16px;
  transform:translateY(-10px);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s,transform .18s;
  z-index:60;
}
.account-panel.open{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}
.account-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:10px;
}
.acc-title{font-size:15px;font-weight:800}
.acc-sub{font-size:12px;color:var(--muted);margin-top:2px}
.close-x{
  border:none;background:transparent;cursor:pointer;
  font-size:16px;color:var(--muted);
}

/* FORM */
.auth-form{display:flex;flex-direction:column;gap:10px}
.field{display:flex;flex-direction:column;gap:4px}
.field-label{font-size:12px;color:var(--muted)}
.auth-form input{
  border-radius:10px;
  border:1px solid var(--border);
  padding:9px 10px;
  font-size:13px;
}
.auth-form input:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 1px var(--accent-soft);
}

.captcha-row{
  display:flex;
  gap:8px;
  align-items:center;
}
.captcha-box{
  min-width:90px;
  padding:8px 10px;
  border-radius:10px;
  background:var(--accent-soft);
  color:var(--accent-strong);
  font-weight:800;
  text-align:center;
  font-size:13px;
}
.full{width:100%}
.code-row{display:flex;flex-direction:column;gap:8px}

.auth-foot{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:4px;
  font-size:12px;
  color:var(--muted);
}
.remember input{margin-left:4px}
.link-btn{
  border:none;background:transparent;color:var(--accent-strong);
  cursor:pointer;font-size:12px;
}


/* ===========================
   FOOTER ثابت + زیرنویس متحرک حرفه‌ای
   =========================== */

.site-footer{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  background:#ffffff;
  border-top:1px solid var(--border);
  box-shadow:0 -6px 20px rgba(0,0,0,0.08);
  z-index:999;
  padding:0;
  display:flex;
  flex-direction:column;
}

/* بخش اصلی فوتر */
.footer-content{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 18px;
}

.footer-brand-box{
  display:flex;
  flex-direction:column;
}
.footer-brand{
  font-weight:900;
  font-size:16px;
  color:var(--accent-strong);
}
.footer-sub{
  font-size:13px;
  color:var(--muted);
}

.footer-links{
  display:flex;
  gap:12px;
}
.footer-link{
  border:none;
  background:transparent;
  cursor:pointer;
  color:var(--muted);
  font-size:13px;
  font-weight:600;
}
.footer-link:hover{
  color:var(--accent-strong);
}

/* نوار زیرنویس */
.footer-marquee{
  width:100%;
  overflow:hidden;
  background:var(--accent-soft);
  border-top:1px solid var(--border);
  padding:8px 0;
  direction:rtl;
}


.marquee-track{
  display:inline-block;
  white-space:nowrap;
  animation:marquee 25s linear infinite;
  will-change: transform;
}



/* حرکت از چپ → راست (نسخه اصلاح‌شده) */
@keyframes marquee{
  0%   { transform:translateX(-100%); }
  100% { transform:translateX(100%); }
}

/* موبایل */
@media (max-width:700px){
  .footer-content{
    flex-direction:column;
    gap:6px;
    text-align:center;
  }
  .footer-brand{font-size:15px}
  .footer-sub{font-size:12px}
  .marquee-track span{font-size:14px}
}







/* MOBILE */
@media (max-width:768px){
  .hamburger{display:flex}
  .main-nav{
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    background:#ffffff;
    border-top:1px solid var(--border);
    padding:6px 10px;
    justify-content:space-between;
    z-index:40;
    display:flex;
  }
  .site-header{
    position:fixed;
    top:0;
    left:0;
    right:0;
  }
  .page{
    padding-top:70px;
    padding-bottom:70px;
  }
  .hero-grid{grid-template-columns:1fr}
  .hero-right{order:-1}
  .account-panel{
    left:50%;
    transform:translate(-50%,-10px);
  }
  .account-panel.open{
    transform:translate(-50%,0);
  }
}





















/* CONTACT PRO SECTION */
.contact-pro {
  background: #0f172a;
  padding: 40px 20px;
  text-align: center;
  color: #fff;
  border-radius: 26px 26px 0 0;
  margin-top: 40px;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.35);
}

.cp-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.cp-sub {
  font-size: 14px;
  opacity: .85;
  line-height: 1.8;
  margin-bottom: 26px;
}

.cp-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.cp-item {
  width: 48%;
  background: #1e293b;
  padding: 14px 10px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: .25s;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

.cp-item img {
  width: 34px;
  height: 34px;
  transition: .25s;
}

/* Hover Effects */
.cp-item:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 14px 28px rgba(0,0,0,.45);
}

.cp-item:hover img {
  transform: scale(1.15);
}

/* Marketing Text */
.cp-marketing {
  margin-top: 28px;
  font-size: 13px;
  opacity: .9;
  line-height: 1.9;
  font-weight: 600;
}

/* Mobile Optimization */
@media(max-width: 420px){
  .cp-item { width: 100%; }
}
