﻿/* =========================================================
   Site Custom Styles — Modern RTL
   ========================================================= */

:root {
  --brand-primary: #1e40af;
  --brand-primary-dark: #1e3a8a;
  --brand-primary-light: #3b82f6;
  --brand-accent: #f59e0b;
  --brand-accent-dark: #d97706;
  --brand-success: #10b981;
  --brand-danger: #ef4444;
  --brand-info: #06b6d4;
  --text-primary: #1f2937;
  --text-muted: #6b7280;
  --bg-page: #f1f5f9;
  --bg-card: #ffffff;
  --border-soft: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: "Yekan", Tahoma, Arial, sans-serif;
  line-height: 1.7;
  direction: rtl;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

/* =========================================================
   Navbar
   ========================================================= */
.site-navbar {
  background: linear-gradient(
    135deg,
    var(--brand-primary) 0%,
    var(--brand-primary-dark) 100%
  );
  box-shadow: var(--shadow-md);
  padding: 0.7rem 0;
  z-index: 1030;
}

.site-navbar .navbar-brand {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-navbar .navbar-brand i {
  font-size: 1.4rem;
  color: var(--brand-accent);
}

.site-navbar .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.12);
}

.site-navbar .nav-cta {
  background-color: var(--brand-accent);
  color: #fff !important;
  font-weight: 600;
}

.site-navbar .nav-cta:hover {
  background-color: var(--brand-accent-dark);
  color: #fff !important;
}

.site-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.site-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.site-navbar .dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 0.5rem;
}

.site-navbar .dropdown-item {
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.92rem;
}

/* =========================================================
   Hero Section
   ========================================================= */
.hero-section {
  padding: 2.5rem 0 1.5rem;
}

.slideshow-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 0.75rem;
  overflow: hidden;
}

.slideshow-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}

.mySlides {
  display: none;
  position: relative;
}

.mySlides img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.mySlides .numbertext {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  z-index: 2;
}

.mySlides .text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #fff;
  padding: 2rem 1.2rem 0.9rem;
  font-size: 1rem;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  font-size: 1.1rem;
  user-select: none;
  transition: background 0.2s;
  z-index: 3;
}

.prev:hover,
.next:hover {
  background: rgba(0, 0, 0, 0.75);
}

.prev {
  right: 12px;
}

.next {
  left: 12px;
}

.dots-wrapper {
  text-align: center;
  padding-top: 0.75rem;
}

.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 4px;
  background-color: #cbd5e1;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.25s;
}

.dot.active,
.dot:hover {
  background-color: var(--brand-primary);
}

/* Welcome Card */
.welcome-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 4px solid var(--brand-accent);
}

.welcome-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  color: #fff;
  border-radius: 50%;
  font-size: 2rem;
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.35);
}

.welcome-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin-bottom: 0.75rem;
}

.welcome-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.welcome-card .btn-primary {
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
  transition: transform 0.15s;
}

.welcome-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.4);
}

/* =========================================================
   Quick Links
   ========================================================= */
.quick-links-section {
  padding: 1rem 0 2.5rem;
}

.quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.2rem 0.8rem;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
  height: 100%;
  border: 1px solid var(--border-soft);
  min-height: 140px;
}

.quick-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  color: var(--brand-primary);
  border-color: var(--brand-primary-light);
}

.quick-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
}

.quick-card span {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

.bg-primary {
  background-color: var(--brand-primary) !important;
}

.bg-success {
  background-color: var(--brand-success) !important;
}

.bg-warning {
  background-color: var(--brand-accent) !important;
}

.bg-info {
  background-color: var(--brand-info) !important;
}

.bg-danger {
  background-color: var(--brand-danger) !important;
}

/* =========================================================
   Banner
   ========================================================= */
.banner-section {
  padding-bottom: 2.5rem;
}

.banner-card {
  background: linear-gradient(
    135deg,
    var(--brand-primary-dark),
    var(--brand-primary)
  );
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.banner-card i {
  font-size: 1.6rem;
  color: var(--brand-accent);
}

.banner-card p {
  margin: 0;
  font-size: 1rem;
}

/* =========================================================
   Section Header
   ========================================================= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-soft);
}

.section-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-header h3 i {
  color: var(--brand-accent);
}

.section-link {
  color: var(--brand-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.section-link:hover {
  color: var(--brand-accent-dark);
}

/* =========================================================
   News
   ========================================================= */
.news-section {
  padding: 1rem 0 2.5rem;
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-soft);
  transition: all 0.22s;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary-light);
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.news-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
  text-align: justify;
  line-height: 1.6;
}

.news-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1;
  text-align: justify;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-link {
  align-self: flex-start;
  margin-top: 0.9rem;
  color: var(--brand-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.news-link:hover {
  color: var(--brand-accent-dark);
}

/* =========================================================
   Comments
   ========================================================= */
.comments-section {
  padding: 1rem 0 3rem;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border-right: 4px solid var(--brand-primary);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--border-soft);
}

.comment-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-primary-dark);
}

.comment-user i {
  font-size: 1.4rem;
  color: var(--brand-primary);
}

.comment-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.comment-body {
  font-size: 0.93rem;
  line-height: 1.8;
  color: var(--text-primary);
  text-align: justify;
}

.comment-replies {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border-right: 3px solid var(--brand-accent);
}

.comment-replies h6 {
  font-size: 0.9rem;
  color: var(--brand-accent-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.reply-item {
  font-size: 0.88rem;
  color: var(--text-primary);
  padding: 0.4rem 0;
  line-height: 1.7;
  text-align: justify;
}

.btn-outline-primary {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.25rem;
  font-weight: 600;
}

.btn-outline-primary:hover {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 1.25rem 0;
  margin-top: auto;
}

.footer-inner {
  text-align: center;
  font-size: 0.9rem;
}

.footer-inner i {
  color: var(--brand-accent);
  margin-left: 0.35rem;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .hero-section {
    padding: 1.5rem 0 1rem;
  }

  .mySlides img {
    height: 220px;
  }

  .welcome-card {
    padding: 1.5rem 1rem;
  }

  .welcome-card h2 {
    font-size: 1.15rem;
  }

  .banner-card {
    flex-direction: column;
    text-align: center;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* FormMessages (already present) */
.FormMessages {
  margin-bottom: 15px;
  margin-top: 10px;
  color: red;
}

.FormMessages ul {
  padding: 5px;
  margin: 0;
  border: 1px solid #dd3c10;
  background-color: #ffebe8;
}

.FormMessages ul li {
  direction: rtl;
  text-align: right;
  list-style: none;
}
/* =========================================================
   Navbar RTL Fix
   ========================================================= */

.site-navbar .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.site-navbar .navbar-brand {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem; /* در RTL: فاصله از چپ */
  margin-right: 0;
}

.site-navbar .navbar-nav {
  display: flex;
  flex-direction: row; /* در دسکتاپ افقی */
  align-items: center;
  gap: 0.15rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-navbar .nav-item {
  position: relative;
}

.site-navbar .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  padding: 0.55rem 0.85rem !important;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.site-navbar .nav-link i {
  font-size: 0.95rem;
  opacity: 0.9;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-navbar .nav-link.active {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.14);
}

.site-navbar .nav-cta {
  background-color: var(--brand-accent);
  color: #fff !important;
  font-weight: 600;
  margin-right: 0.35rem; /* در RTL: از راست فاصله */
}

.site-navbar .nav-cta:hover {
  background-color: var(--brand-accent-dark);
  color: #fff !important;
}

/* ===== Dropdown ===== */
.site-navbar .dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 0.4rem;
  min-width: 200px;
  /* در RTL پیش‌فرض درست است، فقط موقعیت را تنظیم می‌کنیم */
  right: 0;
  left: auto;
  text-align: right;
}

.site-navbar .dropdown-item {
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.site-navbar .dropdown-item i {
  width: 16px;
  text-align: center;
  color: var(--brand-primary);
}

.site-navbar .dropdown-item:hover {
  background-color: #f1f5f9;
  color: var(--brand-primary-dark);
}

.site-navbar .dropdown-item.text-danger i {
  color: var(--brand-danger);
}

/* ===== Toggler ===== */
.site-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
  padding: 0.35rem 0.6rem;
}

.site-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
  outline: none;
}

.site-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =========================================================
   Responsive — منوی موبایل
   ========================================================= */
@media (max-width: 991.98px) {
  .site-navbar .navbar-collapse {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .site-navbar .navbar-nav {
    flex-direction: column !important;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .site-navbar .nav-item {
    width: 100%;
  }

  .site-navbar .nav-link {
    display: flex;
    width: 100%;
    padding: 0.7rem 0.9rem !important;
    justify-content: flex-start;
  }

  .site-navbar .nav-cta {
    margin-right: 0;
    margin-top: 0.4rem;
    justify-content: center;
  }

  .site-navbar .dropdown-menu {
    position: static !important;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.08);
    margin-top: 0.25rem;
  }

  .site-navbar .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
  }

  .site-navbar .dropdown-item i {
    color: var(--brand-accent);
  }

  .site-navbar .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.14);
    color: #fff;
  }

  .site-navbar .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.2);
  }
}

/* =========================================================
   Page Header (درباره ما، تماس، خبرها و ...)
   ========================================================= */
.page-header {
  background: linear-gradient(
    135deg,
    var(--brand-primary-dark),
    var(--brand-primary)
  );
  color: #fff;
  padding: 2.5rem 0 2rem;
  margin-bottom: 2rem;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.page-breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 0.75rem;
}

.page-breadcrumb .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
}

.page-breadcrumb .breadcrumb-item a:hover {
  color: #fff;
}

.page-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.6);
  content: "/";
  padding: 0 0.5rem;
}

.page-breadcrumb .breadcrumb-item.active {
  color: #fff;
  font-size: 0.88rem;
}

.page-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.page-title i {
  color: var(--brand-accent);
}

.page-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

/* =========================================================
   About Section
   ========================================================= */
.about-section {
  padding-bottom: 3rem;
}

.about-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  border-top: 4px solid var(--brand-accent);
  height: 100%;
}

.about-card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.3);
}

.about-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin-bottom: 1rem;
}

.about-text {
  font-size: 0.98rem;
  line-height: 2;
  color: var(--text-primary);
  text-align: justify;
  margin-bottom: 1rem;
}

.about-link {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed var(--brand-primary-light);
  padding-bottom: 1px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.about-link:hover {
  color: var(--brand-accent-dark);
  border-bottom-color: var(--brand-accent);
}

.about-divider {
  height: 1px;
  background: linear-gradient(
    to left,
    transparent,
    var(--border-soft),
    transparent
  );
  margin: 1.75rem 0;
}

.about-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-subtitle i {
  color: var(--brand-accent);
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0;
  font-size: 0.95rem;
  color: var(--text-primary);
  border-bottom: 1px dashed #f1f5f9;
}

.about-list li:last-child {
  border-bottom: none;
}

.about-list li i {
  color: var(--brand-success);
  font-size: 1.05rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.about-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

.about-cta .btn {
  padding: 0.6rem 1.4rem;
  font-weight: 600;
}

/* =========================================================
   Side Cards
   ========================================================= */
.about-side-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  border: 1px solid var(--border-soft);
}

.side-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.side-icon.accent {
  background: linear-gradient(
    135deg,
    var(--brand-accent),
    var(--brand-accent-dark)
  );
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.about-side-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin-bottom: 0.85rem;
}

.side-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-links li {
  margin-bottom: 0.25rem;
}

.side-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.92rem;
  transition: all 0.2s;
}

.side-links a i {
  color: var(--brand-primary);
  font-size: 1rem;
  transition: transform 0.2s;
}

.side-links a:hover {
  background-color: #f1f5f9;
  color: var(--brand-primary-dark);
}

.side-links a:hover i {
  transform: translateX(-4px);
}

.side-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  word-break: break-all;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .page-header {
    padding: 1.75rem 0 1.5rem;
  }

  .page-title {
    font-size: 1.4rem;
  }

  .about-card {
    padding: 1.4rem;
  }

  .about-cta {
    flex-direction: column;
  }

  .about-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   Contact Section
   ========================================================= */
.contact-section {
  padding-bottom: 3rem;
}

.contact-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  border-top: 4px solid var(--brand-accent);
  height: 100%;
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.3);
  flex-shrink: 0;
}

.contact-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin: 0 0 0.15rem;
}

.contact-card-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.contact-intro {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.9;
  text-align: justify;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border-right: 3px solid var(--brand-primary);
}

.contact-card .form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-primary-dark);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.contact-card .form-label i {
  color: var(--brand-accent);
  font-size: 0.95rem;
}

.contact-card .form-control {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-size: 0.92rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.contact-card .form-control:focus {
  border-color: var(--brand-primary-light);
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.captcha-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.captcha-image {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
}

.captcha-image img {
  height: 42px;
  border-radius: 4px;
}

.captcha-input {
  flex: 1;
  min-width: 140px;
}

.contact-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px dashed var(--border-soft);
}

.contact-actions .btn-primary {
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  border: none;
  padding: 0.65rem 1.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
  transition: transform 0.15s;
}

.contact-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.4);
}

/* =========================================================
   Contact Side Card
   ========================================================= */
.contact-side-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  border: 1px solid var(--border-soft);
}

.contact-side-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin-bottom: 0.75rem;
}

.contact-side-card .side-text {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin: 0;
  text-align: justify;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(
    135deg,
    var(--brand-accent),
    var(--brand-accent-dark)
  );
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.contact-info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}

.contact-info-value {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  direction: ltr;
  display: inline-block;
}

.contact-info-value:hover {
  color: var(--brand-accent-dark);
}

.map-card {
  padding: 0;
  overflow: hidden;
}

#map-canvas {
  width: 100%;
  height: 260px;
  border-radius: var(--radius-md);
}

/* =========================================================
   Empty State
   ========================================================= */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.empty-state i {
  font-size: 2.5rem;
  color: #cbd5e1;
  margin-bottom: 0.75rem;
  display: block;
}

.empty-state p {
  margin: 0;
  font-size: 0.95rem;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .contact-card {
    padding: 1.4rem;
  }

  .contact-actions {
    justify-content: stretch;
  }

  .contact-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .captcha-row {
    flex-direction: column;
  }

  .captcha-image {
    justify-content: center;
  }
}

/* =========================================================
   Form Section (فرم‌های عمومی)
   ========================================================= */
.form-section {
  padding-bottom: 3rem;
}

.form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  border-top: 4px solid var(--brand-accent);
}

.form-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--border-soft);
}

.form-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.3);
  flex-shrink: 0;
}

.form-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin: 0 0 0.15rem;
}

.form-card-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ===== Labels ===== */
.form-card .form-label,
.form-section .form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-primary-dark);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.form-card .form-label i,
.form-section .form-label i {
  color: var(--brand-accent);
  font-size: 0.95rem;
}

.form-label .required {
  color: var(--brand-danger);
  font-weight: 700;
  margin-right: 0.15rem;
}

/* ===== Inputs ===== */
.form-card .form-control,
.form-card .form-select,
.form-section .form-control,
.form-section .form-select {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-size: 0.92rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  background-color: #fff;
}

.form-card .form-control:focus,
.form-card .form-select:focus,
.form-section .form-control:focus,
.form-section .form-select:focus {
  border-color: var(--brand-primary-light);
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
  outline: none;
}

.form-card .form-control.ltr,
.form-section .form-control.ltr,
.form-card .ltr,
.form-section .ltr {
  direction: ltr;
  text-align: left;
}

.form-card .form-control::placeholder,
.form-section .form-control::placeholder {
  color: #94a3b8;
  font-size: 0.88rem;
}

/* ===== Actions ===== */
.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-top: 1.25rem;
  margin-top: 1.5rem;
  border-top: 1px dashed var(--border-soft);
}

.form-actions .btn {
  padding: 0.65rem 1.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.form-actions .btn-primary {
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  border: none;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
  transition: transform 0.15s;
}

.form-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.4);
}

.form-actions .btn-outline-secondary {
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  background: transparent;
}

.form-actions .btn-outline-secondary:hover {
  background-color: #f1f5f9;
  color: var(--text-primary);
  border-color: #cbd5e1;
}

/* ===== Responsive ===== */
@media (max-width: 767.98px) {
  .form-card {
    padding: 1.4rem;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   News Detail Section
   ========================================================= */
.news-detail-section {
  padding-bottom: 3rem;
}

.news-detail-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  border-top: 4px solid var(--brand-accent);
}

/* ===== Image ===== */
.news-detail-image {
  margin: -2rem -2rem 1.5rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  position: relative;
}

.news-detail-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
  pointer-events: none;
}

.news-detail-image a {
  display: block;
}

.news-detail-image img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.news-detail-image:hover img {
  transform: scale(1.02);
}

/* ===== Meta ===== */
.news-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.meta-item i {
  color: var(--brand-accent);
  font-size: 0.9rem;
}

.meta-divider {
  width: 1px;
  height: 14px;
  background: var(--border-soft);
}

/* ===== Title ===== */
.news-detail-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 1rem;
}

.news-detail-divider {
  height: 2px;
  width: 70px;
  background: linear-gradient(to left, var(--brand-accent), transparent);
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

/* ===== Body ===== */
.news-detail-body {
  font-size: 1rem;
  line-height: 2;
  color: var(--text-primary);
  text-align: justify;
  direction: rtl;
}

.news-detail-body p {
  margin-bottom: 1.15rem;
}

.news-detail-body h1,
.news-detail-body h2,
.news-detail-body h3,
.news-detail-body h4 {
  color: var(--brand-primary-dark);
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.news-detail-body h2 {
  font-size: 1.3rem;
}
.news-detail-body h3 {
  font-size: 1.15rem;
}

.news-detail-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
  box-shadow: var(--shadow-sm);
}

.news-detail-body a {
  color: var(--brand-primary);
  text-decoration: none;
  border-bottom: 1px dashed var(--brand-primary-light);
  transition: all 0.2s;
}

.news-detail-body a:hover {
  color: var(--brand-accent-dark);
  border-bottom-color: var(--brand-accent);
}

.news-detail-body ul,
.news-detail-body ol {
  padding-right: 1.5rem;
  margin-bottom: 1.15rem;
}

.news-detail-body li {
  margin-bottom: 0.4rem;
  line-height: 1.9;
}

.news-detail-body blockquote {
  border-right: 4px solid var(--brand-accent);
  padding: 0.75rem 1.25rem;
  background: #fffbeb;
  border-radius: var(--radius-sm);
  margin: 1.25rem 0;
  color: #78350f;
  font-style: italic;
}

.news-detail-body table {
  width: 100%;
  margin: 1.25rem 0;
  border-collapse: collapse;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.news-detail-body table th {
  background: var(--brand-primary);
  color: #fff;
  padding: 0.65rem 0.85rem;
  font-weight: 600;
  text-align: right;
}

.news-detail-body table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border-soft);
}

.news-detail-body table tr:nth-child(even) td {
  background: #f8fafc;
}

/* ===== Footer ===== */
.news-detail-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-soft);
  display: flex;
  justify-content: flex-start;
}

.news-detail-footer .btn-outline-primary {
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* ===== Responsive ===== */
@media (max-width: 767.98px) {
  .news-detail-card {
    padding: 1.4rem;
  }
  .news-detail-image {
    margin: -1.4rem -1.4rem 1.25rem;
  }
  .news-detail-title {
    font-size: 1.15rem;
  }
  .news-detail-body {
    font-size: 0.93rem;
    line-height: 1.9;
  }
  .news-detail-footer {
    justify-content: stretch;
  }
  .news-detail-footer .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   News List Section
   ========================================================= */
.news-list-section {
  padding-bottom: 3rem;
}

.news-list-count {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-soft);
}

.news-list-count i {
  color: var(--brand-accent);
}

/* ===== Card ===== */
.news-list-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.news-list-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary-light);
}

/* ===== Image ===== */
.news-list-image {
  display: block;
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
  aspect-ratio: 16 / 10;
}

.news-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.news-list-card:hover .news-list-image img {
  transform: scale(1.06);
}

.news-list-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  color: #94a3b8;
  font-size: 2.5rem;
}

/* ===== Body ===== */
.news-list-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-list-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.news-list-date i {
  color: var(--brand-accent);
}

.news-list-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 0.6rem;
  text-align: justify;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list-card:hover .news-list-title {
  color: var(--brand-primary-dark);
}

.news-list-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
  text-align: justify;
  flex: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list-link {
  align-self: flex-start;
  color: var(--brand-primary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-soft);
  width: 100%;
  transition: color 0.2s;
}

.news-list-link i {
  transition: transform 0.2s;
}

.news-list-link:hover {
  color: var(--brand-accent-dark);
}

.news-list-link:hover i {
  transform: translateX(-4px);
}

/* ===== Responsive ===== */
@media (max-width: 767.98px) {
  .news-list-title {
    font-size: 0.95rem;
  }
  .news-list-body {
    padding: 1rem;
  }
}

/* =========================================================
   Loan Form — Alerts & Special Fields
   ========================================================= */

/* هشدار اطلاعاتی (آبی) */
.info-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: #eff6ff;
  border-right: 4px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  color: #1e3a8a;
  font-size: 0.88rem;
  line-height: 1.7;
}

.info-alert i {
  color: var(--brand-primary);
  font-size: 1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* هشدار اخطار (زرد) */
.warn-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: #fffbeb;
  border-right: 4px solid var(--brand-accent);
  border-radius: var(--radius-sm);
  color: #78350f;
  font-size: 0.88rem;
  line-height: 1.7;
}

.warn-alert i {
  color: var(--brand-accent-dark);
  font-size: 1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* وضعیت فیلد (موبایل معتبر/نادرست) */
.field-status {
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.field-status i {
  font-size: 0.85rem;
}

/* =========================================================
   Sanad (مدارک) Panel
   ========================================================= */
.sanad-card {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  border-right: 4px solid var(--brand-accent);
}

.sanad-preview {
  flex-shrink: 0;
  width: 220px;
  height: 260px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.sanad-preview .sanad-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sanad-info {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
}

.sanad-desp {
  font-size: 0.92rem;
  color: var(--brand-primary-dark);
  font-weight: 600;
  margin-bottom: 0.85rem;
  line-height: 1.7;
  padding: 0.55rem 0.75rem;
  background: #fff;
  border-radius: var(--radius-sm);
  border-right: 3px solid var(--brand-primary);
}

.sanad-info .form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-primary-dark);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sanad-info .form-label i {
  color: var(--brand-accent);
}

/* Custom file input */
.custom-file {
  position: relative;
  display: block;
  width: 100%;
}

.custom-file-input {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.custom-file-label {
  display: block;
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: #fff;
  border: 1px dashed var(--brand-primary-light);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: right;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-file-label::before {
  content: "\f093";
  font-family: FontAwesome;
  margin-left: 0.4rem;
  color: var(--brand-primary);
}

.custom-file:hover .custom-file-label {
  border-color: var(--brand-primary);
  background: #f8fafc;
}

.custom-file-label.selected {
  color: var(--brand-primary-dark);
  border-style: solid;
  border-color: var(--brand-success);
  background: #f0fdf4;
}

/* =========================================================
   Responsive — Sanad & Alerts
   ========================================================= */
@media (max-width: 767.98px) {
  .sanad-card {
    flex-direction: column;
  }
  .sanad-preview {
    width: 100%;
    height: 200px;
  }
  .info-alert,
  .warn-alert {
    font-size: 0.84rem;
  }
}

/* =========================================================
   Loans List Section
   ========================================================= */
.loans-list-section {
  padding-bottom: 3rem;
}

.loan-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}

.loan-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(
    to left,
    var(--brand-primary),
    var(--brand-accent)
  );
}

.loan-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary-light);
}

/* ===== Header ===== */
.loan-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem 0.5rem;
}

.loan-card-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.loan-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-success);
  background: #f0fdf4;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #bbf7d0;
}

.loan-status i {
  font-size: 0.5rem;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* ===== Body ===== */
.loan-card-body {
  padding: 0.75rem 1.25rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.loan-date {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.55rem 0.75rem;
  background: #fff7ed;
  border-radius: var(--radius-sm);
  border-right: 3px solid var(--brand-accent);
  margin-bottom: 1rem;
}

.loan-date i {
  color: var(--brand-accent-dark);
  font-size: 0.95rem;
}

.loan-date strong {
  color: var(--brand-accent-dark);
  font-weight: 700;
  direction: ltr;
  display: inline-block;
}

.loan-desc {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.85;
  text-align: justify;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.loan-desc p {
  margin-bottom: 0.6rem;
}
.loan-desc p:last-child {
  margin-bottom: 0;
}

/* ===== Footer ===== */
.loan-card-footer {
  padding: 0 1.25rem 1.25rem;
}

.loan-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  color: #fff !important;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
  transition: all 0.2s;
}

.loan-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.4);
  color: #fff !important;
}

.loan-cta i {
  font-size: 1rem;
}

/* ===== Responsive ===== */
@media (max-width: 767.98px) {
  .loan-card-header {
    padding: 1rem 1rem 0.4rem;
  }
  .loan-card-body {
    padding: 0.6rem 1rem 0.9rem;
  }
  .loan-card-footer {
    padding: 0 1rem 1rem;
  }
  .loan-desc {
    -webkit-line-clamp: 5;
  }
}

/* =========================================================
   Shops Section
   ========================================================= */
.shops-section {
  padding-bottom: 3rem;
}

/* ===== Filter ===== */
.filter-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brand-primary-dark);
  margin: 0;
  white-space: nowrap;
}

.filter-label i {
  color: var(--brand-accent);
  font-size: 1rem;
}

.filter-card .form-select {
  flex: 1;
  min-width: 200px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  font-size: 0.92rem;
  background-color: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.filter-card .form-select:focus {
  border-color: var(--brand-primary-light);
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
  outline: none;
}

/* ===== Shop Card ===== */
.shop-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}

.shop-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(
    to left,
    var(--brand-primary),
    var(--brand-accent)
  );
  z-index: 1;
}

.shop-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary-light);
}

/* ===== Logo ===== */
.shop-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.shop-logo img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 0.75rem;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.1);
  transition: transform 0.3s;
}

.shop-card:hover .shop-logo img {
  transform: scale(1.06);
}

.shop-logo-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 2.5rem;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
}

/* ===== Body ===== */
.shop-body {
  padding: 1rem 1.25rem 0.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.shop-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  text-align: center;
  margin-bottom: 0.65rem;
  line-height: 1.5;
}

.shop-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
  text-align: justify;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.shop-desc p {
  margin-bottom: 0.5rem;
}
.shop-desc p:last-child {
  margin-bottom: 0;
}

/* ===== Info List ===== */
.shop-info {
  list-style: none;
  padding: 0 1.25rem;
  margin: 0;
}

.shop-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--border-soft);
  font-size: 0.87rem;
}

.shop-info li:last-child {
  border-bottom: none;
}

.shop-info li > i {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: var(--brand-primary);
  border-radius: 8px;
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.shop-info li > div {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.info-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.5;
  word-break: break-word;
}

a.info-value {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a.info-value:hover {
  color: var(--brand-accent-dark);
}

.info-value.ltr {
  direction: ltr;
  text-align: left;
  display: inline-block;
  font-weight: 700;
}

/* ===== Social ===== */
.shop-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.25rem 1.25rem;
  margin-top: auto;
  border-top: 1px dashed var(--border-soft);
}

.social-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.social-btn.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.social-btn.instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

/* ===== Responsive ===== */
@media (max-width: 767.98px) {
  .filter-card {
    padding: 1rem;
  }
  .filter-card .form-select {
    min-width: 100%;
  }
  .shop-logo img,
  .shop-logo-placeholder {
    width: 120px;
    height: 120px;
  }
  .shop-name {
    font-size: 1rem;
  }
}

/* =========================================================
   Password Field with Toggle
   ========================================================= */
.password-field {
  position: relative;
  display: block;
}

.password-field .form-control {
  padding-left: 2.75rem; /* فضا برای دکمه چشم در سمت چپ (چون فیلد ltr است) */
  padding-right: 0.9rem;
}

.toggle-password {
  position: absolute;
  top: 50%;
  left: 0.5rem;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    color 0.2s,
    background-color 0.2s;
  z-index: 3;
}

.toggle-password:hover {
  color: var(--brand-primary);
  background-color: #f1f5f9;
}

.toggle-password:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.toggle-password i {
  font-size: 0.95rem;
}

/* =========================================================
   Password Field with Toggle
   ========================================================= */
.password-field {
  position: relative;
  display: block;
}

.password-field .form-control {
  padding-left: 2.75rem;
  padding-right: 0.9rem;
}

.toggle-password {
  position: absolute;
  top: 50%;
  left: 0.5rem;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    color 0.2s,
    background-color 0.2s;
  z-index: 3;
}

.toggle-password:hover {
  color: var(--brand-primary);
  background-color: #f1f5f9;
}

.toggle-password:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.toggle-password i {
  font-size: 0.95rem;
}

/* =========================================================
   Password Field with Toggle
   ========================================================= */
.password-field {
  position: relative;
  display: block;
}

.password-field .form-control {
  padding-left: 2.75rem;
  padding-right: 0.9rem;
}

.toggle-password {
  position: absolute;
  top: 50%;
  left: 0.5rem;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    color 0.2s,
    background-color 0.2s;
  z-index: 3;
}

.toggle-password:hover {
  color: var(--brand-primary);
  background-color: #f1f5f9;
}

.toggle-password:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.toggle-password i {
  font-size: 0.95rem;
}

/* =========================================================
   Success Card (پیام موفقیت)
   ========================================================= */
.success-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-top-color: var(--brand-success);
}

.success-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #fff;
  border-radius: 50%;
  font-size: 2.5rem;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35);
  animation: success-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes success-pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-success);
  margin-bottom: 0.75rem;
}

.success-message {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.success-highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  text-align: right;
  padding: 1rem 1.15rem;
  background: #fffbeb;
  border-right: 4px solid var(--brand-accent);
  border-radius: var(--radius-sm);
  color: #78350f;
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

.success-highlight i {
  color: var(--brand-accent-dark);
  font-size: 1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.success-highlight strong {
  color: var(--brand-accent-dark);
}

.success-actions {
  justify-content: center;
  border-top: none;
  padding-top: 0.5rem;
  margin-top: 0;
}

.success-actions .btn {
  min-width: 160px;
  justify-content: center;
}

@media (max-width: 767.98px) {
  .success-card {
    padding: 1.75rem 1.25rem;
  }
  .success-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }
  .success-title {
    font-size: 1.15rem;
  }
  .success-actions {
    flex-direction: column;
  }
  .success-actions .btn {
    width: 100%;
  }
}

/* =========================================================
   Login Page
   ========================================================= */
.login-actions {
  justify-content: stretch;
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.login-actions .btn-primary {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  justify-content: center;
}

/* لینک‌های پایین فرم */
.login-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border-soft);
}

.login-link {
  color: var(--brand-primary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s;
}

.login-link:hover {
  color: var(--brand-accent-dark);
}

.login-link i {
  font-size: 0.95rem;
}

/* ===== Auth State (کاربر وارد شده) ===== */
.success-card .success-message strong {
  color: var(--brand-primary-dark);
  font-weight: 700;
}

.success-card .success-message strong.ltr {
  direction: ltr;
  display: inline-block;
  font-family: var(--bs-font-monospace);
}

.btn-outline-danger {
  border: 1px solid var(--brand-danger);
  color: var(--brand-danger);
  background: transparent;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s;
}

.btn-outline-danger:hover {
  background: var(--brand-danger);
  color: #fff;
  border-color: var(--brand-danger);
}

/* ===== Spinner ===== */
.btn .fa-spinner {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ===== Responsive ===== */
@media (max-width: 767.98px) {
  .login-actions .btn-primary {
    font-size: 0.95rem;
  }
}

/* =========================================================
   Mobile Info Box
   ========================================================= */
.mobile-info {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  background: #eff6ff;
  border-right: 4px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.mobile-info-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.mobile-info-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.mobile-info-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  direction: ltr;
  letter-spacing: 1px;
}

/* =========================================================
   Countdown Timer
   ========================================================= */
.countdown-wrapper {
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
}

.countdown-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.countdown-label i {
  color: var(--brand-accent);
  font-size: 0.95rem;
}

.countdown-label strong {
  color: var(--brand-primary-dark);
  font-size: 1rem;
  margin: 0 0.15rem;
  font-family: var(--bs-font-monospace);
}

.countdown-progress {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.countdown-progress .progress-bar {
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 999px;
  transition:
    width 1s linear,
    background-color 0.3s;
}

.countdown-progress .progress-bar.bg-warning {
  background: linear-gradient(90deg, #f59e0b, #fbbf24) !important;
}

.countdown-progress .progress-bar.bg-danger {
  background: linear-gradient(90deg, #ef4444, #f87171) !important;
}

/* =========================================================
   Code Input
   ========================================================= */
.code-input {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-align: center;
  padding: 0.75rem 1rem;
}

.code-input::placeholder {
  font-weight: 400;
  letter-spacing: normal;
  font-size: 0.9rem;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .mobile-info {
    padding: 0.85rem 1rem;
  }
  .mobile-info-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
  .code-input {
    font-size: 1rem;
    letter-spacing: 2px;
  }
}

/* =========================================================
   Confirm Section — لیست کاندیدها
   ========================================================= */
.confirm-section {
  padding-bottom: 3rem;
}

.candidates-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.candidate-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  border-right: 4px solid var(--brand-primary);
  transition: all 0.22s ease;
}

.candidate-item:hover {
  background: #fff;
  border-right-color: var(--brand-accent);
  box-shadow: var(--shadow-sm);
  transform: translateX(-4px);
}

/* رتبه */
.candidate-rank {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 3px 10px rgba(30, 64, 175, 0.25);
}

/* آواتار */
.candidate-avatar {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.candidate-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.candidate-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  color: #94a3b8;
  font-size: 1.5rem;
}

/* اطلاعات */
.candidate-info {
  flex: 1;
  min-width: 0;
}

.candidate-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin: 0 0 0.25rem;
  line-height: 1.5;
}

.candidate-code {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: #e2e8f0;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-family: var(--bs-font-monospace);
  letter-spacing: 0.5px;
}

/* تیک تأیید */
.candidate-check {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-success);
  font-size: 1.5rem;
}

/* دکمه‌ها */
.confirm-actions {
  justify-content: center;
  gap: 1rem;
}

.confirm-actions .btn {
  min-width: 160px;
  justify-content: center;
}

/* ===== Responsive ===== */
@media (max-width: 575.98px) {
  .candidate-item {
    padding: 0.7rem 0.75rem;
    gap: 0.65rem;
  }
  .candidate-rank {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  .candidate-avatar {
    width: 50px;
    height: 50px;
  }
  .candidate-name {
    font-size: 0.9rem;
  }
  .candidate-check {
    width: 28px;
    height: 28px;
    font-size: 1.2rem;
  }
  .confirm-actions {
    flex-direction: column;
  }
  .confirm-actions .btn {
    width: 100%;
  }
}

/* =========================================================
   Voting Section — انتخابات
   ========================================================= */
.voting-section {
  padding-bottom: 3rem;
}

/* شمارنده انتخاب */
.voting-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  margin-bottom: 1.5rem;
}

.voting-counter i {
  color: var(--brand-accent);
  font-size: 1rem;
}

.voting-counter strong {
  color: var(--brand-primary-dark);
  font-size: 1.05rem;
  font-weight: 700;
  min-width: 22px;
  text-align: center;
  font-family: var(--bs-font-monospace);
}

/* گرید کاندیداها */
.candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.15rem;
  margin-bottom: 2rem;
}

/* کارت کاندیدا */
.candidate-vote-card {
  position: relative;
  display: block;
  cursor: pointer;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 2px solid var(--border-soft);
  transition: all 0.25s ease;
  overflow: hidden;
  margin: 0;
}

.candidate-vote-card:hover {
  border-color: var(--brand-primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.candidate-vote-card.is-selected {
  border-color: var(--brand-success);
  background: #f0fdf4;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.2);
}

/* مخفی کردن چک‌باکس پیش‌فرض */
.candidate-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* چک‌باکس سفارشی */
.candidate-vote-check {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid var(--border-soft);
  border-radius: 50%;
  color: transparent;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  z-index: 2;
}

.candidate-vote-card:hover .candidate-vote-check {
  border-color: var(--brand-primary-light);
}

.candidate-vote-card.is-selected .candidate-vote-check {
  background: var(--brand-success);
  border-color: var(--brand-success);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

/* محتوای داخلی */
.candidate-vote-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
}

/* آواتار */
.candidate-vote-avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 3px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s;
}

.candidate-vote-card:hover .candidate-vote-avatar {
  border-color: var(--brand-primary-light);
}

.candidate-vote-card.is-selected .candidate-vote-avatar {
  border-color: var(--brand-success);
}

.candidate-vote-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.candidate-vote-avatar .candidate-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  color: #94a3b8;
  font-size: 1.8rem;
}

/* اطلاعات */
.candidate-vote-info {
  flex: 1;
  min-width: 0;
  padding-top: 0.25rem;
}

.candidate-vote-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.candidate-vote-card.is-selected .candidate-vote-name {
  color: #065f46;
}

.candidate-vote-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.75;
  text-align: justify;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* دکمه‌ها */
.voting-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-soft);
  flex-wrap: wrap;
}

.voting-actions .btn {
  min-width: 180px;
  justify-content: center;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.voting-actions .btn-primary {
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  border: none;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
  transition: transform 0.15s;
}

.voting-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.4);
}

/* ===== Responsive ===== */
@media (max-width: 767.98px) {
  .candidates-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .candidate-vote-inner {
    padding: 1rem;
    gap: 0.75rem;
  }

  .candidate-vote-avatar {
    width: 64px;
    height: 64px;
  }

  .candidate-vote-name {
    font-size: 0.95rem;
  }
  .candidate-vote-desc {
    font-size: 0.82rem;
    -webkit-line-clamp: 3;
  }

  .voting-actions {
    flex-direction: column;
  }
  .voting-actions .btn {
    width: 100%;
  }
}

/* =========================================================
   List Section — جدول مدرن
   ========================================================= */
.list-section {
  padding-bottom: 3rem;
}

.list-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  overflow: hidden;
}

.list-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(to left, #f8fafc, transparent);
  gap: 1rem;
  flex-wrap: wrap;
}

.list-card-header-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
}

.list-card-header-title i {
  color: var(--brand-accent);
  font-size: 1.15rem;
}

.list-card-header .btn-primary {
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
}

/* ===== جدول ===== */
.modern-table {
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.modern-table thead {
  background: #f1f5f9;
}

.modern-table thead th {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid var(--border-soft);
  white-space: nowrap;
  text-align: right;
}

.modern-table tbody td {
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.modern-table tbody tr:last-child td {
  border-bottom: none;
}

.modern-table tbody tr {
  transition: background-color 0.15s;
}

.modern-table tbody tr:hover {
  background-color: #f8fafc;
}

.modern-table .col-index {
  width: 60px;
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
}

.modern-table .col-action {
  width: 100px;
  text-align: center;
}

.modern-table .ltr {
  direction: ltr;
  text-align: right;
  display: block;
}

.modern-table td .text-muted {
  color: var(--text-muted) !important;
  font-size: 0.85rem;
}

.modern-table td i.text-muted {
  margin-left: 0.35rem;
  font-size: 0.85rem;
}

/* ===== Badge نوع ===== */
.badge-type {
  display: inline-block;
  background: #eff6ff;
  color: var(--brand-primary);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #bfdbfe;
  white-space: nowrap;
}

/* ===== Status Badge ===== */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.status-0 {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}
.status-0::before {
  background: #f59e0b;
}

.status-1 {
  background: #f0fdf4;
  color: #065f46;
  border: 1px solid #bbf7d0;
}
.status-1::before {
  background: #10b981;
}

.status-2 {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.status-2::before {
  background: #ef4444;
}

/* ===== دکمه آیکون ===== */
.btn-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.btn-icon:hover {
  background: #f1f5f9;
  color: var(--text-primary);
}

.btn-icon-danger:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--brand-danger);
}

.btn-icon:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =========================================================
   Modern Modal
   ========================================================= */
.modern-modal {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.modern-modal .modal-header {
  padding: 1.15rem 1.5rem;
  background: linear-gradient(
    135deg,
    var(--brand-primary-dark),
    var(--brand-primary)
  );
  color: #fff;
  border-bottom: none;
}

.modern-modal .modal-title {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modern-modal .modal-title i {
  color: var(--brand-accent);
}

.modern-modal .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.85;
}

.modern-modal .btn-close:hover {
  opacity: 1;
}

.modern-modal .modal-body {
  padding: 1.5rem;
}

.modern-modal .modal-footer {
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid var(--border-soft);
  gap: 0.5rem;
}

.modern-modal .modal-footer .btn {
  padding: 0.55rem 1.35rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.modern-modal .form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-primary-dark);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.modern-modal .form-label i {
  color: var(--brand-accent);
  font-size: 0.95rem;
}

.modern-modal .form-control,
.modern-modal .form-select {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-size: 0.92rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.modern-modal .form-control:focus,
.modern-modal .form-select:focus {
  border-color: var(--brand-primary-light);
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
  outline: none;
}

.modern-modal .form-control.ltr {
  direction: ltr;
  text-align: left;
}

/* ===== Field Hint ===== */
.field-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.field-hint .hint-value {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--brand-primary-dark);
}

.field-hint .hint-value strong {
  font-family: var(--bs-font-monospace);
  letter-spacing: 0.5px;
  color: var(--brand-accent-dark);
}

.amountmsg,
.namemsg {
  font-size: 0.8rem;
  color: var(--brand-danger);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .list-card-header {
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
  }
  .list-card-header .btn {
    width: 100%;
    justify-content: center;
  }

  .modern-table thead th,
  .modern-table tbody td {
    padding: 0.65rem 0.6rem;
    font-size: 0.82rem;
  }
  .modern-table .col-index {
    width: 42px;
  }
  .modern-table .col-action {
    width: 60px;
  }

  .badge-type,
  .status-badge {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
  }

  .modern-modal .modal-body {
    padding: 1.15rem;
  }
  .modern-modal .modal-footer {
    flex-direction: column-reverse;
  }
  .modern-modal .modal-footer .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   Dashboard Section
   ========================================================= */
.dashboard-section {
  padding-bottom: 3rem;
}

/* ===== Stat Cards ===== */
.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  border-radius: 0 0 4px 4px;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.35rem;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-body {
  flex: 1;
  min-width: 0;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.stat-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  line-height: 1.4;
  word-break: break-word;
}

.stat-primary .stat-icon {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}
.stat-primary::before {
  background: #3b82f6;
}

.stat-danger .stat-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}
.stat-danger::before {
  background: #ef4444;
}
.stat-danger .stat-value {
  color: var(--brand-danger);
}

.stat-success .stat-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}
.stat-success::before {
  background: #10b981;
}
.stat-success .stat-value {
  color: var(--brand-success);
}

.stat-info .stat-icon {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}
.stat-info::before {
  background: #06b6d4;
}

/* ===== Info Grid ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s;
  min-height: 52px;
}

.info-row:hover {
  background-color: #f8fafc;
}

.info-row-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.info-row-label i {
  color: var(--brand-accent);
  font-size: 0.9rem;
  width: 16px;
  text-align: center;
}

.info-row-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  word-break: break-word;
}

.info-row-value.ltr {
  direction: ltr;
}

.info-row-value.link {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s;
}

.info-row-value.link:hover {
  color: var(--brand-accent-dark);
}

/* ===== Election Banner ===== */
.election-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: var(--radius-lg);
  border-right: 5px solid var(--brand-primary);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.election-icon {
  width: 55px;
  height: 55px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  color: #fff;
  border-radius: 50%;
  font-size: 1.5rem;
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.3);
}

.election-content {
  flex: 1;
  min-width: 200px;
}

.election-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin: 0 0 0.2rem;
}

.election-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.election-banner .btn {
  padding: 0.6rem 1.35rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  border: none;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.election-banner .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.4);
}

/* ===== Blinking ===== */
.blinking {
  animation: blinkingText 1s infinite;
}

@keyframes blinkingText {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* ===== Zamen Alert ===== */
.zamen-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  border-right: 3px solid var(--brand-danger);
  line-height: 1.6;
}

.zamen-alert i {
  color: var(--brand-danger);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* ===== List Card Actions ===== */
.list-card-header-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.list-card-header-actions .btn {
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 767.98px) {
  .stat-card {
    padding: 0.9rem 1rem;
  }
  .stat-icon {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }
  .stat-value {
    font-size: 0.9rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .info-row-value {
    text-align: right;
  }

  .election-banner {
    flex-direction: column;
    text-align: center;
  }
  .election-banner .btn {
    width: 100%;
    justify-content: center;
  }

  .list-card-header-actions {
    width: 100%;
  }
  .list-card-header-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

/* =========================================================
   Queue Section — نوبت‌گیری
   ========================================================= */
.queue-section {
  padding-bottom: 3rem;
}

/* ===== مقدمه ===== */
.queue-intro {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 2;
  text-align: justify;
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border-right: 4px solid var(--brand-primary);
}

/* ===== مراحل ===== */
.queue-steps {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.queue-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border-right: 3px solid var(--brand-accent);
  transition: all 0.2s;
}

.queue-step:hover {
  background: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateX(-3px);
}

.queue-step-num {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 3px 10px rgba(30, 64, 175, 0.25);
}

.queue-step-body h5 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin: 0 0 0.2rem;
}

.queue-step-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
  text-align: justify;
  margin: 0;
}

/* ===== وضعیت ===== */
.queue-status {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.queue-status-active {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #bbf7d0;
}

.queue-status-inactive {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 1px solid #fecaca;
}

.queue-status-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-radius: 50%;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
  animation: queue-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.queue-status-icon.inactive {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

@keyframes queue-pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.queue-status-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin: 0 0 0.4rem;
}

.queue-status-active .queue-status-title {
  color: #065f46;
}
.queue-status-inactive .queue-status-title {
  color: #991b1b;
}

.queue-status-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* ===== آمار ===== */
.queue-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.queue-stat {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: all 0.22s;
}

.queue-stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.queue-stat-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.queue-stat-icon.primary {
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
}

.queue-stat-icon.accent {
  background: linear-gradient(
    135deg,
    var(--brand-accent),
    var(--brand-accent-dark)
  );
}

.queue-stat-body {
  flex: 1;
  min-width: 0;
}

.queue-stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.queue-stat-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  line-height: 1.5;
}

.queue-stat-value strong {
  color: var(--brand-accent-dark);
  font-family: var(--bs-font-monospace);
  font-size: 1.15rem;
}

/* ===== Responsive ===== */
@media (max-width: 767.98px) {
  .queue-intro {
    font-size: 0.88rem;
    padding: 0.85rem 1rem;
  }

  .queue-step {
    padding: 0.7rem 0.85rem;
    gap: 0.7rem;
  }
  .queue-step-num {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
  .queue-step-body h5 {
    font-size: 0.86rem;
  }
  .queue-step-body p {
    font-size: 0.8rem;
  }

  .queue-status {
    padding: 1.15rem 0.85rem;
  }
  .queue-status-icon {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
  }
  .queue-status-title {
    font-size: 1rem;
  }

  .queue-stats {
    grid-template-columns: 1fr;
  }
  .queue-stat {
    padding: 0.85rem 1rem;
  }
  .queue-stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* =========================================================
   Month Banner — بنر ماه درخواست
   ========================================================= */
.month-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-radius: var(--radius-md);
  border-right: 5px solid var(--brand-accent);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.month-banner-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--brand-accent),
    var(--brand-accent-dark)
  );
  color: #fff;
  border-radius: 12px;
  font-size: 1.35rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.month-banner-content {
  flex: 1;
}

.month-banner-label {
  display: block;
  font-size: 0.82rem;
  color: #78350f;
  margin-bottom: 0.2rem;
}

.month-banner-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #78350f;
  line-height: 1.4;
}

/* =========================================================
   Section Divider — جداکننده بخش‌ها
   ========================================================= */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 0.5rem;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to left,
    transparent,
    var(--border-soft),
    transparent
  );
}

.section-divider span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  white-space: nowrap;
  padding: 0.35rem 0.85rem;
  background: #f8fafc;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
}

.section-divider span i {
  color: var(--brand-accent);
  font-size: 0.95rem;
}

/* =========================================================
   Field Status (پیام‌های زیر فیلد)
   ========================================================= */
.field-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  margin-top: 0.3rem;
  font-weight: 500;
}

.field-status i {
  font-size: 0.9rem;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .month-banner {
    padding: 0.85rem 1rem;
    gap: 0.75rem;
  }
  .month-banner-icon {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }
  .month-banner-value {
    font-size: 1rem;
  }

  .section-divider span {
    font-size: 0.82rem;
    padding: 0.3rem 0.7rem;
  }
}

/* =========================================================
   Shop Navbar — تفاوت رنگی با Area User
   ========================================================= */
.shop-navbar {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  padding: 0.7rem 0;
  z-index: 1030;
}

.shop-navbar .navbar-brand {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.shop-navbar .navbar-brand i {
  font-size: 1.3rem;
  color: #f59e0b;
}

/* =========================================================
   Shop Info Bar — نوار اطلاعات فروشگاه
   ========================================================= */
.shop-info-bar {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-bottom: 1px solid #bfdbfe;
  padding: 0.85rem 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.shop-info-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.shop-info-bar-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: #fff;
  border-radius: 12px;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.shop-info-bar-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.shop-info-bar-label {
  font-size: 0.72rem;
  color: #1e40af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.1rem;
  opacity: 0.75;
}

.shop-info-bar-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1e3a8a;
  line-height: 1.4;
  word-break: break-word;
}

/* =========================================================
   Responsive — Shop Layout
   ========================================================= */
@media (max-width: 991.98px) {
  .shop-navbar .navbar-collapse {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .shop-navbar .navbar-nav {
    flex-direction: column !important;
    align-items: stretch;
    width: 100%;
  }

  .shop-navbar .nav-item {
    width: 100%;
  }

  .shop-navbar .nav-link {
    display: flex;
    width: 100%;
    padding: 0.7rem 0.9rem !important;
    justify-content: flex-start;
  }

  .shop-navbar .dropdown-menu {
    position: static !important;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.08);
    margin-top: 0.25rem;
  }

  .shop-navbar .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
  }

  .shop-navbar .dropdown-item i {
    color: #f59e0b;
  }

  .shop-navbar .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.14);
    color: #fff;
  }

  .shop-navbar .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.2);
  }

  .shop-navbar .navbar-brand {
    margin-left: 1rem;
    margin-right: 0;
  }

  .shop-info-bar {
    padding: 0.7rem 0;
  }
  .shop-info-bar-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .shop-info-bar-name {
    font-size: 0.92rem;
  }
}

/* =========================================================
   Input with Suffix — ورودی با پسوند (ریال، تومان و...)
   ========================================================= */
.input-with-suffix {
  position: relative;
  display: block;
}

.input-with-suffix .form-control {
  padding-left: 3.25rem; /* فضای پسوند در سمت چپ (چون فیلد ltr است) */
  padding-right: 0.9rem;
}

.input-suffix {
  position: absolute;
  top: 50%;

  left: 0.75rem;
  transform: translateY(-50%);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-primary-dark);
  pointer-events: none;
  background: #eff6ff;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid #bfdbfe;
}

/* =========================================================
   Field Hint — راهنمای زیر فیلد
   ========================================================= */
.field-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.field-hint .hint-label {
  color: var(--text-muted);
}

.field-hint .hint-value {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--brand-primary-dark);
}

.field-hint .hint-value strong {
  font-family: var(--bs-font-monospace);
  letter-spacing: 0.5px;
  color: var(--brand-accent-dark);
}

/* =========================================================
   Form Select — بهبود ظاهر select
   ========================================================= */
.form-card .form-select {
  background-position: left 0.75rem center;
  padding-left: 2.25rem;
  padding-right: 0.9rem;
  text-align: right;
}

.form-card textarea.form-control {
  min-height: 90px;
  line-height: 1.8;
  resize: vertical;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .input-suffix {
    font-size: 0.75rem;
    padding: 0.15rem 0.45rem;
  }
  .input-with-suffix .form-control {
    padding-left: 2.85rem;
  }
  .field-hint {
    font-size: 0.78rem;
  }
}

/* =========================================================
   Details Grid — نمایش جزئیات به صورت کارت‌های اطلاعاتی
   ========================================================= */
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.details-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  border-right: 4px solid var(--brand-primary);
  transition: all 0.22s ease;
}

.details-item:hover {
  background: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateX(-3px);
}

.details-item.full-width {
  grid-column: 1 / -1;
}

/* آیکون */
.details-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  color: #fff;
  border-radius: 10px;
  font-size: 1rem;
  box-shadow: 0 3px 10px rgba(30, 64, 175, 0.22);
}

.details-icon.accent {
  background: linear-gradient(
    135deg,
    var(--brand-accent),
    var(--brand-accent-dark)
  );
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.28);
}

/* بدنه */
.details-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.details-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}

.details-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  line-height: 1.5;
  word-break: break-word;
}

.details-value.ltr {
  direction: ltr;
  text-align: right;
  font-family: var(--bs-font-monospace);
  letter-spacing: 0.5px;
}

.details-value.highlight {
  color: var(--brand-accent-dark);
  font-size: 1.1rem;
}

.details-value.justify {
  text-align: justify;
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text-primary);
}

.details-value small {
  font-size: 0.78rem;
  font-weight: 500;
  margin-right: 0.25rem;
}

/* =========================================================
   Confirm Actions
   ========================================================= */
.confirm-actions {
  justify-content: center;
  gap: 1rem;
}

.confirm-actions .btn {
  min-width: 190px;
  justify-content: center;
  padding: 0.7rem 1.5rem;
}

/* =========================================================
   Responsive — Details
   ========================================================= */
@media (max-width: 767.98px) {
  .details-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .details-item {
    padding: 0.85rem 1rem;
    gap: 0.7rem;
  }

  .details-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .details-value {
    font-size: 0.88rem;
  }
  .details-value.highlight {
    font-size: 1rem;
  }
  .details-value.justify {
    font-size: 0.85rem;
    line-height: 1.75;
  }

  .confirm-actions {
    flex-direction: column;
  }
  .confirm-actions .btn {
    width: 100%;
  }
}

/* =========================================================
   Action Toolbar — نوار دکمه‌های عملیات
   ========================================================= */
.action-toolbar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.action-toolbar .btn {
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  transition: transform 0.15s;
}

.action-toolbar .btn:hover {
  transform: translateY(-2px);
}

/* =========================================================
   Print Bar — نوار راهنمای چاپ
   ========================================================= */
.print-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-radius: var(--radius-md);
  border-right: 4px solid var(--brand-success);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.print-bar-info {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: #065f46;
  flex: 1;
  min-width: 200px;
}

.print-bar-info i {
  color: var(--brand-success);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.print-bar .btn-success {
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  transition: transform 0.15s;
}

.print-bar .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

/* =========================================================
   Print Forms — فرم‌های چاپی
   ========================================================= */
.print-section {
  padding-bottom: 3rem;
}

.print-form {
  background: #fff;
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  position: relative;
}

.print-form::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(
    to left,
    var(--brand-primary),
    var(--brand-accent)
  );
  border-radius: 8px 8px 0 0;
}

/* هدر */
.print-header {
  text-align: center;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #1f2937;
}

.print-bismillah {
  font-size: 0.9rem;
  color: #1f2937;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.print-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem;
  letter-spacing: 1px;
}

.print-version {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  color: #fff;
  padding: 0.35rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 10px rgba(30, 64, 175, 0.25);
}

/* بدنه */
.print-body {
  padding: 1rem 0 1.5rem;
}

.print-body p {
  font-size: 1rem;
  line-height: 2.4;
  text-align: justify;
  color: #1f2937;
  margin: 0;
  direction: rtl;
}

.print-value {
  display: inline-block;
  font-weight: 700;
  color: var(--brand-primary-dark);
  padding: 0 0.35rem;
  border-bottom: 1.5px dotted var(--brand-primary);
  margin: 0 0.15rem;
  min-width: 60px;
  text-align: center;
}

.print-value.ltr {
  direction: ltr;
  font-family: var(--bs-font-monospace);
  letter-spacing: 0.5px;
}

/* امضاها */
.print-signatures {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px dashed #cbd5e1;
  margin-top: 1rem;
}

.signature-item {
  flex: 1;
  text-align: center;
}

.signature-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 3rem;
}

.signature-line {
  height: 1px;
  background: #1f2937;
  margin: 0 auto;
  max-width: 200px;
}

/* =========================================================
   Print Styles — استایل‌های مخصوص چاپ
   ========================================================= */
@media print {
  body {
    background: #fff !important;
  }

  .site-navbar,
  .shop-info-bar,
  .site-footer,
  .d-print-none,
  .page-header {
    display: none !important;
  }

  .site-main,
  .container,
  .print-section {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .print-form {
    page-break-after: always;
    page-break-inside: avoid;
    border: 1px solid #000;
    box-shadow: none;
    border-radius: 0;
    padding: 1.5cm;
    margin: 0;
    min-height: 25cm;
  }

  .print-form::before {
    display: none;
  }

  .print-form:last-child {
    page-break-after: auto;
  }

  .print-version {
    background: #1f2937 !important;
    color: #fff !important;
    box-shadow: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .print-body p {
    font-size: 12pt;
    line-height: 2.5;
  }

  .print-title {
    font-size: 16pt;
  }

  a[href]::after {
    content: none !important;
  }
}

/* =========================================================
   Responsive — Print Forms
   ========================================================= */
@media (max-width: 767.98px) {
  .action-toolbar {
    flex-direction: column;
  }
  .action-toolbar .btn {
    width: 100%;
    justify-content: center;
  }

  .print-bar {
    flex-direction: column;
    text-align: center;
  }
  .print-bar .btn-success {
    width: 100%;
    justify-content: center;
  }

  .print-form {
    padding: 1.25rem 1rem;
  }

  .print-title {
    font-size: 1.15rem;
  }
  .print-body p {
    font-size: 0.92rem;
    line-height: 2;
  }

  .print-signatures {
    gap: 1rem;
    flex-direction: column;
  }

  .signature-label {
    margin-bottom: 2rem;
  }
  .signature-line {
    max-width: 100%;
  }
}

/* =========================================================
   Filter Form Card — کارت فیلتر (سال/ماه)
   ========================================================= */
.filter-form-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--brand-accent);
}

.filter-form-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border-soft);
}

.filter-form-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  color: #fff;
  border-radius: 12px;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.filter-form-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin: 0 0 0.15rem;
}

.filter-form-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

/* ===== جمع‌ها ===== */
.filter-sums {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border-soft);
}

.filter-sum-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  transition: all 0.2s;
}

.filter-sum-item:hover {
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.filter-sum-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.filter-sum-icon.primary {
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
}

.filter-sum-icon.accent {
  background: linear-gradient(
    135deg,
    var(--brand-accent),
    var(--brand-accent-dark)
  );
}

.filter-sum-body {
  flex: 1;
  min-width: 0;
}

.filter-sum-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.filter-sum-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  font-family: var(--bs-font-monospace);
  letter-spacing: 0.5px;
}

.filter-sum-item:nth-child(2) .filter-sum-value {
  color: var(--brand-accent-dark);
}

/* =========================================================
   Row Deleted — ردیف حذف‌شده
   ========================================================= */
.modern-table tbody tr.row-deleted {
  background: #fef2f2;
  opacity: 0.65;
}

.modern-table tbody tr.row-deleted td {
  color: #991b1b;
  text-decoration: line-through;
  text-decoration-color: rgba(153, 27, 27, 0.4);
}

.modern-table tbody tr.row-deleted .status-badge {
  text-decoration: none;
  opacity: 1;
}

/* =========================================================
   Badge Count
   ========================================================= */
.badge-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: #eff6ff;
  color: var(--brand-primary);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid #bfdbfe;
}

.badge-count i {
  color: var(--brand-primary-light);
}

/* =========================================================
   Button Icon Print
   ========================================================= */
.btn-icon-print:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--brand-primary);
}

/* =========================================================
   Helper Classes
   ========================================================= */
.text-center {
  text-align: center !important;
}

.text-justify-sm {
  text-align: justify;
  font-size: 0.88rem;
  max-width: 220px;
}

/* =========================================================
   Status Colors (متناسب با item.Status)
   ========================================================= */
.status-0 {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}
.status-0::before {
  background: #f59e0b;
}

.status-1 {
  background: #f0fdf4;
  color: #065f46;
  border: 1px solid #bbf7d0;
}
.status-1::before {
  background: #10b981;
}

.status-2 {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.status-2::before {
  background: #ef4444;
}

/* =========================================================
   Responsive — Filter Form
   ========================================================= */
@media (max-width: 767.98px) {
  .filter-form-card {
    padding: 1.15rem;
  }
  .filter-form-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .filter-form-title {
    font-size: 0.92rem;
  }

  .filter-sums {
    grid-template-columns: 1fr;
  }
  .filter-sum-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .text-justify-sm {
    max-width: 140px;
    font-size: 0.82rem;
  }

  .modern-table .col-index {
    width: 42px;
  }
  .modern-table .col-action {
    width: 56px;
  }
}

/* =========================================================
   Modern Pagination — صفحه‌بندی مدرن
   ========================================================= */
.pagination-wrapper {
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.modern-pagination {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.modern-pagination .page-item {
  display: block;
}

.modern-pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 40px;
  height: 40px;
  padding: 0 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-primary-dark);
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.modern-pagination .page-link:hover {
  background: #eff6ff;
  color: var(--brand-primary);
  border-color: var(--brand-primary-light);
  transform: translateY(-1px);
}

.modern-pagination .page-item.active .page-link {
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  color: #fff;
  border-color: var(--brand-primary);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.modern-pagination .page-item.disabled .page-link {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: var(--border-soft);
  cursor: not-allowed;
  opacity: 0.7;
}

.modern-pagination .page-item.disabled .page-link:hover {
  transform: none;
  background: #f1f5f9;
  color: #94a3b8;
  border-color: var(--border-soft);
}

.modern-pagination .page-link i {
  font-size: 0.8rem;
}

.pagination-info {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pagination-info strong {
  color: var(--brand-primary-dark);
  font-family: var(--bs-font-monospace);
  font-weight: 700;
  margin: 0 0.15rem;
}

/* =========================================================
   Button Success (خروجی اکسل)
   ========================================================= */
.action-toolbar .btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.action-toolbar .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
  color: #fff;
}

/* =========================================================
   Helper Text Colors
   ========================================================= */
.text-success {
  color: var(--brand-success) !important;
}
.text-primary {
  color: var(--brand-primary) !important;
}
.text-danger {
  color: var(--brand-danger) !important;
}

/* =========================================================
   Responsive — Pagination
   ========================================================= */
@media (max-width: 767.98px) {
  .pagination-wrapper {
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
  }

  .modern-pagination {
    justify-content: center;
    gap: 0.25rem;
  }

  .modern-pagination .page-link {
    min-width: 34px;
    height: 34px;
    padding: 0 0.55rem;
    font-size: 0.8rem;
  }

  .modern-pagination .page-link span:not(.fa) {
    display: none;
  }

  .pagination-info {
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  /* در موبایل کوچک، فقط شماره‌های نزدیک به صفحه فعلی نمایش داده شوند */
  .modern-pagination
    .page-item:not(.active):not(:first-child):not(:last-child):not(.disabled) {
    display: none;
  }

  .modern-pagination .page-item.active,
  .modern-pagination .page-item:first-child,
  .modern-pagination .page-item:last-child {
    display: block;
  }
}

/* =========================================================
   Profile Image Section — بخش تصویر پروفایل
   ========================================================= */
.profile-image-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-soft);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.profile-image-wrapper {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}

.profile-image-wrapper:hover {
  border-color: var(--brand-primary-light);
  box-shadow: var(--shadow-md);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  color: #94a3b8;
}

.profile-image-placeholder i {
  font-size: 2.5rem;
  color: var(--brand-primary-light);
}

.profile-image-placeholder span {
  font-size: 0.78rem;
  font-weight: 500;
}

/* ===== اقدامات تصویر ===== */
.profile-image-actions {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-image-actions .btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.15rem;
}

.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.profile-image-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* =========================================================
   Input with Prefix — ورودی با پیشوند
   ========================================================= */
.input-with-prefix {
  position: relative;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  background: #fff;
}

.input-with-prefix:focus-within {
  border-color: var(--brand-primary-light);
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

.input-prefix {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  background: #eff6ff;
  color: var(--brand-primary-dark);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  border-left: 1px solid var(--border-soft);
  direction: ltr;
}

.input-with-prefix .form-control {
  border: none;
  border-radius: 0;
  box-shadow: none !important;
  flex: 1;
  min-width: 0;
}

.input-with-prefix .form-control:focus {
  box-shadow: none !important;
}

/* =========================================================
   CKEditor Customization
   ========================================================= */
.ck-editor__editable {
  min-height: 200px !important;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
  font-family: "Yekan", Tahoma, Arial, sans-serif !important;
  font-size: 0.92rem !important;
  line-height: 1.9 !important;
  direction: rtl;
  text-align: right;
}

.ck.ck-editor__top .ck-sticky-panel .ck-toolbar {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important;
  background: #f8fafc !important;
  border-color: var(--border-soft) !important;
}

.ck.ck-editor__main > .ck-editor__editable:not(.ck-focused) {
  border-color: var(--border-soft) !important;
}

.ck.ck-editor__main > .ck-editor__editable.ck-focused {
  border-color: var(--brand-primary-light) !important;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15) !important;
}

/* =========================================================
   Responsive — Profile Image
   ========================================================= */
@media (max-width: 767.98px) {
  .profile-image-section {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-image-wrapper {
    width: 150px;
    height: 150px;
  }

  .profile-image-actions {
    align-items: center;
    width: 100%;
  }

  .profile-image-actions .btn {
    align-self: center;
    width: 100%;
    justify-content: center;
  }

  .input-prefix {
    font-size: 0.75rem;
    padding: 0 0.5rem;
  }
}

/* =========================================================
   Admin Navbar — منوی ادمین
   ========================================================= */
.admin-navbar {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  padding: 0.55rem 0;
  z-index: 1030;
}

.admin-navbar .navbar-brand {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-navbar .navbar-brand i {
  color: #f59e0b;
  font-size: 1.3rem;
  animation: spin-slow 12s linear infinite;
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ===== منوی اصلی ===== */
.admin-navbar .admin-nav {
  flex-direction: row;
  align-items: center;
  gap: 0.05rem;
  margin-right: 1.5rem;
}

.admin-navbar .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 0.55rem 0.75rem !important;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  position: relative;
}

.admin-navbar .nav-link i {
  font-size: 0.82rem;
  opacity: 0.85;
}

.admin-navbar .nav-link:hover,
.admin-navbar .nav-link:focus {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.1);
}

.admin-navbar .nav-link.dropdown-toggle::after {
  font-size: 0.6rem;
  margin-right: 0.25rem;
  opacity: 0.6;
}

/* ===== بخش کاربر ===== */
.admin-navbar .admin-nav-user {
  margin-right: auto;
  flex-direction: row;
  align-items: center;
}

.admin-navbar .admin-nav-user .nav-link {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.admin-navbar .admin-nav-user .nav-link:hover {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24 !important;
}

/* ===== Dropdown ===== */
.admin-navbar .dropdown-menu {
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  padding: 0.45rem;
  min-width: 260px;
  margin-top: 0.35rem;
  right: 0;
  left: auto;
  text-align: right;
  background: #fff;
}

.admin-navbar .dropdown-item {
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #1f2937;
  transition: all 0.15s;
  white-space: normal;
  line-height: 1.5;
}

.admin-navbar .dropdown-item i {
  width: 18px;
  text-align: center;
  color: #1e40af;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.admin-navbar .dropdown-item:hover {
  background: #eff6ff;
  color: #1e3a8a;
}

.admin-navbar .dropdown-item:hover i {
  color: #f59e0b;
}

.admin-navbar .dropdown-item.text-danger {
  color: #dc2626 !important;
}

.admin-navbar .dropdown-item.text-danger i {
  color: #dc2626;
}

.admin-navbar .dropdown-item.text-danger:hover {
  background: #fef2f2;
}

.admin-navbar .dropdown-divider {
  margin: 0.35rem 0;
  border-color: #e5e7eb;
}

/* ===== Toggler ===== */
.admin-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25);
  padding: 0.35rem 0.6rem;
}

.admin-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.2);
  outline: none;
}

.admin-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =========================================================
   Admin Info Bar
   ========================================================= */
.admin-info-bar {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-bottom: 1px solid #bfdbfe;
  padding: 0.75rem 0;
}

.admin-info-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-info-bar-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: #fff;
  border-radius: 8px;
  font-size: 0.95rem;
  box-shadow: 0 3px 10px rgba(30, 64, 175, 0.25);
}

.admin-info-bar-content {
  font-size: 0.88rem;
  color: #1e3a8a;
  line-height: 1.6;
  font-weight: 500;
}

/* =========================================================
   Responsive — Admin Navbar
   ========================================================= */
@media (max-width: 1199.98px) {
  .admin-navbar .nav-link {
    padding: 0.5rem 0.55rem !important;
    font-size: 0.82rem;
  }
}

@media (max-width: 991.98px) {
  .admin-navbar .navbar-collapse {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    max-height: 75vh;
    overflow-y: auto;
  }

  .admin-navbar .admin-nav,
  .admin-navbar .admin-nav-user {
    flex-direction: column !important;
    align-items: stretch;
    width: 100%;
    margin-right: 0;
  }

  .admin-navbar .nav-item {
    width: 100%;
  }

  .admin-navbar .nav-link {
    display: flex;
    width: 100%;
    padding: 0.65rem 0.85rem !important;
    justify-content: flex-start;
    font-size: 0.9rem;
  }

  .admin-navbar .nav-link.dropdown-toggle::after {
    margin-right: auto;
  }

  .admin-navbar .dropdown-menu {
    position: static !important;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.05);
    margin: 0.25rem 0 0.5rem 0.5rem;
    padding: 0.35rem;
    min-width: auto;
  }

  .admin-navbar .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.45rem 0.65rem;
    font-size: 0.82rem;
  }

  .admin-navbar .dropdown-item i {
    color: #f59e0b;
  }

  .admin-navbar .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .admin-navbar .dropdown-item.text-danger {
    color: #f87171 !important;
  }

  .admin-navbar .dropdown-item.text-danger i {
    color: #f87171;
  }

  .admin-navbar .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.15);
  }

  .admin-navbar .admin-nav-user {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .admin-navbar .admin-nav-user .nav-link {
    background: rgba(245, 158, 11, 0.1);
    justify-content: center;
  }

  .admin-info-bar {
    padding: 0.65rem 0;
  }
  .admin-info-bar-icon {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
  .admin-info-bar-content {
    font-size: 0.82rem;
  }
}

/* =========================================================
   Badge Eshteghal — نشانگر اشتغال
   ========================================================= */
.badge-eshteghal {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  background: #f1f5f9;
  color: #475569;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

/* =========================================================
   Stat Warning — کارت آمار زرد
   ========================================================= */
.stat-warning .stat-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.28);
}

.stat-warning::before {
  background: #f59e0b;
}

.stat-warning .stat-value {
  color: #b45309;
}

/* =========================================================
   Modern Table — بهبود ستون‌های پرتراکم
   ========================================================= */
.modern-table td i.text-muted {
  margin-left: 0.35rem;
  color: #94a3b8 !important;
  font-size: 0.82rem;
}

.modern-table td {
  font-size: 0.85rem;
}

.modern-table thead th {
  font-size: 0.78rem;
}

/* اطمینان از نمایش صحیح LTR در ستون‌ها */
.modern-table td.ltr {
  direction: ltr;
  text-align: right;
  font-family: var(--bs-font-monospace);
  font-size: 0.82rem;
  letter-spacing: 0.3px;
}

/* =========================================================
   Status Badge (تکمیل اگر وجود ندارد)
   ========================================================= */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.status-0 {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}
.status-0::before {
  background: #f59e0b;
}

.status-1 {
  background: #f0fdf4;
  color: #065f46;
  border: 1px solid #bbf7d0;
}
.status-1::before {
  background: #10b981;
}

.status-2 {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.status-2::before {
  background: #ef4444;
}

/* =========================================================
   Badge Type — نوع درخواست
   ========================================================= */
.badge-type {
  display: inline-block;
  background: #eff6ff;
  color: var(--brand-primary);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid #bfdbfe;
  white-space: nowrap;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 991.98px) {
  .modern-table {
    min-width: 900px;
  }

  .modern-table thead th,
  .modern-table tbody td {
    padding: 0.65rem 0.55rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 767.98px) {
  .modern-table {
    min-width: 820px;
  }

  .modern-table thead th {
    font-size: 0.72rem;
  }

  .badge-type,
  .badge-eshteghal,
  .status-badge {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
  }
}

/* =========================================================
   Urgent Row — ردیف فوری (نیاز به ضامن)
   ========================================================= */
.modern-table tbody tr.row-urgent {
  background: linear-gradient(90deg, #fef2f2, #fff5f5);
}

.modern-table tbody tr.row-urgent td {
  border-bottom-color: #fecaca;
}

.modern-table tbody tr.row-urgent:hover {
  background: #fee2e2;
}

/* Status Badge Urgent — جایگزین قرمز یکنواخت قبلی */
.status-urgent {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
  border: 1px solid #b91c1c;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
  animation: pulse-urgent 2s infinite;
}

.status-urgent::before {
  background: #fff;
  opacity: 0.9;
}

.status-urgent i {
  font-size: 0.78rem;
  margin-left: 0.1rem;
}

@keyframes pulse-urgent {
  0%,
  100% {
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
  }
  50% {
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.5);
  }
}

/* =========================================================
   Table Link — لینک داخل جدول
   ========================================================= */
.modern-table .table-link {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border-bottom: 1px dashed transparent;
}

.modern-table .table-link:hover {
  color: var(--brand-accent-dark);
  border-bottom-color: var(--brand-accent);
}

/* =========================================================
   Modern Table Wide — جدول با ستون‌های زیاد
   ========================================================= */
.modern-table-wide {
  min-width: 1300px;
}

.modern-table-wide thead th {
  font-size: 0.75rem;
  padding: 0.75rem 0.7rem;
  white-space: nowrap;
}

.modern-table-wide tbody td {
  padding: 0.8rem 0.7rem;
  font-size: 0.82rem;
  vertical-align: middle;
}

.modern-table-wide td.ltr {
  direction: ltr;
  text-align: right;
  font-family: var(--bs-font-monospace);
  font-size: 0.8rem;
  letter-spacing: 0.3px;
}

.modern-table-wide td i.text-muted {
  color: #94a3b8 !important;
  font-size: 0.78rem;
  margin-left: 0.3rem;
}

/* =========================================================
   Stat Info — کارت آمار آبی روشن
   ========================================================= */
.stat-info .stat-icon {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.28);
}

.stat-info::before {
  background: #06b6d4;
}

.stat-info .stat-value {
  color: #0e7490;
}

/* =========================================================
   Stat Cards در ادمین با ۴ رنگ
   ========================================================= */
.stat-warning .stat-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.28);
}
.stat-warning::before {
  background: #f59e0b;
}
.stat-warning .stat-value {
  color: #b45309;
}

.stat-success .stat-icon {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
}
.stat-success::before {
  background: #10b981;
}
.stat-success .stat-value {
  color: #047857;
}

.stat-primary .stat-icon {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.28);
}
.stat-primary::before {
  background: #1e40af;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 991.98px) {
  .modern-table-wide {
    min-width: 1100px;
  }

  .modern-table-wide thead th,
  .modern-table-wide tbody td {
    padding: 0.6rem 0.55rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 767.98px) {
  .stat-value.ltr {
    font-size: 0.82rem;
    word-break: break-word;
  }
}

/* =========================================================
   Download Box — باکس دانلود فایل نمونه
   ========================================================= */
.download-box {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.15rem;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-radius: var(--radius-md);
  border: 1px solid #bbf7d0;
  border-right: 4px solid var(--brand-success);
}

.download-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-radius: 10px;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
}

.download-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.download-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 0.15rem;
}

.download-desc {
  font-size: 0.78rem;
  color: #047857;
  opacity: 0.85;
  line-height: 1.5;
}

.download-box .btn-success {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.22);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  flex-shrink: 0;
  text-decoration: none;
}

.download-box .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
  color: #fff;
}

/* =========================================================
   File Upload Box — باکس آپلود فایل
   ========================================================= */
.file-upload-box {
  position: relative;
  display: block;
  border: 2px dashed var(--border-soft);
  border-radius: var(--radius-md);
  background: #f8fafc;
  transition: all 0.25s ease;
  overflow: hidden;
  cursor: pointer;
}

.file-upload-box:hover {
  border-color: var(--brand-primary-light);
  background: #eff6ff;
}

.file-upload-box.dragging {
  border-color: var(--brand-primary);
  background: #dbeafe;
  transform: scale(1.01);
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.15);
}

.file-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 2rem 1rem;
  margin: 0;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  position: relative;
  z-index: 1;
}

.file-upload-label i {
  font-size: 2rem;
  color: var(--brand-primary);
  transition: transform 0.25s;
}

.file-upload-box:hover .file-upload-label i {
  transform: translateY(-4px);
}

.file-upload-label.file-selected i {
  color: var(--brand-success);
}

.file-upload-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 300px;
}

.file-upload-label.file-selected .file-upload-text {
  color: #065f46;
  font-weight: 500;
}

.file-upload-filename {
  display: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  padding: 0.35rem 0.9rem;
  background: #fff;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  direction: ltr;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-upload-filename.has-file {
  display: inline-block;
}

.file-selected {
  padding: 1.25rem 1rem;
}

/* =========================================================
   Field Status — کوچک‌سازی در کنار label
   ========================================================= */
.form-label .field-status {
  font-size: 0.78rem;
  margin-top: 0;
  margin-right: 0.35rem;
}

/* =========================================================
   Responsive — Download Box & File Upload
   ========================================================= */
@media (max-width: 575.98px) {
  .download-box {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
  }

  .download-box .btn-success {
    width: 100%;
    justify-content: center;
  }

  .file-upload-label {
    padding: 1.5rem 1rem;
  }

  .file-upload-label i {
    font-size: 1.65rem;
  }

  .file-upload-text {
    font-size: 0.82rem;
  }
}

/* =========================================================
   Comments Section — صفحه ادمین نظرات
   ========================================================= */
.comments-section {
  padding-bottom: 3rem;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ===== Comment Card ===== */
.comment-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  transition: all 0.25s ease;
  position: relative;
}

.comment-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  border-radius: 4px 0 0 4px;
}

.comment-card.is-approved::before {
  background: linear-gradient(to bottom, #10b981, #059669);
}

.comment-card.is-pending::before {
  background: linear-gradient(to bottom, #f59e0b, #d97706);
}

.comment-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary-light);
}

/* ===== Header ===== */
.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-soft);
  flex-wrap: wrap;
}

.comment-user-block {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  min-width: 240px;
}

.comment-avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  color: #fff;
  border-radius: 50%;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.comment-user-info {
  flex: 1;
  min-width: 0;
}

.comment-user-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin-bottom: 0.2rem;
  line-height: 1.4;
}

.comment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.comment-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  direction: ltr;
}

.comment-meta .meta-item i {
  color: var(--brand-accent);
  font-size: 0.85rem;
}

.comment-status {
  flex-shrink: 0;
}

/* ===== Body ===== */
.comment-body {
  padding: 1.25rem;
  font-size: 0.93rem;
  line-height: 1.9;
  color: var(--text-primary);
  text-align: justify;
  direction: rtl;
}

.comment-body p:last-child {
  margin-bottom: 0;
}

/* ===== Replies ===== */
.comment-replies {
  margin: 0 1.25rem 1.15rem;
  padding: 1rem 1.15rem;
  background: #eff6ff;
  border-radius: var(--radius-sm);
  border-right: 3px solid var(--brand-primary);
}

.replies-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.replies-title i {
  color: var(--brand-accent);
  font-size: 0.95rem;
}

.reply-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed #bfdbfe;
}

.reply-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.reply-item:first-of-type {
  padding-top: 0;
}

.reply-body {
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-primary);
  text-align: justify;
  direction: rtl;
}

.reply-body p:last-child {
  margin-bottom: 0;
}

.reply-actions {
  flex-shrink: 0;
}

/* ===== Actions ===== */
.comment-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: #f8fafc;
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.btn-action i {
  font-size: 0.85rem;
}

/* سبز — تأیید */
.btn-action-success {
  background: #f0fdf4;
  color: #065f46;
  border-color: #bbf7d0;
}

.btn-action-success:hover {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

/* آبی — پاسخ */
.btn-action-primary {
  background: #eff6ff;
  color: var(--brand-primary);
  border-color: #bfdbfe;
}

.btn-action-primary:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

/* قرمز — حذف */
.btn-action-danger {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.btn-action-danger:hover {
  background: var(--brand-danger);
  color: #fff;
  border-color: var(--brand-danger);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

/* =========================================================
   Responsive — Comment Card
   ========================================================= */
@media (max-width: 767.98px) {
  .comment-header {
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
  }

  .comment-user-block {
    min-width: 0;
  }

  .comment-avatar {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
  }

  .comment-user-name {
    font-size: 0.92rem;
  }

  .comment-meta {
    gap: 0.5rem;
  }

  .comment-status {
    align-self: flex-start;
  }

  .comment-body {
    padding: 1rem;
    font-size: 0.88rem;
  }

  .comment-replies {
    margin: 0 1rem 1rem;
    padding: 0.85rem;
  }

  .comment-actions {
    padding: 0.7rem 1rem;
    gap: 0.35rem;
  }

  .btn-action {
    flex: 1;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}
/* =========================================================
   Status Paused — وضعیت تعلیق‌شده
   ========================================================= */
.status-paused {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #78350f;
  border: 1px solid #fcd34d;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.status-paused::before {
  background: #d97706;
}

.status-paused i {
  font-size: 0.78rem;
  margin-left: 0.15rem;
}

/* =========================================================
   Button Action Small — دکمه کوچک
   ========================================================= */
.btn-action-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  gap: 0.3rem;
}

.btn-action-sm i {
  font-size: 0.78rem;
}

/* =========================================================
   Modern Table Wide — تکمیل اگر وجود ندارد
   ========================================================= */
.modern-table-wide {
  min-width: 1300px;
}

.modern-table-wide thead th {
  font-size: 0.75rem;
  padding: 0.75rem 0.7rem;
  white-space: nowrap;
}

.modern-table-wide tbody td {
  padding: 0.8rem 0.7rem;
  font-size: 0.82rem;
  vertical-align: middle;
}

.modern-table-wide td.ltr {
  direction: ltr;
  text-align: right;
  font-family: var(--bs-font-monospace);
  font-size: 0.8rem;
  letter-spacing: 0.3px;
}

.modern-table-wide td i.text-muted {
  color: #94a3b8 !important;
  font-size: 0.78rem;
  margin-left: 0.3rem;
}

.modern-table-wide .table-link {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border-bottom: 1px dashed transparent;
}

.modern-table-wide .table-link:hover {
  color: var(--brand-accent-dark);
  border-bottom-color: var(--brand-accent);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 991.98px) {
  .modern-table-wide {
    min-width: 1100px;
  }

  .modern-table-wide thead th,
  .modern-table-wide tbody td {
    padding: 0.6rem 0.55rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 767.98px) {
  .btn-action-sm {
    padding: 0.3rem 0.55rem;
    font-size: 0.72rem;
  }

  .btn-action-sm span {
    display: none;
  }
}
/* =========================================================
   Details Card — کارت اطلاعات درخواست
   ========================================================= */
.details-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  padding: 1.5rem;
  border-top: 4px solid var(--brand-primary);
}

.details-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--border-soft);
}

.details-card-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  color: #fff;
  border-radius: 12px;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.details-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin: 0 0 0.15rem;
}

.details-card-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

/* =========================================================
   Details Icon Warning — آیکون هشدار (زرد)
   ========================================================= */
.details-icon.warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.28);
}

/* =========================================================
   Details Item — بزرگ‌تر برای این صفحه
   ========================================================= */
.details-card .details-item {
  padding: 1rem 1.15rem;
}

.details-card .details-value {
  font-size: 1rem;
}

/* =========================================================
   Responsive — Details Card
   ========================================================= */
@media (max-width: 767.98px) {
  .details-card {
    padding: 1.15rem;
  }

  .details-card-header {
    gap: 0.75rem;
    margin-bottom: 1.15rem;
    padding-bottom: 1rem;
  }

  .details-card-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .details-card-title {
    font-size: 1rem;
  }
}
/* =========================================================
   Charts Section — نمودارهای مدیریتی
   ========================================================= */
.charts-section {
  padding-bottom: 3rem;
}

/* ===== Chart Card ===== */
.chart-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s;
}

.chart-card:hover {
  box-shadow: var(--shadow-md);
}

/* ===== Chart Header ===== */
.chart-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(to left, #f8fafc, #fff);
}

.chart-card-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
  border-radius: 12px;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.chart-card-icon.accent {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.28);
}

.chart-card-icon.success {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.chart-card-icon.info {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
}

.chart-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin: 0 0 0.15rem;
}

.chart-card-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

/* ===== Chart Body ===== */
.chart-card-body {
  position: relative;
  padding: 1.25rem;
  flex: 1;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-card-body canvas {
  width: 100% !important;
  height: 300px !important;
}

/* ===== Loading State ===== */
.chart-loading {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.85);
  z-index: 3;
}

.chart-loading i {
  font-size: 2rem;
  color: var(--brand-primary);
}

.chart-loading span {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== Error State ===== */
.chart-error {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.95);
  z-index: 3;
  padding: 1rem;
  text-align: center;
}

.chart-error i {
  font-size: 2rem;
  color: var(--brand-danger);
}

.chart-error span {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.chart-error .btn-retry {
  margin-top: 0.35rem;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-primary);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.chart-error .btn-retry::before {
  content: "\f021";
  font-family: FontAwesome;
}

.chart-error .btn-retry:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

/* =========================================================
   Responsive — Charts
   ========================================================= */
@media (max-width: 767.98px) {
  .chart-card-header {
    padding: 1rem;
    gap: 0.65rem;
  }

  .chart-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .chart-card-title {
    font-size: 0.92rem;
  }

  .chart-card-sub {
    font-size: 0.72rem;
  }

  .chart-card-body {
    padding: 1rem;
    min-height: 300px;
  }

  .chart-card-body canvas {
    height: 260px !important;
  }
}

/* =========================================================
   Dashboard Section
   ========================================================= */
.dashboard-section {
  padding-bottom: 3rem;
}

/* ===== Dashboard Section Title ===== */
.dashboard-section-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-soft);
}

.dashboard-section-title i {
  color: var(--brand-accent);
  font-size: 1.05rem;
}

.dashboard-section-title span {
  position: relative;
}

/* =========================================================
   Stat Link Card — کارت آمار کلیک‌پذیر
   ========================================================= */
.stat-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text-primary);
  height: 100%;
  min-height: 110px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.stat-link-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  border-radius: 0 4px 4px 0;
  transition: width 0.25s ease;
}

.stat-link-card::after {
  content: "\f105";
  font-family: FontAwesome;
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--text-muted);
  opacity: 0;
  transition: all 0.25s ease;
}

.stat-link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
  border-color: var(--brand-primary-light);
}

.stat-link-card:hover::before {
  width: 6px;
}

.stat-link-card:hover::after {
  opacity: 1;
  left: 0.75rem;
  color: var(--brand-primary);
}

/* ===== آیکون ===== */
.stat-link-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease;
}

.stat-link-card:hover .stat-link-icon {
  transform: scale(1.08) rotate(-3deg);
}

/* ===== بدنه ===== */
.stat-link-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-left: 1.25rem; /* فضا برای آیکون فلش */
}

.stat-link-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-link-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-primary-dark);
  line-height: 1.4;
  word-break: break-word;
}

.stat-link-value.ltr {
  direction: ltr;
  text-align: right;
  font-family: var(--bs-font-monospace);
  font-size: 1rem;
  letter-spacing: 0.3px;
}

.stat-link-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.8;
  line-height: 1.5;
}

.stat-link-hint strong {
  color: var(--brand-accent-dark);
  font-weight: 700;
}

/* =========================================================
   Color Themes — رنگ‌بندی کارت‌ها
   ========================================================= */

/* Primary — آبی */
.stat-primary::before {
  background: linear-gradient(to bottom, #3b82f6, #1e40af);
}
.stat-primary .stat-link-icon {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
}
.stat-primary .stat-link-value {
  color: #1e40af;
}
.stat-primary:hover {
  border-color: #93c5fd;
  box-shadow: 0 12px 28px rgba(30, 64, 175, 0.15);
}

/* Success — سبز */
.stat-success::before {
  background: linear-gradient(to bottom, #10b981, #047857);
}
.stat-success .stat-link-icon {
  background: linear-gradient(135deg, #10b981, #047857);
}
.stat-success .stat-link-value {
  color: #047857;
}
.stat-success:hover {
  border-color: #6ee7b7;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.15);
}

/* Danger — قرمز */
.stat-danger::before {
  background: linear-gradient(to bottom, #ef4444, #b91c1c);
}
.stat-danger .stat-link-icon {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}
.stat-danger .stat-link-value {
  color: #b91c1c;
}
.stat-danger:hover {
  border-color: #fca5a5;
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.15);
}

/* Warning — زرد/نارنجی */
.stat-warning::before {
  background: linear-gradient(to bottom, #f59e0b, #b45309);
}
.stat-warning .stat-link-icon {
  background: linear-gradient(135deg, #f59e0b, #b45309);
}
.stat-warning .stat-link-value {
  color: #b45309;
}
.stat-warning:hover {
  border-color: #fcd34d;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.15);
}

/* Info — فیروزه‌ای */
.stat-info::before {
  background: linear-gradient(to bottom, #06b6d4, #0e7490);
}
.stat-info .stat-link-icon {
  background: linear-gradient(135deg, #06b6d4, #0e7490);
}
.stat-info .stat-link-value {
  color: #0e7490;
}
.stat-info:hover {
  border-color: #67e8f9;
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.15);
}

/* =========================================================
   Responsive — Dashboard
   ========================================================= */
@media (max-width: 991.98px) {
  .stat-link-card {
    padding: 1rem 1.1rem;
    min-height: 100px;
  }

  .stat-link-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .stat-link-value {
    font-size: 1.05rem;
  }

  .stat-link-value.ltr {
    font-size: 0.92rem;
  }
}

@media (max-width: 575.98px) {
  .stat-link-card {
    min-height: auto;
    padding: 0.9rem 1rem;
    gap: 0.75rem;
  }

  .stat-link-icon {
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
    border-radius: 10px;
  }

  .stat-link-body {
    padding-left: 1rem;
  }

  .stat-link-label {
    font-size: 0.72rem;
  }

  .stat-link-value {
    font-size: 0.95rem;
  }

  .stat-link-value.ltr {
    font-size: 0.82rem;
  }

  .stat-link-hint {
    font-size: 0.68rem;
  }

  .dashboard-section-title {
    font-size: 0.88rem;
  }
}

/* =========================================================
   Print — مخفی کردن کارت‌های داشبورد
   ========================================================= */
@media print {
  .stat-link-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }

  .stat-link-card::after {
    display: none;
  }
}
/* =========================================================
   Action Buttons — دکمه‌های عملیات درون جدول
   ========================================================= */
.action-buttons {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

.action-buttons .btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.action-buttons .btn-action i {
  font-size: 0.8rem;
}

.action-buttons .btn-action:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

/* سبز — تأیید */
.action-buttons .btn-action-success {
  background: #f0fdf4;
  color: #065f46;
  border-color: #bbf7d0;
}

.action-buttons .btn-action-success:hover:not(:disabled) {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-color: #10b981;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* قرمز — رد */
.action-buttons .btn-action-danger {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.action-buttons .btn-action-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border-color: #ef4444;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* =========================================================
   Col Action Wide — ستون عملیات بزرگ‌تر
   ========================================================= */
.modern-table .col-action-wide {
  min-width: 160px;
  text-align: center;
  white-space: nowrap;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .action-buttons {
    gap: 0.25rem;
  }

  .action-buttons .btn-action {
    padding: 0.35rem 0.6rem;
    font-size: 0.72rem;
  }

  .action-buttons .btn-action span {
    display: none;
  }

  .action-buttons .btn-action i {
    font-size: 0.85rem;
  }

  .modern-table .col-action-wide {
    min-width: 90px;
  }
}
/* =========================================================
   News Table — تصویر بندانگشتی اخبار
   ========================================================= */
.modern-table .col-thumb {
  width: 100px;
  text-align: center;
}

.news-thumb {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  transition: transform 0.2s;
}

.news-thumb:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-thumb-placeholder {
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  color: #94a3b8;
  font-size: 1.5rem;
}

/* ===== عنوان خبر ===== */
.news-title-cell {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
  text-align: justify;
  max-width: 500px;
}

/* =========================================================
   Button Icon Edit — دکمه ویرایش
   ========================================================= */
.btn-icon-edit:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--brand-primary);
}

/* =========================================================
   Responsive — News Table
   ========================================================= */
@media (max-width: 767.98px) {
  .modern-table .col-thumb {
    width: 60px;
  }

  .news-thumb {
    width: 50px;
    height: 40px;
    border-radius: 6px;
  }

  .news-thumb-placeholder {
    font-size: 1rem;
  }

  .news-title-cell {
    font-size: 0.82rem;
    max-width: 200px;
  }

  .action-buttons {
    gap: 0.25rem;
  }

  .btn-icon {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
}

/* =========================================================
   News Image Wrapper — باکس تصویر خبر
   ========================================================= */
.news-image-wrapper {
  width: 100% !important;
  height: 240px !important;
  aspect-ratio: 16 / 9;
}

.news-image-wrapper .profile-image {
  object-fit: cover;
}

/* =========================================================
   Field Hint — راهنمای زیر فیلد
   ========================================================= */
.field-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  line-height: 1.6;
}

/* =========================================================
   Form Label — بهبود labelهای آیکون‌دار
   ========================================================= */
.form-label i.fa-header::before {
  content: "\f1dc"; /* جايگزين نماد heading */
}

.form-label i.fa-paragraph::before {
  content: "\f1dd";
}

/* =========================================================
   CKEditor Customization
   ========================================================= */
.ck-editor__editable {
  min-height: 280px !important;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
  font-family: "Yekan", Tahoma, Arial, sans-serif !important;
  font-size: 0.92rem !important;
  line-height: 1.9 !important;
  direction: rtl;
  text-align: right;
  background: #fff;
}

.ck.ck-editor__top .ck-sticky-panel .ck-toolbar {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important;
  background: #f8fafc !important;
  border-color: var(--border-soft) !important;
}

.ck.ck-editor__main > .ck-editor__editable:not(.ck-focused) {
  border-color: var(--border-soft) !important;
}

.ck.ck-editor__main > .ck-editor__editable.ck-focused {
  border-color: var(--brand-primary-light) !important;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15) !important;
}

/* Placeholder */
.ck.ck-editor__editable .ck-placeholder::before {
  color: #94a3b8 !important;
  font-family: "Yekan", Tahoma, sans-serif !important;
  font-size: 0.9rem !important;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .news-image-wrapper {
    height: 200px !important;
  }

  .ck-editor__editable {
    min-height: 220px !important;
  }
}
/* =========================================================
   Image Action Buttons — دکمه‌های اقدام تصویر
   ========================================================= */
.image-action-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.current-image-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  background: #eff6ff;
  border-radius: var(--radius-sm);
  border-right: 3px solid var(--brand-primary);
  font-size: 0.82rem;
  color: #1e3a8a;
  line-height: 1.6;
  margin-top: 0.35rem;
}

.current-image-note i {
  color: var(--brand-primary);
  font-size: 0.9rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.current-image-note span {
  flex: 1;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 575.98px) {
  .image-action-buttons {
    width: 100%;
  }

  .image-action-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .current-image-note {
    font-size: 0.78rem;
    padding: 0.5rem 0.7rem;
  }
}

/* =========================================================
   Status Alert — هشدار وضعیت (قابل درخواست / غیرقابل)
   ========================================================= */
.status-alert {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
}

.status-alert-success {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-color: #bbf7d0;
  border-right: 5px solid var(--brand-success);
}

.status-alert-danger {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border-color: #fecaca;
  border-right: 5px solid var(--brand-danger);
}

.status-alert-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.status-alert-success .status-alert-icon {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.status-alert-danger .status-alert-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3);
}

.status-alert-body {
  flex: 1;
  min-width: 0;
}

.status-alert-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
}

.status-alert-success .status-alert-title {
  color: #065f46;
}
.status-alert-danger .status-alert-title {
  color: #991b1b;
}

.status-alert-desc {
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.7;
}

.status-alert-success .status-alert-desc {
  color: #047857;
}
.status-alert-danger .status-alert-desc {
  color: #b91c1c;
}

/* =========================================================
   Details Icon Variants
   ========================================================= */
.details-icon.success {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.28);
}

.details-icon.danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.28);
}

.details-value.text-danger {
  color: var(--brand-danger) !important;
}
.details-value.text-success {
  color: var(--brand-success) !important;
}

/* =========================================================
   Mobile Row — ردیف موبایل در details
   ========================================================= */
.mobile-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.mobile-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  font-family: var(--bs-font-monospace);
  letter-spacing: 0.5px;
  direction: ltr;
}

/* =========================================================
   Switch Card — کارت غیرفعال کردن کاربر
   ========================================================= */
.switch-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: #f8fafc;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.switch-card.is-active {
  background: #fef2f2;
  border-color: #fecaca;
  border-right: 4px solid var(--brand-danger);
}

.switch-card-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #64748b, #475569);
  color: #fff;
  border-radius: 12px;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(71, 85, 105, 0.25);
  transition: all 0.25s;
}

.switch-card.is-active .switch-card-icon {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.switch-card-body {
  flex: 1;
  min-width: 0;
}

.switch-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.2rem;
}

.switch-card.is-active .switch-card-title {
  color: #991b1b;
}

.switch-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ===== Switch Toggle ===== */
.switch-card-control {
  position: relative;
  flex-shrink: 0;
}

.switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-label {
  display: block;
  width: 54px;
  height: 30px;
  background: #cbd5e1;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s;
}

.switch-label::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s;
}

.switch-input:checked + .switch-label {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.switch-input:checked + .switch-label::after {
  transform: translateX(-24px);
}

.switch-input:focus + .switch-label {
  box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.2);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .status-alert {
    padding: 1rem;
    gap: 0.75rem;
  }

  .status-alert-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  .status-alert-title {
    font-size: 0.92rem;
  }
  .status-alert-desc {
    font-size: 0.8rem;
  }

  .switch-card {
    padding: 0.9rem 1rem;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .switch-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .switch-card-title {
    font-size: 0.88rem;
  }
  .switch-card-desc {
    font-size: 0.75rem;
  }

  .switch-card-control {
    margin-right: auto;
  }

  .mobile-row {
    gap: 0.4rem;
  }

  .mobile-value {
    font-size: 0.9rem;
  }
}
/* =========================================================
   Search Card — کارت جستجو
   ========================================================= */
.search-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--brand-primary);
}

.search-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border-soft);
}

.search-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  color: #fff;
  border-radius: 12px;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.search-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin: 0 0 0.15rem;
}

.search-card-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ===== Input Group ===== */
.search-input-group {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 240px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  direction: rtl;
}

.search-input:focus {
  border-color: var(--brand-primary-light);
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
  outline: none;
}

.search-btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  border: none;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
  transition: transform 0.15s;
  white-space: nowrap;
}

.search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.4);
}

.search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  border-radius: var(--radius-sm);
}

/* ===== Search Result Info ===== */
.search-result-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  background: #eff6ff;
  border-radius: var(--radius-sm);
  border-right: 3px solid var(--brand-primary);
  font-size: 0.85rem;
  color: #1e3a8a;
  flex-wrap: wrap;
}

.search-result-info i {
  color: var(--brand-primary);
  font-size: 0.95rem;
}

.search-result-info strong {
  color: var(--brand-primary-dark);
  font-weight: 700;
  padding: 0 0.15rem;
}

.search-count {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-right: auto;
}

/* =========================================================
   Button Action Warning — دکمه بازنشانی رمز
   ========================================================= */
.btn-action-warning {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.btn-action-warning:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border-color: #f59e0b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

/* =========================================================
   Custom Toast — نوتیفیکیشن موقت
   ========================================================= */
.custom-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  z-index: 9999;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  max-width: 90vw;
}

.custom-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.custom-toast i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.custom-toast-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.custom-toast-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .search-card {
    padding: 1.15rem;
  }

  .search-card-icon {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .search-card-title {
    font-size: 0.92rem;
  }
  .search-card-sub {
    font-size: 0.76rem;
  }

  .search-input-group {
    flex-direction: column;
  }

  .search-input {
    width: 100%;
    min-width: 0;
  }

  .search-btn {
    width: 100%;
    justify-content: center;
  }

  .search-clear {
    width: 100%;
  }

  .btn-action-sm span {
    display: none;
  }

  .btn-action-sm {
    padding: 0.35rem 0.6rem;
    justify-content: center;
    min-width: 34px;
  }

  .custom-toast {
    left: 1rem;
    right: 1rem;
    transform: translateY(100%);
    max-width: none;
  }

  .custom-toast.show {
    transform: translateY(0);
  }
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* اجازه می‌دهد جدول بزرگ‌تر از container باشد */
  padding-bottom: 0.5rem;
}

.table-responsive > .modern-table-wide {
  width: 100%;
  min-width: 1200px;
}

/* =========================================================
   Slide Image Section — بخش تصویر اسلاید
   ========================================================= */
.slide-image-section {
  margin-bottom: 1.5rem;
}

.slide-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 12 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f1f5f9;
  border: 2px dashed var(--border-soft);
  transition: all 0.25s ease;
  margin-bottom: 1rem;
}

.slide-image-wrapper:hover {
  border-color: var(--brand-primary-light);
  background: #eff6ff;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.slide-image.has-image {
  object-fit: cover;
}

.slide-image-wrapper:hover .slide-image.has-image {
  transform: scale(1.02);
}

/* آیکون گوشه (وقتی تصویر نیست) */
.slide-image-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--brand-primary);
  font-size: 3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.slide-image-wrapper:hover .slide-image-overlay {
  opacity: 0.15;
}

/* ===== اقدامات تصویر ===== */
.slide-image-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
}

.slide-image-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.35rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  border: none;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
  transition: transform 0.15s;
}

.slide-image-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.4);
  color: #fff;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .slide-image-wrapper {
    aspect-ratio: 16 / 9;
  }

  .slide-image-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .profile-image-hint {
    font-size: 0.75rem;
  }
}

/* =========================================================
   Slide Card — کارت اسلاید
   ========================================================= */
.slide-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.slide-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(
    to left,
    var(--brand-primary),
    var(--brand-accent)
  );
  z-index: 2;
}

.slide-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary-light);
}

/* ===== ردیف بالای کارت (شماره) ===== */
.slide-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
}

.slide-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 0.55rem;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--bs-font-monospace);
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ===== تصویر ===== */
.slide-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 12 / 5;
  overflow: hidden;
  background: #f1f5f9;
}

.slide-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.slide-card:hover .slide-card-image img {
  transform: scale(1.06);
}

.slide-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  color: #94a3b8;
}

.slide-card-placeholder i {
  font-size: 2.5rem;
}

.slide-card-placeholder span {
  font-size: 0.8rem;
  font-weight: 500;
}

/* ===== بدنه ===== */
.slide-card-body {
  padding: 1rem 1.15rem;
  flex: 1;
  display: flex;
  align-items: center;
}

.slide-card-caption {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  line-height: 1.6;
  margin: 0;
  text-align: center;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== اقدامات ===== */
.slide-card-actions {
  padding: 0 1.15rem 1.15rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  border-top: 1px dashed var(--border-soft);
  padding-top: 1rem;
  margin-top: auto;
}

.slide-card-actions .btn-action {
  flex: 1;
  justify-content: center;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .slide-card-image {
    aspect-ratio: 16 / 9;
  }

  .slide-card-caption {
    font-size: 0.88rem;
  }

  .slide-card-body {
    padding: 0.85rem 1rem;
  }

  .slide-card-actions {
    padding: 0 1rem 1rem;
  }
}

/* =========================================================
   Table Group Headers — سرستون‌های گروه‌بندی‌شده
   ========================================================= */
.modern-table .th-group-old,
.modern-table .th-group-mid,
.modern-table .th-group-new {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-bottom: 2px solid var(--border-soft);
}

.modern-table .th-group-old {
  background: #fef3c7; /* زرد روشن */
  color: #78350f;
}

.modern-table .th-group-mid {
  background: #fef3c7;
  color: #78350f;
}

.modern-table .th-group-new {
  background: #fef3c7;
  color: #78350f;
}

.modern-table .th-sub {
  font-size: 0.7rem;
  padding: 0.55rem 0.4rem;
  font-weight: 600;
  background: #fffbeb;
  color: #92400e;
  border-bottom: 1px solid #fde68a;
}

/* =========================================================
   Cell Month — سلول‌های ماه در جدول NotPay
   ========================================================= */
.modern-table td.cell-month {
  font-weight: 700;
  color: #78350f;
  background: rgba(254, 243, 199, 0.35);
  font-family: var(--bs-font-monospace);
  text-align: center;
}

.modern-table td.cell-old,
.modern-table td.cell-mid,
.modern-table td.cell-new {
  background: rgba(254, 243, 199, 0.2);
}

.modern-table tbody tr:hover td.cell-old,
.modern-table tbody tr:hover td.cell-mid,
.modern-table tbody tr:hover td.cell-new {
  background: rgba(254, 243, 199, 0.45);
}

/* =========================================================
   Row Critical — ردیف بحرانی (بدهی بیشتر از سرمایه)
   ========================================================= */
.modern-table tbody tr.row-critical {
  background: linear-gradient(90deg, #fef2f2, #fff5f5);
}

.modern-table tbody tr.row-critical td {
  border-bottom-color: #fecaca;
  color: #991b1b;
}

.modern-table tbody tr.row-critical:hover {
  background: #fee2e2;
}

.modern-table tbody tr.row-critical .status-badge,
.modern-table tbody tr.row-critical .badge-eshteghal {
  opacity: 1;
  color: inherit;
}

/* =========================================================
   Badge Count Colors
   ========================================================= */
.badge-count.badge-warning {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.badge-count.badge-danger {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.badge-count.badge-info {
  background: #ecfeff;
  color: #0e7490;
  border-color: #a5f3fc;
}

/* =========================================================
   Helper Icon Colors
   ========================================================= */
.text-warning {
  color: #d97706 !important;
}
.text-info {
  color: #0891b2 !important;
}
.text-success {
  color: #059669 !important;
}
.text-danger {
  color: #dc2626 !important;
}

/* =========================================================
   Empty State — بهبود نمایش
   ========================================================= */
.empty-state {
  padding: 2.5rem 1rem;
  text-align: center;
}

.empty-state i {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.75rem;
}

.empty-state p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 991.98px) {
  .modern-table .th-group-old,
  .modern-table .th-group-mid,
  .modern-table .th-group-new {
    font-size: 0.68rem;
  }

  .modern-table .th-sub {
    font-size: 0.66rem;
    padding: 0.45rem 0.3rem;
  }
}

@media (max-width: 767.98px) {
  .list-card-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .warn-alert {
    font-size: 0.82rem;
    padding: 0.75rem 1rem;
  }
}

/* =========================================================
   Filter Card — کارت فیلتر
   ========================================================= */
.filter-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--brand-primary);
}

.filter-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border-soft);
}

.filter-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  color: #fff;
  border-radius: 12px;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.filter-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin: 0 0 0.15rem;
}

.filter-card-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* =========================================================
   Filter Chips — چیپ‌های فیلتر
   ========================================================= */
.filter-chips {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background: #f1f5f9;
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.filter-chip i {
  color: var(--brand-primary);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.filter-chip:hover {
  background: #eff6ff;
  color: var(--brand-primary-dark);
  border-color: var(--brand-primary-light);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.1);
}

.filter-chip.is-active {
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  color: #fff;
  border-color: var(--brand-primary);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.filter-chip.is-active i {
  color: var(--brand-accent);
}

/* ===== Filter Active Info ===== */
.filter-active-info {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  background: #eff6ff;
  border-radius: var(--radius-sm);
  border-right: 3px solid var(--brand-primary);
  font-size: 0.85rem;
  color: #1e3a8a;
  flex-wrap: wrap;
}

.filter-active-info i {
  color: var(--brand-primary);
  font-size: 0.95rem;
}

.filter-active-info strong {
  color: var(--brand-primary-dark);
  font-weight: 700;
  padding: 0 0.15rem;
}

.filter-clear {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-right: auto;
  padding: 0.3rem 0.75rem;
  background: rgba(220, 38, 38, 0.1);
  color: var(--brand-danger);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
}

.filter-clear:hover {
  background: var(--brand-danger);
  color: #fff;
}

.filter-clear i {
  color: inherit;
  font-size: 0.85rem;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .filter-card {
    padding: 1.15rem;
  }

  .filter-card-header {
    gap: 0.65rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.75rem;
  }

  .filter-card-icon {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .filter-card-title {
    font-size: 0.92rem;
  }
  .filter-card-sub {
    font-size: 0.76rem;
  }

  .filter-chips {
    gap: 0.4rem;
  }

  .filter-chip {
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
  }

  .filter-active-info {
    font-size: 0.8rem;
    padding: 0.55rem 0.85rem;
  }

  .filter-clear {
    width: 100%;
    justify-content: center;
    margin-right: 0;
    margin-top: 0.35rem;
  }
} /* =========================================================
   Mini Stat — کارت‌های آمار کوچک داخل کارت جدول
   ========================================================= */
.mini-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid var(--border-soft);
  transition: all 0.2s;
  height: 100%;
}

.mini-stat:hover {
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.mini-stat i {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.mini-stat > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mini-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 0.1rem;
}

.mini-stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  line-height: 1.4;
}

/* رنگ‌ها */
.mini-stat.stat-info i {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.mini-stat.stat-info .mini-stat-value {
  color: #0e7490;
}

.mini-stat.stat-danger i {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.mini-stat.stat-danger .mini-stat-value {
  color: #b91c1c;
}

.mini-stat.stat-success i {
  background: linear-gradient(135deg, #10b981, #059669);
}

.mini-stat.stat-success .mini-stat-value {
  color: #047857;
}

/* =========================================================
   Login Badge — badge زمان آخرین ورود
   ========================================================= */
.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  background: #eff6ff;
  color: var(--brand-primary);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #bfdbfe;
  white-space: nowrap;
  direction: ltr;
  font-family: var(--bs-font-monospace);
  letter-spacing: 0.3px;
}

.login-badge i {
  font-size: 0.7rem;
  color: var(--brand-primary-light);
}

/* =========================================================
   Text Primary helper
   ========================================================= */
.text-primary {
  color: var(--brand-primary) !important;
}

/* =========================================================
   Chart card در صفحه Visits
   ========================================================= */
.chart-card .chart-card-body canvas {
  width: 100% !important;
  height: 320px !important;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .chart-card .chart-card-body canvas {
    height: 260px !important;
  }

  .mini-stat {
    padding: 0.65rem 0.85rem;
    gap: 0.55rem;
  }

  .mini-stat i {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .mini-stat-value {
    font-size: 0.88rem;
  }

  .login-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.55rem;
  }
} /* =========================================================
   Years Summary — خلاصه سال‌ها
   ========================================================= */
.years-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--brand-primary);
  flex-wrap: wrap;
}

.years-summary-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  color: #fff;
  border-radius: 14px;
  font-size: 1.35rem;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.years-summary-content {
  flex: 1;
  min-width: 200px;
}

.years-summary-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.years-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.year-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  background: #eff6ff;
  color: var(--brand-primary-dark);
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--bs-font-monospace);
  letter-spacing: 0.5px;
  transition: all 0.2s;
}

.year-chip i {
  color: var(--brand-accent);
  font-size: 0.85rem;
}

.year-chip:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.year-chip:hover i {
  color: #fff;
}

.years-summary-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem;
  border-right: 1px solid var(--border-soft);
  min-width: 60px;
}

.years-summary-count strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-primary-dark);
  line-height: 1;
  font-family: var(--bs-font-monospace);
}

.years-summary-count span {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* =========================================================
   Year Block — بلوک هر سال
   ========================================================= */
.year-block {
  scroll-margin-top: 80px; /* فاصله از بالا هنگام پرش با anchor */
}

.year-block-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-soft);
}

.year-block-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
  border-radius: 12px;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.year-block-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin: 0 0 0.15rem;
  font-family: var(--bs-font-monospace);
  letter-spacing: 0.5px;
}

.year-block-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

/* =========================================================
   Chart card — تنظیمات مخصوص این صفحه
   ========================================================= */
.chart-card .chart-card-body canvas {
  width: 100% !important;
  height: 300px !important;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .years-summary {
    padding: 1rem;
    gap: 0.75rem;
  }

  .years-summary-icon {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
  }

  .years-summary-count {
    padding: 0 0.75rem;
    min-width: 50px;
  }

  .years-summary-count strong {
    font-size: 1.2rem;
  }

  .year-chip {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
  }

  .year-block-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .year-block-title {
    font-size: 1rem;
  }

  .chart-card .chart-card-body canvas {
    height: 250px !important;
  }
} /* =========================================================
   Budget Total — جمع کل بودجه
   ========================================================= */
.budget-total {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: var(--radius-md);
  border: 1px solid #bfdbfe;
  border-right: 5px solid var(--brand-primary);
}

.budget-total-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  color: #fff;
  border-radius: 14px;
  font-size: 1.35rem;
  box-shadow: 0 6px 16px rgba(30, 64, 175, 0.28);
}

.budget-total-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.budget-total-label {
  font-size: 0.82rem;
  color: #1e3a8a;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.budget-total-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-primary-dark);
  font-family: var(--bs-font-monospace);
  letter-spacing: 0.5px;
  line-height: 1.4;
  word-break: break-word;
}

/* =========================================================
   Section Divider (اگر موجود نیست)
   ========================================================= */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 0.75rem;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to left,
    transparent,
    var(--border-soft),
    transparent
  );
}

.section-divider span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  white-space: nowrap;
  padding: 0.35rem 0.85rem;
  background: #f8fafc;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
}

.section-divider span i {
  color: var(--brand-accent);
  font-size: 0.95rem;
}

/* =========================================================
   Input with Suffix (اگر موجود نیست)
   ========================================================= */
.input-with-suffix {
  position: relative;
  display: block;
}

.input-with-suffix .form-control {
  padding-left: 3.25rem;
  padding-right: 0.9rem;
}

.input-suffix {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-primary-dark);
  pointer-events: none;
  background: #eff6ff;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid #bfdbfe;
}

/* =========================================================
   Field Hint (اگر موجود نیست)
   ========================================================= */
.field-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.field-hint .hint-value {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--brand-primary-dark);
}

.field-hint .hint-value strong {
  font-family: var(--bs-font-monospace);
  letter-spacing: 0.5px;
  color: var(--brand-accent-dark);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .budget-total {
    padding: 1rem;
    gap: 0.75rem;
  }

  .budget-total-icon {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
  }

  .budget-total-value {
    font-size: 1.05rem;
  }
} /* =========================================================
   Button Outline Variants (اگر ندارید)
   ========================================================= */
.btn-outline-primary {
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  background: transparent;
  transition: all 0.2s;
}

.btn-outline-primary:hover {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.btn-outline-success {
  color: var(--brand-success);
  border: 1px solid var(--brand-success);
  background: transparent;
  transition: all 0.2s;
}

.btn-outline-success:hover {
  background: var(--brand-success);
  color: #fff;
  border-color: var(--brand-success);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-outline-warning {
  color: #d97706;
  border: 1px solid #f59e0b;
  background: transparent;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
}

.btn-outline-warning:hover {
  background: #f59e0b;
  color: #fff;
  border-color: #f59e0b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.btn-outline-secondary {
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
  background: transparent;
  transition: all 0.2s;
}

.btn-outline-secondary:hover {
  background: #f1f5f9;
  color: var(--text-primary);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

/* =========================================================
   Action Toolbar — بهبود
   ========================================================= */
.action-toolbar .btn {
  padding: 0.6rem 1.15rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.action-toolbar .btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.action-toolbar .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
  color: #fff;
}

/* =========================================================
   Badge Pending — نشانگر تعداد در دکمه
   ========================================================= */
.badge-pending {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 0.4rem;
  background: #dc2626;
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--bs-font-monospace);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%,
  100% {
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
  }
  50% {
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.7);
  }
}

/* =========================================================
   Days Badge — نشانگر روز انتظار
   ========================================================= */
.days-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.65rem;
  background: #eff6ff;
  color: var(--brand-primary);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid #bfdbfe;
  font-family: var(--bs-font-monospace);
  white-space: nowrap;
}

.days-badge i {
  font-size: 0.75rem;
  color: var(--brand-primary-light);
}

.days-badge span {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: "Yekan", Tahoma, sans-serif;
}

/* =========================================================
   Row Urgent (تکمیل اگر وجود ندارد)
   ========================================================= */
.modern-table tbody tr.row-urgent {
  background: linear-gradient(90deg, #fef2f2, #fff5f5);
}

.modern-table tbody tr.row-urgent td {
  border-bottom-color: #fecaca;
}

.modern-table tbody tr.row-urgent:hover {
  background: #fee2e2;
}

/* =========================================================
   Status Urgent
   ========================================================= */
.status-urgent {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
  border: 1px solid #b91c1c;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
  animation: pulse-urgent 2s infinite;
}

.status-urgent::before {
  background: #fff;
  opacity: 0.9;
}

.status-urgent i {
  font-size: 0.78rem;
  margin-left: 0.1rem;
}

@keyframes pulse-urgent {
  0%,
  100% {
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
  }
  50% {
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.5);
  }
}

/* =========================================================
   List Card Header Actions — بهبود
   ========================================================= */
.list-card-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .action-toolbar {
    flex-direction: column;
  }

  .action-toolbar .btn {
    width: 100%;
    justify-content: center;
  }

  .badge-pending {
    margin-right: auto;
  }

  .days-badge {
    font-size: 0.72rem;
    padding: 0.22rem 0.5rem;
  }
} /* =========================================================
   Fixed Info Grid — نمایش اطلاعات غیرقابل ویرایش
   ========================================================= */
.fixed-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.fixed-info-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  border-right: 4px solid #94a3b8;
  position: relative;
}

.fixed-info-item::after {
  content: "\f023"; /* قفل */
  font-family: FontAwesome;
  position: absolute;
  top: 0.55rem;
  left: 0.75rem;
  font-size: 0.7rem;
  color: #94a3b8;
  opacity: 0.5;
}

.fixed-info-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #64748b, #475569);
  color: #fff;
  border-radius: 12px;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(71, 85, 105, 0.22);
}

.fixed-info-icon.accent {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.fixed-info-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.fixed-info-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 0.15rem;
}

.fixed-info-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.fixed-info-value.ltr {
  direction: ltr;
  text-align: right;
  font-family: var(--bs-font-monospace);
  letter-spacing: 0.5px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .fixed-info-grid {
    grid-template-columns: 1fr;
  }

  .fixed-info-item {
    padding: 0.85rem 1rem;
    gap: 0.65rem;
  }

  .fixed-info-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .fixed-info-value {
    font-size: 0.95rem;
  }
} /* =========================================================
   Badge Month — نشانگر ماه
   ========================================================= */
.badge-month {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  background: #eff6ff;
  color: var(--brand-primary);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #bfdbfe;
  white-space: nowrap;
}

.badge-month i {
  color: var(--brand-accent);
  font-size: 0.8rem;
}

/* =========================================================
   Members Badge — نشانگر تعداد اعضا
   ========================================================= */
.members-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  background: linear-gradient(135deg, #ecfeff, #cffafe);
  color: #0e7490;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid #a5f3fc;
  font-family: var(--bs-font-monospace);
  white-space: nowrap;
}

.members-badge i {
  font-size: 0.75rem;
  color: #06b6d4;
}

/* =========================================================
   Button Icon Info — دکمه مشاهده
   ========================================================= */
.btn-icon-info:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--brand-primary);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .badge-month,
  .members-badge {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
  }

  .action-buttons {
    gap: 0.25rem;
  }

  .action-buttons .btn-icon {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .filter-chips {
    gap: 0.35rem;
  }

  .filter-chip {
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
  }
} /* =========================================================
   Form Card Icon Warning — آیکون زرد برای عملیات حساس
   ========================================================= */
.form-card-icon.warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.3);
} /* =========================================================
   Rank Badge — نشانگر رتبه در صف
   ========================================================= */
.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--brand-primary-dark);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid #bfdbfe;
  white-space: nowrap;
}

.rank-badge i {
  color: var(--brand-primary);
  font-size: 0.78rem;
}

.rank-badge span {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: "Yekan", Tahoma, sans-serif;
  margin-right: 0.1rem;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .rank-badge {
    font-size: 0.72rem;
    padding: 0.28rem 0.55rem;
  }

  .rank-badge span {
    font-size: 0.62rem;
  }

  .pagination-wrapper {
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
  }

  .modern-pagination {
    justify-content: center;
    gap: 0.25rem;
  }

  .modern-pagination .page-link {
    min-width: 34px;
    height: 34px;
    padding: 0 0.55rem;
    font-size: 0.8rem;
  }

  .pagination-info {
    text-align: center;
  }
} /* =========================================================
   Logs Container — لیست کارت‌های لاگ
   ========================================================= */
.logs-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ===== Log Card ===== */
.log-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.25s ease;
  position: relative;
}

.log-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #ef4444, #b91c1c);
  border-radius: 4px 0 0 4px;
}

.log-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #fca5a5;
}

/* ===== Log Header ===== */
.log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  background: linear-gradient(to left, #fef2f2, #fff);
  border-bottom: 1px solid #fecaca;
}

/* ===== Log ID Badge ===== */
.log-id-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--bs-font-monospace);
  letter-spacing: 0.5px;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.25);
}

.log-id-badge i {
  font-size: 0.72rem;
  opacity: 0.9;
}

.log-id-badge span {
  direction: ltr;
}

/* ===== Log Actions ===== */
.log-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.log-actions .btn-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.82rem;
  padding: 0;
}

.log-actions .btn-icon:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--brand-primary);
  transform: translateY(-1px);
}

.log-actions .btn-icon:active {
  transform: translateY(0);
}

/* ===== Log Body ===== */
.log-body {
  padding: 1rem 1.25rem 1.25rem;
  background: #1e293b;
  border-radius: 0 0 var(--radius-md) 0;
  overflow: hidden;
}

/* ===== Log Text (pre) ===== */
.log-text {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #0f172a;
  color: #e2e8f0;
  font-family: "Courier New", Consolas, Monaco, monospace;
  font-size: 0.82rem;
  line-height: 1.75;
  border-radius: var(--radius-sm);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #334155;
}

/* اسکرول‌بار تیره برای pre */
.log-text::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.log-text::-webkit-scrollbar-track {
  background: #1e293b;
  border-radius: 4px;
}

.log-text::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 4px;
}

.log-text::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* =========================================================
   Text Success helper
   ========================================================= */
.text-success {
  color: var(--brand-success) !important;
}

/* =========================================================
   Breadcrumb disabled
   ========================================================= */
.breadcrumb-item.disabled {
  color: var(--text-muted);
  cursor: default;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .log-header {
    padding: 0.65rem 0.85rem;
  }

  .log-id-badge {
    font-size: 0.72rem;
    padding: 0.28rem 0.65rem;
  }

  .log-body {
    padding: 0.75rem 0.85rem 1rem;
  }

  .log-text {
    font-size: 0.75rem;
    line-height: 1.6;
    padding: 0.6rem 0.75rem;
    max-height: 300px;
  }

  .log-actions .btn-icon {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
} /* =========================================================
   Quota Card — کارت آمار سهمیه
   ========================================================= */
.quota-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.quota-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(
    to left,
    var(--brand-primary),
    var(--brand-primary-light)
  );
}

.quota-card.has-data {
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #fff, #eff6ff);
}

.quota-card.has-data:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary-light);
}

.quota-card.no-data {
  opacity: 0.55;
  background: #f8fafc;
}

.quota-card.no-data::before {
  background: #cbd5e1;
}

.quota-card-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-primary-dark);
  font-family: var(--bs-font-monospace);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.quota-card.no-data .quota-card-num {
  color: #94a3b8;
}

.quota-card-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}

/* =========================================================
   Modern Accordion — آکاردئون قرعه‌کشی
   ========================================================= */
.modern-accordion .accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md) !important;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s;
}

.modern-accordion .accordion-item:hover {
  box-shadow: var(--shadow-md);
}

.modern-accordion .accordion-item:last-child {
  margin-bottom: 0;
}

/* ===== Header ===== */
.modern-accordion .accordion-header {
  margin: 0;
  padding: 0;
}

.modern-accordion .accordion-button {
  background: linear-gradient(to left, #f8fafc, #fff);
  border: none;
  padding: 1rem 1.25rem;
  box-shadow: none !important;
  color: var(--text-primary);
  border-radius: 0 !important;
  transition: background 0.2s;
}

.modern-accordion .accordion-button:not(.collapsed) {
  background: linear-gradient(to left, #eff6ff, #fff);
  border-bottom: 1px solid var(--border-soft);
}

.modern-accordion .accordion-button::after {
  background-size: 1rem;
  transition: transform 0.3s;
  margin-right: auto;
  margin-left: 0;
}

.modern-accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15) !important;
}

/* ===== Title Wrapper ===== */
.accordion-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  min-width: 0;
}

.accordion-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border-radius: 12px;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.28);
}

.accordion-title-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: right;
}

.accordion-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  line-height: 1.4;
  word-break: break-word;
}

.accordion-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.accordion-subtitle i {
  color: var(--brand-primary);
  font-size: 0.8rem;
}

/* ===== Body ===== */
.modern-accordion .accordion-body {
  padding: 1.25rem;
  background: #fafbfc;
}

/* ===== Group Actions ===== */
.group-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border-soft);
  margin-bottom: 1rem;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .quota-card {
    padding: 0.85rem 0.75rem;
  }

  .quota-card-num {
    font-size: 1.4rem;
  }

  .quota-card-label {
    font-size: 0.72rem;
    min-height: 2.2em;
  }

  .modern-accordion .accordion-button {
    padding: 0.85rem 1rem;
  }

  .accordion-icon {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .accordion-title {
    font-size: 0.86rem;
  }
  .accordion-subtitle {
    font-size: 0.72rem;
  }

  .modern-accordion .accordion-body {
    padding: 1rem;
  }

  .group-actions {
    justify-content: stretch;
  }

  .group-actions .btn-action {
    width: 100%;
    justify-content: center;
  }
} /* =========================================================
   Compact File Upload — نسخه فشرده برای فرم‌های دوستونه
   ========================================================= */
.file-upload-box.compact .file-upload-label.compact {
  padding: 1rem 0.85rem;
  gap: 0.35rem;
  flex-direction: row;
}

.file-upload-box.compact .file-upload-label i {
  font-size: 1.15rem;
  margin-bottom: 0;
}

.file-upload-box.compact .file-upload-text {
  font-size: 0.82rem;
  max-width: none;
}

.file-upload-box.compact .file-upload-filename {
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  max-width: 140px;
}

/* =========================================================
   Responsive — Compact Upload
   ========================================================= */
@media (max-width: 767.98px) {
  .file-upload-box.compact .file-upload-label.compact {
    padding: 0.85rem 0.7rem;
    flex-direction: column;
    gap: 0.4rem;
  }

  .file-upload-box.compact .file-upload-label i {
    font-size: 1.35rem;
  }

  .file-upload-box.compact .file-upload-filename {
    max-width: 100%;
  }
} /* =========================================================
   Badge Quota — نشانگر سهمیه
   ========================================================= */
.badge-quota {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--brand-primary);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid #bfdbfe;
  white-space: nowrap;
}

.badge-quota::before {
  content: "\f02b"; /* tag icon */
  font-family: FontAwesome;
  font-size: 0.72rem;
  color: var(--brand-accent);
}

/* =========================================================
   Quota Card (مشترک با صفحه قرعه‌کشی)
   ========================================================= */
.quota-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.quota-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(
    to left,
    var(--brand-primary),
    var(--brand-primary-light)
  );
}

.quota-card.has-data {
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #fff, #eff6ff);
}

.quota-card.has-data:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary-light);
}

.quota-card-num {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--brand-primary-dark);
  font-family: var(--bs-font-monospace);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.quota-card-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .badge-quota {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
  }

  .quota-card {
    padding: 0.85rem 0.75rem;
  }

  .quota-card-num {
    font-size: 1.35rem;
  }

  .quota-card-label {
    font-size: 0.72rem;
  }
} /* =========================================================
   Button Outline Info — دکمه مشاهده جزئیات
   ========================================================= */
.btn-outline-info {
  color: #0891b2;
  border: 1px solid #06b6d4;
  background: transparent;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.btn-outline-info:hover {
  background: #06b6d4;
  color: #fff;
  border-color: #06b6d4;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
} /* =========================================================
   Button Icon More — دکمه سه نقطه (عملیات بیشتر)
   ========================================================= */
.btn-icon-more:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--brand-primary);
}

/* =========================================================
   Loan Actions Menu — منوی عملیات وام
   ========================================================= */
.loan-actions-menu {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-md);
  padding: 0.45rem;
  min-width: 230px;
  right: 0;
  left: auto;
  text-align: right;
  background: #fff;
  z-index: 1050;
}

.loan-actions-menu .dropdown-item {
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.8rem;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-primary);
  transition: all 0.15s;
  white-space: normal;
  line-height: 1.5;
  font-weight: 500;
}

.loan-actions-menu .dropdown-item i {
  width: 18px;
  text-align: center;
  color: var(--brand-primary);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.loan-actions-menu .dropdown-item:hover {
  background: #eff6ff;
  color: var(--brand-primary-dark);
}

.loan-actions-menu .dropdown-item:hover i {
  color: var(--brand-accent);
}

.loan-actions-menu .dropdown-item.text-warning {
  color: #b45309 !important;
}

.loan-actions-menu .dropdown-item.text-warning i {
  color: #d97706;
}

.loan-actions-menu .dropdown-item.text-warning:hover {
  background: #fffbeb;
  color: #78350f !important;
}

.loan-actions-menu .dropdown-item.text-danger {
  color: #b91c1c !important;
}

.loan-actions-menu .dropdown-item.text-danger i {
  color: #dc2626;
}

.loan-actions-menu .dropdown-item.text-danger:hover {
  background: #fef2f2;
  color: #7f1d1d !important;
}

.loan-actions-menu .dropdown-divider {
  margin: 0.35rem 0;
  border-color: var(--border-soft);
}

/* =========================================================
   Badge Members (مشترک با MonthPay Index)
   ========================================================= */
.members-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  background: linear-gradient(135deg, #ecfeff, #cffafe);
  color: #0e7490;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid #a5f3fc;
  font-family: var(--bs-font-monospace);
  white-space: nowrap;
}

.members-badge i {
  font-size: 0.75rem;
  color: #06b6d4;
}

/* =========================================================
   Col Action Wide
   ========================================================= */
.modern-table .col-action-wide {
  width: 130px;
  min-width: 130px;
  text-align: center;
}

/* =========================================================
   Button Icon Info
   ========================================================= */
.btn-icon-info:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--brand-primary);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .loan-actions-menu {
    min-width: 200px;
    font-size: 0.82rem;
  }

  .loan-actions-menu .dropdown-item {
    padding: 0.5rem 0.7rem;
    font-size: 0.82rem;
  }

  .members-badge {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
  }

  .modern-table .col-action-wide {
    width: 100px;
    min-width: 100px;
  }

  .action-buttons .btn-icon {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }
} /* =========================================================
   Sanad Thumbnail — تصویر بندانگشتی سند
   ========================================================= */
.sanad-thumb-btn {
  position: relative;
  display: block;
  width: 90px;
  height: 90px;
  padding: 0;
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.22s;
  box-shadow: var(--shadow-sm);
}

.sanad-thumb-btn:hover {
  border-color: var(--brand-primary-light);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.sanad-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sanad-thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 64, 175, 0.7);
  color: #fff;
  font-size: 1.25rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.sanad-thumb-btn:hover .sanad-thumb-overlay {
  opacity: 1;
}

.sanad-thumb-empty {
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  color: #94a3b8;
  border: 2px dashed var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 1.35rem;
}

.sanad-thumb-empty span {
  font-size: 0.65rem;
  font-weight: 500;
}

/* =========================================================
   Row Processed — ردیف پردازش‌شده
   ========================================================= */
.modern-table tbody tr.row-processed {
  background: #f8fafc;
  opacity: 0.75;
}

.modern-table tbody tr.row-processed td {
  color: var(--text-muted);
}

/* =========================================================
   Button Action Success/Danger (تأیید/رد)
   ========================================================= */
.action-buttons .btn-action-success {
  background: #f0fdf4;
  color: #065f46;
  border: 1px solid #bbf7d0;
}

.action-buttons .btn-action-success:hover:not(:disabled) {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-color: #10b981;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.action-buttons .btn-action-danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.action-buttons .btn-action-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border-color: #ef4444;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* =========================================================
   Image Modal — Modal تصویر سند
   ========================================================= */
.image-modal-content {
  max-height: 92vh;
}

.image-modal-body {
  padding: 1rem;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  min-height: 300px;
  max-height: calc(92vh - 140px);
}

.modal-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  background: #fff;
}

/* =========================================================
   Col Thumb
   ========================================================= */
.modern-table .col-thumb {
  width: 110px;
  text-align: center;
  padding: 0.55rem !important;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .sanad-thumb-btn,
  .sanad-thumb-empty {
    width: 70px;
    height: 70px;
  }

  .sanad-thumb-overlay {
    font-size: 1rem;
  }

  .sanad-thumb-empty {
    font-size: 1.1rem;
  }

  .sanad-thumb-empty span {
    font-size: 0.6rem;
  }

  .action-buttons {
    gap: 0.25rem;
  }

  .action-buttons .btn-action {
    padding: 0.35rem 0.6rem;
    font-size: 0.72rem;
  }

  .action-buttons .btn-action span {
    display: none;
  }

  .action-buttons .btn-action i {
    font-size: 0.85rem;
  }

  .image-modal-body {
    min-height: 200px;
  }
} /* =========================================================
   Candidate Card — کارت کاندیدا
   ========================================================= */
.candidate-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.candidate-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(
    to left,
    var(--brand-primary),
    var(--brand-accent)
  );
  z-index: 2;
}

.candidate-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary-light);
}

/* ===== ردیف بالای کارت (شماره) ===== */
.candidate-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
}

.candidate-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 0.6rem;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--bs-font-monospace);
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ===== تصویر ===== */
.candidate-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 260px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.candidate-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.candidate-card:hover .candidate-image {
  transform: scale(1.06);
}

.candidate-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  color: #94a3b8;
  font-size: 4rem;
}

/* ===== بدنه ===== */
.candidate-card-body {
  padding: 1rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.candidate-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.candidate-card-desp {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
  text-align: justify;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== اقدامات ===== */
.candidate-card-actions {
  padding: 0 1.15rem 1.15rem;
  display: flex;
  gap: 0.5rem;
  border-top: 1px dashed var(--border-soft);
  padding-top: 1rem;
  margin-top: auto;
}

.candidate-card-actions .btn-action {
  flex: 1;
  justify-content: center;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .candidate-card-image {
    max-height: 220px;
  }

  .candidate-image-placeholder {
    font-size: 3rem;
  }

  .candidate-card-name {
    font-size: 0.95rem;
  }

  .candidate-card-desp {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }

  .candidate-card-body {
    padding: 0.85rem 1rem;
  }

  .candidate-card-actions {
    padding: 0 1rem 1rem;
  }
} /* =========================================================
   Time Badge — نشانگر زمان اخذ رأی
   ========================================================= */
.time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  background: #eff6ff;
  color: var(--brand-primary);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid #bfdbfe;
  white-space: nowrap;
  font-family: var(--bs-font-monospace);
  letter-spacing: 0.3px;
}

.time-badge i {
  font-size: 0.75rem;
  color: var(--brand-accent);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .time-badge {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
  }
} /* =========================================================
   Row Active — ردیف دوره فعال
   ========================================================= */
.modern-table tbody tr.row-active {
  background: linear-gradient(90deg, #f0fdf4, #fff);
  border-right: 4px solid var(--brand-success);
}

.modern-table tbody tr.row-active td {
  border-bottom-color: #bbf7d0;
}

.modern-table tbody tr.row-active:hover {
  background: #dcfce7;
}

/* =========================================================
   Status Active — نشانگر «در حال اجرا»
   ========================================================= */
.status-active {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: 1px solid #047857;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  animation: pulse-active 2s infinite;
  margin-right: 0.35rem;
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
}

.status-active::before {
  background: #fff;
  opacity: 0.95;
}

.status-active i {
  font-size: 0.5rem;
  margin-left: 0.15rem;
}

@keyframes pulse-active {
  0%,
  100% {
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.7);
  }
}

/* =========================================================
   Election Title Cell — سلول عنوان دوره
   ========================================================= */
.election-title-cell {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  min-width: 180px;
}

.election-title-cell strong {
  color: var(--brand-primary-dark);
  font-weight: 700;
}

/* =========================================================
   Time Badge — نشانگر تاریخ/زمان
   ========================================================= */
.time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  background: #eff6ff;
  color: var(--brand-primary);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #bfdbfe;
  white-space: nowrap;
  font-family: var(--bs-font-monospace);
  letter-spacing: 0.3px;
}

.time-badge i {
  font-size: 0.72rem;
  color: var(--brand-accent);
}

.time-badge-end {
  background: #fef3c7;
  color: #78350f;
  border-color: #fcd34d;
}

.time-badge-end i {
  color: #d97706;
}

.time-divider {
  color: #94a3b8;
  font-weight: 400;
  margin: 0 0.15rem;
}

/* =========================================================
   Votes Badge — نشانگر تعداد آرا
   ========================================================= */
.votes-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #78350f;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid #fcd34d;
  font-family: var(--bs-font-monospace);
  white-space: nowrap;
}

.votes-badge i {
  font-size: 0.75rem;
  color: #d97706;
}

/* =========================================================
   Button Icon Success
   ========================================================= */
.btn-icon-success:hover {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: var(--brand-success);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 991.98px) {
  .modern-table-wide {
    min-width: 1000px;
  }
}

@media (max-width: 767.98px) {
  .time-badge,
  .votes-badge {
    font-size: 0.7rem;
    padding: 0.22rem 0.5rem;
  }

  .time-badge i,
  .votes-badge i {
    font-size: 0.68rem;
  }

  .status-active {
    font-size: 0.65rem;
    padding: 0.18rem 0.5rem;
  }

  .election-title-cell {
    min-width: 120px;
  }

  .action-buttons {
    gap: 0.25rem;
  }

  .action-buttons .btn-icon {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }
} /* =========================================================
   Row Winner — ردیف برنده
   ========================================================= */
.modern-table tbody tr.row-winner {
  background: linear-gradient(90deg, #fffbeb, #fff);
}

.modern-table tbody tr.row-winner td {
  border-bottom-color: #fde68a;
  background: transparent;
}

.modern-table tbody tr.row-winner:hover {
  background: #fef3c7;
}

/* =========================================================
   Rank Badge — نشانگر رتبه
   ========================================================= */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 0.5rem;
  background: #f1f5f9;
  color: var(--text-muted);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--bs-font-monospace);
  border: 1px solid var(--border-soft);
}

.rank-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border-color: #b45309;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  animation: crown-glow 2s infinite;
}

.rank-gold i {
  font-size: 1rem;
}

.rank-silver {
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  color: #fff;
  border-color: #64748b;
}

.rank-bronze {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  border-color: #92400e;
}

@keyframes crown-glow {
  0%,
  100% {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  }
  50% {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.7);
  }
}

/* =========================================================
   Result Thumbnail — تصویر کاندیدا در نتایج
   ========================================================= */
.result-thumb {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: #f8fafc;
  border: 2px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  margin: 0 auto;
  transition: all 0.2s;
}

.row-winner .result-thumb {
  border-color: #f59e0b;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.result-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  color: #94a3b8;
  font-size: 1.5rem;
}

.result-thumb-crown {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
  border: 2px solid #fff;
}

/* =========================================================
   Result Name — نام کاندیدا در نتایج
   ========================================================= */
.result-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 150px;
}

.result-name strong {
  color: var(--brand-primary-dark);
  font-weight: 700;
  font-size: 0.92rem;
}

.status-winner {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: 1px solid #b45309;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
}

.status-winner::before {
  background: #fff;
}

.status-winner i {
  font-size: 0.65rem;
}

/* =========================================================
   Votes Big Badge — نشانگر آرا
   ========================================================= */
.votes-big-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--brand-primary-dark);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  border: 1px solid #bfdbfe;
  font-family: var(--bs-font-monospace);
  white-space: nowrap;
}

.votes-big-badge i {
  font-size: 0.78rem;
  color: var(--brand-accent);
}

.votes-big-badge span {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: "Yekan", Tahoma, sans-serif;
}

.row-winner .votes-big-badge {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #78350f;
  border-color: #fcd34d;
}

.row-winner .votes-big-badge i {
  color: #d97706;
}

/* =========================================================
   Percentage Bar — نوار درصد
   ========================================================= */
.percentage-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 140px;
}

.percentage-bar {
  flex: 1;
  height: 10px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.percentage-bar-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  border-radius: 999px;
  transition: width 1s ease-out;
  min-width: 4px;
}

.percentage-bar-fill.fill-winner {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.percentage-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  font-family: var(--bs-font-monospace);
  min-width: 45px;
  text-align: left;
  direction: ltr;
}

.row-winner .percentage-value {
  color: #b45309;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .result-thumb {
    width: 44px;
    height: 44px;
  }

  .result-thumb-placeholder {
    font-size: 1.15rem;
  }

  .result-thumb-crown {
    width: 18px;
    height: 18px;
    font-size: 0.55rem;
  }

  .result-name strong {
    font-size: 0.82rem;
  }

  .result-name {
    min-width: 100px;
  }

  .votes-big-badge {
    font-size: 0.78rem;
    padding: 0.3rem 0.65rem;
  }

  .votes-big-badge i {
    font-size: 0.68rem;
  }

  .votes-big-badge span {
    font-size: 0.62rem;
  }

  .percentage-bar-wrapper {
    min-width: 100px;
    gap: 0.35rem;
  }

  .percentage-bar {
    height: 8px;
  }

  .percentage-value {
    font-size: 0.72rem;
    min-width: 38px;
  }

  .rank-badge {
    min-width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }

  .rank-gold i {
    font-size: 0.85rem;
  }
} /* =========================================================
   Readonly Field — فیلد قفل‌شده
   ========================================================= */
.form-control.readonly-field {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  color: var(--text-muted);
  cursor: not-allowed;
  border-style: dashed;
  border-color: #cbd5e1;
  font-weight: 500;
  opacity: 0.85;
}

.form-control.readonly-field:focus {
  box-shadow: none;
  border-color: #cbd5e1;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

/* =========================================================
   Lock Badge — نشانگر قفل روی label
   ========================================================= */
.lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  background: #f1f5f9;
  color: #64748b;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  margin-right: 0.35rem;
  white-space: nowrap;
}

.lock-badge i {
  font-size: 0.65rem;
  color: #94a3b8;
}

/* =========================================================
   Form Label with Field Status
   ========================================================= */
.form-label .field-status {
  font-size: 0.78rem;
  margin-top: 0;
  margin-right: 0.35rem;
  font-weight: 500;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .lock-badge {
    font-size: 0.62rem;
    padding: 0.12rem 0.4rem;
  }

  .form-label .field-status {
    font-size: 0.72rem;
  }
} /* =========================================================
   Badge Month — نشانگر ماه
   ========================================================= */
.badge-month {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  background: #eff6ff;
  color: var(--brand-primary);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #bfdbfe;
  white-space: nowrap;
}

.badge-month i {
  color: var(--brand-accent);
  font-size: 0.8rem;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .badge-month,
  .members-badge {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
  }

  .modern-table .col-action {
    width: 56px;
    min-width: 56px;
  }

  .action-buttons .btn-icon {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }
} /* =========================================================
   Members Badge Variants — نسخه‌های رنگی members-badge
   ========================================================= */
.members-badge-warning {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: #92400e;
  border-color: #fcd34d;
}

.members-badge-warning i {
  color: #d97706;
}

.members-badge-primary {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--brand-primary-dark);
  border-color: #93c5fd;
}

.members-badge-primary i {
  color: var(--brand-primary);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .badge-month,
  .members-badge {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
  }

  .modern-table .col-action {
    width: 56px;
    min-width: 56px;
  }

  .action-buttons .btn-icon {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }
} /* =========================================================
   Khales Card — کارت نمایش خالص
   ========================================================= */
.khales-card {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  padding: 1.5rem;
  margin: 1.25rem;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-radius: var(--radius-lg);
  border: 1px solid #bbf7d0;
  border-right: 5px solid var(--brand-success);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.khales-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-radius: 50%;
  font-size: 2.5rem;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.khales-body {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.khales-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed #bbf7d0;
}

.khales-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.khales-row-amount {
  padding-top: 0.35rem;
}

.khales-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #047857;
  font-weight: 600;
}

.khales-label i {
  color: #059669;
  font-size: 0.85rem;
}

.khales-value {
  font-size: 1rem;
  font-weight: 700;
  color: #065f46;
  text-align: left;
}

.khales-value.ltr {
  direction: ltr;
  font-family: var(--bs-font-monospace);
  letter-spacing: 0.5px;
}

.khales-amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: #065f46;
  font-family: var(--bs-font-monospace);
  letter-spacing: 0.5px;
  direction: ltr;
  background: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid #bbf7d0;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.khales-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  align-self: center;
}

.khales-actions .btn-action {
  padding: 0.65rem 1.25rem;
  font-weight: 600;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .khales-card {
    padding: 1.15rem;
    gap: 1rem;
    margin: 1rem;
    flex-direction: column;
    text-align: center;
  }

  .khales-icon {
    width: 64px;
    height: 64px;
    font-size: 2rem;
    margin: 0 auto;
  }

  .khales-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    text-align: right;
  }

  .khales-row-amount {
    align-items: center;
  }

  .khales-label,
  .khales-value {
    text-align: right;
  }

  .khales-value {
    width: 100%;
  }

  .khales-amount {
    font-size: 1.15rem;
    text-align: center;
    width: 100%;
  }

  .khales-actions {
    width: 100%;
    align-self: stretch;
  }

  .khales-actions .btn-action {
    width: 100%;
    justify-content: center;
  }
} /* =========================================================
   Type Badge — نشانگر نوع (شاغل/بازنشسته)
   ========================================================= */
.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}

.type-shaghel {
  background: linear-gradient(135deg, #ecfeff, #cffafe);
  color: #0e7490;
  border-color: #a5f3fc;
}

.type-shaghel i {
  color: #06b6d4;
  font-size: 0.78rem;
}

.type-bazneshaste {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: #92400e;
  border-color: #fcd34d;
}

.type-bazneshaste i {
  color: #d97706;
  font-size: 0.78rem;
}

/* =========================================================
   Code Badge — نشانگر کد پرداخت
   ========================================================= */
.code-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--brand-primary-dark);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid #bfdbfe;
  font-family: var(--bs-font-monospace);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.code-badge i {
  font-size: 0.72rem;
  color: var(--brand-accent);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .type-badge,
  .code-badge {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
  }

  .modern-table .col-action {
    width: 56px;
    min-width: 56px;
  }

  .action-buttons .btn-icon {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }
} /* =========================================================
   Group Name Cell — سلول نام گروه با آیکون
   ========================================================= */
.group-name-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.group-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  color: #fff;
  border-radius: 10px;
  font-size: 0.9rem;
  box-shadow: 0 3px 10px rgba(30, 64, 175, 0.22);
}

.group-name-cell strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
}

/* =========================================================
   Members Badge Empty — نشانگر گروه خالی
   ========================================================= */
.members-badge-empty {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  color: #94a3b8;
  border-color: #cbd5e1;
  cursor: default;
}

.members-badge-empty i {
  color: #94a3b8;
}

/* =========================================================
   Link Members Badge — قابل کلیک
   ========================================================= */
a.members-badge {
  text-decoration: none;
  transition: all 0.2s;
}

a.members-badge:hover {
  background: linear-gradient(135deg, #cffafe, #a5f3fc);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
  color: #0e7490;
}

/* =========================================================
   Col Action Wide (اگر ندارید)
   ========================================================= */
.modern-table .col-action-wide {
  width: 130px;
  min-width: 130px;
  text-align: center;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .group-icon {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }

  .group-name-cell strong {
    font-size: 0.86rem;
  }

  .modern-table .col-action-wide {
    width: 90px;
    min-width: 90px;
  }

  .action-buttons {
    gap: 0.25rem;
  }

  .action-buttons .btn-icon {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }
} /* =========================================================
   Shop Name Cell — سلول نام فروشگاه
   ========================================================= */
.shop-name-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.shop-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  color: #fff;
  border-radius: 10px;
  font-size: 0.9rem;
  box-shadow: 0 3px 10px rgba(30, 64, 175, 0.22);
}

.shop-name-cell strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
}

/* =========================================================
   Missing Badge — نشانگر کد پرداخت تعریف نشده
   ========================================================= */
.missing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  background: #fef2f2;
  color: #991b1b;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px dashed #fecaca;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.missing-badge i {
  color: #dc2626;
  font-size: 0.75rem;
}

.missing-badge:hover {
  background: #fee2e2;
  color: #7f1d1d;
  border-color: #ef4444;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}

/* =========================================================
   Button Icon Success — دکمه کاربران فروشگاه
   ========================================================= */
.btn-icon-success:hover {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: var(--brand-success);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .shop-icon {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }

  .shop-name-cell strong {
    font-size: 0.86rem;
  }

  .badge-type,
  .missing-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.55rem;
  }

  .modern-table .col-action-wide {
    width: 140px;
    min-width: 140px;
  }

  .action-buttons {
    gap: 0.2rem;
  }

  .action-buttons .btn-icon {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }
} /* =========================================================
   Form Card Icon Warning — آیکون زرد برای عملیات حساس
   ========================================================= */
.form-card-icon.warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.3);
} /* =========================================================
   User Name Cell — سلول نام کاربر با آواتار
   ========================================================= */
.user-name-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-primary-light)
  );
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  box-shadow: 0 3px 10px rgba(30, 64, 175, 0.22);
}

.user-name-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-name-text strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  line-height: 1.4;
}

/* =========================================================
   Username Badge — نشانگر نام کاربری
   ========================================================= */
.username-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--brand-primary);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid #bfdbfe;
  font-family: var(--bs-font-monospace);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.username-badge i {
  font-size: 0.75rem;
  color: var(--brand-accent);
}

/* =========================================================
   Phone Link — لینک موبایل
   ========================================================= */
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--brand-primary);
  text-decoration: none;
  font-family: var(--bs-font-monospace);
  font-weight: 600;
  font-size: 0.85rem;
  transition: color 0.2s;
  white-space: nowrap;
}

.phone-link i {
  font-size: 0.85rem;
  color: var(--brand-accent);
}

.phone-link:hover {
  color: var(--brand-accent-dark);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767.98px) {
  .user-avatar {
    width: 30px;
    height: 30px;
    font-size: 0.72rem;
  }

  .user-name-text strong {
    font-size: 0.84rem;
  }

  .username-badge {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
  }

  .phone-link {
    font-size: 0.78rem;
  }

  .modern-table .col-action-wide {
    width: 130px;
    min-width: 130px;
  }

  .action-buttons .btn-action-sm span {
    display: none;
  }

  .action-buttons .btn-action-sm {
    padding: 0.35rem 0.6rem;
    justify-content: center;
    min-width: 34px;
  }
}

/* Date line under the rank badge */
.rank-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 6px;
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 500;
    white-space: nowrap;
}

    .rank-date > i {
        font-size: 10px;
        color: #cbd5e1;
    }
