/* Dress Up My Pet - Design Overhaul */

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

:root {
  --gradient: linear-gradient(135deg, #FF6B6B 0%, #EC4899 50%, #A855F7 100%);
  --gradient-soft: linear-gradient(135deg, #FFF0F0 0%, #FDF2F8 50%, #FAF5FF 100%);
  --primary: #EC4899;
  --primary-dark: #DB2777;
  --primary-light: #F9A8D4;
  --coral: #FF6B6B;
  --purple: #A855F7;
  --purple-dark: #7C3AED;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
  --bg: #FAF8FF;
  --bg-card: #FFFFFF;
  --bg-section: #F5F0FF;
  --bg-hover: #F9F5FF;
  --text: #18181B;
  --text-muted: #71717A;
  --text-light: #A1A1AA;
  --border: #E4E4E7;
  --border-light: #F4F4F5;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 16px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-glow: 0 4px 20px rgba(236,72,153,0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-pill: 999px;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-brand a {
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.2s;
  text-decoration: none;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--purple-dark);
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  background: var(--bg-section);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(236,72,153,0.5);
  filter: brightness(1.05);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--primary-light);
  background: var(--bg-hover);
}

.btn-outline {
  background: rgba(255,255,255,0.15);
  border: 2px solid white;
  color: white;
}
.btn-outline:hover { background: rgba(255,255,255,0.25); }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #DC2626; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 2px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); }

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.875rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1.1rem; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; filter: none; }

/* FLASH MESSAGES */
.flash-messages { margin-bottom: 1.5rem; }
.flash {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}
.flash-success { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }
.flash-error   { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.flash-warning { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }
.flash-info    { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF; }
.flash-close {
  background: none; border: none; color: currentColor;
  font-size: 1.25rem; cursor: pointer; opacity: 0.6; padding: 0 0.25rem;
}
.flash-close:hover { opacity: 1; }

/* HERO */
.hero {
  text-align: center;
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(236,72,153,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 110%, rgba(168,85,247,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  font-weight: 500;
  line-height: 1.65;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  font-weight: 500;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* HOW IT WORKS */
.how-it-works {
  padding: 4rem 2.5rem;
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  margin: 0 2rem 4rem;
}

.how-it-works h2,
.examples h2,
.hero-cta-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  font-weight: 500;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.step-icon {
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
  display: block;
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.step-number-badge {
  display: inline-flex;
  width: 26px;
  height: 26px;
  background: var(--gradient);
  color: white;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
}

/* EXAMPLES */
.examples {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.example-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.example-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.example-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.example-placeholder {
  aspect-ratio: 1;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.example-card p {
  padding: 0.75rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

/* BOTTOM CTA */
.hero-cta-section {
  margin: 2rem;
  padding: 4rem 2rem;
  background: var(--gradient);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-cta-section h2 { color: white; font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.75rem; }
.hero-cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-size: 1.05rem; }

/* HERO FEATURES (legacy grid, keep for compat) */
.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.feature {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  margin: 0 auto 1rem;
}

.feature h3 { margin-bottom: 0.5rem; font-weight: 800; }
.feature p { color: var(--text-muted); font-size: 0.9375rem; }

/* AUTH FORMS */
.auth-container {
  max-width: 420px;
  margin: 3rem auto;
}

.auth-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.auth-card h1 { margin-bottom: 0.25rem; font-weight: 900; }
.auth-card > p { color: var(--text-muted); margin-bottom: 2rem; }

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 700;
  font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(236,72,153,0.12);
}

.form-group.checkbox { flex-direction: row; align-items: center; }
.form-group.checkbox label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-muted);
}

/* FORM CARD */
.form-container {
  max-width: 540px;
  margin: 2rem auto;
}

.form-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-card h1 { margin-bottom: 0.25rem; font-weight: 900; }
.form-card > p { color: var(--text-muted); margin-bottom: 2rem; }

.pet-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

/* DASHBOARD */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.dashboard-header h1 { font-size: 2rem; font-weight: 900; }

.pet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.pet-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pet-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.pet-card-top {
  height: 5px;
  background: var(--gradient);
}

.pet-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.pet-avatar {
  width: 56px;
  height: 56px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pet-initial { font-size: 1.5rem; font-weight: 900; color: white; }

.pet-info h3 { margin-bottom: 0.2rem; font-weight: 800; }
.pet-type { color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }

.pet-status {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
}

.status-pending   { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.status-uploading { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }
.status-training  { background: #F5F3FF; color: #5B21B6; border: 1px solid #DDD6FE; }
.status-ready     { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.status-failed    { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

.pet-stats { font-size: 0.875rem; color: var(--text-muted); font-weight: 600; }

.pet-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
}

.empty-icon { font-size: 4rem; margin-bottom: 1rem; display: block; }
.empty-state h2 { margin-bottom: 0.5rem; font-weight: 900; }
.empty-state p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* PET SETUP */
.setup-container { max-width: 800px; margin: 0 auto; }

.setup-header { text-align: center; margin-bottom: 2rem; }
.setup-header h1 { margin-bottom: 0.25rem; font-weight: 900; }

.setup-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  gap: 1rem;
  flex-wrap: wrap;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 140px;
  opacity: 0.45;
}
.step-active, .step-complete { opacity: 1; }

.step-number {
  width: 32px;
  height: 32px;
  background: var(--border);
  color: var(--text-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.step-active .step-number { background: var(--gradient); color: white; }
.step-complete .step-number { background: var(--success); color: white; }

.step-content h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; }
.step-content p { font-size: 0.8rem; color: var(--text-muted); }

/* UPLOAD */
.upload-section,
.train-section,
.training-section,
.ready-section,
.error-section {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.upload-tips {
  background: var(--bg-section);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
  border: 1px solid var(--border-light);
}
.upload-tips h4 { margin-bottom: 0.5rem; font-weight: 700; }
.upload-tips ul { margin-left: 1.5rem; color: var(--text-muted); }
.upload-tips li { margin-bottom: 0.25rem; }

.current-uploads { margin-bottom: 2rem; }
.current-uploads h3 { margin-bottom: 1rem; font-weight: 800; }

.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
}
.upload-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.upload-form { display: flex; flex-direction: column; gap: 1.5rem; }

.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  background: var(--bg);
}
.file-upload-area:hover {
  border-color: var(--primary);
  background: var(--bg-hover);
}

.file-input { display: none; }

.file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.upload-icon { font-size: 3rem; }
.upload-text { font-size: 1.125rem; font-weight: 700; }
.upload-hint { color: var(--text-muted); font-size: 0.875rem; }

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.5rem;
}
.preview-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* TRAINING */
.train-section h2,
.training-section h2,
.ready-section h2 { margin-bottom: 1rem; font-weight: 900; }

.error-banner {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.error-banner p { margin: 0; color: #991B1B; }
.error-banner p:first-child { margin-bottom: 0.5rem; }

.training-info { color: var(--text-muted); margin-bottom: 1.5rem; }

.training-progress { text-align: center; padding: 2rem; }

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.spinner-large {
  width: 60px;
  height: 60px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

.training-hint, .loading-hint { color: var(--text-muted); font-size: 0.875rem; }

/* PET DETAIL */
.pet-detail { max-width: 1000px; margin: 0 auto; }

.pet-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.pet-avatar-large {
  width: 90px;
  height: 90px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  color: white;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow);
}

.pet-header-info { flex: 1; }
.pet-header-info h1 { margin-bottom: 0.2rem; font-weight: 900; }

.pet-stats-bar {
  display: flex;
  gap: 2rem;
  background: var(--bg-card);
  padding: 1.25rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* GALLERY */
.gallery-section { margin-bottom: 3rem; }
.gallery-section h2 { margin-bottom: 1.5rem; font-weight: 900; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  opacity: 0;
  transition: opacity 0.2s;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay p { color: white; font-size: 0.875rem; font-weight: 600; }

.empty-gallery {
  text-align: center;
  padding: 3rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
}
.empty-gallery p { color: var(--text-muted); margin-bottom: 1.5rem; }
.empty-hint { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.75rem; }

/* DANGER ZONE */
.danger-zone {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.danger-zone h3 { color: var(--danger); margin-bottom: 1rem; font-weight: 800; }

/* GENERATE PAGE */
.generate-container { max-width: 1000px; margin: 0 auto; }

.generate-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2.5rem 2rem;
  background: var(--gradient);
  border-radius: var(--radius-lg);
  color: white;
  position: relative;
  overflow: hidden;
}
.generate-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.generate-header h1 { margin-bottom: 0.4rem; font-weight: 900; color: white; }
.generate-header p { color: rgba(255,255,255,0.88); font-size: 1.05rem; }

.generate-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .generate-layout { grid-template-columns: 1fr; }
}

.generate-form-section {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.generate-form { display: flex; flex-direction: column; gap: 1.5rem; }
.generate-form textarea { min-height: 90px; resize: vertical; }

/* WORKFLOW CARDS */
.workflow-choice > label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.workflow-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .workflow-options { grid-template-columns: 1fr; }
}

.workflow-option {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.workflow-option:has(input:checked) {
  border-color: var(--primary);
  background: #FFF0F9;
  box-shadow: 0 0 0 3px rgba(236,72,153,0.1);
}

.workflow-option input[type="radio"] {
  position: absolute;
  top: 1rem;
  right: 1rem;
  accent-color: var(--primary);
}

.workflow-label {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.4rem;
  padding-right: 1.5rem;
}

.workflow-hint { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }
.workflow-note { margin-top: 0.75rem; font-size: 0.875rem; color: var(--text-muted); }

/* PRESETS */
.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  align-items: center;
}

.presets-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preset-btn {
  padding: 0.35rem 0.85rem;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  color: var(--text);
  transition: all 0.15s;
}
.preset-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* GENERATE SIDEBAR */
.generate-preview-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pet-preview {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.pet-preview h3 { margin: 0.75rem 0 0.25rem; font-weight: 800; }

.generation-info {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.generation-info h4 { font-weight: 800; margin-bottom: 1rem; }
.generation-info ol {
  margin-left: 1.25rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.generation-info li { font-size: 0.9rem; line-height: 1.4; }
.generation-time { margin-top: 1rem; font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }

/* LOADING OVERLAY */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}

.loading-content {
  text-align: center;
  padding: 3rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  max-width: 380px;
}
.loading-content h2 { margin-bottom: 0.5rem; font-weight: 900; }

/* IMAGE DETAIL */
.image-detail { max-width: 900px; margin: 0 auto; }

.image-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}
@media (max-width: 768px) {
  .image-detail-layout { grid-template-columns: 1fr; }
}

.image-main img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.image-meta {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.image-meta h2 { font-size: 1.1rem; margin-bottom: 1rem; font-weight: 800; }

.meta-row { margin-bottom: 0.75rem; }
.meta-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}
.meta-value { font-size: 0.9375rem; }

/* FOOTER */
.footer {
  text-align: center;
  padding: 2.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

/* MISC */
.field-hint { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }
.quick-swap-req { color: var(--danger); font-weight: 700; }

.saved-reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.saved-reference-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.45rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  cursor: pointer;
  overflow: hidden;
}

.saved-reference-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.saved-reference-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

.saved-reference-card:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(236,72,153,0.16);
}

.saved-reference-meta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.image-detail { max-width: 1280px; margin: 0 auto; }

.image-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}

.image-display {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  min-height: 320px;
}

.image-display img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 180px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

@media (max-width: 900px) {
  .image-detail-layout {
    grid-template-columns: 1fr;
  }

  .image-display img {
    max-height: 70vh;
  }
}

@media (max-width: 600px) {
  .saved-reference-grid {
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  }

  .saved-reference-meta {
    font-size: 0.75rem;
  }

  .image-display {
    padding: 0.5rem;
  }

  .image-display img {
    max-height: 60vh;
  }
}

.mask-draw-area {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.mask-canvas-wrap { overflow: auto; margin-bottom: 0.75rem; }
#mask_canvas {
  display: block;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: crosshair;
}
.mask-draw-actions { display: flex; gap: 0.5rem; }

/* ADMIN */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--bg-section);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}
.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9375rem;
}
.admin-table tr:hover td { background: var(--bg-hover); }

/* CARDS */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* ALERTS */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius-sm); font-weight: 600; }
.alert-success { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }
.alert-warning { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }
.alert-error   { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }

/* PROGRESS */
.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: 1rem 0;
}
.progress-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: var(--radius-pill);
  transition: width 0.3s;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar { padding: 1rem; }
  .container { padding: 1rem; }
  .hero { padding: 3rem 1rem 2rem; }
  .how-it-works { margin: 0 1rem 3rem; padding: 2.5rem 1.5rem; }
  .hero-cta-section { margin: 1rem; }
  .pet-header { flex-direction: column; text-align: center; }
  .pet-stats-bar { gap: 1rem; }
  .dashboard-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
}

@media (max-width: 480px) {
  .nav-links { gap: 0.75rem; }
  .hero h1 { font-size: 2.25rem; letter-spacing: -1px; }
}

/* ── Billing / pricing cards ────────────────────────────────────────────── */
.pricing-card {
  border: 1.5px solid #e0d4f7;
  border-radius: 14px;
  padding: 20px 18px;
  background: #fff;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--primary, #7c3aed);
  box-shadow: 0 4px 18px rgba(124,58,237,.13);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 18px;
  background: var(--primary, #7c3aed);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: .04em;
}
.pricing-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary, #7c3aed);
  margin: 6px 0 10px;
  line-height: 1;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: .92rem;
}
.pricing-features li {
  padding: 3px 0;
}
.stat-card {
  background: #f7f3ff;
  border-radius: 12px;
  padding: 16px 24px;
  text-align: center;
  min-width: 120px;
}
.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary, #7c3aed);
  line-height: 1;
}
.stat-label {
  font-size: .8rem;
  opacity: .7;
  margin-top: 4px;
  font-weight: 600;
}
.nav-credits {
  font-weight: 700;
  color: var(--primary, #7c3aed) !important;
  text-decoration: none;
  font-size: .9rem;
}
.training-slots-ok {
  color: #16a34a;
  font-size: .9rem;
  font-weight: 600;
}

/* ── Forgot password link ──────────────────────────────────────────────── */
.form-group.checkbox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.forgot-link {
  font-size: 0.875rem;
  color: var(--primary, #7c3aed);
  text-decoration: none;
}
.forgot-link:hover {
  text-decoration: underline;
}

/* ── Compact Setup Page ─────────────────────────────────────────────────── */
.setup-container.compact {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
}
.setup-header-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.setup-header-compact h1 {
  font-size: 1.4rem;
  margin: 0;
}
.pet-type-badge {
  font-size: 0.75rem;
  background: #e9d5ff;
  color: #7c3aed;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  vertical-align: middle;
}
.setup-steps-compact {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.85rem;
}
.step-compact {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  background: #f3f4f6;
  border-radius: 8px;
  color: #666;
}
.step-compact.done {
  background: #d1fae5;
  color: #065f46;
}
.step-compact.active {
  background: #e9d5ff;
  color: #7c3aed;
}
.step-num {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  background: #9ca3af;
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 4px;
}
.step-compact.done .step-num { background: #059669; }
.step-compact.active .step-num { background: #7c3aed; }

.upload-section-compact {
  margin-bottom: 16px;
}
.uploaded-grid-compact {
  background: #f9fafb;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}
.uploaded-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.ready-badge {
  color: #059669;
  font-weight: 600;
  font-size: 0.8rem;
}
.need-more {
  color: #d97706;
  font-size: 0.8rem;
}
.thumb-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
}
.more-count {
  font-size: 0.8rem;
  color: #666;
  background: #e5e7eb;
  padding: 4px 8px;
  border-radius: 12px;
}

.dropzone-compact {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}
.dropzone-compact:hover {
  border-color: #7c3aed;
}
.dropzone-compact input {
  display: none;
}
.dropzone-compact label {
  cursor: pointer;
  display: block;
}
.drop-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 4px;
}
.drop-text {
  font-weight: 600;
  color: #374151;
}
.drop-hint {
  display: block;
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 4px;
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  background: #f3e8ff;
  border-radius: 8px;
  font-size: 0.9rem;
}
.preview-bar span {
  flex: 1;
}

.tips-collapse {
  margin-top: 12px;
  font-size: 0.85rem;
}
.tips-collapse summary {
  cursor: pointer;
  color: #6b7280;
}
.tips-collapse ul {
  margin: 8px 0 0 20px;
  padding: 0;
  color: #6b7280;
}
.tips-collapse li {
  margin-bottom: 2px;
}

.train-section-compact {
  background: #f0fdf4;
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  text-align: center;
}
.train-section-compact p {
  margin: 0 0 12px;
}
.error-banner-sm {
  background: #fef2f2;
  color: #b91c1c;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.training-progress-compact {
  text-align: center;
  padding: 24px;
}
.training-progress-compact .spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
}
.training-progress-compact .hint {
  color: #6b7280;
  font-size: 0.85rem;
}

.ready-section-compact {
  text-align: center;
  padding: 32px 16px;
}
.ready-section-compact h2 {
  margin-bottom: 16px;
}

/* ─────────────────────────────────────────────────────────────
   Footer Styles (added Mar 2026)
   ───────────────────────────────────────────────────────────── */
.footer {
  margin-top: auto;
  padding: 2rem 1rem;
  text-align: center;
  background: var(--surface, #f8f9fa);
  border-top: 1px solid rgba(0,0,0,0.06);
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-content > p:first-child {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary, #666);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary, #FF6B9D);
}

.footer-copyright {
  font-size: 0.85rem;
  opacity: 0.6;
  margin: 0;
}

/* Legal pages */
.legal-page h1 {
  margin-bottom: 0.5rem;
}

.legal-page .last-updated {
  color: var(--text-secondary, #666);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.legal-page h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.legal-page ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-page li {
  margin-bottom: 0.4rem;
}

/* ─────────────────────────────────────────────────────────────
   Error Pages (added Mar 2026)
   ───────────────────────────────────────────────────────────── */
.error-page {
  text-align: center;
  padding: 3rem 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.error-image {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

.error-page h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.error-message {
  font-size: 1.15rem;
  color: var(--text-secondary, #666);
  margin-bottom: 0.5rem;
}

.error-hint {
  font-size: 0.95rem;
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────────────────────────
   Mobile Responsive Improvements (added Mar 2026)
   ───────────────────────────────────────────────────────────── */

/* Navbar mobile */
@media (max-width: 600px) {
  .navbar {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .nav-brand a {
    font-size: 1.2rem;
  }
  
  .nav-links {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  
  .nav-links a {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
  }
  
  .nav-credits {
    font-size: 0.8rem !important;
  }
  
  .btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* Hero section mobile */
@media (max-width: 600px) {
  .hero {
    padding: 2rem 1rem;
  }
  
  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  
  .hero-tagline {
    font-size: 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }
  
  .example-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem;
  }
}

/* Dashboard mobile */
@media (max-width: 600px) {
  .dashboard-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .pets-grid {
    grid-template-columns: 1fr;
  }
}

/* Forms mobile */
@media (max-width: 600px) {
  .form-card,
  .auth-form,
  .generate-form-section {
    padding: 1.25rem;
    margin: 0.5rem;
  }
  
  .form-group label {
    font-size: 0.9rem;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px; /* Prevents iOS zoom */
  }
}

/* Pet setup mobile */
@media (max-width: 600px) {
  .setup-container {
    padding: 1rem;
  }
  
  .setup-header h1 {
    font-size: 1.5rem;
  }
  
  .step-indicators {
    gap: 0.25rem;
  }
  
  .step-indicator {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  
  .photo-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .dropzone {
    padding: 1.5rem 1rem;
  }
}

/* Generate page mobile */
@media (max-width: 600px) {
  .generate-container {
    padding: 1rem;
  }
  
  .preset-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .preset-card {
    padding: 0.5rem;
    font-size: 0.85rem;
  }
}

/* Billing page mobile */
@media (max-width: 600px) {
  .pricing-card {
    padding: 1.25rem;
  }
  
  .pricing-price {
    font-size: 1.75rem;
  }
  
  .credit-packs {
    grid-template-columns: 1fr;
  }
}

/* Image detail mobile */
@media (max-width: 600px) {
  .image-detail {
    padding: 1rem;
  }
  
  .image-detail img {
    border-radius: 8px;
  }
  
  .image-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .image-actions .btn {
    width: 100%;
  }
}

/* Footer mobile */
@media (max-width: 600px) {
  .footer {
    padding: 1.5rem 1rem;
  }
  
  .footer-links {
    gap: 1rem;
  }
  
  .footer-links a {
    font-size: 0.85rem;
  }
}

/* General mobile utilities */
@media (max-width: 600px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }
  
  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* Very small screens (iPhone SE, older phones) */
@media (max-width: 375px) {
  .navbar {
    padding: 0.5rem 0.75rem;
  }
  
  .nav-brand a {
    font-size: 1rem;
  }
  
  .nav-links a:not(.btn) {
    display: none; /* Hide Login text, keep Sign Up button */
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .example-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ─────────────────────────────────────────────────────────────
   Homepage v2 (PhotoAI-style) — Mobile-first
   ───────────────────────────────────────────────────────────── */
.home { width: 100%; }

.hero2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.hero2-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #FFF0F9;
  border: 1px solid rgba(236,72,153,0.25);
  color: #B83280;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.hero2 h1 {
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  line-height: 1.08;
}

.hero2-sub {
  font-size: 1.08rem;
  color: var(--text-secondary, #666);
  margin: 0 0 1rem;
}

.hero2-capture {
  display: flex;
  gap: 0.6rem;
  margin: 1rem 0 0.5rem;
}

.hero2-capture input {
  flex: 1;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 16px;
}

.hero2-note {
  font-size: 0.9rem;
  color: var(--text-secondary, #666);
}

.hero2-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.hero2-mini .mini {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 0.5rem 0.65rem;
  border-radius: 12px;
  font-size: 0.9rem;
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.hero2-mini .mini span {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}

.hero2-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.hero2-collage img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

.samples-wall {
  padding: 2.5rem 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.samples-wall h2 {
  margin: 0 0 0.25rem;
  text-align: center;
}

.samples-sub {
  color: var(--text-secondary, #666);
  margin: 0 0 1.25rem;
  text-align: center;
}

.samples-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.sample-tile img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 1;
  object-fit: cover;
}

.samples-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.how2 {
  padding: 2.5rem 1rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.how2 h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.how2-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.how2-card {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
}

.how2-num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #FFF0F9;
  border: 1px solid rgba(236,72,153,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.how2-card h3 {
  font-size: 1.1rem;
  margin: 0.5rem 0 0.35rem;
}

.how2-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Mobile: hero must fit without scrolling */
@media (max-width: 768px) {
  .hero2 {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem 1rem;
  }
  .hero2 h1 { font-size: 2rem; }
  .samples-grid { grid-template-columns: repeat(3, 1fr); }
  .how2-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero2 { padding-top: 1rem; }
  .hero2 h1 { font-size: 1.75rem; }
  .hero2-capture { flex-direction: column; }
  .hero2-capture button { width: 100%; }
  .samples-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ─────────────────────────────────────────────────────────────
   Comparison Table
   ───────────────────────────────────────────────────────────── */
.comparison {
  padding: 3rem 1rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(180deg, transparent 0%, rgba(236,72,153,0.03) 100%);
}

.comparison h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.comparison-sub {
  text-align: center;
  color: var(--text-secondary);
  margin: 0 0 2rem;
}

.comparison-table {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.comparison-header {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 0.5rem;
  padding: 1rem;
  background: var(--surface);
  border-bottom: 2px solid rgba(0,0,0,0.06);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
}

.comparison-header > div:first-child {
  text-align: left;
}

.comparison-us {
  background: #FFF0F9;
  border-radius: 8px;
  padding: 0.5rem;
  color: var(--primary);
}

.comparison-logo {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 0.5rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  align-items: center;
  text-align: center;
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-feature {
  text-align: left;
  font-weight: 600;
}

.comparison-row .comparison-us {
  font-weight: 700;
}

.comparison-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Mobile comparison */
@media (max-width: 768px) {
  .comparison-header,
  .comparison-row {
    grid-template-columns: 1.2fr repeat(2, 1fr);
    font-size: 0.85rem;
  }
  .comparison-header > div:nth-child(4),
  .comparison-header > div:nth-child(5),
  .comparison-row > div:nth-child(4),
  .comparison-row > div:nth-child(5) {
    display: none;
  }
}

/* ─────────────────────────────────────────────────────────────
   Pricing Section
   ───────────────────────────────────────────────────────────── */
.pricing {
  padding: 3rem 1rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.pricing-sub {
  text-align: center;
  color: var(--text-secondary);
  margin: 0 0 2rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pricing-card {
  background: white;
  border: 2px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
}

.pricing-featured {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(236,72,153,0.15);
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

.pricing-card h3 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
  text-align: center;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 900;
  text-align: center;
  margin: 1rem 0;
  color: var(--primary);
  line-height: 1;
}

.pricing-dollar {
  font-size: 1.5rem;
  vertical-align: top;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-tiers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}

.pricing-tier {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
  background: var(--surface);
  border-radius: 8px;
}

.pricing-note {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 1rem 0 0;
}

.pricing-subtext {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.pricing-faq {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.pricing-faq p {
  margin: 0.5rem 0;
}

.pricing-faq a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.pricing-faq a:hover {
  text-decoration: underline;
}

.btn-block {
  width: 100%;
  display: block;
  text-align: center;
}

/* Mobile pricing */
@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-featured {
    transform: scale(1);
    order: -1;
  }
}


/* Homepage paywall conversion cleanup — Apr 2026 */
.hero2-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.15rem 0 0.45rem;
}

.hero2-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.hero2-feature-list a {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon title" "icon desc";
  gap: 0.05rem 0.5rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(236,72,153,0.18);
  background: linear-gradient(135deg, #fff, #fff7fc);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.045);
}

.hero2-feature-list a:hover {
  transform: translateY(-1px);
  border-color: rgba(236,72,153,0.35);
}

.hero2-feature-list span {
  grid-area: icon;
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero2-feature-list strong {
  grid-area: title;
  font-size: 0.92rem;
  line-height: 1.15;
}

.hero2-feature-list small {
  grid-area: desc;
  color: var(--text-secondary, #666);
  font-size: 0.78rem;
  line-height: 1.25;
}

.hero2-proof {
  margin: 0.75rem 0 0;
  color: var(--text-secondary, #666);
  font-size: 0.9rem;
  text-align: center;
}

.feature-details {
  max-width: 1050px;
  margin: 0 auto;
  padding: 2.25rem 1rem 0.75rem;
  display: grid;
  gap: 1rem;
}

.feature-detail {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) 1.1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.35rem;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,0.055);
  scroll-margin-top: 90px;
}

.feature-kicker {
  display: inline-block;
  color: var(--primary);
  font-weight: 850;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.feature-detail h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.1;
}

.feature-detail p {
  margin: 0;
  color: var(--text-secondary, #555);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .hero2-actions .btn { flex: 1 1 160px; }
  .hero2-feature-list { grid-template-columns: 1fr; }
  .feature-detail { grid-template-columns: 1fr; gap: 0.55rem; }
}

@media (max-width: 480px) {
  .hero2-actions { flex-direction: column; }
  .hero2-actions .btn { width: 100%; }
  .hero2-feature-list a { padding: 0.55rem 0.6rem; }
}

/* Keep the top feature list compact above the fold on phones */
@media (max-width: 768px) {
  .hero2-feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .hero2 { gap: 0.75rem; }
  .hero2 h1 { font-size: 1.6rem; }
  .hero2-sub { font-size: 0.96rem; }
  .hero2-note { font-size: 0.8rem; }
  .hero2-feature-list { gap: 0.45rem; }
  .hero2-feature-list a { padding: 0.5rem; grid-template-columns: 1fr; grid-template-areas: "icon" "title" "desc"; }
  .hero2-feature-list span { font-size: 1rem; }
  .hero2-feature-list strong { font-size: 0.82rem; }
  .hero2-feature-list small { font-size: 0.68rem; }
}


/* ─────────────────────────────────────────────────────────────
   Homepage visual redesign — transformation hero + category gallery
   ───────────────────────────────────────────────────────────── */
.home {
  position: relative;
  overflow: hidden;
}

.home::before {
  content: '';
  position: absolute;
  top: -180px;
  left: 50%;
  width: min(1100px, 100vw);
  height: 520px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 107, 107, 0.18), transparent 34%),
    radial-gradient(circle at 78% 16%, rgba(168, 85, 247, 0.18), transparent 34%),
    radial-gradient(circle at 58% 72%, rgba(236, 72, 153, 0.12), transparent 38%);
  pointer-events: none;
  z-index: -1;
}

.hero-showcase {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 4.25rem) 1rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.hero-showcase-copy h1 {
  font-size: clamp(2.8rem, 6vw, 5.55rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
  margin: 0 0 1rem;
  max-width: 720px;
}

.hero-showcase-copy .hero2-sub {
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  max-width: 640px;
  color: #52525b;
}

.hero-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.hero-proof-strip span,
.gallery-pills span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(236,72,153,0.14);
  box-shadow: 0 8px 22px rgba(24,24,27,0.06);
  color: #3f3f46;
  font-weight: 800;
  font-size: 0.92rem;
}

.transformation-stage {
  position: relative;
  min-height: 620px;
  border-radius: 42px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.86), rgba(255,246,251,0.78)),
    radial-gradient(circle at 30% 20%, rgba(255, 107, 107, 0.24), transparent 28%),
    radial-gradient(circle at 80% 80%, rgba(168,85,247,0.20), transparent 30%);
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: 0 30px 90px rgba(88,28,135,0.16), inset 0 1px 0 rgba(255,255,255,0.9);
  overflow: hidden;
  isolation: isolate;
}

.stage-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.82;
  z-index: -1;
}
.stage-glow-one { width: 280px; height: 280px; background: rgba(255,214,10,0.22); top: 4%; left: 2%; }
.stage-glow-two { width: 360px; height: 360px; background: rgba(236,72,153,0.18); right: -8%; bottom: -8%; }

.pet-card {
  margin: 0;
  position: absolute;
  background: #fff;
  padding: 0.62rem;
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(24,24,27,0.18);
  border: 1px solid rgba(255,255,255,0.9);
}

.pet-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.card-sticker {
  position: absolute;
  z-index: 2;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  color: white;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #ec4899, #a855f7);
  box-shadow: 0 8px 18px rgba(168,85,247,0.24);
}

.hero-card-main {
  width: 42%;
  aspect-ratio: 1;
  left: 29%;
  top: 24%;
  z-index: 5;
  transform: rotate(-2deg);
  padding-bottom: 2.6rem;
}

.hero-card-main figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.65rem;
  font-weight: 900;
  color: #27272a;
  font-size: 0.92rem;
  text-align: center;
}

.transform-card { width: 27%; aspect-ratio: 1; }
.card-astronaut { top: 6%; left: 9%; transform: rotate(-9deg); }
.card-pirate { top: 4%; right: 10%; transform: rotate(8deg); }
.card-royal { bottom: 12%; left: 7%; transform: rotate(7deg); }
.card-hotdog { bottom: 9%; right: 8%; transform: rotate(-7deg); }
.card-rockstar { top: 37%; right: 2%; width: 22%; transform: rotate(12deg); }

.same-pet-callout {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  width: min(82%, 440px);
  background: rgba(24,24,27,0.88);
  color: white;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  align-items: center;
  box-shadow: 0 16px 38px rgba(24,24,27,0.22);
  backdrop-filter: blur(10px);
  font-size: 0.94rem;
}

.section-kicker,
.gallery-eyebrow {
  text-align: center;
  color: #b83280;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}

.visual-samples {
  padding-top: 3.5rem;
}
.visual-samples h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.visual-samples .samples-sub {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.sample-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 1.65rem 0 1.25rem;
}

.sample-tab {
  border: 1px solid rgba(236,72,153,0.18);
  background: rgba(255,255,255,0.78);
  color: #3f3f46;
  border-radius: 999px;
  padding: 0.78rem 1rem;
  font-family: inherit;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(24,24,27,0.06);
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.sample-tab:hover { transform: translateY(-2px); }
.sample-tab.active {
  background: var(--gradient);
  color: white;
  box-shadow: var(--shadow-glow);
}

.gallery-browser {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 1.25rem;
  align-items: stretch;
  padding: clamp(1rem, 2vw, 1.35rem);
  border-radius: 34px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 24px 70px rgba(88,28,135,0.12);
}

.gallery-copy {
  border-radius: 26px;
  padding: clamp(1.25rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 10% 0%, rgba(255,214,10,0.18), transparent 34%),
    linear-gradient(145deg, #fff, #fff4fb);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gallery-copy .gallery-eyebrow { text-align: left; }
.gallery-copy h3 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 0 0 0.8rem;
}
.gallery-copy p { color: #52525b; font-weight: 700; }
.gallery-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }

.gallery-frame {
  border-radius: 28px;
  padding: 1rem;
  background: #18181b;
  color: white;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
}

.before-after-mini {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
}
.before-after-mini > div:not(.arrow-bubble) {
  position: relative;
  background: rgba(255,255,255,0.08);
  border-radius: 22px;
  overflow: hidden;
  min-height: 250px;
}
.before-after-mini span {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 1;
  background: rgba(255,255,255,0.92);
  color: #18181b;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-weight: 950;
  font-size: 0.75rem;
}
.before-after-mini img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.arrow-bubble {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  font-weight: 950;
  font-size: 1.4rem;
  box-shadow: 0 10px 24px rgba(236,72,153,0.32);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-top: 0.8rem;
}
.category-tile {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  color: white;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}
.category-tile:hover,
.category-tile.active {
  transform: translateY(-2px);
  border-color: rgba(249,168,212,0.82);
  background: rgba(255,255,255,0.15);
}
.category-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.category-tile span {
  display: block;
  padding: 0.5rem 0.4rem 0.62rem;
  font-weight: 950;
  font-size: 0.86rem;
}

.before-after-mini img {
  cursor: zoom-in;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.gallery-lightbox.open { display: flex; }
.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(9,9,11,0.82);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}
.gallery-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(94vw, 1120px);
  max-height: 92vh;
  border-radius: 28px;
  padding: clamp(0.8rem, 2vw, 1.1rem);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 30px 90px rgba(0,0,0,0.42);
}
.gallery-lightbox-panel img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 20px;
  background: #18181b;
}
.gallery-lightbox-close {
  position: absolute;
  top: -0.85rem;
  right: -0.85rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--gradient);
  color: white;
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(236,72,153,0.35);
}
.gallery-lightbox-caption {
  padding: 0.8rem 0.35rem 0.1rem;
  color: #3f3f46;
  font-weight: 900;
  text-align: center;
}
.gallery-lightbox-open { overflow: hidden; }


@media (max-width: 980px) {
  .hero-showcase { grid-template-columns: 1fr; }
  .transformation-stage { min-height: 560px; max-width: 680px; width: 100%; margin: 0 auto; }
  .gallery-browser { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-showcase { padding-top: 1.35rem; gap: 1.25rem; }
  .hero-showcase-copy h1 { font-size: clamp(2.45rem, 15vw, 3.65rem); }
  .hero2-actions { flex-direction: column; align-items: stretch; }
  .hero2-actions .btn { width: 100%; }
  .transformation-stage { min-height: 470px; border-radius: 28px; }
  .hero-card-main { width: 48%; left: 26%; top: 26%; }
  .transform-card { width: 30%; }
  .card-rockstar { display: none; }
  .same-pet-callout { border-radius: 22px; flex-direction: column; gap: 0; bottom: 1rem; text-align: center; }
  .sample-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.2rem; }
  .sample-tab { flex: 0 0 auto; }
  .before-after-mini { grid-template-columns: 1fr; }
  .arrow-bubble { margin: -0.25rem auto; transform: rotate(90deg); }
  .before-after-mini > div:not(.arrow-bubble), .before-after-mini img { min-height: 220px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Homepage Warm Studio visual pass — May 2026
   Keeps the photo-led structure, but moves away from overused pink/purple AI gradients
   toward a premium consumer pet/editorial palette. */
.home {
  --studio-cream: #fff7ea;
  --studio-cream-2: #f7ead7;
  --studio-card: #fffdf7;
  --studio-ink: #2a1b14;
  --studio-muted: #6f6258;
  --studio-coral: #e85d3f;
  --studio-coral-dark: #bc3f29;
  --studio-marigold: #f3b33d;
  --studio-sage: #7fa58b;
  --studio-teal: #1f7a75;
  --studio-espresso: #231812;
  --studio-border: rgba(77, 49, 32, 0.13);
  --studio-shadow: 0 24px 70px rgba(71, 45, 24, 0.15);
  color: var(--studio-ink);
}

body:has(.home) {
  background:
    radial-gradient(circle at 12% 4%, rgba(243,179,61,0.18), transparent 28%),
    radial-gradient(circle at 90% 6%, rgba(127,165,139,0.16), transparent 30%),
    linear-gradient(180deg, #fff8ec 0%, #f8efe1 46%, #fffaf0 100%);
}

body:has(.home) .navbar {
  background: rgba(255, 250, 240, 0.9);
  border-bottom: 1px solid rgba(77,49,32,0.1);
  box-shadow: 0 10px 30px rgba(71,45,24,0.055);
}

body:has(.home) .nav-brand a {
  background: linear-gradient(135deg, var(--studio-espresso), #7c3f21 58%, var(--studio-coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body:has(.home) .nav-links a:hover { color: var(--studio-espresso); }
body:has(.home) a { color: var(--studio-teal); }

.home::before {
  top: -220px;
  height: 620px;
  background:
    radial-gradient(circle at 14% 22%, rgba(232,93,63,0.17), transparent 31%),
    radial-gradient(circle at 82% 16%, rgba(127,165,139,0.18), transparent 32%),
    radial-gradient(circle at 52% 72%, rgba(243,179,61,0.18), transparent 40%);
}
.home::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(77,49,32,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,49,32,0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 42%);
  z-index: -1;
}

.home .btn-primary,
.home .pricing-card .btn-primary,
.home .pricing-card .btn-secondary:hover {
  background: linear-gradient(135deg, var(--studio-coral), var(--studio-coral-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 30px rgba(188,63,41,0.24);
}
.home .btn-primary:hover { box-shadow: 0 18px 38px rgba(188,63,41,0.3); }
.home .btn-secondary {
  background: rgba(255,253,247,0.85);
  border: 1px solid var(--studio-border);
  color: var(--studio-espresso);
  box-shadow: 0 10px 26px rgba(71,45,24,0.08);
}

.hero2-badge,
.section-kicker,
.gallery-eyebrow,
.feature-kicker {
  color: var(--studio-teal) !important;
}
.hero2-badge {
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(127,165,139,0.14);
  border: 1px solid rgba(31,122,117,0.16);
  box-shadow: 0 10px 22px rgba(71,45,24,0.06);
}
.hero-showcase-copy h1,
.visual-samples h2,
.pricing h2,
.comparison h2,
.feature-detail h2 {
  color: var(--studio-espresso);
}
.hero-showcase-copy .hero2-sub,
.visual-samples .samples-sub,
.gallery-copy p,
.pricing-sub,
.comparison-sub,
.feature-detail p {
  color: var(--studio-muted) !important;
}

.hero-proof-strip span,
.gallery-pills span {
  background: rgba(255,253,247,0.88);
  border: 1px solid var(--studio-border);
  color: var(--studio-espresso);
  box-shadow: 0 10px 24px rgba(71,45,24,0.08);
}
.hero-proof-strip span:nth-child(1), .gallery-pills span:nth-child(1) { border-color: rgba(232,93,63,0.24); }
.hero-proof-strip span:nth-child(2), .gallery-pills span:nth-child(2) { border-color: rgba(243,179,61,0.35); }
.hero-proof-strip span:nth-child(3), .gallery-pills span:nth-child(3) { border-color: rgba(31,122,117,0.24); }

.transformation-stage {
  background:
    radial-gradient(circle at 18% 14%, rgba(243,179,61,0.24), transparent 28%),
    radial-gradient(circle at 86% 82%, rgba(127,165,139,0.20), transparent 30%),
    linear-gradient(145deg, rgba(255,253,247,0.95), rgba(246,229,203,0.84));
  border: 1px solid rgba(77,49,32,0.12);
  box-shadow: var(--studio-shadow), inset 0 1px 0 rgba(255,255,255,0.95);
}
.stage-glow-one { background: rgba(243,179,61,0.26); }
.stage-glow-two { background: rgba(127,165,139,0.22); }
.pet-card {
  background: #fffdf7;
  border: 1px solid rgba(77,49,32,0.13);
  box-shadow: 0 18px 46px rgba(71,45,24,0.20);
}
.pet-card::before,
.pet-card::after {
  content: '';
  position: absolute;
  width: 44px;
  height: 16px;
  background: rgba(243,179,61,0.45);
  border: 1px solid rgba(77,49,32,0.08);
  transform: rotate(-10deg);
  z-index: 3;
  border-radius: 3px;
  box-shadow: 0 4px 10px rgba(71,45,24,0.08);
}
.pet-card::before { top: -7px; left: 18px; }
.pet-card::after { display: none; }
.hero-card-main::after {
  display: block;
  right: 18px;
  bottom: 34px;
  transform: rotate(8deg);
  background: rgba(127,165,139,0.42);
}
.card-sticker {
  background: var(--studio-espresso);
  color: #fff7ea;
  box-shadow: 0 8px 18px rgba(35,24,18,0.22);
}
.transform-card:nth-of-type(2n) .card-sticker { background: var(--studio-coral); }
.transform-card:nth-of-type(3n) .card-sticker { background: var(--studio-teal); }
.same-pet-callout {
  background: rgba(35,24,18,0.92);
  box-shadow: 0 16px 38px rgba(35,24,18,0.24);
}

.sample-tab {
  background: rgba(255,253,247,0.88);
  border: 1px solid var(--studio-border);
  color: var(--studio-espresso);
  box-shadow: 0 8px 22px rgba(71,45,24,0.08);
}
.sample-tab.active {
  background: var(--studio-espresso);
  color: #fff7ea;
  box-shadow: 0 14px 32px rgba(35,24,18,0.22);
}

.gallery-browser {
  background: rgba(255,253,247,0.82);
  border: 1px solid rgba(77,49,32,0.12);
  box-shadow: var(--studio-shadow);
}
.gallery-copy {
  background:
    radial-gradient(circle at 9% 0%, rgba(243,179,61,0.18), transparent 34%),
    linear-gradient(145deg, #fffdf7, #f7ead7);
  border: 1px solid rgba(77,49,32,0.08);
}
.gallery-frame {
  background:
    radial-gradient(circle at 22% 8%, rgba(243,179,61,0.08), transparent 28%),
    #231812;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 18px 50px rgba(35,24,18,0.16);
}
.before-after-mini > div:not(.arrow-bubble) {
  background: rgba(255,247,234,0.08);
  border: 1px solid rgba(255,247,234,0.09);
}
.before-after-mini span {
  background: #fff7ea;
  color: var(--studio-espresso);
}
.arrow-bubble,
.gallery-lightbox-close {
  background: var(--studio-coral);
  box-shadow: 0 10px 24px rgba(188,63,41,0.28);
}
.category-tile {
  border-color: rgba(255,247,234,0.14);
  background: rgba(255,247,234,0.07);
}
.category-tile:hover,
.category-tile.active {
  border-color: rgba(243,179,61,0.82);
  background: rgba(255,247,234,0.16);
}

.feature-detail,
.comparison-table,
.pricing-card {
  background: rgba(255,253,247,0.94);
  border-color: var(--studio-border);
  box-shadow: 0 16px 44px rgba(71,45,24,0.10);
}
.comparison { background: linear-gradient(180deg, transparent 0%, rgba(127,165,139,0.06) 100%); }
.comparison-header { background: #f7ead7; }
.comparison-us {
  background: rgba(127,165,139,0.13);
  color: var(--studio-teal);
}
.comparison-row .comparison-us { color: var(--studio-teal); }
.pricing-featured {
  border-color: rgba(243,179,61,0.85);
  box-shadow: 0 18px 48px rgba(243,179,61,0.22);
}
.pricing-badge {
  background: var(--studio-marigold);
  color: var(--studio-espresso);
  box-shadow: 0 8px 22px rgba(243,179,61,0.24);
}
.pricing-price { color: var(--studio-coral-dark); }
.pricing-faq { border-top-color: var(--studio-border); color: var(--studio-muted); }

/* Homepage Warm Studio Flat pass — May 2026
   Flatten the homepage visual system: fewer nested boxes, fewer button-like pills,
   softer photo-led sections, and cleaner plan cards. */
body:has(.home) .container {
  max-width: none;
  padding-left: clamp(1rem, 3vw, 2rem);
  padding-right: clamp(1rem, 3vw, 2rem);
}

body:has(.home) .navbar {
  box-shadow: none;
}

.home::after {
  opacity: 0.16;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.36), transparent 32%);
}

.home .btn-secondary,
.home .hero-proof-strip span,
.home .gallery-pills span,
.home .sample-tab,
.home .how2-card,
.home .feature-detail,
.home .comparison-table,
.home .gallery-browser,
.home .gallery-copy,
.home .pricing-card {
  box-shadow: none;
}

.hero-showcase {
  gap: clamp(2.5rem, 5vw, 5rem);
}

.hero-proof-strip {
  gap: 0.95rem 1.15rem;
}

.hero-proof-strip span {
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--studio-muted);
  border-radius: 0;
  font-weight: 900;
}

.hero-proof-strip span + span::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 1.05rem;
  border-radius: 999px;
  background: rgba(77,49,32,0.26);
  vertical-align: middle;
}

.transformation-stage {
  background:
    radial-gradient(circle at 20% 16%, rgba(243,179,61,0.18), transparent 27%),
    radial-gradient(circle at 86% 82%, rgba(127,165,139,0.15), transparent 30%),
    linear-gradient(145deg, rgba(255,251,241,0.72), rgba(246,229,203,0.42));
  border-color: rgba(77,49,32,0.07);
  box-shadow: none;
  overflow: visible;
}

.stage-glow { opacity: 0.42; filter: blur(18px); }

.pet-card {
  border: 0;
  box-shadow: 0 18px 40px rgba(71,45,24,0.16);
}

.pet-card:hover {
  transform: translateY(-2px) rotate(var(--card-rotate, 0deg));
}

.card-astronaut { --card-rotate: -9deg; }
.card-pirate { --card-rotate: 8deg; }
.card-royal { --card-rotate: 7deg; }
.card-hotdog { --card-rotate: -7deg; }
.card-rockstar { --card-rotate: 12deg; }
.hero-card-main { --card-rotate: -2deg; }

.pet-card::before,
.pet-card::after {
  box-shadow: none;
  opacity: 0.78;
}

.same-pet-callout {
  box-shadow: none;
  background: rgba(35,24,18,0.86);
}

.sample-tabs {
  gap: 1.1rem;
  border-bottom: 1px solid rgba(77,49,32,0.12);
  padding-bottom: 0;
  margin-bottom: 1.6rem;
}

.sample-tab {
  padding: 0.45rem 0 0.75rem;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--studio-muted);
}
.sample-tab:hover { transform: none; color: var(--studio-espresso); }
body:has(.home) .sample-tab.active {
  background: transparent !important;
  color: var(--studio-espresso);
  border-bottom-color: var(--studio-coral);
  box-shadow: none;
}

.gallery-browser {
  grid-template-columns: 0.7fr 1.3fr;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.gallery-copy {
  padding: clamp(0.5rem, 2vw, 1.5rem) clamp(0.25rem, 2vw, 1rem);
  border: 0;
  border-radius: 0;
  background: transparent;
}

.gallery-pills span {
  padding: 0.2rem 0;
  background: transparent;
  border: 0;
  color: var(--studio-muted);
  font-size: 0.9rem;
}
.gallery-pills span::before {
  content: '#';
  color: var(--studio-coral);
  margin-right: 0.12rem;
}

.gallery-frame {
  border-radius: 30px;
  padding: clamp(0.75rem, 1.8vw, 1rem);
  background:
    radial-gradient(circle at 16% 8%, rgba(243,179,61,0.07), transparent 28%),
    #261a13;
  box-shadow: none;
}

.before-after-mini > div:not(.arrow-bubble),
.category-tile {
  border-color: rgba(255,247,234,0.08);
  box-shadow: none;
}

.category-tile {
  border-radius: 14px;
  background: transparent;
}
.category-tile:hover,
.category-tile.active {
  background: rgba(255,247,234,0.10);
  border-color: rgba(243,179,61,0.62);
}

.feature-details {
  gap: 0;
}
.feature-detail {
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
  padding: 1.75rem 0;
}
.feature-detail:last-child { border-bottom: 0; }

.how2-card {
  background: transparent;
  border-color: rgba(77,49,32,0.10);
}

.comparison {
  background: transparent;
}
.comparison-table {
  border: 1px solid rgba(77,49,32,0.10);
  border-radius: 18px;
  overflow: clip;
}
.comparison-header {
  border-bottom-width: 1px;
}
.comparison-us {
  border-radius: 999px;
}

.pricing-card {
  border: 1px solid rgba(77,49,32,0.12);
  border-radius: 20px;
  background: rgba(255,253,247,0.76);
  overflow: hidden;
}
.pricing-featured {
  transform: none;
  border-color: rgba(77,49,32,0.12);
  box-shadow: none;
}
.pricing-featured::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--studio-coral), var(--studio-marigold));
}
.pricing-badge {
  position: static;
  display: inline-flex;
  transform: none;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  background: rgba(243,179,61,0.22);
  color: var(--studio-espresso);
  box-shadow: none;
}
.pricing-features li {
  border-bottom-color: rgba(77,49,32,0.08);
}

@media (max-width: 980px) {
  .gallery-browser { grid-template-columns: 1fr; gap: 1rem; }
  .gallery-copy { text-align: center; }
  .gallery-copy .gallery-eyebrow { text-align: center; }
  .gallery-pills { justify-content: center; }
}

@media (max-width: 640px) {
  .sample-tabs {
    border-bottom: 0;
    gap: 0.9rem;
  }
  .sample-tab { flex: 0 0 auto; }
  .transformation-stage { overflow: hidden; }
  .hero-proof-strip span + span::before { display: none; }
}

/* ──────────────────────────────────────────────────────────────────────────
   Whole-site Soft Boutique visual pass — May 2026
   Direction: cream/blush/coral/sage, premium friendly pet boutique.
   Reduces warm-studio coffee browns and old magenta AI gradients.
   ────────────────────────────────────────────────────────────────────────── */
:root {
  --boutique-cream: #fff8f1;
  --boutique-cream-2: #fff1e8;
  --boutique-blush: #f6d5cf;
  --boutique-blush-2: #f9e4df;
  --boutique-rose: #d97986;
  --boutique-coral: #ee675c;
  --boutique-coral-dark: #cf4f46;
  --boutique-sage: #9fba98;
  --boutique-sage-dark: #6f9270;
  --boutique-ink: #3b2a24;
  --boutique-muted: #7b6860;
  --boutique-card: #fffdf9;
  --boutique-line: rgba(92, 61, 50, 0.13);
  --boutique-shadow: 0 18px 44px rgba(89, 50, 36, 0.10);
  --boutique-shadow-strong: 0 26px 70px rgba(89, 50, 36, 0.16);

  --gradient: linear-gradient(135deg, var(--boutique-coral) 0%, var(--boutique-rose) 100%);
  --gradient-soft: linear-gradient(135deg, #fff8f1 0%, #fbe7e2 52%, #f4eadc 100%);
  --primary: var(--boutique-coral);
  --primary-dark: var(--boutique-coral-dark);
  --primary-light: #f5b5ad;
  --coral: var(--boutique-coral);
  --purple: var(--boutique-rose);
  --purple-dark: #9d5661;
  --bg: var(--boutique-cream);
  --bg-card: var(--boutique-card);
  --bg-section: var(--boutique-cream-2);
  --bg-hover: #fff3ec;
  --text: var(--boutique-ink);
  --text-muted: var(--boutique-muted);
  --text-light: #aa9288;
  --border: var(--boutique-line);
  --border-light: rgba(92, 61, 50, 0.08);
  --shadow-sm: 0 3px 12px rgba(89, 50, 36, 0.06);
  --shadow: var(--boutique-shadow);
  --shadow-lg: var(--boutique-shadow-strong);
  --shadow-glow: 0 14px 32px rgba(238, 103, 92, 0.25);
}

html { background: var(--boutique-cream); }
body {
  background:
    radial-gradient(circle at 8% -4%, rgba(246, 213, 207, 0.52), transparent 31%),
    radial-gradient(circle at 94% 0%, rgba(159, 186, 152, 0.22), transparent 27%),
    linear-gradient(180deg, #fffaf3 0%, #fff5ed 45%, #fffaf5 100%);
  color: var(--boutique-ink);
}

h1, h2, h3,
.hero h1,
.hero2 h1,
.hero-showcase-copy h1,
.visual-samples h2,
.pricing h2,
.comparison h2,
.feature-detail h2,
.dashboard-header h1,
.auth-card h1,
.form-card h1 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--boutique-ink);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

a { color: var(--boutique-coral-dark); }
a:hover { color: var(--boutique-coral); }

.navbar {
  background: rgba(255, 249, 241, 0.92);
  border-bottom: 1px solid rgba(92, 61, 50, 0.10);
  box-shadow: 0 10px 28px rgba(89, 50, 36, 0.055);
}
.nav-brand a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: none;
  -webkit-text-fill-color: var(--boutique-ink);
  color: var(--boutique-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.nav-brand a::before {
  content: '🐾';
  font-family: Apple Color Emoji, Segoe UI Emoji, sans-serif;
  font-size: 1rem;
  line-height: 1;
  filter: sepia(0.25) saturate(0.85);
}
.nav-links a { color: var(--boutique-ink); opacity: 0.82; }
.nav-links a:hover { color: var(--boutique-coral-dark); opacity: 1; }
.nav-user {
  background: rgba(246, 213, 207, 0.55);
  color: var(--boutique-ink);
}

.btn {
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.btn-primary,
.home .btn-primary,
.home .pricing-card .btn-primary,
.home .pricing-card .btn-secondary:hover {
  background: linear-gradient(135deg, var(--boutique-coral), var(--boutique-coral-dark));
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(207, 79, 70, 0.24);
}
.btn-primary:hover,
.home .btn-primary:hover {
  box-shadow: 0 18px 38px rgba(207, 79, 70, 0.30);
  filter: none;
}
.btn-secondary,
.btn-ghost,
.home .btn-secondary {
  background: rgba(255, 253, 249, 0.9);
  color: var(--boutique-ink);
  border: 1px solid var(--boutique-line);
  box-shadow: 0 10px 24px rgba(89, 50, 36, 0.07);
}
.btn-secondary:hover,
.btn-ghost:hover {
  background: #fff5ee;
  border-color: rgba(238, 103, 92, 0.28);
  color: var(--boutique-ink);
}

.container { max-width: 1220px; }
.card,
.auth-card,
.form-card,
.generate-form-section,
.pricing-card,
.stat-card,
.example-card,
.dashboard-header,
.empty-gallery,
.saved-reference-card,
.uploaded-image-card,
.pet-detail > section,
.upload-section,
.gallery-item,
.pet-card {
  background: rgba(255, 253, 249, 0.88);
  border: 1px solid var(--boutique-line);
  box-shadow: var(--boutique-shadow);
}
.auth-card,
.form-card,
.generate-form-section,
.pricing-card,
.card,
.dashboard-header { border-radius: 24px; }

.form-group input,
.form-group select,
.form-group textarea,
input[type='text'], input[type='email'], input[type='password'], input[type='number'], textarea, select {
  background: rgba(255, 250, 244, 0.96);
  border: 1px solid rgba(92, 61, 50, 0.16);
  color: var(--boutique-ink);
  border-radius: 14px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
input:focus, textarea:focus, select:focus {
  border-color: rgba(238, 103, 92, 0.64);
  box-shadow: 0 0 0 4px rgba(238, 103, 92, 0.12);
}

.footer {
  background: rgba(255, 248, 241, 0.68);
  border-top: 1px solid rgba(92, 61, 50, 0.10);
  color: var(--boutique-muted);
}

/* Homepage: move selected mockup mood into the current real structure. */
.home {
  --studio-cream: var(--boutique-cream);
  --studio-cream-2: var(--boutique-cream-2);
  --studio-card: var(--boutique-card);
  --studio-ink: var(--boutique-ink);
  --studio-muted: var(--boutique-muted);
  --studio-coral: var(--boutique-coral);
  --studio-coral-dark: var(--boutique-coral-dark);
  --studio-marigold: #f3c477;
  --studio-sage: var(--boutique-sage);
  --studio-teal: var(--boutique-sage-dark);
  --studio-espresso: var(--boutique-ink);
  --studio-border: var(--boutique-line);
  --studio-shadow: var(--boutique-shadow-strong);
}
body:has(.home) {
  background:
    radial-gradient(circle at 14% 0%, rgba(246, 213, 207, 0.64), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(159, 186, 152, 0.25), transparent 26%),
    linear-gradient(180deg, #fff9f1 0%, #fff4ec 48%, #fffaf5 100%);
}
body:has(.home) .navbar { background: rgba(255, 249, 241, 0.92); }
body:has(.home) .nav-brand a {
  background: none;
  -webkit-text-fill-color: var(--boutique-ink);
  color: var(--boutique-ink);
}
body:has(.home) a { color: var(--boutique-coral-dark); }
.home::before {
  background:
    radial-gradient(circle at 16% 18%, rgba(246, 213, 207, 0.42), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(159, 186, 152, 0.20), transparent 29%),
    radial-gradient(circle at 55% 74%, rgba(238, 103, 92, 0.12), transparent 38%);
}
.home::after { opacity: 0.14; background-size: 64px 64px; }

.hero2-badge,
.section-kicker,
.gallery-eyebrow,
.feature-kicker {
  color: var(--boutique-coral-dark) !important;
}
.hero2-badge {
  background: rgba(246, 213, 207, 0.58);
  border: 1px solid rgba(238, 103, 92, 0.18);
  color: var(--boutique-coral-dark) !important;
}
.hero-showcase-copy h1 {
  font-size: clamp(3.1rem, 7.2vw, 6.9rem);
  max-width: 9.2ch;
}
.hero-showcase-copy .hero2-sub { max-width: 38rem; }
.hero-proof-strip span,
.gallery-pills span {
  background: rgba(255, 253, 249, 0.86);
  border-color: rgba(92, 61, 50, 0.10);
  color: var(--boutique-ink);
}

.transformation-stage {
  background:
    radial-gradient(circle at 18% 12%, rgba(246, 213, 207, 0.45), transparent 29%),
    radial-gradient(circle at 86% 82%, rgba(159, 186, 152, 0.20), transparent 30%),
    linear-gradient(145deg, rgba(255,253,249,0.96), rgba(252,231,225,0.82));
  border-color: rgba(92, 61, 50, 0.11);
}
.stage-glow-one { background: rgba(246, 213, 207, 0.40); }
.stage-glow-two { background: rgba(159, 186, 152, 0.22); }
.pet-card {
  background: #fffdf9;
  border-color: rgba(92, 61, 50, 0.12);
  box-shadow: 0 18px 42px rgba(89, 50, 36, 0.16);
}
.card-sticker {
  background: rgba(255, 246, 242, 0.92);
  color: var(--boutique-ink);
  border: 1px solid rgba(238, 103, 92, 0.18);
}
.same-pet-callout {
  background: rgba(59,42,36,0.84);
  border: 1px solid rgba(255,255,255,0.20);
}
.sample-tab { color: var(--boutique-muted); }
.sample-tab:hover,
body:has(.home) .sample-tab.active { color: var(--boutique-ink); }
body:has(.home) .sample-tab.active { border-bottom-color: var(--boutique-coral); }
.gallery-frame {
  background:
    radial-gradient(circle at 14% 10%, rgba(246,213,207,0.18), transparent 28%),
    linear-gradient(145deg, #3b2a24, #221611);
}
.category-tile:hover,
.category-tile.active { border-color: rgba(238,103,92,0.55); }

.pricing-card.featured,
.pricing-featured {
  border-color: rgba(238,103,92,0.28);
  box-shadow: 0 24px 58px rgba(89, 50, 36, 0.14);
}
.pricing-featured::before { background: linear-gradient(90deg, var(--boutique-coral), var(--boutique-rose)); }
.pricing-badge {
  background: rgba(246, 213, 207, 0.70);
  color: var(--boutique-coral-dark);
}
.pricing-price,
.pricing-dollar,
.stat-card strong { color: var(--boutique-coral-dark); }

/* Logged-in app surfaces should feel like the same brand, not a separate AI dashboard. */
.dashboard-header,
.pet-detail-header,
.generate-header {
  background:
    radial-gradient(circle at 88% 10%, rgba(159,186,152,0.18), transparent 28%),
    linear-gradient(135deg, rgba(255,253,249,0.96), rgba(249,228,223,0.72));
}
.pet-card-top,
.image-card-header,
.meta-section h3 { color: var(--boutique-ink); }
.gallery-item { border-radius: 18px; overflow: hidden; }
.gallery-item-overlay { background: linear-gradient(to top, rgba(59,42,36,0.82), transparent); }

@media (max-width: 760px) {
  h1, .hero-showcase-copy h1 { letter-spacing: -0.055em; }
  .hero-showcase-copy h1 { font-size: clamp(2.65rem, 16vw, 4.2rem); max-width: 10ch; }
  .navbar { background: rgba(255, 249, 241, 0.96); }
}

/* Soft boutique desktop/tablet hero fit: keep the before/after visual beside the headline sooner. */
@media (min-width: 761px) {
  .hero-showcase {
    grid-template-columns: minmax(280px, .92fr) minmax(320px, 1.08fr) !important;
    gap: clamp(1.25rem, 3vw, 3rem) !important;
  }
  .hero-showcase-copy h1 {
    font-size: clamp(3.3rem, 6.1vw, 5.45rem) !important;
    max-width: 10ch !important;
  }
  .transformation-stage {
    min-height: clamp(430px, 47vw, 620px) !important;
  }
}
@media (min-width: 761px) and (max-width: 980px) {
  .hero-showcase-copy h1 { font-size: clamp(3rem, 7.5vw, 4.25rem) !important; }
  .hero-showcase-copy .hero2-sub { font-size: 1.02rem !important; }
  .hero2-actions .btn { padding: .78rem 1.25rem; }
  .hero-proof-strip span { font-size: .8rem; padding: .36rem .5rem; }
  .transformation-stage { border-radius: 30px !important; }
}

/* Soft boutique artifact cleanup — remove leftover coffee-shop/bubble/frame effects. */
.home .same-pet-callout {
  width: auto !important;
  max-width: min(88%, 460px) !important;
  background: rgba(255, 253, 249, 0.88) !important;
  color: var(--boutique-ink, #3b2a24) !important;
  border: 1px solid rgba(238, 103, 92, 0.18) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 26px rgba(89, 50, 36, 0.08) !important;
  backdrop-filter: blur(8px);
  padding: 0.72rem 1rem !important;
}
.home .same-pet-callout strong,
.home .same-pet-callout span { color: inherit !important; }

.home .pet-card {
  background: #fffdf9 !important;
  padding: 0.46rem !important;
  border: 1px solid rgba(92, 61, 50, 0.10) !important;
  box-shadow: 0 14px 34px rgba(89, 50, 36, 0.12) !important;
}
.home .pet-card::before,
.home .pet-card::after,
.home .hero-card-main::after {
  display: none !important;
  content: none !important;
}
.home .pet-card img { border-radius: 18px !important; }
.home .card-sticker {
  background: rgba(255, 246, 242, 0.94) !important;
  color: var(--boutique-ink, #3b2a24) !important;
  border: 1px solid rgba(238, 103, 92, 0.18) !important;
  box-shadow: 0 6px 16px rgba(89, 50, 36, 0.08) !important;
}

.home .hero-proof-strip {
  gap: 0.85rem !important;
}
.home .hero-proof-strip span {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: var(--boutique-muted, #7b6860) !important;
}
.home .hero-proof-strip span + span::before,
.home .gallery-pills span::before {
  display: none !important;
  content: none !important;
}

.home .gallery-frame {
  background: linear-gradient(145deg, rgba(255, 253, 249, 0.96), rgba(249, 228, 223, 0.70)) !important;
  color: var(--boutique-ink, #3b2a24) !important;
  border: 1px solid rgba(92, 61, 50, 0.10) !important;
  box-shadow: 0 16px 38px rgba(89, 50, 36, 0.10) !important;
}
.home .before-after-mini > div:not(.arrow-bubble),
.home .category-tile {
  background: rgba(255, 253, 249, 0.80) !important;
  border: 1px solid rgba(92, 61, 50, 0.10) !important;
  color: var(--boutique-ink, #3b2a24) !important;
}
.home .before-after-mini span {
  background: rgba(255, 246, 242, 0.94) !important;
  color: var(--boutique-ink, #3b2a24) !important;
  border: 1px solid rgba(238,103,92,0.16) !important;
}
.home .arrow-bubble {
  background: rgba(246, 213, 207, 0.75) !important;
  color: var(--boutique-coral-dark, #cf4f46) !important;
  box-shadow: none !important;
}
.home .category-tile:hover,
.home .category-tile.active {
  background: rgba(246, 213, 207, 0.42) !important;
  border-color: rgba(238, 103, 92, 0.35) !important;
}
.home .category-tile span { color: var(--boutique-ink, #3b2a24) !important; }

.home .comparison-table {
  background: rgba(255, 253, 249, 0.80) !important;
  border: 1px solid rgba(92, 61, 50, 0.10) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}
.home .comparison-header { background: rgba(246, 213, 207, 0.28) !important; }
.home .comparison-us,
.home .comparison-row .comparison-us {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  color: var(--boutique-coral-dark, #cf4f46) !important;
  box-shadow: none !important;
}
.home .comparison-header .comparison-us {
  color: var(--boutique-ink, #3b2a24) !important;
  font-weight: 900 !important;
}

/* Small homepage/dashboard cleanup — remove duplicate gallery labels and restore app pet cards. */
.home .gallery-pills {
  display: none !important;
}

/* Homepage collage cards use absolute positioning; dashboard cards must not inherit that. */
.dashboard .pet-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 1.5rem !important;
  align-items: stretch !important;
}
.dashboard .pet-card {
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  aspect-ratio: auto !important;
  transform: none !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  background: rgba(255, 253, 249, 0.92) !important;
  border: 1px solid rgba(92, 61, 50, 0.12) !important;
  box-shadow: 0 14px 34px rgba(89, 50, 36, 0.09) !important;
}
.dashboard .pet-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 18px 42px rgba(89, 50, 36, 0.13) !important;
}
.dashboard .pet-card::before,
.dashboard .pet-card::after {
  display: none !important;
  content: none !important;
}
.dashboard .pet-card-top {
  display: block !important;
  height: 6px !important;
  background: linear-gradient(90deg, var(--boutique-coral, #ee675c), var(--boutique-rose, #d97986), var(--boutique-sage, #9fba98)) !important;
  flex: 0 0 auto !important;
}
.dashboard .pet-card-body {
  position: relative !important;
  padding: 1.35rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  flex: 1 1 auto !important;
}
.dashboard .pet-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  margin-top: auto !important;
}

/* Homepage gallery comparison rail — keep before/after visible while browsing larger categories */
.home .gallery-browser {
  align-items: start !important;
}

.home .gallery-frame {
  display: grid !important;
  gap: 0.9rem !important;
  padding: clamp(0.85rem, 2vw, 1.15rem) !important;
}

.home .before-after-mini {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: clamp(0.65rem, 1.6vw, 1rem) !important;
  align-items: stretch !important;
}

.home .before-after-mini .arrow-bubble {
  display: none !important;
}

.home .before-after-mini > div:not(.arrow-bubble) {
  min-height: 0 !important;
  border-radius: 24px !important;
}

.home .before-after-mini img {
  min-height: 0 !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
}

.home .before-after-mini span {
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  font-size: 0.72rem !important;
  padding: 0.34rem 0.62rem !important;
}

.home .category-grid {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 0.7rem !important;
  margin-top: 0 !important;
  padding: 0.15rem 0.1rem 0.45rem !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x proximity !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-color: rgba(238, 103, 92, 0.45) rgba(92, 61, 50, 0.08) !important;
}

.home .category-grid::-webkit-scrollbar {
  height: 9px;
}

.home .category-grid::-webkit-scrollbar-track {
  background: rgba(92, 61, 50, 0.08);
  border-radius: 999px;
}

.home .category-grid::-webkit-scrollbar-thumb {
  background: rgba(238, 103, 92, 0.45);
  border-radius: 999px;
}

.home .category-tile {
  flex: 0 0 clamp(92px, 11vw, 128px) !important;
  scroll-snap-align: start !important;
  border-radius: 18px !important;
}

.home .category-tile img {
  aspect-ratio: 1 / 1 !important;
}

.home .category-tile span {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  padding: 0.48rem 0.5rem 0.58rem !important;
  font-size: 0.78rem !important;
}

@media (max-width: 980px) {
  .home .gallery-browser {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .home .before-after-mini {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 0.55rem !important;
  }

  .home .before-after-mini > div:not(.arrow-bubble) {
    border-radius: 18px !important;
  }

  .home .before-after-mini img {
    aspect-ratio: 0.88 / 1 !important;
  }

  .home .before-after-mini span {
    top: 0.45rem !important;
    left: 0.45rem !important;
    font-size: 0.62rem !important;
    padding: 0.26rem 0.42rem !important;
  }

  .home .category-tile {
    flex-basis: 86px !important;
  }

  .home .category-tile span {
    font-size: 0.7rem !important;
  }
}
