:root {
  --bg: #0f172a;
  --card: #111827;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --accent: #60a5fa;
  --accent-dark: #2563eb;
  --border: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.card {
  width: min(92vw, 520px);
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
}

h1 {
  margin-top: 0;
  font-size: 32px;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.button {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #08111f;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--accent-dark);
  color: white;
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.profile-box {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.16), transparent 34rem),
    #0f172a;
  color: #e5e7eb;
}

.profile-card {
  width: min(100%, 560px);
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid #334155;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.denied-card {
  border-color: rgba(248, 113, 113, 0.5);
}

.profile-header {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.avatar {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  border: 3px solid #38bdf8;
  background: #020617;
}

.eyebrow {
  margin: 0 0 6px;
  color: #38bdf8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.danger {
  color: #fca5a5;
}

.profile-card h1 {
  margin: 0;
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.1;
}

.muted {
  margin: 8px 0 0;
  color: #94a3b8;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-box {
  padding: 15px;
  border: 1px solid #1e293b;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.75);
}

.info-box.full {
  grid-column: 1 / -1;
}

.label {
  display: block;
  margin-bottom: 6px;
  color: #94a3b8;
  font-size: 13px;
}

.info-box strong {
  display: block;
  word-break: break-word;
}

.status-ok {
  color: #86efac;
}

.status-bad {
  color: #fca5a5;
}

.help-text {
  margin: 22px 0 0;
  color: #cbd5e1;
  line-height: 1.7;
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

.danger-button,
.secondary-button,
.primary-link {
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
}

.danger-button {
  width: 100%;
  margin-top: 24px;
  background: #ef4444;
  color: #ffffff;
}

.danger-button:hover {
  background: #dc2626;
}

.secondary-button {
  background: #334155;
  color: #e5e7eb;
}

.primary-link {
  display: inline-flex;
  background: #2563eb;
  color: #ffffff;
}

.primary-link:hover {
  background: #1d4ed8;
}

@media (max-width: 560px) {
  .profile-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .avatar {
    width: 84px;
    height: 84px;
  }
}


/* Profile page */
.profile-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
}

.profile-avatar--fallback {
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
}

.profile-details {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.profile-label {
  opacity: 0.75;
}

.profile-value {
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.profile-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}


.action-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 700;
}
