/* ==========================================================
   MAXZEETON.NG — STUDENT PROFILE & SETTINGS PAGE
   Shares tokens from dashboard.css / my-courses.css — additive only
   ========================================================== */

/* ── Identity hero ── */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--bdr);
  border-radius: var(--r-xl);
  padding: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.profile-hero-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--brand);
  background: linear-gradient(160deg, #FFF0F2, #FFD9DE);
  border: 3px solid rgba(232, 25, 44, 0.18);
  box-shadow: 0 4px 16px rgba(232, 25, 44, 0.12);
  overflow: hidden;
}
.profile-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.profile-hero-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-hero-name {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--t1);
}

.profile-role-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--brand-bg);
  color: var(--brand);
  border: 1px solid var(--brand-bdr);
}

.profile-hero-email {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--t3);
  margin-top: 6px;
}
.profile-hero-email i {
  font-size: 11px;
}

.profile-hero-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 13px;
  color: var(--t2);
}
.profile-hero-stats strong {
  color: var(--t1);
  font-family: var(--f-display);
}

/* ── Card grid: details (wider) + password ── */
.profile-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: start;
}

.profile-card {
  background: var(--white);
  border: 1px solid var(--bdr);
  border-radius: var(--r-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-card-head h2 {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--t1);
}
.profile-card-head p {
  font-size: 12.5px;
  color: var(--t3);
  margin-top: 4px;
}

/* ── Forms (shared by details + password) ── */
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.profile-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--t2);
}
.profile-field input {
  padding: 10px 14px;
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  background: var(--bg);
  font-size: 13.5px;
  font-family: var(--f-body);
  color: var(--t1);
  outline: none;
  font-weight: 400;
  transition: border-color .15s, box-shadow .15s;
}
.profile-field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(232,25,44,.08);
}

.profile-field--locked input {
  background: var(--bdr);
  color: var(--t3);
  cursor: not-allowed;
}

.profile-field-hint {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--t3);
}

.profile-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.profile-form .btn-explore {
  align-self: flex-start;
}

.profile-form-message {
  font-size: 13px;
  min-height: 18px;
}
.profile-form-message[data-state="success"] { color: var(--green); }
.profile-form-message[data-state="error"]   { color: var(--brand); }

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

@media (max-width: 640px) {
  .profile-hero {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .profile-hero-name-row {
    justify-content: center;
  }
  .profile-hero-email {
    justify-content: center;
  }
  .profile-hero-stats {
    justify-content: center;
  }
  .profile-field-row {
    grid-template-columns: 1fr;
  }
}
