/* ========================================
   MORPHIK — Profile & Admin CSS
   ======================================== */

.profile-header {
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--accent-violet);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-3xl);
  color: var(--accent-violet);
  box-shadow: var(--shadow-glow);
}

.profile-info h2 {
  margin-bottom: var(--space-xs);
  overflow-wrap: anywhere;
}

.profile-info {
  min-width: 0;
  flex: 1 1 auto;
}

.profile-info p {
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}
@media (max-width:560px) {
  .profile-grid { grid-template-columns: minmax(0,1fr); }
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  overflow: hidden;
}

.stat-card .icon {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  color: var(--border-active);
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

.stat-value {
  font-size: var(--fs-3xl);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

#notificationConsentStatus[data-state="error"] { color: #fda4af !important; }
#notificationConsentStatus[data-state="success"] { color: #86efac !important; }

.promo-section {
  margin-top: var(--space-2xl);
  padding: var(--space-xl);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.05), rgba(240, 171, 252, 0.05));
  border: 1px dashed var(--accent-violet);
  border-radius: var(--radius-lg);
  text-align: center;
}

.promo-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 400px;
  margin: var(--space-md) auto 0;
}

/* Admin Specific */
.admin-header {
  background: rgba(252, 165, 165, 0.05);
  border-color: rgba(252, 165, 165, 0.2);
  color: #fca5a5;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-xl);
}

.log-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-lg);
}

.log-table th, .log-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.log-table th {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: var(--fs-sm);
}

.log-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.log-table td {
  color: var(--text-primary);
  font-size: var(--fs-sm);
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--accent-violet-dim);
  color: var(--accent-violet);
}

.badge-pro { background: var(--accent-pink-dim); color: var(--accent-pink); }
.badge-dev { background: var(--accent-gold-dim); color: var(--accent-gold); }
