:root {
  --bg-overlay: rgba(0, 0, 0, 0.55);
  --card-bg: rgba(40, 41, 48, 0.96);
  --accent: #ff99cc;
  --accent-soft: #ffb3dd;
  --accent-strong: #ff6fb9;
  --text-main: #ffffff;
  --text-muted: #b0b3c1;
  --danger: #ff5c7a;
  --border-radius-lg: 14px;
  --border-radius-full: 999px;
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.4);
  --shadow-soft-small: 0 6px 18px rgba(0, 0, 0, 0.35);
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.25s ease;
  --max-width-card: 900px;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  height: 100%;
  font-family: var(--font-main);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  position: relative;
  background: #80838a;
}

/* ===== Fondo con imagen detrás ===== */

.bg-image-layer {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -3;
  filter: brightness(0.9);
}

.bg-overlay-layer {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: -2;
}

/* ===== Layout general ===== */

.app-shell {
  position: relative;
  min-height: 100vh;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* ===== Top bar / Header ===== */

.top-bar {
  width: 100%;
  max-width: var(--max-width-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  gap: 16px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo grande, suelto */
.top-bar-logo {
  height: 120px;
  width: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.top-bar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Chip de estado (usuario) */

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 153, 204, 0.9);
}

/* Link simple (Login / Register, etc.) */

.link-plain {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--accent-soft);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast);
}

.link-plain:hover {
  opacity: 1;
  color: var(--accent-strong);
  transform: translateY(-1px);
}

/* ===== Splash estilo Minecraft (solo texto) ===== */

.version-splash {
  position: absolute;
  top: -14px;
  right: -4px;
  color: #ffeb3b;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  white-space: nowrap;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  text-shadow:
    2px 2px 0 #000,
    -1px 0 0 #000,
    0 1px 0 #000;
  transform: rotate(-15deg);
  animation: splashFloat 1.7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes splashFloat {
  0% {
    transform: translateY(0) rotate(-15deg);
  }
  50% {
    transform: translateY(-4px) rotate(-15deg);
  }
  100% {
    transform: translateY(0) rotate(-15deg);
  }
}

/* ===== Card de perfil del owner ===== */

.profile-card {
  width: 100%;
  max-width: var(--max-width-card);
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 20px 26px;
  display: flex;
  align-items: flex-start;  /* <- AHORA ARRANCAN ARRIBA, NO EN EL MEDIO */
  gap: 22px;
}

.pfp-ring {
  width: 96px;
  height: 96px;
  border-radius: var(--border-radius-full);
  border: 3px solid var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.16),
    transparent 60%
  );
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.pfp-inner {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background-color: #34353c;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.profile-main {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.profile-title h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-soft);
}

.profile-username {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.profile-about {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
  max-width: 65ch; /* largo perfecto para lectura */
  white-space: pre-line;
  margin-top: 4px;
}

.profile-actions {
  grid-column: 3;
  grid-row: 1;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ===== Botones ===== */

.btn {
  border-radius: 999px;
  padding: 8px 16px;
  border: none;
  font-size: 0.86rem;
  cursor: pointer;
  font-weight: 500;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), color var(--transition-fast),
    opacity var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-soft);
  color: #3b2b35;
  box-shadow: var(--shadow-soft-small);
}

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--accent-soft);
  border: 1px solid rgba(255, 178, 221, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 178, 221, 0.15);
}

.btn-danger {
  background: rgba(255, 92, 122, 0.14);
  border: 1px solid rgba(255, 92, 122, 0.8);
  color: var(--danger);
}

.btn-danger:hover {
  background: rgba(255, 92, 122, 0.28);
}

/* ===== Contenido principal ===== */

main {
  width: 100%;
  max-width: var(--max-width-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.section {
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft-small);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 8px;
}

.section-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.section-subtitle {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.section-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ===== Inputs / textarea ===== */

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
textarea {
  width: 100%;
  background: rgba(25, 26, 32, 0.9);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 10px;
  color: var(--text-main);
  font-size: 0.86rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), transform var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: rgba(176, 179, 193, 0.7);
}

input:focus,
textarea:focus {
  border-color: var(--accent-soft);
  background: rgba(28, 29, 36, 0.96);
  box-shadow: 0 0 0 1px rgba(255, 153, 204, 0.3);
  transform: translateY(-0.5px);
}

textarea {
  resize: vertical;
  min-height: 80px;
  max-height: 220px;
}

/* fila para imagen + botón Post */

.field-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-inline {
  margin-top: 0;
  padding-inline: 20px;
}

/* ===== File inputs lindos ===== */

.file-input-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-input-label {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.84rem;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast),
    transform var(--transition-fast), box-shadow var(--transition-fast);
}

.file-input-label::before {
  content: "📁";
  font-size: 0.9rem;
}

.file-input-label:hover {
  background: rgba(255, 178, 221, 0.14);
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(255, 153, 204, 0.25);
  transform: translateY(-1px);
}

.file-input-filename {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===== Logs ===== */

.logs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.log-card {
  background: rgba(21, 22, 28, 0.96);
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}

.log-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 0 0,
    rgba(255, 153, 204, 0.08),
    transparent 65%
  );
  opacity: 0;
  transition: opacity var(--transition-med);
  pointer-events: none;
}

.log-card:hover::before {
  opacity: 1;
}

.log-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.log-author {
  font-size: 0.82rem;
  color: var(--accent-soft);
  font-weight: 500;
  cursor: pointer;
}

.log-author:hover {
  text-decoration: underline;
}

.log-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.log-text {
  font-size: 0.9rem;
  color: var(--text-main);
  white-space: pre-wrap;
}

/* imagen dentro del log */

/* Media dentro de los posts (Logs) */
.log-image,
.log-video {
  margin-top: 6px;
  max-width: 100%;
  max-height: 420px;      /* <-- ajustá este valor si querés más chico/grande */
  border-radius: 10px;
  display: block;
  background: #000;
  object-fit: contain;    /* escala sin recortar la imagen/video */
}


/* Pill de estado New Log */

.status-pill {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

/* ===== Botón flotante + ===== */

.floating-add {
  position: fixed;
  right: 26px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: none;
  background: var(--accent-soft);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-size: 0;         /* ya no usamos texto, solo img */
  color: transparent;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast);
  z-index: 5;
}

.floating-add-icon {
  width: 32px;
  height: 32px;
  pointer-events: none; /* que el click llegue al botón */
  image-rendering: auto;
}

.floating-add:hover {
  background: var(--accent-strong);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.6);
}

.floating-add:active {
  transform: translateY(0) scale(0.97);
  box-shadow: var(--shadow-soft-small);
}

/* ===== Mensajes ===== */

.error-text {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 4px;
}

.success-text {
  font-size: 0.8rem;
  color: var(--accent-soft);
  margin-top: 4px;
}

/* ===== Auth (login/register) ===== */

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-soft);
}

.auth-title {
  margin: 0 0 4px 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.auth-subtitle {
  margin: 0 0 14px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-footer {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.auth-footer a {
  color: var(--accent-soft);
  text-decoration: none;
}

.auth-footer a:hover {
  color: var(--accent-strong);
}

/* Badge owner */

.badge-owner {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-soft);
  background: rgba(0, 0, 0, 0.3);
}

/* Cosas ocultas */

.hidden {
  display: none !important;
}

/* ===== Responsivo ===== */

@media (max-width: 720px) {
  .app-shell {
    padding: 16px;
  }

 /* === REAL FIX PARA EL ABOUT ME FE0 === */

.profile-card {
  width: 100%;
  max-width: var(--max-width-card);
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 96px 1fr auto; /* PFP | texto | botones */
  grid-auto-rows: auto;
  column-gap: 22px;
  row-gap: 10px;
  align-items: flex-start;
}

.pfp-ring {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.profile-title {
  grid-area: title;
}

.profile-about {
  grid-area: about;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 75ch;
  white-space: pre-line;
}

.profile-actions {
  grid-area: actions;
  justify-self: start;
  margin-top: 6px;
}

  .profile-actions {
    width: 100%;
    align-items: stretch;
  }

  .profile-actions .btn {
    justify-content: center;
  }

  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .floating-add {
    right: 18px;
    bottom: 18px;
  }
}

@media (max-width: 480px) {
  .pfp-ring {
    width: 84px;
    height: 84px;
  }

  .pfp-inner {
    width: 74px;
    height: 74px;
  }
}

.log-actions {
  margin-top: 0;
  display: flex;
  justify-content: flex-end;
}

.btn-small {
  padding: 4px 10px;
  font-size: 0.75rem;
}

/* FAB abierto */
.floating-add.open {
  transform: translateY(-2px) scale(1.03);
}

/* Menú del FAB */
.fab-menu {
  position: fixed;
  right: 26px;
  bottom: 84px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 6;
}

.fab-menu-item {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 14px;
  font-size: 0.82rem;
  background: rgba(21, 22, 28, 0.96);
  color: var(--text-main);
  box-shadow: var(--shadow-soft-small);
  cursor: pointer;
  text-align: left;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

.fab-menu-item:hover {
  background: rgba(40, 41, 48, 0.98);
  border-color: rgba(255, 178, 221, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.55);
}

/* Modales */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.modal-card {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 16px 18px 14px;
}

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

.modal-header h2 {
  margin: 0;
  font-size: 1rem;
}

.modal-close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
}

.modal-close:hover {
  color: var(--accent-soft);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Lista de usuarios activos */

.active-users-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 300px;
  overflow-y: auto;
}

.active-user-item {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(21, 22, 28, 0.96);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast),
    border-color var(--transition-fast);
}

.active-user-item:hover {
  background: rgba(40, 41, 48, 0.98);
  border-color: rgba(255, 178, 221, 0.4);
  transform: translateY(-1px);
}

.active-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #34353c;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.active-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.active-user-name {
  font-size: 0.86rem;
  color: var(--text-main);
}

.active-user-username {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Mini perfil */

.mini-profile-body {
  display: flex;
  gap: 12px;
  align-items: center;
}

.up-avatar-wrapper {
  flex-shrink: 0;
}

.up-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: #34353c;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.up-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.up-username {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.up-about {
  font-size: 0.86rem;
  color: var(--text-main);
}

/* Log header con avatar */

.log-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.log-header-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.log-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #34353c;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.log-header-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.log-author-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Owner badge reutilizado para posts y comments */
.comment-owner-badge {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.log-footer {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Likes en posts */
.log-like-btn.liked,
.comment-like-btn.liked {
  background: rgba(255, 178, 221, 0.18);
  border-color: var(--accent-soft);
}

/* Comments container */

.comments-container {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.comments-toggle {
  background: none;
  border: none;
  color: var(--accent-soft);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 4px 0;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.comments-toggle:hover {
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

/* Comentarios */

.comment {
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.comment-main-row {
  display: flex;
  gap: 8px;
}

.comment-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #34353c;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.log-avatar,
.comment-avatar {
  cursor: pointer;
}

.comment-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}

.comment-author-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.comment-author {
  font-size: 0.86rem;
  cursor: pointer;
}

.comment-author:hover {
  text-decoration: underline;
}

.comment-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.comment-text {
  font-size: 0.86rem;
  color: var(--text-main);
}

.comment-actions {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.comment-reply-form {
  margin-top: 4px;
  display: flex;
  gap: 6px;
  flex-direction: column;
}

.comment-reply-input {
  width: 100%;
  background: rgba(25, 26, 32, 0.9);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 8px;
  color: var(--text-main);
  font-size: 0.82rem;
}

.comment-children {
  margin-left: 24px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Form de comentario principal */
.comment-form {
  margin-top: 6px;
  display: flex;
  gap: 6px;
  flex-direction: column;
}

.comment-input {
  width: 100%;
  background: rgba(25, 26, 32, 0.9);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 8px;
  color: var(--text-main);
  font-size: 0.84rem;
}

.comment-options-btn {
  padding: 4px 8px;
  font-size: 0.8rem;
}

.comment-options-menu {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comment-options-menu.hidden {
  display: none !important;
}

.comment-options-item {
  width: 100%;
  text-align: left;
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: 6px;
  border: none;
  background: rgba(30, 31, 38, 0.98);
  color: var(--text-main);
  cursor: pointer;
}

.comment-options-item:hover {
  background: rgba(40, 41, 48, 1);
}

/* Imagen separadora entre post y comentarios */
.log-divider {
  display: block;
  margin: 8px auto 4px auto;
  width: 100px;
  height: 50px;
  object-fit: contain;
  opacity: 0.85;
}

/* Toggle de replies (comentarios de comentarios) */
.replies-toggle {
  font-size: 0.78rem;
  padding: 2px 8px;
  background: transparent;
  border: none;
  color: var(--accent-soft);
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.replies-toggle:hover {
  color: var(--accent-strong);
  transform: translateY(-1px);
}

/* === EDITOR FOTO DE PERFIL === */

.pfp-editor-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.pfp-editor-box {
  background: #1a1a1a;
  padding: 25px;
  border-radius: 16px;
  width: 360px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

/* Cuadro donde movés la imagen */
.pfp-editor-frame {
  width: 260px;
  height: 260px;
  margin: 15px auto 20px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  position: relative;
}
/* Imagen que se arrastra (no se arrastra como elemento de navegador) */
.pfp-editor-frame img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  transform: translate(-50%, -50%) scale(1);
  cursor: grab;
  user-select: none;
  pointer-events: auto;
}

/* Máscara: círculo claro adentro, oscuro/translúcido afuera */
.pfp-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle closest-side at center,
      transparent 0,
      transparent 96%,
      rgba(0, 0, 0, 0.55) 98%,
      rgba(0, 0, 0, 0.78) 100%
    );
  border-radius: 16px;
}

/* Menú 3 puntitos reutilizable */
.menu-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 4px;
  padding: 6px 0;
  background: #1d1525;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 30;
  min-width: 150px;
}

.comment-actions,
.log-actions {
  position: relative;
}

.menu-item {
  width: 100%;
  text-align: left;
  padding: 6px 12px;
  font-size: 0.8rem;
  border: none;
  background: transparent;
  color: var(--text-primary, #f8e9ff);
  cursor: pointer;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.icon-button.menu-trigger {
  border: none;
  background: transparent;
  padding: 4px 6px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-muted, #e1c7ff);
}

.icon-button.menu-trigger:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Edit forms */
.comment-edit-form,
.log-edit-form {
  margin-top: 6px;
}

.comment-edit-input,
.log-edit-input {
  width: 100%;
  min-height: 60px;
  resize: vertical;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 8px;
  background: #120c18;
  color: var(--text-primary, #f8e9ff);
  font-size: 0.8rem;
}

.comment-edit-actions,
.log-edit-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.comment-menu-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* ===== Tabs bajo el perfil ===== */

.tabs-nav {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  margin: 8px 0 6px;
  padding-inline: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tab-button {
  background: transparent;
  border: none;
  padding: 8px 4px 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
}

.tab-button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  transform-origin: center;
  transform: scaleX(0.4);
  opacity: 0;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    opacity var(--transition-fast);
}

.tab-button:hover {
  color: var(--accent-soft);
}

.tab-button.active {
  color: var(--accent-soft);
  font-weight: 600;
}

.tab-button.active::after {
  background: var(--accent-soft);
  opacity: 1;
  transform: scaleX(1);
}

.tab-panel {
  display: none;
}

.tab-panel-active {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* texto chiquito de ayuda dentro de sections */

.section-helper {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Art Gallery ===== */

.owner-tools {
  margin-bottom: 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  min-height: 80px;
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-caption-chip {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 0.75rem;
  color: var(--text-main);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Art modal */

.art-modal-card {
  max-width: 620px;
}

.art-modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.art-modal-image {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.art-modal-caption {
  font-size: 0.86rem;
  color: var(--text-main);
}

/* ===== Current Projects ===== */

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card {
  display: flex;
  gap: 12px;
  padding: 12px 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(17, 18, 24, 0.96);
}

.project-thumb-wrapper {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.project-desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-main);
  white-space: pre-wrap;
}

.project-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.project-card-owner-actions {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-delete-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  align-self: flex-end;
}

.project-delete-btn:hover {
  color: var(--danger);
}

/* ===== Tabs bajo el perfil ===== */

.tabs-nav {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  margin: 8px 0 6px;
  padding-inline: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tab-button {
  background: transparent;
  border: none;
  padding: 8px 4px 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
}

.tab-button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  transform-origin: center;
  transform: scaleX(0.4);
  opacity: 0;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    opacity var(--transition-fast);
}

.tab-button:hover {
  color: var(--accent-soft);
}

.tab-button.active {
  color: var(--accent-soft);
  font-weight: 600;
}

.tab-button.active::after {
  background: var(--accent-soft);
  opacity: 1;
  transform: scaleX(1);
}

/* panels (gallery / projects usan section.tab-panel) */
.section.tab-panel {
  margin-top: 16px;
}

/* ===== Art Gallery ===== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  min-height: 80px;
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-caption-chip {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  font-size: 0.75rem;
  color: var(--text-main);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* ===== Art modal (overlay más opaco y layout con comentarios) ===== */

.modal-backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.art-modal-card {
  max-width: 900px;
}

.art-modal-main {
  display: flex;
  gap: 16px;
}

.art-modal-image-wrapper {
  flex: 1.35;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.art-modal-image {
  width: 100%;
  display: block;
  object-fit: contain;
}

.art-modal-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.art-modal-side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.art-modal-caption {
  font-size: 0.9rem;
  color: var(--text-main);
}

.art-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

#art-like-button {
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

#art-like-button.liked {
  background: var(--accent);
  color: #111118;
}

#art-like-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* comments */

.art-comments-section {
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.art-comments-list {
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.art-comment {
  padding: 4px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.art-comment-head {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.art-comment-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.art-comment-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.art-comment-text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-main);
}

#art-comment-form {
  display: flex;
  gap: 6px;
  align-items: flex-end;
}

#art-comment-input {
  flex: 1;
  resize: vertical;
  min-height: 40px;
  max-height: 120px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-main);
  font-size: 0.85rem;
}

#art-comment-input:focus {
  outline: none;
  border-color: var(--accent-soft);
}

#art-comment-form button[type="submit"] {
  height: 32px;
  padding-inline: 10px;
  font-size: 0.8rem;
}

#art-comment-error {
  font-size: 0.8rem;
  color: var(--danger);
}

/* ===== Current Projects ===== */

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.project-card {
  display: flex;
  gap: 12px;
  padding: 12px 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(17, 18, 24, 0.96);
}

.project-thumb-wrapper {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.project-desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-main);
  white-space: pre-wrap;
}

.project-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== CURRENT PROJECTS: rich text ===== */

.projects-editor-wrapper {
  margin-top: 10px;
}

#projects-editor {
  min-height: 170px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(10, 10, 16, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.45;
  white-space: pre-wrap;
}

#projects-editor:focus {
  outline: none;
  border-color: var(--accent-soft);
}

.projects-editor-owner {
  cursor: text;
}

.project-inline-image {
  max-width: 100%;
  border-radius: 10px;
  margin: 6px 0;
  display: block;
}

.projects-toolbar {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#projects-status {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== Current Projects big editor ===== */

.projects-editor-wrapper {
  border-radius: 12px;
  padding: 10px;
  background: rgba(10, 10, 12, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 220px;
}

#projects-editor {
  min-height: 180px;
  outline: none;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-main);
}

.projects-editor-owner {
  cursor: text;
}

.projects-toolbar {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.projects-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.projects-resize-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.projects-resize-tools input[type="range"] {
  accent-color: var(--accent-soft);
}

.project-inline-image {
  max-width: 100%;
  height: auto;
  display: inline-block;
  margin: 6px 4px;
}

.project-image-selected {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

/* NEW clean layout for About section */
.profile-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  grid-template-areas:
    "pfp header"
    "pfp about"
    "pfp actions";
  gap: 18px 26px;
  align-items: start;
  padding: 30px 32px;
}

.pfp-ring {
  grid-area: pfp;
}

.profile-content {
  display: contents;
}

.profile-header {
  grid-area: header;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-about {
  grid-area: about;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 75ch;
  white-space: pre-line;
}

.profile-actions {
  grid-area: actions;
  justify-self: start;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

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

  .profile-actions {
    align-self: stretch;
    align-items: stretch;
  }
}

/* Nombre del owner: rosa y en línea con el @ */
#owner-display-name {
  display: inline;
  margin: 0;
  margin-right: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-soft);
}

/* Username al lado del nombre */
#owner-username {
  display: inline;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* About: bloque largo cómodo */
.profile-about {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 75ch;
  white-space: pre-line;
}

.log-video {
  margin-top: 6px;
  max-width: 100%;
  max-height: 360px;
  border-radius: 8px;
  display: block;
  background: #000;
}

.log-video {
  margin-top: 6px;
  max-width: 100%;
  max-height: 360px;
  border-radius: 8px;
  display: block;
  background: #000;
}

/* ===== Login / Register main row (botón a la izq, iconitos a la der) ===== */

.login-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between; /* <-- login a la izq, iconos a la der */
  gap: 12px;
  margin-top: 8px;
  width: 100%;                    /* ocupa todo el ancho del form */
}

/* Botón principal pegado “a la pared” izquierda */
.login-main-btn {
  flex: 0 0 auto;
  padding-inline: 22px;
  min-width: 110px;
  max-width: 150px;
  white-space: nowrap;
}

/* Contenedor de iconitos pegados a la derecha */
.login-providers {
  margin-left: auto;              /* empuja los iconos a la derecha */
  display: flex;
  gap: 8px;
}

/* Botón cuadradito de provider (solo icono) */
.provider-btn {
  width: 52px;
  height: 34px;
  border-radius: 10px;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft-small);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    opacity var(--transition-fast);
}

.provider-btn::before {
  content: "";
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
}

.provider-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

/* Discord */
.provider-discord {
  background: #5865f2;
}

.provider-discord::before {
  background-image: url("resources/discord-icon.png");
}

/* Google */
.provider-google {
  background: #ffffff;
}

.provider-google::before {
  background-image: url("resources/google-icon.png");
}

.forgot-link button:hover {
  color: var(--accent-soft);
  transform: translateY(-1px);
}

/* ===== Forgot password link ===== */

.forgot-link {
  margin-top: 12px;        /* más espacio, ya no queda pegado */
  text-align: center;      /* centrado como en tu concepto */
}

.forgot-link button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.forgot-link button:hover {
  color: var(--accent-soft);
  transform: translateY(-1px);
}


/* ======= A PARTIR DE ACÁ: SOLO COSAS NUEVAS PARA LOGIN / REGISTER ======= */

/* Header especial SOLO en login / register (JOIN centrado) */
.auth-top-bar {
  max-width: var(--max-width-card);
  margin: 32px auto 12px auto;
  padding: 0 20px;
  justify-content: center;
  position: relative;
}

.auth-top-bar .top-bar-left {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-top-bar .top-bar-actions {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* Chibis decorativos abajo del login/register */
.login-chibi-strip {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -20px;                /* se ve hasta el torso aprox */
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 40px;
  pointer-events: none;
}

.login-chibi {
  height: 700px;
  width: auto;
  object-fit: contain;
  opacity: 0.97;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.9));
}

.login-chibi-left {
  transform: translateX(-8px);
}

.login-chibi-right {
  transform: translateX(8px);
}

@media (max-width: 640px) {
  .login-chibi-strip {
    bottom: -30px;
    padding: 0 20px;
  }

  .login-chibi {
    height: 210px;
  }
}


/* ===== Chatroom entry bubble button ===== */

.chatroom-entry-button {
  position: fixed;
  top: 18px;
  right: 18px;   /* <- ahora está a la derecha */
  z-index: 12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  cursor: pointer;
}


.chatroom-entry-button img {
  display: block;
  width: clamp(56px, 12vw, 88px);
  height: auto;
}

/* En pantallas chicas lo acercamos un poco al borde y lo hacemos un toque más chico */
@media (max-width: 720px) {
  .chatroom-entry-button {
    top: 12px;
    right: 12px;   /* antes decía left */
    padding: 2px;
  }
}

  .chatroom-entry-button img {
    width: clamp(48px, 16vw, 72px);
  }
}

