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

:root {
  --coral: #FF6B6B;
  --coral-dark: #E85555;
  --yellow: #FFE66D;
  --yellow-dark: #F5D645;
  --sky: #A8D8EA;
  --sky-dark: #8EC5D9;
  --cream: #FFF8F0;
  --green: #6BB77B;
  --green-dark: #5AA66A;
  --purple: #B8A9C9;
  --purple-light: #E8E0F0;
  --text: #3D3D3D;
  --text-light: #7A7A7A;
  --text-muted: #A0A0A0;
  --white: #FFFFFF;
  --border: #F0E6DA;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --font-heading: 'Quicksand', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255,107,107,0.4), 0 0 60px rgba(255,107,107,0.2); transform: scale(1); }
  50% { box-shadow: 0 0 40px rgba(255,107,107,0.6), 0 0 100px rgba(255,107,107,0.3); transform: scale(1.05); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

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

@keyframes confetti-fall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes illust-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}
.illust-generating-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 2;
  background: linear-gradient(90deg, transparent 0%, #63B3ED 40%, #90CDF4 60%, transparent 100%);
  animation: illust-shimmer 1.4s ease-in-out infinite;
}

@keyframes toast-fade {
  0%   { opacity: 1; transform: translateY(0); }
  80%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(6px); }
}
.toast-notification {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #48BB78;
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 9999;
  pointer-events: none;
  animation: toast-fade 5s forwards;
}
.toast-notification-error {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #E53E3E;
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 9999;
  pointer-events: none;
  max-width: 360px;
  animation: toast-fade 8s forwards;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,248,240,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.navbar-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--coral);
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-logo span {
  font-size: 1.8rem;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition);
  position: relative;
}

.navbar-links a:hover {
  color: var(--coral);
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--coral);
  transition: width 0.3s ease;
}

.navbar-links a:hover::after {
  width: 100%;
}

.navbar-cta {
  background: var(--coral);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  transition: var(--transition);
}

.navbar-cta:hover {
  background: var(--coral-dark);
  transform: translateY(-1px);
}

.navbar-cta::after {
  display: none !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  z-index: 999;
}

.mobile-menu.open {
  display: block;
  animation: fadeIn 0.3s ease;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .hamburger { display: flex; }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: linear-gradient(135deg, #FFF0E6 0%, #FFE0D6 25%, #FFD4C8 50%, #FFDEE4 75%, #FFE8F0 100%);
  position: relative;
  overflow: hidden;
}

.hero-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-star {
  position: absolute;
  font-size: 1.5rem;
  animation: sparkle 3s ease-in-out infinite;
}

.hero-star:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.hero-star:nth-child(2) { top: 25%; right: 12%; animation-delay: 0.5s; }
.hero-star:nth-child(3) { bottom: 30%; left: 8%; animation-delay: 1s; }
.hero-star:nth-child(4) { top: 40%; right: 5%; animation-delay: 1.5s; font-size: 2rem; }
.hero-star:nth-child(5) { bottom: 20%; right: 15%; animation-delay: 2s; }
.hero-star:nth-child(6) { top: 10%; left: 35%; animation-delay: 0.7s; font-size: 1.2rem; }
.hero-star:nth-child(7) { bottom: 40%; left: 25%; animation-delay: 1.3s; }
.hero-star:nth-child(8) { top: 55%; right: 25%; animation-delay: 1.8s; font-size: 1.8rem; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-emoji {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-tagline {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 48px;
  font-weight: 500;
}

.hero-cta {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  padding: 24px 56px;
  border-radius: 60px;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: pulse-glow 2.5s ease-in-out infinite;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.hero-cta:hover {
  background: var(--coral-dark);
  transform: scale(1.08);
}

.hero-subtitle {
  margin-top: 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-cta { font-size: 1.2rem; padding: 20px 40px; }
  .hero-tagline { font-size: 1.1rem; }
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--white);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 56px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== STORY CARDS ===== */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.story-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.story-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--coral);
}

.story-card-emoji {
  font-size: 3rem;
  margin-bottom: 16px;
}

.story-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.story-card-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.story-card-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.story-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--cream);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
}

/* ===== HOW IT WORKS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.step-item {
  position: relative;
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--yellow));
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-emoji {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  color: var(--text-light);
  font-size: 0.95rem;
}

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

/* ===== FAQ ===== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-heading);
  background: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  color: var(--text);
}

.faq-question:hover {
  background: rgba(255,107,107,0.04);
}

.faq-icon {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== ABOUT ===== */
.about-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-emoji {
  font-size: 3rem;
  margin-bottom: 24px;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text);
  color: var(--white);
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--coral);
}

.footer-brand p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--coral);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ===== STORY DETAIL PAGE ===== */
.story-detail {
  padding-top: 96px;
  min-height: 100vh;
}

.story-detail-header {
  text-align: center;
  padding: 40px 24px 60px;
  background: linear-gradient(135deg, #FFF0E6 0%, #FFE8F0 100%);
}

.story-detail-emoji {
  font-size: 4rem;
  margin-bottom: 16px;
}

.story-detail-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.story-detail-desc {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.story-detail-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.story-detail-badge {
  background: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.story-preview-section {
  padding: 60px 24px;
}

.book-frame {
  max-width: 600px;
  margin: 0 auto 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--border);
  position: relative;
}

.book-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 40px;
  right: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--yellow), var(--sky), var(--green));
  border-radius: 0 0 4px 4px;
}

.book-page-indicator {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 600;
}

.book-page-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  text-align: center;
  min-height: 100px;
}

.book-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.book-nav-btn {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.book-nav-btn:hover {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}

.order-story-cta {
  display: block;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  background: var(--coral);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  padding: 20px 40px;
  border-radius: 60px;
  animation: pulse-glow 2.5s ease-in-out infinite;
  transition: var(--transition);
}

.order-story-cta:hover {
  background: var(--coral-dark);
  transform: scale(1.05);
}

/* ===== ORDER FORM ===== */
.order-page {
  padding-top: 96px;
  min-height: 100vh;
  background: var(--cream);
}

.order-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.order-page-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

/* Progress Bar */
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
  gap: 0;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 0;
}

.progress-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.progress-circle.active {
  background: var(--coral);
  color: var(--white);
}

.progress-circle.done {
  background: var(--green);
  color: var(--white);
}

.progress-line {
  width: 40px;
  height: 3px;
  background: var(--border);
  transition: var(--transition);
}

.progress-line.active {
  background: var(--green);
}

@media (max-width: 600px) {
  .progress-line { width: 20px; }
  .progress-circle { width: 32px; height: 32px; font-size: 0.8rem; }
}

/* Step Content */
.step-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.4s ease;
}

.step-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-content .step-description {
  color: var(--text-light);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text);
}

.form-input, .form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: var(--transition);
  background: var(--white);
  color: var(--text);
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255,107,107,0.15);
}

.form-input.error, .form-select.error {
  border-color: var(--coral);
}

.form-error {
  color: var(--coral);
  font-size: 0.85rem;
  margin-top: 4px;
  font-weight: 600;
}

.form-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* Radio/Checkbox */
.radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.radio-option {
  flex: 1;
  min-width: 100px;
}

.radio-option input { display: none; }

.radio-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

.radio-option label:hover {
  border-color: var(--coral);
}

.radio-option input:checked + label {
  border-color: var(--coral);
  background: rgba(255,107,107,0.06);
  color: var(--coral);
}

.radio-icon {
  font-size: 1.5rem;
}

/* Package Cards */
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.package-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.package-card:hover {
  border-color: var(--coral);
}

.package-card.selected {
  border-color: var(--coral);
  background: rgba(255,107,107,0.04);
}

.package-card.popular::before {
  content: 'Best Value';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: var(--white);
  padding: 2px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.package-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.package-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.package-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--coral);
  margin-bottom: 4px;
}

.package-price-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Photo Upload */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 16px;
  background: #FAFAFA;
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--coral);
  background: rgba(255,107,107,0.04);
}

.upload-zone.has-file {
  border-color: var(--green);
  background: rgba(107,183,123,0.06);
}

.upload-zone-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.upload-zone-text {
  font-weight: 600;
  margin-bottom: 4px;
}

.upload-zone-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.upload-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

.upload-preview img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.upload-preview-info {
  flex: 1;
}

.upload-preview-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.upload-preview-size {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.upload-preview-remove {
  background: var(--coral);
  color: var(--white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Kids Form */
.kid-card {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.kid-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.kid-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.kid-remove-btn {
  background: none;
  color: var(--coral);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--coral);
  transition: var(--transition);
}

.kid-remove-btn:hover {
  background: var(--coral);
  color: var(--white);
}

.add-kid-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-light);
  transition: var(--transition);
  background: transparent;
}

.add-kid-btn:hover {
  border-color: var(--coral);
  color: var(--coral);
}

/* Shipping Address */
.address-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.address-fields .full-width {
  grid-column: 1 / -1;
}

/* Review Summary */
.review-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.review-section:last-child {
  border-bottom: none;
}

.review-section h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.95rem;
}

.review-row .label {
  color: var(--text-light);
}

.review-row .value {
  font-weight: 600;
}

/* Consent Checkbox */
.consent-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 20px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.consent-box input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--coral);
}

.consent-box label {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-light);
  cursor: pointer;
}

.consent-box label a {
  color: var(--coral);
  text-decoration: underline;
}

/* Navigation Buttons */
.step-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  gap: 16px;
}

.btn {
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text);
}

.btn-success {
  background: var(--green);
  color: var(--white);
}

.btn-success:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* ===== ORDER CONFIRMATION ===== */
.confirmation-page {
  padding-top: 96px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #FFF0E6, #FFE8F0);
}

.confirmation-content {
  max-width: 600px;
  padding: 40px 24px;
}

.confirmation-emoji {
  font-size: 5rem;
  margin-bottom: 24px;
  animation: bounce 1s ease;
}

.confirmation-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.confirmation-order-id {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--coral);
  font-weight: 700;
  margin-bottom: 24px;
}

.confirmation-message {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 32px;
}

.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confetti-fall linear forwards;
  z-index: 1000;
  pointer-events: none;
}

/* ===== PHOTO REUPLOAD ===== */
.reupload-page {
  padding-top: 96px;
  min-height: 100vh;
}

.reupload-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  padding-top: 96px;
  min-height: 100vh;
}

.legal-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.legal-container h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-container .legal-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal-container h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-container p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-container ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-container li {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 6px;
}

/* ===== LOADING SPINNER ===== */
.spinner-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  gap: 16px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ===== ERROR STATE ===== */
.error-box {
  background: #FFF0F0;
  border: 1px solid rgba(255,107,107,0.3);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  text-align: center;
  color: var(--coral);
  font-weight: 600;
}

/* ===== COLOR SWATCHES ===== */
.color-option label {
  position: relative;
}

.color-swatch {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.color-swatch span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.swatch-boy-1 { background: #4FC3F7; }
.swatch-boy-2 { background: #26A69A; }
.swatch-girl-1 { background: #F48FB1; }
.swatch-girl-2 { background: #CE93D8; }
.swatch-neutral-1 { background: #FFE082; }
.swatch-neutral-2 { background: #A5D6A7; }

/* ===== LANGUAGE TOGGLE ===== */
.lang-toggle {
  display: flex;
  border: 2px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  width: fit-content;
}

.lang-toggle button {
  padding: 10px 24px;
  font-weight: 700;
  font-size: 0.9rem;
  background: transparent;
  transition: var(--transition);
  color: var(--text-light);
}

.lang-toggle button.active {
  background: var(--coral);
  color: var(--white);
}

/* ===== 404 PAGE ===== */
.not-found {
  padding-top: 96px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.not-found-emoji {
  font-size: 5rem;
  margin-bottom: 16px;
}

.not-found h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 12px;
}

.not-found p {
  color: var(--text-light);
  margin-bottom: 24px;
}

/* Story select grid in order form */
.story-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.story-select-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.story-select-card:hover {
  border-color: var(--coral);
}

.story-select-card.selected {
  border-color: var(--coral);
  background: rgba(255,107,107,0.06);
}

.story-select-emoji {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.story-select-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
}

/* Gender tiles */
.gender-tiles {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.gender-tile {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  background: var(--white);
  user-select: none;
}

.gender-tile:hover { border-color: var(--coral); }

.gender-tile.selected {
  border-color: var(--coral);
  background: rgba(255,107,107,0.06);
}

.gender-tile-icon { font-size: 1.8rem; margin-bottom: 4px; }

.gender-tile-label { font-size: 0.85rem; font-weight: 600; color: var(--text); }

/* Compact upload zone */
.upload-zone.compact {
  padding: 14px 12px;
  min-height: auto;
}

.upload-zone.compact .upload-zone-icon { font-size: 1.6rem; margin-bottom: 4px; }
.upload-zone.compact .upload-zone-text { font-size: 0.85rem; }
.upload-zone.compact .upload-zone-hint { font-size: 0.75rem; }

/* Compact upload preview */
.upload-preview.compact {
  padding: 8px 12px;
}

.upload-preview.compact img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
}

/* Font picker */
.font-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.font-option {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  background: var(--white);
}

.font-option:hover { border-color: var(--coral); }

.font-option.selected {
  border-color: var(--coral);
  background: rgba(255,107,107,0.04);
}

.font-option-sample {
  font-size: 1rem;
  margin-bottom: 6px;
  line-height: 1.3;
  color: var(--text);
}

.font-option-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

/* Review photo thumbnails */
.review-photo-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.review-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

/* ================================================================
   ADMIN PANEL STYLES
   ================================================================ */

/* ===== Admin Layout ===== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #F7F8FC;
}

.admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
}

/* ===== Admin Sidebar ===== */
.admin-sidebar {
  width: 240px;
  min-height: 100vh;
  background: #2D3748;
  color: #CBD5E0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 999;
  transition: width 0.3s ease;
}

.admin-sidebar-collapsed {
  width: 64px;
}

.admin-sidebar-header {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-sidebar-logo {
  display: flex;
  flex-direction: column;
}

.admin-sidebar-logo span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #FF6B6B;
}

.admin-sidebar-logo small {
  font-size: 0.7rem;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admin-sidebar-toggle {
  background: none;
  color: #718096;
  font-size: 0.8rem;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.2s;
}

.admin-sidebar-toggle:hover {
  background: rgba(255,255,255,0.08);
  color: #CBD5E0;
}

.admin-sidebar-nav {
  flex: 1;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #A0AEC0;
  background: none;
  width: 100%;
  text-align: left;
  transition: all 0.2s;
}

.admin-sidebar-item:hover {
  background: rgba(255,255,255,0.06);
  color: #E2E8F0;
}

.admin-sidebar-item-active {
  background: rgba(255,107,107,0.15);
  color: #FF6B6B;
}

.admin-sidebar-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.admin-sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.admin-sidebar-user {
  padding: 8px 12px;
  margin-bottom: 8px;
}

.admin-sidebar-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #E2E8F0;
}

.admin-sidebar-user-role {
  font-size: 0.7rem;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-sidebar-logout {
  color: #FC8181 !important;
}

.admin-sidebar-logout:hover {
  background: rgba(252,129,129,0.1) !important;
}

/* ===== Admin Main Area ===== */
.admin-main {
  flex: 1;
  margin-left: 240px;
  transition: margin-left 0.3s ease;
  min-height: 100vh;
  min-width: 0;
  overflow-x: hidden;
}

.admin-main-expanded {
  margin-left: 64px;
}

/* ===== Admin Top Bar ===== */
.admin-topbar {
  height: 60px;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-topbar-menu {
  display: none;
  background: none;
  font-size: 1.4rem;
  color: #4A5568;
  padding: 4px;
}

.admin-topbar-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #2D3748;
  flex: 1;
}

.admin-topbar-back {
  background: none;
  border: none;
  color: #718096;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 6px 10px 6px 0;
  border-right: 1px solid #E2E8F0;
  margin-right: 4px;
  white-space: nowrap;
  transition: color 0.2s;
}

.admin-topbar-back:hover {
  color: #2D3748;
}

.admin-topbar-user {
  font-size: 0.85rem;
  color: #718096;
  font-weight: 500;
}

/* ===== Admin Content ===== */
.admin-content {
  padding: 24px;
}

/* ===== Admin Cards ===== */
.admin-card {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
}

.admin-card-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #E0E0E0;
  background: #EBEBEB;
}

.admin-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #2D3748;
}


/* ===== Admin Stats Grid ===== */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.admin-stat-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  text-align: center;
}

.admin-stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #2D3748;
}

.admin-stat-label {
  font-size: 0.8rem;
  color: #718096;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ===== Admin Tables ===== */
.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #718096;
  background: #FAFBFC;
  border-bottom: 1px solid #E2E8F0;
}

.admin-table td {
  padding: 12px 16px;
  font-size: 0.88rem;
  color: #4A5568;
  border-bottom: 1px solid #F0F0F5;
}

.admin-table tbody tr:hover {
  background: #F7F8FC;
}

.admin-table-row-clickable {
  cursor: pointer;
}

.admin-table-row-clickable:hover {
  background: #EDF2F7 !important;
}

.admin-td-truncate {
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Admin Status Badge ===== */
.admin-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
  border: 1px solid;
  white-space: nowrap;
}

/* ===== Admin Tabs ===== */
.admin-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-tabs-compact {
  gap: 2px;
}

.admin-tab {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  color: #718096;
  transition: all 0.2s;
}

.admin-tab:hover {
  background: #EDF2F7;
  color: #2D3748;
}

.admin-tab-active {
  background: #FF6B6B;
  color: #FFFFFF;
}

.admin-tab-active:hover {
  background: #E85555;
  color: #FFFFFF;
}

/* ===== Admin Buttons ===== */
.admin-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  font-family: var(--font-body);
}

.admin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-btn-primary {
  background: #FF6B6B;
  color: #FFFFFF;
}

.admin-btn-primary:hover:not(:disabled) {
  background: #E85555;
}

.admin-btn-secondary {
  background: #EDF2F7;
  color: #4A5568;
}

.admin-btn-secondary:hover:not(:disabled) {
  background: #E2E8F0;
}

.admin-btn-success {
  background: #7EC8A0;
  color: #FFFFFF;
}

.admin-btn-success:hover:not(:disabled) {
  background: #63B589;
}

.admin-btn-info {
  background: #63B3ED;
  color: #FFFFFF;
}
.admin-btn-info:hover:not(:disabled) {
  background: #4299E1;
}
.admin-btn-danger {
  background: #FC8181;
  color: #FFFFFF;
}

.admin-btn-danger:hover:not(:disabled) {
  background: #F56565;
}

.admin-btn-small {
  padding: 6px 12px;
  font-size: 0.78rem;
}

.admin-btn-full {
  width: 100%;
}

/* ===== Admin Forms ===== */
.admin-form-group {
  margin-bottom: 16px;
}

.admin-form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #4A5568;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.admin-form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: #2D3748;
  background: #FFFFFF;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-form-input:focus {
  outline: none;
  border-color: #FF6B6B;
  box-shadow: 0 0 0 3px rgba(255,107,107,0.12);
}

.admin-form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: #2D3748;
  background: #FFFFFF;
  resize: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-form-textarea:focus {
  outline: none;
  border-color: #FF6B6B;
  box-shadow: 0 0 0 3px rgba(255,107,107,0.12);
}

.admin-form-row {
  display: flex;
  gap: 16px;
}

.admin-form-row > * {
  flex: 1;
}

/* ===== Admin Search ===== */
.admin-search-input {
  padding: 8px 14px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: #2D3748;
  width: 240px;
  transition: border-color 0.2s;
}

.admin-search-input:focus {
  outline: none;
  border-color: #FF6B6B;
}

/* ===== Admin Alerts ===== */
.admin-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}

.admin-alert-error {
  background: #FFF5F5;
  color: #C53030;
  border: 1px solid #FED7D7;
}

.admin-alert-success {
  background: #F0FFF4;
  color: #276749;
  border: 1px solid #C6F6D5;
}

/* ===== Admin Login Page ===== */
.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2D3748, #4A5568);
  padding: 24px;
}

.admin-login-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.admin-login-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #FF6B6B;
  text-align: center;
  margin-bottom: 8px;
}

.admin-login-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  color: #2D3748;
  margin-bottom: 28px;
}

/* ===== Admin Loading ===== */
.admin-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  gap: 12px;
  color: #718096;
  font-size: 0.9rem;
}

.admin-loading-full {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #718096;
  background: #F7F8FC;
}

.admin-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #E2E8F0;
  border-top-color: #FF6B6B;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ===== Story Editor ===== */
.se-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #A0AEC0;
  margin: 0 0 10px;
}
.se-divider {
  border: none;
  border-top: 1px solid #EDF2F7;
  margin: 20px 0;
}

/* Basic info 2-column layout */
.se-basic-grid {
  display: grid;
  grid-template-columns: 140px 140px 1fr;
  gap: 20px;
  align-items: stretch;
}
.se-thumb-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.se-thumb-img {
  width: 140px;
  height: 198px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #CBD5E0;
  display: block;
  cursor: zoom-in;
}
.se-thumb-placeholder {
  width: 140px;
  height: 198px;
  border-radius: 8px;
  border: 2px dashed #CBD5E0;
  background: #F7FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: #A0AEC0;
  font-size: 11px;
  padding: 12px;
  box-sizing: border-box;
}
.se-thumb-label {
  font-size: 11px;
  color: #718096;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.se-thumb-hint {
  font-size: 10px;
  color: #A0AEC0;
  line-height: 1.4;
}

/* Set-as-cover button on page thumb cards */
.page-thumb-set-cover {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(99, 179, 237, 0.93);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 4px;
  text-align: center;
  cursor: pointer;
  border: none;
  opacity: 0;
  transition: opacity 0.15s;
  letter-spacing: 0.04em;
  z-index: 3;
}
.page-thumb-card:hover .page-thumb-set-cover {
  opacity: 1;
}
.page-thumb-card.is-cover {
  box-shadow: 0 0 0 2px #63B3ED, 0 2px 8px rgba(99,179,237,0.3);
}
.page-thumb-card.is-cover .page-thumb-set-cover {
  opacity: 1;
  background: rgba(72, 187, 120, 0.93);
}

/* Illustration settings */
.se-illust-settings {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.se-illust-settings > .admin-form-group {
  flex: 1;
  min-width: 160px;
}

/* Reference image boxes */
.se-ref-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #F7FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  box-sizing: border-box;
}
.se-ref-box > .admin-btn {
  margin-top: auto;
}
.se-ref-box-label {
  font-size: 11px;
  font-weight: 700;
  color: #4A5568;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.se-ref-box-hint {
  font-size: 11px;
  color: #A0AEC0;
  line-height: 1.4;
  margin: 0;
}
.se-ref-img {
  width: 120px;
  height: 170px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #CBD5E0;
  display: block;
  cursor: zoom-in;
}
.se-ref-placeholder {
  width: 120px;
  height: 170px;
  border-radius: 6px;
  border: 2px dashed #CBD5E0;
  background: #EDF2F7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #CBD5E0;
  flex-direction: column;
  gap: 4px;
}

/* Character ref cards */
.se-char-ref-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.se-char-ref-item {
  position: relative;
  width: 100px;
  background: #F7FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.se-char-ref-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.se-char-ref-name {
  font-size: 10px;
  font-weight: 700;
  color: #4A5568;
  text-align: center;
  padding: 5px 6px;
  word-break: break-all;
  line-height: 1.3;
  background: #fff;
}
.se-char-ref-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: rgba(229, 62, 62, 0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  padding: 0;
  line-height: 1;
}
.se-char-ref-item:hover .se-char-ref-remove {
  opacity: 1;
}
.se-char-add-box {
  width: 120px;
  background: #F7FAFC;
  border: 2px dashed #CBD5E0;
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
}
.se-char-add-input {
  width: 100%;
  font-size: 11px;
  padding: 5px 8px;
  text-align: center;
  margin: 0;
}
.se-char-add-trigger {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #CBD5E0;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.se-char-add-trigger:hover {
  color: #63B3ED;
  background: #EBF8FF;
}

/* ===== Page Editor ===== */
.pe-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: flex-start;
}
.pe-sidebar {
  position: sticky;
  top: 80px;
}
.pe-badge {
  font-size: 0.75rem;
  background: #EEF2FF;
  color: #4F46E5;
  border-radius: 4px;
  padding: 2px 8px;
  font-weight: 600;
}
.pe-placeholders {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  margin-bottom: 8px;
}
.pe-placeholder-btn {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: #63B3ED;
  border: none;
  border-radius: 4px;
  padding: 3px 7px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.pe-placeholder-btn:hover {
  background: #4299E1;
}
.pe-icon-btn {
  padding: 6px 14px;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
}
.se-icon-btn-blue {
  background: #4299E1;
  color: #fff;
}
.se-icon-btn-blue:hover:not(:disabled) {
  background: #3182CE;
}
.pe-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
}
.pe-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  cursor: default;
}
.pe-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.pe-lightbox-close:hover {
  opacity: 1;
}
@media (max-width: 900px) {
  .pe-layout {
    grid-template-columns: 1fr;
  }
  .pe-sidebar {
    position: static;
  }
}

/* ===== Page Editor (legacy label) ===== */
.page-editor-prompt-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #4A5568;
}

/* ===== Page Thumbnail Grid ===== */
.page-thumb-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 4px 0;
}

.page-thumb-card {
  position: relative;
  width: 140px;
  height: 198px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
}

.page-thumb-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.page-thumb-card.dragging {
  opacity: 0.4;
  box-shadow: none;
  transform: none;
}

.page-thumb-card.drag-over {
  box-shadow: 0 0 0 2px #667EEA, 0 4px 12px rgba(102,126,234,0.2);
}

.page-thumb-drag {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  cursor: grab;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  line-height: 1;
}

.page-thumb-drag:active {
  cursor: grabbing;
}

.page-thumb-num {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  z-index: 2;
  background: rgba(0,0,0,0.25);
  border-radius: 4px;
  padding: 1px 5px;
}

.page-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-thumb-placeholder {
  flex: 1;
  background: linear-gradient(135deg, #F0F4FF 0%, #E8EDF5 100%);
}

.page-thumb-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 7px 7px;
  font-size: 0.58rem;
  line-height: 1.35;
  color: #2D3748;
  background: linear-gradient(transparent, rgba(255,255,255,0.97) 35%);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Admin Back Button ===== */
/* ===== Page Carousel ===== */
.page-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 20px;
  scroll-snap-type: x mandatory;
  align-items: flex-start;
}

.page-carousel::-webkit-scrollbar {
  height: 6px;
}

.page-carousel::-webkit-scrollbar-track {
  background: #F7FAFC;
  border-radius: 3px;
}

.page-carousel::-webkit-scrollbar-thumb {
  background: #CBD5E0;
  border-radius: 3px;
}

.page-carousel-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, opacity 0.15s;
  cursor: grab;
}

.page-carousel-card:active {
  cursor: grabbing;
}

.page-carousel-card.dragging {
  opacity: 0.4;
  box-shadow: none;
}

.page-carousel-card.drag-over {
  box-shadow: 0 0 0 2px #667EEA, 0 4px 12px rgba(102,126,234,0.2);
}

.page-carousel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #E2E8F0;
}

.page-carousel-drag {
  font-size: 1.1rem;
  color: #CBD5E0;
  cursor: grab;
  line-height: 1;
}

.page-carousel-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.page-carousel-insert {
  flex: 0 0 32px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 2px dashed #E2E8F0;
  border-radius: 8px;
  color: #CBD5E0;
  font-size: 1.1rem;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  padding: 0;
  min-height: 80px;
}

.page-carousel-insert:hover {
  border-color: #667EEA;
  color: #667EEA;
  background: rgba(102, 126, 234, 0.05);
}

.page-carousel-delete {
  margin-left: auto;
  background: none;
  border: none;
  color: #CBD5E0;
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.page-carousel-delete:hover {
  color: #E53E3E;
  background: #FFF5F5;
}

.admin-back-btn {
  background: none;
  color: #718096;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 0;
  margin-bottom: 16px;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: color 0.2s;
}

.admin-back-btn:hover {
  color: #2D3748;
}

/* ===== Admin Detail Page ===== */
.admin-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-detail-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-detail-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #2D3748;
}

.order-timeline {
  padding: 8px 20px 16px;
}

.order-timeline-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  position: relative;
}

.order-timeline-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 10px;
}

.order-timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6C63FF;
  margin-top: 4px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.order-timeline-line {
  width: 2px;
  flex: 1;
  background: #E2E8F0;
  margin-top: 4px;
}

.order-timeline-item:last-child .order-timeline-line {
  display: none;
}

.order-timeline-body {
  flex: 1;
}

.order-timeline-action {
  font-size: 0.88rem;
  font-weight: 600;
  color: #2D3748;
  text-transform: capitalize;
}

.order-timeline-details {
  font-size: 0.82rem;
  color: #4A5568;
  margin-top: 2px;
}

.order-timeline-meta {
  font-size: 0.78rem;
  color: #A0AEC0;
  margin-top: 3px;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}

.admin-detail-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-detail-fields {
  padding: 0 20px 16px;
}

.admin-detail-field {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #F7F8FC;
  font-size: 0.88rem;
}

.admin-detail-field:last-child {
  border-bottom: none;
}

.admin-detail-field-label {
  color: #A0AEC0;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ===== Admin Actions ===== */
.admin-actions-list {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ===== Admin Kids Grid ===== */
.admin-kids-grid {
  padding: 12px 20px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.admin-kid-card {
  background: #F7F8FC;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}

.admin-kid-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #2D3748;
  margin-bottom: 4px;
}

.admin-kid-meta {
  font-size: 0.78rem;
  color: #A0AEC0;
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ===== Admin Photos Grid ===== */
.admin-photos-grid {
  padding: 12px 20px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.admin-photo-item {
  border-radius: 10px;
  overflow: hidden;
  background: #F7F8FC;
}

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

.admin-photo-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #4A5568;
  text-align: center;
  padding: 4px 4px 6px;
  background: #F7F8FC;
}

.admin-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A0AEC0;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ===== Admin Book Preview ===== */
.admin-book-preview {
  padding: 20px;
}

.admin-book-frame {
  background: #FAFBFC;
  border: 2px solid #E2E8F0;
  border-radius: 16px;
  padding: 28px;
  position: relative;
}

.admin-book-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30px;
  right: 30px;
  height: 3px;
  background: linear-gradient(90deg, #FF6B6B, #FFE66D, #A8D8EA, #6BB77B);
  border-radius: 0 0 4px 4px;
}

.admin-book-page-indicator {
  text-align: center;
  font-size: 0.82rem;
  color: #A0AEC0;
  font-weight: 600;
  margin-bottom: 16px;
}

.admin-book-page-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #4A5568;
  text-align: center;
  min-height: 80px;
  padding: 8px 0;
}

.admin-book-illustration {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 16px;
}

.admin-book-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

/* ===== Admin Selector Bar ===== */
.admin-selector-bar {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.admin-selector-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #A0AEC0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Admin Page Subtitle ===== */
.admin-page-subtitle {
  font-size: 0.9rem;
  color: #718096;
  font-weight: 600;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 1024px) {
  .admin-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .admin-sidebar-mobile-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-main-expanded {
    margin-left: 0;
  }

  .admin-topbar-menu {
    display: block;
  }

  .admin-content {
    padding: 16px;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-form-row {
    flex-direction: column;
    gap: 0;
  }

  .admin-search-input {
    width: 100%;
  }

  .admin-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Admin Card Body ===== */
.admin-card-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ===== Edit Modal ===== */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.admin-modal {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #E2E8F0;
}

.admin-modal-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #2D3748;
  font-family: var(--font-heading);
}

.admin-modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #A0AEC0;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
}

.admin-modal-close:hover { color: #4A5568; background: #EDF2F7; }

.admin-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-modal-footer {
  padding: 12px 20px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.admin-modal-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #718096;
  margin-bottom: 4px;
  display: block;
}

.admin-card-header-edit {
  background: none;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: #718096;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #E2E8F0;
  font-family: var(--font-body);
}

.admin-card-header-edit:hover { background: #EDF2F7; color: #4A5568; }
