/* ===================================
   Bio Generator con IA - InstaBooster 2025
   Diseno Premium DEFINITIVO
   Colores Corporativos Rosa/Magenta
   =================================== */

:root {
  /* Colores Corporativos - EXACTOS del index de tools */
  --primary: #e61c72;
  --primary-dark: #c41861;
  --primary-light: #ff4d94;
  --primary-gradient: linear-gradient(135deg, #e61c72 0%, #ff4d94 100%);

  /* Gradientes Especiales */
  --gradient-hero: linear-gradient(135deg, #e61c72 0%, #ff4d94 50%, #9c27b0 100%);
  --gradient-ai: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);

  /* Colores Secundarios */
  --purple: #9c27b0;
  --purple-light: #ba68c8;
  --blue: #667eea;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Textos */
  --text-dark: #1a1a2e;
  --text-primary: #2c3e50;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-light: #a0aec0;

  /* Fondos */
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-soft: #f1f5f9;
  --bg-pink-soft: rgba(230, 28, 114, 0.03);
  --bg-pink-medium: rgba(230, 28, 114, 0.08);

  /* Bordes */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-pink: rgba(230, 28, 114, 0.2);

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
  --shadow-pink: 0 8px 30px rgba(230, 28, 114, 0.2);
  --shadow-pink-lg: 0 15px 40px rgba(230, 28, 114, 0.3);
  --shadow-glow: 0 0 40px rgba(230, 28, 114, 0.15);

  /* Radios */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Transiciones */
  --transition-fast: all 0.2s ease;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset y Base */
* {
  box-sizing: border-box;
}

.bio-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bio-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================
   HERO SECTION - Espectacular
   =================================== */
.bio-hero {
  position: relative;
  padding: 120px 0 100px;
  background: var(--gradient-hero);
  color: white;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Patron de fondo */
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 30%);
  animation: patternMove 30s ease-in-out infinite;
}

@keyframes patternMove {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.05) translateY(-10px); }
}

/* Formas Flotantes Animadas */
.floating-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.shape-1 {
  width: 400px;
  height: 400px;
  top: -150px;
  left: -100px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  animation: floatShape1 20s ease-in-out infinite;
}

.shape-2 {
  width: 300px;
  height: 300px;
  bottom: -100px;
  right: 5%;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 255, 255, 0.05));
  animation: floatShape2 25s ease-in-out infinite;
}

.shape-3 {
  width: 200px;
  height: 200px;
  top: 30%;
  right: -50px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(255, 255, 255, 0.05));
  animation: floatShape3 18s ease-in-out infinite;
}

@keyframes floatShape1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(30px, 20px) rotate(5deg) scale(1.05); }
  50% { transform: translate(20px, -20px) rotate(-5deg) scale(1); }
  75% { transform: translate(-20px, 10px) rotate(3deg) scale(1.02); }
}

@keyframes floatShape2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-40px, -30px) rotate(-8deg); }
  66% { transform: translate(30px, -20px) rotate(5deg); }
}

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

/* Contenido Hero */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

/* ===================================
   HERO BADGE - Diseño Premium
   =================================== */
.hero-badge-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
  animation: fadeInDown 0.6s ease-out;
}

.hero-badge {
  position: relative;
  display: inline-flex;
}

.badge-glow {
  position: absolute;
  inset: -3px;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.4),
    rgba(255, 215, 0, 0.6),
    rgba(255, 255, 255, 0.4)
  );
  border-radius: var(--radius-full);
  filter: blur(8px);
  opacity: 0.6;
  animation: glowRotate 3s linear infinite;
}

@keyframes glowRotate {
  0% {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.4), rgba(255, 215, 0, 0.6), rgba(255, 255, 255, 0.4));
  }
  25% {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 215, 0, 0.6), rgba(255, 255, 255, 0.4));
  }
  50% {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 215, 0, 0.6), rgba(255, 255, 255, 0.4));
  }
  75% {
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.4), rgba(255, 215, 0, 0.6), rgba(255, 255, 255, 0.4));
  }
  100% {
    background: linear-gradient(360deg, rgba(255, 255, 255, 0.4), rgba(255, 215, 0, 0.6), rgba(255, 255, 255, 0.4));
  }
}

.badge-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 14px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #ffd700 0%, #ffb800 100%);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.badge-icon svg {
  color: #1a1a2e;
  stroke: #1a1a2e;
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.badge-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
  animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 16px rgba(74, 222, 128, 0.8);
  }
}

/* Responsive Badge */
@media (max-width: 480px) {
  .badge-content {
    padding: 8px 16px 8px 10px;
    gap: 8px;
  }

  .badge-icon {
    width: 24px;
    height: 24px;
  }

  .badge-icon svg {
    width: 12px;
    height: 12px;
  }

  .badge-text {
    font-size: 11px;
  }

  .badge-dot {
    width: 6px;
    height: 6px;
  }
}

/* Titulo Hero */
.hero-title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 20px 0;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Subtitulo */
.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
  opacity: 0.95;
  margin: 0;
  font-weight: 400;
  max-width: 650px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Animaciones de entrada */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ===================================
   GENERATOR SECTION
   =================================== */
.generator-section {
  padding: 80px 0 100px;
  position: relative;
  margin-top: -50px;
  z-index: 20;
}

.generator-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 36px;
  align-items: start;
}

/* ===================================
   GENERATOR CARD - Principal
   =================================== */
.generator-card {
  background: var(--bg-white);
  border-radius: var(--radius-2xl);
  padding: 48px;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  transition: var(--transition);
  border: 1px solid rgba(230, 28, 114, 0.08);
  animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.generator-card:hover {
  box-shadow: var(--shadow-xl), 0 0 60px rgba(230, 28, 114, 0.12);
}

/* Header del Generador */
.generator-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--bg-soft);
}

.header-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: var(--shadow-pink);
  position: relative;
  overflow: hidden;
}

.header-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.3) 50%, transparent 60%);
  animation: iconShine 3s ease-in-out infinite;
}

@keyframes iconShine {
  0%, 100% { transform: translateX(-100%) rotate(45deg); }
  50% { transform: translateX(100%) rotate(45deg); }
}

.header-text h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.header-text p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
}

/* ===================================
   FORM SECTIONS
   =================================== */
.form-section {
  margin-bottom: 32px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-label svg {
  color: var(--primary);
  transition: var(--transition);
}

/* ===================================
   PLATFORM TABS - Instagram/TikTok
   =================================== */
.platform-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.platform-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 20px;
  background: var(--bg-soft);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition-bounce);
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.platform-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary-gradient);
  opacity: 0;
  transition: var(--transition);
}

.platform-tab svg {
  position: relative;
  z-index: 1;
  transition: var(--transition);
  color: var(--text-muted);
}

.platform-tab span {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
}

.platform-tab small {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
}

.platform-tab:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
  background: var(--bg-pink-soft);
}

.platform-tab.active {
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: var(--shadow-pink);
}

.platform-tab.active::before {
  opacity: 0.05;
}

.platform-tab.active svg {
  color: var(--primary);
  transform: scale(1.1);
}

.platform-tab.active span {
  color: var(--primary);
}

.platform-tab.active small {
  color: var(--primary-dark);
}

/* ===================================
   NICHE GRID - Selector Visual de Nicho
   =================================== */
.niche-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.niche-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  background: var(--bg-soft);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-bounce);
  font-family: inherit;
  min-height: 80px;
}

.niche-emoji {
  font-size: 24px;
  transition: var(--transition);
  line-height: 1;
}

.niche-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: var(--transition);
  text-align: center;
  line-height: 1.2;
}

.niche-btn:hover {
  transform: translateY(-3px);
  background: var(--bg-pink-soft);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.niche-btn:hover .niche-emoji {
  transform: scale(1.2);
}

.niche-btn.active {
  background: linear-gradient(135deg, var(--bg-pink-soft), rgba(156, 39, 176, 0.08));
  border-color: var(--primary);
  box-shadow: var(--shadow-pink);
}

.niche-btn.active .niche-emoji {
  transform: scale(1.1);
  animation: nichePulse 2s ease-in-out infinite;
}

.niche-btn.active .niche-name {
  color: var(--primary);
}

@keyframes nichePulse {
  0%, 100% { transform: scale(1.1); }
  50% { transform: scale(1.2); }
}

/* Responsive Niche Grid */
@media (max-width: 768px) {
  .niche-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .niche-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .niche-btn {
    padding: 10px 6px;
    min-height: 70px;
  }

  .niche-emoji {
    font-size: 20px;
  }

  .niche-name {
    font-size: 9px;
  }
}

/* ===================================
   RADIO CARDS - Tipo de cuenta
   =================================== */
.radio-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.radio-card {
  position: relative;
  cursor: pointer;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 14px;
  background: var(--bg-soft);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  transition: var(--transition-bounce);
}

.radio-card-content svg {
  color: var(--text-muted);
  transition: var(--transition);
}

.radio-card-content span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}

.radio-card:hover .radio-card-content {
  transform: translateY(-3px);
  background: var(--bg-pink-soft);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.radio-card.active .radio-card-content,
.radio-card input:checked + .radio-card-content {
  background: linear-gradient(135deg, var(--bg-pink-soft), rgba(156, 39, 176, 0.05));
  border-color: var(--primary);
  box-shadow: var(--shadow-pink);
}

.radio-card.active .radio-card-content svg,
.radio-card input:checked + .radio-card-content svg {
  color: var(--primary);
  transform: scale(1.15);
}

.radio-card.active .radio-card-content span,
.radio-card input:checked + .radio-card-content span {
  color: var(--primary);
  font-weight: 700;
}

/* ===================================
   STYLE GRID - Estilos de Bio
   =================================== */
.style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.style-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  background: var(--bg-soft);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-bounce);
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.style-emoji {
  font-size: 28px;
  transition: var(--transition);
}

.style-btn span:not(.style-emoji) {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

.style-btn:hover {
  transform: translateY(-4px) scale(1.02);
  background: var(--bg-pink-soft);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.style-btn:hover .style-emoji {
  transform: scale(1.2) rotate(5deg);
}

.style-btn.active {
  background: linear-gradient(135deg, var(--bg-pink-soft), rgba(156, 39, 176, 0.06));
  border-color: var(--primary);
  box-shadow: var(--shadow-pink);
}

.style-btn.active .style-emoji {
  transform: scale(1.15);
  animation: emojiPulse 2s ease-in-out infinite;
}

.style-btn.active span:not(.style-emoji) {
  color: var(--primary);
}

@keyframes emojiPulse {
  0%, 100% { transform: scale(1.15); }
  50% { transform: scale(1.25); }
}

/* ===================================
   TEXT INPUT - Keywords
   =================================== */
.text-input {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-primary);
  transition: var(--transition);
  background: var(--bg-white);
}

.text-input:hover {
  border-color: var(--border-medium);
}

.text-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--bg-pink-medium);
}

.text-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.input-hint {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  padding-left: 2px;
}

/* ===================================
   CHECKBOX OPTIONS
   =================================== */
.options-section {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
  transition: var(--transition);
}

.checkbox-label:hover {
  color: var(--primary);
}

.checkbox-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-custom {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  flex-shrink: 0;
  background: var(--bg-white);
}

.checkbox-label:hover .checkbox-custom {
  border-color: var(--primary-light);
}

.checkbox-label input:checked + .checkbox-custom {
  background: var(--primary-gradient);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(230, 28, 114, 0.3);
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  animation: checkmark 0.2s ease-out;
}

@keyframes checkmark {
  from {
    opacity: 0;
    transform: rotate(45deg) scale(0);
  }
  to {
    opacity: 1;
    transform: rotate(45deg) scale(1);
  }
}

/* ===================================
   GENERATE BUTTON - Espectacular
   =================================== */
.generate-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px 36px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-pink-lg);
  font-family: inherit;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.generate-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: 0.6s;
}

.generate-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(230, 28, 114, 0.4);
}

.generate-button:hover::before {
  left: 100%;
}

.generate-button:active {
  transform: translateY(-1px);
}

.btn-content,
.btn-loading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-loading {
  display: none;
}

.generate-button.loading .btn-content {
  display: none;
}

.generate-button.loading .btn-loading {
  display: flex;
}

.generate-button.loading {
  pointer-events: none;
  background: linear-gradient(135deg, #a0a0a0 0%, #b0b0b0 100%);
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Limit Info */
.limit-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--bg-pink-soft), rgba(102, 126, 234, 0.05));
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  border: 1px solid var(--border-pink);
}

.limit-info svg {
  color: var(--primary);
}

/* ===================================
   RESULTS SECTION
   =================================== */
.results-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 2px solid var(--bg-soft);
  animation: slideInUp 0.6s ease-out;
}

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

.results-header {
  margin-bottom: 28px;
}

.results-header h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  color: var(--text-dark);
}

.results-header h3 svg {
  color: var(--success);
  animation: checkBounce 0.5s ease-out;
}

@keyframes checkBounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Bio Results */
.bio-results {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.bio-result-item {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transition: var(--transition);
  border: 2px solid transparent;
  animation: resultFadeIn 0.4s ease-out backwards;
}

.bio-result-item:nth-child(1) { animation-delay: 0.1s; }
.bio-result-item:nth-child(2) { animation-delay: 0.2s; }
.bio-result-item:nth-child(3) { animation-delay: 0.3s; }

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

.bio-result-item:hover {
  border-color: var(--primary-light);
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  transform: translateX(8px);
}

.bio-result-number {
  position: absolute;
  top: -10px;
  left: 20px;
  background: var(--primary-gradient);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-pink);
}

.bio-result-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-primary);
  white-space: pre-line;
  margin-bottom: 16px;
  padding-top: 10px;
}

.bio-result-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bio-char-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-white);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.bio-copy-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  font-family: inherit;
}

.bio-copy-btn:hover {
  background: var(--primary-gradient);
  border-color: var(--primary);
  color: white;
  transform: scale(1.05);
}

.bio-copy-btn.copied {
  background: var(--gradient-success);
  border-color: var(--success);
  color: white;
}

/* Regenerate Button */
.regenerate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 28px;
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  font-family: inherit;
}

.regenerate-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-pink-soft);
  transform: translateY(-2px);
}

.regenerate-btn svg {
  transition: var(--transition);
}

.regenerate-btn:hover svg {
  transform: rotate(-180deg);
}

/* ===================================
   INFO SIDEBAR
   =================================== */
.info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: slideInRight 0.6s ease-out 0.2s both;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.info-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.info-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-pink-medium);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
  transition: var(--transition);
}

.info-card:hover .info-icon {
  transform: scale(1.1) rotate(5deg);
}

.info-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 14px 0;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.info-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.7;
}

/* AI Card - Especial */
.ai-card {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.05));
  border: 2px solid rgba(102, 126, 234, 0.2);
  position: relative;
  overflow: hidden;
}

.ai-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  animation: aiGlow 4s ease-in-out infinite;
}

@keyframes aiGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.ai-card .info-icon {
  background: var(--gradient-ai);
  color: white;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.ai-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.ai-features span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.ai-features span:hover {
  background: white;
  transform: translateX(5px);
}

.ai-features svg {
  color: var(--success);
  flex-shrink: 0;
}

/* Tips List */
.tips-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
}

.tips-list li {
  padding: 12px 0;
  padding-left: 28px;
  position: relative;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--bg-soft);
  transition: var(--transition);
}

.tips-list li:hover {
  color: var(--primary);
  padding-left: 32px;
}

.tips-list li:last-child {
  border-bottom: none;
}

.tips-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 10px;
  height: 10px;
  background: var(--primary-gradient);
  border-radius: 50%;
  transition: var(--transition);
}

.tips-list li:hover::before {
  transform: scale(1.3);
}

/* CTA Card */
.cta-card {
  background: var(--primary-gradient);
  color: white;
  border: none;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  animation: ctaGlow 3s ease-in-out infinite;
}

@keyframes ctaGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.cta-card .cta-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.cta-card h3 {
  color: white;
  position: relative;
  z-index: 1;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

.cta-button-sidebar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: white;
  color: var(--primary);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  transition: var(--transition);
  margin-top: 20px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-md);
}

.cta-button-sidebar:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: var(--primary);
}

/* ===================================
   EXAMPLES SECTION
   =================================== */
.examples-section {
  padding: 100px 0;
  background: var(--bg-white);
  position: relative;
}

.examples-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  margin: 0 0 16px 0;
  color: var(--text-dark);
  letter-spacing: -0.03em;
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.example-card {
  background: var(--bg-soft);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.example-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: var(--transition);
}

.example-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
  background: var(--bg-white);
}

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

.example-niche {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--bg-white);
}

.niche-icon {
  font-size: 32px;
  transition: var(--transition);
}

.example-card:hover .niche-icon {
  transform: scale(1.2) rotate(10deg);
}

.example-niche span:not(.niche-icon) {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
}

.example-bio {
  font-size: 14px;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex: 1;
}

.copy-example-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  font-family: inherit;
  margin-top: auto;
  flex-shrink: 0;
}

.copy-example-btn:hover {
  background: var(--primary-gradient);
  border-color: var(--primary);
  color: white;
  transform: scale(1.02);
}

/* ===================================
   FINAL CTA SECTION
   =================================== */
.final-cta {
  position: relative;
  padding: 120px 0;
  background: var(--gradient-hero);
  overflow: hidden;
}

.cta-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  animation: ctaPattern 20s ease-in-out infinite alternate;
}

@keyframes ctaPattern {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
}

.cta-content h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  margin: 0 0 20px 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-content > p {
  font-size: 18px;
  opacity: 0.95;
  margin: 0 auto 40px;
  max-width: 650px;
  line-height: 1.7;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-btn-primary,
.cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cta-btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.cta-btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  color: var(--primary);
}

.cta-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
  text-decoration: none;
  color: white;
}

/* ===================================
   TOAST NOTIFICATIONS
   =================================== */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-success {
  background: var(--gradient-success);
  color: white;
}

.toast-error {
  background: linear-gradient(135deg, var(--error), #f87171);
  color: white;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1200px) {
  .examples-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .generator-grid {
    grid-template-columns: 1fr 360px;
  }
}

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

  .info-sidebar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .bio-hero {
    padding: 100px 0 80px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }

  .bio-hero {
    padding: 80px 0 60px;
  }

  .generator-section,
  .examples-section {
    padding: 60px 0;
  }

  .generator-card {
    padding: 28px;
  }

  .info-sidebar {
    grid-template-columns: 1fr;
  }

  .platform-tabs {
    grid-template-columns: 1fr;
  }

  .radio-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .style-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .options-section {
    flex-direction: column;
    gap: 16px;
  }

  .final-cta {
    padding: 80px 0;
  }

  .cta-features {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .generator-card,
  .info-card {
    padding: 20px;
  }

  .radio-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .style-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .style-btn {
    padding: 14px 8px;
  }

  .style-emoji {
    font-size: 24px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-btn-primary,
  .cta-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .example-card {
    padding: 20px;
  }

  .tool-badge {
    font-size: 12px;
    padding: 8px 16px;
  }
}

/* Performance & Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .platform-tab,
  .radio-card-content,
  .style-btn {
    border: 2px solid var(--text-dark);
  }

  .platform-tab.active,
  .radio-card.active .radio-card-content,
  .style-btn.active {
    border-color: var(--primary);
  }
}

/* Focus Styles for Accessibility */
.platform-tab:focus-visible,
.style-btn:focus-visible,
.generate-button:focus-visible,
.copy-example-btn:focus-visible,
.bio-copy-btn:focus-visible,
.regenerate-btn:focus-visible,
.cta-btn-primary:focus-visible,
.cta-btn-secondary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .bio-hero,
  .final-cta,
  .info-sidebar {
    display: none;
  }

  .generator-card {
    box-shadow: none;
    border: 1px solid #000;
  }
}
