/* ===================================
   KISHORE AI – MAIN STYLESHEET
   =================================== */

:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --primary-light: #a78bfa;
  --secondary: #06b6d4;
  --accent: #f59e0b;
  --bg-dark: #0a0a0f;
  --bg-card: #12121a;
  --bg-card2: #1a1a28;
  --border: rgba(124,58,237,0.2);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --gradient: linear-gradient(135deg, #7c3aed, #06b6d4);
  --gradient2: linear-gradient(135deg, #f59e0b, #ef4444);
  --shadow: 0 20px 60px rgba(124,58,237,0.15);
  --radius: 16px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.navbar.scrolled {
  padding: 12px 40px;
  background: rgba(10,10,15,0.95);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.brand-icon {
  width: 36px; height: 36px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: white;
}
.brand-name {
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-tag {
  font-size: 10px;
  font-weight: 700;
  background: var(--gradient);
  color: white;
  padding: 2px 7px;
  border-radius: 20px;
  -webkit-text-fill-color: white;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--primary-light); }
.btn-primary {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124,58,237,0.4);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 120px 80px 80px;
  position: relative;
  overflow: hidden;
  gap: 60px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(124,58,237,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(6,182,212,0.08) 0%, transparent 50%);
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; flex: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--primary-light);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease;
}
.hero-title {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.1s both;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
  animation: fadeInUp 0.8s ease 0.3s both;
}
.btn-hero-primary {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  box-shadow: 0 8px 30px rgba(124,58,237,0.35);
}
.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(124,58,237,0.5);
}
.btn-hero-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 16px 32px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}
.btn-hero-secondary:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  transform: translateY(-3px);
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 30px;
  animation: fadeInUp 0.8s ease 0.4s both;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  animation: fadeInRight 1s ease 0.3s both;
}
.video-card-stack {
  position: relative;
  width: 340px;
  height: 380px;
}
.vcard {
  position: absolute;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vcard-3 {
  width: 240px; height: 280px;
  background: linear-gradient(135deg,#1e1b4b,#312e81);
  border: 1px solid rgba(124,58,237,0.3);
  top: 60px; left: 80px;
  transform: rotate(8deg);
  font-size: 40px;
  color: rgba(124,58,237,0.3);
  animation: floatCard3 6s ease-in-out infinite;
}
.vcard-2 {
  width: 260px; height: 300px;
  background: linear-gradient(135deg,#164e63,#0e7490);
  border: 1px solid rgba(6,182,212,0.3);
  top: 40px; left: 40px;
  transform: rotate(-4deg);
  font-size: 40px;
  color: rgba(6,182,212,0.3);
  animation: floatCard2 5s ease-in-out infinite;
}
.vcard-1 {
  width: 280px; height: 320px;
  background: linear-gradient(135deg,#0a0a1a,#12121a);
  border: 1px solid var(--border);
  top: 20px; left: 20px;
  box-shadow: var(--shadow);
  animation: floatCard1 4s ease-in-out infinite;
}
.vcard-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
}
.vcard-play {
  width: 64px; height: 64px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  box-shadow: 0 8px 30px rgba(124,58,237,0.5);
  animation: pulse 2s ease-in-out infinite;
}
.vcard-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}
.vcard-progress {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 60%;
  background: var(--gradient);
  border-radius: 2px;
  animation: progressAnim 3s ease-in-out infinite;
}

/* ===== SECTION COMMON ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  color: var(--primary-light);
  padding: 7px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px,3.5vw,48px);
  font-weight: 800;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== APIs SECTION ===== */
.apis-section { padding: 100px 0; }

.api-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 50px;
}
.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.apis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.api-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.35s;
  display: flex;
  flex-direction: column;
}
.api-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(124,58,237,0.2);
}
.api-card.hidden { display: none; }
.api-card-header {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.api-logo {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: white;
}
.api-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.api-badge.free { background: rgba(34,197,94,0.25); color: #4ade80; border: 1px solid rgba(34,197,94,0.4); }
.api-card-body { padding: 24px; flex: 1; }
.api-card-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.api-card-body p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.api-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.api-tags span {
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.2);
  color: var(--primary-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.api-meta { display: flex; gap: 16px; }
.api-meta span { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.api-card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.api-link {
  color: var(--primary-light);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.api-link:hover { gap: 10px; }
.api-try-btn {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.api-try-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(124,58,237,0.4);
}

/* ===== GENERATOR SECTION ===== */
.generator-section {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(124,58,237,0.04), transparent);
}
.generator-layout {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 24px;
  align-items: start;
}
.gen-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.gen-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.gen-card h3 i { color: var(--primary-light); }

/* Form Groups */
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.optional { font-weight: 400; text-transform: none; letter-spacing: 0; }

/* API Selector */
.api-selector { display: flex; flex-direction: column; gap: 8px; }
.api-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.25s;
}
.api-option:hover { border-color: var(--primary); color: var(--text); }
.api-option.selected {
  border-color: var(--primary);
  background: rgba(124,58,237,0.12);
  color: var(--primary-light);
  font-weight: 600;
}

/* Input */
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-with-icon > i {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 13px;
}
.input-with-icon input {
  width: 100%;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 40px 12px 38px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border 0.25s;
}
.input-with-icon input:focus { border-color: var(--primary); }
.toggle-key {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 4px;
}
.toggle-key:hover { color: var(--primary-light); }
.api-key-help {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.api-key-help i { color: var(--secondary); }

/* Style Grid */
.style-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.style-chip {
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card2);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  transition: all 0.25s;
  color: var(--text-muted);
}
.style-chip:hover { border-color: var(--primary-light); color: var(--text); }
.style-chip.selected {
  border-color: var(--primary);
  background: rgba(124,58,237,0.15);
  color: var(--primary-light);
}

/* Range */
.range-wrap { display: flex; align-items: center; gap: 14px; }
.range-wrap input[type=range] {
  flex: 1;
  -webkit-appearance: none;
  height: 4px;
  background: var(--bg-card2);
  border-radius: 2px;
  outline: none;
}
.range-wrap input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  background: var(--gradient);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(124,58,237,0.5);
}
.range-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-light);
  min-width: 32px;
  text-align: right;
}

/* Select */
.custom-select {
  width: 100%;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: border 0.25s;
}
.custom-select:focus { border-color: var(--primary); }

/* FPS */
.fps-selector { display: flex; gap: 8px; }
.fps-btn {
  flex: 1;
  padding: 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card2);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.fps-btn:hover { border-color: var(--primary-light); color: var(--text); }
.fps-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Prompt Card */
.prompt-card textarea {
  width: 100%;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border 0.25s;
  line-height: 1.6;
}
.prompt-card textarea:focus { border-color: var(--primary); }
.prompt-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 16px;
}
.btn-random, .btn-enhance {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s;
}
.btn-random {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn-random:hover { border-color: var(--accent); color: var(--accent); }
.btn-enhance {
  background: rgba(124,58,237,0.15);
  border: 1px solid var(--primary);
  color: var(--primary-light);
}
.btn-enhance:hover { background: var(--primary); color: white; }
.negative-prompt-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 0;
  user-select: none;
}
.negative-prompt-toggle:hover { color: var(--text); }
.negative-prompt-wrap { display: none; margin-top: 10px; }
.negative-prompt-wrap.open { display: block; }
.negative-prompt-wrap textarea {
  width: 100%;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  outline: none;
}
.negative-prompt-wrap textarea:focus { border-color: #ef4444; }

/* Preview */
.preview-area {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}
.preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 40px;
}
.preview-placeholder p { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.preview-placeholder span { font-size: 13px; color: rgba(148,163,184,0.6); }
.preview-icon {
  position: relative;
  width: 80px; height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(124,58,237,0.2);
  border-radius: 50%;
  animation: ringPulse 3s ease-in-out infinite;
}
.preview-icon i { font-size: 30px; color: rgba(124,58,237,0.4); position: relative; z-index: 1; }

.video-output {
  width: 100%;
  max-height: 300px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}
.hidden { display: none !important; }

/* Generating Overlay */
.generating-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,15,0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10;
  backdrop-filter: blur(4px);
}
.gen-animation {
  position: relative;
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
}
.gen-ring {
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.gen-ring-2 {
  position: absolute;
  inset: 8px;
  border: 2px solid transparent;
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 1.5s linear infinite reverse;
}
.gen-icon { font-size: 24px; color: var(--primary-light); position: relative; z-index: 1; }
.generating-overlay p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.gen-progress-bar {
  width: 200px; height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.gen-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.5s ease;
}
.generating-overlay span { font-size: 13px; color: var(--primary-light); font-weight: 700; }

/* Generate Button */
.generate-btn-wrap { text-align: center; }
.btn-generate {
  position: relative;
  background: var(--gradient);
  color: white;
  border: none;
  padding: 18px 60px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 8px 30px rgba(124,58,237,0.4);
}
.btn-generate:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 45px rgba(124,58,237,0.55);
}
.btn-generate:active { transform: translateY(0); }
.btn-shimmer {
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: shimmer 2.5s ease-in-out infinite;
}

/* Output Actions */
.output-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.out-btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card2);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.25s;
}
.out-btn:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(124,58,237,0.1);
}

/* Recent List */
.recent-list { display: flex; flex-direction: column; gap: 10px; }
.no-recent {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
}
.no-recent i { font-size: 30px; margin-bottom: 10px; opacity: 0.3; display: block; }
.no-recent p { font-size: 13px; }
.recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.25s;
}
.recent-item:hover { border-color: var(--primary); }
.recent-thumb {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}
.recent-info { flex: 1; min-width: 0; }
.recent-title {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-meta { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

/* API Status */
.api-status-list { display: flex; flex-direction: column; gap: 12px; }
.api-status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.status-info { display: flex; align-items: center; gap: 8px; }
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}
.status-dot.green { background: #22c55e; }
.status-dot.yellow { background: #f59e0b; }
.status-dot.red { background: #ef4444; }
.status-label { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 12px; }
.status-label.online { background: rgba(34,197,94,0.15); color: #4ade80; }
.status-label.busy { background: rgba(245,158,11,0.15); color: #fbbf24; }
.status-label.offline { background: rgba(239,68,68,0.15); color: #f87171; }

/* Tips */
.tips-list { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.tips-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.tips-list li i { color: #4ade80; font-size: 11px; flex-shrink: 0; }

/* ===== HOW IT WORKS ===== */
.how-section { padding: 100px 0; }
.steps-grid {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 16px;
}
.step-card {
  flex: 1;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.35s;
  position: relative;
}
.step-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(124,58,237,0.2);
}
.step-num {
  font-size: 48px;
  font-weight: 900;
  color: rgba(124,58,237,0.12);
  position: absolute;
  top: 16px; right: 20px;
  line-height: 1;
}
.step-icon {
  width: 60px; height: 60px;
  background: var(--gradient);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: white;
  margin: 0 auto 20px;
  box-shadow: 0 8px 25px rgba(124,58,237,0.35);
}
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.step-connector {
  width: 60px;
  height: 2px;
  background: var(--border);
  flex-shrink: 0;
  background: linear-gradient(90deg, rgba(124,58,237,0.1), var(--primary), rgba(124,58,237,0.1));
}

/* ===== GALLERY ===== */
.gallery-section { padding: 100px 0; background: linear-gradient(180deg,transparent,rgba(6,182,212,0.03),transparent); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 20px;
}
.gallery-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.gallery-empty-icon { font-size: 60px; color: rgba(124,58,237,0.2); margin-bottom: 20px; }
.gallery-empty h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.gallery-empty p { color: var(--text-muted); margin-bottom: 24px; }
.gallery-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}
.gallery-item:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(124,58,237,0.2);
}
.gallery-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}
.gallery-thumb video { width: 100%; height: 100%; object-fit: cover; }
.gallery-info { padding: 16px; }
.gallery-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-info p { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }

/* ===== COMPARISON TABLE ===== */
.comparison-section { padding: 100px 0; }
.table-wrap { overflow-x: auto; }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.comparison-table thead th {
  background: rgba(124,58,237,0.12);
  border: 1px solid var(--border);
  padding: 16px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.comparison-table tbody td {
  border: 1px solid var(--border);
  padding: 14px 20px;
  background: var(--bg-card);
  transition: background 0.25s;
}
.comparison-table tbody tr:hover td { background: var(--bg-card2); }
.t-brand { font-weight: 700; }
.t-yes { color: #4ade80; font-weight: 700; }
.t-no { color: #4ade80; font-size: 12px; }
.t-warn { color: #fbbf24; font-size: 12px; }
.t-fast { color: #4ade80; font-weight: 600; font-size: 12px; }
.t-med { color: #fbbf24; font-weight: 600; font-size: 12px; }
.t-slow { color: #f87171; font-weight: 600; font-size: 12px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
}
.footer-brand .brand-icon,
.footer-brand .brand-name,
.footer-brand .brand-tag {
  display: inline-flex;
}
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.footer-brand p {
  flex-basis: 100%;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 12px;
}
.footer-links h4 { font-size: 14px; font-weight: 700; margin-bottom: 20px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 40px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-bottom p { font-size: 13px; color: var(--text-muted); }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast-icon { color: #4ade80; font-size: 16px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes floatCard1 {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}
@keyframes floatCard2 {
  0%,100% { transform: translateY(0px) rotate(-4deg); }
  50% { transform: translateY(-8px) rotate(-3deg); }
}
@keyframes floatCard3 {
  0%,100% { transform: translateY(0px) rotate(8deg); }
  50% { transform: translateY(-5px) rotate(7deg); }
}
@keyframes pulse {
  0%,100% { box-shadow: 0 8px 30px rgba(124,58,237,0.5); transform: scale(1); }
  50% { box-shadow: 0 8px 50px rgba(124,58,237,0.8); transform: scale(1.05); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}
@keyframes progressAnim {
  0% { width: 10%; }
  50% { width: 80%; }
  100% { width: 30%; }
}
@keyframes ringPulse {
  0%,100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.3); opacity: 0.7; }
}
@keyframes dotPulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes particleFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Particle dots */
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  animation: particleFloat linear infinite;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .generator-layout { grid-template-columns: 1fr; }
  .gen-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .gen-panel .gen-card { margin-bottom: 0; }
}

@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 100px 30px 60px; text-align: center; }
  .hero-subtitle { margin: 0 auto 40px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .video-card-stack { width: 260px; height: 300px; }
  .vcard-1 { width: 220px; height: 250px; }
  .vcard-2 { width: 200px; height: 230px; }
  .vcard-3 { width: 180px; height: 210px; }
  .steps-grid { flex-wrap: wrap; justify-content: center; }
  .step-connector { display: none; }
  .step-card { min-width: 220px; max-width: 300px; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  .navbar { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .container { padding: 0 20px; }
  .hero { padding: 90px 20px 60px; }
  .apis-section, .generator-section, .how-section, .gallery-section, .comparison-section { padding: 70px 0; }
  .gen-panel { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 32px; }
  .btn-hero-primary, .btn-hero-secondary { padding: 14px 24px; font-size: 14px; }
  .video-card-stack { width: 220px; height: 260px; }
  .vcard-1 { width: 200px; height: 230px; }
  .btn-generate { padding: 16px 40px; font-size: 16px; }
}
