@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@400;500;700&display=swap');

:root {
  --primary: #ff4500;
  --primary-hover: #e63e00;
  --primary-light: #fff2ec;
  --danger: #ef4444;
  --success: #10b981;
  --bg-main: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
  --premium: #ff4500;
  --premium-dark: #e63e00;
}

/* ═══════════════════════════════════════
   INSTAGRAM-STYLE PROFILE LAYOUT
═══════════════════════════════════════ */

.ig-profile-header {
  background: #fff;
  padding: 14px 16px 12px;
  margin-bottom: 0;
  border-bottom: 1px solid #efefef;
}

/* Top row: avatar LEFT, stats RIGHT */
.ig-top-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
}

/* Avatar */
.ig-avatar-wrap {
  flex-shrink: 0;
}

.ig-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #fafafa;
  padding: 3px;
  box-shadow: 0 0 0 2px var(--primary), 0 0 0 4px #fff;
  position: relative;
}

.ig-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.ig-avatar .avatar-edit-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid white;
  font-size: 11px;
  z-index: 10;
  transition: transform 0.2s;
}

.ig-avatar .avatar-edit-badge:hover {
  transform: scale(1.1);
}

/* Stats */
.ig-stats-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ig-stats {
  display: flex;
  gap: 0;
  align-items: flex-start;
  justify-content: space-around;
  width: 100%;
}

.ig-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: default;
}

.ig-stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.ig-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}

/* Action buttons (friend + message) */
.ig-action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ig-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 8px;
  border: 1px solid #dbdbdb;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
  min-width: 100px;
  background: #fafafa;
  color: var(--text-main);
}

.ig-btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.ig-btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.ig-btn-secondary {
  background: #efefef;
  color: var(--text-main);
  border-color: #efefef;
}

.ig-btn-secondary:hover:not(:disabled) {
  background: #e0e0e0;
}

.ig-btn-success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

.ig-btn-danger {
  background: #fee2e2;
  color: var(--danger);
  border-color: #fca5a5;
}

.ig-btn:disabled { opacity: 0.6; cursor: default; }

/* Bio section */
.ig-bio-section {
  padding: 0 2px;
}

.ig-username {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ig-bio-container {
  margin-bottom: 6px;
}

.ig-bio {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.5;
  cursor: pointer;
}

.ig-bio.empty {
  color: var(--text-muted);
  font-style: italic;
}

.ig-bio-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1px;
  font-weight: 500;
}

.ig-bio-state {
  color: var(--primary);
  font-weight: 600;
}

.ig-stat-karma {
  color: var(--primary) !important;
}

/* Karma & Maldad */
.ig-extra-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

/* Malice progress bar */
.malice-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Contenedor externo de la barra — posición relativa para el overlay */
.malice-track-outer {
  position: relative;
  width: 100%;
  height: 44px;
  background: #f1f5f9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.06);
}

/* La barra de relleno animada */
.malice-fill {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 14px;
  background: linear-gradient(90deg, #10b981 0%, #eab308 40%, #f97316 70%, #ef4444 100%);
  background-size: 500% 100%;
  background-position: left center;
  transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Overlay de texto encima de la barra */
.malice-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
}

.malice-label-inner {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.01em;
  mix-blend-mode: multiply; /* se adapta al color de fondo */
}

.malice-pct-inner {
  font-size: 0.88rem;
  font-weight: 800;
  color: #334155;
  font-family: 'Outfit', sans-serif;
}

/* Cuando la barra tiene mucho relleno, el texto se vuelve blanco */
.malice-track-outer.dark-text .malice-label-inner,
.malice-track-outer.dark-text .malice-pct-inner {
  color: #fff;
  mix-blend-mode: normal;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

/* Tabs: IG style (icon only, border-top on active) */
.tabs-container {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  background: #fff;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  border-top: 1px solid #efefef;
  border-bottom: 1px solid #efefef;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.profile-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 8px;
  border-top: 2px solid transparent;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.profile-tab:hover {
  color: var(--text-main);
  background: #fafafa;
}

.profile-tab.active {
  border-top-color: var(--text-main);
  color: var(--text-main);
  background: transparent;
  box-shadow: none;
}

/* Photo grid: IG 3-column square grid */
.photos-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  animation: fadeIn 0.4s ease-out;
}

.photo-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  background: #f1f5f9;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.photo-item:hover img {
  transform: scale(1.05);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.2s;
  color: white;
}

.photo-item:hover .photo-overlay {
  opacity: 1;
}

.photo-stat {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Rumors grid: IG-style list */
.rumors-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #efefef;
}

.rumor-item {
  background: white;
  padding: 16px 20px;
  box-shadow: none;
  border-radius: 0;
  border: none;
  transition: background 0.15s;
  cursor: pointer;
}

.rumor-item:hover {
  background: #fafafa;
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

/* Responsive */
@media (max-width: 600px) {
  .ig-stats { gap: 16px; }
  .ig-top-row { gap: 20px; }
  .ig-avatar { width: 76px; height: 76px; }
}

/* Success Premium Modal */
.success-premium-modal {
    max-width: 440px !important;
    padding: 0 !important;
    overflow: hidden;
    border: none !important;
    box-shadow: 0 30px 60px -12px rgba(255, 69, 0, 0.25) !important;
}

.success-premium-header {
    background: linear-gradient(135deg, #ff4500 0%, #ff8717 100%);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.success-premium-crown {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ff4500;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: rotate(-10deg);
}

.success-premium-body {
    padding: 32px;
    text-align: center;
}

.success-perks-list {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.perk-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #475569;
}

.perk-item i {
    color: #10b981;
    font-size: 1.1rem;
}


.premium-promo-card {
  background: white;
  border: 1px solid #f1f5f9;
  padding: 10px 20px;
  border-radius: 99px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-promo-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 25px rgba(255, 69, 0, 0.1);
  border-color: #ffccbc;
}

.premium-promo-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.premium-promo-content h3 {
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  white-space: nowrap;
}

.premium-promo-content p {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0;
  border-left: 1px solid #e2e8f0;
  padding-left: 12px;
}

.premium-buy-btn {
  background: var(--text-main);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: 'Outfit', sans-serif;
}

.premium-buy-btn:hover {
  background: var(--premium);
  box-shadow: 0 4px 10px rgba(255, 69, 0, 0.2);
}

.premium-price-tag {
  color: var(--premium);
  font-weight: 800;
}

.premium-old-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-right: 4px;
  opacity: 0.7;
}

@media (max-width: 650px) {
  .premium-promo-card {
    padding: 12px 16px;
    border-radius: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .premium-promo-content {
    flex-direction: column;
    gap: 4px;
    align-items: center;
    text-align: center;
    width: 100%;
  }
  
  .premium-promo-content p {
    border-left: none;
    padding-left: 0;
    line-height: 1.2;
  }
  
  .premium-buy-btn {
    width: 100%;
    margin-top: 8px;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #fff;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, .logo-text {
  font-family: 'Outfit', sans-serif;
}

/* ── App Header (mismo diseño que forums y feed) ── */
.app-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.04);
}

.app-header .header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.app-header .header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
}

.header-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  border-left: 1px solid rgba(226, 232, 240, 0.8);
}

.header-title-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  background: linear-gradient(135deg, #ff4500, #ff8717);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
}

.back-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateX(-4px);
}

.header-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s;
}

.header-icon-btn:hover {
  background: #fee2e2;
  color: var(--danger);
}

/* Header legacy (keeping for backward compat) */
.profile-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 0;
}

.header-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.logout-btn {
  background: white;
  border: 1px solid #fee2e2;
  color: var(--danger);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.logout-btn:hover {
  background: #fef2f2;
}


/* Perfil Wall / Muro */
.wall-container {
  padding: 20px 0;
  max-width: 800px;
  margin: 0 auto;
}

.wall-input-card {
  background: white;
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid rgba(0,0,0,0.03);
}

.wall-input-card textarea {
  width: 100%;
  padding: 16px;
  border: 2px solid #f1f5f9;
  border-radius: 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-main);
  resize: none;
  min-height: 100px;
  outline: none;
  transition: border-color 0.2s;
}

.wall-input-card textarea:focus {
  border-color: var(--primary);
}

.wall-comment-item {
  background: white;
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  position: relative;
  transition: transform 0.2s;
}

.wall-comment-item:hover {
  transform: translateY(-2px);
}

.comment-author-info {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.comment-author-info img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary-light);
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-main);
}

.comment-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.comment-body {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.6;
  word-wrap: break-word;
}

.delete-wall-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #e2e8f0;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s;
}

.delete-wall-btn:hover {
  color: var(--danger);
  background: #fef2f2;
}

.login-msg-wall {
  text-align: center;
  padding: 24px;
  background: #f1f5f9;
  border-radius: 16px;
  color: var(--text-muted);
  font-weight: 600;
  border: 1px dashed #cbd5e1;
}

.login-msg-wall strong:hover {
  text-decoration: underline;
  filter: brightness(0.9);
}

/* Main Layout */
.profile-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 0 80px;
  background: #fff;
}

/* Hero Section */
.hero-wrapper {
  position: relative;
  margin-bottom: 24px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: var(--primary-gradient, linear-gradient(135deg, #ff4500 0%, #ff8717 100%));
  border-radius: 32px;
  overflow: hidden;
  z-index: -1;
}

.hero-background::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

.hero-card {
  background: white;
  border-radius: 28px;
  padding: 0 30px 40px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 80px;
}

.profile-avatar-wrapper {
  margin-top: -60px;
  margin-bottom: 24px;
  position: relative;
}

.profile-avatar-large {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: white;
  padding: 6px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  position: relative;
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary-light);
}

.avatar-edit-badge {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 4px solid white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.2s;
  z-index: 10;
}

.avatar-edit-badge:hover {
  transform: scale(1.1);
  background: var(--primary-hover);
}

.avatar-edit-badge i {
  font-size: 14px;
}
/* Cropper Modal Fixes */
.cropper-container {
    border-radius: 12px;
    background-color: #f8fafc;
}

/* Forzar previsualización circular para avatar */
.cropper-view-box,
.cropper-face {
    border-radius: 50%;
}

.profile-username {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-main);
  margin-bottom: 8px;
}

.profile-bio-container {
  width: 100%;
  max-width: 500px; /* Mantener coherencia con otros bloques centrados como stats */
  margin: 0 auto 24px auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-bio {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.6;
  padding: 12px 20px;
  border-radius: 16px;
  transition: all 0.2s;
  cursor: pointer;
  text-align: center;
  background: #f8fafc;
}

.profile-bio.empty {
  font-style: italic;
  opacity: 0.6;
}

.profile-bio:not(.public):hover {
  background: var(--primary-light);
  color: var(--primary);
}

.profile-bio-input {
  width: 100%;
  padding: 16px;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-main);
  background: white;
  resize: none;
  height: 100px;
  outline: none;
  transition: all 0.2s;
}

.profile-bio-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.auth-select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 2px solid #f1f5f9;
  background-color: #f8fafc;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  color: #1e293b;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.auth-select:hover {
  background-color: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transform: translateY(-1px);
}

.auth-select:focus {
  outline: none;
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-light), 0 4px 12px rgba(0,0,0,0.05);
}

/* Mismo estilo que auth-select pero para inputs de texto/número */
.auth-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 2px solid #f1f5f9;
  background-color: #f8fafc;
  font-size: 16px;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  color: #1e293b;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.auth-input:hover {
  background-color: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transform: translateY(-1px);
}

.auth-input:focus {
  border-color: var(--primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-light), 0 4px 12px rgba(0,0,0,0.05);
  transform: translateY(-1px);
}

/* Botón de editar perfil */
.edit-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  background: #f1f5f9;
  color: #1e293b;
  border: 1.5px solid #e2e8f0;
  border-radius: 99px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.edit-profile-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(255,69,0,0.25);
  transform: translateY(-1px);
}

.edit-profile-btn i {
  font-size: 0.85rem;
}

.profile-edit-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    width: 100%;
    text-align: left;
}

.profile-edit-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 4px;
}

.save-bio-btn {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.2);
}

.save-bio-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 69, 0, 0.3);
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 600px;
}

.stat-item {
  flex: 1;
  background: var(--bg-main);
  padding: 16px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #f1f5f9;
  transition: transform 0.2s;
}

.stat-item:hover {
  transform: translateY(-2px);
  border-color: #e2e8f0;
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Friend Button */
.friend-btn-container {
  margin-bottom: 24px;
  width: 100%;
}

.social-actions-card {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.friend-btn, .message-btn {
  padding: 8px 20px;
  border-radius: 99px;
  border: none;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  width: auto;
  flex: 1;
  min-width: 140px;
}

.message-btn {
  background: white;
  color: #1e293b;
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.message-btn:hover {
  background: #f8fafc;
  border-color: var(--primary);
  color: var(--primary);
}

.friend-btn.none {
  background: linear-gradient(135deg, var(--primary) 0%, #ff8717 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
}

.friend-btn.pending {
  background: white;
  color: var(--text-muted);
  border: 2px solid #e2e8f0;
  cursor: default;
}

.friend-btn.incoming {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(1); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
  50% { transform: scale(1.02); box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5); }
  100% { transform: scale(1); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
}

.friend-btn.accepted {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #dcfce7;
}

.friend-btn.accepted:hover {
  background: #fef2f2;
  color: #ef4444;
  border-color: #fee2e2;
}


.friend-btn:hover:not(:disabled) {
  transform: translateY(-4px);
  filter: brightness(1.1);
}

/* Rumors Section */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.rumors-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rumor-item {
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.rumor-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary-light);
}

.rumor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.rumor-source {
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rumor-time i {
  color: var(--primary);
  opacity: 0.7;
}

.rumor-description {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 20px;
}

.rumor-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rumor-meta {
  display: flex;
  gap: 16px;
}

.meta-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.meta-pill i {
  font-size: 1rem;
}

.meta-pill.likes i { color: #f43f5e; }
.meta-pill.comments i { color: #3b82f6; }
.meta-pill.views i { color: var(--primary); }

.view-map-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: auto;
}

.rumor-card-image {
  width: calc(100% + 48px);
  margin: 0 -24px 20px -24px;
  max-height: 520px;
  overflow: hidden;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.rumor-card-image img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

/* Photos Grid */
.photos-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  animation: fadeIn 0.5s ease-out;
}

.photo-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #f1f5f9;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.photo-item:hover {
  transform: scale(1.02);
  z-index: 2;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.photo-item:hover img {
  transform: scale(1.1);
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  opacity: 0;
  transition: opacity 0.3s;
  color: white;
}

.photo-item:hover .photo-overlay {
  opacity: 1;
}

.photo-stat {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.photo-stat i {
  font-size: 1rem;
}

@media (max-width: 600px) {
  .photos-grid-wrapper {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
  }
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  background: white;
  border-radius: 28px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--card-shadow);
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 24px;
}

.empty-state h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.empty-state p {
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto 24px;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

/* Loading State */
.loading-state {
  grid-column: 1 / -1;
  padding: 100px 0;
  text-align: center;
  color: var(--text-muted);
}

.loading-state i {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary);
}


/* Tabs */
.tabs-container {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
  background: white;
  padding: 6px;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.profile-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 16px;
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  white-space: nowrap;
}

.profile-tab i {
  font-size: 1.1rem;
}

.profile-tab:hover {
  background: var(--bg-main);
  color: var(--text-main);
}

.profile-tab.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.2);
}

/* Comments Grid */
.comments-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-item {
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.comment-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary-light);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.comment-time i {
  color: var(--primary);
  opacity: 0.7;
}

/* Profile Map */
.profile-map-card {
  background: white;
  border-radius: 24px;
  padding: 10px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0,0,0,0.03);
  overflow: hidden;
}

#profile-map {
  background-color: #f1f5f9;
}

/* Marcadores estándar usados en el perfil para coincidir con el feed */

.rumors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

@media (max-width: 650px) {
  .rumors-grid {
    grid-template-columns: 1fr;
  }
}

/* Friends Grid */
.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  animation: fadeIn 0.5s ease-out;
}

.friend-card {
  perspective: 1000px;
  cursor: pointer;
}

.friend-card-inner {
  background: white;
  border-radius: 24px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid #f1f5f9;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.friend-card:hover .friend-card-inner {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-light);
}

.friend-card:hover .friend-card-inner::before {
  left: 100%;
}

.friend-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s ease;
  z-index: 1;
}

.friend-avatar-wrapper {
  position: relative;
  width: 64px !important;
  height: 64px !important;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.friend-avatar-wrapper img {
  width: 64px !important;
  height: 64px !important;
  border-radius: 18px;
  object-fit: cover;
  background: var(--primary-light);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.avatar-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid var(--primary-light);
  border-radius: 24px;
  opacity: 0.5;
  transition: all 0.3s;
}

.friend-card:hover .avatar-ring {
  border-color: var(--primary);
  transform: scale(1.05);
  opacity: 1;
}

.friend-card:hover .friend-avatar-wrapper img {
  transform: scale(1.1) rotate(-5deg);
}

.friend-info-main {
  flex: 1;
}

.friend-name-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: #1e293b;
  font-size: 1.15rem;
  margin-bottom: 2px;
  letter-spacing: -0.3px;
}

.friend-status-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  background: #f1f5f9;
  padding: 2px 10px;
  border-radius: 100px;
  display: inline-block;
  transition: all 0.3s;
}

.friend-card:hover .friend-status-label {
  background: var(--primary-light);
  color: var(--primary);
}

.friend-arrow {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.friend-card:hover .friend-arrow {
  background: var(--primary);
  color: white;
  transform: translateX(4px);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.comment-text {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 12px;
}

.comment-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.comment-source {
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.friends-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 30px 0 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.friends-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #f1f5f9;
}

.pending-requests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.pending-card {
  border: 2px solid var(--primary-light);
  background: linear-gradient(to right, white, #f8fafc);
}

.accept-friend-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
}

.accept-friend-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

/* Notifications */
.notifications-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 20px;
  position: relative;
  z-index: 10;
}

.notification-card {
  background: white;
  border-radius: 20px;
  border: 1px solid #f1f5f9;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.notification-header {
  padding: 12px 20px;
  background: #f8fafc;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #f1f5f9;
}

.notification-list {
  padding: 0;
}

.notification-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  gap: 16px;
}

.notification-item:last-child {
  border-bottom: none;
}

.item-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  flex: 1;
}

.item-user span {
  line-height: 1.2;
}

.item-user img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
}

.accept-btn-mini {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-size: 0.85rem;
}

.accept-btn-mini:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

.decline-btn-mini {
  background: #f1f5f9;
  color: var(--text-muted);
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
}

.decline-btn-mini:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

@media (max-width: 768px) {
  .notifications-container {
      margin-top: 20px;
  }
}
@media (max-width: 768px) {
  .profile-main {
    margin: 0 auto 20px;
    padding: 0 0 60px;
  }

  .hero-background {
    height: 140px;
    border-radius: 20px;
  }

  .hero-card {
    padding: 0 20px 30px;
    margin-top: 60px;
    border-radius: 20px;
  }

  .profile-avatar-wrapper {
    margin-top: -50px;
    margin-bottom: 12px;
  }

  .profile-avatar-large {
    width: 100px;
    height: 100px;
    padding: 4px;
  }

  .profile-username {
    font-size: 1.75rem;
    margin-bottom: 4px;
  }

  .profile-bio {
    font-size: 0.95rem;
    padding: 10px 16px;
  }

  .profile-stats {
    gap: 12px;
  }

  .stat-item {
    padding: 12px 8px;
    border-radius: 16px;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .tabs-container {
    gap: 4px;
    padding: 4px;
    border-radius: 16px;
    margin-bottom: 20px;
  }

  .profile-tab {
    padding: 10px 4px;
    font-size: 0.75rem;
    gap: 4px;
    flex-direction: column;
  }

  .profile-tab i {
    font-size: 1rem;
  }

  .rumors-grid, .friends-grid, .comments-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .rumor-item, .comment-item, .friend-card-inner {
    padding: 16px;
    border-radius: 16px;
  }

  .rumor-description, .comment-text {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 16px;
  }

  .header-title {
    display: none;
  }
  
  .hero-background {
    height: 100px;
  }

  .hero-card {
    margin-top: 50px;
    padding-bottom: 20px;
  }

  .profile-avatar-wrapper {
    margin-top: -40px;
    margin-bottom: 8px;
  }

  .profile-avatar-large {
    width: 85px;
    height: 85px;
  }

  .profile-username {
    font-size: 1.5rem;
  }

  .profile-stats {
    gap: 8px;
  }

  .stat-item {
    padding: 8px 4px;
  }

  .stat-value {
    font-size: 1.1rem;
  }

  .profile-tab {
    font-size: 0.65rem;
    padding: 8px 2px;
  }

  .friend-btn {
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  .wall-input-card, .wall-comment-item {
    padding: 16px;
    border-radius: 20px;
  }

  .notification-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .item-actions {
    width: 100%;
    display: flex;
    gap: 10px;
  }

  .accept-btn-mini, .decline-btn-mini {
    flex: 1;
    text-align: center;
  }
}

/* Auth Overlay Styles for Profile Page */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-modal {
  background: white;
  width: 100%;
  max-width: 400px;
  border-radius: 28px;
  padding: 40px 30px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
}

.auth-modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text-main);
}

.auth-modal-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 30px;
}

.auth-form-group {
  margin-bottom: 16px;
}

.auth-form-group input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 16px;
  border: 2px solid #f1f5f9;
  font-family: inherit;
  font-size: 1rem; /* Previene el zoom automático en móviles si es < 16px */
  transition: all 0.2s;
  background: #f8fafc;
}

.auth-form-group input:focus {
  border-color: var(--primary);
  outline: none;
  background: white;
  box-shadow: 0 0 0 4px var(--primary-light);
}

.auth-primary-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s;
}

.auth-primary-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.auth-avatar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 20px;
  max-height: 160px;
  overflow-y: auto;
  padding: 5px;
  background: #f8fafc;
  border-radius: 16px;
}

.avatar-option {
  cursor: pointer;
  border-radius: 50%;
  border: 3px solid transparent;
  transition: all 0.2s;
  padding: 2px;
}

.avatar-option.selected {
  border-color: var(--primary);
  background: white;
}

.avatar-option img {
  width: 100%;
  border-radius: 50%;
  display: block;
}

.auth-switch-text {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-switch-text a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 480px) {
  .auth-overlay {
    padding: 0;
  }

  .auth-modal {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    padding: 40px 24px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .auth-modal-title {
    font-size: 28px;
  }
  
  .auth-avatar-grid {
    grid-template-columns: repeat(4, 1fr);
    max-height: 240px;
  }
}

.delete-friend-btn {
  background: #f8fafc;
  color: #94a3b8;
  border: 1px solid #e2e8f0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.delete-friend-btn:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
  transform: scale(1.1);
}

/* Estilos para modales pequeños que no deben ser pantalla completa en móvil */
@media (max-width: 480px) {
  .auth-overlay.is-mini {
    padding: 20px !important;
    background: rgba(15, 23, 42, 0.6) !important;
  }
  
  .auth-overlay.is-mini .auth-modal {
    width: 100% !important;
    height: auto !important;
    max-width: 400px !important;
    max-height: none !important;
    border-radius: 28px !important;
    padding: 30px 24px !important;
    display: block !important;
  }
}

/* Wall Mention Styles */
.wall-comment-item.is-mention {
    transition: transform 0.2s, background 0.2s;
    border: 1px solid #f1f5f9;
}

.wall-comment-item.is-mention:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

/* Premium promo chip — discreto, solo redirige a premium.html */
.premium-promo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px auto 16px;
  padding: 5px 14px;
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 99px;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.premium-promo-chip i {
  color: #f59e0b;
  font-size: 0.7rem;
}

.premium-promo-chip:hover {
  background: rgba(245, 158, 11, 0.13);
  border-color: rgba(245, 158, 11, 0.45);
}
