/* ============================================
   AETHER AI — Custom Styles
   ============================================ */

/* --- Base --- */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-primary: #f0f0f5;
  --text-secondary: #9d9db5;
  --text-muted: #6b6b80;
  --accent-purple: #8b5cf6;
  --accent-blue: #6366f1;
  --accent-pink: #ec4899;
  --accent-gradient: linear-gradient(135deg, #8b5cf6, #6366f1, #ec4899);
  --glow-purple: rgba(139, 92, 246, 0.15);
  --glow-pink: rgba(236, 72, 153, 0.1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139, 92, 246, 0.5); }

/* --- Background Effects --- */
.bg-mesh {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, var(--glow-purple), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, var(--glow-pink), transparent),
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(99, 102, 241, 0.05), transparent);
}

/* --- Glass Card --- */
.glass {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

/* --- Gradient Text --- */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Gradient Border --- */
.gradient-border {
  position: relative;
  border: none;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--accent-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--accent-gradient);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: var(--bg-glass);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  border-radius: 14px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}
.nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-glass);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.token-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-purple);
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(10, 10, 15, 0.98);
  z-index: 200;
  padding: 5rem 2rem 2rem;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 1rem;
  border-radius: 12px;
  transition: background 0.2s ease;
}
.mobile-menu a:hover { background: var(--bg-glass); }
.mobile-close {
  position: absolute;
  top: 1rem; right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  .nav-right .btn-secondary { display: none; }
}

/* --- Hero --- */
.hero {
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* --- Mockup Preview --- */
.mockup-container {
  max-width: 960px;
  margin: 3rem auto 0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.mockup-glow {
  position: absolute;
  inset: -2px;
  background: var(--accent-gradient);
  border-radius: 18px;
  opacity: 0.15;
  filter: blur(1px);
}
.mockup-inner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border-glass);
}
.mockup-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.mockup-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 340px;
}
.mockup-sidebar {
  padding: 1.25rem;
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mockup-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.mockup-field label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mockup-select, .mockup-textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 0.5rem 0.65rem;
}
.mockup-textarea { min-height: 60px; resize: none; }
.mockup-toggle {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}
.mockup-toggle span {
  flex: 1;
  text-align: center;
  padding: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}
.mockup-toggle span.active {
  background: var(--accent-gradient);
  color: white;
}
.mockup-preview {
  padding: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  align-content: start;
}
.mockup-img {
  aspect-ratio: 4/5;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(236,72,153,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.mockup-balance {
  position: absolute;
  top: 8px; right: 16px;
  font-size: 0.7rem;
  color: var(--accent-purple);
  font-weight: 600;
}

@media (max-width: 768px) {
  .mockup-content { grid-template-columns: 1fr; }
  .mockup-sidebar { border-right: none; border-bottom: 1px solid var(--border-glass); }
  .mockup-preview { grid-template-columns: repeat(2, 1fr); }
}

/* --- Section Utilities --- */
.section {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-sm { max-width: 900px; }
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* --- Steps --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.step-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 16px;
  transition: all 0.3s ease;
}
.step-card:hover {
  background: var(--bg-glass);
  transform: translateY(-4px);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  background: var(--accent-gradient);
  color: white;
}
.step-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* --- Feature Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.feature-card {
  padding: 1.75rem;
  border-radius: 16px;
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.2);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: var(--accent-gradient);
  color: white;
  font-size: 1.15rem;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (max-width: 1024px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }

/* --- Gallery --- */
.gallery-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.gallery-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-glass);
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}
.gallery-tab.active, .gallery-tab:hover {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.gallery-item {
  aspect-ratio: 4/5;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item-bg {
  width: 100%; height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.gallery-label {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
}

@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* --- Value Props --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}
.value-card {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 16px;
  transition: all 0.3s ease;
}
.value-card:hover { background: var(--bg-glass); }
.value-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.value-card p {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 1024px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }

/* --- Pricing Cards --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.pricing-card {
  padding: 2.25rem;
  border-radius: 20px;
  position: relative;
  transition: all 0.3s ease;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.2);
}
.pricing-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--accent-gradient);
  color: white;
  white-space: nowrap;
}
.pricing-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.pricing-card .price {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0.75rem 0;
  letter-spacing: -0.02em;
}
.pricing-card .price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.pricing-card .tokens {
  font-size: 0.95rem;
  color: var(--accent-purple);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.pricing-features {
  list-style: none;
  margin-bottom: 1.5rem;
}
.pricing-features li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pricing-features li::before {
  content: '✓';
  color: var(--accent-purple);
  font-weight: 700;
  font-size: 0.8rem;
}

@media (max-width: 768px) { .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; } }

/* --- FAQ --- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.faq-question:hover { background: rgba(255,255,255,0.02); }
.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Final CTA --- */
.final-cta {
  text-align: center;
  padding: 6rem 1.5rem;
  position: relative;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}
.final-cta h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.final-cta p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta .hero-ctas { margin-bottom: 0; }

/* --- Trust Strip --- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.trust-badge-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-purple);
  font-size: 0.9rem;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-glass);
  padding: 3rem 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

/* ============================================
   PAGE: CREATE IMAGE / CREATE VIDEO
   ============================================ */

.create-page {
  padding: 6rem 1.5rem 3rem;
  max-width: 1360px;
  margin: 0 auto;
}
.create-header {
  margin-bottom: 2rem;
}
.create-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.create-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 0.35rem;
}
.create-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.create-controls {
  border-radius: 20px;
  padding: 1.75rem;
  position: sticky;
  top: 5rem;
}
.create-output {
  min-height: 500px;
}

/* Form Fields */
.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Segmented Control */
.segmented {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: rgba(255,255,255,0.02);
}
.segmented-btn {
  flex: 1;
  padding: 0.6rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.segmented-btn.active {
  background: var(--accent-gradient);
  color: white;
}

/* Select */
.form-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 0.9rem;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b6b80'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
}
.form-select:focus {
  outline: none;
  border-color: var(--accent-purple);
}

/* Textarea */
.form-textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
}
.form-textarea::placeholder {
  color: var(--text-muted);
}

/* Chips */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-glass);
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}
.chip.active, .chip:hover {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  border-color: rgba(139, 92, 246, 0.3);
}

/* Accordion */
.accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 0;
  background: none;
  border: none;
  border-top: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion-content.open { max-height: 500px; }
.accordion-inner {
  padding: 0.5rem 0 1rem;
}

/* Output Grid */
.output-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.output-card {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}
.output-card:hover { transform: translateY(-2px); }
.output-placeholder {
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.output-placeholder-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(139, 92, 246, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-purple);
}
.output-img {
  aspect-ratio: 4/5;
  width: 100%;
  object-fit: cover;
}
.output-actions {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.output-card:hover .output-actions { opacity: 1; }
.output-action-btn {
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: none;
  color: white;
  cursor: pointer;
  transition: background 0.2s ease;
}
.output-action-btn:hover { background: rgba(255,255,255,0.25); }

/* Prompt helpers */
.prompt-helpers {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

@media (max-width: 1024px) {
  .create-layout { grid-template-columns: 1fr; }
  .create-controls { position: static; }
  .output-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .output-grid { grid-template-columns: 1fr; }
}

/* ============================================
   PAGE: CREATE MODEL
   ============================================ */

.model-page {
  padding: 6rem 1.5rem 3rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2.5rem;
}
.stepper-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stepper-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  border: 2px solid var(--border-glass);
  color: var(--text-muted);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.stepper-step.active .stepper-circle {
  background: var(--accent-gradient);
  border-color: transparent;
  color: white;
}
.stepper-step.done .stepper-circle {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}
.stepper-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.stepper-step.active .stepper-label { color: var(--text-primary); }
.stepper-line {
  flex: 1;
  height: 2px;
  background: var(--border-glass);
  margin: 0 0.75rem;
}
.stepper-line.done { background: var(--accent-purple); }

@media (max-width: 640px) {
  .stepper-label { display: none; }
  .stepper-line { margin: 0 0.35rem; }
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--border-glass);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.upload-zone:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.03);
}
.upload-zone-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}
.upload-zone h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.upload-zone p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.upload-tips {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.1);
}
.upload-tips h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--accent-purple);
}
.upload-tips ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}
.upload-tips li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding-left: 1.1rem;
  position: relative;
}
.upload-tips li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-purple);
  font-size: 0.7rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .upload-tips ul { grid-template-columns: 1fr; }
}

/* Photo Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.photo-thumb {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.7rem;
}
.photo-thumb .remove-btn {
  position: absolute;
  top: 4px; right: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.8);
  color: white;
  border: none;
  font-size: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.photo-thumb:hover .remove-btn { opacity: 1; }

@media (max-width: 640px) {
  .photo-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Consent Box */
.consent-box {
  padding: 1.5rem;
  border-radius: 14px;
}
.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
}
.consent-item input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--accent-purple);
  margin-top: 2px;
  flex-shrink: 0;
}
.consent-item label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  cursor: pointer;
}

/* Model Status Card */
.model-status {
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
}
.model-status h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.model-status .status-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.75rem 0;
}
.status-training {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}
.status-ready {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}
.model-meta {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 1rem 0 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ============================================
   PAGE: DASHBOARD
   ============================================ */

.dashboard-page {
  padding: 6rem 1.5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: hidden;
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.dashboard-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.dash-card {
  padding: 1.75rem;
  border-radius: 16px;
  min-width: 0;
  overflow: hidden;
}
.dash-card h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.dash-card-full {
  grid-column: 1 / -1;
}
.dash-card-wide {
  grid-column: span 2;
}
.dash-balance {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.dash-balance span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Model mini card */
.model-mini {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem;
  border-radius: 12px;
  transition: background 0.2s ease;
  cursor: pointer;
}
.model-mini:hover { background: rgba(255,255,255,0.03); }
.model-mini-thumb {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(236,72,153,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-purple);
  flex-shrink: 0;
}
.model-mini-info {
  flex: 1;
}
.model-mini-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
}
.model-mini-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Recent generation mini */
.gen-mini {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
  position: relative;
}
.gen-mini:hover { transform: scale(1.05); }
.gen-mini-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--text-muted);
}
.gen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

/* Saved Prompt */
.prompt-item {
  padding: 0.85rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-glass);
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  cursor: pointer;
  transition: all 0.2s ease;
}
.prompt-item:hover {
  border-color: rgba(139, 92, 246, 0.2);
  background: rgba(139, 92, 246, 0.03);
}

/* Billing row */
.billing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.9rem;
}
.billing-row:last-child { border-bottom: none; }
.billing-row .amount {
  font-weight: 700;
}
.billing-row .date {
  color: var(--text-muted);
  font-size: 0.8rem;
}

@media (max-width: 1024px) {
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .dashboard-page { padding: 5rem 1rem 2rem; overflow-x: hidden; }
  .dashboard-header { flex-direction: column; align-items: stretch; }
  .dashboard-header > div { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .dashboard-header > div a { flex: 1; text-align: center; justify-content: center; font-size: 0.8rem; padding: 0.5rem 0.75rem; white-space: nowrap; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 1rem; max-width: 350px; margin: 0 auto; }
  .dash-card-wide { grid-column: auto; }
  .dash-card-full { grid-column: auto; }
  .dash-balance { font-size: 2rem; }
  .gen-grid { grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
  .model-mini { flex-wrap: wrap; gap: 0.5rem; }
  .model-mini-info { min-width: 0; flex: 1; }
  .model-mini-info h4 { font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; }
  .model-mini-info p { font-size: 0.75rem; overflow: hidden; text-overflow: ellipsis; }
  .model-mini > div:last-child { width: 100%; display: flex; gap: 0.35rem; flex-wrap: wrap; }
  .model-mini > div:last-child a,
  .model-mini > div:last-child span { flex: 1; text-align: center; justify-content: center; font-size: 0.7rem; white-space: nowrap; }
  .billing-row { flex-wrap: wrap; gap: 0.25rem; }
  .billing-row > div { min-width: 0; }
  .billing-row > div > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .billing-row .amount { margin-left: auto; }
  .usage-table th, .usage-table td { font-size: 0.75rem; padding: 0.5rem 0.35rem; white-space: nowrap; }
  .prompt-item { word-break: break-word; }
}
@media (max-width: 480px) {
  .dashboard-page { padding: 4.5rem 0.5rem 2rem; }
  .dash-card { padding: 1rem; border-radius: 12px; }
  .dash-balance { font-size: 1.5rem; }
  .gen-grid { grid-template-columns: repeat(3, 1fr); gap: 0.35rem; }
  .model-mini-thumb { width: 36px; height: 36px; }
  .prompt-item { font-size: 0.8rem; padding: 0.65rem; }
  .billing-row { font-size: 0.8rem; }
  .billing-row > div > div { font-size: 0.8rem; }
}

/* ============================================
   PAGE: PRICING
   ============================================ */

.pricing-page {
  padding: 6rem 1.5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Usage Table */
.usage-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.usage-table th, .usage-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-glass);
}
.usage-table th {
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.usage-table td { color: var(--text-secondary); }
.usage-table .token-cost {
  color: var(--accent-purple);
  font-weight: 700;
}

/* Subscription Cards */
.sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.sub-card {
  padding: 2rem;
  border-radius: 16px;
  position: relative;
}
.sub-card.featured {
  background: rgba(139, 92, 246, 0.06);
  border-color: rgba(139, 92, 246, 0.15);
}
.sub-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.sub-card .sub-price {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 0.5rem 0;
}
.sub-card .sub-price span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

@media (max-width: 768px) {
  .sub-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* Safety Card */
.safety-card {
  padding: 1.75rem;
  border-radius: 16px;
  border-left: 3px solid var(--accent-purple);
}
.safety-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.safety-card ul {
  list-style: none;
}
.safety-card li {
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
}
.safety-card li::before {
  content: '🛡';
  position: absolute;
  left: 0;
  font-size: 0.75rem;
}

/* Mature age gate */
.age-gate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  align-items: center;
  justify-content: center;
}
.age-gate-overlay.active { display: flex; }
.age-gate-box {
  max-width: 420px;
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
}
.age-gate-box h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.age-gate-box p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.age-gate-btns {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
  margin: 2rem 0;
}

/* Loading spinner */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 10px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Pulse for training */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

/* Focus styles */
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent-purple);
  outline-offset: 2px;
}

/* Tooltip */
[data-tooltip] {
  position: relative;
}
[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  white-space: nowrap;
  z-index: 50;
}

/* Utility: 2-column info grid */
.info-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ============================================
   GLOBAL MOBILE FIXES
   ============================================ */

@media (max-width: 768px) {
  /* Nav */
  .nav-inner { padding: 0 1rem; }
  .nav-right .btn-secondary { display: none; }

  /* Hero */
  .hero { padding: 6rem 1rem 3rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 0.9rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas a { width: 100%; text-align: center; justify-content: center; }

  /* Create pages */
  .create-page { padding: 5rem 1rem 2rem; }
  .create-header h1 { font-size: 1.5rem; }
  .create-controls { padding: 1.25rem; }

  /* Segmented controls */
  .segmented { flex-wrap: wrap; }
  .segmented-btn { flex: 1; min-width: 0; font-size: 0.8rem; padding: 0.5rem 0.5rem; text-align: center; }

  /* Chips */
  .chip { font-size: 0.75rem; padding: 0.35rem 0.65rem; }

  /* Footer */
  .footer { padding: 2rem 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }

  /* Pricing */
  .pricing-page { padding: 5rem 1rem 2rem; }

  /* Model page */
  .model-page { padding: 5rem 1rem 2rem; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }

  /* Age gate / modals */
  .age-gate-box { padding: 1.5rem; margin: 0 0.75rem; }

  /* Mockup section on homepage */
  .mockup-content { grid-template-columns: 1fr; }
  .mockup-sidebar { border-right: none; border-bottom: 1px solid var(--border-glass); }
  .mockup-preview { grid-template-columns: 1fr; }

  /* Info grids */
  .info-grid-2col { grid-template-columns: 1fr; gap: 0.75rem; }
}

@media (max-width: 480px) {
  /* Even tighter */
  .hero { padding: 5rem 0.75rem 2rem; }
  .hero h1 { font-size: 1.5rem; }

  .create-page { padding: 4.5rem 0.75rem 1.5rem; }
  .create-controls { padding: 1rem; }
  .form-textarea { font-size: 0.85rem; min-height: 80px; }

  .chip-group { gap: 0.35rem; }
  .chip { font-size: 0.7rem; padding: 0.3rem 0.55rem; }

  .output-card { border-radius: 10px; }

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

  .btn-primary, .btn-secondary { font-size: 0.85rem; padding: 0.6rem 1rem; }
  .btn-large { padding: 0.75rem 1rem; font-size: 0.9rem; }

  /* Token badge */
  .token-badge { padding: 0.3rem 0.6rem; font-size: 0.75rem; }
}
