/* ==========================================================
🐎 Asbdavani Horse Tabs – Style v6.1 Final
========================================================== */

.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px auto;
  direction: rtl;
}

.tab {
  background: #5bc0de;
  color: #fff;
  padding: 10px 22px;
  border-radius: 12px 12px 0 0;
  font-family: 'Vazir', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.tab.active {
  background: #26b99a;
  color: #fff;
  transform: translateY(-2px);
}

/* دکمه‌های دور */
.rounds {
  display: none;
  text-align: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
}

.rounds.active {
  display: flex;
}

.round-btn {
  background: #5bc0de;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  margin: 6px;
  cursor: pointer;
  font-family: 'Vazir', sans-serif;
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.round-btn:hover,
.round-btn:focus {
  background: #26b99a;
  transform: scale(1.05);
}

/* پاپ‌آپ */
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.65);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: #fff;
  padding: 25px 30px;
  border-radius: 14px;
  max-width: 500px;
  width: 95%;
  text-align: center;
  direction: rtl;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  animation: popupIn 0.3s ease;
}

@keyframes popupIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.popup-content h3 {
  font-family: 'Vazir', sans-serif;
  font-weight: 700;
  color: #333;
  margin-bottom: 18px;
}

/* دکمه‌های سری در پاپ‌آپ */
.series-btn {
  display: inline-block;
  background: #5bc0de;
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none;
  margin: 6px;
  transition: all 0.25s ease;
  font-family: 'Vazir', sans-serif;
}
.series-btn:hover {
  background: #26b99a;
  transform: scale(1.07);
}

.close-popup {
  background: #26b99a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-family: 'Vazir', sans-serif;
  font-weight: 600;
  margin-top: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.close-popup:hover {
  background: #5bc0de;
}

/* واکنش‌گرا */
@media (max-width: 600px) {
  .tab, .round-btn, .series-btn {
    font-size: 14px;
    padding: 8px 14px;
  }
}
