.public-profile-page {
  background: #0b0f19;
  min-height: 100vh;
  color: #e8eef2;
}

.public-profile-page.public-profile-dialog-open {
  overflow: hidden;
}

.public-profile-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 120px 20px 72px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

.public-profile-sidebar {
  position: sticky;
  top: 96px;
  background: linear-gradient(165deg, #121d1f, #0d2744);
  border: 1px solid rgba(0, 217, 255, 0.25);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.public-profile-avatar {
  width: 124px;
  height: 124px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(0, 217, 255, 0.45);
  background: #0b1526;
  display: flex;
  align-items: center;
  justify-content: center;
}

.public-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-profile-avatar-initials {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: #00d9ff;
  letter-spacing: 0.08em;
}

.public-profile-sidebar h1 {
  margin: 0 0 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  color: #f0f6ff;
}

.public-profile-role {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 193, 7, 0.14);
  border: 1px solid rgba(255, 193, 7, 0.45);
  color: #ffd866;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-profile-name {
  margin: 0 0 12px;
  color: #c7d8e6;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.public-profile-initials {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 217, 255, 0.12);
  border: 1px solid rgba(0, 217, 255, 0.35);
  color: #8ae8ff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.public-profile-meta {
  margin: 14px 0 0;
  color: #9cb7cc;
  font-size: 0.85rem;
}

.public-profile-actions {
  margin-top: 20px;
}

.public-profile-btn {
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 700;
  background: #00d9ff;
  color: #031425;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease;
}

.public-profile-btn:hover {
  background: #00b5d4;
  color: #031425;
  text-decoration: none;
}

.public-profile-btn-secondary {
  background: transparent;
  color: #8ae8ff;
  border: 1px solid rgba(0, 217, 255, 0.45);
}

.public-profile-btn-secondary:hover {
  background: rgba(0, 217, 255, 0.08);
  color: #b7f3ff;
}

.public-profile-main {
  display: grid;
  gap: 22px;
}

.public-profile-card {
  background: #101827;
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 14px;
  padding: 26px 28px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.public-profile-card h2 {
  margin: 0 0 6px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.25rem;
  color: #f0f6ff;
}

.public-profile-card-desc {
  margin: 0 0 16px;
  color: #9cb7cc;
  font-size: 0.9rem;
  line-height: 1.5;
}

.public-profile-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.public-metric {
  background: #0b1526;
  border: 1px solid rgba(0, 217, 255, 0.18);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
}

.public-metric-value {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.45rem;
  color: #00d9ff;
  margin-bottom: 4px;
}

.public-metric-label {
  display: block;
  color: #9cb7cc;
  font-size: 0.78rem;
  line-height: 1.35;
}

.public-profile-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.public-profile-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 180, 210, 0.12);
}

.public-profile-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.public-profile-list a {
  color: #8ae8ff;
  font-weight: 600;
  text-decoration: none;
}

.public-profile-list a:hover {
  color: #b7f3ff;
  text-decoration: underline;
}

.public-profile-list-meta {
  color: #9cb7cc;
  font-size: 0.86rem;
}

.public-profile-empty {
  margin: 8px 0 0;
  color: #9cb7cc;
  font-size: 0.92rem;
}

.public-profile-alert {
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.public-profile-alert.error {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.45);
  color: #ffc8ce;
}

.public-profile-alert.success {
  background: rgba(40, 167, 69, 0.15);
  border: 1px solid rgba(40, 167, 69, 0.45);
  color: #b9f8cb;
}

.public-message-dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.public-message-dialog[hidden] {
  display: none;
}

.public-message-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.72);
}

.public-message-dialog-panel {
  position: relative;
  width: min(100%, 440px);
  background: #101827;
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: 14px;
  padding: 24px 22px 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.public-message-dialog-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: #9cb7cc;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.public-message-dialog-panel h3 {
  margin: 0 0 6px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.15rem;
  color: #f0f6ff;
}

.public-message-dialog-desc {
  margin: 0 0 16px;
  color: #9cb7cc;
  font-size: 0.88rem;
}

.public-message-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #f0f6ff;
}

.public-message-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #294566;
  background: #0b1526;
  color: #fff;
  border-radius: 8px;
  padding: 11px 12px;
  resize: vertical;
  min-height: 110px;
  margin-bottom: 14px;
}

.public-message-form textarea:focus {
  outline: none;
  border-color: #00d9ff;
  box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.2);
}

.public-message-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.public-message-dialog-actions .public-profile-btn {
  width: auto;
  flex: 1 1 auto;
}

@media (max-width: 920px) {
  .public-profile-shell {
    grid-template-columns: 1fr;
    padding-top: 100px;
  }

  .public-profile-sidebar {
    position: static;
  }
}

@media (max-width: 560px) {
  .public-profile-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .public-profile-card {
    padding: 20px 16px;
  }
}
