/* ==========================================================================
   HostB Cloud WordPress Theme - Standalone Compiled Styles
   ========================================================================== */

/* Universal Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  font-family: 'Vazirmatn', 'IRANSans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  direction: rtl;
  text-align: right;
  margin: 0;
  padding: 0;
  background-color: #f8fafc;
  color: #334155;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Layout Containers */
.container, .max-w-7xl {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .container, .max-w-7xl {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .container, .max-w-7xl {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Grid System */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Flexbox Utilities */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }

/* Gap Utilities */
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Spacing Margins & Paddings */
.mx-auto { margin-left: auto; margin-right: auto; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-auto { margin-top: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-3\.5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

/* Colors */
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f8fafc; }
.bg-gray-100 { background-color: #f1f5f9; }
.text-white { color: #ffffff; }
.text-gray-400 { color: #94a3b8; }
.text-gray-500 { color: #64748b; }
.text-gray-600 { color: #475569; }
.text-gray-700 { color: #334155; }
.text-gray-800 { color: #1e293b; }
.text-gray-900 { color: #0f172a; }

.text-\[\#2c3e50\] { color: #2c3e50; }
.text-\[\#3498db\] { color: #3498db; }
.text-\[\#2ecc71\] { color: #2ecc71; }
.text-\[\#27ae60\] { color: #27ae60; }
.bg-\[\#2c3e50\] { background-color: #2c3e50; }
.bg-\[\#3498db\] { background-color: #3498db; }
.bg-\[\#2ecc71\] { background-color: #2ecc71; }
.bg-\[\#3498db\]\/10 { background-color: rgba(52, 152, 219, 0.1); }
.bg-\[\#2ecc71\]\/10 { background-color: rgba(46, 204, 113, 0.1); }

/* Typography */
.text-\[10px\] { font-size: 10px; line-height: 14px; }
.text-\[11px\] { font-size: 11px; line-height: 16px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.dir-ltr { direction: ltr; }

/* Borders & Rounded */
.border { border: 1px solid #e2e8f0; }
.border-2 { border: 2px solid #e2e8f0; }
.border-b { border-bottom: 1px solid #e2e8f0; }
.border-t { border-top: 1px solid #e2e8f0; }
.border-r-4 { border-right: 4px solid #3498db; }
.border-gray-100 { border-color: #f1f5f9; }
.border-gray-200 { border-color: #e2e8f0; }
.border-\[\#2ecc71\] { border-color: #2ecc71; }
.border-\[\#3498db\] { border-color: #3498db; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* Shadows */
.shadow-2xs { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.shadow-xs { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }

/* Dividers */
.divide-y > * + * {
  border-top: 1px solid #f1f5f9;
}

/* Details & FAQ Accordion */
details.faq-item, details.group {
  overflow: hidden;
  transition: all 0.2s ease-in-out;
}
details.faq-item summary::-webkit-details-marker,
details.group summary::-webkit-details-marker {
  display: none;
}
details.faq-item[open] summary span:last-child,
details.group[open] summary span:last-child {
  transform: rotate(180deg);
}

/* Banner 1260px container */
.max-w-\[1260px\] {
  max-width: 1260px;
}

/* =============================================================
   HostB Cloud Footer Styles - Explicit RTL & Mobile Responsive
============================================================= */
.hostb-site-footer {
  background-color: #2c3e50 !important;
  color: #ecf0f1 !important;
  border-top: 4px solid #3498db !important;
  direction: rtl !important;
  text-align: right !important;
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, Tahoma, sans-serif !important;
  position: relative;
  z-index: 10;
  margin-top: 40px;
  box-sizing: border-box;
}

.hostb-site-footer * {
  box-sizing: border-box;
  text-align: right;
  direction: rtl;
}

.hostb-site-footer [dir="ltr"] {
  direction: ltr !important;
  text-align: left !important;
  display: inline-block;
}

.hostb-footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 20px 32px;
}

.hostb-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr 1.4fr;
  gap: 32px;
  align-items: flex-start;
}

.hostb-footer-brand {
  padding-left: 12px;
}

.hostb-footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.hostb-footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.hostb-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: #3498db;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hostb-logo-text {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.hostb-logo-accent {
  color: #3498db;
}

.hostb-logo-badge {
  font-size: 11px;
  font-weight: 800;
  background-color: #e74c3c;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 5px;
  margin-right: 4px;
  font-family: monospace;
}

.hostb-footer-desc {
  font-size: 13px;
  line-height: 1.8;
  color: #cbd5e1 !important;
  margin-bottom: 20px;
  text-align: justify;
}

.hostb-footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hostb-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #cbd5e1;
}

.hostb-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.hostb-icon-green { color: #2ecc71 !important; }
.hostb-icon-blue { color: #3498db !important; }
.hostb-icon-red { color: #e74c3c !important; }

.hostb-contact-link {
  color: #ecf0f1;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

.hostb-contact-link:hover {
  color: #3498db;
  text-decoration: underline;
}

.hostb-footer-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(52, 152, 219, 0.4);
  display: inline-block;
}

.hostb-footer-nav {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hostb-footer-nav li {
  margin: 0;
  padding: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #cbd5e1;
}

.hostb-footer-nav li a {
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-block;
}

.hostb-footer-nav li a:hover {
  color: #3498db;
  transform: translateX(-3px);
}

.hostb-check-bullet {
  color: #2ecc71;
  font-weight: bold;
  margin-left: 4px;
}

.hostb-trust-badges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.hostb-trust-badge-card {
  background-color: #34495e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hostb-trust-badge-card * {
  text-align: center !important;
}

.hostb-trust-icon {
  margin-bottom: 4px;
}

.hostb-trust-title {
  font-size: 10.5px;
  font-weight: 700;
  color: #ffffff;
}

.hostb-trust-sub {
  font-size: 9px;
  color: #94a3b8;
  margin-top: 1px;
}

.hostb-shaparak-card {
  background: rgba(26, 188, 156, 0.12);
  border: 1px solid rgba(26, 188, 156, 0.3);
  border-radius: 10px;
  padding: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #1abc9c;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}

.hostb-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #2ecc71;
  box-shadow: 0 0 8px #2ecc71;
  flex-shrink: 0;
}

.hostb-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background-color: #243342;
  padding: 16px 0;
}

.hostb-bottom-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 0;
  padding-bottom: 0;
}

.hostb-copyright-text {
  font-size: 12px;
  color: #94a3b8;
}

.hostb-white-text {
  color: #ffffff;
  font-weight: 700;
}

.hostb-back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #34495e;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hostb-back-to-top-btn:hover {
  background-color: #3498db;
  color: #ffffff;
}

@media (max-width: 1024px) {
  .hostb-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 24px;
  }
  .hostb-footer-trust-col {
    grid-column: span 3;
  }
}

@media (max-width: 768px) {
  .hostb-footer-container {
    padding: 32px 16px 24px;
  }
  .hostb-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: right !important;
  }
  .hostb-footer-brand {
    padding-left: 0;
  }
  .hostb-footer-desc {
    text-align: right;
  }
  .hostb-trust-badges-grid {
    max-width: 280px;
  }
  .hostb-bottom-flex {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .hostb-copyright-text {
    text-align: center;
  }
  .hostb-back-to-top-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Centered Pricing Grid & Cards (Always centered regardless of plan count) */
.pricing-grid-centered {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 24px !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.pricing-card {
  width: 100% !important;
  max-width: 360px !important;
  flex: 0 1 340px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 28px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: relative !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
  text-align: right !important;
}

.pricing-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 14px 28px -10px rgba(0,0,0,0.12) !important;
  border-color: #3498db !important;
}

.pricing-card.popular {
  border: 2px solid #2ecc71 !important;
  box-shadow: 0 10px 24px -6px rgba(46, 204, 113, 0.25) !important;
}

.pricing-card h3 {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #2c3e50 !important;
  margin: 0 0 12px 0 !important;
}

.pricing-card .price-box {
  font-size: 14px !important;
  color: #64748b !important;
  margin-bottom: 20px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.pricing-card .price-box strong {
  font-size: 24px !important;
  font-weight: 900 !important;
  color: #2ecc71 !important;
}

.pricing-card .hardware-specs-box {
  font-size: 13px !important;
  color: #475569 !important;
  line-height: 2 !important;
  margin-bottom: 20px !important;
}

.pricing-card .badge-pop {
  position: absolute !important;
  top: -12px !important;
  left: 20px !important;
  background-color: #2ecc71 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 4px 12px !important;
  border-radius: 9999px !important;
  box-shadow: 0 2px 6px rgba(46, 204, 113, 0.4) !important;
}

/* ==========================================================================
   Floating Support Widget & Pulse Animations
   ========================================================================== */
@keyframes hostbPingRing {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.08);
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    opacity: 0;
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    opacity: 0;
  }
}

@keyframes hostbBlinkDot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.25;
    transform: scale(0.75);
  }
}

.hostb-pulse-ring {
  position: absolute !important;
  inset: -4px !important;
  border-radius: 9999px !important;
  background-color: #25D366 !important;
  animation: hostbPingRing 2s cubic-bezier(0, 0, 0.2, 1) infinite !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.hostb-beacon-dot {
  display: inline-block !important;
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  background-color: #ffffff !important;
  animation: hostbBlinkDot 1.4s ease-in-out infinite !important;
}

.hostb-online-dot {
  display: inline-block !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background-color: #2ecc71 !important;
  animation: hostbBlinkDot 1.6s ease-in-out infinite !important;
}

/* Floating Popover Container */
#hostbSupportWidget {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

#hostbSupportPopover {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hostb-channel-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  border: 1px solid #f1f5f9 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  background-color: #ffffff !important;
}

.hostb-channel-item:hover {
  transform: translateX(-4px) !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.hostb-channel-item.telegram:hover {
  background-color: rgba(34, 158, 217, 0.06) !important;
  border-color: rgba(34, 158, 217, 0.3) !important;
}

.hostb-channel-item.whatsapp:hover {
  background-color: rgba(37, 211, 102, 0.06) !important;
  border-color: rgba(37, 211, 102, 0.3) !important;
}

.hostb-channel-item.bale:hover {
  background-color: rgba(0, 184, 148, 0.06) !important;
  border-color: rgba(0, 184, 148, 0.3) !important;
}

.hostb-channel-item.phone:hover {
  background-color: rgba(52, 152, 219, 0.06) !important;
  border-color: rgba(52, 152, 219, 0.3) !important;
}

/* ==========================================================================
   Infinite Continuous Marquee for Clients & Partners
   ========================================================================== */
.clients-marquee-container {
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  direction: ltr !important; /* ensures consistent transform math across browsers */
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.clients-marquee-track {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  width: max-content !important;
  animation: hostbMarqueeScroll 38s linear infinite !important;
  will-change: transform !important;
}

.clients-marquee-container:hover .clients-marquee-track {
  animation-play-state: paused !important;
}

@keyframes hostbMarqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Telemetry Waveform Smooth Transition */
#liveWaveformArea,
#liveWaveformStroke {
  transition: d 0.8s ease-in-out !important;
}
