/* ========== کانتینر ========== */
.pgsc-wrapper{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 12px;
  font-family: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  direction: rtl;
}

/* ========== لیست اصلی ========== */
.pgsc-list{
  list-style: none;
  margin: 0;
  padding: 6px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

/* ========== آیتم ========== */
.pgsc-item{
  display: inline-flex;
}

/* ========== لینک / دکمه ========== */
.pgsc-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  background: #ffffff;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.pgsc-link:hover{
  background: #f3f4f6;
  color: #4f46e5;
  transform: translateY(-1px);
}

/* ========== صفحه فعال ========== */
.pgsc-link--active{
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #ffffff !important;
  box-shadow: 0 6px 14px -6px rgba(79,70,229,.6);
  cursor: default;
}

.pgsc-link--active:hover{
  transform: none;
}

/* ========== غیرفعال ========== */
.pgsc-link--disabled{
  color: #9ca3af;
  cursor: not-allowed;
  background: transparent;
}

.pgsc-link--disabled:hover{
  transform: none;
  background: transparent;
  color: #9ca3af;
}

/* ========== سه‌نقطه ========== */
.pgsc-link--dots{
  color: #9ca3af;
  background: transparent;
  cursor: default;
}

.pgsc-link--dots:hover{
  background: transparent;
  color: #9ca3af;
  transform: none;
}

/* ========== قبلی / بعدی ========== */
.pgsc-link--nav{
  background: #f9fafb;
  border-color: #e5e7eb;
}

.pgsc-link--nav:hover{
  background: #eef2ff;
  color: #4f46e5;
}

.pgsc-arrow{
  font-size: 18px;
  line-height: 1;
}

/* ========== پرش به صفحه ========== */
.pgsc-jump-input{
  width: 56px;
  height: 40px;
  margin: 0 4px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.pgsc-jump-input::placeholder{
  color: #9ca3af;
  font-weight: 500;
}

.pgsc-jump-input:focus{
  border-color: #4f46e5;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}

/* ========== ریسپانسیو ========== */
@media (max-width: 480px){
  .pgsc-link{
    min-width: 34px;
    height: 34px;
    font-size: 13px;
    padding: 0 8px;
  }

  .pgsc-jump-input{
    width: 48px;
    height: 34px;
    font-size: 13px;
  }
}