.profile-page {
  background:
    radial-gradient(circle at top left, rgba(74, 197, 90, 0.14), transparent 26%),
    linear-gradient(180deg, #fbfdf9 0%, #f2f7ef 100%);
}

.profile-shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 34px 40px 80px;
}

.profile-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.profile-eyebrow,
.section-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
  color: #8ca0af;
}

.profile-intro h1 {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  color: #0b2233;
}

.profile-intro p {
  margin: 0;
  max-width: 740px;
  color: #5f6f7e;
  line-height: 1.7;
}

.profile-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.account-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.soft-button,
.ghost-button,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.soft-button {
  border: 1px solid #d8e7d8;
  background: #ffffff;
  color: #2d6b3b;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.soft-button.danger {
  color: #b84a4a;
}

.ghost-button,
.ghost-link {
  border: 1px solid #d9e4d7;
  background: #ffffff;
  color: #48606d;
}

.soft-button:hover,
.ghost-button:hover,
.ghost-link:hover {
  transform: translateY(-1px);
}

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

.profile-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e5ece2;
  border-radius: 26px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  padding: 24px;
}

.account-card {
  grid-row: span 2;
}

.avatar-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 18px;
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  background: #f4f8f2;
}

.avatar-upload {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ccc5a 0%, #2fbf69 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(47, 191, 105, 0.25);
  cursor: pointer;
}

.account-copy {
  text-align: center;
}

.account-copy h2 {
  margin: 8px 0 6px;
  font-size: 1.5rem;
  color: #0b2233;
}

.account-copy p {
  margin: 0;
  color: #6d7b88;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ebf9ee;
  color: #24924e;
  font-weight: 800;
  font-size: 0.78rem;
}

.stat-card {
  background: #f8fbf6;
  border: 1px solid #edf2eb;
}

.stat-card span {
  display: block;
  color: #8ca0af;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.stats-grid {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  border-radius: 20px;
  padding: 18px;
}

.stat-card strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 2rem;
  color: #0b2233;
}

.stat-card p {
  margin: 0;
  color: #6d7b88;
}

.list-panel {
  min-height: 280px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-header h3 {
  margin: 8px 0 0;
  font-size: 1.3rem;
  color: #0b2233;
}

.mini-list {
  display: grid;
  gap: 12px;
}

.mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #edf2eb;
  background: #f8fbf6;
}

.mini-item strong {
  display: block;
  color: #0b2233;
}

.mini-item p {
  margin: 4px 0 0;
  color: #6d7b88;
  font-size: 0.9rem;
}

.mini-item .meta {
  color: #8ca0af;
  font-size: 0.82rem;
  white-space: nowrap;
}

.empty-note {
  padding: 18px;
  border-radius: 18px;
  background: #f8fbf6;
  border: 1px dashed #dce7da;
  color: #6d7b88;
}

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

  .account-card {
    grid-row: auto;
  }

  .stats-grid {
    grid-column: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .profile-shell {
    padding: 24px 20px 60px;
  }

  .profile-hero {
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}