/* =========================================================
   CSS اضافی برای نقشه نهایی سایت کارباطناب
   - اسلایدر بنر اصلی
   - کارت‌های محاسبه‌گر آنلاین (ویترین)
   - فروشگاه
   - ویدئو رضایت مشتریان
   - آموزش
   - باشگاه معرفین پروژه
   - بخش ثبت سفارش و مشاوره
   - فوتر جدید
   ========================================================= */

/* ---------- زیرعنوان بخش ---------- */
.section-subtitle{
  text-align:center;
  color:var(--muted);
  font-size:15px;
  margin:-26px 0 36px;
  max-width:680px;
  margin-right:auto;margin-left:auto;
}
.section-subtitle-light{color:#a8b1bd;}
.section-cta{text-align:center;margin-top:34px;}
.section-title-light{color:#fff !important;}
.section-title-left{text-align:right !important;}
.section-title-left::after{right:0 !important;transform:none !important;}

/* =========================================================
   ۱. هدر — مطابق نقشه نهایی سایت
   راست: ☰ منوی سه‌خط (همیشه قابل کلیک)
   وسط: کار با طناب / دسترسی بدون محدودیت
   چپ: LOGO کارباطناب
   ========================================================= */

/* ریست CSS قدیمی هدر */
.site-header .header-inner{
  display:grid !important;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:20px;
  padding:14px 0 !important;
}
.site-header .logo{display:none !important;}

/* دکمه ☰ همیشه قابل مشاهده (نه فقط موبایل) */
.nav-toggle{
  display:flex !important;
  flex-direction:column;
  align-items:center;
  gap:5px;
  background:none !important;
  border:0;
  cursor:pointer;
  padding:8px 10px;
  border-radius:8px;
  transition:.2s;
}
.nav-toggle:hover{background:#f4f6f9;}
.nav-toggle-line{
  display:block;
  width:30px;
  height:3px;
  background:var(--dark);
  border-radius:2px;
  transition:.3s;
}
.nav-toggle-label{
  font-size:11.5px;
  font-weight:700;
  color:var(--dark);
  line-height:1;
  margin-top:2px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1){transform:translateY(8px) rotate(45deg);}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2){opacity:0;}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3){transform:translateY(-8px) rotate(-45deg);}

.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* نام برند وسط */
.header-brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  text-decoration:none;
  line-height:1.2;
  padding:6px 0;
}
.header-brand .brand-name{
  color:var(--dark);
  font-size:22px;
  font-weight:800;
  letter-spacing:.3px;
}
.header-brand .brand-tag{
  color:var(--yellow-dark);
  font-size:13px;
  font-weight:600;
  margin-top:2px;
}

/* لوگو چپ */
.header-logo{
  display:flex;
  align-items:center;
  justify-self:end;
}
.header-logo img{
  height:72px;
  width:auto;
  display:block;
}

/* پس‌زمینه تیره */
.nav-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  opacity:0;
  visibility:hidden;
  transition:.3s;
  z-index:90;
}
.nav-overlay.open{opacity:1;visibility:visible;}

/* منوی کشویی Drawer از سمت راست (مطابق RTL) */
.main-nav{
  position:fixed;
  top:0;
  right:-360px;
  width:340px;
  max-width:88vw;
  height:100vh;
  height:100dvh; /* dynamic viewport height for mobile */
  background:#fff;
  box-shadow:-8px 0 32px rgba(0,0,0,.18);
  display:flex !important;
  flex-direction:column;
  transition:right .35s cubic-bezier(.4,0,.2,1);
  z-index:100;
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
}
.main-nav.open{right:0;}

.main-nav-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 22px;
  background:linear-gradient(135deg,var(--dark),#39424e);
  color:#fff;
  position:sticky;top:0;z-index:2;
  flex-shrink:0;
}
.main-nav-title{font-size:16px;font-weight:700;}
.nav-close{
  background:rgba(255,255,255,.15);
  border:0;
  color:#fff;
  width:34px;height:34px;
  border-radius:50%;
  font-size:22px;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  line-height:1;
  transition:.2s;
}
.nav-close:hover{background:var(--yellow);}

.main-nav-list{
  list-style:none;
  margin:0;padding:8px 0 20px;
  flex:1;
  flex-direction:column !important;
  gap:0 !important;
  min-height:0;
}
.main-nav-list > li{position:relative;border-bottom:1px solid #f0f1f4;}
.main-nav-list > li > a{
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  padding:14px 22px !important;
  font-size:15px !important;
  font-weight:600;
  color:var(--dark) !important;
  background:transparent !important;
  border-radius:0 !important;
  transition:.2s;
}
.main-nav-list > li > a:hover,
.main-nav-list > li.active > a{
  background:#fff4ec !important;
  color:var(--yellow-dark) !important;
}
.main-nav-list > li > a .icon{color:var(--yellow);}

/* زیرمنو - به‌صورت کشویی داخل خود drawer */
.main-nav-list .submenu{
  position:static !important;
  display:block;
  flex-direction:column;
  background:#f7f8fa !important;
  box-shadow:none !important;
  border-radius:0 !important;
  padding:0 !important;
  min-width:0 !important;
}
.main-nav-list .has-children .submenu{display:none;}
.main-nav-list .has-children.open-submenu .submenu{display:block;}
.main-nav-list .submenu li a{
  padding:11px 22px 11px 38px !important;
  color:var(--muted) !important;
  font-size:14px !important;
  font-weight:500;
  background:transparent !important;
}
.main-nav-list .submenu li a:hover{
  color:var(--yellow-dark) !important;
  background:#fff !important;
}

.main-nav-footer{
  padding:18px 22px 30px;
  border-top:1px solid #f0f1f4;
  background:#f7f8fa;
  display:flex;
  flex-direction:column;
  gap:12px;
  flex-shrink:0;
}
.nav-cta-phone{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:var(--dark);
  color:#fff !important;
  padding:13px;
  border-radius:8px;
  font-weight:700;
  font-size:14.5px;
  text-decoration:none;
  direction:ltr;
}
.nav-cta-phone .icon{color:var(--yellow);}

/* در دسکتاپ هدر فشرده‌تر */
@media (max-width:768px){
  .site-header .header-inner{padding:10px 0 !important;gap:14px;}
  .header-brand .brand-name{font-size:18px;}
  .header-brand .brand-tag{font-size:11.5px;}
  .header-logo img{height:56px;}
  .nav-toggle-line{width:26px;}
  .main-nav{width:300px;}
}
@media (max-width:480px){
  .site-header .header-inner{gap:10px;}
  .header-brand .brand-name{font-size:16px;}
  .header-brand .brand-tag{font-size:10.5px;}
  .header-logo img{height:50px;}
  .nav-toggle-label{font-size:10px;}
}

/* ریست استایل‌های قدیمی که تداخل دارند */
.logo-text{display:none;}
.main-nav > ul > li{display:block;}
.site-header .header-inner > .main-nav{position:fixed !important;}

/* =========================================================
   ۱. اسلایدر بنر اصلی
   ========================================================= */
.hero-slider{position:relative;background:var(--dark);overflow:hidden;min-height:520px;display:flex;align-items:stretch;}
.hero-slides{position:absolute;inset:0;}
.hero-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .8s ease-in-out,visibility .8s;display:flex;align-items:center;}
.hero-slide.active{opacity:1;visibility:visible;}
.hero-slide-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.hero-slide-placeholder{
  position:absolute;inset:0;
  background:linear-gradient(135deg,#1d2530,#2c3542 50%,#0f141a);
}
.hero-slide-overlay{position:absolute;inset:0;background:linear-gradient(to right,rgba(0,0,0,.78) 0%,rgba(0,0,0,.5) 50%,rgba(0,0,0,.25) 100%);}
.hero-slide-content{position:relative;z-index:2;color:#fff;padding:60px 20px;max-width:680px;}
.hero-slide-title{font-size:32px;line-height:1.4;margin:0 0 16px;font-weight:800;}
.hero-slide-text{font-size:16px;line-height:1.9;margin:0 0 26px;color:#e3e6ea;}
.hero-slide-actions{display:flex;gap:12px;flex-wrap:wrap;}

.hero-arrow{
  position:absolute;top:50%;transform:translateY(-50%);
  background:rgba(0,0,0,.4);color:#fff;border:0;
  width:42px;height:42px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;z-index:5;transition:.25s;
}
.hero-arrow:hover{background:var(--yellow);}
.hero-arrow-prev{right:14px;}
.hero-arrow-prev .icon{transform:rotate(180deg);}
.hero-arrow-next{left:14px;}

.hero-dots{
  position:absolute;bottom:24px;left:50%;transform:translateX(-50%);
  display:flex;gap:10px;z-index:5;
}
.hero-dot{
  width:11px;height:11px;border-radius:50%;
  background:rgba(255,255,255,.35);border:0;cursor:pointer;
  transition:.25s;padding:0;
}
.hero-dot.active{background:var(--yellow);width:30px;border-radius:6px;}

@media (max-width:768px){
  .hero-slider{min-height:440px;}
  .hero-slide-content{padding:40px 16px;}
  .hero-slide-title{font-size:23px;}
  .hero-slide-text{font-size:14px;}
  .hero-arrow{display:none;}
}
@media (max-width:480px){
  .hero-slider{min-height:380px;}
  .hero-slide-content{padding:28px 14px;}
  .hero-slide-title{font-size:19px;margin-bottom:10px;}
  .hero-slide-text{font-size:13px;margin-bottom:18px;}
  .hero-slide-actions .btn{padding:10px 20px;font-size:13.5px;}
}

/* =========================================================
   ۲. ویترین محاسبه‌گرهای آنلاین
   ========================================================= */
.calc-preview-empty{text-align:center;padding:30px 16px;color:var(--muted);}
.calc-preview-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:18px;
}
.calc-preview-card{
  background:#fff;border:1px solid #eaecf0;border-radius:var(--radius);
  padding:24px 18px;display:flex;flex-direction:column;align-items:center;text-align:center;
  text-decoration:none;color:inherit;transition:.25s;
  box-shadow:0 2px 12px rgba(0,0,0,.04);
}
.calc-preview-card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 28px rgba(242,112,28,.18);
  border-color:var(--yellow);
}
.calc-preview-icon{
  width:56px;height:56px;border-radius:50%;
  background:linear-gradient(135deg,#fff2e6,#ffd9b8);
  color:var(--yellow-dark);display:flex;align-items:center;justify-content:center;
  margin-bottom:14px;
}
.calc-preview-title{font-weight:700;font-size:15.5px;color:var(--dark);margin-bottom:6px;}
.calc-preview-desc{font-size:12.5px;color:var(--muted);line-height:1.6;flex:1;margin-bottom:12px;}
.calc-preview-cta{
  display:inline-flex;align-items:center;gap:4px;
  color:var(--yellow-dark);font-weight:700;font-size:13px;
}

/* =========================================================
   ۳. فروشگاه
   ========================================================= */
.shop-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;}
.shop-grid-full{grid-template-columns:repeat(4,1fr);}
.shop-card{
  background:#fff;border-radius:var(--radius);overflow:hidden;
  box-shadow:var(--shadow);transition:.25s;display:flex;flex-direction:column;
}
.shop-card:hover{transform:translateY(-4px);box-shadow:0 14px 32px rgba(0,0,0,.12);}
.shop-card-img{aspect-ratio:1/1;overflow:hidden;background:#f3f4f6;}
.shop-card-img img{width:100%;height:100%;object-fit:cover;transition:.4s;}
.shop-card:hover .shop-card-img img{transform:scale(1.05);}
.shop-card-img .placeholder-img{height:100%;aspect-ratio:1/1;}
.shop-card-body{padding:16px;display:flex;flex-direction:column;gap:6px;flex:1;}
.shop-card-cat{font-size:11.5px;color:var(--yellow-dark);font-weight:700;}
.shop-card h3{margin:0;font-size:14.5px;line-height:1.5;color:var(--dark);}
.shop-card-price{color:var(--yellow-dark);font-weight:700;font-size:15px;margin-top:auto;}
.shop-cta{text-align:center;margin-top:30px;}

.shop-toolbar{margin-bottom:30px;}
.shop-note{text-align:center;color:var(--muted);font-size:13.5px;margin-top:30px;}
.shop-note a{color:var(--yellow-dark);font-weight:600;}

.btn-block{display:block;width:100%;text-align:center;margin-top:10px;padding:11px 18px;font-size:13.5px;border-radius:8px;}
.btn-lg{padding:16px 38px;font-size:16px;}

@media (max-width:960px){
  .shop-grid,.shop-grid-full{grid-template-columns:repeat(3,1fr);}
}
@media (max-width:760px){
  .shop-grid,.shop-grid-full{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:480px){
  .shop-grid,.shop-grid-full{grid-template-columns:1fr;}
}

/* =========================================================
   ۴. ویدئوهای رضایت مشتریان
   ========================================================= */
.video-thumb-wrap{position:relative;aspect-ratio:16/10;background:#0d0f15;overflow:hidden;}
.video-thumb-wrap img{width:100%;height:100%;object-fit:cover;opacity:.85;}
.video-thumb-placeholder{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  color:rgba(242,112,28,.45);background:linear-gradient(135deg,#1a1f29,#0d1015);
}
.video-play-btn{
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  width:64px;height:64px;border-radius:50%;
  background:rgba(242,112,28,.92);color:#fff;border:0;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:.25s;box-shadow:0 4px 18px rgba(242,112,28,.5);
}
.video-play-btn:hover{background:var(--yellow-dark);transform:translate(-50%,-50%) scale(1.06);}
.video-card .video-body{padding:16px;}
.video-card h4{margin:0 0 4px;font-size:14.5px;line-height:1.6;}
.video-subtitle{font-size:12.5px;color:var(--muted);margin:0;}
.testimonial-video-card:hover{transform:translateY(-4px);box-shadow:0 14px 32px rgba(0,0,0,.12);}

/* =========================================================
   ۵. بخش آموزش (دو کارت بزرگ)
   ========================================================= */
.edu-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;}
.edu-card{
  background:#fff;border-radius:var(--radius);padding:36px 30px;
  text-decoration:none;color:inherit;transition:.25s;
  display:flex;flex-direction:column;align-items:center;text-align:center;
  border:2px solid transparent;
  box-shadow:var(--shadow);
}
.edu-card:hover{
  transform:translateY(-4px);
  border-color:var(--yellow);
  box-shadow:0 14px 30px rgba(242,112,28,.18);
}
.edu-icon{
  width:90px;height:90px;border-radius:50%;
  background:linear-gradient(135deg,#fff2e6,#ffd9b8);
  color:var(--yellow-dark);display:flex;align-items:center;justify-content:center;
  margin-bottom:20px;
}
.edu-card h3{margin:0 0 12px;font-size:20px;color:var(--dark);}
.edu-card p{color:var(--muted);font-size:14.5px;line-height:1.9;margin:0 0 18px;flex:1;}
.edu-cta{
  display:inline-flex;align-items:center;gap:6px;
  color:var(--yellow-dark);font-weight:700;font-size:14px;
}
@media (max-width:700px){.edu-grid{grid-template-columns:1fr;}}

/* =========================================================
   ۶. باشگاه معرفین پروژه
   ========================================================= */
.referrer-club .section-title{color:#fff;}
.referrer-club-inner{
  display:grid;grid-template-columns:1.4fr 1fr;gap:50px;align-items:center;
}
.referrer-club-badge{
  display:inline-block;background:rgba(242,112,28,.2);color:var(--yellow);
  padding:6px 16px;border-radius:20px;font-size:12.5px;font-weight:700;
  margin-bottom:14px;letter-spacing:.5px;
}
.referrer-club-desc{
  color:#c7cbd1;font-size:15px;line-height:2;margin:0 0 24px;
}
.referrer-club-desc strong{color:var(--yellow);font-weight:800;}
.referrer-club-actions{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:34px;}
.referrer-club-flow{
  display:flex;gap:8px;flex-wrap:wrap;
  list-style:none;padding:0;margin:0;
}
.referrer-club-flow li{
  flex:1;min-width:140px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  border-radius:8px;padding:10px 12px;
  font-size:12.5px;color:#c7cbd1;
  display:flex;align-items:center;gap:8px;
}
.referrer-club-flow li span{
  width:24px;height:24px;border-radius:50%;
  background:var(--yellow);color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:12px;flex:0 0 24px;
}

.referrer-club-card{
  position:relative;background:linear-gradient(145deg,#181d27,#0f1219);
  border-radius:18px;padding:30px;
  box-shadow:0 20px 50px rgba(0,0,0,.45);
  border:1px solid rgba(242,112,28,.2);
  overflow:hidden;
}
.referrer-card-glow{
  position:absolute;top:-30px;right:-30px;
  width:140px;height:140px;border-radius:50%;
  background:radial-gradient(circle,rgba(242,112,28,.35),transparent 70%);
  pointer-events:none;
}
.referrer-card-content{position:relative;z-index:1;}
.referrer-card-code-label{
  font-size:12.5px;color:#9aa3b2;margin-bottom:6px;font-weight:600;
}
.referrer-card-code{
  font-size:34px;font-weight:800;color:#fff;letter-spacing:1px;
  font-family:'Vazirmatn',monospace;
  padding-bottom:14px;border-bottom:1px dashed rgba(255,255,255,.1);margin-bottom:14px;
}
.referrer-card-link{
  font-size:13px;color:var(--yellow);direction:ltr;text-align:left;
  word-break:break-all;font-family:monospace;
}
.referrer-card-stats{
  display:flex;gap:18px;margin-top:24px;
}
.referrer-card-stats > div{flex:1;text-align:center;}
.referrer-card-stats strong{display:block;font-size:22px;color:var(--yellow);font-weight:800;}
.referrer-card-stats span{font-size:11.5px;color:#9aa3b2;}

@media (max-width:900px){
  .referrer-club-inner{grid-template-columns:1fr;gap:36px;}
}
@media (max-width:520px){
  .referrer-club-flow li{min-width:calc(50% - 4px);}
  .referrer-card-code{font-size:26px;}
  .referrer-club-actions{flex-direction:column;}
  .referrer-club-actions .btn{width:100%;justify-content:center;}
}

/* =========================================================
   ۷. بخش ثبت سفارش و مشاوره
   ========================================================= */
.order-cta-inner{
  display:grid;grid-template-columns:1.4fr 1fr;gap:46px;align-items:center;
  background:#fff;border-radius:18px;padding:40px;
  box-shadow:var(--shadow);
}
.order-cta-desc{
  color:var(--muted);font-size:15px;line-height:2;margin:0 0 20px;
}
.order-cta-points{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px;}
.order-cta-points li{
  display:flex;align-items:center;gap:10px;
  color:var(--dark);font-size:14.5px;font-weight:500;
}
.order-cta-points li .icon{
  color:var(--yellow-dark);background:#fff2e6;
  width:34px;height:34px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;flex:0 0 34px;
}
.order-cta-actions{
  display:flex;flex-direction:column;gap:14px;justify-self:end;
}
.order-cta-actions .btn{width:100%;justify-content:center;}

@media (max-width:820px){
  .order-cta-inner{grid-template-columns:1fr;padding:30px;}
  .order-cta-actions{justify-self:stretch;}
}

/* =========================================================
   ۸. فوتر جدید
   ========================================================= */
.footer-top{
  display:grid;grid-template-columns:1.2fr 2.4fr;gap:50px;
  padding-bottom:36px;border-bottom:1px solid rgba(255,255,255,.08);
}
.footer-brand-name{font-size:22px;font-weight:800;color:#fff;}
.footer-brand-tag{color:var(--yellow);font-size:13px;font-weight:600;margin-bottom:14px;}
.footer-brand-desc{color:#9aa1a9;font-size:13px;line-height:1.9;margin:0;}
.footer-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;}
.footer-links{list-style:none;padding:0;margin:0;}
.footer-links li{margin-bottom:9px;}
.footer-links a{
  color:#c7cbd1;font-size:13.5px;transition:.2s;
}
.footer-links a:hover{color:var(--yellow);padding-right:4px;}
.footer-social{display:flex;gap:10px;margin-top:14px;}
.footer-social a{
  width:36px;height:36px;border-radius:50%;
  background:rgba(255,255,255,.06);
  display:flex;align-items:center;justify-content:center;color:#c7cbd1;
  transition:.25s;
}
.footer-social a:hover{background:var(--yellow);color:#fff;}

.footer-trust{
  display:flex;align-items:center;gap:18px;
  padding:22px 0;border-bottom:1px solid rgba(255,255,255,.06);
  margin-top:24px;
}
.footer-enamad img{
  max-width:110px;height:auto;background:#fff;border-radius:8px;padding:6px;
}
.footer-trust-note{color:#9aa1a9;font-size:12.5px;}

@media (max-width:900px){
  .footer-top{grid-template-columns:1fr;gap:30px;}
  .footer-cols{grid-template-columns:repeat(3,1fr);}
}
@media (max-width:680px){
  .footer-cols{grid-template-columns:repeat(2,1fr);}
  .footer-trust{flex-direction:column;text-align:center;gap:10px;}
}

/* =========================================================
   ۹. صفحه‌ی باشگاه معرفین (referrers.php)
   ========================================================= */
.referrer-hero{
  background:linear-gradient(135deg,#1a1f29,#0f1219),var(--dark);
  background-blend-mode:overlay;
}
.referrer-landing{max-width:920px;margin:0 auto;}
.referrer-landing-text h2{
  text-align:right;font-size:22px;color:var(--dark);
  margin:0 0 16px;
}
.referrer-landing-text p{
  color:var(--text);font-size:15px;line-height:2;margin:0 0 16px;
}
.referrer-landing-text strong{color:var(--yellow-dark);}
.referrer-flow{
  display:grid;grid-template-columns:repeat(4,1fr);gap:14px;
  margin-top:30px;
}
.referrer-flow-step{
  background:#f7f8fa;border-radius:10px;padding:18px 12px;
  display:flex;flex-direction:column;align-items:center;text-align:center;
  position:relative;transition:.25s;
}
.referrer-flow-step:hover{transform:translateY(-3px);box-shadow:var(--shadow);}
.referrer-flow-step .step-num{
  width:38px;height:38px;border-radius:50%;
  background:var(--yellow);color:#fff;font-weight:800;
  display:flex;align-items:center;justify-content:center;
  margin-bottom:12px;font-size:16px;
}
.referrer-flow-step .step-text strong{display:block;font-size:13.5px;color:var(--dark);margin-bottom:6px;}
.referrer-flow-step .step-text p{font-size:12.5px;color:var(--muted);margin:0;line-height:1.6;}
.referrer-landing-actions{display:flex;gap:14px;justify-content:center;margin-top:36px;flex-wrap:wrap;}

.referrer-form-wrap{max-width:620px;margin:0 auto;}
.referrer-form{max-width:100%;}
.form-note{
  font-size:12.5px;color:var(--muted);margin-top:6px;line-height:1.7;
}
.form-note a{color:var(--yellow-dark);font-weight:600;}

.referrer-dashboard{text-align:center;}
.referrer-dashboard .section-cta{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;}

@media (max-width:760px){
  .referrer-flow{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:480px){
  .referrer-flow{grid-template-columns:1fr;}
  .referrer-landing-actions{flex-direction:column;}
  .referrer-landing-actions .btn{width:100%;justify-content:center;}
}

/* =========================================================
   ۱۰. صفحه‌ی فروشگاه (shop.php)
   ========================================================= */
.shop-toolbar .category-filter{justify-content:center;}

/* =========================================================
   ۱۱. فرم تماس - رادیوهای نوع سفارش
   ========================================================= */
.contact-type-radios label{
  padding:10px 14px;border:1px solid #e5e7eb;border-radius:8px;
  background:#fff;cursor:pointer;transition:.2s;
}
.contact-type-radios label:hover{border-color:var(--yellow);}
.contact-type-radios input[type=radio]:checked + span,
.contact-type-radios label:has(input:checked){
  background:#fff2e6;border-color:var(--yellow);
}

/* =========================================================
   ۱۲. هشدارها
   ========================================================= */
.alert{padding:14px 18px;border-radius:8px;font-size:14px;margin-bottom:18px;}
.alert-success{background:#e7f7ec;color:#0f7a3d;border:1px solid #b9e6c8;}
.alert-error{background:#fdeceb;color:#c53030;border:1px solid #f5c2bd;}
.alert-info{background:#eef5ff;color:#1d4ed8;border:1px solid #c7d8f9;}

/* =========================================================
   ۱۳. کارت ویترین مشتریان (در حالت شب)
   ========================================================= */
.clients-map-section .client-card{cursor:pointer;transition:.25s;}
.clients-map-section .client-card:hover{transform:translateY(-3px);border-color:var(--yellow);}
.client-service{color:var(--yellow) !important;font-weight:600 !important;}

/* =========================================================
   ۱۴. گالری تصاویر در صفحه اصلی
   ========================================================= */
.home-gallery-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.home-gallery-item{
  position:relative;
  display:block;
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  aspect-ratio:1/1;
  background:#e9ebee;
}
.home-gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:.4s;
}
.home-gallery-item:hover img{transform:scale(1.08);}
.home-gallery-cap{
  position:absolute;
  bottom:0;right:0;left:0;
  background:linear-gradient(to top,rgba(0,0,0,.85),transparent);
  color:#fff;
  padding:18px 12px 8px;
  font-size:12.5px;
  text-align:center;
  opacity:0;
  transition:.25s;
}
.home-gallery-item:hover .home-gallery-cap{opacity:1;}

@media (max-width:900px){.home-gallery-grid{grid-template-columns:repeat(3,1fr);}}
@media (max-width:680px){.home-gallery-grid{grid-template-columns:repeat(2,1fr);gap:10px;}}
@media (max-width:480px){.home-gallery-grid{grid-template-columns:repeat(2,1fr);gap:8px;}}

/* =========================================================
   ۱۵. مودال پخش ویدئو (video modal)
   ========================================================= */
.video-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.85);
  z-index:1000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.video-modal.open{display:flex;}
.video-modal-inner{
  position:relative;
  width:100%;
  max-width:900px;
  background:#000;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,.5);
}
.video-modal-close{
  position:absolute;
  top:-14px;
  left:-14px;
  width:36px;
  height:36px;
  border-radius:50%;
  background:var(--yellow);
  color:#fff;
  border:0;
  font-size:20px;
  cursor:pointer;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  box-shadow:0 4px 12px rgba(0,0,0,.3);
}
.video-modal-close:hover{background:var(--yellow-dark);}
.video-modal-title{
  color:#fff;
  padding:14px 20px;
  font-size:14px;
  font-weight:600;
  background:#1a1f29;
  text-align:center;
}
.video-modal-body{
  position:relative;
  padding-top:56.25%;
}
.video-modal-body iframe,
.video-modal-body video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
@media (max-width:600px){
  .video-modal-inner{border-radius:8px;}
  .video-modal-title{font-size:12.5px;padding:10px 14px;}
}

/* =========================================================
   ۱۶. فرمول محاسبه‌گر (نمایش فرمول به مشتری)
   ========================================================= */
.calc-formula-info{
  background:#fff4ec;
  border-right:3px solid var(--yellow);
  border-radius:8px;
  padding:10px 14px;
  margin-bottom:14px;
  font-size:13px;
}
.calc-formula-info strong{display:block;color:var(--dark);margin-bottom:4px;}
.calc-formula{
  display:inline-block;
  background:#fff;
  padding:4px 10px;
  border-radius:6px;
  border:1px dashed var(--yellow);
  font-family:monospace;
  color:var(--yellow-dark);
  font-weight:600;
  direction:rtl;
}

/* =========================================================
   ۱۷. نوار اعتماد و مزیت رقابتی (Trust bar)
   ========================================================= */
.trust-bar{
  background:#fff;
  border-bottom:1px solid var(--border);
  padding:24px 0;
  box-shadow:0 2px 8px rgba(0,0,0,.03);
}
.trust-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}
.trust-item{
  display:flex;
  align-items:center;
  gap:14px;
}
.trust-item .icon{
  flex:0 0 50px;
  width:50px;height:50px;
  border-radius:50%;
  background:#fff4ec;
  color:var(--yellow-dark);
  display:flex;align-items:center;justify-content:center;
}
.trust-item strong{display:block;color:var(--dark);font-size:14px;font-weight:700;margin-bottom:2px;}
.trust-item span{display:block;color:var(--muted);font-size:12.5px;}
@media (max-width:900px){
  .trust-grid{grid-template-columns:repeat(2,1fr);gap:18px;}
}
@media (max-width:520px){
  .trust-grid{grid-template-columns:1fr;gap:14px;}
  .trust-item{padding:8px 0;border-bottom:1px solid var(--border);}
  .trust-item:last-child{border-bottom:0;}
}

/* =========================================================
   ۱۸. خدمات کامل کارباطناب (services grid)
   ========================================================= */
.services-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.service-card-home{
  background:#fff;
  border-radius:var(--radius);
  padding:24px 18px;
  text-decoration:none;color:inherit;
  display:flex;flex-direction:column;align-items:flex-start;
  box-shadow:var(--shadow);
  transition:.25s;
  border:2px solid transparent;
}
.service-card-home:hover{
  transform:translateY(-4px);
  border-color:var(--yellow);
  box-shadow:0 14px 32px rgba(242,112,28,.18);
}
.service-icon-home{
  width:56px;height:56px;border-radius:50%;
  background:linear-gradient(135deg,#fff2e6,#ffd9b8);
  color:var(--yellow-dark);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:14px;
}
.service-card-home h3{
  margin:0 0 8px;
  font-size:15.5px;color:var(--dark);
}
.service-card-home p{
  margin:0 0 14px;
  font-size:13px;color:var(--muted);line-height:1.7;
  flex:1;
}
.service-cta{
  display:inline-flex;align-items:center;gap:4px;
  color:var(--yellow-dark);font-weight:700;font-size:13px;
}
@media (max-width:900px){.services-grid{grid-template-columns:repeat(3,1fr);}}
@media (max-width:768px){.services-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:480px){.services-grid{grid-template-columns:1fr;}}

/* =========================================================
   ۱۹. بخش ثبت سفارش اصلی (Order CTA main)
   ========================================================= */
.order-cta-main{padding:50px 0;background:linear-gradient(135deg,#fff8f0,#fff);}
.order-cta-box{
  background:#fff;
  border-radius:18px;
  padding:40px;
  box-shadow:0 12px 40px rgba(242,112,28,.12);
  display:grid;
  grid-template-columns:1.5fr 1fr;
  gap:40px;
  align-items:center;
  border:1px solid #ffe4cc;
}
.order-cta-box h2{
  margin:0 0 14px;
  color:var(--dark);font-size:24px;
}
.order-cta-box > div:first-child > p{
  color:var(--muted);font-size:14.5px;line-height:2;margin:0 0 18px;
}
.order-benefits{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px;}
.order-benefits li{
  display:flex;align-items:center;gap:10px;
  color:var(--dark);font-size:14.5px;font-weight:500;
}
.order-benefits li .icon{
  color:#16a34a;background:#dcfce7;
  width:30px;height:30px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;flex:0 0 30px;
}
.order-cta-actions{
  display:flex;flex-direction:column;gap:12px;
  max-width:100%;
  overflow:hidden;
}
.order-cta-actions .btn{width:100%;justify-content:center;}
.order-phone-link{
  display:flex;align-items:center;justify-content:center;gap:8px;
  background:var(--dark);color:#fff !important;
  padding:14px;border-radius:30px;
  font-weight:700;font-size:15px;text-decoration:none;
  text-align:center;
  max-width:100%;
  word-break:break-all;
  box-sizing:border-box;
}
.order-phone-link .icon{color:var(--yellow);}
@media (max-width:820px){
  .order-cta-box{grid-template-columns:1fr;padding:30px;}
}

/* =========================================================
   ۲۰. حالت خالی فروشگاه
   ========================================================= */
.shop-empty{
  text-align:center;
  padding:50px 20px;
  max-width:560px;margin:0 auto;
}
.shop-empty-icon{
  width:100px;height:100px;border-radius:50%;
  background:#f3f4f6;color:var(--muted);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 24px;
}
.shop-empty h3{color:var(--dark);margin:0 0 10px;font-size:18px;}
.shop-empty p{color:var(--muted);font-size:14px;line-height:1.9;margin:0 0 24px;}
.shop-empty-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;}

/* =========================================================
   ۲۱. حالت خالی کاتالوگ
   ========================================================= */
.catalog-empty{
  text-align:center;
  padding:50px 20px;
  max-width:560px;margin:0 auto;
}
.catalog-empty-icon{
  width:100px;height:100px;border-radius:50%;
  background:#fef2f2;color:#dc2626;
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 24px;
}
.catalog-empty h3{color:var(--dark);margin:0 0 10px;font-size:18px;}
.catalog-empty p{color:var(--muted);font-size:14px;line-height:1.9;margin:0 0 24px;}
.catalog-empty-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;}

/* =========================================================
   ۲۲. حالت خالی مشتریان
   ========================================================= */
.clients-empty{
  text-align:center;padding:50px 20px;
  background:#11151f;border-radius:12px;
  color:#c7cbd1;
}
.clients-empty p{margin:0 0 8px;font-size:14.5px;}
.clients-empty a{text-decoration:underline;}

/* =========================================================
   ۲۳. توضیحات پروژه (project detail)
   ========================================================= */
.project-description{
  font-size:15px;line-height:2;color:var(--text);
  margin-bottom:24px;
}
.project-description h2,
.project-description h3{
  color:var(--yellow-dark);margin-top:24px;
}
.project-description img{
  max-width:100%;height:auto;border-radius:8px;margin:16px 0;
}
.project-cta{
  background:#f7f8fa;
  border-radius:12px;
  padding:24px;
  border-right:4px solid var(--yellow);
  margin-top:40px;
}

/* =========================================================
   ۲۴. فلوی باشگاه معرفین (در صفحه ثبت‌نام)
   ========================================================= */
.referrer-flow-intro{
  margin-bottom:30px;
  padding:24px;
  background:#f7f8fa;
  border-radius:12px;
  border-right:4px solid var(--yellow);
}
.referrer-flow{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.referrer-flow-step{
  background:#fff;
  border-radius:10px;
  padding:18px 12px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  box-shadow:0 2px 8px rgba(0,0,0,.04);
  transition:.25s;
}
.referrer-flow-step:hover{
  transform:translateY(-3px);
  box-shadow:0 8px 20px rgba(242,112,28,.12);
}
.referrer-flow-step .step-num{
  width:38px;height:38px;border-radius:50%;
  background:var(--yellow);color:#fff;font-weight:800;
  display:flex;align-items:center;justify-content:center;
  margin-bottom:12px;font-size:16px;
}
.referrer-flow-step .step-text strong{
  display:block;font-size:13.5px;color:var(--dark);margin-bottom:6px;
}
.referrer-flow-step .step-text p{
  font-size:12.5px;color:var(--muted);margin:0;line-height:1.6;
}
@media (max-width:760px){
  .referrer-flow{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:480px){
  .referrer-flow{grid-template-columns:1fr;}
}

/* =========================================================
   ۲۵. دکمه شناور بستن منو (Floating close button)
   ========================================================= */
.nav-close-floating{
  position:fixed;
  top:16px;
  left:16px;
  width:46px;
  height:46px;
  border-radius:50%;
  background:var(--yellow);
  color:#fff;
  border:0;
  font-size:26px;
  cursor:pointer;
  z-index:110;
  display:none;
  align-items:center;
  justify-content:center;
  line-height:1;
  box-shadow:0 4px 16px rgba(0,0,0,.3);
  transition:.2s;
}
.nav-close-floating:hover{background:var(--yellow-dark);transform:scale(1.05);}
.nav-close-floating.show{display:flex;}

/* =========================================================
   ۲۶. اصلاح رنگ دکمه‌های outline روی پس‌زمینه روشن
   ========================================================= */
.btn{
  color:var(--dark) !important;
  background:transparent;
}
.btn:hover{
  background:var(--yellow);
  color:#fff !important;
}
.btn-solid{
  background:var(--yellow);
  border-color:var(--yellow);
  color:#fff !important;
}
.btn-solid:hover{
  background:var(--yellow-dark);
  border-color:var(--yellow-dark);
  color:#fff !important;
}
/* دکمه‌های outline روی پس‌زمینه تیره: متن سفید */
.hero .btn,
.hero-slide-content .btn,
.hero-slider .btn,
.section-dark .btn,
.page-hero .btn,
.referrer-club .btn,
.clients-map-section .btn,
.clients-map-section .btn:not(.btn-solid){
  color:#fff !important;
}
.hero .btn-solid,
.hero-slide-content .btn-solid,
.hero-slider .btn-solid,
.section-dark .btn-solid,
.page-hero .btn-solid,
.referrer-club .btn-solid,
.clients-map-section .btn-solid{
  color:#fff !important;
}




/* =========================================================
   ۲۷. حالت خالی نمونه‌کارها (portfolio empty state)
   ========================================================= */
.portfolio-empty{
  text-align:center;
  padding:60px 20px;
  max-width:600px;
  margin:0 auto;
}
.portfolio-empty-icon{
  width:100px;height:100px;border-radius:50%;
  background:#f3f4f6;color:var(--muted);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 24px;
}
.portfolio-empty h3{color:var(--dark);margin:0 0 10px;font-size:20px;}
.portfolio-empty p{color:var(--muted);font-size:14.5px;line-height:1.9;margin:0 0 12px;}
.portfolio-empty-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:20px;}

/* =========================================================
   ۲۸. بخش استخدام (همکاری با ما)
   ========================================================= */
.employment-section{
  background:#f7f8fa;
  border-radius:12px;
  padding:30px;
  margin-top:40px;
  border-right:4px solid var(--yellow);
}
.employment-section h3{
  color:var(--yellow-dark);
  margin:0 0 14px;
  font-size:18px;
  display:flex;
  align-items:center;
  gap:10px;
}
.employment-section p.intro{
  color:var(--muted);
  font-size:14px;
  line-height:1.9;
  margin:0 0 20px;
}
.employment-form{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
  max-width:700px;
}
.employment-form .full-row{grid-column:1/-1;}
.employment-form label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:13.5px;
  color:var(--text);
  font-weight:600;
}
.employment-form input,
.employment-form select,
.employment-form textarea{
  padding:11px 14px;
  border:1px solid var(--border);
  border-radius:8px;
  font-size:14px;
  font-family:inherit;
  background:#fff;
}
.employment-form input:focus,
.employment-form select:focus,
.employment-form textarea:focus{
  outline:none;
  border-color:var(--yellow);
}
.employment-form button{
  grid-column:1/-1;
  justify-self:start;
  margin-top:10px;
}
.employment-form .form-hint{
  font-size:11.5px;
  color:var(--muted);
  font-weight:400;
  margin-top:2px;
}
@media (max-width:600px){
  .employment-form{grid-template-columns:1fr;}
}

/* =========================================================
   ۲۹. اصلاحات موبایل - جلوگیری از سرریز دکمه‌ها
   ========================================================= */

/* اطمینان از اینکه تمام دکمه‌ها در موبایل سرریز نمی‌کنند */
.btn,
.btn-solid,
.btn-lg{
  max-width:100%;
  box-sizing:border-box;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* در موبایل: دکمه‌ها تمام عرض و قابل خواندن */
@media (max-width:600px){
  .btn{padding:12px 20px !important;font-size:14px !important;}
  .btn-lg{padding:14px 24px !important;font-size:15px !important;}
  .btn-block{width:100% !important;}

  /* کانتینر دکمه‌های فروشگاه خالی */
  .shop-empty-actions{
    flex-direction:column;
    gap:10px;
  }
  .shop-empty-actions .btn{
    width:100%;
    justify-content:center;
  }

  /* کانتینر دکمه‌های سفارش */
  .order-cta-actions{
    width:100%;
  }
  .order-cta-actions .btn{
    padding:14px 18px !important;
    font-size:14px !important;
  }

  /* کانتینر دکمه‌های CTA در صفحه اصلی */
  .order-cta-box{
    padding:20px !important;
  }
  .order-cta-box h2{
    font-size:18px !important;
  }
  .order-cta-box > div:first-child > p{
    font-size:13.5px !important;
  }

  /* فرم تماس */
  .contact-form{
    padding:0 4px;
  }
  .contact-form .btn{
    width:100%;
    justify-content:center;
    padding:14px 20px !important;
  }

  /* دکمه‌های page-hero */
  .page-hero .btn,
  .hero-slide-actions .btn{
    width:100%;
    justify-content:center;
    margin-bottom:8px;
  }
  .hero-slide-actions{
    flex-direction:column;
    gap:8px;
  }
  .hero-slide-actions .btn{
    width:100%;
  }

  /* بخش ثبت سفارش سریع */
  .order-cta-main .order-cta-box{
    overflow:hidden;
  }
}

/* اطمینان از اینکه هیچ عنصری باعث سرریز افقی نشود */
.container{
  max-width:100%;
  overflow-x:hidden;
}
section{
  overflow-x:hidden;
}

/* =========================================================
   ۳۰. دکمه ثبت سفارش در محاسبه‌گر
   ========================================================= */
.calc-order-btn{
  display:flex !important;
  align-items:center;
  justify-content:center;
  width:100%;
  margin-top:16px;
  padding:14px 20px !important;
  font-size:15px;
  box-sizing:border-box;
}
.calc-order-btn .icon{margin-left:6px;}

/* =========================================================
   ۳۱. اصلاحات جامع موبایل - جلوگیری از سرریز افقی
   ========================================================= */

/* اطمینان از اینکه هیچ عنصری باعث سرریز افقی نشود */
*, *::before, *::after {
  max-width:100%;
}

/* تمام کانتینرها و بخش‌ها */
.container, section, header, footer, nav, main, article, aside, div {
  max-width:100%;
  box-sizing:border-box;
}

/* جداول - قابل اسکرول افقی در موبایل */
.table-wrap, .admin-table {
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

/* تصاویر */
img {
  max-width:100%;
  height:auto;
}

/* دکمه‌ها - بدون سرریز */
.btn, .btn-solid, .btn-lg, .btn-block {
  max-width:100%;
  word-break:keep-all;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  box-sizing:border-box;
}

/* در موبایل - کاهش padding و font-size دکمه‌ها */
@media (max-width:768px){
  .btn {
    padding:11px 18px !important;
    font-size:13.5px !important;
  }
  .btn-lg {
    padding:13px 22px !important;
    font-size:14.5px !important;
  }
  .btn-block {
    width:100% !important;
    display:block !important;
    text-align:center !important;
  }
  
  /* هدر */
  .site-header .header-inner {
    padding:8px 0 !important;
    gap:8px !important;
  }
  .header-brand .brand-name {
    font-size:15px !important;
  }
  .header-brand .brand-tag {
    font-size:10px !important;
  }
  .header-logo img {
    height:48px !important;
  }
  .nav-toggle-line {
    width:24px !important;
  }
  .nav-toggle-label {
    font-size:10px !important;
  }
  
  /* بنر اسلایدر */
  .hero-slider {
    min-height:300px !important;
  }
  .hero-slide-content {
    padding:24px 16px !important;
  }
  .hero-slide-title {
    font-size:18px !important;
    line-height:1.5 !important;
  }
  .hero-slide-text {
    font-size:13px !important;
    line-height:1.7 !important;
  }
  .hero-slide-actions {
    flex-direction:column !important;
    gap:8px !important;
  }
  .hero-slide-actions .btn {
    width:100% !important;
    justify-content:center !important;
    padding:11px 16px !important;
    font-size:13.5px !important;
  }
  .hero-arrow {
    display:none !important;
  }
  
  /* محاسبه‌گر */
  .calc-preview-grid {
    grid-template-columns:1fr !important;
    gap:14px !important;
  }
  .calc-grid {
    grid-template-columns:1fr !important;
  }
  .calc-card {
    padding:18px 14px !important;
  }
  .calc-result-value {
    font-size:18px !important;
  }
  
  /* خدمات */
  .services-grid {
    grid-template-columns:1fr !important;
    gap:12px !important;
  }
  .service-card-home {
    padding:18px 14px !important;
  }
  
  /* نقشه */
  .clients-map-dark {
    height:320px !important;
  }
  .client-grid {
    grid-template-columns:1fr !important;
  }
  
  /* فروشگاه */
  .shop-grid {
    grid-template-columns:1fr !important;
  }
  
  /* نمونه‌کارها */
  .portfolio-layout {
    grid-template-columns:1fr !important;
  }
  .grid-3, .grid-4 {
    grid-template-columns:1fr !important;
  }
  
  /* ویدئو */
  .video-grid {
    grid-template-columns:1fr !important;
  }
  
  /* گالری */
  .home-gallery-grid {
    grid-template-columns:repeat(2,1fr) !important;
    gap:8px !important;
  }
  
  /* آموزش */
  .edu-grid {
    grid-template-columns:1fr !important;
  }
  
  /* باشگاه معرفین */
  .referrer-club-inner {
    grid-template-columns:1fr !important;
    gap:24px !important;
  }
  .referrer-club-actions {
    flex-direction:column !important;
  }
  .referrer-club-actions .btn {
    width:100% !important;
    justify-content:center !important;
  }
  .referrer-flow {
    grid-template-columns:1fr !important;
  }
  
  /* آخرین مطالب */
  .article-grid {
    grid-template-columns:1fr !important;
  }
  
  /* ثبت سفارش */
  .order-cta-inner {
    grid-template-columns:1fr !important;
    padding:20px !important;
  }
  .order-cta-actions {
    width:100% !important;
  }
  .order-cta-actions .btn {
    width:100% !important;
    justify-content:center !important;
  }
  
  /* فوتر */
  .footer-top {
    grid-template-columns:1fr !important;
    gap:24px !important;
  }
  .footer-cols {
    grid-template-columns:1fr !important;
  }
  
  /* صفحه تماس */
  .contact-form .grid {
    grid-template-columns:1fr !important;
  }
  .contact-type-radios {
    grid-template-columns:1fr !important;
    gap:8px !important;
  }
  
  /* دکمه‌های CTA */
  .order-cta-box {
    padding:18px !important;
  }
  .order-cta-box h2 {
    font-size:18px !important;
  }
  
  /* دکمه شناور بازگشت به بالا */
  .back-to-top {
    width:40px !important;
    height:40px !important;
    bottom:16px !important;
    left:16px !important;
  }
  
  /* page-hero */
  .page-hero {
    padding:30px 0 !important;
  }
  .page-hero h1 {
    font-size:20px !important;
  }
  
  /* section */
  .section {
    padding:30px 0 !important;
  }
  .section-title {
    font-size:18px !important;
    margin-bottom:24px !important;
  }
  .section-subtitle {
    font-size:13px !important;
    margin:-18px 0 24px !important;
  }
}

/* موبایل خیلی کوچک (کمتر از ۴۸۰px) */
@media (max-width:480px){
  .container {
    padding:0 12px !important;
  }
  .hero-slide-title {
    font-size:16px !important;
  }
  .hero-slide-text {
    font-size:12px !important;
  }
  .btn {
    padding:10px 14px !important;
    font-size:12.5px !important;
  }
  .calc-card h3 {
    font-size:15px !important;
  }
  .order-cta-box h2 {
    font-size:16px !important;
  }
  .section-title {
    font-size:16px !important;
  }
  .home-gallery-grid {
    grid-template-columns:1fr !important;
  }
}

/* جلوگیری از زوم شدن صفحه در iOS موقع focus روی input */
@supports (-webkit-touch-callout: none) {
  input, select, textarea {
    font-size:16px !important;
  }
}
