/* ═══════════════════════════════════════════════════════════════════
   AXIS Avatar Foundry — Frontend Styles
   Theme: Dark mode, Meshy/Tripo-inspired (purple-cyan gradient accents)
   ═══════════════════════════════════════════════════════════════════ */

/* ─── RESET & VARS ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Base palette */
  --bg-primary:    #09090b;
  --bg-secondary:  #0f0f14;
  --bg-tertiary:   #16161d;
  --bg-card:       #1a1a24;
  --bg-card-hover: #22222e;
  --bg-elevated:   #1e1e2a;

  /* Borders */
  --border:        #2a2a3a;
  --border-light:  #33334a;
  --border-focus:  #7c3aed;

  /* Text */
  --text-primary:   #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-tertiary:  #71717a;
  --text-inverse:   #09090b;

  /* Accent gradient */
  --accent-start:  #7c3aed;
  --accent-mid:    #6d28d9;
  --accent-end:    #06b6d4;
  --accent-glow:   rgba(124, 58, 237, 0.25);

  /* Semantic */
  --success:  #22c55e;
  --warning:  #eab308;
  --error:    #ef4444;
  --info:     #3b82f6;

  /* Layout */
  --nav-height: 64px;
  --sidebar-width: 420px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px var(--accent-glow);

  /* Font */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body { min-height: 100vh; overflow-x: hidden; }

a { color: var(--accent-start); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-end); }

img { max-width: 100%; display: block; }

::selection { background: var(--accent-start); color: #fff; }

.hidden { display: none !important; }

/* ─── UTILITIES ────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent-start) 0%, var(--accent-end) 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: 10px 20px;
  font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-icon { width: 16px; height: 16px; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-start), var(--accent-mid));
  color: #fff;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}
.btn-primary:hover:not(:disabled) {
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.5);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--accent-start);
  color: var(--accent-start);
  background: rgba(124, 58, 237, 0.06);
}

.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border: none;
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-danger {
  background: var(--error); color: #fff;
}
.btn-danger:hover { background: #dc2626; }

.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ─── NAVBAR ───────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; padding: 0 24px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text-primary);
}
.logo-icon { width: 32px; height: 32px; }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.logo-accent { color: var(--accent-end); }

.nav-links { display: flex; gap: 4px; }
.nav-link {
  padding: 8px 16px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: var(--bg-tertiary); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-auth { display: flex; align-items: center; gap: 8px; }

.token-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 99px;
  background: var(--bg-tertiary); border: 1px solid var(--border);
  color: var(--accent-end); font-weight: 600; font-size: 0.85rem;
  cursor: pointer; transition: all 0.2s;
}
.token-badge:hover { border-color: var(--accent-end); box-shadow: 0 0 12px rgba(6,182,212,0.2); }
.token-icon { width: 16px; height: 16px; }

.avatar-menu { position: relative; }
.avatar-btn {
  background: none; border: none; cursor: pointer; padding: 0;
}
.avatar-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.85rem;
  transition: box-shadow 0.2s;
}
.avatar-circle:hover { box-shadow: 0 0 12px var(--accent-glow); }

.dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 220px; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 8px 0;
  z-index: 200;
}
.dropdown-user-info { padding: 12px 16px; }
.dropdown-name { display: block; font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.dropdown-email { display: block; font-size: 0.8rem; color: var(--text-tertiary); margin-top: 2px; }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.dropdown-item {
  display: block; padding: 8px 16px; color: var(--text-secondary); font-size: 0.88rem;
  transition: all 0.15s;
}
.dropdown-item:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.dropdown-danger { color: var(--error); }
.dropdown-danger:hover { background: rgba(239,68,68,0.1); color: var(--error); }

.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-mobile-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text-secondary);
  margin: 5px 0; transition: all 0.3s;
}

/* ─── AUTH MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
  max-width: 440px; width: 100%; position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--text-tertiary);
  font-size: 1.4rem; cursor: pointer; line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text-primary); }

.auth-header { text-align: center; margin-bottom: 28px; }
.auth-header h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.auth-header p { color: var(--text-secondary); font-size: 0.92rem; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }
.form-group input, .form-group textarea, .form-group select {
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--bg-secondary); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 0.92rem; font-family: var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent-start);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.form-group input::placeholder, .form-group textarea::placeholder {
  color: var(--text-tertiary);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-check { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--text-secondary); }
.form-check input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--accent-start);
}

.password-strength {
  height: 3px; background: var(--border); border-radius: 2px; margin-top: 4px; overflow: hidden;
}
.password-strength::after {
  content: ''; display: block; height: 100%; width: 0;
  background: var(--error); border-radius: 2px;
  transition: width 0.3s, background 0.3s;
}
.password-strength.strength-1::after { width: 25%; background: var(--error); }
.password-strength.strength-2::after { width: 50%; background: var(--warning); }
.password-strength.strength-3::after { width: 75%; background: #eab308; }
.password-strength.strength-4::after { width: 100%; background: var(--success); }

.auth-switch { text-align: center; font-size: 0.88rem; color: var(--text-secondary); margin-top: 4px; }

/* ─── HERO ─────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.35;
  animation: orbFloat 20s ease-in-out infinite;
}
.hero-orb-1 { width: 600px; height: 600px; background: var(--accent-start); top: -200px; left: -100px; }
.hero-orb-2 { width: 500px; height: 500px; background: var(--accent-end); bottom: -200px; right: -100px; animation-delay: -7s; }
.hero-orb-3 { width: 400px; height: 400px; background: #8b5cf6; top: 40%; left: 50%; animation-delay: -14s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
}

.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 99px;
  background: rgba(124, 58, 237, 0.15); border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--accent-start); font-size: 0.82rem; font-weight: 600;
  margin-bottom: 24px;
}
.hero-title {
  font-size: 3.5rem; font-weight: 800; line-height: 1.1;
  letter-spacing: -0.03em; margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 1.15rem; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 36px; max-width: 520px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
  display: flex; gap: 40px;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  display: block; font-size: 1.8rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stat-label { font-size: 0.8rem; color: var(--text-tertiary); font-weight: 500; }

.hero-visual {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 45%; max-width: 600px; z-index: 1;
}
.hero-3d-frame {
  aspect-ratio: 1; border-radius: var(--radius-xl);
  background: var(--bg-card); border: 1px solid var(--border);
  overflow: hidden; position: relative;
}
.hero-model-placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%; position: relative;
}
.hero-glow {
  position: absolute; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.3) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

/* Wireframe Avatar CSS Art */
.wireframe-avatar { position: relative; width: 120px; height: 240px; }
.wireframe-head {
  width: 48px; height: 52px; border: 2px solid var(--accent-start);
  border-radius: 50%; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(124,58,237,0.3);
}
.wireframe-body {
  width: 64px; height: 80px; border: 2px solid var(--accent-end);
  border-radius: 8px 8px 4px 4px;
  position: absolute; top: 56px; left: 50%; transform: translateX(-50%);
  box-shadow: 0 0 15px rgba(6,182,212,0.2);
}
.wireframe-arm {
  width: 2px; height: 70px; background: var(--accent-start);
  position: absolute; top: 60px;
  box-shadow: 0 0 8px rgba(124,58,237,0.4);
}
.wireframe-arm-l { left: 18px; transform: rotate(10deg); }
.wireframe-arm-r { right: 18px; transform: rotate(-10deg); }
.wireframe-leg {
  width: 2px; height: 90px; background: var(--accent-end);
  position: absolute; top: 140px;
  box-shadow: 0 0 8px rgba(6,182,212,0.4);
}
.wireframe-leg-l { left: 40px; transform: rotate(5deg); }
.wireframe-leg-r { right: 40px; transform: rotate(-5deg); }

.wireframe-result { transform: scale(0.8); }

/* Turntable rotation */
@keyframes turntable {
  from { transform: scale(0.8) rotateY(0deg); }
  to   { transform: scale(0.8) rotateY(360deg); }
}
.turntable {
  animation: turntable 8s linear infinite;
  transform-style: preserve-3d;
}
.wireframe-avatar.view-wireframe .wireframe-head,
.wireframe-avatar.view-wireframe .wireframe-body,
.wireframe-avatar.view-wireframe .wireframe-arm,
.wireframe-avatar.view-wireframe .wireframe-leg {
  background: transparent !important;
  border: 1.5px solid var(--accent-end);
  box-shadow: 0 0 12px rgba(6,182,212,0.5);
}
.wireframe-avatar.view-skeleton .wireframe-head  { border-radius: 50%; background: transparent !important; border: 2px solid #facc15; box-shadow: 0 0 10px rgba(250,204,21,0.5); }
.wireframe-avatar.view-skeleton .wireframe-body   { background: transparent !important; border: none; box-shadow: none; width: 2px !important; background: #facc15 !important; }
.wireframe-avatar.view-skeleton .wireframe-arm    { background: #facc15 !important; width: 2px !important; box-shadow: 0 0 6px rgba(250,204,21,0.4); }
.wireframe-avatar.view-skeleton .wireframe-leg    { background: #facc15 !important; width: 2px !important; box-shadow: 0 0 6px rgba(250,204,21,0.4); }
.wireframe-avatar.view-skeleton::before {
  content: ""; display: block; position: absolute; top: 45px; left: 50%; transform: translateX(-50%);
  width: 2px; height: 95px; background: #facc15; box-shadow: 0 0 6px rgba(250,204,21,0.4);
}

/* ─── SECTIONS ─────────────────────────────────────────────────── */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-secondary); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); font-size: 1.05rem; max-width: 500px; margin: 0 auto; }

/* ─── FEATURES GRID ────────────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-icon-gen   { background: rgba(124,58,237,0.15); color: #a78bfa; }
.feature-icon-rig   { background: rgba(6,182,212,0.15); color: #22d3ee; }
.feature-icon-export { background: rgba(59,130,246,0.15); color: #60a5fa; }
.feature-icon-morph  { background: rgba(236,72,153,0.15); color: #f472b6; }
.feature-icon-lod    { background: rgba(234,179,8,0.15); color: #fbbf24; }
.feature-icon-prov   { background: rgba(34,197,94,0.15); color: #4ade80; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* ─── PLATFORMS ROW ────────────────────────────────────────────── */
.platforms-row {
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
}
.platform-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 32px 48px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all 0.3s; cursor: default;
}
.platform-card:hover { border-color: var(--accent-start); transform: translateY(-2px); }
.platform-logo svg { width: 40px; height: 40px; }
.platform-card span { font-weight: 600; color: var(--text-secondary); }

/* ─── CTA SECTION ──────────────────────────────────────────────── */
.cta-section { padding: 80px 0; }
.cta-card {
  text-align: center; padding: 80px 40px;
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(6,182,212,0.08));
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius-xl);
}
.cta-card h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.cta-card p { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 32px; }

/* ─── GENERATE PAGE ────────────────────────────────────────────── */
.page { padding-top: var(--nav-height); }

.generate-layout {
  display: flex; min-height: calc(100vh - var(--nav-height));
}
.gen-sidebar {
  width: var(--sidebar-width); min-width: var(--sidebar-width);
  background: var(--bg-secondary); border-right: 1px solid var(--border);
  overflow-y: auto; height: calc(100vh - var(--nav-height));
  position: sticky; top: var(--nav-height);
}
.gen-sidebar-inner { padding: 28px 24px; }
.gen-sidebar-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 24px; }

.gen-mode-tabs { display: flex; gap: 4px; margin-bottom: 24px; }
.gen-mode-tab {
  flex: 1; padding: 8px 12px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; font-family: var(--font);
}
.gen-mode-tab.active {
  background: var(--accent-start); border-color: var(--accent-start);
  color: #fff;
}

.gen-textarea {
  width: 100%; resize: vertical; min-height: 80px;
}
.gen-prompt-hints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hint-chip {
  padding: 4px 12px; border-radius: 99px;
  background: var(--bg-tertiary); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.78rem; cursor: pointer;
  transition: all 0.2s;
}
.hint-chip:hover { border-color: var(--accent-start); color: var(--accent-start); }

/* Category Tabs */
.gen-category-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.cat-tab {
  padding: 5px 14px; border-radius: 99px;
  background: var(--bg-tertiary); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.8rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s; font-family: var(--font);
}
.cat-tab.active { background: var(--accent-start); border-color: var(--accent-start); color: #fff; }

/* Preset Grid */
.preset-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin-top: 16px; max-height: 300px; overflow-y: auto;
  padding-right: 4px;
}
.preset-card {
  padding: 14px; border-radius: var(--radius-md);
  background: var(--bg-card); border: 1px solid var(--border);
  cursor: pointer; transition: all 0.2s; text-align: center;
}
.preset-card:hover { border-color: var(--border-light); }
.preset-card.selected { border-color: var(--accent-start); background: rgba(124,58,237,0.08); }
.preset-card-icon { font-size: 1.8rem; margin-bottom: 6px; }
.preset-card-name { font-size: 0.82rem; font-weight: 600; }
.preset-card-cat { font-size: 0.72rem; color: var(--text-tertiary); }

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius-md);
  padding: 40px 24px; text-align: center;
  transition: all 0.2s; cursor: pointer;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--accent-start); background: rgba(124,58,237,0.04);
}
.upload-icon { width: 40px; height: 40px; color: var(--text-tertiary); margin: 0 auto 12px; }
.upload-zone p { font-weight: 500; margin-bottom: 4px; }
.upload-formats { font-size: 0.78rem; color: var(--text-tertiary); display: block; margin-bottom: 16px; }
.upload-file-info {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-top: 12px;
}
.upload-file-name { font-weight: 500; font-size: 0.88rem; }

/* Platform Select */
.platform-select { display: flex; gap: 6px; }
.plat-btn {
  flex: 1; padding: 8px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; font-family: var(--font);
}
.plat-btn.active {
  border-color: var(--accent-end); color: var(--accent-end);
  background: rgba(6,182,212,0.08);
}

/* Toggle Rows */
.gen-toggles { display: flex; flex-direction: column; gap: 10px; }
.toggle-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; cursor: pointer;
}
.toggle-row input[type="checkbox"] { display: none; }
.toggle-slider {
  width: 36px; height: 20px; border-radius: 10px;
  background: var(--border); position: relative;
  transition: background 0.2s; flex-shrink: 0;
}
.toggle-slider::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--text-secondary); transition: all 0.2s;
}
.toggle-row input:checked + .toggle-slider {
  background: var(--accent-start);
}
.toggle-row input:checked + .toggle-slider::after {
  left: 18px; background: #fff;
}
.token-cost { margin-left: auto; color: var(--text-tertiary); font-size: 0.78rem; }

.gen-divider { height: 1px; background: var(--border); margin: 24px 0; }

/* Cost Summary */
.gen-cost-summary {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px; margin-bottom: 20px;
}
.cost-line {
  display: flex; justify-content: space-between;
  font-size: 0.84rem; color: var(--text-secondary);
  padding: 4px 0;
}
.cost-total {
  display: flex; justify-content: space-between;
  font-size: 1rem; font-weight: 700; color: var(--text-primary);
  padding-top: 10px; margin-top: 8px;
  border-top: 1px solid var(--border);
}

/* Generate Button */
.gen-submit { margin-top: 8px; }
.spinner {
  display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Main Area */
.gen-main {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px; min-height: calc(100vh - var(--nav-height));
}

/* Empty State */
.gen-empty { text-align: center; max-width: 400px; }
.gen-empty-icon { width: 120px; height: 120px; margin: 0 auto 24px; }
.gen-empty h3 { font-size: 1.2rem; margin-bottom: 8px; }
.gen-empty p { color: var(--text-secondary); font-size: 0.92rem; }

/* Progress State */
.gen-progress { width: 100%; max-width: 500px; }
.progress-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
  text-align: center;
}
.progress-card h3 { margin-bottom: 24px; }
.progress-bar-track {
  height: 6px; background: var(--bg-tertiary); border-radius: 3px;
  overflow: hidden; margin-bottom: 16px;
}
.progress-bar-fill {
  height: 100%; width: 0%; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  transition: width 0.5s ease;
}
.progress-stage { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 20px; }
.progress-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-bottom: 20px;
}
.p-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.72rem; color: var(--text-tertiary);
}
.p-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border); transition: all 0.3s;
}
.p-step.active .p-dot { background: var(--accent-start); box-shadow: 0 0 8px var(--accent-glow); }
.p-step.done .p-dot { background: var(--success); }
.p-step.active, .p-step.done { color: var(--text-primary); }
.progress-eta { color: var(--text-tertiary); font-size: 0.82rem; }

/* Result State */
.gen-result { width: 100%; max-width: 800px; }
.result-header { margin-bottom: 24px; }
.result-title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.result-title-row h3 { font-size: 1.4rem; font-weight: 700; }
.result-badges { display: flex; gap: 8px; }
.badge {
  padding: 3px 10px; border-radius: 99px; font-size: 0.75rem; font-weight: 600;
}
.badge-success { background: rgba(34,197,94,0.15); color: var(--success); }
.badge-info { background: rgba(59,130,246,0.15); color: var(--info); }
.result-actions { display: flex; gap: 8px; }

/* Viewer */
.result-viewer {
  aspect-ratio: 16/10; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  overflow: hidden; position: relative; margin-bottom: 24px;
}
.viewer-placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%; background:
    radial-gradient(circle at 50% 50%, rgba(124,58,237,0.06) 0%, transparent 60%);
}
.viewer-controls {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  border-radius: 99px; padding: 4px;
}
.viewer-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: transparent; border: none; color: var(--text-secondary);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.viewer-btn svg { width: 18px; height: 18px; }
.viewer-btn:hover { color: var(--text-primary); }
.viewer-btn.active { background: var(--accent-start); color: #fff; }

/* Export Dropdown */
.export-dropdown-wrap { position: relative; }
.export-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 50;
  min-width: 280px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  padding: 8px 0; max-height: 420px; overflow-y: auto;
}
.export-dropdown-section { padding: 8px 0; border-bottom: 1px solid var(--border); }
.export-dropdown-section:last-child { border-bottom: none; }
.export-section-label {
  display: block; padding: 4px 16px 6px; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary);
}
.export-opt {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 16px; background: none; border: none; cursor: pointer;
  color: var(--text-primary); font-size: 0.88rem; text-align: left;
  transition: background 0.15s;
}
.export-opt:hover { background: rgba(124,58,237,0.1); }
.export-opt.active { color: var(--accent-start); }
.export-tag {
  margin-left: auto; font-size: 0.72rem; padding: 1px 6px;
  border-radius: 4px; background: rgba(124,58,237,0.15); color: var(--accent-start);
  font-weight: 600;
}
.btn-chevron { width: 14px; height: 14px; margin-left: 4px; opacity: 0.7; }

/* Image Preview */
.image-preview-info {
  display: flex; align-items: center; gap: 16px; padding: 12px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.image-preview-thumb {
  width: 80px; height: 80px; border-radius: var(--radius-md); overflow: hidden; flex-shrink: 0;
  border: 1px solid var(--border);
}
.image-preview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-meta { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-hint { font-size: 0.82rem; color: var(--text-tertiary); margin-top: -4px; }

/* Stats Grid */
.result-stats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px; text-align: center;
}
.stat-label { display: block; font-size: 0.75rem; color: var(--text-tertiary); margin-bottom: 4px; }
.stat-value { display: block; font-size: 1.1rem; font-weight: 700; }

/* ─── PRICING PAGE ─────────────────────────────────────────────── */
.billing-toggle {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: 48px;
}
.billing-label { font-size: 0.9rem; color: var(--text-secondary); }
.billing-switch { position: relative; width: 48px; height: 26px; display: inline-block; }
.billing-switch input { opacity: 0; width: 0; height: 0; }
.billing-slider {
  position: absolute; inset: 0; border-radius: 13px;
  background: var(--border); cursor: pointer; transition: background 0.2s;
}
.billing-slider::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--text-primary); transition: left 0.2s;
}
.billing-switch input:checked + .billing-slider { background: var(--accent-start); }
.billing-switch input:checked + .billing-slider::after { left: 25px; }
.save-badge {
  padding: 2px 8px; border-radius: 99px; font-size: 0.72rem; font-weight: 700;
  background: rgba(34,197,94,0.15); color: var(--success);
}

.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-bottom: 80px;
}
.price-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
  position: relative; transition: all 0.3s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card-featured {
  border-color: var(--accent-start);
  box-shadow: var(--shadow-glow);
}
.price-popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 16px; border-radius: 99px;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-mid));
  color: #fff; font-size: 0.78rem; font-weight: 700;
  white-space: nowrap;
}
.price-card-header { margin-bottom: 20px; }
.price-card-header h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.price-card-header p { color: var(--text-secondary); font-size: 0.88rem; }
.price-amount { margin-bottom: 8px; }
.price-dollar { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.03em; }
.price-period { color: var(--text-tertiary); font-size: 0.88rem; }
.price-tokens { margin-bottom: 24px; color: var(--text-secondary); font-size: 0.92rem; }
.token-amount { color: var(--accent-end); font-weight: 700; }

.price-features { list-style: none; margin-bottom: 28px; }
.price-features li {
  padding: 6px 0 6px 28px; font-size: 0.88rem; position: relative;
  color: var(--text-secondary);
}
.feat-yes::before, .feat-no::before {
  position: absolute; left: 0; top: 6px; font-size: 0.9rem;
}
.feat-yes::before { content: '✓'; color: var(--success); }
.feat-no::before { content: '×'; color: var(--text-tertiary); }
.feat-no { color: var(--text-tertiary); }

/* Token Packs */
.token-packs-section {
  text-align: center; margin-bottom: 60px;
}
.token-packs-section h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.token-packs-sub { color: var(--text-secondary); margin-bottom: 32px; }

.token-packs-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.token-pack {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 20px;
  text-align: center; position: relative; transition: all 0.3s;
}
.token-pack:hover { border-color: var(--border-light); transform: translateY(-2px); }
.token-pack-popular { border-color: var(--accent-start); }
.pack-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  padding: 3px 12px; border-radius: 99px;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: #fff; font-size: 0.72rem; font-weight: 700;
}
.pack-amount { display: block; font-size: 1.6rem; font-weight: 800; color: var(--accent-end); }
.pack-label { display: block; font-size: 0.78rem; color: var(--text-tertiary); margin-bottom: 8px; }
.pack-price { display: block; font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.pack-unit { display: block; font-size: 0.78rem; color: var(--text-tertiary); margin-bottom: 16px; }

/* Token Cost Table */
.token-cost-table { max-width: 600px; margin: 0 auto; }
.token-cost-table h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; text-align: center; }
.token-cost-table table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
}
.token-cost-table th, .token-cost-table td {
  padding: 12px 20px; text-align: left; font-size: 0.88rem;
}
.token-cost-table th {
  background: var(--bg-tertiary); color: var(--text-secondary); font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.token-cost-table td { border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.token-cost-table tr:last-child td { border-bottom: none; }
.token-cost-table td:last-child { text-align: right; font-weight: 600; color: var(--accent-end); }

/* ─── GALLERY ──────────────────────────────────────────────────── */
.gallery-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px; gap: 16px; flex-wrap: wrap;
}
.gallery-filters { display: flex; gap: 6px; }
.filter-btn {
  padding: 6px 16px; border-radius: 99px;
  background: var(--bg-tertiary); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.84rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s; font-family: var(--font);
}
.filter-btn.active { background: var(--accent-start); border-color: var(--accent-start); color: #fff; }

.gallery-search-input {
  padding: 8px 16px; border-radius: 99px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 0.88rem; font-family: var(--font);
  width: 260px; outline: none; transition: border-color 0.2s;
}
.gallery-search-input:focus { border-color: var(--accent-start); }

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

.gallery-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  transition: all 0.3s;
}
.gallery-card:hover { border-color: var(--accent-start); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.gallery-thumb {
  aspect-ratio: 1; background: var(--bg-tertiary);
  display: flex; align-items: center; justify-content: center;
}
.gallery-card-body { padding: 14px; }
.gallery-card-name { font-weight: 600; font-size: 0.88rem; margin-bottom: 4px; }
.gallery-card-meta { font-size: 0.78rem; color: var(--text-tertiary); display: flex; gap: 8px; }

.gallery-empty {
  grid-column: 1 / -1; text-align: center; padding: 80px 20px;
}
.gallery-empty-icon { width: 80px; height: 80px; color: var(--text-tertiary); margin: 0 auto 16px; }
.gallery-empty h3 { margin-bottom: 8px; }
.gallery-empty p { color: var(--text-secondary); margin-bottom: 20px; }

/* ─── DASHBOARD ────────────────────────────────────────────────── */
.dash-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.dash-stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.dash-stat-label { display: block; font-size: 0.82rem; color: var(--text-tertiary); margin-bottom: 8px; }
.dash-stat-value { display: block; font-size: 2rem; font-weight: 800; margin-bottom: 4px; }
.dash-stat-link { font-size: 0.82rem; }

.dash-section { margin-bottom: 40px; }
.dash-section h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }

.activity-list { display: flex; flex-direction: column; gap: 8px; }
.activity-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-md);
}
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-start); }
.activity-text { flex: 1; font-size: 0.88rem; }
.activity-time { font-size: 0.78rem; color: var(--text-tertiary); }
.activity-empty { color: var(--text-tertiary); padding: 24px; text-align: center; }

.usage-bar-container { max-width: 600px; }
.usage-bar { height: 8px; background: var(--bg-tertiary); border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.usage-bar-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  transition: width 0.5s ease;
}
.usage-labels { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-tertiary); }

/* ─── DOCS ─────────────────────────────────────────────────────── */
.docs-layout { display: flex; gap: 40px; }
.docs-nav {
  width: 200px; min-width: 200px; display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: calc(var(--nav-height) + 24px); align-self: flex-start;
}
.docs-nav-link {
  padding: 8px 14px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 0.88rem; transition: all 0.2s;
}
.docs-nav-link:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.docs-nav-link.active { background: rgba(124,58,237,0.1); color: var(--accent-start); font-weight: 600; }

.docs-content { flex: 1; min-width: 0; }
.docs-section { max-width: 700px; }
.docs-section h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; }
.docs-section h4 { font-size: 1.05rem; font-weight: 600; margin: 24px 0 12px; }
.docs-section p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.7; }
.docs-section code {
  background: var(--bg-tertiary); padding: 2px 6px; border-radius: 4px;
  font-size: 0.85rem; color: var(--accent-end);
}

.code-block {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden; margin-bottom: 20px;
}
.code-header {
  padding: 8px 16px; background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 600; color: var(--text-secondary);
}
.code-block pre {
  padding: 16px; overflow-x: auto; font-size: 0.85rem; line-height: 1.6;
}
.code-block code {
  background: none; padding: 0; border-radius: 0;
  color: var(--text-primary); font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
}

.docs-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.docs-table th, .docs-table td {
  padding: 10px 16px; text-align: left; font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
}
.docs-table th { color: var(--text-secondary); font-weight: 600; }
.docs-table td { color: var(--text-secondary); }
.method-get { color: var(--success); font-weight: 700; font-size: 0.82rem; }
.method-post { color: var(--info); font-weight: 700; font-size: 0.82rem; }

/* ─── SETTINGS ─────────────────────────────────────────────────── */
.settings-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; margin-bottom: 24px;
}
.settings-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.settings-form { display: flex; flex-direction: column; gap: 16px; }
.settings-danger { border-color: rgba(239,68,68,0.3); }
.settings-danger h3 { color: var(--error); }
.settings-danger p { color: var(--text-secondary); margin-bottom: 16px; font-size: 0.92rem; }

/* ─── API KEYS ─────────────────────────────────────────────────── */
.api-keys-toolbar { margin-bottom: 24px; }
.api-keys-list { display: flex; flex-direction: column; gap: 12px; }
.api-key-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.api-key-info { flex: 1; }
.api-key-label { font-weight: 600; font-size: 0.92rem; display: block; }
.api-key-value { font-family: monospace; font-size: 0.82rem; color: var(--text-tertiary); margin-top: 4px; display: block; }
.api-key-date { font-size: 0.78rem; color: var(--text-tertiary); margin-top: 2px; display: block; }
.api-key-empty { text-align: center; padding: 40px; color: var(--text-tertiary); }

/* ─── CHECKOUT MODAL ───────────────────────────────────────────── */
.checkout-modal { max-width: 420px; }
.checkout-header { text-align: center; margin-bottom: 28px; }
.checkout-header h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.checkout-header p { color: var(--text-secondary); }
.checkout-form { display: flex; flex-direction: column; gap: 16px; }
.checkout-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-top: 1px solid var(--border);
  font-weight: 700; font-size: 1.1rem;
}
.checkout-price { color: var(--accent-end); }
.checkout-secure {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 0.8rem; color: var(--text-tertiary); margin-top: 8px;
}
.lock-icon { width: 14px; height: 14px; }

/* ─── TOAST ────────────────────────────────────────────────────── */
.toast-container {
  position: fixed; top: calc(var(--nav-height) + 16px); right: 24px;
  z-index: 600; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 14px 20px; border-radius: var(--radius-md);
  background: var(--bg-elevated); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); min-width: 280px; max-width: 400px;
  font-size: 0.88rem; display: flex; align-items: center; gap: 10px;
  animation: toastIn 0.3s ease;
}
.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--error); }
.toast-info { border-left: 3px solid var(--info); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.toast-exit { animation: toastOut 0.2s ease forwards; }
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(20px); }
}

/* ─── FOOTER ───────────────────────────────────────────────────── */
.footer {
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  padding: 60px 24px 0;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: 40px;
  padding-bottom: 40px;
}
.footer-brand { max-width: 280px; }
.footer-brand .logo-text { font-size: 1.1rem; display: block; margin-bottom: 8px; }
.footer-brand p { color: var(--text-tertiary); font-size: 0.88rem; }
.footer-links { display: flex; gap: 60px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 4px; }
.footer-col a { color: var(--text-tertiary); font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0; text-align: center;
  font-size: 0.82rem; color: var(--text-tertiary);
  max-width: 1200px; margin: 0 auto;
}

/* ─── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .hero-visual { width: 40%; }
  .hero-title { font-size: 2.8rem; }
}

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .token-packs-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .result-stats { grid-template-columns: repeat(3, 1fr); }
  .dash-stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { flex-direction: column; text-align: center; padding-bottom: 40px; }
  .hero-content { max-width: 100%; }
  .hero-subtitle { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { position: relative; width: 80%; max-width: 300px; margin-top: 40px; transform: none; right: auto; top: auto; }

  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--bg-secondary); border-bottom: 1px solid var(--border); padding: 16px; gap: 8px; z-index: 99; }
  .nav-links.nav-open { display: flex; }
  .nav-mobile-toggle { display: block; }

  .generate-layout { flex-direction: column; }
  .gen-sidebar {
    width: 100%; min-width: auto; height: auto;
    position: relative; top: auto;
    border-right: none; border-bottom: 1px solid var(--border);
  }
  .gen-main { min-height: 50vh; }

  .features-grid { grid-template-columns: 1fr; }
  .platforms-row { gap: 16px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .token-packs-grid { grid-template-columns: repeat(2, 1fr); }
  .result-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-stats-row { grid-template-columns: 1fr; }

  .docs-layout { flex-direction: column; }
  .docs-nav { width: 100%; flex-direction: row; flex-wrap: wrap; position: static; }

  .footer-inner { flex-direction: column; }
  .footer-links { gap: 32px; }

  .modal { padding: 28px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .platform-select { flex-wrap: wrap; }
  .progress-steps { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  .result-stats { grid-template-columns: 1fr; }
}
