.accounts-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.accounts-page .site-header {
  flex-shrink: 0;
}

.accounts-page .page-wrap.accounts-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.accounts-page .accounts-main {
  flex: 1 0 auto;
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.accounts-main--wide {
  width: min(720px, 100%);
}

.accounts-card {
  background: rgba(14, 22, 35, 0.88);
  border: 1px solid rgba(152, 186, 227, 0.18);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.accounts-card h1 {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

.accounts-card .accounts-lede {
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.accounts-note {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  margin: 0.75rem 0 0;
}

.accounts-form label {
  display: block;
  font-size: 0.85rem;
  margin: 0.85rem 0 0.35rem;
}

.accounts-form input[type="text"],
.accounts-form input[type="email"],
.accounts-form input[type="password"],
.accounts-form input[type="url"],
.accounts-form input[type="color"],
.accounts-form select,
.accounts-form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(152, 186, 227, 0.25);
  background: rgba(5, 8, 15, 0.75);
  color: var(--text);
  font: inherit;
  font-weight: 400;
}

.accounts-form textarea {
  min-height: 90px;
  resize: vertical;
}

.accounts-form input[type="color"] {
  padding: 0.25rem;
  height: 2.5rem;
  cursor: pointer;
}

.accounts-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  align-items: center;
}

.accounts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: #0b0f14;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.accounts-btn:hover {
  filter: brightness(1.08);
}

.accounts-btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(152, 186, 227, 0.35);
}

.accounts-btn--danger {
  background: #b33a3a;
  color: #fff;
}

.accounts-btn--small {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

.accounts-links-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.accounts-link-editor {
  border: 1px solid rgba(152, 186, 227, 0.18);
  border-radius: 12px;
  padding: 0.85rem;
  background: rgba(5, 8, 15, 0.45);
}

.accounts-link-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.accounts-flash {
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-weight: 400;
}

.accounts-flash--ok {
  background: rgba(60, 160, 100, 0.2);
  border: 1px solid rgba(60, 160, 100, 0.45);
}

.accounts-flash--error {
  background: rgba(180, 60, 60, 0.2);
  border: 1px solid rgba(180, 60, 60, 0.45);
}

.accounts-inline-links {
  margin-top: 1rem;
  font-weight: 400;
  font-size: 0.9rem;
}

.accounts-inline-links a {
  color: var(--accent);
}

/* Public profile */
.profile-public {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1rem 3rem;
}

.profile-public-card {
  width: min(420px, 100%);
  text-align: center;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  background: rgba(255, 255, 255, 0.08);
}

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

.profile-display-name {
  font-size: 1.6rem;
  margin: 0;
}

.profile-username {
  opacity: 0.75;
  font-weight: 400;
  margin: 0.2rem 0 0.75rem;
}

.profile-bio {
  font-weight: 400;
  margin: 0 0 1.25rem;
  opacity: 0.9;
}

.profile-links {
  display: grid;
  gap: 0.75rem;
}

.profile-link-btn {
  display: block;
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  transition: transform 0.15s ease-out, filter 0.15s ease-out;
}

.profile-link-btn:hover {
  transform: translateY(-1px) scale(1.01);
  filter: brightness(1.06);
}

.profile-link-row {
  margin-bottom: 0.35rem;
}

.profile-link-report {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.75;
}

.profile-link-report summary {
  cursor: pointer;
  list-style: none;
}

.profile-link-report summary::-webkit-details-marker {
  display: none;
}

.profile-link-report textarea {
  width: 100%;
  margin-top: 0.35rem;
  min-height: 60px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  padding: 0.45rem;
  font: inherit;
}

.cf-turnstile {
  margin: 0.75rem 0;
}

.accounts-btn.is-active {
  border-color: rgba(152, 186, 227, 0.55);
  color: #fff;
}

.profile-public-footer {
  margin-top: 2rem;
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.7;
}

.profile-public-footer a {
  color: inherit;
}

.profile-report details {
  margin-top: 1.25rem;
  font-weight: 400;
  font-size: 0.85rem;
}

.profile-report textarea {
  width: 100%;
  margin-top: 0.5rem;
  min-height: 70px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  padding: 0.5rem;
  font: inherit;
}

.accounts-page .footer {
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
}

.mod-table {
  width: 100%;
  border-collapse: collapse;
  font-weight: 400;
  font-size: 0.9rem;
}

.mod-table th,
.mod-table td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid rgba(152, 186, 227, 0.15);
  vertical-align: top;
}
