.profile-layout,
.settings-layout {
  display: grid;
  gap: 18px;
}

.profile-hero,
.settings-hero {
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.profile-avatar-large {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #0c3866, #2d7ff9);
  font-size: 22px;
  font-weight: 900;
  flex: 0 0 auto;
}

.eyebrow,
.panel-head p {
  margin: 0 0 7px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-hero h2,
.settings-hero h2,
.panel-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.profile-hero span,
.settings-hero span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.role-badge {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0d7d47;
  background: #e7f8ef;
  font-size: 12px;
  font-weight: 900;
}

.profile-logout {
  margin: 0;
}

.profile-logout button {
  min-height: 40px;
  border: 1px solid #f4b5b5;
  border-radius: 8px;
  padding: 0 14px;
  color: #b42318;
  background: #fff4f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.role-badge i,
.settings-hero > i {
  width: 22px;
  height: 22px;
}

.success-message {
  border: 1px solid #b8ebcc;
  border-radius: 8px;
  padding: 12px 14px;
  color: #0d7d47;
  background: #ecfbf2;
  font-size: 13px;
  font-weight: 850;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.panel {
  padding: 20px;
}

.panel-head {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.panel-head > i {
  color: var(--blue);
  width: 26px;
  height: 26px;
}

.settings-form {
  display: grid;
  gap: 14px;
}

.settings-form label {
  display: grid;
  gap: 7px;
  color: #26374b;
  font-size: 12px;
  font-weight: 850;
}

.settings-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfdbea;
  border-radius: 8px;
  background: #fbfdff;
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

.settings-form input:disabled {
  color: var(--muted);
  background: #f3f7fb;
}

.settings-form small {
  color: var(--red);
  font-size: 11px;
}

.secure-note {
  border: 1px solid #b8d8ff;
  border-radius: 8px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0b4aa0;
  background: #eef5ff;
  font-size: 12px;
  font-weight: 850;
}

.settings-form button,
.setting-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: #07264a;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.profile-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.mini-panel {
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.mini-panel i {
  color: var(--blue);
  width: 24px;
  height: 24px;
}

.mini-panel strong,
.security-list strong {
  display: block;
  font-size: 13px;
}

.mini-panel span,
.security-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.settings-actions {
  display: grid;
  gap: 14px;
}

.setting-language {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.setting-language > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.toggle-list,
.security-list {
  display: grid;
  gap: 12px;
}

.toggle-list label,
.security-list div {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toggle-list span {
  color: #26374b;
  font-size: 12px;
  font-weight: 850;
}

.toggle-list input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

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

@media (max-width: 640px) {
  .profile-hero,
  .settings-hero,
  .profile-identity {
    display: grid;
    justify-items: start;
  }
}
