:root {
  --brand-primary: #1d3557;
  --brand-dark: #0b1020;
  --brand-accent: #d4a017;
  --brand-accent-soft: #f3dcb0;
  --surface: #ffffff;
  --surface-muted: #f5f6fb;
  --border-color: #e0e3ec;
  --text-muted: #6b7280;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --gradient-body: radial-gradient(circle at 20% 20%, rgba(212, 160, 23, 0.16), transparent 40%), radial-gradient(circle at 80% 0%, rgba(29, 53, 87, 0.2), transparent 45%), #f4f6fb;
  --gradient-hero: linear-gradient(135deg, rgba(13, 20, 32, 0.92), rgba(29, 53, 87, 0.9));
  font-size: 16px;
}

body {
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  direction: rtl;
  text-align: right;
  background: var(--gradient-body);
  color: #101828;
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

.landing-body {
  min-height: 100vh;
  background: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #1d3557, #132844);
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(19, 40, 68, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #243f68, #182f4d);
  box-shadow: 0 18px 28px rgba(19, 40, 68, 0.45);
}

.btn-outline-primary {
  color: var(--brand-primary);
  border-color: rgba(29, 53, 87, 0.35);
  background-color: rgba(255, 255, 255, 0.85);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #fff;
  background-color: var(--brand-primary);
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(16, 24, 40, 0.06);
}

.top-nav .navbar-brand {
  color: var(--brand-dark);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.navbar .nav-link {
  font-weight: 500;
  color: #475467;
  padding-inline: 0.75rem;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
  color: var(--brand-primary);
}

.navbar .btn-primary {
  padding-inline: 1.75rem;
}

.badge.text-bg-soft-primary {
  color: var(--brand-primary);
  background-color: rgba(31, 75, 153, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
}

.hero-section {
  background: var(--gradient-hero);
  position: relative;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
  color: #f7fafc;
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-background.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-section > .container-xl {
  position: relative;
  z-index: 1;
}

.hero-section .badge.text-bg-soft-primary {
  background: rgba(255, 255, 255, 0.18);
  color: #f9fafc;
}

.hero-section .lead,
.hero-section h1 {
  color: #f8fafc;
}



.hero-panel {
  border-radius: var(--radius-lg);
  background: rgba(6, 11, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  padding: 2rem;
  color: #eef2ff;
}

.hero-panel .list-group-item {
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  padding-inline: 0;
  padding-block: 1rem;
  color: #f4f6ff;
}

.hero-panel .list-group-item:last-child {
  border-bottom: none;
}

.hero-panel small {
  color: rgba(232, 238, 255, 0.75);
}

.hero-panel .status-chip {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #0f172a;
}

.hero-stats .stat-card {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.stat-card strong {
  font-size: 1.375rem;
  display: block;
  color: var(--brand-dark);
}

.stat-card span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.status-chip {
  border-radius: 999px;
  padding: 0.25rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-warning {
  background-color: #fff7ed;
  color: #b45309;
}

.status-info {
  background-color: #eff6ff;
  color: #1d4ed8;
}

.status-success {
  background-color: #ecfdf5;
  color: #047857;
}

.section-space {
  padding-block: 4.5rem;
}

.section-muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 246, 251, 0.9));
}

.section-eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--brand-accent);
  letter-spacing: 0.2em;
}

.service-card,
.feature-card,
.contact-form,
.module-card,
.cta-card {
  position: relative;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.service-card::after,
.feature-card::after,
.module-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(212, 160, 23, 0.2), transparent);
}

.service-card .icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: linear-gradient(135deg, rgba(29, 53, 87, 0.1), rgba(212, 160, 23, 0.2));
}

.section-muted .module-card {
  background-color: #fff;
}

.module-card .overline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.module-summary li {
  padding-inline-start: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  color: var(--text-muted);
}

.module-summary li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-accent);
  position: absolute;
  inset-inline-start: 0;
  top: 0.45rem;
}

.feature-card {
  border-top: 4px solid rgba(29, 53, 87, 0.25);
}

.cta-section {
  background: linear-gradient(120deg, #0b1020, #132544 55%, #1d3557 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 10% auto auto 15%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(10px);
}

.cta-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: #fff;
}

.cta-card .btn {
  align-self: flex-start;
  background-color: #fff;
  color: var(--brand-primary);
  border: none;
  font-weight: 600;
}

.contact-form {
  border-radius: var(--radius-lg);
}

.contact-info strong {
  display: block;
  margin-bottom: 0.4rem;
}

.map-placeholder {
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}

footer {
  background-color: #fff;
}

.language-switcher select {
  min-width: 140px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background-color: rgba(255, 255, 255, 0.85);
}

.language-picker {
  border-radius: 999px;
  padding-inline: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.15);
}

.contact-form .btn-primary {
  padding-block: 0.9rem;
}

form .form-control {
  border-radius: var(--radius-sm);
}

form .form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.2rem rgba(31, 75, 153, 0.15);
}

.hero-panel,
.service-card,
.feature-card,
.module-card,
.contact-form,
.cta-card {
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
}

.contact-form button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-body {
  min-height: 100vh;
  background: radial-gradient(circle at 10% 20%, rgba(212, 160, 23, 0.15), transparent 45%), radial-gradient(circle at 80% 0%, rgba(13, 20, 32, 0.4), transparent 50%), #02060f;
}

.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.login-hero {
  padding: 2rem;
  color: #f2f6ff;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-primary), #2f6ed8);
  display: inline-block;
}

.login-highlights li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.5rem;
  color: rgba(226, 232, 255, 0.85);
}

.login-hero .text-secondary,
.login-highlights span {
  color: rgba(236, 240, 255, 0.85) !important;
}

.login-highlights i {
  font-size: 1.1rem;
  color: var(--brand-primary);
}

.login-panel {
  max-width: 520px;
  margin-inline: auto;
}

.login-panel .card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 35px 60px rgba(2, 6, 15, 0.35);
}

.password-toggle {
  border-inline-start: none;
}

.password-toggle i {
  color: var(--text-muted);
}

.role-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: #fff;
  padding: 1rem;
  height: 100%;
}

.role-card .role-label {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.role-card + .role-card {
  margin-top: 0;
}

.role-callout {
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

@media (max-width: 991.98px) {
  .navbar .nav-link {
    padding-block: 0.5rem;
  }

  .cta-card {
    text-align: center;
    align-items: center;
  }

  .cta-card .btn {
    align-self: center;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding-block: 3.5rem;
  }

  .hero-panel {
    padding: 1.5rem;
  }

  .stat-card strong {
    font-size: 1.2rem;
  }
}
