/* ==========================================================================
   AMIGO SECRETO - ESTILO LUZ PREMIUM
   Design Tokens, Glassmorphism, Micro-interactions & Social Feed Styles
   ========================================================================== */

:root {
  /* Color Palette: Warm, Fresh, Luminous Light Theme */
  --bg-main: #fbfbfe;
  --bg-gradient: radial-gradient(circle at 10% 10%, rgba(254, 240, 248, 0.9) 0%, rgba(240, 249, 255, 0.7) 40%, rgba(245, 243, 255, 0.8) 100%);
  
  --surface: rgba(255, 255, 255, 0.85);
  --surface-card: rgba(255, 255, 255, 0.78);
  --surface-hover: rgba(255, 255, 255, 0.95);
  --surface-solid: #ffffff;
  
  --border-subtle: rgba(226, 232, 240, 0.8);
  --border-glass: rgba(255, 255, 255, 0.9);
  --border-active: rgba(244, 114, 182, 0.4);

  /* Text colors with high contrast and elegance */
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-light: #64748b;

  /* Accent Tones */
  --primary: #f43f5e;           /* Vibrant festive rose */
  --primary-glow: rgba(244, 63, 94, 0.25);
  --primary-light: #fff1f2;
  
  --secondary: #6366f1;         /* Mystery Indigo / Violet */
  --secondary-glow: rgba(99, 102, 241, 0.22);
  --secondary-light: #eef2ff;

  --accent-amber: #f59e0b;      /* Golden gifts */
  --accent-amber-light: #fef3c7;
  --accent-emerald: #10b981;    /* Secret verified hints */
  --accent-emerald-light: #ecfdf5;
  --accent-cyan: #06b6d4;
  --accent-cyan-light: #ecfeff;

  /* Shadows */
  --shadow-sm: 0 2px 8px -2px rgba(99, 102, 241, 0.05), 0 1px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(100, 116, 139, 0.08), 0 8px 16px -6px rgba(100, 116, 139, 0.05);
  --shadow-lg: 0 20px 35px -8px rgba(99, 102, 241, 0.12), 0 10px 20px -6px rgba(244, 63, 94, 0.08);
  --shadow-glow: 0 0 30px rgba(244, 63, 94, 0.15);

  /* Radius & Transitions */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition-smooth: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Background floating glow blobs */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: floatOrb 22s ease-in-out infinite alternate;
}

.ambient-orb-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(254, 205, 211, 0.8) 0%, rgba(253, 164, 175, 0.2) 70%);
  top: -100px;
  left: -80px;
}

.ambient-orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(199, 210, 254, 0.75) 0%, rgba(224, 231, 255, 0.2) 70%);
  top: 30%;
  right: -120px;
  animation-duration: 28s;
  animation-delay: -5s;
}

.ambient-orb-3 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(204, 251, 241, 0.7) 0%, rgba(254, 243, 199, 0.3) 70%);
  bottom: -50px;
  left: 20%;
  animation-duration: 25s;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, 50px) scale(0.96); }
}

/* Container */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem 1.25rem;
}

/* Glassmorphism Classes */
.glass {
  background: var(--surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-md);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  transition: var(--transition-smooth);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #f43f5e, #fb7185, #f59e0b);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  box-shadow: 0 8px 18px -4px var(--primary-glow);
  transform: rotate(-4deg);
  transition: var(--transition-spring);
}

.brand-wrapper:hover .brand-icon {
  transform: rotate(6deg) scale(1.08);
}

.brand-text h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #0f172a 30%, #4338ca 70%, #e11d48 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-text .badge-cloud {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #fdf2f8;
  color: #be185d;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(244, 114, 182, 0.3);
  -webkit-text-fill-color: initial;
}

.brand-tagline {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition-spring);
  text-decoration: none;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 60%, #be123c 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(244, 63, 94, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(244, 63, 94, 0.5);
  background: linear-gradient(135deg, #fb7185 0%, #f43f5e 60%, #e11d48 100%);
}

.btn-secondary {
  background: var(--surface-solid);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--secondary-light);
  color: var(--secondary);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.55rem 0.85rem;
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   HERO BANNER & SEARCH BAR
   ========================================================================== */
.hero-section {
  text-align: center;
  margin-bottom: 2.2rem;
  padding: 1.8rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(254, 242, 242, 0.85), rgba(238, 242, 255, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-sparkle {
  position: absolute;
  font-size: 1.4rem;
  opacity: 0.6;
  user-select: none;
  animation: pulseSparkle 3s ease-in-out infinite;
}

.sparkle-1 { top: 15px; left: 25px; animation-delay: 0.2s; }
.sparkle-2 { bottom: 20px; right: 35px; animation-delay: 1.2s; }
.sparkle-3 { top: 25px; right: 45px; animation-delay: 2.1s; }

@keyframes pulseSparkle {
  0%, 100% { transform: scale(0.9) rotate(0deg); opacity: 0.4; }
  50% { transform: scale(1.2) rotate(15deg); opacity: 0.9; }
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.hero-title span {
  background: linear-gradient(135deg, #e11d48, #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 1.6rem auto;
  font-weight: 500;
}

/* Interactive Search Bar */
.search-container {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--surface-solid);
  border: 2px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.6rem 0.45rem 1.3rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
  transition: var(--transition-smooth);
}

.search-bar:focus-within {
  border-color: var(--secondary);
  box-shadow: 0 12px 30px -4px var(--secondary-glow);
  transform: translateY(-1px);
}

.search-bar svg {
  color: var(--text-muted);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-right: 0.65rem;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--text-primary);
  background: transparent;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  font-size: 1.1rem;
  border-radius: 50%;
  display: none;
}

.search-clear-btn:hover {
  color: var(--text-primary);
}

/* Category Filter Tags */
.filter-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.filter-tab {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-tab:hover {
  background: #ffffff;
  color: var(--text-primary);
  border-color: rgba(99, 102, 241, 0.3);
}

.filter-tab.active {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.filter-count {
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
}

.filter-tab:not(.active) .filter-count {
  background: #f1f5f9;
  color: var(--text-secondary);
}

/* ==========================================================================
   FEED HEADER & STATS
   ========================================================================== */
.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.feed-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.feed-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
}

.feed-meta {
  font-size: 0.85rem;
  color: var(--text-light);
}

.feed-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ==========================================================================
   SOCIAL FEED GRID & CARDS
   ========================================================================== */
.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-subtle);
}

.empty-icon {
  font-size: 3.2rem;
  margin-bottom: 0.75rem;
  display: inline-block;
  animation: bounceSlow 3s ease-in-out infinite;
}

@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.empty-state h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 420px;
  margin: 0 auto 1.3rem auto;
}

/* Character Card (Social Post Style) */
.character-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-spring);
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 25px -5px rgba(100, 116, 139, 0.07);
}

.character-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-active);
}

/* Card Header (Avatar & Persona Banner) */
.card-header {
  padding: 1.25rem 1.25rem 0.9rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 100%);
}

.avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.avatar-img {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  object-fit: cover;
  background: linear-gradient(135deg, #fce7f3, #e0e7ff);
  border: 3px solid #ffffff;
  box-shadow: 0 6px 14px -2px rgba(0, 0, 0, 0.08);
  transition: var(--transition-spring);
}

.character-card:hover .avatar-img {
  transform: scale(1.05) rotate(2deg);
}

.avatar-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #ffffff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.character-info {
  flex: 1;
  min-width: 0;
}

.character-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.character-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.character-handle {
  font-size: 0.78rem;
  color: var(--secondary);
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
}

.character-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(244, 63, 94, 0.2);
}

/* Card Body: Wishlist & Clues */
.card-body {
  padding: 0.2rem 1.25rem 1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* Wishlist Section */
.wishlist-box {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(241, 245, 249, 0.9);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.015);
}

.section-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.wishlist-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.wishlist-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-primary);
  padding: 0.35rem 0.6rem;
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: var(--transition-smooth);
}

.wishlist-item:hover {
  border-color: rgba(244, 63, 94, 0.3);
  transform: translateX(2px);
}

.wishlist-bullet {
  color: var(--accent-amber);
  font-size: 1rem;
}

.wishlist-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mystery Clues Section */
.clues-box {
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.7), rgba(245, 243, 255, 0.8));
  border: 1px dashed rgba(165, 180, 252, 0.6);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

.clue-content {
  font-size: 0.86rem;
  color: #334155;
  font-style: italic;
  line-height: 1.45;
  position: relative;
  padding-left: 0.5rem;
  border-left: 2px solid var(--secondary);
}

/* Card Actions & Social Footer */
.card-footer {
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(241, 245, 249, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.reaction-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.reaction-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  padding: 0.25rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition-spring);
}

.reaction-btn:hover {
  background: #ffffff;
  border-color: var(--border-subtle);
  transform: scale(1.08);
}

.reaction-btn.active {
  background: #fff1f2;
  border-color: rgba(244, 63, 94, 0.3);
  color: var(--primary);
}

.comment-btn {
  background: transparent;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
}

.comment-btn:hover {
  background: var(--secondary-light);
}

/* ==========================================================================
   MODAL / POPUP (New Character & Clues/Comments)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease-out;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--surface-solid);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transform: scale(0.95) translateY(10px);
  transition: var(--transition-spring);
}

.modal-backdrop.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 1.3rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2;
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close {
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background: #f1f5f9;
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Form Controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label .label-tip {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-light);
}

.form-input, .form-textarea {
  font-family: inherit;
  font-size: 0.92rem;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  background: #fafafa;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus, .form-textarea:focus {
  background: #ffffff;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px var(--secondary-glow);
}

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

/* Avatar Creator & Suggestion Box */
.avatar-creator-box {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.avatar-preview-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.creator-avatar-preview {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  object-fit: cover;
  background: #ffffff;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 18px -3px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.avatar-suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.avatar-chip {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.avatar-chip:hover {
  background: var(--secondary-light);
  color: var(--secondary);
  border-color: rgba(99, 102, 241, 0.3);
}

/* Dynamic Wishlist Builder in Form */
.wishlist-builder {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wishlist-input-row {
  display: flex;
  gap: 0.5rem;
}

.wishlist-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.wish-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.wish-tag-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.wish-tag-remove:hover {
  color: var(--primary);
}

.modal-footer {
  padding: 1.1rem 1.6rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: #fafafa;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

/* ==========================================================================
   COMMENTS & SECRET HINTS MODAL
   ========================================================================== */
.comments-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 0.4rem;
}

.comment-card {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.comment-card.is-clue {
  background: linear-gradient(135deg, #fdf2f8, #f5f3ff);
  border-color: rgba(244, 114, 182, 0.3);
}

.comment-card.is-queja {
  background: linear-gradient(135deg, #fffbeb, #fef2f2);
  border-color: rgba(245, 158, 11, 0.4);
  border-left: 3px solid #f59e0b;
}

.comment-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
}

.comment-author-name {
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

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

.comment-text {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 2000;
  pointer-events: none;
}

.toast {
  background: #0f172a;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideInUp 0.35s var(--transition-spring);
  pointer-events: auto;
}

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

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .app-container {
    padding: 1rem 0.8rem 3rem 0.8rem;
  }
  
  .site-header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 1.1rem;
  }

  .brand-wrapper {
    justify-content: center;
  }

  .header-actions {
    justify-content: center;
  }

  .hero-title {
    font-size: 1.65rem;
  }

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

  .avatar-preview-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
