/* ═══════════════════════════════════════════════════════════════════
   AI SaaS Premium Styles
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --primary: #6C5CE7;
  --primary-light: #A29BFE;
  --primary-dark: #5A4BD1;
  --accent: #00D2FF;
  --accent2: #7C4DFF;
  --surface: rgba(255,255,255,0.72);
  --surface-hover: rgba(255,255,255,0.88);
  --text: #1a1a2e;
  --text-secondary: #64748b;
  --border: rgba(108,92,231,0.12);
  --shadow: 0 8px 32px rgba(108,92,231,0.10);
  --shadow-lg: 0 20px 60px rgba(108,92,231,0.15);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --gradient-primary: linear-gradient(135deg, #6C5CE7 0%, #00D2FF 100%);
  --gradient-mesh: radial-gradient(ellipse at 20% 50%, rgba(108,92,231,0.08) 0%, transparent 50%),
                   radial-gradient(ellipse at 80% 20%, rgba(0,210,255,0.08) 0%, transparent 50%),
                   radial-gradient(ellipse at 50% 80%, rgba(124,77,255,0.06) 0%, transparent 50%);
}

* { margin:0; padding:0; box-sizing:border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  background: #f8f9ff;
  background-image: var(--gradient-mesh);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Three.js Canvas ──────────────────────────────────────────── */
#three-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ─── Animated Gradient Blobs ──────────────────────────────────── */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
  animation: blobFloat 20s ease-in-out infinite;
}
.blob-1 {
  width: 500px; height: 500px;
  background: linear-gradient(135deg, #6C5CE7, #00D2FF);
  top: -10%; left: -5%;
  animation-delay: 0s;
}
.blob-2 {
  width: 400px; height: 400px;
  background: linear-gradient(135deg, #7C4DFF, #A29BFE);
  top: 50%; right: -8%;
  animation-delay: -7s;
}
.blob-3 {
  width: 350px; height: 350px;
  background: linear-gradient(135deg, #00D2FF, #6C5CE7);
  bottom: -10%; left: 30%;
  animation-delay: -14s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  25% { transform: translate(30px,-40px) scale(1.05); }
  50% { transform: translate(-20px,30px) scale(0.95); }
  75% { transform: translate(40px,20px) scale(1.03); }
}

/* ─── Navbar ───────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(108,92,231,0.08);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.navbar.scrolled {
  height: 60px;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 4px 30px rgba(108,92,231,0.08);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  box-shadow: 0 6px 16px rgba(108, 92, 231, 0.22);
}
.nav-logo span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 10px;
  transition: all 0.3s ease;
}
.nav-links a:hover {
  color: var(--primary);
  background: rgba(108,92,231,0.06);
}
.nav-links a.active {
  color: var(--primary);
  background: rgba(108,92,231,0.10);
  font-weight: 600;
}
.nav-cta {
  background: var(--gradient-primary) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 15px rgba(108,92,231,0.3);
  transition: all 0.3s ease !important;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108,92,231,0.4) !important;
  background: var(--gradient-primary) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ─── Main Content ─────────────────────────────────────────────── */
.main-content {
  position: relative;
  z-index: 1;
  padding-top: 72px;
}

/* ─── Hero Section ─────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 80px 24px 40px;
  max-width: 800px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108,92,231,0.08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 24px;
  border: 1px solid rgba(108,92,231,0.12);
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: -1.5px;
}
.hero h1 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

/* ─── Card (Glass) ─────────────────────────────────────────────── */
.card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.card-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ─── Upload Zone ──────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed rgba(108,92,231,0.25);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.35s ease;
  background: rgba(108,92,231,0.02);
  position: relative;
  overflow: hidden;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(108,92,231,0.05);
  transform: scale(1.01);
}
.upload-zone.dragover {
  box-shadow: inset 0 0 30px rgba(108,92,231,0.08);
}
.upload-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(108,92,231,0.25);
  animation: iconFloat 3s ease-in-out infinite;
}
.upload-icon svg { width: 32px; height: 32px; color: #fff; }

@keyframes iconFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.upload-zone h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.upload-zone p {
  font-size: 14px;
  color: var(--text-secondary);
}
.upload-zone input[type="file"] {
  display: none;
}

/* ─── Before/After Slider ──────────────────────────────────────── */
.comparison-container {
  position: relative;
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 30px 0;
  display: none;
  box-shadow: var(--shadow);
}
.comparison-container.visible { display: block; }
.comparison-container img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.comparison-before {
  position: absolute;
  top: 0; left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}
.comparison-before img {
  width: auto;
  min-width: 100%;
  height: 100%;
  object-fit: cover;
}
.comparison-slider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: #fff;
  cursor: ew-resize;
  z-index: 10;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
  transform: translateX(-50%);
}
.comparison-slider::after {
  content: '⟨⟩';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 40px; height: 40px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  font-weight: 700;
}
.comparison-label {
  position: absolute;
  top: 16px;
  padding: 4px 14px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  z-index: 5;
  backdrop-filter: blur(8px);
}
.label-before { left: 16px; }
.label-after { right: 16px; }

/* ─── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(108,92,231,0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(108,92,231,0.4);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(108,92,231,0.3);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.btn-secondary:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108,92,231,0.12);
}
.btn-icon {
  width: 44px; height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}
.btn svg { width: 18px; height: 18px; }

/* ─── Options Row ──────────────────────────────────────────────── */
.options-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  align-items: center;
}
.color-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(108,92,231,0.04);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.color-picker-wrapper label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.color-picker-wrapper input[type="color"] {
  width: 32px; height: 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: none;
  padding: 0;
}

/* ─── Batch Upload ─────────────────────────────────────────────── */
.batch-list {
  margin-top: 24px;
}
.batch-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(108,92,231,0.03);
  border-radius: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.batch-item:hover {
  background: rgba(108,92,231,0.06);
}
.batch-thumb {
  width: 48px; height: 48px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.batch-info {
  flex: 1;
  min-width: 0;
}
.batch-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.batch-size {
  font-size: 12px;
  color: var(--text-secondary);
}
.batch-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
}
.status-pending { background: rgba(100,116,139,0.1); color: #64748b; }
.status-processing { background: rgba(108,92,231,0.1); color: var(--primary); }
.status-done { background: rgba(34,197,94,0.1); color: #16a34a; }
.status-error { background: rgba(239,68,68,0.1); color: #dc2626; }

/* ─── Result Section ───────────────────────────────────────────── */
.result-section {
  margin-top: 30px;
  display: none;
}
.result-section.visible { display: block; }
.result-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ─── Processing Overlay ───────────────────────────────────────── */
.processing-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  border-radius: var(--radius);
  z-index: 20;
}
.processing-overlay.visible { display: flex; }
.spinner {
  width: 48px; height: 48px;
  border: 3px solid rgba(108,92,231,0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.processing-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.progress-bar-container {
  width: 200px;
  height: 4px;
  background: rgba(108,92,231,0.12);
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 0.4s ease;
  animation: progressPulse 2s ease infinite;
}
@keyframes progressPulse {
  0%,100% { width: 20%; }
  50% { width: 80%; }
}

/* ─── Generator Page ───────────────────────────────────────────── */
.generator-form {
  display: grid;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: rgba(255,255,255,0.6);
  color: var(--text);
  transition: all 0.3s ease;
  outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.1);
  background: #fff;
}
.form-textarea {
  resize: vertical;
  min-height: 100px;
}
.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

/* Style Chips */
.style-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.style-chip {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.5);
  color: var(--text-secondary);
  user-select: none;
}
.style-chip:hover {
  border-color: var(--primary-light);
  background: rgba(108,92,231,0.05);
}
.style-chip.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(108,92,231,0.3);
}

/* Size Selector */
.size-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.size-option {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.5);
  color: var(--text-secondary);
  text-align: center;
  min-width: 80px;
}
.size-option:hover {
  border-color: var(--primary-light);
}
.size-option.active {
  background: rgba(108,92,231,0.1);
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
}

/* Range Slider */
.range-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}
.range-wrapper input[type="range"] {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(108,92,231,0.12);
  border-radius: 3px;
  outline: none;
}
.range-wrapper input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(108,92,231,0.3);
}
.range-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  min-width: 32px;
  text-align: center;
}

/* ─── Image Grid ───────────────────────────────────────────────── */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.image-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  background: var(--surface);
  border: 1px solid var(--border);
}
.image-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.image-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.image-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.image-card:hover .image-card-overlay { opacity: 1; }
.image-card-actions {
  display: flex;
  gap: 8px;
}
.image-card-actions button {
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.9);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.image-card-actions button:hover {
  background: #fff;
  transform: scale(1.05);
}

/* ─── Fullscreen Modal ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(20px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.modal-overlay.visible { display: flex; }
.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}
.modal-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal-close {
  position: absolute;
  top: -16px; right: -16px;
  width: 40px; height: 40px;
  background: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  color: var(--text);
  transition: transform 0.2s;
}
.modal-close:hover { transform: scale(1.1); }

/* ─── Prompt History ───────────────────────────────────────────── */
.history-panel {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.history-panel h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}
.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(108,92,231,0.03);
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}
.history-item:hover {
  background: rgba(108,92,231,0.07);
}
.history-item-text {
  flex: 1;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-item-time {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.history-copy {
  width: 32px; height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(108,92,231,0.08);
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.history-copy:hover {
  background: rgba(108,92,231,0.15);
}

/* ─── Toast Notifications ──────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  animation: toastIn 0.4s cubic-bezier(0.4,0,0.2,1);
  backdrop-filter: blur(10px);
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast-success { background: rgba(34,197,94,0.92); }
.toast-error { background: rgba(239,68,68,0.92); }
.toast-info { background: rgba(108,92,231,0.92); }

@keyframes toastIn {
  from { opacity:0; transform: translateX(40px); }
  to { opacity:1; transform: translateX(0); }
}

/* ─── Skeleton Loading ─────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, rgba(108,92,231,0.06) 25%, rgba(108,92,231,0.12) 50%, rgba(108,92,231,0.06) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text { height: 16px; width: 80%; margin-bottom: 10px; }
.skeleton-img { width: 100%; aspect-ratio: 1; }

/* ─── Scroll Animations ───────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4,0,0.2,1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Features Grid (landing extras) ───────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 40px auto 80px;
  padding: 0 24px;
}
.feature-card {
  padding: 32px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 24px;
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Footer ───────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-secondary);
  font-size: 13px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 16px; width: 100%; }
  .nav-toggle { display: flex; }

  .hero { padding: 50px 20px 30px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .card { padding: 24px; }
  .upload-zone { padding: 40px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .image-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .modal-overlay { padding: 16px; }
  .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 24px; }
  .card-container { padding: 0 16px 60px; }
  .options-row { flex-direction: column; }
  .result-actions { flex-direction: column; }
  .style-chips { gap: 6px; }
  .style-chip { padding: 8px 14px; font-size: 12px; }
}
