/* ============================================================
   navigation.css — نوار پایین، تب‌ها
   ============================================================
   شامل:
   - نوار پایین (.bottom-nav) + آیتم‌ها + دکمه + سبز
   - حالت active نوار پایین (سبز پررنگ)
   - تب‌های سفارشی (.custom-tabs-container + .custom-tab)
   - تب‌های محتوا (.plan-tab-content)
   ============================================================ */

/* ---------- نوار پایین ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background-color: var(--color-bg-white);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 75px;
  z-index: 1000;
}

/* ---------- آیتم‌های نوار پایین ---------- */
.nav-item-custom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: var(--fw-normal);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: color var(--transition-fast);
}

.nav-item-custom i {
  font-size: 24px;
  line-height: 1;
  margin-bottom: 2px;
}

/* ============================================================
   حالت active نوار پایین — سبز پررنگ
   ============================================================
   - متن و آیکون هر دو سبز می‌شن
   - از !important استفاده شده تا هیچ قانون دیگه‌ای
     (مثل رنگ پیش‌فرض .nav-item-custom) override نکنه
   ============================================================ */
.bottom-nav .nav-item-custom.active {
  color: var(--color-primary) !important;
  font-weight: var(--fw-bold);
}

.bottom-nav .nav-item-custom.active i,
.bottom-nav .nav-item-custom.active i::before {
  color: var(--color-primary) !important;
}

/* ---------- دکمه + وسط نوار ---------- */
.plus-btn-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.plus-btn {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  box-shadow: var(--shadow-green);
  cursor: pointer;
  position: relative;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.plus-btn:active {
  transform: scale(0.95);
}

.plus-btn i {
  font-size: 24px;
  line-height: 1;
  color: var(--color-bg-white);
  text-shadow:
    0 0 1px var(--color-bg-white),
    0 0 1px var(--color-bg-white);
}

/* ---------- تب‌های سفارشی (index + services) ---------- */
.custom-tabs-container {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 5px;
  margin-bottom: 12px;
  display: flex;
}

.custom-tab {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: var(--fs-md);
  font-weight: var(--fw-normal);
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.custom-tab.active {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: var(--fw-bold);
}

/* ---------- تب‌های محتوا (services) ---------- */
.plan-tab-content {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.plan-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
