/* ── PROFILE PAGE ── */
.profile-page { padding-top: 0 !important; }

.profile-hero-wrap { max-width: 1200px; margin: 32px auto 0; padding: 0 24px; }

.profile-hero {
  background: linear-gradient(120deg, #1a1c2e 0%, #1a2e3a 60%, #0e2e20 100%);
  padding: 36px; border-radius: 20px;
  position: relative; overflow: hidden;
}
.profile-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,229,160,.06) 1.5px, transparent 1.5px);
  background-size: 28px 28px; border-radius: 20px;
}
.profile-hero::after {
  content: ''; position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,.15) 0%, transparent 65%);
  pointer-events: none;
}

.profile-hero-inner {
  display: flex; align-items: center; gap: 24px;
  position: relative; z-index: 1;
}
.profile-big-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, #00e5a0, #6366f1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800; color: #fff;
  flex-shrink: 0; box-shadow: 0 0 0 4px rgba(255,255,255,.1);
  letter-spacing: -1px;
}
.profile-hero-name { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.profile-hero-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: .8rem; color: rgba(255,255,255,.5);
}
.profile-hero-meta span { display: flex; align-items: center; gap: 5px; }
.profile-hero-meta .material-icons-round { font-size: .9rem !important; }

.profile-grid {
  max-width: 1200px; margin: 0 auto;
  padding: 20px 24px 60px;
  display: grid; grid-template-columns: 260px 1fr;
  gap: 24px; align-items: start;
}

.profile-sidebar { display: flex; flex-direction: column; gap: 16px; }

.profile-card {
  background: #fff; border: 1px solid #e8eaf0;
  border-radius: 16px; padding: 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.profile-card-head  { margin-bottom: 20px; }
.profile-card-title { font-size: .88rem; font-weight: 700; color: #1e2139; }
.profile-card-sub   { font-size: .78rem; color: #94a3b8; margin-top: 3px; }

.profile-stat-list { display: flex; flex-direction: column; gap: 2px; }
.profile-stat-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid #f3f4f8; font-size: .84rem;
}
.profile-stat-row:last-child { border-bottom: none; }
.profile-stat-row .material-icons-round { font-size: 1.1rem !important; }
.psr-label { flex: 1; color: #64748b; }
.psr-val   { font-weight: 700; color: #1e2139; }

.profile-quick-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.profile-quick-nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 9px;
  font-size: .83rem; font-weight: 500; color: #64748b;
  text-decoration: none; transition: background .13s, color .13s;
}
.profile-quick-nav a .material-icons-round { font-size: 1rem !important; }
.profile-quick-nav a:hover { background: #f3f4f9; color: #1e2139; }
.profile-quick-nav a.danger:hover { background: #fef2f2; color: #ef4444; }

.profile-forms { display: flex; flex-direction: column; gap: 20px; }

.profile-flash {
  display: flex; align-items: center; gap: 9px;
  font-size: .82rem; padding: 11px 14px;
  border-radius: 10px; margin-bottom: 18px; font-weight: 500;
}
.profile-flash span { font-size: 1rem; flex-shrink: 0; }
.profile-flash.ok  { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.profile-flash.err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

.profile-form { display: flex; flex-direction: column; gap: 18px; }

.pf-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.pf-row:has(.pf-field:only-child) { grid-template-columns: 1fr; max-width: 360px; }

.pf-field { display: flex; flex-direction: column; gap: 7px; }
.pf-field label {
  font-size: .74rem; font-weight: 700;
  color: #8a8ea8; letter-spacing: .05em; text-transform: uppercase;
}

.pf-input-wrap {
  display: flex; align-items: center;
  background: #f8f9fc; border: 1px solid #e2e5ef;
  border-radius: 10px; transition: border-color .18s, box-shadow .18s;
}
.pf-input-wrap:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
  background: #fff;
}
.pf-input-wrap > span { padding: 0 12px; color: #c4c8d8; font-size: 1rem; flex-shrink: 0; }
.pf-input-wrap input {
  flex: 1; background: none; border: none; outline: none;
  font-family: inherit; font-size: .88rem; color: #1e2139; padding: 11px 0;
}
.pf-input-wrap input::placeholder { color: #c4c8d8; }

.pf-toggle-pw {
  background: none; border: none; padding: 0 12px;
  cursor: pointer; color: #c4c8d8;
  display: flex; align-items: center;
  transition: color .15s; flex-shrink: 0;
}
.pf-toggle-pw:hover { color: #8a8ea8; }
.pf-toggle-pw span  { font-size: 1rem; }

.pf-strength { display: flex; align-items: center; gap: 10px; margin-top: -6px; }
.pf-strength-bar { flex: 1; height: 4px; background: #eef0f6; border-radius: 4px; overflow: hidden; }
.pf-strength-bar div { height: 100%; border-radius: 4px; transition: width .3s, background .3s; }
#pw-strength-label { font-size: .72rem; font-weight: 600; white-space: nowrap; }

.pf-actions { display: flex; justify-content: flex-end; padding-top: 4px; }

.pf-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: 10px;
  font-family: inherit; font-size: .84rem; font-weight: 700;
  cursor: pointer; border: none; transition: opacity .15s, transform .1s;
}
.pf-btn:active { transform: scale(.98); }
.pf-btn.primary { background: #6366f1; color: #fff; }
.pf-btn.primary:hover { opacity: .88; }
.pf-btn.danger  { background: #fef2f2; color: #ef4444; border: 1px solid #fecaca; }
.pf-btn.danger:hover { background: #fee2e2; }
.pf-btn span { font-size: 1rem; }

.danger-zone { border-color: #fecaca; }
.danger-zone-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 14px; flex-wrap: wrap;
}
.danger-zone-row strong { font-size: .85rem; color: #1e2139; display: block; margin-bottom: 3px; }
.danger-zone-row p      { font-size: .78rem; color: #94a3b8; }

@media (max-width: 768px) {
  .profile-grid { grid-template-columns: 1fr; }
  .pf-row       { grid-template-columns: 1fr; }

  .profile-hero-wrap { padding: 0 16px; }
  .profile-hero { padding: 24px 20px; }
  .profile-hero-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .profile-big-avatar { width: 64px; height: 64px; font-size: 1.4rem; }
  .profile-hero-info { min-width: 0; width: 100%; }
  .profile-hero-name { font-size: 1.2rem; }
  .profile-hero-meta { gap: 10px; }
  .profile-hero-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }
}
