.nvl-profile-wrapper {
  display: flex;
  gap: 2rem;
  max-width: 1100px;
  margin: 2rem auto;
  align-items: flex-start;
}
.nvl-profile-sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.nvl-profile-content {
  flex-grow: 1;
  background: #fff;
  border-radius: var(--nvl-border-radius);
  padding: 2.5rem;
  border: 1px solid var(--nvl-border-color);
  min-height: 400px;
  box-shadow: var(--nvl-box-shadow);
}
.nvl-user-card {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--nvl-border-color);
  text-align: center;
  box-shadow: var(--nvl-box-shadow);
}
.nvl-user-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 4px solid #f3f4f6;
}
.nvl-user-name {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--nvl-text-color);
}
.nvl-user-role {
  display: inline-block;
  background: #f3f4f6;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1rem;
  font-weight: 500;
}
.nvl-user-meta-info {
  font-size: 0.85rem;
  color: #9ca3af;
  border-top: 1px solid #f3f4f6;
  padding-top: 1rem;
  margin-top: 0.5rem;
}
.nvl-profile-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.nvl-menu-item {
  text-align: right;
  background: #fff;
  border: 1px solid transparent;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
  font-weight: 500;
  color: #4b5563;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  width: 100%;
}
.nvl-menu-item:hover {
  background: #f9fafb;
  color: var(--nvl-primary-color);
  transform: translateX(-4px);
}
.nvl-menu-item.active {
  background: var(--nvl-primary-color);
  color: #fff;
  box-shadow: 0 8px 16px -4px rgba(79, 70, 229, 0.3);
  transform: translateX(-4px);
}
.nvl-menu-item.logout {
  color: #dc2626;
  margin-top: 1rem;
  border: 1px solid #fecaca;
}
.nvl-menu-item.logout:hover {
  background: #fef2f2;
}

/* Tabs Logic */
.nvl-tab-section {
  display: none;
}
.nvl-tab-section.active {
  display: block !important; /* Force show */
}

/* Animation removed from CSS to let jQuery handle it smoothly */

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
  color: var(--nvl-text-color);
}
.nvl-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.nvl-stat-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f3f4f6;
  box-shadow: var(--nvl-box-shadow);
  transition: transform 0.2s;
}
.nvl-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}
.nvl-stat-card .stat-icon {
  width: 56px;
  height: 56px;
  background: #eff6ff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--nvl-primary-color);
}
.stat-info h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: #6b7280;
  font-weight: 500;
}
.stat-info .stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--nvl-text-color);
  display: block;
  line-height: 1.2;
}
.stat-info .stat-desc {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: #9ca3af;
}
.nvl-stat-card.sub-card.active {
  background: linear-gradient(135deg, #f0fdf4, #fff);
  border-color: #dcfce7;
}
.nvl-stat-card.sub-card.active .stat-icon {
  background: #dcfce7;
  color: #16a34a;
}
.nvl-stat-card.sub-card.inactive {
  background: linear-gradient(135deg, #fef2f2, #fff);
  border-color: #fee2e2;
}
.nvl-stat-card.sub-card.inactive .stat-icon {
  background: #fee2e2;
  color: #dc2626;
}
.nvl-btn-renew {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 1rem;
  background: #dc2626;
  color: #fff;
  font-size: 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
}
.nvl-btn-renew:hover {
  background: #b91c1c;
}

@media (max-width: 768px) {
  .nvl-profile-wrapper {
    flex-direction: column;
  }
  .nvl-profile-sidebar,
  .nvl-profile-content {
    width: 100%;
  }
}
