/* panel-cuenta.css: Administración (the landing's bios) and the one-column
   page layout of Estadísticas, Administración and Ajustes de cuenta.

   GENERATED: do not edit public/panel-cuenta.css by hand. It is the files of
   estilos/panel/cuenta/ joined in name order by scripts/unir-estilos.mjs, so
   the dashboard still loads one file and the cascade keeps this order. */

/* Admin → "Bios destacadas en la portada" (public/destacadas-admin.js). */
.featured-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.featured-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.featured-form textarea {
  width: 100%;
  max-width: 320px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  resize: vertical;
}

/* Estadísticas, Administración and Ajustes de cuenta: one column of blocks. */
.page-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}

.page-stack-narrow {
  max-width: 620px;
}

.page-block h3 {
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-field-tight {
  margin-bottom: 0;
}

.account-submit {
  align-self: flex-start;
  height: 38px;
}

.danger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.danger-title {
  margin: 0 0 2px;
  font-weight: 600;
  color: var(--text-primary);
}

.danger-row .group-desc {
  margin: 0;
}

.stats-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stats-credit {
  font-size: 0.75rem;
}

.invite-generate {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.invite-generate .action-btn {
  height: 42px;
}

.invite-code-display {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-color, #e11d48);
}

.invites-list-wrapper {
  overflow-x: auto;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.invites-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.invites-table th {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-weight: 600;
}

.invites-table td {
  padding: 12px 16px;
}

.invite-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.invite-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.invite-code {
  font-family: monospace;
  font-weight: 700;
  color: var(--accent-color, #e11d48);
}

.invite-user {
  color: var(--panel-gris-suave);
  font-size: 0.85rem;
}

.invite-date {
  color: var(--text-muted);
}

.invites-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
}

.invites-empty.is-error {
  color: #ef4444;
}

/* Ajustes de cuenta → the "¿Cambiar tu usuario?" window
   (public/cambio-usuario.js): old link → new link, what changes, confirm. */
.username-change-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.username-change-old {
  text-decoration: line-through;
  opacity: 0.7;
}

.username-change-arrow {
  opacity: 0.7;
}

.username-change-list {
  margin: 0 0 18px;
  padding-left: 20px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.username-change-confirm {
  background: var(--accent-color);
}

.username-change-confirm:hover {
  filter: brightness(1.1);
}

/* Ajustes de cuenta (public/filas-cuenta.js): the summary on top, then each
   of Usuario, Correo and Contraseña as one line with its icon, what it is
   now and "Cambiar", which opens the form under it; "Borrar cuenta" apart,
   in red. */
.account-summary {
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.account-summary-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.account-summary-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.account-summary-text strong {
  overflow: hidden;
  color: var(--text-primary);
  font-family: var(--font-title);
  font-size: 1.1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-summary-email {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.account-row-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.account-row-btn:hover {
  background: rgba(255, 255, 255, 0.09);
}

.account-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  row-gap: 2px;
}

.account-row::before {
  content: "";
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background:
    var(--row-icon) center / 20px no-repeat,
    linear-gradient(135deg, var(--row-a), var(--row-b));
}

.account-row > h3 {
  grid-column: 2;
  margin: 0;
  padding: 0;
  border: none;
}

.account-row > .account-row-value {
  grid-column: 2;
  margin: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-row > .account-row-btn {
  grid-column: 3;
  grid-row: 1 / 3;
}

.account-row > .account-form {
  grid-column: 1 / -1;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.account-row > .account-form[hidden] {
  display: none;
}

#account-username {
  --row-a: #a855f7;
  --row-b: #ec4899;
  --row-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 2a10 10 0 0 0 0 20h5v-2h-5a8 8 0 1 1 8-8v1.43c0 .79-.71 1.57-1.5 1.57s-1.5-.78-1.5-1.57V12a5 5 0 1 0-1.46 3.53A3.7 3.7 0 0 0 18.5 17c1.97 0 3.5-1.6 3.5-3.57V12A10 10 0 0 0 12 2zm0 13a3 3 0 1 1 0-6 3 3 0 0 1 0 6z'/%3E%3C/svg%3E");
}

#account-email {
  --row-a: #3b82f6;
  --row-b: #06b6d4;
  --row-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

#account-password {
  --row-a: #10b981;
  --row-b: #0d9488;
  --row-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M18 8h-1V6A5 5 0 0 0 7 6v2H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2zm-6 9a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm3.1-9H8.9V6a3.1 3.1 0 0 1 6.2 0v2z'/%3E%3C/svg%3E");
}

.account-danger {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(127, 29, 29, 0.18);
}

.account-danger > h3 {
  color: #fca5a5;
}
