/* ==========================================================================
   ERPNext Enterprise Portal & Design System
   Brand: ای‌آرپی‌نکست (ERPNext)
   Parent Company: پردازش راهکارهای هوشمند کسب و کار ابرک
   Domain: zdr.ir | Typography: Vazirmatn (Local Server Files - 0% External CDN)
   Palette: Redesign 1408 — Navy #032C72 & Cyan #6EE7FF (rd-*)
   ========================================================================== */

/* 1. Universal Typography: Vazirmatn (Local Offline Fonts - 0% External CDN) */
@import url("/assets/abrak_erpnext_fa/fonts/vazirmatn/vazirmatn.css");

/* 2. Design Tokens */
:root {
  /* ریدیزاین ۱۴۰۸: توکن‌های rd (هم‌زبان با rd-base.css ابرک) */
  --rd-navy: #032c72;
  --rd-navy-soft: #e8eefb;
  --rd-cyan: #6ee7ff;
  --rd-cyan-ink: #0b5f72;
  --rd-amber: #f4b26b;
  --rd-amber-ink: #7a4a0a;
  --rd-ink: #111827;
  --rd-muted: #475467;
  --rd-bg: #ffffff;
  --rd-tint: #f5f7fb;
  --rd-border: #e4e8f0;
  --rd-primary: #1d4ed8;
  --rd-primary-dark: #1e40af;
  --rd-radius: 18px;
  --rd-radius-sm: 12px;
  --rd-shadow: 0 1px 2px rgba(3, 44, 114, .06), 0 12px 32px -16px rgba(3, 44, 114, .18);
  --rd-shadow-hover: 0 2px 4px rgba(3, 44, 114, .08), 0 24px 48px -20px rgba(3, 44, 114, .28);
  --rd-gap: clamp(1rem, 2.5vw, 1.75rem);
  --rd-section: clamp(3rem, 7vw, 5.5rem);
  --rd-ease: cubic-bezier(.2, .7, .2, 1);

  --c-brand: #032c72;            /* سرمه‌ای برند */
  --c-brand-hover: #021f52;
  --c-primary: #1d4ed8;          /* آبی کنش */
  --c-primary-hover: #1e40af;
  --c-primary-light: #e8eefb;
  --c-primary-border: #d6e2f7;
  --c-accent: #0ea5c6;           /* فیروزه‌ای تأکید */
  --c-accent-glow: rgba(110, 231, 255, 0.25);
  --c-secondary: #0284c7;        /* Sky 600 */
  --c-secondary-light: #f0f9ff;
  --c-gold: #7a4a0a;             /* Amber 600 */
  --c-gold-light: #f5f7fb;
  --c-success: #059669;
  --c-warning: #a15c07;
  --c-danger: #e11d48;

  --c-bg: #ffffff;
  --c-bg-alt: #f8fafc;
  --c-bg-subtle: #f1f5f9;
  --c-bg-card: #ffffff;
  --c-border: #e2e8f0;
  --c-border-subtle: #f1f5f9;
  --c-border-focus: #1d4ed8;

  --c-text: #111827;             /* Crisp Titanium Navy */
  --c-text-muted: #475569;
  --c-text-subtle: #64748b;

  /* Titanium Dark Space */
  --c-dark: #021d4d;             /* Deep Titanium Slate */
  --c-dark-surface: #032c72;     /* Dark Glass Surface */
  --c-dark-card: #0a3a8a;
  --c-dark-border: #1b4a96;
  --c-dark-text: #f8fafc;
  --c-dark-muted: #94a3b8;

  --shadow-sm: 0 1px 2px 0 rgba(3, 44, 114, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(3, 44, 114, 0.07), 0 2px 4px -2px rgba(3, 44, 114, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(3, 44, 114, 0.08), 0 4px 6px -4px rgba(3, 44, 114, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(3, 44, 114, 0.1), 0 8px 10px -6px rgba(3, 44, 114, 0.04);
  --shadow-emerald: 0 10px 25px -5px rgba(29, 78, 216, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  /* Universal Enterprise Typography Family */
  --font-family: "Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "IRANSans", Tahoma, sans-serif;
  --max-w: clamp(1200px, 90vw, 1540px);
  --transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3. Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  direction: rtl;
  text-align: right;
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  font-size: 16px;
  font-feature-settings: "ss01" 1, "cv01" 1;
  font-variant-numeric: tabular-nums;
  scrollbar-gutter: stable;
}

/* Universal Button & Form Typography Inheritance */
button, input, select, textarea, optgroup, .btn, .cat-filter-btn {
  font-family: var(--font-family) !important;
}

/* GRILL-UIUX-21 Isolation: Prevent ss01 altering technical glyphs/numbers */
code, pre, kbd, samp, .ltr-strict {
  font-feature-settings: normal !important;
  font-variant-numeric: normal !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  direction: ltr;
  text-align: left;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--c-bg);
  color: var(--c-text);
  position: relative;
  overflow-x: hidden;
  overflow-x: clip;
}

/* Background Engineering Mesh */
.bg-mesh {
  max-width: 100%;
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 900px;
  background: none;
  pointer-events: none;
  z-index: 0;
}

.bg-grid-pattern {
  max-width: 100%;
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 800px;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(3, 44, 114, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(3, 44, 114, 0.04) 1px, transparent 1px);
  mask-image: linear-gradient(to bottom, black 30%, transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 90%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
  position: relative;
  z-index: 1;
}

/* 4. Typography (GRILL-UIUX-TYPO Certified: Zero Negative Tracking, Balanced Lines) */
h1, h2, h3, h4, h5, h6 {
  color: var(--c-text);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: normal !important;
  text-wrap: balance;
}

h1 { font-size: clamp(1.85rem, 1.2rem + 2.8vw, 3.15rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 2.5vw + 0.8rem, 2.4rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p, .hero-lead, .faq-body {
  color: var(--c-text-muted);
  font-size: 1rem;
  text-wrap: pretty;
  line-height: 1.82;
}

/* WCAG 2.2 AA Focus Visible Ring */
:focus-visible {
  outline: 2px solid #1d4ed8 !important;
  outline-offset: 3px !important;
  border-radius: 4px;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--c-brand-hover);
}

.text-gradient {
  background: none;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* 5. Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--rd-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
}
.btn-primary:hover {
  background: var(--rd-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.45);
}

.btn-secondary {
  background: #ffffff;
  color: var(--c-brand) !important;
  border-color: var(--c-border);
}
.btn-secondary:hover {
  background: var(--c-bg-alt);
  border-color: var(--c-primary);
  transform: translateY(-2px);
}

.btn-outline-emerald {
  background: transparent;
  color: var(--c-brand) !important;
  border-color: var(--c-primary);
}
.btn-outline-emerald:hover {
  background: var(--c-primary-light);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(29, 78, 216, 0.08);
  color: var(--c-brand);
  border: 1px solid rgba(29, 78, 216, 0.2);
  white-space: nowrap;
}

.status-dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.25);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* ==========================================================================
   6. Full-Width Enterprise Header with Mega-Menu (Future-Proof Architecture)
   ========================================================================== */
.site-header-enterprise {
  max-width: 100%;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px -5px rgba(3, 44, 114, 0.05);
}
.site-header-enterprise .container {
  max-width: 1440px;
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(1rem, 2.5vw, 2rem);
}

.top-announcement-bar {
  max-width: 100%;
  box-sizing: border-box;
  background: var(--rd-navy);
  color: #ffffff;
  padding-block: 0.45rem;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(110, 231, 255, 0.2);
}
.top-announcement-bar.enterprise-status-bar {
  background: var(--rd-navy);
  color: #ffffff;
  padding-block: 0.5rem;
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(110, 231, 255, 0.35);
  box-shadow: 0 2px 10px rgba(3, 44, 114, 0.3);
  position: relative;
  z-index: 1001;
}
.status-live-badge {
  background: rgba(29, 78, 216, 0.25);
  color: #6ee7ff;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(110, 231, 255, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
}
.status-dot-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #6ee7ff;
  box-shadow: 0 0 8px #6ee7ff;
  animation: pulseDot 2s infinite ease-in-out;
}
.status-alert-content {
  display: flex;
  align-items: center;
  gap: 0.5rem 0.75rem;
  flex: 1 1 auto;
  min-width: 0;
}
.status-alert-text {
  font-weight: 500;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #e2e8f0;
  white-space: normal;
}
.status-alert-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.status-track-link {
  color: #ffffff !important;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.7rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  white-space: nowrap;
  transition: all 0.2s ease;
}
.status-track-link:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
}
.status-parent-link {
  background: rgba(3, 44, 114, 0.6);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.76rem;
  padding: 0.28rem 0.75rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none !important;
  border: 1px solid rgba(110, 231, 255, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.status-parent-link:hover {
  background: #032c72;
  color: #ffffff !important;
  transform: translateY(-1px);
}
.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  flex-wrap: nowrap;
}
.announcement-link {
  color: #6ee7ff !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.announcement-link:hover {
  text-decoration: underline;
}

.main-navbar {
  min-height: 74px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.5rem, 1.2vw, 1.5rem);
  padding-block: 0.5rem;
  min-width: 0;
  max-width: 100%;
}

.nav-brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand-title {
  display: flex;
  flex-direction: column;
}
.nav-brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.15;
  letter-spacing: normal !important;
}
.nav-brand-name span {
  color: var(--c-primary);
}
.nav-brand-sub {
  font-size: 0.72rem;
  color: var(--c-text-subtle);
  font-weight: 600;
}

/* Nav Menu & Mega Dropdowns */
.nav-menu-enterprise {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.nav-item-dropdown {
  position: relative;
}

.nav-link-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.52rem 0.82rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.nav-link-item:hover,
.nav-item-dropdown:hover > .nav-link-item {
  color: var(--c-brand);
  background: rgba(29, 78, 216, 0.06);
}

.chevron-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}
.nav-item-dropdown:hover .chevron-icon {
  transform: rotate(180deg);
}

/* Mega Dropdown Box */
.mega-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -10px rgba(3, 44, 114, 0.12);
  padding: 1.5rem;
  min-width: min(480px, calc(100vw - 2rem));
  max-width: min(100%, calc(100vw - 2rem));
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1000;
}

/* Hover bridge: spans the vertical gap between nav-item and menu to guarantee continuous hover */
.mega-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
}

.nav-item-dropdown:hover .mega-dropdown-menu,
.nav-item-dropdown:focus-within .mega-dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
  pointer-events: auto;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.mega-menu-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.65rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
}
.mega-menu-item:hover {
  background: var(--c-primary-light);
}

.mega-item-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: rgba(29, 78, 216, 0.1);
  color: var(--c-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mega-item-text {
  display: flex;
  flex-direction: column;
}
.mega-item-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--c-text);
  line-height: 1.3;
}
.mega-item-desc {
  font-size: 0.76rem;
  color: var(--c-text-subtle);
  line-height: 1.4;
  margin-top: 0.2rem;
}

.nav-actions-enterprise {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav-actions-enterprise .btn-primary,
.nav-actions-enterprise .btn-secondary {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.nav-actions-enterprise .nav-btn-login {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 0.95rem;
  background: #ffffff;
  color: var(--c-brand) !important;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
.nav-actions-enterprise .nav-btn-login:hover {
  background: var(--c-primary-light);
  border-color: var(--c-primary);
  transform: translateY(-1px);
}
.nav-actions-enterprise .nav-btn-demo {
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(3, 44, 114, 0.25);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--c-text);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.mobile-menu-btn:hover {
  background: var(--c-bg-alt);
}

/* WCAG 2.2 AA Touch Targets >= 44x44px */
.mobile-link,
.sim-tab-btn,
#mobileDrawerCloseBtn {
  min-height: 44px;
}
#mobileDrawerCloseBtn {
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fundamental Responsive Architecture: Guaranteed Zero-Overflow on ALL Screens */

/* 1. Screens under 1280px: Desktop text menu cleanly collapses into hamburger */
@media (max-width: 1280px) {
  .nav-menu-enterprise {
    display: none !important;
  }
  .mobile-menu-btn {
    display: inline-flex !important;
  }
}

/* 1.1 Compact Desktop & Laptops (1281px - 1440px): Tighten padding and typography for zero overflow */
@media (min-width: 1281px) and (max-width: 1440px) {
  .main-navbar {
    gap: 0.5rem;
    padding-block: 0.35rem;
  }
  .nav-brand-sub {
    display: none;
  }
  .nav-brand-name {
    font-size: 1.18rem;
  }
  .nav-menu-enterprise {
    gap: 0.15rem;
  }
  .nav-link-item {
    padding: 0.45rem 0.55rem;
    font-size: 0.84rem;
    gap: 0.25rem;
  }
  .nav-actions-enterprise {
    gap: 0.45rem;
  }
  .user-display-name {
    max-width: 90px;
  }
  .nav-btn-user {
    padding: 0.42rem 0.75rem;
    font-size: 0.82rem;
    gap: 0.35rem;
  }
  .nav-btn-app {
    padding: 0.42rem 0.8rem;
    font-size: 0.82rem;
    gap: 0.3rem;
  }
  .nav-actions-enterprise .nav-btn-login {
    padding: 0.42rem 0.75rem;
    font-size: 0.82rem;
  }
  .nav-actions-enterprise .nav-btn-demo {
    padding: 0.45rem 0.95rem;
    font-size: 0.82rem;
  }
}

@media (pointer: coarse) {
  a.btn,button{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center}
  .navbar a,.site-footer a,.site-footer-titanium a,.lang-switch a{min-height:44px;display:inline-flex;align-items:center}
}

/* 2. Tablets / Compact Screens under 768px: Hide login button and user name dropdown to reserve full breathing room */
@media (max-width: 768px) {
  .nav-actions-enterprise .nav-btn-login {
    display: none !important;
  }
  .nav-actions-enterprise .nav-user-dropdown {
    display: none !important;
  }
  .nav-btn-app {
    padding: 0.42rem 0.75rem;
    font-size: 0.82rem;
  }
  .top-announcement-bar.enterprise-status-bar {
    padding-block: 0.5rem;
  }
  .announcement-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .status-alert-content {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
  }
  .status-alert-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

/* 3. Small Mobile & 360px Viewports (GRILL-UIUX-RESP Certified) */
@media (max-width: 640px) {
  .hero-metrics-strip {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .hero-metric-item {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    padding-block: 0.5rem;
    border-bottom: 1px dashed var(--c-border);
  }
  .hero-metric-item:last-child {
    border-bottom: none;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .sim-mobile-scroll-hint {
    display: flex !important;
  }
}

/* 4. Small Mobile Phones under 480px: Compact brand & buttons, hide secondary parent link */
@media (max-width: 480px) {
  .main-navbar {
    min-height: 62px;
    gap: 0.5rem;
  }
  .nav-brand-sub {
    display: none !important;
  }
  .nav-brand-name {
    font-size: 1.15rem;
  }
  .nav-actions-enterprise .btn-primary {
    font-size: 0.78rem;
    padding: 0.42rem 0.75rem;
  }
  .nav-actions-enterprise {
    gap: 0.35rem;
  }
  .status-parent-link {
    display: none !important; /* Strict Grill-Me fix: 360px zero-overflow protection */
  }
  .status-track-link {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 960px) {
  .announcement-inner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .status-alert-content {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}

/* 7. Mobile Navigation Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  display: none;
  overflow: hidden; /* کشوی بیرون‌صفحه (translateX) عرض سند را در دسکتاپ زیاد نکند */
  background: rgba(3, 44, 114, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-drawer-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer-container {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 320px);
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
  background: #ffffff;
  padding: 2rem 1.5rem;
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
}
.mobile-drawer-container > * {
  min-width: 0;
  max-width: 100%;
}
.mobile-drawer-overlay.active .mobile-drawer-container {
  display: flex;
  transform: translateX(0);
}

.mobile-menu-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-text-subtle);
  text-transform: uppercase;
  margin-top: 0.75rem;
  padding-right: 0.5rem;
}
.mobile-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--c-text);
  font-size: 0.92rem;
}
.mobile-link:hover {
  background: var(--c-primary-light);
  color: var(--c-brand);
}

/* ==========================================================================
   8. Hero Section & Interactive Simulator
   ========================================================================== */
.hero-section {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}
@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.95fr;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--c-text-muted);
  line-height: 1.85;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--c-border);
}
.hero-metric-item {
  display: flex;
  flex-direction: column;
}
.hero-metric-num {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--c-brand);
  line-height: 1;
}
.hero-metric-lbl {
  font-size: 0.82rem;
  color: var(--c-text-subtle);
  margin-top: 0.35rem;
}

/* Interactive Simulator Container */
.simulator-wrapper {
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), var(--shadow-emerald);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.simulator-topbar {
  background: var(--c-dark-surface);
  color: var(--c-dark-text);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--c-dark-border);
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.w-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.w-dot.red { background: #f43f5e; }
.w-dot.amber { background: #a15c07; }
.w-dot.green { background: #0ea5c6; }

.simulator-title {
  font-size: 0.82rem;
  color: var(--c-dark-muted);
  font-family: monospace;
  direction: ltr;
}

.simulator-tabs {
  display: flex;
  background: var(--c-bg-subtle);
  border-bottom: 1px solid var(--c-border);
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Hide scrollbar for clean look */
  -ms-overflow-style: none;
}
.simulator-tabs::-webkit-scrollbar {
  display: none;
}

.sim-tab-btn,
button.sim-tab-btn {
  flex: 0 0 auto;
  padding: 0.85rem 1rem;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  white-space: nowrap;
  transition: var(--transition);
}
.sim-tab-btn:hover {
  color: var(--c-brand);
  background: rgba(29, 78, 216, 0.04);
}
.sim-tab-btn.active {
  color: var(--c-brand);
  background: #ffffff;
  border-bottom-color: var(--c-brand);
}

.simulator-body {
  padding: 1.5rem;
  min-height: 280px;
}

.sim-panel {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sim-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.sim-invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed var(--c-border);
}
.sim-badge-modyan {
  background: #e8eefb;
  color: #0b5f72;
  border: 1px solid #d6e2f7;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

/* GRILL-UIUX-21 Certified Touch-Scroll Viewport */
.sim-scroll-viewport {
  width: 100%;
  overflow-x: auto;
  touch-action: pan-y; /* Strict Grill-Me fix: prevents mobile vertical scroll trap */
  -webkit-overflow-scrolling: touch;
  position: relative;
  border-radius: var(--radius-md);
}
.sim-scroll-viewport::-webkit-scrollbar {
  height: 6px;
}
.sim-scroll-viewport::-webkit-scrollbar-thumb {
  background: var(--c-primary);
  border-radius: 9999px;
}
.sim-mobile-scroll-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--c-primary);
  background: var(--c-primary-light);
  padding: 0.35rem;
  border-radius: 6px;
  margin-bottom: 0.65rem;
  border: 1px dashed rgba(29, 78, 216, 0.3);
}

.sim-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.sim-table th {
  background: var(--c-bg-alt);
  padding: 0.6rem 0.75rem;
  font-weight: 600;
  color: var(--c-text-subtle);
  text-align: right;
  border-bottom: 1px solid var(--c-border);
}
.sim-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--c-border-subtle);
  color: var(--c-text);
}

.sim-summary-box {
  background: var(--c-primary-light);
  border: 1px solid var(--c-primary-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sim-summary-total {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--c-brand);
}

/* ==========================================================================
   9. Bento Grid for Modules
   ========================================================================== */
.section {
  padding-block: 5rem;
  position: relative;
}
.section-alt {
  background: var(--c-bg-alt);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento-card.span-2 {
    grid-column: span 2;
  }
}

.bento-card {
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-primary);
  box-shadow: var(--shadow-lg), var(--shadow-emerald);
}

.bento-card-top {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bento-icon-box {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-lg);
  background: var(--rd-navy-soft);
  color: var(--c-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 1px solid rgba(29, 78, 216, 0.2);
}

.bento-card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.bento-card-content p {
  font-size: 0.94rem;
  line-height: 1.7;
}

.bento-widget {
  background: var(--c-bg-subtle);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.bento-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.bento-progress-bar {
  height: 8px;
  background: var(--c-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.bento-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--rd-primary);
}

/* ==========================================================================
   10. Interactive TCO / ROI Savings Calculator
   ========================================================================== */
.calculator-card {
  background: #ffffff;
  border: 1px solid var(--c-dark-border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  color: #ffffff;
  box-shadow: var(--shadow-xl);
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 992px) {
  .calculator-card {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.calc-sliders {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.slider-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--c-dark-text);
}
.slider-val-badge {
  background: rgba(29, 78, 216, 0.25);
  border: 1px solid #1d4ed8;
  color: #6ee7ff;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
}

.custom-range {
  width: 100%;
  height: 8px;
  background: #1b4a96;
  border-radius: var(--radius-full);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0ea5c6;
  box-shadow: 0 0 10px rgba(110, 231, 255, 0.8);
  cursor: pointer;
}

.calc-result-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: center;
}
.calc-savings-number {
  font-size: clamp(1.5rem, 8vw, 2.5rem);
  max-width: 100%;
  overflow-wrap: anywhere;
  font-weight: 800;
  color: #0ea5c6;
  text-shadow: 0 0 20px rgba(110, 231, 255, 0.4);
  line-height: 1.1;
}

/* ==========================================================================
   11. High-Contrast CTA Section (Fixed Monochromatic Blend with Footer)
   ========================================================================== */
.cta-luminous-section {
  padding-block: 5.5rem;
  background: var(--rd-tint);
  position: relative;
  border-top: 1px solid var(--c-border);
  overflow: hidden;
}

.cta-luminous-card {
  background: var(--rd-navy);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(3, 44, 114, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}
.cta-luminous-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: none;
  pointer-events: none;
}

.cta-card-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}

/* ==========================================================================
   12. Titanium Slate Footer with Authoritative Backlinks
   ========================================================================== */
.site-footer-titanium {
  background-color: var(--c-dark);
  color: var(--c-dark-muted);
  padding-top: 5rem;
  border-top: 2px solid rgba(29, 78, 216, 0.3); /* Strong glowing top divider */
  font-size: 0.92rem;
  position: relative;
  z-index: 10;
}

.footer-grid-titanium {
  display: grid;
  grid-template-columns: 2.2fr repeat(3, 1fr);
  gap: 3.5rem;
  padding-bottom: 4rem;
}
@media (max-width: 991px) {
  .footer-grid-titanium {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}
@media (max-width: 576px) {
  .footer-grid-titanium {
    grid-template-columns: 1fr;
  }
}

.footer-brand-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.footer-brand-name {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-parent-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-backlink-abrak {
  color: #38bdf8 !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 1px dashed rgba(56, 189, 248, 0.4);
}
.footer-backlink-abrak:hover {
  color: #7dd3fc !important;
  border-bottom-style: solid;
}

.footer-col-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer-ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-ul a {
  color: var(--c-dark-muted);
  transition: var(--transition);
}
.footer-ul a:hover {
  color: #ffffff;
  padding-right: 4px;
}

.footer-bottom-bar {
  border-top: 1px solid var(--c-dark-border);
  padding-block: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   13. Tables, FAQ and Shared Components
   ========================================================================== */
.table-responsive, .comparison-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  background: #ffffff;
  width: 100%;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  min-width: 680px;
}
.comparison-table th, .comparison-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--c-border);
}
.comparison-table th {
  background: var(--c-bg-alt);
  font-weight: 700;
  color: var(--c-text);
  font-size: 0.95rem;
}
.comparison-table th.highlight, .comparison-table td.highlight {
  background: var(--c-primary-light);
  color: var(--c-brand);
  font-weight: 700;
}

.faq-container {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-box {
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.faq-box[open] {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-md);
}
.faq-toggle {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-toggle::-webkit-details-marker { display: none; }
.faq-toggle::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--c-primary);
}
.faq-box[open] .faq-toggle::after {
  content: "−";
}
.faq-body {
  padding: 0 1.5rem 1.25rem;
  color: var(--c-text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Feature Cards on Detail Pages */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}
.feature-card {
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-primary);
  box-shadow: var(--shadow-lg), var(--shadow-emerald);
}
.feature-icon-svg {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-md);
  background: var(--rd-navy-soft);
  color: var(--c-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(29, 78, 216, 0.25);
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.15);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2rem;
  align-items: stretch;
}
.pricing-card {
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  transition: var(--transition);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-emerald);
}
.pricing-card.featured {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-xl), var(--shadow-emerald);
  transform: scale(1.02);
}
.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rd-primary);
  color: #ffffff;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.3);
}
.price-box {
  margin-block: 0.5rem;
}
.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--c-brand);
}
.price-unit {
  font-size: 0.9rem;
  color: var(--c-text-muted);
}

/* ==========================================================================
   14. Forms and Contact Page Layout
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1.35fr 0.9fr;
    align-items: start;
  }
}

.form-card {
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.form-group {
  margin-bottom: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 0.25rem;
}

.form-control {
  width: 100%;
  display: block;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--c-text);
  background-color: #ffffff;
  background-clip: padding-box;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: var(--transition);
  box-sizing: border-box;
}

.form-control:focus {
  color: var(--c-text);
  background-color: #ffffff;
  border-color: var(--c-primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.2);
}

.form-control::placeholder {
  color: var(--c-text-muted);
  opacity: 0.7;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-left: 2.5rem;
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* ==========================================================================
   User Navigation & Smart Authentication State
   ========================================================================== */
.nav-user-dropdown {
  position: relative;
  display: inline-block;
}

.nav-btn-user {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  background: var(--c-primary-light);
  color: var(--c-brand) !important;
  border: 1px solid var(--c-primary-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-base), 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.nav-btn-user:hover,
.nav-btn-user[aria-expanded="true"] {
  background: #ffffff;
  border-color: var(--c-primary);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.15);
}

.user-display-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-base), 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-weight: 600;
}

.user-dropdown-panel {
  position: absolute;
  top: 100%;
  margin-top: 6px;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.15);
  z-index: 1000;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s;
  pointer-events: none;
}

/* Hover bridge: spans the vertical gap between button and panel so hover is never lost */
.user-dropdown-panel::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
  background: transparent;
}

.nav-user-dropdown:hover .user-dropdown-panel,
.nav-user-dropdown:focus-within .user-dropdown-panel,
.user-dropdown-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.user-dropdown-header {
  padding: 0.75rem 0.85rem;
  background: var(--c-bg-alt);
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
}

.user-name-bold {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--c-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--c-primary);
  font-weight: 600;
  margin-top: 0.2rem;
}

.user-dropdown-divider {
  height: 1px;
  background: var(--c-border);
  margin: 0.35rem 0;
}

.user-dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  color: var(--c-text);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
}

.user-dropdown-link:hover {
  background: var(--c-primary-light);
  color: var(--c-primary);
}

.user-dropdown-link.text-danger:hover {
  background: #fff1f2;
  color: var(--c-danger);
}

.nav-btn-app {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(3, 44, 114, 0.25);
  white-space: nowrap;
}

/* ==========================================================================
   Footer Trust Badges & IranServer Accelerator Strip (e-Namad & Accelerator)
   ========================================================================== */
.footer-accelerator-section {
  padding-bottom: 2.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-trust-strip {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
}

.footer-trust-strip .abk-isrv {
  flex: 1 1 62%;
  min-width: 0;
  display: flex;
}

.footer-trust-strip .abk-isrv__card {
  width: 100%;
  height: 100%;
}

.footer-trust-strip .trust-card.trust-enamad {
  flex: 0 1 360px;
  min-width: 290px;
}

/* Trust Card Design (e-Namad Seal) matching Abrak theme */
.trust-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-decoration: none;
}

.trust-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(29, 78, 216, 0.2);
  border-color: rgba(29, 78, 216, 0.45);
}

.trust-enamad a {
  flex: 0 0 auto;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.trust-card:hover .trust-enamad a,
.trust-enamad a:hover {
  border-color: #1d4ed8;
  transform: scale(1.03);
}

.trust-enamad img {
  width: 60px;
  height: auto;
  max-height: 66px;
  display: block;
  object-fit: contain;
}

.trust-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  text-align: right;
}

.trust-copy strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.01em;
}

.trust-copy span {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.6;
}

/* Fallback badge when e-Namad server is slow or image fails */
.trust-enamad-fallback {
  width: 60px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8eefb;
  border-radius: 10px;
  border: 1px dashed rgba(29, 78, 216, 0.4);
}

.abk-isrv__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 1.5rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
}

.abk-isrv__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(38, 53, 217, 0.18);
  border-color: rgba(38, 53, 217, 0.4);
}

.abk-isrv__lead {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 auto;
}

.abk-isrv__glyph {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  flex-shrink: 0;
}

.abk-isrv__glyph svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.abk-isrv__text {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.abk-isrv__title {
  color: #1e293b;
  font-size: 0.95rem;
  font-weight: 500;
}

.abk-isrv__title b {
  color: #1e3a8a;
  font-weight: 700;
}

.abk-isrv__sub {
  color: #64748b;
  font-size: 0.85rem;
  position: relative;
  padding-right: 0.75rem;
}

.abk-isrv__sub::before {
  content: "•";
  position: absolute;
  right: 0;
  color: #94a3b8;
}

.abk-isrv__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.abk-isrv__logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 4px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.abk-isrv__logo {
  width: 96px;
  height: auto;
  display: block;
}

.abk-isrv__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.abk-isrv__card:hover .abk-isrv__cta {
  background: #2563eb;
  color: #ffffff;
}

@media (max-width: 960px) {
  .footer-trust-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .footer-trust-strip .abk-isrv {
    width: 100%;
    flex: 1 1 100%;
  }
  .footer-trust-strip .trust-card.trust-enamad {
    width: 100%;
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media (max-width: 860px) {
  .abk-isrv__card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem;
  }
  .abk-isrv__brand {
    width: 100%;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
  }
}

/* ==========================================================================
   Enterprise Layout Enhancements & Callout Standardization
   ========================================================================== */

/* 1. Global Dashboard Grid (Strict Grid Columns) */
.dashboard-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 1rem !important;
  margin-bottom: 1.5rem !important;
}
@media (min-width: 992px) {
  .dashboard-grid.metrics-4,
  .dashboard-grid.ttms-metrics-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}
@media (max-width: 991px) and (min-width: 576px) {
  .dashboard-grid.metrics-4,
  .dashboard-grid.ttms-metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 575px) {
  .dashboard-grid.metrics-4,
  .dashboard-grid.ttms-metrics-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 2. Enterprise Problem / Pain Callout Boxes (Replaces Harsh Yellow Amber) */
.module-pain-box,
.industry-challenge-box,
.addon-problem-box {
  background: #f8fafc !important;
  border: 1.5px solid var(--c-border) !important;
  border-right: 4px solid var(--c-primary) !important;
  border-radius: var(--radius-md) !important;
  padding: 1.15rem 1.4rem !important;
  color: #1e293b !important;
  line-height: 1.7 !important;
  box-shadow: var(--shadow-sm) !important;
}
.module-pain-box:hover,
.industry-challenge-box:hover,
.addon-problem-box:hover {
  border-color: #cbd5e1 !important;
  border-right-color: var(--c-brand) !important;
}

/* 3. Subdomain LTR Unified Input Group */
.subdomain-unified-group {
  direction: ltr !important;
  display: flex !important;
  align-items: stretch !important;
  border: 1.5px solid var(--c-border) !important;
  border-radius: 0.65rem !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-sm) !important;
}
.subdomain-unified-group input {
  border: none !important;
  direction: ltr !important;
  text-align: left !important;
  outline: none !important;
  background: transparent !important;
}



/* 4. Authenticated Session Banners */
.auth-session-banner {
  margin-bottom: 2rem;
  border: 2px solid #1d4ed8;
  background: var(--rd-navy-soft);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(29, 78, 216, 0.1);
}
.auth-session-banner-client {
  display: none;
}
.auth-session-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #d6e2f7;
  color: #032c72;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 0.75rem;
}
.auth-session-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #032c72;
  margin-bottom: 0.5rem;
}
.auth-session-user {
  direction: ltr;
  display: inline-block;
  font-family: monospace;
  background: #e2e8f0;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}
.auth-session-desc {
  color: var(--c-text);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 1.25rem;
}
.auth-session-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.auth-session-btn-primary {
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
}
.auth-session-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(29, 78, 216, 0.3);
  font-size: 0.85rem;
  color: var(--c-text-muted);
}

/* =====================================================================
   RD LAYER — ریدیزاین ۱۴۰۸ (سبک ایران‌سرور/ایرانیکارت)
   کارت سفید، سرمه‌ای عنوان‌ها، فیروزه‌ای تأکید؛ فقط خاصیت‌های منطقی.
   ===================================================================== */
html[dir="ltr"] { direction: ltr; text-align: left; }
.bg-mesh, .bg-grid-pattern { display: none; }

/* نوار معرفی ابرک (از main، به سبک rd) */
.abrak-k8s-strip { background: var(--rd-navy); color: #fff; padding-block: .5rem; text-align: center; font-size: .875rem; line-height: 1.7; max-width: 100%; box-sizing: border-box; }
.abrak-k8s-strip a { color: #fff; text-decoration: none; }
.abrak-k8s-strip a:hover, .abrak-k8s-strip a:focus-visible { text-decoration: underline; }

.text-gradient {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--rd-primary);
}

/* --- section shells --- */
.rd-section { padding-block: var(--rd-section); background: var(--rd-bg); }
.rd-section-tint { background: var(--rd-tint); border-block: 1px solid var(--rd-border); }
.rd-section-navy { background: var(--rd-navy); color: #e8eefb; }
.rd-section-navy h2, .rd-section-navy h3 { color: #fff; }
.rd-narrow { max-width: 860px; margin-inline: auto; }
.rd-center { text-align: center; }
.rd-head { max-width: 760px; margin: 0 auto clamp(1.75rem, 4vw, 2.75rem); text-align: center; }
.rd-head h2 { color: var(--rd-navy); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.15rem); line-height: 1.5; margin: .5rem 0 .75rem; }
.rd-head p { color: var(--rd-muted); line-height: 1.95; margin: 0; }
.rd-kicker {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .82rem; font-weight: 700; color: var(--rd-cyan-ink);
  background: #e6fbff; border: 1px solid #b8f1fc; border-radius: 999px;
  padding: .3rem .85rem;
}
.rd-kicker::before { content: ""; inline-size: 6px; block-size: 6px; border-radius: 50%; background: var(--rd-amber); }
.rd-lead { font-size: clamp(1rem, .95rem + .3vw, 1.12rem); color: var(--rd-muted); line-height: 2; }

/* --- grids (pinned) --- */
.rd-grid { display: grid !important; gap: var(--rd-gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.rd-grid-2 { display: grid !important; gap: var(--rd-gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.rd-grid-4 { display: grid !important; gap: var(--rd-gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.rd-split { display: grid !important; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 992px) { .rd-split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }

/* --- hero --- */
.rd-hero {
  padding-block: clamp(2.5rem, 6vw, 4.75rem) clamp(2.5rem, 6vw, 4.5rem);
  background: var(--rd-tint);
  border-block-end: 1px solid var(--rd-border);
}
.rd-hero h1 { color: var(--rd-navy); font-size: clamp(1.75rem, 1.15rem + 2.6vw, 2.9rem); line-height: 1.45; margin: .9rem 0 1rem; }
.rd-hero h1 em { font-style: normal; color: var(--rd-primary); }
.rd-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1.6rem 1.25rem; }
.rd-hero-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; margin: 0; list-style: none; color: var(--rd-muted); font-size: .9rem; }
.rd-hero-meta li::before { content: "✓"; color: var(--rd-cyan-ink); font-weight: 800; margin-inline-end: .4rem; }
.rd-hero-art { min-inline-size: 0; }

/* --- cards --- */
.rd-card {
  background: #fff; border: 1px solid var(--rd-border); border-radius: var(--rd-radius);
  padding: clamp(1.25rem, 2.5vw, 1.75rem); box-shadow: var(--rd-shadow);
  display: flex; flex-direction: column; gap: .7rem; min-inline-size: 0;
  transition: box-shadow .25s var(--rd-ease), border-color .25s var(--rd-ease), transform .25s var(--rd-ease);
}
.rd-card h3 { color: var(--rd-navy); font-size: 1.12rem; line-height: 1.6; margin: 0; }
.rd-card p { color: var(--rd-muted); line-height: 1.9; margin: 0; font-size: .94rem; }
.rd-card-link:hover { box-shadow: var(--rd-shadow-hover); border-color: #c7d5f0; transform: translateY(-3px); }
.rd-card-wide { grid-column: 1 / -1; }
/* ماژول‌ها: ۳ ستون در دسکتاپ، ۲ ستون در تبلت؛ کارت عریض میانی دو ستون می‌گیرد تا جای خالی نماند.
   انتخابگر دوگانه از .rd-grid در v5.css (auto-fit) بالاتر است و به ترتیب بارگذاری وابسته نیست. */
.rd-grid.rd-modules { grid-auto-flow: dense; gap: var(--rd-gap); }
@media (min-width: 576px) and (max-width: 991.98px) {
  .rd-grid.rd-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .rd-grid.rd-modules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rd-grid.rd-modules .rd-card-span-2 { grid-column: span 2; }
}
.rd-card-foot { margin-block-start: auto; padding-block-start: .6rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; font-size: .86rem; color: var(--rd-muted); }
.rd-more { color: var(--rd-primary); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; min-block-size: 44px; }
.rd-more:hover { text-decoration: underline; }
.rd-icon {
  inline-size: 48px; block-size: 48px; border-radius: 14px; flex: none;
  display: inline-grid; place-items: center;
  background: var(--rd-navy-soft); color: var(--rd-navy); font-size: 1.35rem;
}
.rd-icon svg { inline-size: 24px; block-size: 24px; }
.rd-card-top { display: flex; align-items: center; gap: .85rem; }
.rd-badge {
  display: inline-flex; align-items: center; gap: .3rem; inline-size: fit-content;
  font-size: .76rem; font-weight: 700; padding: .22rem .7rem; border-radius: 999px;
  background: var(--rd-navy-soft); color: var(--rd-navy); border: 1px solid #d6e2f7;
}
.rd-badge-cyan { background: #e6fbff; color: var(--rd-cyan-ink); border-color: #b8f1fc; }

/* --- buttons --- */
.rd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-block-size: 48px; padding: .7rem 1.4rem; border-radius: 12px;
  font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.rd-btn-primary { background: var(--rd-primary); color: #fff; box-shadow: 0 8px 20px -10px rgba(29, 78, 216, .7); }
.rd-btn-primary:hover { background: var(--rd-primary-dark); color: #fff; }
.rd-btn-ghost { background: #fff; color: var(--rd-navy); border-color: #c7d5f0; }
.rd-btn-ghost:hover { border-color: var(--rd-navy); color: var(--rd-navy); }
.rd-btn-light { background: #fff; color: var(--rd-navy); }
.rd-btn-light:hover { background: var(--rd-cyan); color: var(--rd-navy); }
.rd-btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.rd-btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.rd-btn-sm { min-block-size: 44px; padding: .5rem 1rem; font-size: .88rem; }
.rd-btn-block { inline-size: 100%; }

/* --- stats & trust --- */
.rd-stats { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.rd-stat { background: #fff; border: 1px solid var(--rd-border); border-radius: var(--rd-radius-sm); padding: .9rem 1rem; text-align: center; }
.rd-stat strong { display: block; font-size: 1.45rem; color: var(--rd-navy); line-height: 1.4; }
.rd-stat span { color: var(--rd-muted); font-size: .84rem; }
.rd-trust { background: #fff; border-block-end: 1px solid var(--rd-border); padding-block: 1.1rem; }
.rd-trust ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; margin: 0; padding: 0; list-style: none; color: var(--rd-ink); font-size: .9rem; font-weight: 600; }
.rd-trust li { display: inline-flex; align-items: center; gap: .45rem; }
.rd-trust li::before { content: ""; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--rd-cyan); box-shadow: 0 0 0 3px #e6fbff; }

/* --- steps --- */
.rd-steps { counter-reset: rdstep; list-style: none; margin: 0; padding: 0; display: grid !important; gap: var(--rd-gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
@media (min-width: 992px) {
  .rd-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.rd-steps li { counter-increment: rdstep; background: #fff; border: 1px solid var(--rd-border); border-radius: var(--rd-radius); padding: 1.35rem; position: relative; }
.rd-steps li::before {
  content: counter(rdstep, persian); display: inline-grid; place-items: center;
  inline-size: 38px; block-size: 38px; border-radius: 50%; margin-block-end: .7rem;
  background: var(--rd-navy); color: #fff; font-weight: 800;
}
html[lang="ar"] .rd-steps li::before { content: counter(rdstep, arabic-indic); }
html[dir="ltr"] .rd-steps li::before { content: counter(rdstep); }
.rd-steps h3 { color: var(--rd-navy); font-size: 1.02rem; margin: 0 0 .35rem; }
.rd-steps p { color: var(--rd-muted); font-size: .92rem; line-height: 1.85; margin: 0; }

/* --- checks & notes --- */
.rd-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.rd-checks li { position: relative; padding-inline-start: 1.6rem; color: var(--rd-ink); line-height: 1.85; font-size: .93rem; }
.rd-checks li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--rd-cyan-ink); font-weight: 800; }
.rd-note {
  background: #f8fafc; border: 1.5px solid var(--rd-border); border-inline-start: 4px solid var(--rd-navy);
  border-radius: var(--rd-radius-sm); padding: 1rem 1.2rem; color: #1e293b; line-height: 1.9;
}

/* --- table --- */
.rd-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--rd-border); border-radius: var(--rd-radius); background: #fff; box-shadow: var(--rd-shadow); }
.rd-table { inline-size: 100%; border-collapse: collapse; min-inline-size: 560px; font-size: .93rem; }
.rd-table th, .rd-table td { padding: .9rem 1rem; text-align: start; border-block-end: 1px solid var(--rd-border); vertical-align: top; line-height: 1.8; }
.rd-table thead th { background: var(--rd-navy-soft); color: var(--rd-navy); font-weight: 800; }
.rd-table tbody tr:nth-child(even) { background: #fafbfd; }
.rd-table td.rd-yes { color: var(--rd-cyan-ink); font-weight: 700; }
.rd-table td.rd-no { color: var(--rd-muted); }

/* --- plans --- */
.rd-plans { display: grid !important; gap: var(--rd-gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.rd-plan { background: #fff; border: 1px solid var(--rd-border); border-radius: var(--rd-radius); padding: 1.6rem; box-shadow: var(--rd-shadow); display: flex; flex-direction: column; gap: .8rem; }
.rd-plan-featured { border: 2px solid var(--rd-primary); }
.rd-plan h3 { color: var(--rd-navy); margin: 0; font-size: 1.15rem; }
.rd-price { font-size: 1.6rem; font-weight: 800; color: var(--rd-navy); }
.rd-price small { font-size: .85rem; color: var(--rd-muted); font-weight: 600; }

/* --- faq --- */
.rd-faq { display: grid; gap: .75rem; max-width: 860px; margin-inline: auto; }
.rd-faq details { background: #fff; border: 1px solid var(--rd-border); border-radius: var(--rd-radius-sm); }
.rd-faq summary {
  cursor: pointer; list-style: none; padding: 1rem 1.2rem; min-block-size: 44px;
  font-weight: 700; color: var(--rd-navy); display: flex; justify-content: space-between; gap: 1rem; line-height: 1.8;
}
.rd-faq summary::-webkit-details-marker { display: none; }
.rd-faq summary::after { content: "+"; font-size: 1.3rem; color: var(--rd-primary); flex: none; }
.rd-faq details[open] summary::after { content: "\2212"; }
.rd-faq details[open] { border-color: #c7d5f0; box-shadow: var(--rd-shadow); }
.rd-faq .rd-faq-body { padding: 0 1.2rem 1.15rem; color: var(--rd-muted); line-height: 2; }

/* --- cta --- */
.rd-cta {
  background: var(--rd-navy); color: #dbe5f7; border-radius: calc(var(--rd-radius) + 6px);
  padding: clamp(1.75rem, 5vw, 3rem); text-align: center; position: relative; overflow: hidden;
}
.rd-cta::after { content: ""; position: absolute; inset-block-start: -80px; inset-inline-end: -80px; inline-size: 220px; block-size: 220px; border-radius: 50%; background: rgba(110, 231, 255, .14); pointer-events: none; }
.rd-cta h2 { color: #fff; font-size: clamp(1.35rem, 1rem + 1.4vw, 1.95rem); margin: 0 0 .75rem; line-height: 1.6; }
.rd-cta p { margin: 0 auto 1.4rem; max-width: 640px; line-height: 2; }
.rd-cta .rd-hero-actions { justify-content: center; margin: 0; position: relative; z-index: 1; }

/* --- misc --- */
.rd-crumbs { font-size: .85rem; color: var(--rd-muted); margin-block-end: .4rem; }
.rd-crumbs a { color: var(--rd-primary); text-decoration: none; }
.rd-frame { background: #fff; border: 1px solid var(--rd-border); border-radius: var(--rd-radius); box-shadow: var(--rd-shadow); padding: clamp(1.25rem, 3vw, 2rem); }
.rd-sr { position: absolute !important; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rd-mt { margin-block-start: var(--rd-gap); }

/* --- index: architecture board (replaces the inline <style>) --- */
.arch-board { background: #fff; border: 1px solid var(--rd-border); border-radius: calc(var(--rd-radius) + 6px); padding: clamp(1.25rem, 3vw, 2.5rem); box-shadow: var(--rd-shadow); }
.arch-status-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding-block-end: 1.25rem; margin-block-end: 1.5rem; border-block-end: 1px solid var(--rd-border); color: var(--rd-cyan-ink); font-weight: 700; font-size: .92rem; }
.arch-core-card { background: var(--rd-tint); border: 1px solid #d6e2f7; border-block-start: 4px solid var(--rd-navy); border-radius: var(--rd-radius); padding: clamp(1.25rem, 3vw, 2rem); text-align: center; margin-block-end: 1.5rem; }
.arch-core-card h3 { color: var(--rd-navy); font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); margin: .75rem 0 .5rem; line-height: 1.6; }
.arch-core-card p { color: var(--rd-muted); line-height: 1.95; max-width: 780px; margin: 0 auto 1rem; }
.arch-core-card .rd-checks { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.5rem; }
.arch-grid-satellites { display: grid !important; gap: var(--rd-gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.arch-foot { margin-block-start: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }

/* --- legacy components re-skinned --- */
.section-head h2 { color: var(--rd-navy); }
.badge-pill { background: var(--rd-navy-soft); color: var(--rd-navy); border-color: #d6e2f7; }
.bento-card, .feature-card, .feature-card-item, .pricing-card, .faq-box { background: #fff; border-color: var(--rd-border); box-shadow: var(--rd-shadow); }
.bento-card h3, .feature-card h3, .feature-card-item h3, .pricing-card h3 { color: var(--rd-navy); }
.comparison-table thead th { background: var(--rd-navy-soft); color: var(--rd-navy); }

/* simulator: light chrome (no dark panels) */
.simulator-wrapper { border-color: var(--rd-border); box-shadow: var(--rd-shadow-hover); border-radius: var(--rd-radius); }
.simulator-topbar { background: #f3f6fb; color: var(--rd-ink); border-block-end: 1px solid var(--rd-border); }
.simulator-title { color: var(--rd-muted); }
.sim-live-pill { font-size: .72rem; font-weight: 700; color: var(--rd-cyan-ink); background: #e6fbff; border: 1px solid #b8f1fc; border-radius: 999px; padding: .12rem .6rem; }

/* calculator: dark-on-light */
.calculator-card { background: #fff; color: var(--rd-ink); border: 1px solid var(--rd-border); box-shadow: var(--rd-shadow); }
.calculator-card h2 { color: var(--rd-navy); }
.calculator-card p, .calculator-card .slider-title { color: var(--rd-muted); }
.calculator-card .slider-val-badge { color: var(--rd-navy); background: var(--rd-navy-soft); border-color: #d6e2f7; }
.calculator-card .calc-result-box { background: var(--rd-tint); border: 1px solid var(--rd-border); color: var(--rd-ink); }
.calculator-card .calc-savings-number { color: var(--rd-navy); background: none; -webkit-text-fill-color: currentColor; }
.calc-result-label, .calc-result-note { color: var(--rd-muted); font-size: .9rem; line-height: 1.9; display: block; }

/* footer banner: solid navy, readable */
.footer-enterprise-banner { background: var(--rd-navy) !important; }

/* --- accessibility --- */
.rd-btn:focus-visible, .rd-more:focus-visible, .rd-faq summary:focus-visible, .arch-sat-cta:focus-visible,
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--rd-primary); outline-offset: 2px; border-radius: 6px;
}
.rd-section-navy a:focus-visible, .rd-cta a:focus-visible { outline-color: var(--rd-cyan); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rd-card-link:hover { transform: none; }
}
@media (max-width: 480px) {
  .rd-hero-actions .rd-btn { inline-size: 100%; }
  .rd-table { font-size: .86rem; }
}
@media print {
  .rd-hero, .rd-cta, .rd-section-tint { background: #fff !important; color: #000 !important; }
  .rd-btn { border: 1px solid #000; }
}

.rd-actions-center { justify-content: center; }
.rd-frame h3 { color: var(--rd-navy); margin: .75rem 0 .5rem; }

/* Pricing Page Overflow Clip (Desk & Mobile) */
body.page-pricing, html:has(body.page-pricing) {
  overflow-x: clip;
}

/* === 0.5.21: هدر واکنش‌گرا — نگهبان سرریز منو + نوار بالای فشرده در موبایل (خواستهٔ مالک ۰۸/۱۲) === */
/* الف) وقتی برند + منو + دکمه‌ها در یک ردیف جا نشوند (زوم مرورگر، پنجرهٔ باریک، نام کاربر بلند)، JS کلاس nav-collapsed می‌زند */
.site-header-enterprise.nav-collapsed .nav-menu-enterprise { display: none !important; }
.site-header-enterprise.nav-collapsed .mobile-menu-btn { display: inline-flex !important; }
.main-navbar { flex-wrap: nowrap; }
.nav-menu-enterprise { flex: 0 1 auto; }
.nav-btn-user { min-width: 0; max-width: 240px; }
.user-display-name {
  display: inline-block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
@media (max-width: 1100px) {
  .user-display-name { max-width: 110px; }
}
/* ب) موبایل و تبلت: فقط یک ردیف فشرده (پرچم زبان‌ها + لینک اکوسیستم)؛ شعار و نشان پایداری پنهان */
@media (max-width: 768px) {
  .top-announcement-bar.enterprise-status-bar { padding-block: 0.3rem; }
  .status-alert-content { display: none !important; }
  .announcement-inner {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem;
  }
  .status-alert-actions {
    width: auto !important;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    gap: 0.5rem;
  }
  .lang-switcher-top { gap: 0.1rem !important; font-size: 0.78rem !important; }
  .lang-switcher-top > span { display: none !important; }
  .lang-switcher-top .lang-opt { padding: 0.2rem 0.3rem !important; min-height: 32px; }
  .lang-switcher-top .lang-opt span + span { display: none; }
  .lang-switcher-top .lang-opt.active span + span { display: inline; }
  #statusTrackOrderSep, .status-track-link { display: none !important; }
  .status-parent-link {
    display: inline-flex !important;
    white-space: nowrap;
    font-size: 0.78rem;
    flex-shrink: 0;
  }
  .status-parent-domain { display: none; }
}
