:root {
  --brand-primary: #0a66ff;
  --brand-secondary: #00d4ff;
  --brand-dark: #0b1c3c;
  --brand-light: #f3f5fb;
  --surface: #ffffff;
  --surface-muted: #f7f9fc;
  --text-primary: #0f172a;
  --text-muted: #6b7280;
  --shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.16);
  --radius-xl: 1.5rem;
  --radius-lg: 1rem;
}

.seller-category-label {
    text-align: right !important;
}

input.form-control.nav-search__input {
    border: none !important;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/webfonts/Vazirmatn-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/webfonts/Vazirmatn-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/webfonts/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/webfonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/webfonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/webfonts/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/webfonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/webfonts/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/webfonts/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}


body {
    font-family: 'Vazirmatn', sans-serif;
}


html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  background-color: var(--brand-light);
  direction: rtl;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(13, 110, 253, 0.4);
}

html, body {
  min-height: 100%;
}

body {
  margin-bottom: 0;
}

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1 0 auto;
  padding-bottom: 3rem;
}

.footer {
  margin-top: auto;
}

.footer {
  position: static;
  line-height: normal;
}

.site-body {
  color: var(--text-primary);
  background: radial-gradient(circle at top right, rgba(10, 102, 255, 0.12), transparent 45%),
              radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.08), transparent 40%),
              var(--brand-light);
  position: relative;
  overflow-x: hidden;
}

.site-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(transparent 95%, rgba(15, 23, 42, 0.04) 96%),
                    linear-gradient(90deg, transparent 95%, rgba(15, 23, 42, 0.04) 96%);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -1;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.card-soft {
  border: 0;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px);
}

.site-header .navbar {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.site-header {
  position: relative;
  z-index: 3000;
}

.navbar-brand {
  letter-spacing: -0.5px;
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  flex: 1 1 260px;
  max-width: 520px;
}

.nav-search__icon-plain {
  color: #94a3b8;
}

.nav-search__input {
  border: none;
  box-shadow: none;
  padding: 0.4rem 0;
  background: transparent;
}

.nav-search__input:focus {
  box-shadow: none;
}

.nav-search__panel {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  margin-top: 0.5rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  padding: 0.5rem;
  z-index: 4000;
  max-height: 360px;
  overflow-y: auto;
}

.nav-search__section + .nav-search__section {
  border-top: 1px dashed rgba(15, 23, 42, 0.12);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.nav-search__section-title {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.nav-search__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.nav-search__item:hover {
  background: #f8fafc;
}

.nav-search__icon {
  width: 34px;
  height: 34px;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #0f172a;
  flex-shrink: 0;
}

.nav-search__icon[data-type="service"] {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.nav-search__icon[data-type="category"] {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.nav-search__icon[data-type="blog"] {
  background: rgba(249, 115, 22, 0.12);
  color: #ea580c;
}

.nav-search__title {
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-search__meta {
  font-size: 0.78rem;
  color: #6b7280;
}

.nav-search__empty {
  padding: 0.6rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
}

@media (max-width: 991.98px) {
  .nav-search {
    order: 3;
    width: 100%;
    max-width: none;
    margin: 0.6rem 0 0;
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary), #346dff);
  border: none;
  box-shadow: 0 10px 24px rgba(10, 102, 255, 0.25);
}

.btn-outline-primary {
  border-color: rgba(10, 102, 255, 0.4);
  color: var(--brand-primary);
}

.btn-outline-primary:hover {
  background: rgba(10, 102, 255, 0.08);
}

.btn-dark {
  background: #0f172a;
  border: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
}

.form-control,
.form-select {
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  padding: 0.65rem 0.9rem;
}

.table {
  border-collapse: separate;
  border-spacing: 0 0.75rem;
}

.table thead th {
  background: transparent;
  border: none;
  color: var(--text-muted);
}

.table tbody tr {
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.table tbody td {
  border-top: none;
}

.hero-banner {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(99, 102, 241, 0.08));
}

.cta-banner {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(13, 110, 253, 0.02));
}

.stat-card {
  background: white;
  border-radius: 0.75rem;
  border: 1px solid rgba(13, 110, 253, 0.1);
}

.hero-apple {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(245, 247, 255, 0.7));
  padding: 6rem 0 4rem;
  border-radius: var(--radius-xl);
  margin-top: 2rem;
  box-shadow: var(--shadow-strong);
}

.section-apple {
  padding: 4.5rem 0;
}

.section-apple--alt {
  background: #f8fafc;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero-card {
  background: #111111;
  color: #ffffff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.hero-card__title {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2rem;
  color: rgba(255, 255, 255, 0.6);
}

.hero-card__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.hero-card__value {
  font-size: 1.75rem;
  font-weight: 700;
}

.hero-card__label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-card__note {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.feature-apple {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-soft);
}

.feature-apple__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 1rem;
}

.category-apple {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-apple:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.category-apple__title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.category-apple__desc {
  color: #6b7280;
  font-size: 0.95rem;
  min-height: 48px;
}

.category-apple__link {
  margin-top: 1.5rem;
  display: inline-flex;
  color: #111111;
  text-decoration: none;
  font-weight: 600;
}

.cta-apple {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-strong);
}

@media (max-width: 768px) {
  .hero-apple {
    padding: 4rem 0 3rem;
  }

  .hero-card__stats {
    grid-template-columns: 1fr;
  }

  .cta-apple {
    flex-direction: column;
    text-align: center;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.badge-soft {
  background: rgba(13, 110, 253, 0.1);
  color: var(--brand-dark);
}

.table thead th {
  background-color: #f8fafc;
}

.rtl-input {
  text-align: right;
}

.ltr-input {
  text-align: left;
}

.map-container {
  background: linear-gradient(135deg, #e9ecef, #f8f9fa);
  border: 1px dashed #ced4da;
  border-radius: 0.75rem;
  height: 300px;
  min-height: 260px;
  position: relative;
}

.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
}

.form-section-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.product-main-image {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.product-main-image--placeholder {
  height: 360px;
  background: #f8fafc;
  border: 1px dashed rgba(15, 23, 42, 0.2);
}

.product-thumb {
  width: 76px;
  height: 76px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #fff;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumb.active {
  border-color: var(--brand-primary);
}

.market-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.market-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.market-card--highlight {
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.18);
}

.market-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

.market-card__image-link {
  display: block;
  text-decoration: none;
}

.market-card__image,
.market-card__image-placeholder {
  width: 100%;
  height: 180px;
}

.market-card__image {
  object-fit: cover;
  display: block;
  background: #fff;
}

.market-card__image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.2);
  background: #f8fafc;
  color: #64748b;
  font-size: 0.8rem;
}

.market-card__body {
  padding: 0.95rem;
}

.market-card__badge {
  display: inline-flex;
  align-items: center;
  background: rgba(14, 165, 233, 0.12);
  color: #0ea5e9;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.market-card__title {
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  line-height: 1.5;
  min-height: 3rem;
  margin-bottom: 0.5rem;
}

.market-card__title:hover {
  color: var(--brand-primary);
}

.market-card__shop {
  font-weight: 600;
  font-size: 0.92rem;
}

.market-card__seller {
  color: var(--text-muted);
  font-size: 0.86rem;
  margin-bottom: 0.2rem;
}

.market-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.market-chip {
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  font-size: 0.74rem;
  padding: 0.2rem 0.55rem;
  color: #334155;
}

.market-card__footer {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.market-card__price {
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.filter-panel__header {
  position: relative;
  z-index: 1;
}

.filter-panel__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.filter-location-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 247, 255, 0.9));
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.filter-location-card__title {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.15rem;
}

.filter-location-card__hint {
  font-size: 0.8rem;
  color: #6b7280;
}

.filter-group {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  padding: 0.9rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  height: 100%;
}

.filter-group__title {
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.filter-search-input {
  background: #f8fafc;
}

.filter-options {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.85rem;
  padding: 0.6rem;
  max-height: 180px;
  overflow-y: auto;
  background: #f8fafc;
}

.filter-range .form-control {
  background: #f8fafc;
}

.price-range {
  background: #f8fafc;
  border-radius: 0.85rem;
  padding: 0.75rem;
  border: 1px dashed rgba(15, 23, 42, 0.15);
}

.price-range__values {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.65rem;
}

.price-range__value {
  min-width: 72px;
  text-align: center;
  background: #fff;
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
}

.price-range__inputs {
  position: relative;
  height: 34px;
}

.price-range__inputs input[type=range] {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  accent-color: #0ea5e9;
  background: transparent;
}

.filter-offcanvas {
  width: 360px;
}

@media (min-width: 992px) {
  .filter-offcanvas {
    position: static;
    border: none;
    background: transparent;
    width: 100%;
    height: auto;
    visibility: visible !important;
    transform: none !important;
  }

  .filter-offcanvas .offcanvas-header {
    display: none;
  }

  .filter-offcanvas .offcanvas-body {
    padding: 0;
  }
}

.wizard-card {
  position: relative;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.wizard-step {
  text-align: center;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.wizard-step.is-active {
  background: rgba(10, 102, 255, 0.12);
  color: var(--brand-primary);
  border-color: rgba(10, 102, 255, 0.25);
}

.wizard-step.is-complete {
  background: rgba(16, 185, 129, 0.12);
  color: #0f766e;
  border-color: rgba(16, 185, 129, 0.25);
}

.wizard-panel {
  display: none;
}

.wizard-panel.is-active {
  display: block;
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.wizard-results-placeholder {
  padding: 2rem;
  border-radius: 1rem;
  border: 1px dashed rgba(15, 23, 42, 0.2);
  background: #f8fafc;
  color: #64748b;
  text-align: center;
}

.category-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.category-card-item {
  position: relative;
}

.category-card-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.category-card__title {
  font-weight: 700;
  color: var(--text-primary);
}

.category-card__hint {
  font-size: 0.82rem;
  color: #64748b;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.category-card-input:checked + .category-card {
  border-color: rgba(10, 102, 255, 0.5);
  box-shadow: 0 18px 36px rgba(10, 102, 255, 0.18);
  transform: translateY(-2px);
}

.product-offers-sort-select {
  min-width: 210px;
}

.list-thumb-image {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 0.6rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
}

.list-thumb-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 0.6rem;
  border: 1px dashed rgba(15, 23, 42, 0.2);
  background: #f8fafc;
  color: #64748b;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.2rem;
}

.product-admin-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.product-admin-item {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: grab;
}

.product-admin-item:hover {
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

[data-image-item].is-dragging .product-admin-item {
  opacity: 0.7;
  border-color: var(--brand-primary);
  box-shadow: 0 16px 30px rgba(10, 102, 255, 0.25);
}

.seller-rating-link {
  color: #f59e0b;
  text-decoration: none;
  font-size: 0.85rem;
}

.seller-rating-link:hover {
  text-decoration: underline;
}

.seller-category-label {
  border-radius: 0.9rem;
  line-height: 1.5;
  transition: all 0.15s ease;
}

.btn-check:checked + .seller-category-label {
  box-shadow: 0 8px 18px rgba(10, 102, 255, 0.22);
}

.nav-auth .nav-item {
  margin: 0;
}

.nav-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary) !important;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-icon-link .bi {
  font-size: 1.1rem;
}

.nav-icon-link:hover {
  color: var(--brand-primary) !important;
  border-color: rgba(10, 102, 255, 0.25);
  box-shadow: 0 12px 26px rgba(10, 102, 255, 0.18);
  transform: translateY(-1px);
  text-decoration: none;
}

.nav-icon-link.btn {
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.blog-hero {
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.blog-card {
  background: #fff;
  border-radius: 1.2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.blog-card__image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.blog-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 0.85rem;
}

.blog-card__image-link {
  display: block;
  text-decoration: none;
}

.blog-card__body {
  padding: 1rem 1.1rem 1.2rem;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.6rem;
}

.blog-card__tag {
  background: rgba(10, 102, 255, 0.1);
  color: var(--brand-primary);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.blog-card__title {
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.blog-card__title:hover {
  color: var(--brand-primary);
}

.blog-card__summary {
  color: #6b7280;
  font-size: 0.92rem;
  min-height: 3.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.blog-card__author {
  font-size: 0.85rem;
  color: #475569;
  font-weight: 600;
}

.blog-card__link {
  font-weight: 600;
  color: var(--brand-primary);
  text-decoration: none;
}

.blog-card__link:hover {
  text-decoration: underline;
}

.blog-load-trigger {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.blog-loader {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  color: #64748b;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.blog-sidebar {
  position: relative;
}

.blog-sidebar-stack {
  position: sticky;
  top: 110px;
  z-index: 10;
}

.blog-sidebar-stack.reveal,
.blog-sidebar-stack.reveal.is-visible {
  opacity: 1;
  transform: none !important;
}

.blog-category-list {
  display: grid;
  gap: 0.75rem;
}

.blog-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-decoration: none;
  color: var(--text-primary);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-category-item:hover {
  border-color: rgba(10, 102, 255, 0.3);
  box-shadow: 0 12px 24px rgba(10, 102, 255, 0.12);
  transform: translateY(-2px);
}

.blog-category-item.is-active {
  border-color: rgba(10, 102, 255, 0.5);
  background: rgba(10, 102, 255, 0.08);
}

.blog-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.blog-editor-wrapper {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.9rem;
  background: #fff;
}

.blog-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.6rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}

.blog-editor-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-editor-toolbar .form-select {
  min-width: 140px;
}

.blog-editor-toolbar .btn {
  border-radius: 0.6rem;
}

.blog-editor {
  min-height: 260px;
  padding: 1rem;
  line-height: 2;
  color: #1f2937;
  outline: none;
}

.blog-editor:empty:before {
  content: "متن مقاله را بنویسید...";
  color: #94a3b8;
}

.blog-gallery {
  border-top: 1px dashed rgba(15, 23, 42, 0.15);
  padding-top: 1rem;
}

.blog-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.blog-gallery-item {
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-gallery-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.blog-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.18);
}

.blog-gallery-editor-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.blog-gallery-editor-item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.9rem;
  padding: 0.75rem;
  background: #fff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-gallery-editor-item.is-dragging {
  opacity: 0.7;
  border-style: dashed;
}

.blog-gallery-editor-thumb img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 0.7rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: block;
}

.blog-gallery-editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.55rem;
}

.blog-gallery-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 0.6rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  color: #475569;
  cursor: grab;
}

.blog-detail__cover {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 1rem;
}

.blog-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: #64748b;
  font-size: 0.85rem;
}

.blog-detail__summary {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.9;
}

.blog-detail__content {
  margin-top: 1rem;
  color: #1f2937;
  line-height: 2;
}

.blog-related-list {
  display: grid;
  gap: 0.75rem;
}

.blog-related-item {
  display: block;
  text-decoration: none;
  padding: 0.7rem 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: var(--text-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-related-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.blog-related-item__title {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.blog-related-item__meta {
  font-size: 0.75rem;
  color: #6b7280;
}

.blog-carousel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background: #fff;
}

.blog-carousel__viewport {
  overflow: hidden;
}

.blog-carousel__track {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.blog-carousel__track::-webkit-scrollbar {
  display: none;
}

.blog-carousel-card {
  flex: 0 0 calc(33.333% - 0.67rem);
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.blog-carousel-card__image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-carousel-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-carousel-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: #94a3b8;
}

.blog-carousel-card__body {
  padding: 1.5rem;
}

.blog-carousel-card__body p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-carousel-card__tag {
  display: inline-flex;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #111827;
  font-size: 0.75rem;
  font-weight: 600;
}

.blog-cover-preview {
  border: 1px solid rgba(15, 23, 42, 0.08);
}

@media (max-width: 991.98px) {
  .blog-carousel-card {
    flex-basis: calc(50% - 0.5rem);
  }
}

@media (max-width: 767.98px) {
  .blog-carousel-card {
    flex-basis: 100%;
  }
}

@media (min-width: 992px) {
  .blog-carousel-card {
    grid-template-columns: 1.2fr 1fr;
  }

  .blog-carousel-card__image {
    height: 100%;
    min-height: 260px;
  }
}

.blog-carousel__control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.blog-carousel__control.prev {
  left: 0.75rem;
}

.blog-carousel__control.next {
  right: 0.75rem;
}

.blog-carousel__control .carousel-control-prev-icon,
.blog-carousel__control .carousel-control-next-icon {
  filter: invert(1) grayscale(1);
  width: 1.4rem;
  height: 1.4rem;
}

.account-page {
  position: relative;
}

.account-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.account-name {
  font-weight: 700;
}

.account-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.account-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.account-tip {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.9rem;
  padding: 1rem;
  height: 100%;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.account-tip__title {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.account-tip__text {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.account-tip__link {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
}

.account-tip__link:hover {
  text-decoration: underline;
}
