/* ===== GLOBAL ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ===== AUTH PAGES (login, change-password) ===== */
body.auth-page {
  background: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  overflow: hidden;
}

/* ===== PROFILE PUBLIC PAGE ===== */
body.profile-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px 60px;
}

body.is-preview {
  padding: 20px 12px 40px;
}

.profile-container {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Avatar */
.profile-avatar-wrap { margin-bottom: 4px; }

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.3);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

.profile-avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border: 3px solid rgba(255,255,255,.2);
}

.profile-name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.profile-bio {
  margin: 0;
  font-size: .9rem;
  text-align: center;
  opacity: .8;
  max-width: 360px;
  line-height: 1.5;
}

/* Social icons row */
.profile-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 4px 0;
}

.profile-social-icon {
  font-size: 1.6rem;
  line-height: 1;
  transition: transform .15s, opacity .15s;
  text-decoration: none;
}
.profile-social-icon:hover { transform: scale(1.2); opacity: .85; }

/* Link buttons */
.profile-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s, opacity .15s, box-shadow .15s;
  cursor: pointer;
}
.profile-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  opacity: .9;
}
.profile-link-btn i { margin-right: .5rem; }

/* Embed */
.profile-embed {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}
.profile-embed iframe {
  width: 100%;
  height: 180px;
  border: none;
}

/* Text block */
.profile-text-block {
  width: 100%;
  font-size: .9rem;
  text-align: center;
  opacity: .85;
  line-height: 1.6;
  padding: 0 8px;
}

/* Separator */
.profile-separator {
  width: 60%;
  margin: 8px auto;
}

/* ===== DASHBOARD AVATAR PREVIEW ===== */
.avatar-preview { position: relative; display: inline-block; }
.avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #dee2e6;
}
.avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e9ecef;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #adb5bd;
  border: 3px solid #dee2e6;
}
