/* ==========================================================================
   بیمه معلم — نمایندگی رسمی کد ۳۷۹۰ (مهناز طالبی)
   سیستم طراحی اختصاصی | راست‌به‌چپ، واکنش‌گرا، بدون وابستگی خارجی
   --------------------------------------------------------------------------
   Name:       IRANSansX Fonts (Version 4 — Pro Webfonts)
   Author:     Moslem Ebrahimi (moslemebrahimi.com) — Vendor: fontiran.com
   Copyright:  Commercial/Proprietary Software (All Rights Reserved)
   This set of fonts are used in this project under the license: (FONTIRAN-WEB-LICENSE)
   ========================================================================== */

@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-DemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #0a162c;
  --navy-900: #112244;
  --navy-800: #18305e;
  --navy-700: #224482;
  --blue-600: #2558a8;
  --blue-500: #3371cd;
  --blue-100: #e7f0fd;
  --blue-50: #f2f7ff;

  --gold-600: #b58426;
  --gold-500: #ce9c3c;
  --gold-400: #e5b95f;
  --gold-100: #fcf5e4;

  --emerald-600: #0e8a5f;
  --emerald-100: #e3f7ef;

  --bg-page: #f5f8fc;
  --bg-surface: #ffffff;
  --bg-elevated: #ffffff;
  --bg-subtle: #edf2f9;
  --bg-glass: rgba(255, 255, 255, 0.86);

  --text-primary: #0e1d38;
  --text-secondary: #3e506e;
  --text-muted: #687a97;
  --text-on-navy: #f8fafd;

  --border-light: rgba(17, 34, 68, 0.09);
  --border-strong: rgba(17, 34, 68, 0.18);

  --shadow-sm: 0 4px 14px rgba(13, 28, 58, 0.05);
  --shadow-md: 0 14px 34px rgba(13, 28, 58, 0.08);
  --shadow-lg: 0 24px 56px rgba(11, 24, 52, 0.14);
  --shadow-glow: 0 12px 30px rgba(37, 88, 168, 0.24);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --radius-pill: 999px;

  --container: 1280px;
  --transition: 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme='dark'] {
  --bg-page: #071020;
  --bg-surface: #0e1b33;
  --bg-elevated: #142544;
  --bg-subtle: #11203b;
  --bg-glass: rgba(12, 24, 46, 0.86);

  --text-primary: #f1f5fb;
  --text-secondary: #b9c7df;
  --text-muted: #8496b4;

  --blue-600: #4280de;
  --blue-500: #5995ef;
  --blue-100: rgba(66, 128, 222, 0.18);
  --blue-50: rgba(66, 128, 222, 0.09);
  --gold-100: rgba(206, 156, 60, 0.16);
  --emerald-100: rgba(14, 138, 95, 0.18);

  --border-light: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 16px 38px rgba(0, 0, 0, 0.36);
  --shadow-lg: 0 28px 64px rgba(0, 0, 0, 0.48);
}

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

@view-transition {
  navigation: auto;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  font-size: 16px;
  overflow-x: clip;
}

body {
  font-family: 'IRANSansX', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.75;
  overflow-x: clip;
  max-width: 100vw;
  transition: background-color var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.44;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.ltr {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}

.container {
  width: min(100% - 2.25rem, var(--container));
  margin-inline: auto;
}

/* Skip Link */
.skip-link {
  position: fixed;
  top: -100px;
  right: 1rem;
  z-index: 9999;
  background: var(--navy-900);
  color: #fff;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus {
  top: 1rem;
}

/* ==========================================================================
   Shared Diamond Motif & Architectural Glass Header (v013 Redesign)
   ========================================================================== */
.diamonds {
  display: inline-flex;
  gap: 3px;
  color: var(--gold-400);
  font-size: 0.72rem;
  letter-spacing: 1px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid rgba(17, 34, 68, 0.08);
  transition: box-shadow var(--transition), background-color var(--transition), border-color var(--transition);
}

/* Razor-sharp royal crown accent line replacing the heavy old topbar */
.header::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-900) 0%, var(--blue-600) 35%, var(--gold-500) 68%, var(--navy-900) 100%);
}

[data-theme='dark'] .header {
  background: rgba(11, 21, 40, 0.9);
  border-bottom-color: rgba(148, 163, 184, 0.14);
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 32px -12px rgba(11, 25, 48, 0.12);
}

[data-theme='dark'] .header--scrolled {
  background: rgba(11, 21, 40, 0.96);
  box-shadow: 0 14px 36px -12px rgba(0, 0, 0, 0.48);
}

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 70px;
}

/* 1. Right Zone — Framed Brand Plaque */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  flex-shrink: 0;
}

.brand__logo-wrap {
  width: 46px;
  height: 44px;
  padding: 4px 5px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
  border: 1px solid rgba(17, 34, 68, 0.1);
  box-shadow: 0 3px 10px rgba(17, 34, 68, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

[data-theme='dark'] .brand__logo-wrap {
  background: linear-gradient(180deg, #f8fafc 0%, #eef3fb 100%);
  border-color: rgba(229, 185, 95, 0.35);
}

.brand:hover .brand__logo-wrap {
  transform: translateY(-1px);
  border-color: rgba(201, 148, 51, 0.55);
  box-shadow: 0 6px 14px rgba(17, 34, 68, 0.1);
}

.brand__logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  line-height: 1.25;
  white-space: nowrap;
}

.brand__title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.brand__title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0;
}

.brand__code-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.46rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fef8eb 0%, #faecc8 100%);
  color: #85570d;
  border: 1px solid rgba(201, 148, 51, 0.42);
}

[data-theme='dark'] .brand__code-badge {
  background: rgba(229, 185, 95, 0.16);
  color: var(--gold-400);
  border-color: rgba(229, 185, 95, 0.35);
}

.brand__sub {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* 2. Center Zone — Segmented Calm Navigation Dock */
.nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.16rem;
  padding: 0.26rem;
  border-radius: 13px;
  background: rgba(241, 245, 251, 0.85);
  border: 1px solid rgba(17, 34, 68, 0.07);
}

[data-theme='dark'] .nav {
  background: rgba(19, 34, 62, 0.85);
  border-color: rgba(148, 163, 184, 0.14);
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.44rem 0.8rem;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-secondary);
  transition: color var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.nav__link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.65);
}

[data-theme='dark'] .nav__link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.nav__link.is-active {
  color: var(--navy-900);
  font-weight: 800;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(11, 25, 48, 0.08), 0 0 0 1px rgba(17, 34, 68, 0.06);
}

.nav__link.is-active::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2.5px;
  border-radius: 99px;
  background: var(--gold-500);
}

[data-theme='dark'] .nav__link.is-active {
  color: #ffffff;
  background: rgba(37, 88, 168, 0.38);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(96, 165, 250, 0.28);
}

.nav__mobile-meta {
  display: none;
}

/* 3. Left Zone — Unified Architectural Squircle Actions */
.header__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  flex-shrink: 0;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 34, 68, 0.1);
  background: rgba(248, 250, 253, 0.9);
  color: var(--text-secondary);
  transition: all var(--transition);
}

[data-theme='dark'] .icon-btn {
  background: rgba(19, 34, 62, 0.85);
  border-color: rgba(148, 163, 184, 0.16);
  color: rgba(255, 255, 255, 0.86);
}

.icon-btn:hover {
  border-color: var(--blue-500);
  background: var(--bg-surface);
  color: var(--blue-600);
  transform: translateY(-1px);
}

.header__cta-desktop {
  height: 38px;
  padding: 0 0.88rem;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--navy-900);
  color: #ffffff;
  border: 1px solid rgba(229, 185, 95, 0.36);
  font-size: 0.85rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 14px -4px rgba(11, 25, 48, 0.28);
  transition: all var(--transition);
}

[data-theme='dark'] .header__cta-desktop {
  background: linear-gradient(135deg, #173160, #234c91);
  border-color: rgba(229, 185, 95, 0.45);
}

.header__cta-desktop:hover {
  transform: translateY(-1px);
  border-color: var(--gold-400);
  box-shadow: 0 8px 20px -6px rgba(11, 25, 48, 0.36);
  color: var(--gold-400);
}

.header__live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.45rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.94rem;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(37, 88, 168, 0.34);
  filter: brightness(1.06);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-600), var(--gold-500));
  color: #fff;
  box-shadow: 0 10px 26px rgba(181, 132, 38, 0.28);
}
.btn--gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn--outline {
  border: 1.5px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
}
.btn--outline:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
  background: var(--blue-50);
  transform: translateY(-2px);
}

.btn--telegram {
  background: linear-gradient(135deg, #1d8adb, #27a7e7);
  color: #fff;
  box-shadow: 0 10px 26px rgba(39, 167, 231, 0.28);
}
.btn--telegram:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn--sm {
  padding: 0.56rem 1.1rem;
  font-size: 0.86rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(2.65rem, 4.8vw, 4.15rem) clamp(3rem, 5.1vw, 4.45rem);
  overflow: hidden;
}

/* Geometric diagonal motif inspired by the physical business card */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(37, 88, 168, 0.11), transparent 44%),
    radial-gradient(circle at 14% 78%, rgba(206, 156, 60, 0.1), transparent 42%);
  pointer-events: none;
}

.hero__ribbon {
  position: absolute;
  left: -120px;
  bottom: -90px;
  width: 540px;
  height: 260px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--blue-600) 100%);
  transform: rotate(-22deg);
  opacity: 0.055;
  border-radius: 40px;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.36rem 0.92rem;
  border-radius: var(--radius-pill);
  background: var(--blue-100);
  color: var(--blue-600);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(37, 88, 168, 0.16);
}

.hero__title {
  font-size: clamp(1.52rem, 2.35vw, 2.08rem);
  font-weight: 800;
  line-height: 1.44;
  letter-spacing: 0;
  margin-bottom: 1rem;
}

.hero__title-accent {
  color: var(--blue-600);
}

[data-theme='dark'] .hero__title-accent {
  color: var(--gold-400);
}

.hero__desc {
  font-size: 0.97rem;
  line-height: 1.82;
  color: var(--text-secondary);
  max-width: 64ch;
  margin-bottom: 1.65rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.3rem;
}

.hero__trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.trust-pill__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-pill__title {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}
.trust-pill__sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Hero Right/Left Agency Showcase Card */
.agency-panel {
  position: relative;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 62%, #1d4487 100%);
  color: var(--text-on-navy);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.agency-panel::after {
  content: '';
  position: absolute;
  left: -60px;
  bottom: -60px;
  width: 240px;
  height: 150px;
  background: linear-gradient(135deg, rgba(229, 185, 95, 0.25), rgba(51, 113, 205, 0.3));
  transform: rotate(-24deg);
  border-radius: 28px;
  pointer-events: none;
}

.agency-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1.35rem;
}

.agency-panel__emblem {
  width: 108px;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.45rem 0.65rem;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.agency-panel__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(20, 214, 144, 0.16);
  color: #6df0be;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(109, 240, 190, 0.28);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3be8a5;
  box-shadow: 0 0 0 0 rgba(59, 232, 165, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 232, 165, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(59, 232, 165, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 232, 165, 0); }
}

.agency-panel__identity {
  margin-bottom: 1.4rem;
}
.agency-panel__role {
  font-size: 0.84rem;
  color: var(--gold-400);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.agency-panel__name {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.38;
  margin-bottom: 0.2rem;
}
.agency-panel__code {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
}

.agency-panel__quick-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 0.65rem;
  font-weight: 600;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.quick-chip {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition);
}
.quick-chip:hover {
  background: var(--gold-500);
  border-color: var(--gold-400);
  transform: translateY(-2px);
}

.agency-panel__direct {
  position: relative;
  z-index: 1;
  background: rgba(8, 18, 38, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.direct-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.direct-row__label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}
.direct-row__val {
  font-weight: 800;
  color: #fff;
}
.direct-row__val:hover {
  color: var(--gold-400);
}

/* ==========================================================================
   Section Common Headers & Calm Vertical Rhythm (v015)
   ========================================================================== */
.section {
  padding-block: clamp(2.85rem, 4.8vw, 4.2rem);
}

.section:not(.section--alt) + .section:not(.section--alt) {
  padding-top: 0.65rem;
}

.section--alt {
  background: var(--bg-subtle);
  border-block: 1px solid var(--border-light);
}

.section__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 1.95rem;
}

.section__title {
  font-size: clamp(1.26rem, 1.85vw, 1.58rem);
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 0.55rem;
}

.section__subtitle {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.82;
}

/* ==========================================================================
   Services Portfolio & Filter
   ========================================================================== */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2.2rem;
}

.filter-btn {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.88rem;
  transition: all var(--transition);
}
.filter-btn:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
}
.filter-btn.is-active {
  background: var(--navy-800);
  color: #fff;
  border-color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(282px, 1fr));
  gap: 1.35rem;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-600), var(--gold-500));
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 88, 168, 0.28);
}
.service-card:hover::before {
  opacity: 1;
}

.service-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card__tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.26rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--gold-100);
  color: var(--gold-600);
}

.service-card__title {
  font-size: 1.03rem;
  font-weight: 800;
  line-height: 1.42;
  margin-bottom: 0.45rem;
}

.service-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
}

.service-card__highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.service-card__highlights li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.service-card__highlights li::before {
  content: '◆';
  color: var(--gold-500);
  font-size: 0.65rem;
}

.service-card__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-light);
}

.service-card__actions .btn {
  flex: 1;
}

/* ==========================================================================
   Smart Estimator & Consultation Studio
   ========================================================================== */
.studio-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.studio-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
}

.studio-tab {
  padding: 1.1rem 0.9rem;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.studio-tab:hover {
  color: var(--blue-600);
  background: rgba(37, 88, 168, 0.04);
}
.studio-tab.is-active {
  background: var(--bg-surface);
  color: var(--blue-600);
  border-bottom-color: var(--blue-600);
}

.studio-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  padding: clamp(1.5rem, 3.5vw, 2.6rem);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.field--full {
  grid-column: 1 / -1;
}

.field__label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.field__label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.field__val-badge {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 0.18rem 0.65rem;
  border-radius: var(--radius-pill);
}

.input,
.select {
  width: 100%;
  padding: 0.72rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  background: var(--bg-page);
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.input:focus,
.select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(51, 113, 205, 0.16);
}

input[type='range'] {
  width: 100%;
  accent-color: var(--blue-600);
  height: 7px;
  border-radius: 99px;
  cursor: pointer;
}

.check-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.46rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-light);
  background: var(--bg-page);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition);
}
.check-pill input {
  accent-color: var(--blue-600);
}
.check-pill:has(input:checked) {
  border-color: var(--blue-600);
  background: var(--blue-50);
  color: var(--blue-600);
}

/* Studio Output Summary Box */
.estimate-card {
  background: linear-gradient(165deg, var(--navy-900), var(--navy-800));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.estimate-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-400);
}

.estimate-card__main {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-md);
  padding: 1.15rem;
}

.estimate-card__kicker {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.25rem;
}

.estimate-card__price {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1.35;
}

.estimate-card__note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.4rem;
}

.estimate-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.86rem;
}

.estimate-metric {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}
.estimate-metric span:first-child {
  color: rgba(255, 255, 255, 0.74);
}
.estimate-metric strong {
  font-weight: 700;
  text-align: left;
}

.send-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.send-channels .btn--telegram {
  grid-column: 1 / -1;
}

.send-btn-sub {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.62rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all var(--transition);
}
.send-btn-sub:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Why Moallem & Renewal Reminder Section
   ========================================================================== */
.split-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2.2rem;
  align-items: stretch;
}

.pillars-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.pillar-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.pillar-box__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-600);
  font-weight: 900;
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

.pillar-box__title {
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.pillar-box__text {
  font-size: 0.87rem;
  color: var(--text-secondary);
}

.reminder-card {
  background: var(--bg-surface);
  border: 1.5px solid rgba(37, 88, 168, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
}

.shamsi-row {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 1fr;
  gap: 0.6rem;
}

/* ==========================================================================
   Step-by-Step Claims Guide
   ========================================================================== */
.claims-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.claims-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.claim-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.45rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.claim-step__badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--emerald-100);
  color: var(--emerald-600);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.claim-step__title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.claim-step__desc {
  font-size: 0.87rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Interactive 3D Digital Business Card & Contact Hub
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
}

.bcard-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.bcard-perspective {
  width: min(100%, 420px);
  height: 536px;
  perspective: 1400px;
}

.bcard-flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bcard-flipper.is-flipped {
  transform: rotateY(180deg);
}

.bcard-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: linear-gradient(175deg, #fbfcfe 0%, #eef2f8 100%);
  color: #132548;
  border-radius: 26px;
  box-shadow: 0 26px 56px rgba(10, 22, 44, 0.22);
  border: 1px solid rgba(19, 37, 72, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.2rem 1.8rem;
}

/* Persian Front Face (matches کد نمایندگی.jpeg) */
.bcard-face--front {
  justify-content: flex-start;
  text-align: center;
}

.bcard-emblem {
  width: 170px;
  margin-top: 0.2rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 6px 12px rgba(21, 39, 74, 0.16));
}

.bcard-fa-company {
  font-size: 1.56rem;
  font-weight: 800;
  color: #15274a;
  line-height: 1.3;
}

.bcard-fa-code {
  font-size: 0.98rem;
  font-weight: 800;
  color: #234786;
  margin-top: 0.3rem;
}

.bcard-fa-agent {
  font-size: 1.3rem;
  font-weight: 800;
  color: #15274a;
  margin-top: 0.85rem;
}

.bcard-fa-subname {
  font-size: 0.85rem;
  font-weight: 600;
  color: #516585;
}

/* Authentic diagonal navy/blue ribbon at bottom of front card */
.bcard-ribbon-bottom {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 155px;
  pointer-events: none;
}

.bcard-email-bar {
  position: absolute;
  bottom: 18px;
  inset-inline: 16px;
  z-index: 2;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
}

/* Back Face (matches موبایل.jpeg) */
.bcard-face--back {
  transform: rotateY(180deg);
  justify-content: space-between;
}

.bcard-ribbon-top {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 135px;
  pointer-events: none;
}

.bcard-back-logo {
  width: 162px;
  margin-top: 1.6rem;
  margin-right: auto;
  filter: drop-shadow(0 6px 12px rgba(21, 39, 74, 0.16));
}

.bcard-en-block {
  width: 100%;
  text-align: left;
  direction: ltr;
  margin-block: 0.6rem;
}

.bcard-en-title {
  font-size: 1.88rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.75px #15274a;
  letter-spacing: 0.02em;
  line-height: 1.08;
}

.bcard-en-sub {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: #15274a;
  margin-top: 0.25rem;
}

.bcard-dots {
  display: inline-flex;
  gap: 4px;
}
.bcard-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #15274a;
}

.bcard-back-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(21, 39, 74, 0.12);
}

.bcard-tg-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.16rem;
  font-weight: 800;
  color: #0f2040;
}

.bcard-tg-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1c8adb;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bcard-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

/* Contact Channels List */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.channel-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), transform var(--transition);
}
.channel-item:hover {
  border-color: var(--blue-500);
  transform: translateX(-3px);
}

.channel-item__info {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.channel-item__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-item__label {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.channel-item__value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.channel-item__btns {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.copy-mini-btn {
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.copy-mini-btn:hover {
  background: var(--blue-600);
  color: #fff;
  border-color: var(--blue-600);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list {
  max-width: 860px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: right;
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.faq-chevron {
  transition: transform var(--transition);
  color: var(--blue-600);
  flex-shrink: 0;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 1.4rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  border-top: 1px dashed var(--border-light);
  padding-top: 0.9rem;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* ==========================================================================
   Footer — Symmetrical 3-Tier Typographic Scale & 4-Column Equivalence (v014)
   Tier 1 (Headings & Brand): 0.95rem / 800
   Tier 2 (Body, Links & Contact Values): 0.86rem / 500–700 (Latin optical: 0.81rem)
   Tier 3 (Subtitles, Badges & Legal Bar): 0.80rem / 600
   ========================================================================== */
.footer {
  position: relative;
  background: linear-gradient(180deg, #0b1830 0%, #071020 100%);
  color: rgba(255, 255, 255, 0.82);
  padding-top: 2.5rem;
  padding-bottom: 1.75rem;
}

.footer::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-900) 0%, var(--blue-500) 52%, var(--gold-500) 100%);
}

.footer--compact {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

/* Row 1: Balanced Top Bar (Brand Plaque <-> Official Credentials) */
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-bottom: 1.65rem;
  margin-bottom: 1.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.footer__logo-wrap {
  width: 48px;
  height: 46px;
  padding: 4px 5px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5fb 100%);
  border: 1px solid rgba(229, 185, 95, 0.36);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer__logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  line-height: 1.35;
}

.footer__brand-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__brand-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: #ffffff;
}

.footer__code-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(229, 185, 95, 0.16);
  color: var(--gold-400);
  border: 1px solid rgba(229, 185, 95, 0.36);
}

.footer__brand-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.66);
}

.footer__trust-pills {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer__trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.95rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #ffffff;
  text-align: right;
  transition: border-color var(--transition), background-color var(--transition), transform var(--transition);
}

button.footer__trust-pill {
  cursor: pointer;
}

button.footer__trust-pill:hover {
  border-color: rgba(229, 185, 95, 0.5);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.footer__trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(37, 88, 168, 0.35);
  color: var(--gold-400);
  border: 1px solid rgba(96, 165, 250, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer__trust-icon--enamad {
  background: rgba(255, 255, 255, 0.06);
  border-style: dashed;
  border-color: rgba(229, 185, 95, 0.42);
}

.footer__trust-copy {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  line-height: 1.38;
}

.footer__trust-copy strong {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
}

.footer__trust-copy small {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.64);
}

/* Row 2: 4 Equal-Baseline Symmetrical Columns */
.footer__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1.15fr;
  gap: 2.2rem;
  align-items: start;
  padding-bottom: 1.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.footer__col {
  min-width: 0;
}

.footer__title {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.45;
  color: #ffffff;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.48rem;
}

.footer__title::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--gold-400);
  flex-shrink: 0;
}

/* Explicit right-align (never justify inside narrow footer columns!) */
.footer p.footer__bio,
.footer__bio {
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.92;
  color: rgba(255, 255, 255, 0.76);
  text-align: right;
  text-align-last: right;
  margin: 0;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--transition), transform var(--transition);
}

.footer__links a:hover {
  color: var(--gold-400);
  transform: translateX(-2px);
}

.footer__links--contact li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.footer__contact-label {
  color: rgba(255, 255, 255, 0.58);
  font-weight: 500;
}

.footer__contact-val {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-weight: 800;
  color: #ffffff !important;
}

.footer__email {
  /* Optical compensation so Latin glyphs match 0.86rem Persian height */
  font-size: 0.81rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88) !important;
}

.footer__cta-inline {
  margin-top: 0.15rem;
  font-weight: 700;
  color: var(--gold-400) !important;
}

/* Row 3: Legal & Utility Bar */
.footer__bottom {
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.footer__bottom-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer__bottom-links a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  transition: color var(--transition);
}

.footer__bottom-links a.is-gold,
.footer__bottom-links a:hover {
  color: var(--gold-400);
}

/* ==========================================================================
   Modal & Toast & Mobile Quick Bar
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(7, 16, 32, 0.68);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.modal-backdrop.is-open {
  display: flex;
}

.modal {
  background: var(--bg-surface);
  color: var(--text-primary);
  width: min(100%, 620px);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.modal__section-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--blue-600);
  margin-top: 1.1rem;
  margin-bottom: 0.5rem;
}

.modal__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.modal__list li::before {
  content: '✓ ';
  color: var(--emerald-600);
  font-weight: 900;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 3000;
  background: var(--navy-900);
  color: #fff;
  padding: 0.78rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.toast.is-visible {
  transform: translateX(-50%) translateY(0);
}

.mobile-bar {
  display: none;
}

/* ==========================================================================
   Phase 2: Educators Showcase, Direct Document Upload, Messengers, QR,
   Testimonials, Routing, Sanhab / eNamad Trust Badges, Knowledge Base & Subpages
   ========================================================================== */

/* Dedicated Subpage Hero & Prose */
.subhero {
  position: relative;
  padding-block: clamp(1.9rem, 3.2vw, 2.65rem);
  background:
    radial-gradient(circle at 84% 20%, rgba(37, 88, 168, 0.12), transparent 46%),
    radial-gradient(circle at 12% 80%, rgba(206, 156, 60, 0.12), transparent 44%),
    var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
}

.subhero .hero__title {
  font-size: clamp(1.36rem, 2.05vw, 1.78rem);
  line-height: 1.44;
  margin-bottom: 0.75rem;
}

.subhero .hero__desc {
  font-size: 0.94rem;
  margin-bottom: 0.35rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.breadcrumb a:hover {
  color: var(--blue-600);
}

.prose-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.prose-card h2,
.prose-card h3 {
  font-size: 1.12rem;
  font-weight: 800;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.46;
}
.prose-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.prose-card--navy {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
}
.prose-card--navy h3 {
  color: var(--gold-400);
  margin-top: 0;
}

.prose-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.91rem;
  color: var(--text-secondary);
}
.prose-list li {
  position: relative;
  padding-right: 1.25rem;
}
.prose-list li::before {
  content: '◆';
  position: absolute;
  right: 0;
  top: 0.15rem;
  color: var(--gold-500);
  font-size: 0.72rem;
}
.prose-list--light {
  color: rgba(255, 255, 255, 0.88);
}

.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.info-card h3 {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.44;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.info-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Deep-Link Specialist Pages Banner inside #services */
.specialist-links-bar {
  margin-top: 2rem;
  padding: 1.35rem 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.specialist-links-bar__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Educators & Retirees Flagship Banner (#educators) */
.educators-banner {
  background: linear-gradient(150deg, var(--navy-950) 0%, var(--navy-800) 58%, #1e498f 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(229, 185, 95, 0.28);
  position: relative;
  overflow: hidden;
}
.educators-banner::before {
  content: '';
  position: absolute;
  left: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 185, 95, 0.2), transparent 70%);
  pointer-events: none;
}
.educators-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.educators-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.edu-perk {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 1.05rem 1.2rem;
}
.edu-perk__title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--gold-400);
  margin-bottom: 0.25rem;
}
.edu-perk__desc {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.84);
}

/* Direct No-VPN Document Upload & Iranian Messengers (#directOrder) */
.order-hub-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 2rem;
  align-items: start;
}

.upload-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.3rem);
  box-shadow: var(--shadow-md);
}

.textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  background: var(--bg-page);
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(51, 113, 205, 0.16);
}

.dropzone {
  border: 2px dashed rgba(37, 88, 168, 0.34);
  border-radius: var(--radius-md);
  background: var(--blue-50);
  padding: 1.35rem 1.1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--blue-600);
  background: var(--blue-100);
}
.dropzone__title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-top: 0.45rem;
}
.dropzone__hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.file-chips {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
  margin-top: 0.75rem;
}
.file-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.52rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  font-size: 0.84rem;
}
.file-chip__name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-chip__remove {
  color: #d93838;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.15rem 0.45rem;
  border-radius: 8px;
}
.file-chip__remove:hover {
  background: rgba(217, 56, 56, 0.1);
}

.order-result-box {
  margin-top: 1.15rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--emerald-100);
  border: 1.5px solid rgba(14, 138, 95, 0.35);
  color: var(--text-primary);
  display: none;
}
.order-result-box.is-visible {
  display: block;
}

.messengers-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.messenger-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
.messenger-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.78rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-page);
  font-weight: 800;
  font-size: 0.86rem;
  transition: all var(--transition);
  text-align: right;
}
.messenger-btn:hover {
  border-color: var(--blue-500);
  background: var(--blue-50);
  transform: translateY(-2px);
}
.messenger-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hp-trap {
  position: absolute !important;
  inset-inline-start: 0 !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* QR Badge & Routing Box in #contact */
.qr-mini-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  width: min(100%, 420px);
  box-shadow: var(--shadow-sm);
}
.qr-mini-card__img {
  width: 74px;
  height: 74px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
  background: #fff;
  padding: 3px;
}

.visit-routing-card {
  margin-top: 2.2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.85rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.6rem;
  align-items: center;
}
.routing-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* Testimonials & SLA Stats (#trustProof) */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.kpi-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.kpi-box__val {
  font-size: 1.34rem;
  font-weight: 800;
  color: var(--blue-600);
  line-height: 1.28;
}
.kpi-box__label {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  font-weight: 600;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}
.testimonial-card__quote {
  font-size: 0.91rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.testimonial-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-light);
  font-size: 0.83rem;
}

/* Knowledge Base Cards (#knowledge) */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.knowledge-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.55rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: transform var(--transition), border-color var(--transition);
}
.knowledge-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-500);
}

/* Footer Official Trust & Sanhab / eNamad Row */
.trust-seals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-block: 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.trust-seal {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.trust-seal__badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 900;
  font-size: 0.74rem;
  text-align: center;
}

.pwa-install-btn:hover {
  border-color: var(--gold-500);
  color: var(--gold-600);
  background: var(--gold-100);
}

/* ==========================================================================
   Multi-Page Navigation Dropdown, Portal Gateway Cards & Comparison Tables
   ========================================================================== */
.nav__dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav__caret {
  width: 13px;
  height: 13px;
  opacity: 0.7;
  flex-shrink: 0;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__dropdown-wrap:hover .nav__caret,
.nav__dropdown-wrap:focus-within .nav__caret,
.nav__dropdown-wrap.is-sub-open .nav__caret {
  transform: rotate(180deg);
  opacity: 1;
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 282px;
  background: var(--bg-surface);
  border: 1px solid rgba(17, 34, 68, 0.11);
  border-radius: 16px;
  box-shadow: 0 20px 44px -12px rgba(11, 25, 48, 0.18), 0 4px 12px rgba(11, 25, 48, 0.06);
  padding: 0.48rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 190ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 980;
}

[data-theme='dark'] .nav__dropdown {
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 22px 48px -10px rgba(0, 0, 0, 0.55);
}

/* Invisible hover bridge so cursor never loses hover between link and menu */
.nav__dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  inset-inline: 0;
  height: 14px;
}

.nav__dropdown-wrap:hover .nav__dropdown,
.nav__dropdown-wrap:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-link {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.58rem 0.82rem;
  border-radius: 10px;
  border-right: 2.5px solid transparent;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}
.nav__dropdown-link strong {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-primary);
}
.nav__dropdown-link span {
  font-size: 0.74rem;
  color: var(--text-muted);
}
.nav__dropdown-link:hover,
.nav__dropdown-link.is-active {
  background: var(--blue-50);
  border-right-color: var(--gold-500);
}
[data-theme='dark'] .nav__dropdown-link:hover,
[data-theme='dark'] .nav__dropdown-link.is-active {
  background: rgba(37, 88, 168, 0.22);
}
.nav__dropdown-link:hover strong,
.nav__dropdown-link.is-active strong {
  color: var(--blue-600);
}
[data-theme='dark'] .nav__dropdown-link:hover strong,
[data-theme='dark'] .nav__dropdown-link.is-active strong {
  color: var(--gold-400);
}

/* Portal Gateway Cards on Home Page */
.gateway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.gateway-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}
.gateway-card::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-800), var(--blue-500), var(--gold-500));
  opacity: 0;
  transition: opacity var(--transition);
}
.gateway-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-500);
}
.gateway-card:hover::after {
  opacity: 1;
}

.gateway-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.gateway-card__icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gateway-card__badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.24rem 0.68rem;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-secondary);
}
.gateway-card__title {
  font-size: 1.03rem;
  font-weight: 800;
  line-height: 1.42;
  margin-bottom: 0.42rem;
  color: var(--text-primary);
}
.gateway-card__desc {
  font-size: 0.89rem;
  color: var(--text-secondary);
}
.gateway-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.87rem;
  font-weight: 800;
  color: var(--blue-600);
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-light);
}

/* Executive CTA Strip */
.cta-banner {
  background: linear-gradient(145deg, var(--navy-950), var(--navy-800) 60%, #21519c);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 2.8rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(229, 185, 95, 0.25);
}

/* Comparison Table */
.compare-table-wrap {
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.9rem;
}
.compare-table th,
.compare-table td {
  padding: 1rem 1.2rem;
  text-align: right;
  border-bottom: 1px solid var(--border-light);
}
.compare-table thead th {
  background: var(--navy-900);
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
}
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-table tbody tr:hover {
  background: var(--blue-50);
}

/* Search Box for FAQ & Knowledge */
.faq-search-wrap {
  max-width: 620px;
  margin: 0 auto 2rem;
  position: relative;
}
.faq-search-input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-surface);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}
.faq-search-input:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(37, 88, 168, 0.14);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@keyframes fadeUpCard {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card,
.claim-step {
  animation: fadeUpCard 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Prevent grid child horizontal overflow on mobile RTL */
.hero__grid > *,
.studio-body > *,
.split-grid > *,
.contact-grid > *,
.services-grid > *,
.claims-grid > *,
.form-grid > *,
.educators-grid > *,
.order-hub-grid > *,
.visit-routing-card > *,
.info-cards-grid > *,
.kpi-strip > *,
.testimonials-grid > *,
.knowledge-grid > *,
.trust-seals > *,
.messenger-grid > *,
.gateway-grid > * {
  min-width: 0;
}

@media (max-width: 1220px) {
  .hero__grid,
  .studio-body,
  .split-grid,
  .contact-grid,
  .educators-grid,
  .order-hub-grid,
  .visit-routing-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .claims-grid,
  .info-cards-grid,
  .kpi-strip,
  .gateway-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonials-grid,
  .trust-seals {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Responsive Header Drawer & Collapsible Submenus (<= 1120px) */
@media (max-width: 1120px) {
  .header__inner {
    grid-template-columns: 1fr auto;
    min-height: 66px;
  }

  .nav {
    position: fixed;
    top: 74px;
    left: 1rem;
    right: 1rem;
    width: auto;
    justify-self: stretch;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    padding: 0.85rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.28rem;
    box-shadow: 0 24px 48px -12px rgba(11, 25, 48, 0.24);
    display: none;
    z-index: 1200;
  }

  [data-theme='dark'] .nav {
    background: var(--bg-surface);
    border-color: var(--border-strong);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.55);
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link {
    justify-content: space-between;
    padding: 0.68rem 0.88rem;
    font-size: 0.9rem;
    border-radius: 11px;
  }

  .nav__link.is-active {
    background: var(--blue-50);
    color: var(--blue-600);
    box-shadow: none;
  }

  [data-theme='dark'] .nav__link.is-active {
    background: rgba(37, 88, 168, 0.28);
    color: var(--gold-400);
    box-shadow: none;
  }

  .nav__link.is-active::after {
    display: none;
  }

  .nav__dropdown-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .nav__dropdown {
    position: static;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 1px solid var(--border-light);
    background: var(--bg-subtle);
    border-radius: 12px;
    margin-top: 0.28rem;
    margin-bottom: 0.2rem;
    padding: 0.35rem;
    display: none;
  }

  .nav__dropdown-wrap.is-sub-open .nav__dropdown {
    display: flex;
  }

  .nav__dropdown::before {
    display: none;
  }

  .nav__mobile-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.45rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-light);
  }

  .nav__mobile-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.68rem 1rem;
    border-radius: 11px;
    background: var(--navy-900);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
  }

  .nav__mobile-mail {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.85rem;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 74px;
  }
  .header__inner {
    gap: 0.5rem;
    min-height: 62px;
  }
  .nav {
    top: 70px;
    left: 0.75rem;
    right: 0.75rem;
  }
  .brand {
    gap: 0.55rem;
    min-width: 0;
    flex-shrink: 1;
  }
  .brand__logo-wrap {
    width: 40px;
    height: 39px;
    border-radius: 10px;
  }
  .brand__title {
    font-size: 0.9rem;
  }
  .brand__code-badge {
    font-size: 0.68rem;
    padding: 0.08rem 0.38rem;
  }
  .brand__sub {
    font-size: 0.69rem;
  }
  .header__actions {
    gap: 0.35rem;
  }
  .icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .direct-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
  .hero__trust-grid,
  .pillars-list,
  .claims-grid,
  .info-cards-grid,
  .kpi-strip,
  .gateway-grid,
  .knowledge-grid,
  .messenger-grid,
  .form-grid,
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .studio-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .header__cta-desktop {
    display: none;
  }
  .channel-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .channel-item__btns {
    width: 100%;
  }
  .channel-item__btns > * {
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  .footer__trust-pills {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
  }

  .footer__trust-pill {
    width: 100%;
  }

  .mobile-bar {
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 950;
    background: var(--bg-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--border-light);
    padding: 0.58rem 0.85rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.58rem;
    box-shadow: 0 -8px 24px rgba(10, 22, 44, 0.1);
  }

  .mobile-bar > .btn {
    border-radius: 11px;
  }
}

@media print {
  .topbar,
  .header,
  .mobile-bar,
  .toast,
  .filter-bar {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}

/* ==========================================================================
   Phase 3: Side-by-Side Plan Comparator, Order Tracking Stepper,
   Office Signage Showcase, Seasonal Campaigns & Privacy Charter
   ========================================================================== */

/* Side-by-Side Plan Comparator */
.sbs-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-md);
}

.sbs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-light);
}

.sbs-selectors {
  display: grid;
  grid-template-columns: repeat(2, minmax(210px, 1fr));
  gap: 0.85rem;
  width: min(100%, 540px);
}

.sbs-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.sbs-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.sbs-table th,
.sbs-table td {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--border-light);
  text-align: right;
  vertical-align: middle;
}

.sbs-table thead th {
  background: var(--bg-subtle);
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.sbs-table thead th.is-featured-col {
  background: linear-gradient(155deg, var(--navy-900), var(--navy-800));
  color: #fff;
}

.sbs-table td.is-featured-col {
  background: rgba(37, 88, 168, 0.04);
  font-weight: 700;
}

.sbs-table tbody tr:last-child td {
  border-bottom: none;
}

/* Order Tracking Card & 4-Step Progress Stepper */
.tracker-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow-md);
}

.tracker-form-row {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr auto;
  gap: 0.9rem;
  align-items: end;
}

.tracker-result {
  margin-top: 1.8rem;
  padding-top: 1.6rem;
  border-top: 1px dashed var(--border-strong);
  display: none;
}
.tracker-result.is-visible {
  display: block;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-block: 1.5rem;
}

.stepper__item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  position: relative;
  transition: all var(--transition);
}

.stepper__item.is-done {
  border-color: rgba(14, 138, 95, 0.4);
  background: var(--emerald-100);
}

.stepper__item.is-current {
  border-color: var(--blue-600);
  background: var(--blue-50);
  box-shadow: 0 8px 20px rgba(37, 88, 168, 0.14);
}

.stepper__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 900;
  background: var(--border-light);
  color: var(--text-secondary);
  margin-bottom: 0.55rem;
}

.stepper__item.is-done .stepper__badge {
  background: var(--emerald-600);
  color: #fff;
}

.stepper__item.is-current .stepper__badge {
  background: var(--blue-600);
  color: #fff;
}

.stepper__title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
}

.tracker-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}

.tracker-meta-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
}
.tracker-meta-box span {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
}
.tracker-meta-box strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Office Signage & Environment Showcase (#officeShowcase) */
.office-showcase {
  margin-top: 2.2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: clamp(1.45rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.55rem;
}

.office-showcase__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto;
  gap: 1.4rem;
  align-items: start;
  padding-bottom: 1.35rem;
  border-bottom: 1px dashed var(--border-strong);
}

.office-showcase__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.signage-board {
  border-radius: var(--radius-xl);
  padding: clamp(1rem, 2.2vw, 1.45rem);
  background: linear-gradient(145deg, rgba(37, 88, 168, 0.05), rgba(229, 185, 95, 0.07)), var(--bg-subtle);
  border: 1.5px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.signage-plaque {
  background: linear-gradient(135deg, #0b1830 0%, #152e5c 56%, #22539e 100%);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 2.3vw, 1.5rem) clamp(1.15rem, 2.5vw, 1.75rem);
  border: 2px solid rgba(241, 207, 122, 0.58);
  box-shadow: 0 12px 28px rgba(10, 22, 44, 0.2);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  position: relative;
}

.signage-plaque__emblem {
  width: 98px;
  height: 76px;
  border-radius: 16px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
}

.signage-plaque__emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.signage-plaque__center {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.signage-plaque__super {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f4d483;
}

.signage-plaque__title {
  font-size: clamp(1.2rem, 1.95vw, 1.56rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.4;
  text-wrap: balance;
}

.signage-plaque__meta {
  font-size: 0.93rem;
  font-weight: 500;
  color: #e6effd;
  line-height: 1.65;
}

.signage-plaque__meta strong {
  color: #ffffff;
  font-weight: 800;
}

.signage-plaque__code {
  background: rgba(8, 18, 38, 0.86);
  border: 1.5px solid rgba(241, 207, 122, 0.5);
  border-radius: 16px;
  padding: 0.55rem 1.05rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  flex-shrink: 0;
}

.signage-plaque__code-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #f4d483;
}

.signage-plaque__code-num {
  font-size: 1.65rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
}

.signage-plaque__code-sub {
  font-size: 0.74rem;
  font-weight: 700;
  color: #dbe8fc;
  direction: rtl;
}

.signage-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.signage-feature-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
}

.signage-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
}

.signage-feature-card--emerald::before {
  background: linear-gradient(90deg, var(--emerald-600), #22b07d);
}

.signage-feature-card--gold::before {
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
}

.signage-feature-card--blue::before {
  background: linear-gradient(90deg, var(--navy-800), var(--blue-500));
}

.signage-feature-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.signage-feature-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.signage-feature-card__icon--gold {
  background: var(--gold-100);
  color: var(--gold-600);
}

.signage-feature-card__icon--navy {
  background: var(--navy-900);
  color: var(--gold-400);
}

.signage-feature-card__icon--blue {
  background: var(--blue-100);
  color: var(--blue-600);
}

.signage-feature-card__title {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.42;
  margin: 0;
}

.signage-feature-card__desc {
  font-size: 0.91rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
}

.signage-feature-card__desc strong {
  color: var(--text-primary);
  font-weight: 800;
}

.signage-feature-card__pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.36rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.4;
}

.signage-feature-card__pill--emerald {
  background: var(--emerald-100);
  color: var(--emerald-600);
}

.signage-feature-card__pill--gold {
  background: var(--gold-100);
  color: var(--gold-600);
}

.signage-feature-card__pill--blue {
  background: var(--blue-100);
  color: var(--blue-600);
}

[data-theme='dark'] .signage-feature-card__pill--emerald {
  color: #4ade9f;
}

[data-theme='dark'] .signage-feature-card__pill--gold {
  color: var(--gold-400);
}

[data-theme='dark'] .signage-feature-card__pill--blue {
  color: #7cb3ff;
}

@media (max-width: 980px) {
  .office-showcase__intro {
    grid-template-columns: minmax(0, 1fr);
  }
  .office-showcase__controls {
    align-items: flex-start;
  }
  .signage-cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .signage-plaque {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
    gap: 0.85rem;
  }
}

.office-showcase__img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

/* Seasonal Campaigns & Diyeh Adequacy Checker */
.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.campaign-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  position: relative;
  overflow: hidden;
}

.campaign-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--navy-800), var(--gold-500));
}

.diyeh-checker {
  background: linear-gradient(155deg, var(--navy-950), var(--navy-800));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(229, 185, 95, 0.28);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 1180px) {
  .office-showcase,
  .diyeh-checker,
  .tracker-form-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .stepper,
  .tracker-meta-grid,
  .campaigns-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .sbs-selectors,
  .stepper,
  .tracker-meta-grid,
  .campaigns-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Phase 4 (Item #2): B2B Corporate / Schools Portal & Agency Admin Web Panel
   ========================================================================== */

/* B2B Tracks & Excel Template Bar */
.b2b-tracks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.b2b-track-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.b2b-track-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-800), var(--gold-500));
}

.b2b-track-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue-500);
  box-shadow: var(--shadow-md);
}

.b2b-track-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.b2b-track-card__icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.template-dl-bar {
  background: linear-gradient(150deg, var(--navy-950) 0%, var(--navy-800) 65%, #1d468a 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3.2vw, 2.3rem);
  border: 1px solid rgba(229, 185, 95, 0.32);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 2rem;
}

.template-dl-bar__btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Admin Orders Login & Dashboard */
.admin-login-card {
  max-width: 540px;
  margin-inline: auto;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  box-shadow: var(--shadow-md);
}

.admin-mode-banner {
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--blue-50);
  border: 1px solid var(--border-strong);
  font-size: 0.86rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.6rem;
}

.admin-kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--navy-800);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
}

.admin-kpi-card--pending {
  border-top-color: var(--gold-500);
}
.admin-kpi-card--reminders {
  border-top-color: #d97706;
}
.admin-kpi-card--b2b {
  border-top-color: var(--blue-600);
}
.admin-kpi-card--issued {
  border-top-color: var(--emerald-600);
}

.admin-kpi-card__label {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.35rem;
}

.admin-kpi-card__val {
  font-size: 1.52rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.admin-toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-toolbar__search {
  flex: 1 1 260px;
  max-width: 380px;
}

.admin-order-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-order-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 2.6vw, 1.8rem);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition);
}

.admin-order-card--b2b {
  border-color: rgba(206, 156, 60, 0.55);
  box-shadow: 0 10px 26px rgba(206, 156, 60, 0.08);
}

.admin-order-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border-light);
  margin-bottom: 1.1rem;
}

.b2b-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f7e6bd, #e5b95f);
  color: #162642;
  font-size: 0.76rem;
  font-weight: 900;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.79rem;
  font-weight: 800;
}
.status-pill--received {
  background: var(--gold-100);
  color: #8a5b07;
}
.status-pill--sanhab_check {
  background: var(--blue-50);
  color: var(--blue-600);
}
.status-pill--invoice_ready {
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
}
.status-pill--issued {
  background: var(--emerald-100);
  color: var(--emerald-600);
}

[data-theme='dark'] .status-pill--received {
  background: rgba(229, 185, 95, 0.18);
  color: var(--gold-400);
}
[data-theme='dark'] .status-pill--invoice_ready {
  background: rgba(167, 139, 250, 0.18);
  color: #c4b5fd;
}

.admin-order-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.admin-order-meta__item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
}
.admin-order-meta__item span {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 0.18rem;
}
.admin-order-meta__item strong {
  font-size: 0.89rem;
  font-weight: 800;
  color: var(--text-primary);
}

.admin-notes-box {
  background: var(--bg-subtle);
  border-right: 3px solid var(--blue-500);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  white-space: pre-line;
}

.admin-files-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}

.admin-editor-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.05rem 1.15rem;
}

.admin-editor-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.45fr auto;
  gap: 0.85rem;
  align-items: end;
}

.admin-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.admin-contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-light);
}

@media (max-width: 1180px) {
  .b2b-tracks-grid,
  .template-dl-bar,
  .admin-editor-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-kpi-grid,
  .admin-order-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-kpi-grid,
  .admin-order-meta {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Phase 5 (v005): Interactive Glossary & Inline Term Chips, Quick Annual
   Renewal, Installment & Check Schedule Calculator, Coverage SEO, Social
   Media Kit & Official Printable A4 Proforma Sheet
   ========================================================================== */

/* 1A. Inline Glossary Term Chips & Knowledge Glossary Cards */
.term-helper-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.48rem;
  margin-top: 0.9rem;
  padding: 0.72rem 0.95rem;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px dashed var(--border-strong);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.term-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.62rem;
  border-radius: var(--radius-pill);
  border: 1px dashed var(--blue-500);
  background: var(--blue-50);
  color: var(--blue-600);
  font-family: inherit;
  font-size: 0.79rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition);
  vertical-align: middle;
}

.term-chip:hover,
.term-chip:focus-visible {
  background: var(--blue-600);
  color: #fff;
  border-style: solid;
  outline: none;
}

.term-chip__q {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(37, 88, 168, 0.16);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
}

.term-chip:hover .term-chip__q {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.glossary-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.45rem 1.55rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  transition: border-color var(--transition), transform var(--transition);
}

.glossary-card:hover {
  border-color: var(--blue-500);
  transform: translateY(-2px);
}

.glossary-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.glossary-card__title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
}

.glossary-card__full {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-600);
  margin-top: 0.2rem;
}

.glossary-card__example {
  padding: 0.68rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border-right: 3px solid var(--gold-500);
  font-size: 0.83rem;
  color: var(--text-secondary);
}

/* 2A. 1-Click Returning Policyholder Quick Renewal */
.renewal-card {
  background: var(--bg-surface);
  border: 1.5px solid rgba(14, 138, 95, 0.42);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3.2vw, 2.3rem);
  box-shadow: 0 14px 34px rgba(14, 138, 95, 0.08);
  position: relative;
  overflow: hidden;
}

.renewal-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--emerald-600), var(--blue-600), var(--gold-500));
}

.renewal-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 2rem;
  align-items: center;
}

.renewal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.28rem 0.78rem;
  border-radius: var(--radius-pill);
  background: var(--emerald-100);
  color: var(--emerald-600);
  font-size: 0.77rem;
  font-weight: 900;
}

[data-theme='dark'] .renewal-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.admin-order-card--renewal {
  border-color: rgba(14, 138, 95, 0.5);
}

/* 2B. Interactive Installment & Check Schedule Calculator */
.inst-calc-wrap {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3.2vw, 2.35rem);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}

.inst-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.inst-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.inst-kpi-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.95rem;
}

.inst-kpi-box--accent {
  background: linear-gradient(150deg, var(--navy-950), var(--navy-800));
  color: #fff;
  border-color: rgba(229, 185, 95, 0.35);
}

.inst-kpi-box span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.22rem;
}

.inst-kpi-box--accent span {
  color: rgba(255, 255, 255, 0.75);
}

.inst-kpi-box strong {
  font-size: 0.98rem;
  font-weight: 900;
  color: var(--text-primary);
}

.inst-kpi-box--accent strong {
  color: var(--gold-400);
}

.inst-table-wrap {
  max-height: 310px;
  overflow-y: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.inst-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.inst-table th,
.inst-table td {
  padding: 0.68rem 0.85rem;
  text-align: right;
  border-bottom: 1px solid var(--border-light);
}

.inst-table thead th {
  position: sticky;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  z-index: 1;
}

.inst-table tbody tr:last-child td {
  border-bottom: none;
}

/* 3A. Local & Nationwide Service Coverage SEO Cards */
.coverage-seo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.coverage-seo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.coverage-seo-card h3 {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.44;
  margin-bottom: 0.48rem;
  color: var(--text-primary);
}

/* 3B. Admin Social Media Poster Kit (1080x1350 SVG + 1-Click PNG) */
.media-kit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.poster-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.05rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
  min-width: 0;
}

.poster-card__preview {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--navy-950);
}

.poster-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poster-card__caption {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  max-height: 112px;
  overflow-y: auto;
  white-space: pre-line;
  line-height: 1.65;
}

/* 1B. Official Printable A4 Proforma Sheet (#printSheetMount) */
#printSheetMount {
  display: none;
}

.proforma-sheet {
  direction: rtl;
  font-family: 'IRANSansX', Tahoma, sans-serif;
  color: #0b1930;
  background: #ffffff;
  border: 2px solid #0f2547;
  border-radius: 14px;
  padding: 22px 26px;
  max-width: 190mm;
  margin: 0 auto;
}

.proforma-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid #c9963b;
  margin-bottom: 16px;
}

.proforma-sheet__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.proforma-sheet__brand img {
  width: 58px;
  height: 58px;
}

.proforma-sheet__meta {
  text-align: left;
  font-size: 12px;
  line-height: 1.7;
  color: #1e3a6d;
}

.proforma-sheet__banner {
  background: #f3f7fd;
  border: 1px solid #c5d6f0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.proforma-sheet__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 12.5px;
}

.proforma-sheet__table th,
.proforma-sheet__table td {
  border: 1px solid #cbd5e1;
  padding: 8px 11px;
  text-align: right;
}

.proforma-sheet__table th {
  background: #0f2547;
  color: #ffffff;
  font-weight: 800;
}

.proforma-sheet__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px dashed #94a3b8;
  font-size: 11.5px;
  color: #334155;
}

@media (max-width: 1180px) {
  .renewal-grid,
  .inst-calc-wrap,
  .coverage-seo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .media-kit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .glossary-grid,
  .inst-kpi-row,
  .media-kit-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 440px) {
  .bcard-face {
    padding: 1.75rem 1.25rem;
  }
  .bcard-fa-company {
    font-size: 1.38rem;
  }
  .bcard-fa-agent {
    font-size: 1.18rem;
  }
  .bcard-en-title {
    font-size: 1.62rem;
  }
}

/* ==========================================================================
   Phase 6 (v006): دیدگاه‌های تأییدشده بیمه‌گذاران، نوار تماس فوری و قاب دوحالته دفتر
   ========================================================================== */
.reviews-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
  padding: 1.25rem 1.45rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.commitment-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.commitment-card__title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-600);
  font-size: 0.74rem;
  font-weight: 800;
}

.review-stars {
  color: var(--gold-500);
  font-size: 0.96rem;
  letter-spacing: 1px;
  font-weight: 900;
}

.review-city-pill {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.18rem 0.58rem;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-weight: 700;
}

.callback-strip {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: clamp(1.4rem, 3vw, 2.1rem);
  box-shadow: var(--shadow-md);
}

.callback-strip__intro {
  margin-bottom: 1.2rem;
}

.callback-fields-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.callback-fields-grid > *,
.social-admin-grid > *,
.social-form-row > * {
  min-width: 0;
}

.callback-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.26rem 0.72rem;
  border-radius: var(--radius-pill);
  background: rgba(37, 88, 168, 0.12);
  color: var(--blue-600);
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-order-card--callback {
  border-right: 4px solid var(--blue-600);
}

/* قاب دوحالته تابلوی برداری + تصویر محیط واقعی دفتر در contact.html */
.office-media-frame {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.office-view-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.32rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

.office-view-tab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.81rem;
  font-weight: 800;
  padding: 0.44rem 0.95rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
}

.office-view-tab.is-active {
  background: var(--navy-900);
  color: var(--gold-400);
  box-shadow: var(--shadow-xs);
}

.office-showcase__img--photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
}

.office-photo-caption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  font-weight: 700;
}

.office-photo-empty {
  padding: 1.65rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--border-strong);
  background: var(--bg-subtle);
}

/* استودیو مدیریت دیدگاه‌ها و تصویر دفتر در admin-orders.html */
.social-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: start;
}

.social-admin-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.45rem;
  box-shadow: var(--shadow-sm);
}

.social-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 360px;
  overflow-y: auto;
}

.admin-review-item {
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  font-size: 0.84rem;
}

.admin-review-item--pending {
  border-right: 3px solid var(--gold-500);
}

.admin-review-item--approved {
  border-right: 3px solid var(--emerald-600);
}

.admin-office-preview {
  padding: 0.9rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
  background: var(--bg-subtle);
  text-align: center;
}

.admin-office-preview img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 0.45rem;
}

@media (max-width: 1180px) {
  .callback-fields-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .social-admin-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .callback-fields-grid,
  .social-form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Phase 7 (v007): دستیار بازدید تصویری ۶ زاویه بدنه + همراه اضطراری صحنه تصادف
   ========================================================================== */
.smart-tools-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.smart-tools-duo > *,
.insp-meta-grid > *,
.insp-slots-grid > *,
.copilot-body-grid > *,
.copilot-choice-row > * {
  min-width: 0;
}

.smart-tool-banner {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.smart-tool-banner:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-600);
}

.smart-tool-banner--emergency {
  border-right: 4px solid var(--gold-500);
}

.smart-tool-banner strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.smart-tool-banner p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin: 0;
}

.smart-tool-banner__cta {
  font-size: 0.83rem;
  font-weight: 800;
  color: var(--blue-600);
}

/* استودیو بازدید تصویری ۶ زاویه بدنه */
.insp-studio-shell {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-md);
}

.insp-studio-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.35rem;
}

.insp-rules-pills {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-shrink: 0;
}

.insp-rules-pills span {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.insp-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.insp-progress-wrap {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.35rem;
}

.insp-progress-track {
  width: 100%;
  height: 10px;
  border-radius: var(--radius-pill);
  background: rgba(148, 163, 184, 0.25);
  overflow: hidden;
}

.insp-progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--blue-600), var(--emerald-600));
  transition: width 260ms ease;
}

.insp-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.05rem;
}

.insp-slot-card {
  background: var(--bg-subtle);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  transition: border-color var(--transition), background-color var(--transition);
}

.insp-slot-card.is-filled {
  border-style: solid;
  border-color: var(--emerald-600);
  background: var(--bg-surface);
}

.insp-slot-wireframe {
  height: 62px;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
}

.insp-slot-preview {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #07142b;
}

.insp-slot-preview img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: contain;
  display: block;
}

.insp-submit-bar {
  margin-top: 1.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.body-insp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.26rem 0.72rem;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.14);
  color: var(--emerald-600);
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-order-card--body-insp {
  border-right: 4px solid var(--emerald-600);
}

/* همراه اضطراری آفلاین سر صحنه تصادف (Accident-Scene Copilot) */
.copilot-shell {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.copilot-top-bar {
  background: linear-gradient(145deg, var(--navy-950), var(--navy-800));
  color: #fff;
  padding: clamp(1.35rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.copilot-offline-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.68rem;
  border-radius: var(--radius-pill);
  background: rgba(229, 185, 95, 0.22);
  color: var(--gold-400);
  border: 1px solid rgba(229, 185, 95, 0.45);
  font-size: 0.74rem;
  font-weight: 800;
}

.smart-tool-banner .copilot-offline-pill {
  background: var(--gold-100);
  color: var(--navy-900);
  border-color: var(--gold-400);
}

.copilot-dial-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.copilot-dial-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  font-size: 0.8rem;
  font-weight: 800;
  transition: transform var(--transition), background-color var(--transition);
}

.copilot-dial-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

.copilot-dial-btn--danger {
  background: #dc2626;
  border-color: #ef4444;
}

.copilot-dial-btn--gold {
  background: var(--gold-500);
  color: var(--navy-950);
  border-color: var(--gold-400);
}

.copilot-body-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  padding: clamp(1.25rem, 2.8vw, 1.85rem);
}

.copilot-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
}

.copilot-q-block {
  margin-bottom: 1rem;
}

.copilot-q-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.48rem;
}

.copilot-choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.copilot-choice {
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: right;
  cursor: pointer;
  line-height: 1.5;
  transition: all var(--transition);
}

.copilot-choice.is-selected {
  background: var(--navy-900);
  color: #fff;
  border-color: var(--navy-900);
  box-shadow: var(--shadow-xs);
}

.copilot-verdict {
  margin-top: 1.15rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  line-height: 1.75;
}

.copilot-verdict--ok {
  background: rgba(16, 185, 129, 0.12);
  border: 1.5px solid var(--emerald-600);
  color: var(--text-primary);
}

.copilot-verdict--warn {
  background: rgba(245, 158, 11, 0.14);
  border: 1.5px solid #d97706;
  color: var(--text-primary);
}

.copilot-verdict--danger {
  background: rgba(220, 38, 38, 0.12);
  border: 1.5px solid #dc2626;
  color: var(--text-primary);
}

.copilot-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.copilot-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.68rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  font-size: 0.82rem;
  line-height: 1.65;
  cursor: pointer;
}

.copilot-check-item input[type='checkbox'] {
  margin-top: 0.25rem;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--emerald-600);
}

.copilot-memo-box {
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px dashed var(--border-strong);
}

@media (max-width: 1180px) {
  .insp-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .insp-slots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .copilot-body-grid,
  .smart-tools-duo {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .insp-meta-grid,
  .insp-slots-grid,
  .copilot-choice-row,
  .claims-direct-rem-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Phase 10: 20-Second Warm Lead Expiry SMS Reminder System (v010)
   ========================================================================== */
.expiry-reminder-strip {
  background: linear-gradient(135deg, rgba(229, 185, 95, 0.1), rgba(37, 88, 168, 0.05)), var(--bg-surface);
  border: 1.5px solid rgba(206, 156, 60, 0.45);
  border-radius: var(--radius-xl);
  padding: clamp(1.35rem, 2.8vw, 2rem);
  box-shadow: var(--shadow-md);
}

.expiry-reminder-strip__intro {
  margin-bottom: 1.15rem;
}

.expiry-rem-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.26rem 0.78rem;
  border-radius: var(--radius-pill);
  background: rgba(217, 119, 6, 0.14);
  color: #b45309;
  font-size: 0.76rem;
  font-weight: 800;
}

[data-theme='dark'] .expiry-rem-badge {
  background: rgba(245, 158, 11, 0.22);
  color: #fcd34d;
}

.admin-order-card--expiry-rem {
  border-right: 4px solid #d97706;
}

.claims-direct-rem-box {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px dashed rgba(206, 156, 60, 0.55);
}

.claims-direct-rem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.claims-direct-rem-grid > * {
  min-width: 0;
}

/* ==========================================================================
   Phase 11: Economic Household Fire & Earthquake Postal-Code Quick-Issue
   + Auto Insurance Cross-Sell Add-on (v011)
   ========================================================================== */
.home-bundle-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.26rem 0.78rem;
  border-radius: var(--radius-pill);
  background: rgba(14, 138, 95, 0.13);
  color: var(--emerald-600);
  font-size: 0.76rem;
  font-weight: 800;
}

[data-theme='dark'] .home-bundle-badge {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
}

.admin-order-card--home-bundle {
  border-right: 4px solid var(--emerald-600);
}

.home-bundle-spotlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.2rem 1.45rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(14, 138, 95, 0.08), rgba(229, 185, 95, 0.1)), var(--bg-surface);
  border: 1.5px solid rgba(14, 138, 95, 0.35);
  box-shadow: var(--shadow-sm);
}

.postal-home-studio {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.9rem;
  align-items: start;
}

.postal-home-studio > * {
  min-width: 0;
}

.postal-tier-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.postal-tier-btn {
  text-align: right;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background: var(--bg-subtle);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.postal-tier-btn strong {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-primary);
}

.postal-tier-btn span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.postal-tier-btn.is-active {
  border-color: var(--blue-600);
  background: var(--blue-50);
  box-shadow: var(--shadow-xs);
}

[data-theme='dark'] .postal-tier-btn.is-active {
  background: rgba(37, 88, 168, 0.24);
  border-color: var(--gold-400);
}

.postal-home-result-card {
  background: linear-gradient(155deg, var(--navy-950), var(--navy-800));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.45rem;
  border: 1px solid rgba(229, 185, 95, 0.32);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.postal-home-result-card .estimate-metric {
  align-items: flex-start;
  gap: 1rem;
}

.postal-home-result-card .estimate-metric > span {
  flex-shrink: 0;
  white-space: nowrap;
}

.postal-home-result-card .estimate-metric > strong {
  text-align: left;
}

.cross-sell-home-box {
  border-radius: var(--radius-lg);
  border: 1.5px dashed rgba(14, 138, 95, 0.5);
  background: linear-gradient(135deg, rgba(14, 138, 95, 0.06), rgba(229, 185, 95, 0.07)), var(--bg-surface);
  padding: 1rem 1.15rem;
}

.cross-sell-home-box__toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.cross-sell-home-box__toggle input[type='checkbox'] {
  margin-top: 0.3rem;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  accent-color: var(--emerald-600);
}

.cross-sell-home-box__toggle strong {
  display: block;
  font-size: 0.93rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.cross-sell-home-box__toggle p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.65;
}

.cross-sell-home-box__fields {
  margin-top: 0.95rem;
  padding-top: 0.95rem;
  border-top: 1px dashed var(--border-strong);
}

.cross-sell-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.cross-sell-home-grid > * {
  min-width: 0;
}

.cross-sell-home-box__summary {
  margin-top: 0.75rem;
  padding: 0.58rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--emerald-600);
}

@media (max-width: 980px) {
  .postal-home-studio {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .postal-tier-cards,
  .cross-sell-home-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Phase 12 Calm UX Decluttering:
   - نوار ۴ کارتی کم‌حجم ابزارهای سریع در صفحه نخست (.quick-tools-grid)
   - هاب تب‌بندی‌شده ۲ خدمت تلفنی/پیامکی بدون تکرار فرم‌ها (.quick-assist-hub)
   ========================================================================== */
.quick-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.quick-tool-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.quick-tool-tile:hover {
  transform: translateY(-2px);
  border-color: var(--blue-500);
  box-shadow: var(--shadow-sm);
}

.quick-tool-tile__tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: 0.18rem 0.58rem;
  border-radius: var(--radius-pill);
}

.quick-tool-tile__title {
  font-size: 0.93rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.42;
}

.quick-tool-tile__desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.62;
}

.quick-assist-hub {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: clamp(1.15rem, 2.5vw, 1.65rem);
  box-shadow: var(--shadow-sm);
}

.quick-assist-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.32rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  margin-bottom: 1.15rem;
}

.quick-assist-tab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 0.48rem 1.05rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
}

.quick-assist-tab.is-active {
  background: var(--navy-900);
  color: var(--gold-400);
  box-shadow: var(--shadow-xs);
}

.callback-strip--tabbed,
.expiry-reminder-strip--tabbed {
  margin-top: 0 !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  background: transparent !important;
}

@media (max-width: 1120px) {
  .quick-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .quick-tools-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .quick-assist-tabs {
    display: flex;
    border-radius: var(--radius-md);
  }
  .quick-assist-tab {
    width: 100%;
    text-align: center;
    border-radius: var(--radius-sm);
  }
}

/* ==========================================================================
   Phase 13 Calm Mobile Accordion for Service Cards (Zero Desktop Change)
   ========================================================================== */
.service-card__mobile-toggle {
  display: none;
}

@media (max-width: 680px) {
  .service-card__desc {
    margin-bottom: 0.55rem;
  }

  .service-card__mobile-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--blue-600);
    background: var(--blue-50);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    padding: 0.26rem 0.72rem;
    cursor: pointer;
    transition: all var(--transition);
  }

  [data-theme='dark'] .service-card__mobile-toggle {
    background: rgba(59, 130, 246, 0.14);
    color: #93c5fd;
  }

  .service-card__mobile-toggle-caret {
    display: inline-block;
    font-size: 0.76rem;
    transition: transform var(--transition);
  }

  .service-card:not(.is-mobile-expanded) .service-card__highlights {
    display: none;
  }

  .service-card.is-mobile-expanded .service-card__highlights {
    display: flex;
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px dashed var(--border-light);
  }

  .service-card.is-mobile-expanded .service-card__mobile-toggle-caret {
    transform: rotate(180deg);
  }
}

/* ==========================================================================
   ترازبندی استاندارد متون فارسی (RTL Justify با خط پایانی راست‌چین)
   ========================================================================== */
.hero__desc,
.service-card__desc,
.service-card__highlights li,
.gateway-card__desc,
.edu-perk__desc,
.pillar-box__text,
.claim-step__desc,
.faq-answer,
.faq-answer p,
.prose-card:not([style*='center']) p,
.prose-list li,
.info-card p,
.knowledge-card p,
.testimonial-card__quote,
.callback-strip__intro p,
.expiry-reminder-strip__intro p,
.cross-sell-home-box__toggle p,
.office-photo-empty p,
.social-admin-card > p,
.smart-tool-banner p,
.insp-studio-head p,
.copilot-top-bar p,
.copilot-verdict p,
.copilot-check-item span,
.glossary-card p,
.glossary-card__example,
.coverage-seo-card p,
.b2b-track-card p,
.template-dl-bar p,
.cta-banner p,
.office-showcase__intro p,
.visit-routing-card p,
.footer__grid p,
.modal > p,
.modal__list li,
.admin-notes-box {
  text-align: justify;
  text-align-last: right;
}

/* ==========================================================================
   Phase 16 (v016): ارگونومی واقعی موبایل باریک (360px/iOS) + نوار سلامت فنی هاست
   ========================================================================== */
.admin-diag-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.3rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.admin-diag-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed var(--border-light);
}

.admin-diag-panel__title {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text-primary);
}

.admin-diag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-diag-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.admin-diag-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.admin-diag-item__label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-primary);
}

.admin-diag-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.52rem;
  border-radius: var(--radius-pill);
  font-size: 0.73rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-diag-badge--ok {
  background: var(--emerald-100);
  color: var(--emerald-600);
}

.admin-diag-badge--warn {
  background: var(--gold-100);
  color: var(--gold-600);
}

[data-theme='dark'] .admin-diag-badge--ok {
  color: #6ee7b7;
}

[data-theme='dark'] .admin-diag-badge--warn {
  color: #fcd34d;
}

.admin-diag-item__desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

@media (max-width: 960px) {
  .admin-diag-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  /* جلوگیری از بزرگ‌نمایی ناخواسته صفحه‌کلید در iOS Safari و مرورگرهای موبایل */
  .input,
  .select,
  .textarea,
  input[type='text'],
  input[type='tel'],
  input[type='number'],
  input[type='email'],
  input[type='password'],
  input[type='search'] {
    font-size: 1rem !important;
  }
}

@media (max-width: 680px) {
  .admin-diag-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* جلوگیری از بیرون‌زدگی دکمه‌های دارای متن بلند در گوشی‌های باریک (360px تا 390px) */
  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.45;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  body.is-proforma-printing {
    background: #ffffff !important;
    color: #0b1930 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.is-proforma-printing > *:not(#printSheetMount) {
    display: none !important;
  }

  body.is-proforma-printing #printSheetMount {
    display: block !important;
  }
}

/* ==========================================================================
   فرم‌های پیشنهاد رسمی بیمه‌نامه (v019): فهرست دانلود در پنجرهٔ رشته‌ها و صفحهٔ forms.html
   ========================================================================== */
.service-card__forms-note {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.4rem 0 0;
  padding: 0;
}

.form-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
}

.form-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.form-item__title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--text-primary);
}

.form-item__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.form-item__btn {
  flex-shrink: 0;
}

.form-list__note {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.forms-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
}

.forms-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.3rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.forms-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.forms-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.6;
  color: var(--text-primary);
}

.forms-card__desc {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.forms-card__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cartable-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border-light);
  border-right: 3px solid var(--gold-500);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}

.cartable-callout p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@media (max-width: 680px) {
  .form-item {
    flex-direction: column;
    align-items: stretch;
  }
  .form-item__btn {
    width: 100%;
    text-align: center;
  }
}
/* ==========================================================================
   صفحه‌های معرفی هر رشته و نوار تماس (v019 — حالت «فقط معرفی محصولات»)
   ========================================================================== */
.product-layout {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr);
  align-items: start;
}

.product-visual {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 16rem;
  padding: 2rem 1.4rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #112244 0%, #2558a8 64%, #ce9c3c 150%);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.product-visual svg {
  width: 92px;
  height: 92px;
  stroke-width: 1.4;
}

.product-visual__label {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.7;
}

.product-visual__code {
  font-size: 0.8rem;
  opacity: 0.85;
}

.product-body h2 {
  margin: 1.7rem 0 0.7rem;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-primary);
}

.product-body h2:first-child {
  margin-top: 0;
}

.contact-strip {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.contact-strip__item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: inherit;
  text-decoration: none;
}

.contact-strip__item:hover {
  border-color: var(--blue-600);
}

.contact-strip__label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact-strip__value {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-primary);
}

@media (max-width: 860px) {
  .product-layout {
    grid-template-columns: 1fr;
  }
  .product-visual {
    position: static;
    min-height: 11rem;
  }
}
/* ==========================================================================
   v019b — اصلاح چیدمان: شبکهٔ ۳ ستونی کارت‌ها، قهرمان دوستونهٔ صفحهٔ رشته و کارت‌های بدنه
   ========================================================================== */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.service-card__actions {
  flex-wrap: wrap;
}

.service-card__actions .btn {
  flex: 1 1 9rem;
  justify-content: center;
  text-align: center;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: center;
}

.product-hero .product-visual {
  position: static;
  min-height: 14rem;
}

.subhero .hero__ctas {
  margin-top: 1.1rem;
  margin-bottom: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}

.product-card {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.product-card--wide {
  grid-column: 1 / -1;
}

.product-card h2 {
  margin: 0 0 0.8rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-primary);
}

.product-card .form-list__note {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .product-hero {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .product-hero .product-visual {
    flex-direction: row;
    justify-content: flex-start;
    min-height: 0;
    padding: 0.9rem 1.1rem;
    gap: 0.9rem;
    text-align: right;
  }
  .product-hero .product-visual svg {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }
  .product-hero .product-visual__code {
    display: none;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
}
/* v019c — صفحهٔ فرم‌ها به‌صورت ستونی (بدون کشیدگی و فضای خالی)، خانهٔ دوکارتی صفحهٔ نخست و کارت‌های حریم خصوصی */
#proposalFormsMount.forms-grid {
  display: block;
  columns: 3 20rem;
  column-gap: 1.1rem;
}

#proposalFormsMount .forms-card {
  break-inside: avoid;
  margin-bottom: 1.1rem;
}

.forms-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

@media (max-width: 760px) {
  .forms-grid--two {
    grid-template-columns: 1fr;
  }
}

.split-grid {
  align-items: start;
}