/* =========================================================
   ریحانه — Warranty Management System
   Public Website CSS v2.2.0
   Design: Premium SaaS 2026
   Font: Vazirmatn
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@500;600;700;800&display=swap');

@font-face { font-family:'Vazirmatn'; src:url('../fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight:400; font-display:swap; }
@font-face { font-family:'Vazirmatn'; src:url('../fonts/Vazirmatn-Medium.woff2') format('woff2'); font-weight:500; font-display:swap; }
@font-face { font-family:'Vazirmatn'; src:url('../fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight:700; font-display:swap; }
@font-face { font-family:'Vazirmatn'; src:url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2'); font-weight:800; font-display:swap; }

/* ─── Tokens ─────────────────────────────────────────── */
:root {
  --primary:       #5B4FCF;
  --primary-hover: #4737D9;
  --primary-soft:  #EEF0FF;
  --secondary:     #6E63FF;
  --accent:        #F5A623;
  --accent-light:  #FFD07A;
  --success:       #22C55E;
  --danger:        #EF4444;
  --warning:       #F59E0B;

  --bg:       #F8FAFC;
  --bg-white: #FFFFFF;
  --ink:      #111827;
  --ink-soft: #6B7280;
  --border:   #E5E7EB;

  --shadow-sm:    0 2px 8px rgba(0,0,0,.05);
  --shadow-md:    0 8px 24px rgba(0,0,0,.08);
  --shadow-lg:    0 20px 60px rgba(0,0,0,.12);
  --shadow-hover: 0 25px 70px rgba(91,79,207,.18);

  --r-btn:  14px;
  --r-input:14px;
  --r-card: 20px;
  --r-lg:   24px;
  --r-img:  18px;

  --font: 'Vazirmatn', Tahoma, 'IRANSans', Arial, sans-serif;
  --mono: 'Courier New', monospace;
  --transition: .25s ease;

  /* نام‌های قدیمی متغیرها (alias) برای سازگاری */
  --white: #FFFFFF;
  --navy:  var(--primary);
  --navy-deep: #1A0E6B;
  --gold:  var(--accent);
  --green: var(--success);
  --red:   var(--danger);
}

/* ─── Reset ──────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }

html { scroll-behavior:smooth; }

body {
  font-family: var(--font);
  font-size: clamp(15px, 2.2vw, 16px);
  line-height: 1.9;
  background: var(--bg);
  color: var(--ink);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration:none; color:inherit; transition:color var(--transition); }
img { max-width:100%; display:block; }
button { font-family:var(--font); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

/* ─── Header ─────────────────────────────────────────── */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 1px 12px rgba(91,79,207,.07);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 68px;
  gap: 36px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: clamp(17px, 3vw, 20px);
  color: var(--primary);
  letter-spacing: -.3px;
  flex-shrink: 0;
}
.brand img { height: 34px; width: auto; }
.brand .badge {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
  box-shadow: 0 4px 14px rgba(91,79,207,.35);
  flex-shrink: 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 10px;
  transition: background var(--transition), color var(--transition);
  min-height: 44px;
  display: flex; align-items: center;
}
.main-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.main-nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }

/* همبرگر موبایل */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: var(--primary-soft);
  border: none; border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: auto;
}
.nav-toggle span {
  width: 18px; height: 2px;
  background: var(--primary);
  margin: 0 auto;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-btn);
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  line-height: 1;
  min-height: 44px;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  box-shadow: 0 4px 16px rgba(91,79,207,.35);
}
.btn-primary:hover { box-shadow: var(--shadow-hover); }

.btn-secondary {
  background: var(--bg-white);
  color: var(--primary);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--primary); background: var(--primary-soft); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.45);
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); }

.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 4px 14px rgba(239,68,68,.3); }
.btn-danger:hover { background: #DC2626; }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ─── Hero / Slider ──────────────────────────────────── */
.slider {
  position: relative;
  background: linear-gradient(135deg, #1A0E6B 0%, #2D1B8E 45%, #4C3BBF 80%, #6B5CE7 100%);
  color: #fff;
  overflow: hidden;
  min-height: clamp(420px, 60vw, 520px);
}
.slider::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 95% 5%, rgba(245,166,35,.22) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 5% 95%, rgba(110,99,255,.25) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 110%, rgba(91,79,207,.15) 0%, transparent 60%);
}
.slide-track {
  display: flex;
  direction: ltr;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.slide-track .slide { direction: rtl; }
.slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 60vw, 520px);
  padding: clamp(40px, 6vw, 80px) 0;
  position: relative; z-index: 1;
}
.slide-inner {
  display: flex;
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
  width: 100%;
}
.slide-content { flex: 1; min-width: 0; }
.slide-image {
  flex: 0 0 clamp(280px, 42%, 460px);
  max-width: 460px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}
.slide-image img { width: 100%; height: clamp(220px, 30vw, 340px); object-fit: cover; display: block; }

.slide[data-bg] { background-size: cover; background-position: center; }
.slide[data-bg]::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(26,14,107,.82) 0%, rgba(26,14,107,.5) 55%, transparent 100%);
}
.slide[data-bg] .slide-inner { position: relative; z-index: 1; }

.slide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  padding: 5px 14px;
  border-radius: 40px;
  margin-bottom: 18px;
  backdrop-filter: blur(6px);
}
.slide h1 {
  font-size: clamp(26px, 5.5vw, 48px);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 16px;
  letter-spacing: -.5px;
}
.slide p {
  font-size: clamp(14px, 2.2vw, 16.5px);
  color: rgba(255,255,255,.78);
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.85;
}
.slide-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.slide-actions .btn { min-width: 150px; }

/* Slider controls */
.slider-dots {
  position: absolute;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 2;
}
.slider-dots button {
  width: 8px; height: 8px;
  border-radius: 50%; border: none;
  background: rgba(255,255,255,.3);
  cursor: pointer; padding: 0;
  transition: background var(--transition), width var(--transition);
}
.slider-dots button.active { background: var(--accent); width: 26px; border-radius: 4px; }

.slider-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: background var(--transition);
  backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: rgba(255,255,255,.22); }
.slider-arrow.prev { right: 24px; }
.slider-arrow.next { left: 24px; }

/* ─── Sections ───────────────────────────────────────── */
.section { padding: clamp(52px, 8vw, 88px) 0; }
.section-head { text-align: center; max-width: 600px; margin: 0 auto clamp(36px, 6vw, 56px); }
.section-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 5px 14px;
  border-radius: 40px;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 12px;
}
.section-head p { color: var(--ink-soft); font-size: clamp(14.5px, 2.2vw, 16px); }

/* ─── Features ───────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 28px);
}
.feature-card {
  background: var(--bg-white);
  border-radius: var(--r-card);
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex; flex-direction: column;
}
.feature-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-card);
  background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.feature-card h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.feature-card p  { color: var(--ink-soft); font-size: 14.5px; line-height: 1.8; margin: 0; }

/* ─── Statistics ─────────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, #1A0E6B 0%, #2D1B8E 50%, #4C3BBF 100%);
  padding: clamp(48px, 7vw, 72px) 0;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.stat-block {
  color: #fff;
  text-align: center;
  padding: clamp(20px, 4vw, 32px);
  border-left: 1px solid rgba(255,255,255,.12);
  transition: background var(--transition);
}
.stat-block:last-child { border-left: none; }
.stat-block:hover { background: rgba(255,255,255,.06); }
.stat-number { font-size: clamp(36px, 6vw, 52px); font-weight: 800; line-height: 1; margin-bottom: 8px; }
.stat-label  { font-size: 14px; opacity: .75; font-weight: 500; }

/* ─── Products ───────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: clamp(14px, 2.5vw, 24px);
}
.product-card {
  background: var(--bg-white);
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  text-align: center;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.product-card img { width: 100%; height: clamp(140px, 20vw, 180px); object-fit: cover; }
.product-placeholder {
  height: clamp(140px, 20vw, 180px);
  background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 42px;
}
.product-card-body { padding: 18px 16px; }
.product-card h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.product-card .cat {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 3px 12px; border-radius: 40px;
}

/* ─── Warranty Terms ─────────────────────────────────── */
.warranty-terms-section { background: var(--bg); }
.warranty-terms-box {
  background: var(--bg-white);
  border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.warranty-terms-box p { color: var(--ink-soft); font-size: 15.5px; line-height: 2; }

/* ─── Repair Features ────────────────────────────────── */
.repair-features-section { background: var(--bg-white); }

/* ─── Agents CTA ─────────────────────────────────────── */
.agents-cta-section {
  background: linear-gradient(135deg, #111827 0%, #1E1B4B 100%);
  color: #fff;
  padding: clamp(52px, 8vw, 80px) 0;
}
.agents-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 48px);
  backdrop-filter: blur(6px);
}
.agents-cta-text h2 { font-size: clamp(20px, 3.5vw, 26px); font-weight: 800; margin-bottom: 10px; }
.agents-cta-text p  { color: rgba(255,255,255,.68); font-size: clamp(14px, 2vw, 15.5px); margin: 0; max-width: 500px; }
.agents-cta-box .btn-primary { flex-shrink: 0; }

/* ─── CTA Register ───────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #3D3299 100%);
  color: #fff;
  text-align: center;
  padding: clamp(60px, 9vw, 96px) 0;
}
.cta-section h2 { font-size: clamp(24px, 4.5vw, 36px); font-weight: 800; margin-bottom: 14px; }
.cta-section p  { font-size: clamp(14.5px, 2.2vw, 17px); opacity: .8; margin-bottom: 36px; }

/* ─── Content Sections (تصویر + متن قابل ویرایش) ───────── */
.content-section-block {
  padding: clamp(52px, 7vw, 80px) 0;
  background: var(--bg-white);
}
.content-section-block.cs-alt { background: var(--bg); }
.cs-inner {
  display: flex;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}
.cs-inner.cs-reverse { flex-direction: row-reverse; }
.cs-text { flex: 1; min-width: 0; }
.cs-title {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.4;
  margin: 12px 0 16px;
  color: var(--ink);
}
.cs-title strong, .cs-body strong { font-weight: 800; color: #111827; }
.cs-title .text-gray, .cs-body .text-gray { color: #6B7280; font-weight: 500; }
.cs-title .text-accent, .cs-body .text-accent { color: var(--primary); font-weight: 700; }
.cs-title em, .cs-body em { font-style: normal; color: var(--primary); }
.cs-body {
  font-size: clamp(14.5px, 2.2vw, 16px);
  color: var(--ink-soft);
  line-height: 1.9;
}
.cs-media { flex: 0 0 clamp(240px, 42%, 480px); max-width: 480px; }
.cs-media img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}
@media (max-width: 768px) {
  .cs-inner, .cs-inner.cs-reverse { flex-direction: column; gap: 28px; }
  .cs-media { flex: none; max-width: 100%; width: 100%; }
}

/* ─── Brands Slider ──────────────────────────────────── */
.brands-section {
  background: var(--bg-white);
  padding: clamp(36px, 6vw, 56px) 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

/* ─── Forms ──────────────────────────────────────────── */
.form-section { background: var(--bg); }
.form-card {
  background: var(--bg-white);
  border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  max-width: 700px;
  margin: 0 auto;
}
.form-card h1 { font-size: clamp(20px, 3.5vw, 24px); font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.form-card .sub { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 28px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px; font-weight: 600; color: var(--ink);
  margin-bottom: 8px;
}
.req { color: var(--danger); margin-right: 2px; }
.hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; line-height: 1.6; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-input);
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 48px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(91,79,207,.1);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

/* Alerts */
.alert {
  padding: 15px 18px;
  border-radius: 14px;
  font-size: 14px;
  margin-bottom: 20px;
  border-right: 4px solid;
  line-height: 1.7;
}
.alert-error   { background: #FEF2F2; border-color: var(--danger);  color: #991B1B; }
.alert-success { background: #F0FDF4; border-color: var(--success); color: #166534; }
.alert-warning { background: #FFFBEB; border-color: var(--warning); color: #92400E; }

/* Badges */
.badge-status {
  display: inline-flex; align-items: center;
  padding: 4px 12px;
  border-radius: 40px;
  font-size: 12.5px; font-weight: 600;
}
.badge-status.active  { background: #DCFCE7; color: #15803D; }
.badge-status.expired { background: #FEE2E2; color: #B91C1C; }
.badge-status.pending { background: #FEF3C7; color: #92400E; }
.badge-status.inactive{ background: #F3F4F6; color: #6B7280; }

/* ─── Result Card ────────────────────────────────────── */
.result-card {
  background: var(--bg-white);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
}
.result-header {
  background: linear-gradient(135deg, var(--primary), #3D3299);
  color: #fff;
  padding: clamp(22px, 4vw, 32px);
  display: flex; align-items: center; gap: 16px;
}
.result-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.result-body { padding: clamp(20px, 4vw, 32px); }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.result-item {
  background: var(--bg);
  border-radius: 12px;
  padding: 14px 16px;
}
.result-item label {
  display: block;
  font-size: 12px; color: var(--ink-soft); margin-bottom: 4px;
}
.result-item span { font-weight: 700; font-size: 14.5px; color: var(--ink); }

/* ─── Captcha ─────────────────────────────────────────── */
.captcha-widget { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha-image {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden; flex-shrink: 0; line-height: 0;
  box-shadow: var(--shadow-sm);
}
.captcha-image svg { width: 110px; height: 38px; display: block; }
.captcha-input {
  flex: 1; min-width: 110px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font); font-size: 15px;
  outline: none; transition: border-color var(--transition), box-shadow var(--transition);
}
.captcha-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(91,79,207,.1); }

/* ─── Support Widget ──────────────────────────────────── */
.support-widget { position: fixed; right: 24px; bottom: 24px; z-index: 200; }
.support-fab {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 22px rgba(91,79,207,.45);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.support-fab:hover { transform: scale(1.08); box-shadow: 0 10px 32px rgba(91,79,207,.55); }
.support-fab svg { width: 24px; height: 24px; }
.support-fab-icon { display: flex; align-items: center; }
.support-fab-icon-close { display: none; }
.support-widget.open .support-fab-icon-open  { display: none; }
.support-widget.open .support-fab-icon-close { display: flex; }
.support-fab-pulse {
  position: absolute; top: -2px; right: -2px;
  width: 13px; height: 13px;
  border-radius: 50%; background: var(--accent);
  border: 2px solid #fff;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.2); opacity: .8; }
}
.support-menu {
  position: absolute;
  bottom: 64px; right: 0;
  background: var(--bg-white);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  min-width: 230px;
  padding: 10px 0;
  opacity: 0; pointer-events: none;
  transform: translateY(12px) scale(.95);
  transform-origin: bottom right;
  transition: opacity var(--transition), transform var(--transition);
}
.support-widget.open .support-menu { opacity: 1; pointer-events: all; transform: none; }
.support-menu-title {
  font-size: 12px; font-weight: 700; color: var(--ink-soft);
  padding: 4px 16px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px;
}
.support-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; font-size: 14px; font-weight: 500;
  color: var(--ink); transition: background var(--transition);
}

/* ─── دکمه‌ی شناور اختصاصی ربات بله (جدا از ویجت پشتیبانی، برای دیده‌شدن بهتر) ─── */
.bale-bot-fab {
  position: fixed; left: 20px; bottom: 24px; z-index: 199;
  display: flex; align-items: center; gap: 10px;
  background: #2C9CDB; color: #fff;
  border-radius: 999px;
  padding: 12px 18px 12px 16px;
  box-shadow: 0 6px 22px rgba(44,156,219,.45);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), padding var(--transition);
}
.bale-bot-fab:hover { transform: scale(1.04); box-shadow: 0 10px 28px rgba(44,156,219,.55); }
.bale-bot-fab-icon { display: flex; align-items: center; flex-shrink: 0; }
.bale-bot-fab-icon svg { width: 22px; height: 22px; }
.bale-bot-fab-label { font-size: 13px; font-weight: 700; white-space: nowrap; }
.bale-bot-fab-pulse {
  position: absolute; top: -3px; left: -3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #FF5A5F; border: 2px solid #fff;
  animation: pulse 2s ease-in-out infinite;
}
@media (max-width: 600px) {
  .bale-bot-fab { left: 14px; bottom: 14px; padding: 12px; }
  .bale-bot-fab-label { display: none; }
}
.support-item:hover { background: var(--bg); }
.support-item-icon {
  width: 34px; height: 34px;
  border-radius: 9px; background: var(--item-color, #5A6878);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: #fff;
}
.support-item-icon svg { width: 18px; height: 18px; }

/* ─── Footer ─────────────────────────────────────────── */
.site-footer {
  background: #111827;
  color: rgba(255,255,255,.65);
  padding: clamp(28px, 5vw, 44px) 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
}
.footer-address { margin-bottom: 4px; }

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 992px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .agents-cta-box { flex-direction: column; text-align: center; }
  .agents-cta-text p { max-width: 100%; }
}

@media (max-width: 768px) {
  .slide-inner { flex-direction: column-reverse; gap: 20px; }
  .slide-image { flex: none !important; max-width: 100% !important; width: 100%; }
  .slide-image img { height: 200px; }
  .slide-content { text-align: center; }
  .slide p { max-width: 100%; }
  .slide-actions { justify-content: center; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-block { border-left: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .result-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }

  /* منوی موبایل — همبرگر */
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 68px; right: 0; left: 0;
    background: var(--bg-white);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    border-top: 1px solid var(--border);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
    z-index: 400;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .main-nav a { padding: 13px 16px; font-size: 15px; border-radius: 12px; }
}

@media (min-width: 769px) {
  .nav-toggle { display: none !important; }
}

@media (max-width: 576px) {
  .features-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: 1fr; }
  .stat-block { border: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat-block:last-child { border-bottom: none; }
  .slide-actions .btn { width: 100%; max-width: 280px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .warranty-terms-box { padding: 22px 18px; }
  .form-card { padding: 22px 18px; }
  .result-body { padding: 18px 16px; }
}

@media (max-width: 390px) {
  .container { padding: 0 14px; }
  .main-nav a { padding: 6px 8px; font-size: 13px; }
}

/* ─── Agents / Representatives Directory ────────────────── */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(14px, 2.5vw, 22px);
}
.agent-card {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 22px 20px 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.agent-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.agent-card-main {
  border: 1.5px solid var(--gold);
  background: linear-gradient(160deg, rgba(212,175,55,.08), var(--bg-white) 55%);
}
.agent-card-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 12px;
  border-radius: 40px;
  margin-bottom: 12px;
}
.agent-card-badge-main {
  color: #7a5c00;
  background: rgba(212,175,55,.18);
}
.agent-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}
.agent-card-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 8px;
  line-height: 1.6;
}
.agent-card-row a { color: var(--ink-soft); }
.agent-card-row a:hover { color: var(--primary); }
.agent-card-icon { flex-shrink: 0; font-size: 15px; line-height: 1.6; }
.agent-card-contact { font-weight: 600; color: var(--ink); }
.agent-card-bale {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #1a7bb8;
  background: rgba(44,156,219,.1);
  border: 1.5px solid rgba(44,156,219,.35);
  padding: 6px 14px 6px 6px;
  border-radius: 40px;
  transition: background var(--transition), border-color var(--transition);
}
.agent-card-bale:hover { background: rgba(44,156,219,.18); border-color: rgba(44,156,219,.6); }
.agent-card-bale-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2C9CDB;
  color: #fff;
  flex-shrink: 0;
}
.agent-card-bale-icon svg { width: 14px; height: 14px; }

@media (max-width: 480px) {
  .agents-grid { grid-template-columns: 1fr; }
}
