/* ============================================================
   USER HEADER - DESKTOP & MOBILE
   ============================================================ */

.user-header .admin-header-row1 {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  flex-direction: row !important;
  gap: 0.75rem;
  width: 100%;
  min-height: 80px !important;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.header-left .admin-page-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto !important;
}

/* Badge Premium / Free */
.header-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  flex-shrink: 0;
}

.header-badge.badge-premium {
  background: linear-gradient(135deg, #f9d423, #e6a800);
  color: #5c3d00;
  border: 1.5px solid #d4a000;
}

.header-badge.badge-free {
  background: #e9ecef;
  color: #495057;
  border: 1.5px solid #ced4da;
}

/* Tombol: tampilkan teks di desktop */
.header-btn .btn-text {
  display: inline;
}

/* ============================================================
   ROW 2 - TABS
   ============================================================ */
.user-header .admin-header-row2 {
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  padding: 0 0.5rem;
}

.user-header .admin-tabs .nav-link {
  color: #6c757d;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.user-header .admin-tabs .nav-link:hover {
  color: #0b5ed7;
  border-bottom-color: #c5dcff;
}

.user-header .admin-tabs .nav-link.active {
  color: #0b5ed7;
  border-bottom-color: #0b5ed7;
  background: transparent;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 767.98px) {
  .user-header .admin-header-row1 {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem;
  }
  .header-actions {
    margin-left: auto !important;
  }
  .header-btn .btn-text {
    display: none;
  }
  .header-btn {
    padding: 0.4rem 0.55rem;
    font-size: 0.85rem;
  }
  .header-btn i {
    margin: 0;
  }
  .header-left .admin-page-title {
    font-size: 1rem;
  }
  .header-badge {
    font-size: 0.6rem;
    padding: 0.25rem 0.6rem;
    display: inline-block !important;
    white-space: nowrap;
  }
  .header-badge.badge-premium {
    background: linear-gradient(135deg, #f9d423, #e6a800);
    color: #5c3d00;
  }
  .header-badge.badge-free {
    background: #e9ecef;
    color: #495057;
  }

  .user-header .admin-header-row2 {
    display: block !important;
    padding: 0.25rem 0.5rem;
  }
  .user-header .admin-tabs .nav-link {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }
}