/* ========== USER HEADER ========== */
.user-header {
  background: linear-gradient(to bottom, #4c4f4f, #2f3335);
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 70px;
  gap: 20px;
}

.logo {
  height: 48px;
}

.search-box input {
  padding: 9px 15px 9px 38px;
  border-radius: 25px;
  border: none;
  width: 220px;
  background: #c9cbcc url(../images/search.png) no-repeat 12px center;
  font-size: 0.95rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link, .nav-item {
  color: white;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.nav-item:hover, .nav-link:hover {
  background: rgba(255,255,255,0.1);
}

.badge {
  background: #9c275a;
  color: white;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  min-width: 22px;
  text-align: center;
}

.badge.zero {
  background: #989b9c;
}

.user-menu {
  position: relative;
}

.user-btn {
  background: #9c275a;
  border: none;
  color: white;
  padding: 8px 16px 8px 10px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 55px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  min-width: 200px;
  overflow: hidden;
  z-index: 50;
}

.dropdown.show {
  display: block;
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
}

.dropdown a:hover {
  background: #f5f5f5;
}

.dropdown img {
  width: 20px;
}

/* ========== AUTH PAGES ========== */
.auth-page {
  background: #f4f4f4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 480px;
  padding: 40px 35px;
}

.auth-card h1 {
  text-align: center;
  margin-bottom: 30px;
  font-weight: 400;
  color: #444;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: #992855;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #7a1f42;
}

.auth-footer {
  text-align: center;
  margin-top: 25px;
  font-size: 0.95rem;
}

.auth-footer a {
  color: #992855;
  text-decoration: none;
}

/* ========== PROFILE / CONTENT PAGES ========== */
.page-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.page-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #333;
  text-align: center;
}

.profile-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  padding: 30px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.profile-picture {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid #eee;
}

.profile-info table {
  width: 100%;
}

.profile-info td {
  padding: 10px 0;
  vertical-align: top;
}

.profile-info td:first-child {
  font-weight: 600;
  width: 140px;
  color: #555;
}

/* Members grid */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.member-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.07);
  text-align: center;
  transition: transform 0.2s;
}

.member-card:hover {
  transform: translateY(-5px);
}

.member-card .avatar {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #f0f0f0;
}

.member-card .name {
  padding: 12px;
  font-weight: 500;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #777;
}

.empty-state img {
  max-width: 180px;
  margin-bottom: 20px;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
  }

  .search-box {
    order: 3;
    width: 100%;
    margin-top: 10px;
  }

  .search-box input {
    width: 100%;
  }

  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}