/* ============ THEME VARIABLES ============ */
@font-face {
    font-family: 'IranNastaliq';
    src: url('https://cdn.fontcdn.ir/Font/Persian/IranNastaliq/IranNastaliq.ttf') format('truetype');
}
:root{
  --bg:#F9F4E8;
  --bg-alt:#FDFAF2;
  --border:#E5D9BE;
  --card-bg:#FDFAF2;
  --text:#2E2410;
  --text-soft:#7A6A45;
  --gold:#B8860B;
  --gold-light:#D4AF37;
  --maroon:#7A1F2B;
  --shadow:0 4px 18px rgba(120,90,20,0.15);
}
[data-theme="dark"]{
  --bg:#1B140A;
  --bg-alt:#241B0F;
  --text:#F3E6C8;
  --text-soft:#D8C599;
  --gold:#D4AF37;
  --gold-light:#E9CC6B;
  --maroon:#B8455A;
  --border:#5A4A22;
  --card-bg:#2A2013;
  --shadow:0 4px 18px rgba(0,0,0,0.4);
}

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

body{
  font-family:'Vazirmatn',Tahoma,sans-serif;
  background:var(--bg);
  background-image:radial-gradient(circle, rgba(184,134,11,0.06) 1.5px, transparent 1.5px);
  background-size:26px 26px;
  color:var(--text);
  direction:rtl;
  line-height:1.8;
  transition:background .3s,color .3s;
}

img{max-width:100%;display:block;border-radius:12px}
a{color:inherit;text-decoration:none}
.container{max-width:1150px;margin:0 auto;padding:0 20px}
section{padding:70px 0}

h1,h2,h3{color:var(--gold)}

.divider{
  height:6px;
  background:repeating-linear-gradient(
    90deg,
    var(--gold) 0 14px,
    var(--maroon) 14px 22px,
    var(--gold-light) 22px 30px
  );
  border-radius:4px;
  margin:14px auto;
  width:120px;
}

.section-title{text-align:center;margin-bottom:40px}
.section-title p{color:var(--text-soft);margin-top:10px}

/* ===== HEADER ===== */
header{
  position:sticky;
  top:0;
  z-index:100;
  background:var(--bg-alt);
  border-bottom:2px solid var(--border);
}
.nav-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}
.logo{font-size:22px;font-weight:800;color:var(--gold)}

nav ul{display:flex;gap:22px;list-style:none}
nav ul li a{font-weight:600;transition:color .2s}
nav ul li a:hover{color:var(--maroon)}

.header-actions{display:flex;align-items:center;gap:10px}
.theme-toggle{
  background:var(--gold);
  color:#fff;
  border:none;
  border-radius:50%;
  width:40px;
  height:40px;
  cursor:pointer;
  font-size:18px;
}
.mobile-menu-btn{
  display:none;
  background:none;
  border:none;
  font-size:26px;
  cursor:pointer;
  color:var(--gold);
}
.mobile-menu{
  display:none;
  flex-direction:column;
  gap:14px;
  padding:16px 20px;
  background:var(--bg-alt);
  border-top:1px solid var(--border);
}
.mobile-menu.open{display:flex}

/* ===== HERO ===== */
.hero{
  background:linear-gradient(180deg,var(--bg-alt),var(--bg));
  text-align:center;
  padding:80px 0 50px;
}
.hero h1{font-size:34px;margin-bottom:10px}
.hero p{color:var(--text-soft);max-width:600px;margin:0 auto 25px}
.hero-img{
  max-width:340px;
  margin:0 auto 25px;
  border:3px solid var(--gold-light);
  box-shadow:var(--shadow);
}

/* ===== BUTTONS ===== */
.btn{
  display:inline-block;
  padding:13px 30px;
  border-radius:30px;
  font-weight:700;
  cursor:pointer;
  border:2px solid var(--gold);
  transition:.25s;
}
.btn-primary{background:var(--gold);color:#fff}
.btn-primary:hover{background:var(--maroon);border-color:var(--maroon)}
.btn-outline{background:transparent;color:var(--gold)}
.btn-outline:hover{background:var(--gold);color:#fff}

/* ===== GRID / CARDS ===== */
.grid{display:grid;gap:24px}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-2{grid-template-columns:repeat(2,1fr)}

.card{
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:14px 14px 6px 6px;
  padding:26px;
  box-shadow:0 0 0 4px var(--bg),0 0 0 5px var(--gold-light);
}

/* ===== PRICING ===== */
.price-card{
  text-align:center;
  position:relative;
  border:1px solid var(--gold-light);
  border-radius:14px 14px 6px 6px;
  padding:26px;
  box-shadow:0 0 0 4px var(--bg),0 0 0 5px var(--gold-light);
}
.price-card.plus{border:2px solid var(--maroon)}

.badge{
  position:absolute;
  top:-12px;
  right:50%;
  transform:translateX(50%);
  background:var(--maroon);
  color:#fff;
  padding:4px 16px;
  border-radius:20px;
  font-size:13px;
}

.old-price{text-decoration:line-through;color:var(--text-soft);font-size:15px}
.new-price{font-size:26px;color:var(--maroon);font-weight:800;margin:6px 0}

.offer-box{
  background:var(--bg-alt);
  border:1px dashed var(--gold);
  border-radius:12px;
  padding:12px;
  margin:16px 0;
  font-size:14px;
  color:var(--text-soft);
}

/* ===== FAQ & TITLES ===== */
section h2{
  font-family:'Lalezar',serif;
  position:relative;
}
section h2::after{
  content:'❁ ✦ ❁';
  display:block;
  color:var(--gold);
  font-size:.9rem;
  letter-spacing:8px;
  margin-top:8px;
}

details{
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:10px;
  padding:14px 18px;
  margin-bottom:10px;
}
summary{cursor:pointer;font-weight:700;color:var(--gold)}

/* ===== RESULTS SLIDER (INFINITE / SMOOTH) ===== */
.results-section{
  background:var(--bg);
}

.results-wrapper{
  width:100%;
  overflow:hidden;
  position:relative;
  padding:14px 0;
  direction:ltr; /* برای حرکت نرم مارکویی */
}

.results-track{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:12px;
  width:max-content;
  will-change:transform;
  animation:resultsMarquee 24s linear infinite;
}

.results-track img{
  flex:0 0 auto;
  width:180px;
  height:180px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  background:var(--card-bg);
}

/* چون لیست تصاویر در HTML دوبار تکرار شده */
@keyframes resultsMarquee{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}

/* ===== FOOTER ===== */
footer{
  background:var(--bg-alt);
  border-top:2px solid var(--border);
  padding:30px 0;
  text-align:center;
  color:var(--text-soft);
  font-size:14px;
}

/* ===== COMPONENTS ===== */
.scroll-top{
  position:fixed;
  bottom:20px;
  left:20px;
  background:var(--gold);
  color:#fff;
  width:44px;
  height:44px;
  border-radius:50%;
  display:none;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:var(--shadow);
  z-index:99;
}
.scroll-top.show{display:flex}

.leader-icon{
  width:38px;
  height:38px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid var(--gold);
  flex-shrink:0;
}

/* ===== ORDER PAGE ===== */
.order-wrap{max-width:600px;margin:40px auto;padding:0 20px}
.form-group{margin-bottom:18px}
.form-group label{display:block;margin-bottom:6px;font-weight:600}

.form-group input,
.form-group textarea{
  width:100%;
  padding:12px;
  border-radius:8px;
  border:1px solid var(--border);
  background:var(--card-bg);
  color:var(--text);
  font-family:inherit;
}

.model-options,.pack-options{display:flex;gap:14px;flex-wrap:wrap}
.model-option,.pack-option{
  flex:1;
  min-width:140px;
  border:2px solid var(--border);
  border-radius:10px;
  padding:14px;
  cursor:pointer;
  text-align:center;
}
.model-option input,.pack-option input{margin-left:6px}
.model-option.active,.pack-option.active{
  border-color:var(--maroon);
  background:var(--bg-alt);
}

.total-box{
  background:var(--bg-alt);
  border:1px solid var(--gold);
  border-radius:12px;
  padding:16px;
  text-align:center;
  font-size:20px;
  font-weight:800;
  color:var(--maroon);
  margin:20px 0;
}

.payment-box{display:none;margin-top:30px}
.payment-box.show{display:block}

.copy-field{
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:8px;
  padding:12px 16px;
  margin-bottom:12px;
}
.copy-btn{
  background:var(--gold);
  color:#fff;
  border:none;
  border-radius:6px;
  padding:6px 14px;
  cursor:pointer;
  font-size:13px;
}
.copy-btn.copied{background:var(--maroon)}

.eitaa-note{
  background:var(--bg-alt);
  border-right:4px solid var(--maroon);
  padding:14px;
  border-radius:8px;
  margin-top:16px;
  font-size:14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width:768px){
  nav,.header-actions .desktop-only{display:none}
  .mobile-menu-btn{display:block}
  .grid-3{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .hero h1{font-size:26px}
  .leader-icon{width:30px;height:30px}

  .results-track{
    gap:10px;
    animation-duration:20s;
  }
  .results-track img{
    width:140px;
    height:140px;
    border-radius:10px;
  }
}
/* تصاویر گرد کنار دکمه ماه */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-img{
  width: 40px;              /* دقیقاً هم‌اندازه دکمه ماه */
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.15);
}
.header-actions .header-img{
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
}
/* تنظیمات فونت و ظاهر بسم الله */
@font-face {
    font-family: 'IranNastaliq';
    src: url('https://cdn.fontcdn.ir/Font/Persian/IranNastaliq/IranNastaliq.ttf') format('truetype');
}

/* تنظیمات فونت و ظاهر بسم الله */
@font-face {
    font-family: 'IranNastaliq';
    src: url('https://cdn.fontcdn.ir/Font/Persian/IranNastaliq/IranNastaliq.ttf') format('truetype');
}
@media (max-width: 600px) {
    .bismillah-text {
        display: none; /* این متن در موبایل مخفی می‌شود تا هدر مرتب بماند */
    }
}