:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --accent: #7c3aed;
  --accent-light: #9d5bf5;
  --accent-glow: rgba(124, 58, 237, 0.35);
  --accent-2: #06b6d4;
  --text-primary: #f0f0ff;
  --text-secondary: #9898b8;
  --text-muted: #5a5a7a;
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(124,58,237,0.4);
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-glow: 0 0 40px rgba(124,58,237,0.2);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Orbs */
body::before, body::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(150px);
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}
body::before {
  top: 10%;
  left: -150px;
}
body::after {
  top: 60%;
  right: -150px;
  background: var(--accent-2);
}

/* Typography & Links */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 {
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1.2;
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
}
@media (min-width: 480px) {
  h1 {
    font-size: 2.2rem;
  }
}
@media (min-width: 768px) {
  h1 {
    font-size: 3.2rem;
  }
}
h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}
@media (min-width: 768px) {
  h2 {
    font-size: 2.5rem;
  }
}
p {
  color: var(--text-secondary);
}
a {
  color: var(--accent-light);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--text-primary);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 5rem 0;
}
.text-center {
  text-align: center;
}

/* Header & Logo */
header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  background-color: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
}
.logo-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .logo-name {
    display: none;
  }
  .logo-sep {
    display: none;
  }
  .logo {
    font-size: 1rem;
  }
}
@media (min-width: 768px) {
  .logo {
    font-size: 1.25rem;
  }
  header {
    padding: 1.5rem 0;
  }
}

/* Hero Section */
.hero {
  position: relative;
  padding: 4rem 0 5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.badge-gift {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--border-accent);
  color: var(--accent-light);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 20%, var(--accent-light) 60%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.subheadline {
  font-size: 1.15rem;
  max-width: 750px;
  margin: 1.5rem auto 2rem auto;
}
@media (min-width: 768px) {
  .hero p.subheadline {
    font-size: 1.3rem;
  }
}
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  width: 100%;
  max-width: 800px;
}
.trust-bar span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Glassmorphism Card & Form */
.card-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: var(--transition);
}
.card-form:hover {
  border-color: rgba(255, 255, 255, 0.12);
}
.card-form::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: calc(var(--radius-lg) + 2px);
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}
.card-form:focus-within {
  box-shadow: var(--shadow-glow);
}
.card-form:focus-within::before {
  opacity: 0.5;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}
.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.form-input {
  width: 100%;
  background-color: rgba(10, 10, 15, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}
.form-input:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 15px var(--accent-glow);
  background-color: rgba(10, 10, 15, 0.9);
}
.form-error {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 0.35rem;
  display: none;
}
.form-input.invalid {
  border-color: var(--error);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}

/* Honeypot anti-spam */
.hp-field {
  display: none !important;
  visibility: hidden !important;
}

/* Checkbox Styles */
.form-group-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  text-align: left;
}
.form-group-checkbox input[type="checkbox"] {
  margin-top: 0.25rem;
  cursor: pointer;
  accent-color: var(--accent-light);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.form-group-checkbox label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}
.form-group-checkbox label a {
  color: var(--accent-light);
  text-decoration: underline;
}
.form-group-checkbox label a:hover {
  color: var(--text-primary);
}


/* Submit Button & Animations */
.btn-submit {
  width: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  border: none;
  border-radius: var(--radius-md);
  color: #ffffff;
  padding: 1.1rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(124, 58, 237, 0.5);
  background: linear-gradient(90deg, var(--accent-light) 0%, #08d4f7 100%);
}
.btn-submit:active {
  transform: translateY(1px);
}
.btn-submit.loading {
  pointer-events: none;
  opacity: 0.8;
}
.btn-submit.loading .spinner {
  display: block;
}
.btn-submit.loading span {
  display: none;
}
.spinner {
  display: none;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Pulse animation on idle */
.pulse-anim {
  animation: pulse-button 2.5s infinite;
}
@keyframes pulse-button {
  0% {
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(124, 58, 237, 0.7), 0 0 0 10px rgba(124, 58, 237, 0.15);
  }
  100% {
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
  }
}

.shake {
  animation: shake 0.5s;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
  20%, 40%, 60%, 80% { transform: translateX(6px); }
}

.privacy-microcopy {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.join-count {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Features Section ("Qué incluye el regalo") */
.section-features {
  background-color: var(--bg-secondary);
}
.section-title-wrap {
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}
.section-title-wrap p {
  font-size: 1.1rem;
  margin-top: 0.5rem;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
  background-color: var(--bg-card-hover);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--border-accent);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.feature-card p {
  font-size: 0.95rem;
}

/* Social Proof (Testimonials) */
.section-testimonials {
  position: relative;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.testimonial-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background-color: var(--bg-card-hover);
}
.testimonial-stars {
  color: var(--warning);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.testimonial-text {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.testimonial-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.testimonial-info h4 {
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 600;
}
.testimonial-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
}

/* FAQ Section */
.section-faq {
  background-color: var(--bg-secondary);
}
.faq-list {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem;
  text-align: left;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-light);
  transition: var(--transition);
}
.faq-item.active .faq-question::after {
  transform: rotate(45deg);
  color: var(--accent-2);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.5rem;
}

/* Final CTA Section */
.final-cta {
  padding: 6rem 0;
  text-align: center;
}
.final-cta h2 {
  max-width: 650px;
  margin: 0 auto 1rem auto;
}
.final-cta p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
.btn-cta-anchor {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  font-weight: 700;
  padding: 1.1rem 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
  transition: var(--transition);
  font-size: 1.1rem;
}
.btn-cta-anchor:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(124, 58, 237, 0.5);
  color: #fff;
}
.btn-cta-anchor:active {
  transform: translateY(1px);
}
.cta-urgency {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  background-color: var(--bg-primary);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}
.footer-links a {
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--text-secondary);
}

/* --- THANK YOU PAGE (gracias.php) --- */
.thanks-hero {
  padding: 4rem 0 3rem 0;
  text-align: center;
}
.checkmark-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  color: var(--success);
  font-size: 2.5rem;
  animation: scale-up 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes scale-up {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.thanks-hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 1rem auto 0 auto;
}

/* Prompts Grid Layout */
.prompts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 3rem 0 4rem 0;
}
@media (min-width: 768px) {
  .prompts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.prompt-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.prompt-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 12px 30px rgba(124,58,237,0.15);
}
.prompt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
}
.prompt-card.ideas::before { background: var(--accent); }
.prompt-card.guión::before { background: var(--accent-light); }
.prompt-card.títulos::before { background: var(--accent-2); }
.prompt-card.shorts::before { background: #ec4899; }
.prompt-card.thumbnail::before { background: #f59e0b; }
.prompt-card.seo::before { background: #10b981; }

.prompt-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  width: max-content;
  margin-bottom: 1rem;
}
.prompt-card.ideas .prompt-badge { background: rgba(124, 58, 237, 0.1); color: var(--accent-light); }
.prompt-card.guión .prompt-badge { background: rgba(157, 91, 245, 0.1); color: var(--accent-light); }
.prompt-card.títulos .prompt-badge { background: rgba(6, 182, 212, 0.1); color: var(--accent-2); }
.prompt-card.shorts .prompt-badge { background: rgba(236, 72, 153, 0.1); color: #ec4899; }
.prompt-card.thumbnail .prompt-badge { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.prompt-card.seo .prompt-badge { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.prompt-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.prompt-textarea-container {
  position: relative;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}
.prompt-code {
  width: 100%;
  height: 180px;
  background-color: #0b0b10;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  color: #c5c5d2;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
  resize: none;
  outline: none;
  cursor: text;
}
.prompt-code:focus {
  border-color: var(--border-accent);
}

.btn-copy {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  transition: var(--transition);
}
.btn-copy:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-copy.copied {
  background-color: var(--success) !important;
  border-color: var(--success) !important;
  color: #fff !important;
}

/* Bonus Section */
.bonus-card {
  background: linear-gradient(135deg, rgba(22, 22, 31, 0.8) 0%, rgba(10, 10, 15, 0.8) 100%);
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-glow);
}
.bonus-badge {
  background: var(--accent);
  color: #fff;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.bonus-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.bonus-card p {
  max-width: 700px;
  margin-bottom: 1.5rem;
}

/* Share & Next steps Section */
.share-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 3rem 1rem;
  margin-bottom: 1rem;
  width: 100%;
}
.share-section h4 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  text-align: center;
}
@media (min-width: 480px) {
  .share-section h4 {
    font-size: 1.1rem;
  }
}
.share-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
  width: 100%;
}
.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  color: var(--text-primary);
  font-weight: 600;
  transition: var(--transition);
  flex: 1;
  min-width: 140px;
  max-width: 200px;
  text-align: center;
}
@media (max-width: 480px) {
  .btn-share {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
.btn-share:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(255,255,255,0.15);
}
.btn-share.twitter:hover {
  background-color: #1da1f2;
  color: #fff;
  border-color: #1da1f2;
}
.btn-share.whatsapp:hover {
  background-color: #25d366;
  color: #fff;
  border-color: #25d366;
}

.btn-youtube-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #ff0000;
  color: #fff;
  font-weight: 700;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
  transition: var(--transition);
  font-size: 1rem;
  text-align: center;
  width: 100%;
  max-width: 420px;
}
@media (min-width: 768px) {
  .btn-youtube-back {
    width: auto;
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
  }
}
.btn-youtube-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
  background-color: #cc0000;
  color: #fff;
}
.btn-youtube-back:active {
  transform: translateY(1px);
}

/* --- TOAST NOTIFICATIONS --- */
#toast-container {
  position: fixed;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
  top: 1rem;
  right: 1rem;
  width: calc(100% - 2rem);
  max-width: 380px;
}
@media (max-width: 480px) {
  #toast-container {
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
  }
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: toast-in 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.toast.hide {
  animation: toast-out 0.25s ease forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes toast-out {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.9) translateY(-10px);
  }
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }
.toast.warning { border-left-color: var(--warning); }
.toast.info { border-left-color: var(--accent-2); }

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--error); }
.toast.warning .toast-icon { color: var(--warning); }
.toast.info .toast-icon { color: var(--accent-2); }

.toast-content {
  flex-grow: 1;
}
.toast-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}
.toast-message {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background-color: rgba(255,255,255,0.1);
  width: 100%;
}
.toast-progress-bar {
  height: 100%;
  width: 100%;
  background-color: var(--accent);
  transform-origin: left;
  animation: toast-progress 4s linear forwards;
}
.toast.success .toast-progress-bar { background-color: var(--success); }
.toast.error .toast-progress-bar { background-color: var(--error); }
.toast.warning .toast-progress-bar { background-color: var(--warning); }
.toast.info .toast-progress-bar { background-color: var(--accent-2); }

@keyframes toast-progress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}


/* --- FOMO NOTIFICATIONS (fomo.js) --- */
#fomo-container {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 999;
  pointer-events: none;
  width: calc(100% - 3rem);
  max-width: 320px;
}
@media (max-width: 480px) {
  #fomo-container {
    bottom: 1rem;
    left: 1rem;
    width: calc(100% - 2rem);
  }
}

.fomo-card {
  background: rgba(22, 22, 31, 0.95);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  backdrop-filter: blur(12px);
  pointer-events: auto;
  animation: fomo-in 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.fomo-card.hide {
  animation: fomo-out 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fomo-in {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fomo-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-30px);
  }
}

.fomo-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.fomo-content {
  flex-grow: 1;
  font-size: 0.8rem;
  line-height: 1.4;
}
.fomo-user-info {
  font-weight: 700;
  color: var(--text-primary);
}
.fomo-action {
  color: var(--text-secondary);
}
.fomo-time {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
