.profile-shell,
body {
  overflow-x: hidden;
  overflow-y: auto;
}

.profile-shell {
  width: min(1120px, 100%);
}

.profile-wrap {
  width: min(820px, 100%);
  margin: 0 auto;
}

.profile-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.profile-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 12px;
}

.profile-card {
  border: 1px solid rgba(132, 168, 232, 0.24);
  border-radius: 16px;
  background: rgba(4, 10, 25, 0.7);
  overflow: hidden;
}

.profile-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(132, 168, 232, 0.24);
}

.profile-card-title {
  color: #eaf2ff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.profile-role-badge {
  border: 1px solid rgba(132, 168, 232, 0.3);
  border-radius: 999px;
  padding: 4px 10px;
  color: #c3d8ff;
  font-size: 0.74rem;
  font-weight: 700;
}

.profile-card-body {
  padding: 12px 14px 14px;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 14px;
}

.profile-item {
  border: 1px solid rgba(132, 168, 232, 0.22);
  border-radius: 14px;
  background: rgba(4, 10, 25, 0.72);
  padding: 12px 14px;
}

.profile-label {
  color: #9db9ee;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.profile-value {
  color: #eef4ff;
  font-size: 1rem;
  line-height: 1.45;
  word-break: break-word;
}

.profile-section-title {
  margin-top: 18px;
  margin-bottom: 10px;
  color: #9db9ee;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-form {
  display: grid;
  gap: 10px;
}

.profile-input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(127, 161, 228, 0.38);
  background: rgba(4, 9, 24, 0.95);
  color: #f0f5ff;
}

.profile-input:focus {
  outline: none;
  border-color: #4f86ff;
  box-shadow: 0 0 0 2px rgba(79, 134, 255, 0.22);
}

.profile-form-actions {
  display: flex;
  justify-content: flex-start;
}

.profile-table-wrap {
  overflow-x: auto;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
}

.profile-table th,
.profile-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(132, 168, 232, 0.18);
  text-align: left;
  color: #dce8ff;
  font-size: 0.84rem;
}

.profile-table th {
  color: #9db9ee;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-muted {
  color: #9db9ee;
}

.profile-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: rgba(5, 12, 32, 0.94);
  border: 1px solid rgba(109, 151, 231, 0.35);
  color: #eef4ff;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(0, 8, 28, 0.45);
  display: none;
  z-index: 1200;
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-info-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
