/* ============================================================
   MrIncreible — Global Styles
   Theme: Fire & Energy — Orange / Gold / Light Mode
   ============================================================ */

:root {
  /* Backgrounds — warm light tones */
  --bg:        #fefefe;
  --bg2:       #f8f6f3;
  --bg3:       #ffffff;
  --card:      rgba(0, 0, 0, 0.02);
  --border:    rgba(249, 115, 22, 0.15);

  /* Brand — fire palette */
  --primary:   #ea580c;   /* orange-600  */
  --primary2:  #f97316;   /* orange-500  */
  --accent:    #eab308;   /* yellow-500  */
  --hot:       #dc2626;   /* red-600     */
  --gold:      #d97706;   /* amber-600   */

  /* Status */
  --green:     #059669;
  --red:       #dc2626;
  --gold:      #d97706;

  /* Text */
  --text:      #1a1a1a;   /* dark grey   */
  --muted:     #6b7280;   /* grey-500    */

  /* Effects */
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 25px 50px rgba(0, 0, 0, 0.1);
  --glow:      0 0 40px rgba(234, 88, 12, 0.15);
  --glow-gold: 0 0 40px rgba(234, 179, 8, 0.12);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; border: none; font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 99px; }

/* ── Utility ── */
.container        { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.flex             { display: flex; }
.items-center     { align-items: center; }
.justify-between  { justify-content: space-between; }
.gap-2  { gap: 8px; }
.gap-4  { gap: 16px; }
.gap-6  { gap: 24px; }
.text-center    { text-align: center; }
.font-bold      { font-weight: 700; }
.text-muted     { color: var(--muted); }
.text-green     { color: var(--green); }
.text-red       { color: var(--red); }
.text-primary   { color: var(--primary); }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }

/* ── Gradient text — fire ── */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--hot) 0%, var(--primary) 50%, var(--accent) 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(234, 88, 12, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(234, 88, 12, 0.45);
  filter: brightness(1.05);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(234, 88, 12, 0.3);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(234, 88, 12, 0.06);
}
.btn-google {
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #e2e8f0;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 99px;
  font-weight: 600;
}
.btn-google:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.btn-google img { width: 22px; height: 22px; }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  backdrop-filter: blur(20px);
  background: rgba(254, 254, 254, 0.85);
  border-bottom: 1px solid rgba(234, 88, 12, 0.12);
  transition: background 0.3s;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  border-bottom-color: rgba(234, 88, 12, 0.15);
}
.nav-logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text);
}
.nav-logo span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  object-fit: cover;
}
.nav-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.plan-badge {
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.plan-free  { background: rgba(107, 114, 128, 0.1); color: var(--muted); }
.plan-lite  { background: rgba(234, 88, 12, 0.1);   color: var(--primary); border: 1px solid rgba(234, 88, 12, 0.25); }
.plan-pro   { background: rgba(234, 179, 8, 0.1);   color: var(--gold);    border: 1px solid rgba(234, 179, 8, 0.25); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%,  rgba(234, 88, 12, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 45% 35% at 85% 75%,  rgba(234, 179, 8, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 10% 80%,  rgba(220, 38, 38, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(234, 88, 12, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 88, 12, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(234, 88, 12, 0.08);
  border: 1px solid rgba(234, 88, 12, 0.25);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 40px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 72px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

/* ── Floating video cards ── */
.hero-cards {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 64px;
}
.video-card-demo {
  background: rgba(234, 88, 12, 0.06);
  border: 1px solid rgba(234, 88, 12, 0.18);
  border-radius: var(--radius);
  padding: 16px;
  width: 180px;
  backdrop-filter: blur(10px);
  animation: floatCard 4s ease-in-out infinite;
  text-align: left;
}
.video-card-demo:nth-child(2) { animation-delay: -1s; }
.video-card-demo:nth-child(3) { animation-delay: -2s; }
.video-card-demo:nth-child(4) { animation-delay: -3s; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.vcd-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--hot), var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.vcd-title { font-size: 0.78rem; font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.vcd-meta  { font-size: 0.7rem; color: var(--muted); }
.vcd-views { color: var(--accent); font-weight: 700; }

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.section-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto;
}
section { padding: 100px 0; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 64px;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.step-card:hover {
  border-color: rgba(234, 88, 12, 0.4);
  box-shadow: 0 0 30px rgba(234, 88, 12, 0.1);
}
.step-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hot), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.3);
}
.step-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.step-card p  { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.step-icon { font-size: 2.5rem; margin-bottom: 16px; }

/* ============================================================
   PRICING
   ============================================================ */
#precios { background: var(--bg2); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 64px;
  align-items: start;
}
.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(234, 88, 12, 0.08) 0%, var(--card) 100%);
  transform: scale(1.04);
  box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.25), 0 0 40px rgba(234, 88, 12, 0.1);
}
.pricing-card.featured:hover {
  transform: scale(1.04) translateY(-6px);
}
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--hot), var(--primary), var(--accent));
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 18px;
  border-radius: 99px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.pricing-plan-name {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 16px;
}
.pricing-price {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
}
.pricing-price sup { font-size: 1.5rem; vertical-align: super; }
.pricing-price span.period { font-size: 1rem; color: var(--muted); font-weight: 400; }
.pricing-tagline {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.pricing-features { list-style: none; margin-bottom: 36px; }
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  padding: 8px 0;
  color: var(--muted);
}
.pricing-features li .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(234, 88, 12, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--primary);
  flex-shrink: 0;
}
.pricing-features li .cross {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(107, 114, 128, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--muted);
  flex-shrink: 0;
}
.pricing-features li.active { color: var(--text); }
.pricing-card .btn { width: 100%; }
.highlight-text { color: var(--text); font-weight: 600; }

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 64px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  border-color: rgba(234, 88, 12, 0.3);
  box-shadow: 0 0 30px rgba(234, 88, 12, 0.1);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.icon-purple { background: rgba(234, 88, 12, 0.1); }
.icon-cyan   { background: rgba(234, 179, 8, 0.1); }
.icon-pink   { background: rgba(220, 38,  38, 0.1); }
.icon-amber  { background: rgba(217, 119, 6, 0.1); }
.icon-green  { background: rgba(5, 150, 105, 0.1); }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg2);
  border-top: 1px solid rgba(234, 88, 12, 0.1);
  padding: 48px 0 32px;
  text-align: center;
}
.footer-logo {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  list-style: none;
  margin-bottom: 24px;
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-copy { color: var(--muted); font-size: 0.82rem; }

/* ============================================================
   AUTH MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: var(--bg3);
  border: 1px solid rgba(234, 88, 12, 0.2);
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow), 0 0 60px rgba(234, 88, 12, 0.08);
  transform: translateY(20px);
  transition: transform 0.3s;
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-logo { font-size: 2.5rem; margin-bottom: 8px; }
.modal h2   { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.modal p    { color: var(--muted); margin-bottom: 32px; font-size: 0.95rem; }
.modal-close {
  display: block;
  margin: 0 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}
.modal-close:hover { color: var(--text); background: rgba(234, 88, 12, 0.08); }
.modal-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 20px;
  line-height: 1.5;
}

/* Alerts */
.alert {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 24px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-error   { background: rgba(220, 38,  38, 0.08);  border: 1px solid rgba(220, 38,  38, 0.25);  color: #b91c1c; }
.alert-success { background: rgba(5, 150, 105, 0.08);   border: 1px solid rgba(5, 150, 105, 0.25);   color: #047857; }
.alert-info    { background: rgba(234, 88, 12, 0.08);   border: 1px solid rgba(234, 88, 12, 0.25);   color: var(--primary); }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-wrapper {
  min-height: 100vh;
  background: var(--bg);
  padding-top: 80px;
}
.dashboard-header {
  background: var(--bg2);
  border-bottom: 1px solid rgba(234, 88, 12, 0.1);
  padding: 40px 0 32px;
}
.dashboard-user {
  display: flex;
  align-items: center;
  gap: 20px;
}
.dashboard-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  object-fit: cover;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.35);
}
.dashboard-avatar-placeholder {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  background: linear-gradient(135deg, var(--hot), var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(234, 88, 12, 0.25);
}
.dashboard-user-info h2 { font-size: 1.4rem; font-weight: 800; }
.dashboard-user-info p  { color: var(--muted); font-size: 0.9rem; }
.dashboard-main { padding: 40px 0; }
.dashboard-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}
.dash-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}
.dash-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* Plan info card */
.plan-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.plan-big-badge {
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.plan-big-badge.free { color: var(--muted); }
.plan-big-badge.lite { color: var(--primary); }
.plan-big-badge.pro  { color: var(--gold); }

/* Usage bar */
.usage-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.usage-bar {
  height: 8px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}
.usage-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--hot), var(--primary), var(--accent));
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.usage-fill.full { background: linear-gradient(90deg, var(--red), #f97316); }
.usage-note { font-size: 0.78rem; color: var(--muted); }

/* Generate form */
.generate-form { margin-top: 20px; }
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--muted);
}
.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}
.form-control::placeholder { color: var(--muted); }
select.form-control { appearance: none; cursor: pointer; }

/* Style selector grid */
.style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.style-btn {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.style-btn:hover {
  border-color: var(--primary);
  color: var(--text);
  background: rgba(234, 88, 12, 0.06);
}
.style-btn.active {
  border-color: var(--primary);
  background: rgba(234, 88, 12, 0.1);
  color: var(--primary);
}
.style-btn .style-icon { font-size: 1.3rem; display: block; margin-bottom: 4px; }

/* Generate button */
.generate-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--hot) 0%, var(--primary) 55%, var(--accent) 100%);
  color: #ffffff;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  box-shadow: 0 4px 24px rgba(234, 88, 12, 0.35);
  letter-spacing: 0.2px;
}
.generate-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(234, 88, 12, 0.45);
  filter: brightness(1.05);
}
.generate-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: none;
}

/* Spinner */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Progress overlay */
.progress-overlay {
  display: none;
  margin-top: 20px;
  background: rgba(234, 88, 12, 0.05);
  border: 1px solid rgba(234, 88, 12, 0.15);
  border-radius: var(--radius-sm);
  padding: 20px;
}
.progress-overlay.active { display: block; }
.progress-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 10px;
  transition: color 0.3s;
}
.progress-step.done       { color: var(--primary2); }
.progress-step.active-step{ color: var(--text); }
.step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background 0.3s;
}
.progress-step.done .step-dot        { background: var(--primary); }
.progress-step.active-step .step-dot { background: var(--accent); animation: pulse-dot 1s infinite; }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}
.progress-bar-wrap {
  height: 4px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 16px;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--hot), var(--primary), var(--accent));
  border-radius: 99px;
  width: 0%;
  transition: width 0.5s ease;
}

/* Result card */
.result-card {
  display: none;
  margin-top: 20px;
  background: rgba(234, 88, 12, 0.06);
  border: 1px solid rgba(234, 88, 12, 0.2);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
}
.result-card.active { display: block; }
.result-icon { font-size: 2.5rem; margin-bottom: 8px; }
.result-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: var(--primary); }
.result-card p  { font-size: 0.85rem; color: var(--muted); }

/* History table */
.history-table { width: 100%; border-collapse: collapse; }
.history-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.history-table td {
  padding: 14px 16px;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(234, 88, 12, 0.08);
}
.history-table tr:last-child td { border-bottom: none; }
.history-table tr:hover td      { background: rgba(234, 88, 12, 0.04); }
.status-badge {
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
}
.status-completed { background: rgba(234, 88, 12, 0.1); color: var(--primary); }
.status-failed    { background: rgba(220, 38,  38, 0.1); color: var(--red); }
.status-pending   { background: rgba(234, 179, 8, 0.1); color: var(--gold); }
.empty-state { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty-icon  { font-size: 3rem; margin-bottom: 12px; opacity: 0.5; }

/* Upgrade banner */
.upgrade-banner {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.08), rgba(234, 179, 8, 0.08));
  border: 1px solid rgba(234, 88, 12, 0.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.upgrade-banner p        { font-size: 0.9rem; color: var(--muted); }
.upgrade-banner strong   { color: var(--text); }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: slideInToast 0.35s ease;
  pointer-events: all;
  min-width: 260px;
  max-width: 360px;
}
@keyframes slideInToast {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.toast-success { border-color: rgba(234, 88, 12, 0.3); }
.toast-error   { border-color: rgba(220, 38,  38, 0.3); }
.toast-icon    { font-size: 1.1rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1   { letter-spacing: -1px; }
  .hero-cards .video-card-demo:nth-child(n+3) { display: none; }
  .pricing-card.featured { transform: none; box-shadow: none; }
  .modal { padding: 36px 24px; }
  .dashboard-user { gap: 14px; }
}
@media (max-width: 480px) {
  .hero-stats { gap: 28px; }
  .hero-cards { display: none; }
  .style-grid { grid-template-columns: repeat(2, 1fr); }
}
