:root {
  /* Dream Color Palette */
  --dream-purple: #7c3aed;
  --dream-blue: #2563eb;
  --dream-cyan: #06b6d4;
  --dream-emerald: #10b981;
  --dream-amber: #f59e0b;
  --dream-rose: #f43f5e;
  --dream-pink: #ec4899;
  --dream-green: #22c55e;
  --dream-orange: #ea580c;

  /* Gray Scale */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #fff;

  /* Gradients */
  --gradient-primary: linear-gradient(90deg, var(--dream-purple) 0%, var(--dream-blue) 100%);
  --gradient-creative: linear-gradient(135deg, rgb(236, 72, 153) 0%, rgb(139, 92, 246) 50%, rgb(6, 182, 212) 100%);
  --gradient-success: linear-gradient(90deg, var(--dream-emerald) 0%, var(--dream-cyan) 100%);
  --gradient-processing: linear-gradient(90deg, var(--dream-blue) 0%, var(--dream-cyan) 100%);
  --gradient-waiting: linear-gradient(90deg, var(--dream-amber) 0%, #fbbf24 100%);
  --gradient-regenerating: linear-gradient(90deg, var(--dream-orange) 0%, var(--dream-amber) 100%);
  --gradient-hero: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(37, 99, 235, 0.05) 100%);
  --gradient-page-bg: linear-gradient(180deg, rgba(124, 58, 237, 0.03) 0%, rgba(37, 99, 235, 0.03) 50%, rgba(6, 182, 212, 0.03) 100%);
  
  /* Text Gradients (for .gradient-text class) */
  --text-gradient-primary: var(--gradient-primary);

  /* Typography */
  --font-sans: 'Inter', sans-serif;
  --text-base: 16px; /* Updated base for better readability */
  --text-sm: 14px;
  --text-xs: 12px;
  --text-lg: 16px;
  --text-xl: 18px;
  --text-2xl: 20px;
  --text-3xl: 24px;
  --text-4xl: 28px;
  --text-5xl: 32px;
  --text-6xl: 40px;
}
*, *::before, *::after { box-sizing: border-box; }
/* Base Styles */
body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--white);
  color: var(--gray-700);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: var(--text-base);
  line-height: 1.6;
}

/* Site-wide subtle gradient background */
html, body {
  background-image: radial-gradient(1200px 800px at 10% 10%, rgba(0,252,255,0.15), transparent 60%),
                    radial-gradient(1200px 800px at 80% 0%, rgba(133,113,235,0.15), transparent 60%),
                    radial-gradient(1000px 700px at 20% 100%, rgba(215,95,197,0.15), transparent 60%),
                    radial-gradient(1200px 800px at 100% 100%, rgba(254,156,75,0.15), transparent 60%);
}

main.processing-page-main {
    background-image: var(--gradient-page-bg);
}

.container.processing-container {
    max-width: 56rem; /* 4xl */
    padding: 24px;
    margin: 0 auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Spacing */
.section { padding: 40px 0; }
.section-sm { padding: 48px 0; }

/* HERO V2 */
.hero-v2 { padding: 20px 0; overflow-x: hidden; }
.hero-v2 .container.hero-v2-grid {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: clamp(32px, 14vw, 320px);
  padding-right: clamp(32px, 14vw, 320px);
}
.hero-v2-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px; /* tighter column gap */
  align-items: start;
  /* slightly smaller to reduce bottom space */
  min-height: calc(68vh - 96px);
}
.hero-left { color: #181818; }
.hero-badges { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: #c1ff72; color: #181818; border-radius: 999px; padding: 12px 16px; font-weight: 700; font-size: 1rem;
}
.badge-pill img { width: 22px; height: 22px; }
.hero-title {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.02; font-weight: 800; margin: 8px 0 14px; color: #181818;
}
.hero-subtitle { font-size: 1.35rem; max-width: 56ch; color: #181818; }
.hero-ctas { display: flex; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 12px; padding: 20px 28px; border-radius: 14px; background: #ff4d1e; color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 10px 20px rgba(255,77,30,0.28);
}
.btn-hero-primary img { width: 28px; height: 28px; }
.btn-hero-secondary {
  display: inline-flex; align-items: center; gap: 12px; padding: 20px 28px; border-radius: 14px; background: #fff; color: #1c69f5; border: 3px solid #1c69f5; font-weight: 800; text-decoration: none;
}
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 32px; margin-top: 30px; align-items: start; }
.hero-stat-number { font-size: 2.75rem; font-weight: 800; color: #181818; }
.hero-stats .hero-stat-number { color: #1c69f5; }
.hero-stat-label { font-size: 1.05rem; color: var(--gray-500); display: block; }

.hero-right { position: relative; }
.hero-visuals { position: relative; display: flex; justify-content: center; align-items: center; margin-bottom: 20px; }
.hero-before-after { max-width: 100%; height: auto; border-radius: 16px; display: block; }
.hero-caption { position: absolute; left: 50%; transform: translateX(-50%); bottom: -60px; background: #ffd815; color: #181818; padding: 12px 18px; border-radius: 999px; font-weight: 700; z-index: 3; }
.hero-star { position: absolute; width: 30px; height: 30px; opacity: 0.9; z-index: 1; background-color: #ffd815; -webkit-mask-image: url('/assets/img/hero/star-pik.svg'); mask-image: url('/assets/img/hero/star-pik.svg'); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; }
.hero-star.s1 { left: -16px; top: 0; background-color: #ffd815; }
.hero-star.s2 { left: 260px; top: -16px; background-color: #ffd815; }
.hero-star.s3 { right: 28px; bottom: 28px; background-color: #ff4d1e; }

/* Small yellow star near H1 */
.hero-star.star-h1 { width: 70px; height: 70px; background-color: #ffd815; left: 690px; top: -30px; transform: translate(12px, -16px); position: relative; display: inline-block; vertical-align: middle; }
/* Big yellow star near 24/7 stats */
.hero-star.star-stats { width: 90px; height: 90px; background-color: #ffd815; position: absolute; left: clamp(420px, 40vw, 560px); top: 790px; left: 1200px; z-index: 2; }
/* Medium orange star above/left of before image */
.hero-star.star-before { width: 70px; height: 70px; background-color: #ff4d1e; left: -30px; top: 20px; z-index: 3; }

@media (max-width: 992px) {
  .hero-v2-grid { grid-template-columns: 1fr; }
  .hero-before-after { max-width: 90%; }
}

@media (max-width: 768px) {
  .hero-before-after { max-width: 100%; }
  .hero-caption { position: static; transform: none; margin: 12px auto 0; text-align: center; }
}

.hero-form-intro-section { padding-top: 0; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--gray-900);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  font-weight: 800;
}

h2, .h2-style {
  font-size: 2.25rem; /* 36px */
  font-weight: 700;
  line-height: 1.2;
}
h3, .h3-style {
  font-size: 1.875rem; /* 30px */
  font-weight: 700;
  line-height: 1.3;
}
h4, .h4-style {
  font-size: 1.25rem; /* 20px */
  font-weight: 600;
  line-height: 1.4;
}
p {
  line-height: 1.6;
  margin: 0 0 1rem;
  color: var(--muted-foreground);
}
.text-center { text-align: center; }
/* Text Utilities */
.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--dream-purple);
  font-weight: 600;
  font-size: var(--text-sm);
  border: 1px solid var(--gray-200);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.text-gradient-primary { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-fill-color: transparent; }
.text-gradient-creative { background: var(--gradient-creative); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-fill-color: transparent; }

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgba(0,0,0,0.1);
  opacity: 0.9;
}

.btn.secondary {
  background: var(--white);
  color: var(--gray-900);
  border: 1px solid var(--gray-200);
}

.btn.danger {
  background: transparent;
  color: var(--dream-rose);
  border: 1px solid var(--dream-rose);
}

/* Card Hover Effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Header */
.main-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

/* Logo Section */
.header-left {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--gray-900);
  font-weight: 700;
  transition: all 0.3s ease;
}

.logo-link:hover {
  color: var(--dream-purple);
  transform: scale(1.02);
}

.logo-placeholder {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--white);
}

.logo-text {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--gray-900);
}

.logo-image {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.02);
}

/* Navigation */
.header-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  font-size: var(--text-sm);
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--dream-purple);
  background: rgba(124, 58, 237, 0.05);
}

.nav-link.active {
  color: var(--dream-purple);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1001; /* Ensure this is on top */
}

.header-right .nav-link {
  padding: 8px;
  font-size: var(--text-xs);
}

.header-right .nav-link:hover {
  background: transparent;
}


.btn-header {
  font-weight: 600;
  padding: 12px 24px;
  font-size: var(--text-sm);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
  transition: all 0.3s ease;
}

.btn-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

/* Hero Section */
.hero {
  background: var(--gradient-hero);
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 24px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.hero p {
  font-size: var(--text-lg);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Order Form */
.order-form-container { display: flex; justify-content: center; }
#orderForm { width: 100%; max-width: 780px; margin-left: auto; margin-right: auto; }
#orderForm .form-content { width: 100%; max-width: 780px; margin-left: auto; margin-right: auto; }
#orderForm .form-section { width: 100%; max-width: 780px; margin-left: auto; margin-right: auto; }
#orderForm .actions { justify-content: center; }

.form-content { padding: 0; }
.children-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.child {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}
.child:first-child { margin-top: 0; }
.child h4 { margin: 0 0 16px; font-size: 1rem; color: var(--gray-900); }
.form-grid { display: grid; gap: 12px; }
@media(min-width: 768px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } .form-grid-3 { grid-template-columns: 1fr 2fr 1fr; } }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.875rem; }
.form-group input, .form-group select, .form-group .file, .coupon-group input { width: 100%; background: var(--white); border: 1px solid var(--gray-200); color: var(--gray-700); padding: 8px 12px; border-radius: 8px; outline: none; transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .coupon-group input:focus { border-color: var(--purple); box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2); }
.hint { color: var(--gray-400); font-size: 0.875rem; margin-top: 4px; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.consents { display: grid; gap: 8px; margin-top: 16px; }
.consents label { font-weight: 500; font-size: 0.875rem; display: flex; gap: 8px; align-items: flex-start; color: var(--gray-500); }
.consents label a { white-space: nowrap; }
.error-inline { color: var(--rose); font-size: 0.875rem; margin-top: 6px; }
.ok-inline { color: var(--emerald); font-size: 0.875rem; margin-top: 6px; }
.invalid { border-color: var(--rose)!important; }
.form-error { background: rgba(244, 63, 94, 0.1); border: 1px solid var(--rose); padding: 12px; border-radius: 10px; color: var(--rose); margin-bottom: 20px; display: none; }

/* Career Categories */
.career-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 48px auto 0;
}

@media (min-width: 640px) {
  .career-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .career-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.career-item {
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.career-item:hover {
  transform: translateY(-4px);
}

.career-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 32px;
  transition: all 0.3s ease;
  text-align: center;
}

.career-item:hover .career-icon {
  transform: scale(1.1);
}

.career-item p {
  margin: 0;
  font-weight: 600;
  color: var(--gray-900);
  font-size: var(--text-sm);
}

/* Career Color Coding */
.bg-emerald-10 { background-color: rgba(16, 185, 129, 0.1); }
.text-emerald { color: var(--dream-emerald); }

.bg-blue-10 { background-color: rgba(59, 130, 246, 0.1); }
.text-blue { color: var(--dream-blue); }

.bg-pink-10 { background-color: rgba(236, 72, 153, 0.1); }
.text-pink { color: var(--dream-pink); }

.bg-cyan-10 { background-color: rgba(6, 182, 212, 0.1); }
.text-cyan { color: var(--dream-cyan); }

.bg-purple-10 { background-color: rgba(124, 58, 237, 0.1); }
.text-purple { color: var(--dream-purple); }

.bg-amber-10 { background-color: rgba(245, 158, 11, 0.1); }
.text-amber { color: var(--dream-amber); }

.bg-rose-10 { background-color: rgba(244, 63, 94, 0.1); }

.bg-orange-10 { background-color: rgba(234, 88, 12, 0.1); }
.text-orange { color: var(--dream-orange); }

/* Trust Signals */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  transition: all 0.3s ease;
}

.trust-item:hover {
  transform: translateY(-4px);
}

.trust-item span {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.trust-item p {
  margin: 0;
  font-size: var(--text-base);
  color: var(--gray-500);
  font-weight: 500;
}

/* Examples Section */
.examples {
  background: var(--gradient-hero);
  padding: 80px 0;
}

.examples h2 {
  margin-bottom: 16px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.examples p {
  max-width: 600px;
  margin: 16px auto 0;
  color: var(--gray-600);
}

.examples-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 48px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .examples-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .examples-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.example-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.example-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.example-card .info {
  padding: 20px;
}

.example-card h4 {
  margin: 0 0 8px;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gray-900);
}

.example-card .hint {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--gray-500);
}

/* New Before/After Slider */
.slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 0.7rem;
  cursor: ew-resize;
}

.before-image,
.after-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.after-image {
    clip-path: inset(0 0 0 50%);
}

.before-image img,
.after-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Styling the Before/After text */
.before-text,
.after-text {
  position: absolute;
  font-family: system-ui;
  font-size: 14px;
  font-weight: 600;
  color: #3a3a3a;
  z-index: 4;
  padding: 10px 20px;
  background-color: #ffffff9e;
  border-radius: 0.3rem;
  letter-spacing: 2px;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}

/* Before text */
.before-text {
  left: 20px;
  top: 20px;
  z-index: 5;
}

/* After text */
.after-text {
  right: 20px;
  top: 20px;
  z-index: 3;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background-color: #fff;
  cursor: ew-resize;
  z-index: 10;
  transform: translateX(-50%);
  pointer-events: auto;
}

.slider-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  z-index: 9;
  transform: translateX(-50%);
  cursor: ew-resize;
  pointer-events: auto;
}

.pulse-container {
  position: relative;
  display: inline-block;
}

.pulse-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #ffffff;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

.slider-line svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  cursor: ew-resize;
  pointer-events: none;
}

/* Prevent text selection on images only */
.before-image img,
.after-image img {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; margin-top: 48px; }
.feature-card { background: var(--gray-50); padding: 24px; border-radius: 16px; border: 1px solid var(--gray-100); text-align: center; }
.feature-icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.feature-card h4 { margin: 0 0 8px; }

/* Testimonials */
.testimonials { background-color: var(--gray-50); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; margin-top: 48px; }
.testimonial-card { background: var(--white); padding: 24px; border-radius: 16px; border: 1px solid var(--gray-200); border-top-width: 4px; }
.testimonial-card.border-purple { border-top-color: var(--purple); }
.testimonial-card.border-cyan { border-top-color: var(--cyan); }
.testimonial-card.border-amber { border-top-color: var(--amber); }
.testimonial-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--gray-100); display: flex; align-items: center; justify-content: center; font-weight: 600; }
.stars { color: var(--amber); }

/* FAQ */
.faq-container { max-width: 800px; margin: 48px auto 0; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; cursor: pointer; font-weight: 600; color: var(--gray-900); }
.faq-question::after { content: '+'; font-size: 1.5rem; transition: transform 0.2s; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-in-out; }
.faq-answer p { padding-bottom: 20px; margin: 0; }
.faq-item.active .faq-answer { max-height: 200px; }

/* Safety Section */
.safety {
  background: var(--gradient-trust);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.safety::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 70%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.safety h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.safety p {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 16px auto 0;
  color: var(--gray-600);
}

.safety-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 48px;
  width: 100%;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .safety-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .safety-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* CTA Section */
.cta {
  background: var(--gradient-hero);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta h2 {
  margin-bottom: 24px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.cta p {
  font-size: var(--text-lg);
  margin-bottom: 32px;
  color: var(--gray-600);
}

.cta .hint {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-top: 12px;
}

/* Quick Order Form */
.quick-order-form {
  margin-top: 40px;
}

.quick-form-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}

.quick-form-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.quick-form-grid {
  display: grid;
  gap: 16px;
}

/* Form Container */
.form-container-custom {
  max-width: 550px;
  width: 100%;
}

/* Card Components */
[data-slot="card"] {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all 0.3s ease;
  max-width: 100%;
  margin: 0 auto;
}

[data-slot="card"]:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

[data-slot="card-content"] {
  padding: 24px;
  position: relative;
  z-index: 1;
  text-align: left;
}

[data-slot="card-content"] h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 8px;
}

[data-slot="card-content"] h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gray-900);
  margin: 16px 0 8px;
}

[data-slot="card-content"] > p {
  font-size: var(--text-base);
  color: var(--gray-600);
  margin: 0 0 24px;
}

/* Order Form inside Card */
[data-slot="card-content"] #order-form {
  margin-top: 32px;
}

[data-slot="card-content"] .order-form-container {
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

/* Account Type Buttons */
.account-type-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.account-type-btn {
  background: #fb2c36 !important; /* Red background for inactive */
  border: 2px solid var(--gray-200) !important;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.account-type-btn svg {
  color: var(--white) !important;
}

.account-type-btn div:first-child {
  color: var(--white) !important;
  font-weight: 600;
  font-size: var(--text-lg);
  margin-bottom: 4px;
}

.account-type-btn div:first-child {
  color: var(--white) !important;
  font-weight: 600;
  font-size: var(--text-lg);
  margin-bottom: 4px;
}

.account-type-btn div:last-child {
  color: var(--white) !important;
  font-size: var(--text-sm);
}

.account-type-btn div {
  color: var(--white) !important;
}

.account-type-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.account-type-btn.active {
  background: #16a34a !important; /* Green background for active */
  border-color: #16a34a !important;
}

/* Order Summary */
.order-summary {
  padding: 16px 0;
}
.order-summary h4 {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 600;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.875rem;
}
.summary-row.total {
  font-weight: 700;
  font-size: 1rem;
}
.order-summary hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 12px 0;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .account-type-buttons {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .account-type-btn {
    padding: 20px 16px;
  }

  [data-slot="card-content"] {
    padding: 24px;
  }

  [data-slot="card-content"] #order-form {
    margin-top: 24px;
  }

  [data-slot="card-content"] .order-form-container {
    margin: 0;
  }
}

/* Mobile Optimizations */
@media (max-width: 640px) {
  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
  }

  .hero p {
    font-size: var(--text-base);
    margin-bottom: 24px;
  }
  
  /* New Hero Responsive Styles */
  .hero-main-content {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    text-align: center !important;
  }
  
  .hero-text {
    text-align: center !important;
  }
  
  .hero-title {
    font-size: 2.5rem !important;
  }
  
  .hero-description {
    font-size: 1.125rem !important;
    max-width: 100% !important;
  }
  
  .hero-benefits {
    align-items: center !important;
  }
  
  .showcase-container {
    max-width: 300px !important;
  }
  
  .showcase-card {
    padding: 16px !important;
  }
  
  .showcase-card img {
    width: 80px !important;
    height: 80px !important;
  }
  
  .order-form-section {
    padding: 40px 0 !important;
  }
  
  .order-form-section h2 {
    font-size: 2rem !important;
  }

  .quick-order-form {
    margin-top: 32px;
    padding: 0 16px;
  }

  .quick-form-card {
    padding: 24px;
  }

  .btn {
    font-size: var(--text-sm);
    padding: 12px 24px;
  }

  .career-grid {
    display: flex;
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 16px;
  }
  .career-grid::-webkit-scrollbar {
    display: none;
  }

  .career-item {
    flex-shrink: 0;
  }

  .career-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
    margin-bottom: 8px;
  }

  .career-item p {
    font-size: var(--text-xs);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .examples-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .safety-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: var(--text-4xl);
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

.career-grid {
  grid-template-columns: 1fr;
  }
}

/* Enhanced Hover Effects & Micro-interactions */
.feature-card {
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.pill:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

/* Focus states for accessibility */
.btn:focus,
.form-group input:focus,
.form-group select:focus,
.coupon-group input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

/* Loading states */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Animation Classes */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.main-footer { background: var(--gray-900); color: var(--gray-400); padding: 48px 0; font-size: 0.875rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid a { color: var(--gray-400); text-decoration: none; display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { margin-top: 48px; border-top: 1px solid var(--gray-700); padding-top: 24px; text-align: center; }

/* Social Icons */
.social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gray-400);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-icons a svg {
  width: 20px;
  height: 20px;
}

/* Social platform specific colors on hover */
.social-icons a[href*="instagram"]:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}

.social-icons a[href*="facebook"]:hover {
  background: #1877f2;
  color: white;
}

.social-icons a[href*="tiktok"]:hover {
  background: #000;
  color: white;
}

.social-icons a[href*="x.com"]:hover,
.social-icons a[href*="twitter"]:hover {
  background: #000;
  color: white;
}

.social-icons a[href*="pinterest"]:hover {
  background: #e60023;
  color: white;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Form Sections */
.form-section {
  padding: 20px;
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  margin-top: 16px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.form-section:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

.form-section-children { width: 100%; max-width: 720px; margin-left: auto; margin-right: auto; }
.form-section-guardian, .form-section-institution { border-color: var(--dream-blue); }
.form-section-consent { border-color: var(--dream-green); }
.form-section-coupon { border-color: var(--dream-amber); }
.form-section-summary { background-color: #f0fff4; border-color: var(--dream-green); }

/* Guardian/Institution Section Specific Colors */
.form-section-guardian .form-section-header h4,
.form-section-institution .form-section-header h4,
.form-section-guardian .form-section-header svg,
.form-section-institution .form-section-header svg {
  color: var(--dream-blue);
}

.form-section-consent .form-section-header h4,
.form-section-consent .form-section-header svg {
  color: var(--dream-green);
}

.form-section-coupon .form-section-header h4,
.form-section-coupon .form-section-header svg {
  color: var(--dream-amber);
}

.form-section-coupon .pill {
  color: var(--dream-amber);
  background-color: #fffbeb;
  border-color: #fde68a;
}

.form-section-summary h4 {
    color: var(--dream-green);
}

.text-dream-green { color: var(--dream-emerald); }
.text-dream-blue { color: var(--dream-blue); }
.text-dream-purple { color: var(--dream-purple); }
.text-dream-rose { color: var(--dream-rose); }

.form-section-guardian label,
.form-section-institution label {
  color: var(--gray-900);
}


.form-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.form-section-header h4 {
  margin: 0;
  font-size: 1rem;
  flex-grow: 1;
}
.form-section-header .pill {
  font-size: 0.75rem;
}
.form-section-header .btn {
  padding: 6px 12px;
  font-size: 0.875rem;
}

/* Child block styling */
.child {
  background: transparent;
  border: none;
  padding: 0;
}
.child-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.child-header h4 {
    margin: 0;
}
.child-header .btn.danger {
    padding: 4px 8px;
    font-size: 0.75rem;
}

/* New File Upload Area */
.file-upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.file-upload-area:hover, .file-upload-area.drag-over {
  border-color: var(--dream-purple);
  background-color: #f9f7ff;
}
.file-upload-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray-600);
}
.file-upload-prompt svg {
  color: var(--dream-purple);
}
.file-upload-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}
.file-preview-image {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}
.file-preview-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.file-preview-name {
  font-weight: 600;
  color: var(--gray-800);
}

/* Coupon Group */
.coupon-group {
    display: flex;
    gap: 8px;
}
.coupon-group input {
    flex-grow: 1;
}
.coupon-group button {
    flex-shrink: 0;
    border: 1px solid var(--dream-amber);
    background: var(--dream-amber);
    color: var(--white);
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    padding: 0 16px;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    font-size: 1.125rem;
}
.checkout-notice {
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 8px;
}

/* Children Information Section Specific Colors */
.form-section-children .form-section-header h4,
.form-section-children .form-section-header svg,
.form-section-children .child-header h4,
.form-section-children label[for^="child_name_"],
.form-section-children label[for^="photo_"] {
  color: var(--dream-purple);
}

.form-section-children label[for^="gender_"] {
  color: var(--dream-pink);
}

.form-section-children label[for^="dream_"] {
  color: var(--dream-amber);
}

.form-section-children label[for^="ar_"] {
  color: var(--dream-cyan);
}

#addChildBtn {
  background-color: #16a34a;
  border-color: #16a34a;
  color: var(--white);
}

#addChildBtn:hover {
  opacity: 0.9;
  background-color: #16a34a;
  border-color: #16a34a;
  color: var(--white);
}

::placeholder {
  opacity: 0.5 !important;
}

/* Pricing Page Styles */
.pricing-hero {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
.pricing-hero h1 {
  max-width: 800px;
  margin: 16px auto 24px;
  font-size: 2.25rem;
  color: var(--white);
}
.pricing-hero h2 {
    color: var(--white);
}
.pricing-hero p {
  color: rgba(255, 255, 255, 0.8);
}
.pricing-hero .pill {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.h6-style {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.price-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 32px 0 16px;
}
.price-old {
  font-size: 1.75rem;
  text-decoration: line-through;
  opacity: 0.6;
}
.price-new {
  font-size: 3.5rem;
  font-weight: 800;
}
.discount-tag {
  background: #f59e0b;
  color: var(--white);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 48px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
@media(min-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.pricing-card {
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 32px;
    text-align: left;
    display: flex;
    flex-direction: column;
}
.pricing-card.family-plan {
    border-color: var(--dream-purple);
}
.pricing-card.education-plan {
    border-color: var(--dream-cyan);
}
.pricing-card-header .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.pricing-card.family-plan .card-icon {
    background: var(--dream-purple);
    color: var(--white);
}
.pricing-card.education-plan .card-icon {
    background: var(--dream-cyan);
    color: var(--white);
}
.pricing-card h3 {
    font-size: 1.5rem;
    margin: 0 0 8px;
}
.pricing-card-price {
    margin: 24px 0;
    padding: 24px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}
.pricing-card-price .price-old { font-size: 1.5rem; }
.pricing-card-price .price-new { font-size: 3rem; }
.pricing-card-price .pill { background: #fffbeb; color: #f59e0b; border-color: #fde68a; }

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}
.features-list li {
    margin-bottom: 12px;
}
.pricing-card-cta {
    /* margin-top: auto; is removed */
}
.pricing-card-cta .btn {
    width: 100%;
    margin-bottom: 8px;
}
.pricing-card-cta .hint {
    font-size: 0.875rem;
    text-align: center;
}

.why-section {
    background-color: var(--gray-50);
}
.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 48px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
@media(min-width: 768px) {
    .why-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.why-card {
    text-align: center;
}
.why-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: var(--dream-purple);
    color: var(--white);
}
.why-card:nth-child(2) .why-icon {
    background: var(--dream-green);
}
.why-card:nth-child(3) .why-icon {
    background: var(--dream-cyan);
}
.why-card h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.pricing-cta {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: var(--white);
    padding: 80px 0;
}
.pricing-cta h3 {
    font-size: 2rem;
    color: var(--white);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
}
.pricing-cta p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;
}
.pricing-cta .btn {
    font-size: 1.125rem;
    padding: 16px 32px;
}

/* Showcase Page */
.showcase-hero {
    background: var(--gradient-creative);
    color: var(--white);
    padding: 80px 0;
}
.showcase-hero h1 {
    max-width: 800px;
    margin: 16px auto 0;
    font-size: 2.25rem;
    color: var(--white);
}
.showcase-hero p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 48px;
}
@media (min-width: 768px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .showcase-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
 
 .header-right {
   z-index: 1001; /* Ensure this is on top */
}

/* Header Responsive */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--gray-800);
  transition: background-color 0.2s;
  z-index: 1001;
}
.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus {
  background-color: var(--gray-100);
}
.mobile-nav-toggle .icon-close {
  display: none;
}
.mobile-nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}
.mobile-nav-toggle[aria-expanded="true"] .icon-hamburger {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .header-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 1rem;
    right: 1rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid var(--gray-100);
    padding: 0.5rem;
    
    /* Animation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0.2s;
    z-index: 1000;
  }
  .header-nav.nav-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }
  .header-nav .nav-list {
    flex-direction: column;
    padding: 0;
    gap: 0.25rem;
  }
  .header-nav .nav-list a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .header-right .btn-header {
    display: none;
  }
}

/* Blog Page Styles */
.blog-container {
  padding-top: 40px;
  padding-bottom: 80px;
}

.blog-header {
  text-align: center;
  margin-bottom: 48px;
}

.blog-header h1 {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  margin-bottom: 16px;
}

.blog-header p {
  font-size: var(--text-lg);
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

.featured-section h2,
.recent-articles-section h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 16px;
}

.featured-article-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  margin-bottom: 64px;
}

.featured-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
  .featured-article-card {
    grid-template-columns: 1fr 1fr;
  }
}

.featured-image-container {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--gradient-hero);
}
.featured-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-content .pill {
  align-self: flex-start;
  margin-bottom: 16px;
  background-color: var(--dream-purple);
  color: var(--white);
}

.featured-content h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--gray-900);
}

.featured-content p {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0 0 24px;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-top: auto;
}

.recent-articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .recent-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .recent-articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-post-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.blog-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.post-card-image-container {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--gradient-hero);
}

.post-card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-content {
  padding: 20px;
}

.post-card-content .title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 8px;
}

.post-card-content .post-meta {
  display: block;
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: 12px;
}

.post-card-content p {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
}

/* FAQ Page Specific Styles */
.faq-page-header {
  max-width: 700px;
  margin: 0 auto 48px;
}
.faq-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  margin-bottom: 24px;
}
.faq-header-icon svg {
  width: 28px;
  height: 28px;
}
.faq-page-header h1 {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--gray-900);
}
.faq-page-header p {
  font-size: var(--text-lg);
  color: var(--gray-600);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

/* Override for the new FAQ item style */
.faq-list .faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 16px 24px;
  transition: box-shadow 0.3s ease;
}
.faq-list .faq-item:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

.faq-list .faq-question {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  padding: 0;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--gray-900);
}
.faq-list .faq-question:after {
    content: none; /* remove old '+' */
}

.faq-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
}

.faq-list .faq-question span:not(.faq-number) {
    flex-grow: 1;
    text-align: left;
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--gray-400);
  transition: transform 0.3s ease;
}

.faq-list .faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-list .faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease-in-out, padding-top 0.4s ease-in-out;
}

.faq-list .faq-item.active .faq-answer {
  max-height: 300px; /* Adjust as needed */
  padding-top: 16px;
}

.faq-list .faq-answer p {
  padding: 16px;
  margin: 0;
  background-color: var(--gray-50);
  border-radius: 12px;
  text-align: left;
  line-height: 1.7;
  border-left: 3px solid var(--dream-purple);
  color: var(--gray-700);
}

.faq-cta-box {
  max-width: 800px;
  margin: 64px auto 0;
  padding: 32px;
  background-color: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  text-align: center;
}
.faq-cta-box h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 8px;
}
.faq-cta-box p {
    color: var(--gray-600);
    margin-bottom: 24px;
}

/* Contact Page Styles */
.contact-header {
  text-align: center;
  margin-bottom: 48px;
}
.contact-header h1 {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: 8px;
}
.contact-header p {
  font-size: var(--text-lg);
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}
@media(min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
    }
}

.contact-info-card, .contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 32px;
}

.contact-info-card h3, .contact-form-card h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.info-item {
  margin-bottom: 24px;
}
.info-item:last-child {
  margin-bottom: 0;
}
.info-item h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 4px;
}
.info-item p {
  color: var(--gray-600);
  margin: 0;
  line-height: 1.6;
}
.info-item p a {
    color: var(--dream-purple);
    text-decoration: none;
}
.info-item p a:hover {
    text-decoration: underline;
}

/* Contact Form Specifics */
.contact-form-card .form-group {
    margin-bottom: 20px;
}
.contact-form-card .form-group label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
    font-size: var(--text-sm);
}
.contact-form-card .input, .contact-form-card textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: var(--gray-50);
    transition: all 0.2s ease;
}
.contact-form-card .input:focus, .contact-form-card textarea:focus {
    outline: none;
    border-color: var(--dream-purple);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
    background: var(--white);
}
.contact-form-card textarea {
    min-height: 120px;
    resize: vertical;
}

/* Single Blog Post Styles */
.blog-post-container {
    max-width: 800px; /* Optimal width for reading */
}

.post-header {
    text-align: center;
    margin-bottom: 32px;
}
.post-header h1 {
    font-size: var(--text-4xl);
    font-weight: 800;
    margin-bottom: 16px;
}
.post-meta {
    color: var(--gray-500);
    font-size: var(--text-sm);
}

.post-hero {
    width: 100%;
    margin: 32px 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}
.post-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    font-size: 1.125rem; /* 18px */
    line-height: 1.8;
    color: var(--gray-700);
}
.post-content h2, .post-content h3, .post-content h4 {
    color: var(--gray-900);
    margin-top: 2em;
    margin-bottom: 0.8em;
}
.post-content p {
    margin-bottom: 1.5em;
}
.post-content a {
    color: var(--dream-purple);
    text-decoration: underline;
}
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2em 0;
}

.post-navigation-section {
    background-color: var(--gray-50);
    padding-top: 48px;
    padding-bottom: 48px;
}
.post-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .post-nav {
        grid-template-columns: 1fr 1fr;
    }
}

.post-nav-card {
    display: block;
    padding: 24px;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    background: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}
.post-nav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.post-nav-card span {
    display: block;
    font-size: var(--text-sm);
    color: var(--dream-purple);
    font-weight: 600;
    margin-bottom: 8px;
}
.post-nav-card h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}
.post-nav-card.next {
    text-align: right;
}

.recent-posts-section {
    background-color: var(--gray-100);
}
.recent-posts-section h3 {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: 32px;
}

/* Processing Page Styles */
#processing-animation-container h2 {
    font-size: 1.5rem;
    margin: 16px 0 8px;
}
#processing-animation-container p {
    max-width: 400px;
    margin: 0 auto 24px;
}
.processing-steps {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--gray-600);
}
.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}
.step-icon svg {
    width: 24px;
    height: 24px;
}
.text-dream-purple { color: var(--dream-purple); }
.text-dream-cyan { color: var(--dream-cyan); }
.text-dream-emerald { color: var(--dream-emerald); }

#ai-artist-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #f3f4f6;
    margin: 0 auto;
}

#feedback-section {
    display: none;
}
.form-h4 {
    margin-top: 24px;
}
.btn-submit-feedback {
    margin-top: 24px;
}
.feedback-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

#download-all-container {
    display: none;
    border: 2px solid var(--dream-emerald);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
#close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
}
#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

#share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 1001;
}
.share-modal-content {
    background: white;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
}
#share-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 16px;
}
#close-share-modal {
    margin-top: 24px;
}

/* New Image Card Layout */
.image-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.child-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.child-number {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--gray-900);
}
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    margin-left: 8px;
}
.status-completed { background-color: var(--dream-emerald); color: var(--white); }
.status-processing { background-color: var(--dream-amber); color: var(--white); }
.status-pending { background-color: var(--gray-200); color: var(--gray-700); }
.status-failed { background-color: var(--dream-rose); color: var(--white); }

.child-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: var(--gray-500);
}
.child-meta > span:not(:last-child)::after {
    content: '•';
    margin-left: 12px;
    color: var(--gray-300);
}

.child-images-area {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Original | Status/Generated */
    gap: 16px;
    align-items: center;
}
.preview-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: var(--gray-100);
    border-radius: 8px;
    overflow: hidden;
}
.preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}
.preview-container .label {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}
.status-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 16px;
    flex-wrap: wrap;
}
.status-waiting {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--gray-500);
    font-weight: 500;
    width: 100%; /* Ensure it takes up space in the grid */
    height: 100%;
    background: var(--gray-50);
    border: 2px dashed var(--gray-200);
}
.status-waiting svg {
    width: 32px;
    height: 32px;
}

.progress-summary {
    text-align: center;
}
.progress-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 16px 0;
    padding: 16px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}
.progress-detail-item {
    font-size: 0.875rem;
    color: var(--gray-500);
}
.progress-detail-item span {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    width: 48px;
    height: 48px;
    line-height: 48px;
    border-radius: 50%;
    margin: 0 auto 8px;
}
#progress-completed { background-color: rgba(16, 185, 129, 0.1); color: var(--dream-emerald); }
#progress-processing { background-color: rgba(245, 158, 11, 0.1); color: var(--dream-amber); }
#progress-in-queue { background-color: rgba(107, 114, 128, 0.1); color: var(--gray-500); }

.generated-preview .preview-actions {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 8px;
}
.generated-preview .icon-btn {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    backdrop-filter: blur(4px);
    border-radius: 8px;
    padding: 8px;
}
.generated-preview .icon-btn:hover {
    background: rgba(0,0,0,0.8);
}

@media (max-width: 640px) {
    .child-images-area {
        grid-template-columns: 1fr;
    }
    .status-indicator {
        min-height: 200px; /* Ensure it has some height on mobile */
    }
}

.reaction-btn {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    padding: 8px 16px;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.2s;
}
.reaction-btn:hover {
    transform: translateY(-2px);
    border-color: var(--gray-300);
}
.reaction-btn.selected {
    background: var(--dream-purple);
    color: var(--white);
    border-color: var(--dream-purple);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.stars {
    display: flex;
    gap: 8px;
    justify-content: center;
    font-size: 2rem;
    color: var(--gray-200);
    cursor: pointer;
}
.stars .star:hover, .stars .star.selected {
    color: var(--dream-amber);
    transform: scale(1.1);
    transition: color 0.2s, transform 0.2s;
}

#order-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.detail-item {
    background-color: var(--gray-50);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.875rem;
}
.detail-item strong {
    display: block;
    color: var(--gray-900);
    font-weight: 600;
    margin-bottom: 4px;
}
#detail-order-number {
    font-weight: 600;
    color: var(--dream-purple);
    background-color: rgba(124, 58, 237, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
}
.card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
}
.detail-row strong {
    font-weight: 600;
    color: var(--gray-700);
}

/* Processing Animation Section */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes sparkle-anim {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

.animation-container .elephant-emoji {
    animation: bounce 2s ease-in-out infinite;
}
.animation-container .paintbrush-emoji {
    animation: bounce 2s ease-in-out infinite;
}

.feature-highlights {
    border-top: 1px solid rgba(124, 58, 237, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    text-align: center;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--gray-700);
    max-width: 120px;
}
.feature-item .feature-icon {
    font-size: 2rem;
}
.feature-item .feature-text {
    font-size: var(--text-sm);
}

/* Completion Celebration Section */
#completion-celebration-section .btn:hover {
    opacity: 0.9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
@media (max-width: 640px) {
    #completion-celebration-section .celebration-content {
        flex-direction: column;
        text-align: center;
    }
    #completion-celebration-section .btn {
        width: 100%;
        margin-top: 16px;
    }
}

.detail-row strong {
    font-weight: 600;
    color: var(--gray-700);
}

/* Individual Child Status Cards */
.child-status-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}
@media(min-width: 768px) {
    .child-status-card {
        flex-direction: row;
    }
}

.child-badge {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.child-card-content {
    flex-grow: 1;
}

.child-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.child-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
}
.child-card-status-badge {
    padding: 4px 12px;
    border-radius: 99px;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: capitalize;
}
.child-card-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin: 0 0 16px 0;
}
.child-card-meta > div {
    display: flex;
    align-items: center;
    gap: 4px;
}

.visual-flow {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    justify-content: center;
}
.visual-flow-arrow {
    font-size: 2rem;
    color: var(--gray-300);
    align-self: center;
    height: 188px;
    display: flex;
    align-items: center;
}

.image-preview-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--gray-100);
}
.image-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.original-preview-placeholder {
    width: 150px;
    height: 188px; /* 4/5 aspect ratio */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    color: var(--dream-blue);
}
.generated-image-area {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 188px;
    width: 100%;
}
.status-indicator-placeholder {
    width: 100%;
    height: 188px;
    border: 2px dashed var(--gray-300);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}
.status-indicator-placeholder.waiting { color: var(--dream-amber); border-color: var(--dream-amber); }
.status-indicator-placeholder.processing { color: var(--dream-blue); border-color: var(--dream-blue); }
.status-indicator-placeholder.regenerating { color: var(--dream-orange); border-color: var(--dream-orange); }

.generated-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 150px));
    gap: 16px;
    justify-content: center;
    width: 100%;
}
.generated-image-item .image-preview-container {
    aspect-ratio: 4/5;
}
.generated-image-item .btn-group {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.btn.btn-sm { padding: 8px 12px; font-size: var(--text-xs); }
.btn-outline-orange {
    background: transparent;
    border: 1px solid var(--dream-orange);
    color: var(--dream-orange);
}
.btn-outline-orange:hover {
    background: var(--dream-orange);
    color: var(--white);
}

/* Progress Summary Footer */
@keyframes pulse-white {
    0%, 100% { background-color: rgba(255, 255, 255, 0); }
    50% { background-color: rgba(255, 255, 255, 0.2); }
}
.progress-bar-inner {
    transition: width 0.5s ease-in-out;
    animation: pulse-white 2s infinite;
}
.stats-grid {
    border-top: 1px solid var(--gray-200);
    padding-top: 24px;
    display: flex;
    justify-content: space-around;
    gap: 16px;
}
.stat-item {
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}
.stat-number {
    font-size: 2rem;
    font-weight: 800;
}
.stat-label {
    font-size: var(--text-sm);
    font-weight: 600;
}

.stat-item.stat-completed .stat-number { color: var(--dream-emerald); }
.stat-item.stat-processing .stat-number { color: var(--dream-blue); }
.stat-item.stat-in-queue .stat-number { color: var(--dream-amber); }

#order-details-card .card-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dream-purple);
    margin: 0;
}
#order-details-card .card-content {
    padding: 16px 24px 24px;
    display: grid;
    gap: 12px;
}
.detail-row {
    border-radius: 12px;
    padding: 12px 16px;
    border: none;
    border-left: none; /* Override previous style */
}
.detail-row strong {
    font-weight: 600;
}
.detail-row-purple { background: linear-gradient(90deg, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0.0) 100%); }
.detail-row-purple strong { color: var(--dream-purple); }
.detail-row-blue { background: linear-gradient(90deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.0) 100%); }
.detail-row-blue strong { color: var(--dream-blue); }
.detail-row-cyan { background: linear-gradient(90deg, rgba(6, 182, 212, 0.1) 0%, rgba(6, 182, 212, 0.0) 100%); }
.detail-row-cyan strong { color: var(--dream-cyan); }
.detail-row-emerald { background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.0) 100%); }
.detail-row-emerald strong { color: var(--dream-emerald); }

#detail-order-number {
    font-family: monospace;
    font-weight: 600;
    background-color: var(--gray-100);
    padding: 4px 10px;
    border-radius: 6px;
    color: var(--gray-700);
}
#detail-total-images {
    font-weight: 700;
    font-size: 1.125rem;
}

#processing-animation-section {
    margin-bottom: 32px;
    padding: 32px;
}

#order-details-card .card-header {
    padding: 24px 24px 0;
}

#order-details-card .card-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
}

#completion-celebration-section {
    padding: 40px;
    border: none;
    background: transparent;
    box-shadow: none;
}
#completion-celebration-section h3 {
    font-size: 2rem;
    margin: 16px 0 8px;
}
#completion-celebration-section p {
    color: var(--gray-600);
    margin-bottom: 32px;
}

.completion-icon-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}
.palette-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    border-radius: 50%;
    position: absolute;
    left: 10px;
    top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
}
.palette-icon::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50,10 C70,10 90,30 90,50 C90,70 70,90 50,90 C30,90 10,70 10,50 C10,30 30,10 50,10 Z' fill='%23ffffff'/%3E%3Cpath d='M60,25 C75,25 75,45 60,45 C45,45 45,25 60,25 Z' fill='black'/%3E%3C/svg%3E") no-repeat center center;
    background-size: 60%;
    filter: invert(1);
    opacity: 0.1;
}

.color-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f59e0b;
    border: 3px solid white;
}
.color-dot.c1 { top: 25px; left: 25px; background: #f59e0b; }
.color-dot.c2 { top: 20px; right: 25px; background: #f43f5e; }
.color-dot.c3 { bottom: 25px; left: 30px; background: #10b981; }
.color-dot.c4 { bottom: 20px; right: 20px; background: #06b6d4; }

.done-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 48px;
    background: var(--dream-emerald);
    color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}
.done-badge svg { width: 18px; height: 18px; }

#feedback-form {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    margin-bottom: 24px;
}
#feedback-form h4 {
    font-weight: 600;
    color: var(--dream-purple);
    margin: 0 0 16px;
}
#feedback-form .stars {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--gray-300);
}
#feedback-form .star { cursor: pointer; transition: all 0.2s; }
#feedback-form .star:hover { transform: scale(1.2); color: var(--dream-amber); }
#feedback-form .stars.rated .star.selected { color: var(--dream-amber); }

.reactions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.reaction-btn {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 90px;
}
.reaction-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: var(--dream-purple);
}
.reaction-btn.selected {
    border-color: var(--dream-purple);
    background: rgba(124, 58, 237, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}
.reaction-btn .emoji { font-size: 1.5rem; display: block; }
.reaction-btn span { font-size: var(--text-sm); font-weight: 500; color: var(--gray-600); }

.feedback-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px 0;
    text-align: left;
}
@media (min-width: 640px) {
    .feedback-inputs { grid-template-columns: 1fr 1fr; }
}
#feedback-form .form-group {
    text-align: left;
}
#feedback-form .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-700);
}
#feedback-form .form-group small {
    display: block;
    font-size: var(--text-xs);
    color: var(--gray-500);
    margin-top: 4px;
}
#feedback-form input, #feedback-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
}
#feedback-form input:focus, #feedback-form textarea:focus {
    outline: none;
    border-color: var(--dream-purple);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}
.btn-submit-feedback {
    width: 100%;
}
.completion-actions {
    display: none;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--dream-purple);
    color: var(--dream-purple);
}
.btn-outline:hover {
    background: var(--dream-purple);
    color: var(--white);
}
.btn-outline-amber {
    background: transparent;
    border: 1px solid var(--dream-amber);
    color: var(--dream-amber);
}
.btn-outline-amber:hover {
    background: var(--dream-amber);
    color: var(--white);
}

/* Individual Child Status Cards */
.child-status-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
@media(min-width: 768px) {
    .child-status-card {
        flex-direction: row;
    }
}

.child-badge {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.child-card-content {
    flex-grow: 1;
}

.child-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.child-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
}
.child-card-status-badge {
    padding: 4px 12px;
    border-radius: 99px;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: capitalize;
}
.child-card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin: 0 0 16px 0;
}
.child-card-meta > div {
    display: flex;
    align-items: center;
    gap: 4px;
}

.visual-flow {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    justify-content: center;
}
.visual-flow-arrow {
    font-size: 2rem;
    color: var(--gray-300);
    align-self: center;
    height: 188px;
    display: flex;
    align-items: center;
}

.image-preview-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--gray-100);
}
.image-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.original-preview-placeholder {
    width: 150px;
    height: 188px; /* 4/5 aspect ratio */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    color: var(--dream-blue);
}
.generated-image-area {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 188px;
    width: 100%;
}
.status-indicator-placeholder {
    width: 100%;
    height: 188px;
    border: 2px dashed var(--gray-300);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}
.status-indicator-placeholder.waiting { color: var(--dream-amber); border-color: var(--dream-amber); }
.status-indicator-placeholder.processing { color: var(--dream-blue); border-color: var(--dream-blue); }
.status-indicator-placeholder.regenerating { color: var(--dream-orange); border-color: var(--dream-orange); }

.generated-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 150px));
    gap: 16px;
    justify-content: center;
    width: 100%;
}
.generated-image-item .image-preview-container {
    aspect-ratio: 4/5;
}
.generated-image-item .btn-group {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.btn.btn-sm { padding: 8px 12px; font-size: var(--text-xs); }
.btn-outline-orange {
    background: transparent;
    border: 1px solid var(--dream-orange);
    color: var(--dream-orange);
}
.btn-outline-orange:hover {
    background: var(--dream-orange);
    color: var(--white);
}

/* Progress Summary Footer */
@keyframes pulse-white {
    0%, 100% { background-color: rgba(255, 255, 255, 0); }
    50% { background-color: rgba(255, 255, 255, 0.2); }
}
.progress-bar-inner {
    transition: width 0.5s ease-in-out;
    animation: pulse-white 2s infinite;
}
.stats-grid {
    border-top: 1px solid var(--gray-200);
    padding-top: 24px;
    display: flex;
    justify-content: space-around;
    gap: 16px;
}
.stat-item {
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}
.stat-number {
    font-size: 2rem;
    font-weight: 800;
}
.stat-label {
    font-size: var(--text-sm);
    font-weight: 600;
}

.stat-item.stat-completed .stat-number { color: var(--dream-emerald); }
.stat-item.stat-processing .stat-number { color: var(--dream-blue); }
.stat-item.stat-in-queue .stat-number { color: var(--dream-amber); }

#order-details-card .card-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dream-purple);
    margin: 0;
}
#order-details-card .card-content {
    padding: 16px 24px 24px;
    display: grid;
    gap: 12px;
}
.detail-row {
    border-radius: 12px;
    padding: 12px 16px;
    border: none;
    border-left: none; /* Override previous style */
}
.detail-row strong {
    font-weight: 600;
}
.detail-row-purple { background: linear-gradient(90deg, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0.0) 100%); }
.detail-row-purple strong { color: var(--dream-purple); }
.detail-row-blue { background: linear-gradient(90deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.0) 100%); }
.detail-row-blue strong { color: var(--dream-blue); }
.detail-row-cyan { background: linear-gradient(90deg, rgba(6, 182, 212, 0.1) 0%, rgba(6, 182, 212, 0.0) 100%); }
.detail-row-cyan strong { color: var(--dream-cyan); }
.detail-row-emerald { background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.0) 100%); }
.detail-row-emerald strong { color: var(--dream-emerald); }

#detail-order-number {
    font-family: monospace;
    font-weight: 600;
    background-color: var(--gray-100);
    padding: 4px 10px;
    border-radius: 6px;
    color: var(--gray-700);
}
#detail-total-images {
    font-weight: 700;
    font-size: 1.125rem;
}

#processing-animation-section {
    margin-bottom: 32px;
    padding: 32px;
}

#order-details-card .card-header {
    padding: 24px 24px 0;
}

#order-details-card .card-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
}

#completion-celebration-section {
    padding: 40px;
    border: none;
    background: transparent;
    box-shadow: none;
}
#completion-celebration-section h3 {
    font-size: 2rem;
    margin: 16px 0 8px;
}
#completion-celebration-section p {
    color: var(--gray-600);
    margin-bottom: 32px;
}

.completion-icon-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}
.palette-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    border-radius: 50%;
    position: absolute;
    left: 10px;
    top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
}
.palette-icon::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50,10 C70,10 90,30 90,50 C90,70 70,90 50,90 C30,90 10,70 10,50 C10,30 30,10 50,10 Z' fill='%23ffffff'/%3E%3Cpath d='M60,25 C75,25 75,45 60,45 C45,45 45,25 60,25 Z' fill='black'/%3E%3C/svg%3E") no-repeat center center;
    background-size: 60%;
    filter: invert(1);
    opacity: 0.1;
}

.color-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f59e0b;
    border: 3px solid white;
}
.color-dot.c1 { top: 25px; left: 25px; background: #f59e0b; }
.color-dot.c2 { top: 20px; right: 25px; background: #f43f5e; }
.color-dot.c3 { bottom: 25px; left: 30px; background: #10b981; }
.color-dot.c4 { bottom: 20px; right: 20px; background: #06b6d4; }

.done-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 48px;
    background: var(--dream-emerald);
    color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}
.done-badge svg { width: 18px; height: 18px; }

#feedback-form {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    margin-bottom: 24px;
}
#feedback-form h4 {
    font-weight: 600;
    color: var(--dream-purple);
    margin: 0 0 16px;
}
#feedback-form .stars {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--gray-300);
}
#feedback-form .star { cursor: pointer; transition: all 0.2s; }
#feedback-form .star:hover { transform: scale(1.2); color: var(--dream-amber); }
#feedback-form .stars.rated .star.selected { color: var(--dream-amber); }

.reactions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.reaction-btn {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 90px;
}
.reaction-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: var(--dream-purple);
}
.reaction-btn.selected {
    border-color: var(--dream-purple);
    background: rgba(124, 58, 237, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}
.reaction-btn .emoji { font-size: 1.5rem; display: block; }
.reaction-btn span { font-size: var(--text-sm); font-weight: 500; color: var(--gray-600); }

.feedback-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px 0;
    text-align: left;
}
@media (min-width: 640px) {
    .feedback-inputs { grid-template-columns: 1fr 1fr; }
}
#feedback-form .form-group {
    text-align: left;
}
#feedback-form .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-700);
}
#feedback-form .form-group small {
    display: block;
    font-size: var(--text-xs);
    color: var(--gray-500);
    margin-top: 4px;
}
#feedback-form input, #feedback-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
}
#feedback-form input:focus, #feedback-form textarea:focus {
    outline: none;
    border-color: var(--dream-purple);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}
.btn-submit-feedback {
    width: 100%;
}
.completion-actions {
    display: none;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--dream-purple);
    color: var(--dream-purple);
}
.btn-outline:hover {
    background: var(--dream-purple);
    color: var(--white);
}
.btn-outline-amber {
    background: transparent;
    border: 1px solid var(--dream-amber);
    color: var(--dream-amber);
}
.btn-outline-amber:hover {
    background: var(--dream-amber);
    color: var(--white);
}

/* Individual Child Status Cards */
.child-status-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
@media(min-width: 768px) {
    .child-status-card {
        flex-direction: row;
    }
}

.child-badge {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.child-card-content {
    flex-grow: 1;
}

.child-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.child-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
}
.child-card-status-badge {
    padding: 4px 12px;
    border-radius: 99px;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: capitalize;
}
.child-card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin: 0 0 16px 0;
}
.child-card-meta > div {
    display: flex;
    align-items: center;
    gap: 4px;
}

.visual-flow {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    justify-content: center;
}
.visual-flow-arrow {
    font-size: 2rem;
    color: var(--gray-300);
    align-self: center;
    height: 188px;
    display: flex;
    align-items: center;
}

.image-preview-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--gray-100);
}
.image-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.original-preview-placeholder {
    width: 150px;
    height: 188px; /* 4/5 aspect ratio */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    color: var(--dream-blue);
}
.generated-image-area {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 188px;
    width: 100%;
}
.status-indicator-placeholder {
    width: 100%;
    height: 188px;
    border: 2px dashed var(--gray-300);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}
.status-indicator-placeholder.waiting { color: var(--dream-amber); border-color: var(--dream-amber); }
.status-indicator-placeholder.processing { color: var(--dream-blue); border-color: var(--dream-blue); }
.status-indicator-placeholder.regenerating { color: var(--dream-orange); border-color: var(--dream-orange); }

.generated-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 150px));
    gap: 16px;
    justify-content: center;
    width: 100%;
}
.generated-image-item .image-preview-container {
    aspect-ratio: 4/5;
}
.generated-image-item .btn-group {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.btn.btn-sm { padding: 8px 12px; font-size: var(--text-xs); }
.btn-outline-orange {
    background: transparent;
    border: 1px solid var(--dream-orange);
    color: var(--dream-orange);
}
.btn-outline-orange:hover {
    background: var(--dream-orange);
    color: var(--white);
}

/* Progress Summary Footer */
@keyframes pulse-white {
    0%, 100% { background-color: rgba(255, 255, 255, 0); }
    50% { background-color: rgba(255, 255, 255, 0.2); }
}
.progress-bar-inner {
    transition: width 0.5s ease-in-out;
    animation: pulse-white 2s infinite;
}
.stats-grid {
    border-top: 1px solid var(--gray-200);
    padding-top: 24px;
    display: flex;
    justify-content: space-around;
    gap: 16px;
}
.stat-item {
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}
.stat-number {
    font-size: 2rem;
    font-weight: 800;
}
.stat-label {
    font-size: var(--text-sm);
    font-weight: 600;
}

.stat-item.stat-completed .stat-number { color: var(--dream-emerald); }
.stat-item.stat-processing .stat-number { color: var(--dream-blue); }
.stat-item.stat-in-queue .stat-number { color: var(--dream-amber); }

#order-details-card .card-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dream-purple);
    margin: 0;
}
#order-details-card .card-content {
    padding: 16px 24px 24px;
    display: grid;
    gap: 12px;
}
.detail-row {
    border-radius: 12px;
    padding: 12px 16px;
    border: none;
    border-left: none; /* Override previous style */
}
.detail-row strong {
    font-weight: 600;
}
.detail-row-purple { background: linear-gradient(90deg, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0.0) 100%); }
.detail-row-purple strong { color: var(--dream-purple); }
.detail-row-blue { background: linear-gradient(90deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.0) 100%); }
.detail-row-blue strong { color: var(--dream-blue); }
.detail-row-cyan { background: linear-gradient(90deg, rgba(6, 182, 212, 0.1) 0%, rgba(6, 182, 212, 0.0) 100%); }
.detail-row-cyan strong { color: var(--dream-cyan); }
.detail-row-emerald { background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.0) 100%); }
.detail-row-emerald strong { color: var(--dream-emerald); }

#detail-order-number {
    font-family: monospace;
    font-weight: 600;
    background-color: var(--gray-100);
    padding: 4px 10px;
    border-radius: 6px;
    color: var(--gray-700);
}
#detail-total-images {
    font-weight: 700;
    font-size: 1.125rem;
}

#processing-animation-section {
    margin-bottom: 32px;
    padding: 32px;
}

#order-details-card .card-header {
    padding: 24px 24px 0;
}

#order-details-card .card-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
}

#image-grid-container {
    display: grid;
    gap: 24px;
    padding: 0 16px;
}

.email-notification-msg {
    text-align: center;
    color: var(--gray-500);
    font-size: var(--text-sm);
    margin-top: 16px;
}

.completion-icon {
    display: block;
    margin: 0 auto 16px;
}

#completion-celebration-section {
    padding: 40px;
    border: none;
    background: transparent;
    box-shadow: none;
    font-weight: 600;
}

.btn-outline-blue {
    background: transparent;
    border: 1px solid var(--dream-blue);
    color: var(--dream-blue);
}
.btn-outline-blue:hover {
    background: var(--dream-blue);
    color: var(--white);
}

.original-image-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.feedback-disclaimer {
    font-size: var(--text-xs);
    color: var(--gray-500);
    margin-top: 12px;
}

#addChildBtnContainer {
    margin-top: 16px;
    text-align: center;
}

.child-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.testimonial-card .stars {
    color: var(--dream-amber);
    margin-bottom: 12px;
    font-size: 1.25rem;
}
.testimonial-card p {
    flex-grow: 1;
}

/* Mobile layout for processing page cards */
@media (max-width: 767px) {
    .visual-flow {
        flex-direction: column;
        align-items: center;
    }

    .visual-flow-arrow {
        transform: rotate(90deg);
        height: auto;
    }
}

.form-section-summary h4 {
    color: var(--dream-green);
}

.consents .error-inline {
  color: var(--dream-rose);
  margin-left: 28px;
}

.text-dream-green { color: var(--dream-emerald); }
.text-dream-blue { color: var(--dream-blue); }
.text-dream-purple { color: var(--dream-purple); }

@media (max-width: 768px) {
  .hero-v2 { padding-top: 16px; overflow-x: hidden; }
  .hero-v2 .container.hero-v2-grid {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 16px;
    padding-right: 16px;
  }
  /* Bring hero-left and hero-right closer */
  .hero-v2-grid {
    grid-template-columns: 1fr;
    gap: 12px; /* was 20px */
    min-height: unset; /* let content drive height */
  }
  /* badges */
  .hero-badges { flex-wrap: nowrap; gap: 8px; }
  .badge-pill { font-size: 0.75rem; padding: 6px 8px; }
  .badge-pill img { width: 14px; height: 14px; }

  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 0.95rem; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }

  /* CTAs: smaller, side-by-side */
  .hero-ctas { gap: 8px; margin-top: 12px; margin-bottom: 10px; flex-wrap: nowrap; }
  .btn-hero-primary, .btn-hero-secondary { padding: 10px 12px; font-size: 0.85rem; border-radius: 10px; }
  .btn-hero-secondary { border-width: 2px; }
  .btn-hero-primary img { width: 18px; height: 18px; }

  /* stats */
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
  .hero-stat-number { font-size: 1.1rem; }
  .hero-stat-label { font-size: 0.72rem; }

  /* Single composite image - responsive scaling */
  .hero-before-after { max-width: 100%; height: auto; }

  /* hide all stars on mobile */
  .hero-star { display: none !important; }

  .hero-form-intro-section { padding-top: 8px; }
}

/* 1920–2560: pull content in, tighten spacing */
@media (max-width: 1920px) and (min-width: 1441px) {
  .hero-v2 .container.hero-v2-grid {
    padding-left: clamp(24px, 10vw, 240px);
    padding-right: clamp(24px, 10vw, 240px);
  }
  .hero-stats { margin-top: 12px; gap: 20px; }
}

/* 1440–1920: slightly narrower gutters and images */
@media (max-width: 1440px) and (min-width: 1025px) {
  .hero-v2 .container.hero-v2-grid {
    padding-left: clamp(24px, 8vw, 180px);
    padding-right: clamp(24px, 8vw, 180px);
  }
  .hero-before-after { max-width: clamp(400px, 50vw, 600px); }
  .hero-stats      { margin-top: 10px; gap: 18px; }
}

/* 1920–2560: responsive composite image and slightly reduced H1 */
@media (max-width: 1920px) and (min-width: 1441px) {
  .hero-before-after { max-width: clamp(500px, 60vw, 700px); }
  .hero-title      { font-size: clamp(40px, 5.6vw, 84px); }
}

/* Desktop-only larger H2 */
@media (min-width: 769px) {
  h2, .h2-style { font-size: 2.25rem; }
  .hero-subtitle { font-size: clamp(1.5rem, 1.5vw, 2rem); }
}

/* Center form content inside the order form */
.order-form-container .form-content { width: 100%; max-width: 720px; margin-left: auto; margin-right: auto; }

/* Role selection (Step 1) */
.role-select {
  margin: 8px 0 16px;
}

.role-select .text-gradient-primary {
  font-size: 28px !important;
}
.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 780px;
  margin: 0 auto;
}
.role-card {
  position: relative;
  background: #ffffff;
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  padding: 16px 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
}
.role-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 8px;
}
.role-card h5 {
  margin: 4px 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
}
.role-card p {
  margin: 0;
  color: var(--gray-600);
  font-size: .9rem;
  line-height: 1.45;
}
.role-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(2,6,23,.06); }
.role-card:focus { outline: 3px solid rgba(28,105,245,.25); outline-offset: 2px; }
.role-card.selected { border-color: #1c69f5; box-shadow: 0 10px 22px rgba(28,105,245,.18); }
.role-card .role-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: #1c69f5;
  color: #fff;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}
.role-card.selected .role-check { display: flex; }

/* Hide legacy buttons visually (logic kept in DOM) */
.account-type-buttons { display: none; }

/* Responsive adjustments for role cards */
@media (max-width: 768px) {
  .role-grid { grid-template-columns: 1fr; gap: 12px; }
  .role-card { padding: 16px; border-radius: 14px; }
  .role-card h5 { font-size: 1.05rem; }
  .role-card p { font-size: .9rem; }
}