/* ============================================
   Undangan Digital Sakura — Custom Styles
   ============================================ */

/* ----- Minimal Utilities ----- */
.hidden { display: none !important; }
.grid { display: grid; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.relative { position: relative; }
.z-10 { z-index: 10; }
.container {
  width: min(100%, 1280px);
  box-sizing: border-box;
}
.mx-auto { margin-inline: auto; }
.text-center { text-align: center; }
.px-1 { padding-inline: 0.25rem; }
.px-4 { padding-inline: 1rem; }
.px-6 { padding-inline: 1.5rem; }
.py-16 { padding-block: 4rem; }
.py-24 { padding-block: 6rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-12 { margin-bottom: 3rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .sm\:px-6 { padding-inline: 1.5rem; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:gap-5 { gap: 1.25rem; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:inline-flex { display: inline-flex !important; }
  .md\:hidden { display: none !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:gap-6 { gap: 1.5rem; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

:root {
  --sakura-bg-start: #fff8fb;
  --sakura-bg-end: #fdebf3;
  --sakura-surface: #fff4f8;
  --sakura-surface-strong: #fbe3ed;
  --sakura-shell: rgba(255, 248, 252, 0.9);
  --sakura-shell-border: rgba(225, 184, 202, 0.28);
  --sakura-card: rgba(255, 255, 255, 0.78);
  --sakura-card-border: rgba(220, 180, 198, 0.24);
  --sakura-text: #5f4350;
  --sakura-text-strong: #4d3340;
  --sakura-muted: #9e7286;
  --sakura-accent: #d88ca9;
  --sakura-accent-strong: #c77093;
  --sakura-accent-deep: #a75f7d;
  --sakura-accent-pale: #f7dbe7;
  --sakura-shadow: rgba(186, 135, 159, 0.16);
}

/* ----- Base ----- */
* {
  font-family: 'Manrope', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(145deg, var(--sakura-bg-start) 0%, var(--sakura-bg-end) 100%);
}

/* ----- Sakura Petal Animation ----- */
.sakura-petal {
  position: fixed;
  top: -10px;
  pointer-events: none;
  z-index: 50;
  opacity: 0.7;
  animation: fall linear forwards;
}

@keyframes fall {
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* ----- Card Hover Effect ----- */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -12px rgba(236, 72, 153, 0.2);
}

/* ----- WhatsApp Floating Button ----- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  background-color: #25D366;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: 0.2s;
}

.ui-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ui-icon-wa {
  color: #fff;
}

.ui-icon-wa-svg {
  width: 30px;
  height: 30px;
  display: block;
}

.ui-icon-menu {
  position: relative;
  display: block;
  width: 22px;
  height: 14px;
  border-top: 2px solid currentColor;
}

.ui-icon-menu::before,
.ui-icon-menu::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  border-top: 2px solid currentColor;
}

.ui-icon-menu::before {
  top: 4px;
}

.ui-icon-menu::after {
  top: 10px;
}

.wa-float:hover {
  transform: scale(1.08);
  background-color: #128C7E;
}

/* ----- Filter Buttons ----- */
.filter-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  background: white;
  color: #4b5563;
  border: 2px solid #fce7f3;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
  border-color: #ec4899;
  color: #ec4899;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: #ec4899;
  color: white;
  border-color: #ec4899;
  box-shadow: 0 10px 15px -3px rgba(236, 72, 153, 0.3);
}

/* ----- Filter Chips ----- */
.filter-chip {
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #fbcfe8;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  background: #fce7f3;
  transform: scale(1.05);
}

.filter-chip.active {
  background: #fbcfe8;
  color: #be185d;
  font-weight: 700;
}

/* ----- Theme Cards ----- */
.theme-card {
  position: relative;
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(236, 72, 153, 0.06);
  transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.theme-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(236,72,153,0), rgba(236,72,153,0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  transition: background 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.theme-card:hover::before {
  background: linear-gradient(135deg, rgba(236,72,153,0.7), rgba(251,146,60,0.5), rgba(167,139,250,0.5));
}

.theme-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px -15px rgba(236, 72, 153, 0.2), 0 0 0 1.5px rgba(236,72,153,0.15);
}

.theme-img-container {
  position: relative;
  aspect-ratio: 400 / 810;
  overflow: hidden;
  background: linear-gradient(135deg, #fdf2f8, #f0e7ff);
}

.theme-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

.theme-card:hover .theme-img {
  /* transform: scale(1.08); */
}

/* ---- skeleton shimmer while image loads ---- */
.theme-img-container.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f0e7ff 25%, #fce4ec 50%, #f0e7ff 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* ---- Overlay ---- */
.theme-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 5, 25, 0.85) 0%,
    rgba(100, 20, 60, 0.35) 45%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  gap: 0.75rem;
}

.theme-card:hover .theme-overlay {
  opacity: 1;
}

/* ---- Usage Badge (top-right) ---- */
.badge-usage {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 4px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ---- Category badges inside overlay ---- */
.theme-cat-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255,255,255,0.22);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  margin-right: 4px;
  margin-bottom: 4px;
}

/* ---- Overlay action buttons ---- */
.overlay-btn-preview {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
  padding: 0.55rem 0;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s ease;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.overlay-btn-preview:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

.overlay-btn-order {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: #fff;
  border: none;
  padding: 0.55rem 0;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s ease;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(236,72,153,0.45);
}

.overlay-btn-order:hover {
  background: linear-gradient(135deg, #db2777, #e11d48);
  box-shadow: 0 6px 18px rgba(236,72,153,0.6);
  transform: translateY(-1px);
}

/* ---- Card Info (bottom section) ---- */
.theme-card-info {
  padding: 1rem 1.2rem 1.2rem;
  background: white;
  border-top: 1px solid rgba(236,72,153,0.06);
}

.theme-card-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1f2937;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.theme-card-sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: #ec4899;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.theme-card-sub::before {
  content: '';
  width: 18px;
  height: 2px;
  background: linear-gradient(to right, #ec4899, #f43f5e);
  border-radius: 9999px;
  flex-shrink: 0;
}

/* ----- Mobile Menu ----- */
@media (max-width: 1024px) {
  .mobile-menu {
    display: none;
  }

  .mobile-menu.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 1rem 1rem;
    z-index: 40;
  }
}

/* ==============================================
   Teaser Section (index.html)
   ============================================== */
.teaser-hero-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #fce7f3, #ede9fe);
  color: #be185d;
  border: 1px solid #fbcfe8;
  padding: 6px 18px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.teaser-see-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: white;
  text-decoration: none;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.4);
  transition: all 0.3s ease;
}

.teaser-see-all-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(236, 72, 153, 0.55);
  background: linear-gradient(135deg, #db2777, #e11d48);
}

/* ==============================================
   Themes Page Hero (themes.html)
   ============================================== */
.themes-page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff0f6 0%, #fce4f3 50%, #f0e0ff 100%);
  padding: 5rem 0 3.5rem;
}

.themes-hero-decor-1 {
  position: absolute;
  top: -80px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.18), transparent 70%);
  border-radius: 50%;
}

.themes-hero-decor-2 {
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.15), transparent 70%);
  border-radius: 50%;
}

.themes-hero-decor-3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(251, 207, 232, 0.25), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.themes-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  backdrop-filter: blur(8px);
  color: #be185d;
  border: 1px solid rgba(236, 72, 153, 0.2);
  padding: 7px 18px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 12px rgba(236, 72, 153, 0.12);
}

.themes-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white/80;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ==============================================
   Preview Modal
   ============================================== */
.preview-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 4, 20, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.preview-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.preview-modal-container {
  border-radius: 28px;
  max-width: 920px;
  width: 100%;
  max-height: 92vh;
  overflow: hidden;
  position: relative;
  transform: translateY(28px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
}

.preview-modal-overlay.active .preview-modal-container {
  transform: translateY(0) scale(1);
}

/* Close button */
.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(236, 72, 153, 0.8);
  color: white;
  border-color: transparent;
  transform: rotate(90deg);
}

/* Modal body — split layout */
.modal-body {
  display: flex;
  min-height: 0;
  flex: 1;
}

/* ── Left: dark phone panel ── */
.modal-phone-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(160deg, #13111c 0%, #1e1333 50%, #0d1b2a 100%);
  padding: 2.5rem 2rem;
  flex-shrink: 0;
  min-width: 320px;
}

/* Phone frame */
.phone-mockup-frame {
  width: 252px;
  background: #1c1c2e;
  border-radius: 44px;
  padding: 12px 10px 16px;
  box-shadow:
    0 0 0 2px #2e2e4a,
    0 0 0 5px #18182a,
    0 30px 80px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
}

.phone-notch {
  width: 68px;
  height: 22px;
  background: #1c1c2e;
  border-radius: 0 0 14px 14px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-camera {
  width: 8px;
  height: 8px;
  background: #2e2e4a;
  border-radius: 50%;
  border: 1.5px solid #3a3a5c;
}

.phone-screen {
  width: 100%;
  aspect-ratio: 400 / 810;
  border-radius: 34px;
  overflow: hidden;
  background: #1a1a2e;
  position: relative;
}

/* Live iframe preview inside phone */
  border-radius: 50%;
}

.themes-hero-decor-2 {
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.15), transparent 70%);
  border-radius: 50%;
}

.themes-hero-decor-3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(251, 207, 232, 0.25), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.themes-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  backdrop-filter: blur(8px);
  color: #be185d;
  border: 1px solid rgba(236, 72, 153, 0.2);
  padding: 7px 18px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 12px rgba(236, 72, 153, 0.12);
}

.themes-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white/80;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ==============================================
   Preview Modal
   ============================================== */
.preview-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 4, 20, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.preview-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.preview-modal-container {
  border-radius: 28px;
  max-width: 920px;
  width: 100%;
  max-height: 92vh;
  overflow: hidden;
  position: relative;
  transform: translateY(28px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
}

.preview-modal-overlay.active .preview-modal-container {
  transform: translateY(0) scale(1);
}

/* Close button */
.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(236, 72, 153, 0.8);
  color: white;
  border-color: transparent;
  transform: rotate(90deg);
}

/* Modal body — split layout */
.modal-body {
  display: flex;
  min-height: 0;
  flex: 1;
}

/* ── Left: dark phone panel ── */
.modal-phone-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(160deg, #13111c 0%, #1e1333 50%, #0d1b2a 100%);
  padding: 2.5rem 2rem;
  flex-shrink: 0;
  min-width: 320px;
}

/* Phone frame */
.phone-mockup-frame {
  width: 252px;
  background: #1c1c2e;
  border-radius: 44px;
  padding: 12px 10px 16px;
  box-shadow:
    0 0 0 2px #2e2e4a,
    0 0 0 5px #18182a,
    0 30px 80px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
}

.phone-notch {
  width: 68px;
  height: 22px;
  background: #1c1c2e;
  border-radius: 0 0 14px 14px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-camera {
  width: 8px;
  height: 8px;
  background: #2e2e4a;
  border-radius: 50%;
  border: 1.5px solid #3a3a5c;
}

.phone-screen {
  width: 100%;
  aspect-ratio: 400 / 810;
  border-radius: 34px;
  overflow: hidden;
  background: #1a1a2e;
  position: relative;
}

/* Live iframe preview inside phone */
.phone-preview-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: white;
}

/* Fallback thumbnail */
.phone-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Loading spinner overlay inside phone screen */
.iframe-loader {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #c97a99, #e9a9c4);
  z-index: 5;
}

/* ==============================================
   Editorial Home Refresh
   ============================================== */
body.editorial-home {
  font-family: 'Manrope', sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.8), transparent 38%),
    linear-gradient(180deg, #fff8fb 0%, #fff1f6 18%, #fdebf3 100%);
  color: var(--sakura-text);
}

body.editorial-home * {
  font-family: 'Manrope', sans-serif;
}

body.editorial-home .fa,
body.editorial-home .fas,
body.editorial-home .far,
body.editorial-home .fal,
body.editorial-home .fab,
body.editorial-home .fa-solid,
body.editorial-home .fa-regular,
body.editorial-home .fa-light,
body.editorial-home .fa-brands,
body.editorial-home .fa-classic {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

body.editorial-home .editorial-brand-mark,
body.editorial-home .editorial-intro-card h1,
body.editorial-home .editorial-story-copy h2,
body.editorial-home .editorial-section-head h2,
body.editorial-home .editorial-faq-title,
body.editorial-home .editorial-final-cta h2,
body.editorial-home .editorial-step-number,
body.editorial-home .editorial-step-card h3,
body.editorial-home .editorial-price-card h3,
body.editorial-home .editorial-price-value,
body.editorial-home .editorial-faq-item h3,
body.editorial-home .editorial-gallery .theme-card-name {
  font-family: 'Cormorant Garamond', serif;
}

.editorial-home .sakura-petal {
  display: none;
}

.editorial-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 28px auto;
  background: var(--sakura-shell);
  border: 1px solid var(--sakura-shell-border);
  box-shadow: 0 30px 80px var(--sakura-shadow);
  backdrop-filter: blur(3px);
}

.editorial-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 243, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(220, 180, 198, 0.22);
}

.editorial-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 36px;
}

.editorial-brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--sakura-text-strong);
}

.editorial-brand-mark,
.editorial-eyebrow,
.editorial-nav a,
.editorial-step-number,
.editorial-price-label {
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.editorial-brand-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 2.6vw, 2.7rem);
  line-height: 0.9;
}

.editorial-brand-sub {
  margin-top: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(95, 67, 80, 0.58);
}

.editorial-nav {
  align-items: center;
  gap: 28px;
}

.editorial-nav a {
  font-size: 0.73rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--sakura-text);
}

.editorial-nav a:hover,
.editorial-mobile-links a:hover {
  color: var(--sakura-accent-strong);
}

.editorial-header-cta,
.editorial-primary-btn,
.editorial-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s ease;
}

.editorial-header-cta {
  padding: 12px 18px;
  border: 1px solid rgba(199, 112, 147, 0.24);
  color: var(--sakura-text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.editorial-header-cta:hover,
.editorial-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.84);
}

.editorial-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(199, 112, 147, 0.24);
  background: transparent;
  color: var(--sakura-text);
  width: 44px;
  height: 44px;
}

.editorial-mobile-menu {
  border-top: 1px solid rgba(220, 180, 198, 0.22);
  background: rgba(255, 244, 248, 0.98);
}

.editorial-mobile-links {
  display: flex;
  flex-direction: column;
  padding: 16px 20px 22px;
  gap: 14px;
}

.editorial-mobile-links a {
  text-decoration: none;
  color: var(--sakura-text);
  font-size: 0.92rem;
}

.editorial-mobile-cta {
  margin-top: 8px;
}

.editorial-hero {
  padding: 22px 22px 0;
}

.editorial-hero-frame {
  position: relative;
  overflow: hidden;
  min-height: 820px;
  background: linear-gradient(180deg, rgba(255, 245, 249, 0.72), rgba(252, 235, 243, 0.94));
}

.editorial-hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #f4dbe6;
}

.editorial-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 248, 251, 0.74), rgba(252, 235, 243, 0.82)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.editorial-hero-image,
.editorial-photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.editorial-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.editorial-intro-card {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 110px 24px 120px;
  text-align: center;
}

.editorial-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sakura-muted);
  margin-bottom: 22px;
}

.editorial-intro-card h1,
.editorial-story-copy h2,
.editorial-section-head h2,
.editorial-faq-title,
.editorial-final-cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  color: var(--sakura-text-strong);
}

.editorial-intro-card h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.94;
  max-width: 720px;
  margin: 0 auto;
}

.editorial-lead,
.editorial-story-copy p,
.editorial-section-head p,
.editorial-step-card p,
.editorial-price-copy,
.editorial-faq-item p,
.editorial-footer p {
  color: rgba(95, 67, 80, 0.78);
  line-height: 1.85;
}

.editorial-lead {
  max-width: 620px;
  margin: 22px auto 0;
  font-size: 1rem;
}

.editorial-intro-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.editorial-primary-btn,
.editorial-secondary-btn {
  padding: 15px 24px;
  box-sizing: border-box;
  min-width: 190px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.editorial-primary-btn {
  background: var(--sakura-accent-deep);
  color: #fff8fb;
  border: 1px solid var(--sakura-accent-deep);
}

.editorial-primary-btn:hover {
  background: var(--sakura-accent-strong);
  border-color: var(--sakura-accent-strong);
}

.editorial-secondary-btn {
  border: 1px solid rgba(199, 112, 147, 0.24);
  color: var(--sakura-text);
  background: rgba(255, 252, 254, 0.78);
}

.editorial-story,
.editorial-gallery,
.editorial-steps,
.editorial-pricing,
.editorial-faq,
.editorial-final-cta {
  padding: 84px 36px;
}


.editorial-story-grid,
.editorial-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}

.editorial-collage {
  position: relative;
  min-height: 700px;
}

.editorial-photo {
  position: absolute;
  overflow: hidden;
  background: #fff4f8;
  box-shadow: 0 22px 50px rgba(186, 135, 159, 0.14);
}

.editorial-photo-tall {
  left: 0;
  top: 110px;
  width: 25%;
  height: 300px;
  z-index: 1;
}

.editorial-photo-main {
  left: 23%;
  top: 0;
  width: 50%;
  height: 540px;
  z-index: 3;
}

.editorial-photo-small {
  left: 10%;
  bottom: 0;
  width: 30%;
  height: 250px;
  z-index: 2;
}

.editorial-photo-fill {
  width: 100%;
  height: 100%;
}

.editorial-photo-blush {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.08)),
    linear-gradient(140deg, #fcecf3 0%, #fff6fa 45%, #f2cfe0 100%);
}

.editorial-photo-cream {
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.75), transparent 22%),
    linear-gradient(150deg, #fbeaf2 0%, #fff9fc 55%, #efd1e0 100%);
}

.editorial-story-copy h2,
.editorial-section-head h2,
.editorial-faq-title,
.editorial-final-cta h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 0.98;
  margin-bottom: 20px;
}

.editorial-story-copy p + p {
  margin-top: 16px;
}

.editorial-gallery {
  background: rgba(255, 247, 251, 0.6);
}

.editorial-section-head {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.editorial-section-head p {
  max-width: 620px;
  margin: 0 auto;
}

.editorial-gallery .theme-card,
.editorial-gallery .theme-card::before,
.editorial-gallery .theme-card-info,
.editorial-gallery .theme-overlay {
  border-radius: 0;
}

.editorial-gallery .theme-card {
  box-shadow: none;
  border: 1px solid var(--sakura-card-border);
  background: var(--sakura-card);
}

.editorial-gallery .theme-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 34px rgba(186, 135, 159, 0.14);
}

.editorial-gallery .theme-img-container {
  background: linear-gradient(180deg, #fff2f7, #f5dbe8);
}

.editorial-gallery .theme-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 600;
}

.editorial-gallery .theme-card-sub {
  color: var(--sakura-muted);
}

.editorial-gallery .theme-card-sub::before {
  background: rgba(216, 140, 169, 0.42);
}

.editorial-gallery .overlay-btn-order {
  background: var(--sakura-accent-deep);
  box-shadow: none;
}

.editorial-gallery .overlay-btn-order:hover {
  background: var(--sakura-accent-strong);
  box-shadow: none;
}

.editorial-gallery-cta {
  display: flex;
  justify-content: center;
  margin-top: 38px;
}

.editorial-wide-btn {
  min-width: 280px;
}

.editorial-step-grid,
.editorial-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.editorial-step-card,
.editorial-price-card,
.editorial-faq-item {
  background: var(--sakura-card);
  border: 1px solid var(--sakura-card-border);
}

.editorial-step-card {
  min-height: 260px;
  padding: 38px 28px;
  text-align: center;
}

.editorial-step-number {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--sakura-text-strong);
  margin-bottom: 20px;
}

.editorial-step-card h3,
.editorial-price-card h3,
.editorial-faq-item h3 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--sakura-text-strong);
}

.editorial-step-card h3,
.editorial-price-card h3 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.editorial-pricing-grid {
  align-items: stretch;
}

.editorial-price-card {
  padding: 34px 28px;
  text-align: center;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  row-gap: 0;
}

.editorial-price-card-featured {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248, 225, 235, 0.98));
  transform: translateY(-10px);
}

.editorial-price-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--sakura-muted);
  margin-bottom: 14px;
}

.editorial-price-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.6rem;
  line-height: 1;
  margin: 18px 0;
  color: var(--sakura-text-strong);
}

.editorial-price-copy {
  min-height: 92px;
  margin-bottom: 20px;
}

.editorial-price-btn {
  width: 100%;
  margin-top: 0;
}

.editorial-faq-list {
  display: flex;
  flex-direction: column;
}

.editorial-faq-item {
  border: none;
  background: none;
  border-bottom: 1px solid rgba(199, 112, 147, 0.12);
  padding: 0;
}

.faq-header {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-header h3 {
  font-size: 1.4rem;
  margin: 0;
  padding-right: 20px;
}

.faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background-color: var(--sakura-text-strong);
  transition: transform 0.3s ease;
}

.faq-icon::before {
  width: 100%;
  height: 2px;
  top: 9px;
  left: 0;
}

.faq-icon::after {
  width: 2px;
  height: 100%;
  top: 0;
  left: 9px;
}

.editorial-faq-item.active .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.editorial-faq-item.active .faq-icon::before {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

.editorial-faq-item.active .faq-content {
  max-height: 500px;
  padding-bottom: 24px;
}

.faq-content p {
  margin: 0;
  color: var(--sakura-text);
  line-height: 1.6;
}

.editorial-final-cta {
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 241, 247, 0.82), rgba(249, 223, 235, 0.96));
}

.editorial-final-cta h2 {
  max-width: 860px;
  margin: 0 auto 28px;
}

.editorial-footer {
  padding: 28px 20px 42px;
  text-align: center;
  font-size: 0.88rem;
}

.editorial-footer p + p {
  margin-top: 4px;
}

.editorial-footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.editorial-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--sakura-text);
  border: 1px solid rgba(199, 112, 147, 0.22);
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: all 0.25s ease;
}

.editorial-social-link:hover {
  color: var(--sakura-accent-strong);
  background: rgba(255, 255, 255, 0.92);
}

.editorial-social-link svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 1024px) {
  .editorial-story-grid,
  .editorial-faq-grid,
  .editorial-step-grid,
  .editorial-pricing-grid {
    grid-template-columns: 1fr;
  }

  .editorial-collage {
    min-height: 620px;
    max-width: 620px;
    margin: 0 auto;
  }

  .editorial-story-copy,
  .editorial-faq-grid > div:first-child {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .editorial-shell {
    width: min(100% - 18px, 1240px);
    margin: 10px auto;
  }

  .editorial-header-inner,
  .editorial-story,
  .editorial-gallery,
  .editorial-steps,
  .editorial-pricing,
  .editorial-faq,
  .editorial-final-cta {
    padding-left: 18px;
    padding-right: 18px;
  }

  .editorial-header-inner {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .editorial-hero {
    padding: 12px 12px 0;
  }

  .editorial-intro-card {
    padding: 40px 18px 48px;
  }

  .editorial-collage {
    min-height: 460px;
  }

  .editorial-photo-tall {
    top: 96px;
    height: 210px;
  }

  .editorial-photo-main {
    width: 58%;
    left: 21%;
    height: 360px;
  }

  .editorial-photo-small {
    width: 38%;
    height: 168px;
    left: 10%;
  }

  .editorial-step-card,
  .editorial-price-card {
    min-height: auto;
  }

  .editorial-price-card-featured {
    transform: none;
  }

  .wa-float {
    width: 54px;
    height: 54px;
    right: 18px;
    bottom: 18px;
  }
}

/* ==============================================
   Editorial Themes + Modal Refresh
   ============================================== */
body.editorial-themes {
  font-family: 'Manrope', sans-serif;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.82), transparent 38%),
    linear-gradient(180deg, #fff8fb 0%, #fff1f6 18%, #fdebf3 100%);
  color: var(--sakura-text);
}

body.editorial-themes * {
  font-family: 'Manrope', sans-serif;
}

body.editorial-themes .fa,
body.editorial-themes .fas,
body.editorial-themes .far,
body.editorial-themes .fal,
body.editorial-themes .fab,
body.editorial-themes .fa-solid,
body.editorial-themes .fa-regular,
body.editorial-themes .fa-light,
body.editorial-themes .fa-brands,
body.editorial-themes .fa-classic {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

body.editorial-themes .editorial-brand-mark,
body.editorial-themes .editorial-themes-title,
body.editorial-themes .theme-card-name,
body.editorial-themes .modal-theme-name,
body.editorial-themes #emptyState h3 {
  font-family: 'Cormorant Garamond', serif;
}

.editorial-nav-active {
  color: var(--sakura-accent-strong) !important;
}

.editorial-themes-hero {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(250, 227, 238, 0.96));
  padding: 5rem 0 4rem;
}

body.editorial-themes .themes-hero-decor-1 {
  background: radial-gradient(circle, rgba(216, 140, 169, 0.2), transparent 70%);
}

body.editorial-themes .themes-hero-decor-2 {
  background: radial-gradient(circle, rgba(199, 112, 147, 0.14), transparent 70%);
}

body.editorial-themes .themes-hero-decor-3 {
  background: radial-gradient(circle, rgba(252, 233, 241, 0.88), transparent 66%);
}

body.editorial-themes .themes-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.76);
  color: var(--sakura-muted);
  border: 1px solid var(--sakura-card-border);
  box-shadow: none;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 9px 18px;
  margin-inline: auto;
  text-align: center;
}

.editorial-themes-title {
  font-size: clamp(3rem, 4.8vw, 5.3rem);
  line-height: 0.96;
  color: var(--sakura-text-strong);
  max-width: 980px;
  margin: 22px auto 16px;
  font-weight: 500;
}

.editorial-themes-copy {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(95, 67, 80, 0.78);
  line-height: 1.85;
  font-size: 1rem;
}

body.editorial-themes .themes-stat-pill {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--sakura-card-border);
  color: var(--sakura-text);
  box-shadow: none;
  padding: 10px 18px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
}

.themes-stat-pill span {
  display: block;
  max-width: 100%;
}

.themes-stat-grid {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.editorial-themes-section {
  background: rgba(255, 247, 251, 0.58);
}

.editorial-discovery-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--sakura-card-border);
  box-shadow: 0 18px 36px rgba(186, 135, 159, 0.08);
}

.editorial-search-wrap {
  position: relative;
  width: min(100%, 980px);
  max-width: 980px;
  margin: 0 auto;
}

.editorial-search-help {
  margin: -4px auto 0;
  max-width: 980px;
  color: rgba(95, 67, 80, 0.7);
  font-size: 0.92rem;
  line-height: 1.7;
  text-align: center;
}

.editorial-filter-group {
  display: grid;
  gap: 10px;
}

.editorial-filter-select-wrap {
  display: none;
}

.editorial-filter-select-label {
  display: none;
}

.editorial-filter-select {
  width: 100%;
  min-height: 42px;
  padding: 0 2.4rem 0 0.9rem;
  border: 1px solid var(--sakura-card-border);
  background:
    linear-gradient(45deg, transparent 50%, rgba(95, 67, 80, 0.68) 50%),
    linear-gradient(135deg, rgba(95, 67, 80, 0.68) 50%, transparent 50%),
    rgba(255, 255, 255, 0.88);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px),
    0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
  color: var(--sakura-text);
  box-shadow: none;
  outline: none;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.editorial-filter-select:focus {
  border-color: rgba(199, 112, 147, 0.4);
  background-color: rgba(255, 255, 255, 0.94);
}

.editorial-filter-label {
  margin: 0;
  color: var(--sakura-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.editorial-filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.editorial-search-input {
  width: 100%;
  height: 46px;
  padding: 0 20px 0 56px;
  border: 1px solid var(--sakura-card-border);
  background: rgba(255, 255, 255, 0.82);
  color: var(--sakura-text);
  outline: none;
  box-shadow: none;
  box-sizing: border-box;
  font-size: 0.96rem;
}

.editorial-search-input::placeholder {
  color: rgba(95, 67, 80, 0.42);
}

.editorial-search-input:focus {
  border-color: rgba(199, 112, 147, 0.4);
  background: rgba(255, 255, 255, 0.92);
}

.editorial-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(159, 114, 134, 0.68);
  width: 18px;
  height: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.editorial-search-icon svg {
  width: 100%;
  height: 100%;
}

body.editorial-themes .filter-btn,
body.editorial-themes .filter-chip {
  border-radius: 0;
  background: rgba(255, 255, 255, 0.76);
  color: var(--sakura-text);
  border: 1px solid var(--sakura-card-border);
  box-shadow: none;
  font-weight: 600;
}

body.editorial-themes .filter-btn:hover,
body.editorial-themes .filter-chip:hover {
  border-color: rgba(199, 112, 147, 0.34);
  color: var(--sakura-text-strong);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.92);
}

body.editorial-themes .filter-btn.active,
body.editorial-themes .filter-chip.active {
  background: var(--sakura-accent-deep);
  border-color: var(--sakura-accent-deep);
  color: #fff8fb;
}

.editorial-gallery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--sakura-card-border);
}

.editorial-gallery-count,
.editorial-gallery-hint {
  color: rgba(95, 67, 80, 0.58);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

body.editorial-themes .theme-card {
  border-radius: 0;
  box-shadow: none;
  border: 1px solid var(--sakura-card-border);
  background: rgba(255, 255, 255, 0.82);
}

body.editorial-themes .theme-card::before,
body.editorial-themes .theme-card-info,
body.editorial-themes .theme-overlay {
  border-radius: 0;
}

body.editorial-themes .theme-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 34px rgba(186, 135, 159, 0.14);
}

body.editorial-themes .theme-card:hover::before {
  background: linear-gradient(135deg, rgba(199, 112, 147, 0.34), rgba(247, 219, 231, 0.42));
}

body.editorial-themes .theme-img-container {
  background: linear-gradient(180deg, #fff2f7, #f5dbe8);
}

body.editorial-themes .badge-usage {
  background: rgba(167, 95, 125, 0.7);
  color: #fffaf7;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

body.editorial-themes .theme-cat-badge {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

body.editorial-themes .overlay-btn-preview {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

body.editorial-themes .overlay-btn-order {
  background: var(--sakura-accent-deep);
  box-shadow: none;
}

body.editorial-themes .overlay-btn-order:hover {
  background: var(--sakura-accent-strong);
  box-shadow: none;
}

body.editorial-themes .theme-card-name {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--sakura-text-strong);
}

body.editorial-themes .theme-card-sub {
  color: var(--sakura-muted);
}

body.editorial-themes .theme-card-sub::before {
  background: rgba(216, 140, 169, 0.42);
}

.editorial-loadmore-btn {
  min-width: 240px;
}

.editorial-empty-state h3 {
  font-size: 2rem;
  color: var(--sakura-text-strong);
}

.editorial-empty-state p {
  color: rgba(95, 67, 80, 0.7);
  margin-top: 8px;
}

.editorial-empty-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
  border: 1px solid var(--sakura-card-border);
  background: rgba(255, 255, 255, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sakura-accent-strong);
  font-size: 2rem;
}

.preview-modal-overlay {
  background: rgba(125, 73, 98, 0.34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.preview-modal-container {
  max-width: 980px;
  border-radius: 0;
  background: #fff9fc;
  box-shadow: 0 32px 80px rgba(186, 135, 159, 0.2);
  border: 1px solid var(--sakura-card-border);
}

.modal-close-btn {
  background: rgba(255, 247, 251, 0.92);
  border: 1px solid rgba(199, 112, 147, 0.2);
  color: var(--sakura-text);
  backdrop-filter: none;
}

.modal-close-btn:hover {
  background: var(--sakura-accent-deep);
  color: #fff8fb;
  transform: none;
}

.modal-phone-panel {
  background:
    linear-gradient(180deg, rgba(255, 245, 249, 0.94), rgba(248, 224, 235, 0.98));
  border-right: 1px solid var(--sakura-card-border);
}

.phone-screen {
  background: #ffffff;
}

.modal-preview-stage {
  width: min(100%, 280px);
  aspect-ratio: 400 / 810;
  border-radius: 0;
  box-shadow: 0 20px 40px rgba(186, 135, 159, 0.18);
  border: 1px solid var(--sakura-card-border);
}

.iframe-loader {
  background: linear-gradient(180deg, #f7f1eb, #efe4d9);
}

.iframe-loader p {
  color: rgba(44, 36, 31, 0.58);
}

.modal-info-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255, 240, 246, 0.94));
  padding: 3rem 2.4rem 2.2rem;
}

.modal-badge {
  background: rgba(255, 255, 255, 0.75);
  color: var(--sakura-muted);
  border: 1px solid var(--sakura-card-border);
  border-radius: 0;
  padding: 5px 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.64rem;
}

.modal-theme-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  line-height: 0.96;
  color: var(--sakura-text-strong);
  font-weight: 500;
}

.modal-usage-text {
  color: var(--sakura-muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-divider {
  background: linear-gradient(to right, rgba(199, 112, 147, 0.24) 0%, transparent 86%);
}

.modal-desc-text {
  color: rgba(95, 67, 80, 0.76);
  line-height: 1.85;
}

.modal-btn-primary,
.modal-btn-secondary {
  border-radius: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: none;
}

.modal-btn-primary {
  background: var(--sakura-accent-deep);
  color: #fff8fb;
  padding: 1rem 1.4rem;
}

.modal-btn-primary:hover {
  background: var(--sakura-accent-strong);
  transform: none;
  box-shadow: none;
}

.modal-btn-secondary {
  background: rgba(255,255,255,0.78);
  color: var(--sakura-text);
  border: 1px solid var(--sakura-card-border);
}

.modal-btn-secondary:hover {
  background: rgba(255,255,255,0.96);
  border-color: rgba(199, 112, 147, 0.28);
  color: var(--sakura-text-strong);
}

@media (max-width: 1024px) {
  .editorial-discovery-panel {
    gap: 16px;
    padding: 18px 16px;
  }

  .editorial-search-help {
    font-size: 0.88rem;
    text-align: left;
  }

  .editorial-search-input {
    height: 38px;
    padding: 0 16px 0 42px;
    font-size: 0.88rem;
  }

  .editorial-filter-label {
    font-size: 0.68rem;
  }

  .editorial-filter-group {
    gap: 8px;
  }

  .editorial-filter-select-wrap {
    display: grid;
  }

  .editorial-filter-row {
    display: none;
  }

  .editorial-filter-select {
    height: 40px;
    padding: 0 2.25rem 0 0.8rem;
    font-size: 0.84rem;
  }
}

@media (max-width: 768px) {
  .editorial-themes-title {
    font-size: 2.8rem;
  }

  .editorial-gallery-meta {
    justify-content: center;
    text-align: center;
  }

  .editorial-hero-media {
    inset: 0;
  }

  .editorial-hero-frame {
    min-height: 720px;
  }

  .editorial-intro-card {
    padding: 88px 18px 96px;
  }
}

@media (max-width: 640px) {
  .preview-modal-container {
    border-radius: 0;
  }

  .modal-phone-panel {
    border-right: 0;
    border-bottom: 1px solid var(--sakura-card-border);
  }

  .modal-theme-name {
    font-size: 2.2rem;
  }

  .modal-close-btn {
    background: rgba(255, 247, 251, 0.92);
    color: var(--sakura-text);
    border-color: rgba(199, 112, 147, 0.2);
  }

  .modal-preview-stage {
    width: min(100%, 220px);
    aspect-ratio: 400 / 810;
  }
}

/* ==============================================
   Logo + Modal Final Overrides
   ============================================== */
.editorial-brand {
  align-items: center;
}

.editorial-brand-logo {
  display: block;
  width: auto;
  height: 66px;
  object-fit: contain;
}

.preview-modal-container .modal-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preview-modal-container .modal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 0;
  background: rgba(255, 250, 245, 0.92);
  color: #8a6f5d;
  border: 1px solid rgba(138, 111, 93, 0.18);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preview-modal-container .modal-theme-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 4.5vw, 4.6rem);
  line-height: 0.94;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--sakura-text-strong);
}

.preview-modal-container .modal-usage-text {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--sakura-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.preview-modal-container .modal-divider {
  margin: 0.25rem 0 0.75rem;
  background: linear-gradient(to right, rgba(199, 112, 147, 0.24) 0%, rgba(199, 112, 147, 0.06) 70%, transparent 100%);
}

.preview-modal-container .modal-desc-text {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(95, 67, 80, 0.76);
}

.preview-modal-container .modal-btn-primary,
.preview-modal-container .modal-btn-secondary {
  min-height: 68px;
  border-radius: 0;
  padding: 0 28px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.preview-modal-container .modal-btn-primary {
  background: var(--sakura-accent-deep);
  color: #fff8fb;
  border: 1px solid var(--sakura-accent-deep);
  box-shadow: none;
}

.preview-modal-container .modal-btn-primary:hover {
  background: var(--sakura-accent-strong);
  border-color: var(--sakura-accent-strong);
  transform: none;
  box-shadow: none;
}

.preview-modal-container .modal-btn-secondary {
  background: rgba(255, 250, 253, 0.92);
  color: var(--sakura-text);
  border: 1px solid rgba(199, 112, 147, 0.22);
  box-shadow: none;
}

.preview-modal-container .modal-btn-secondary:hover {
  background: #fffdfb;
  color: var(--sakura-text-strong);
  border-color: rgba(199, 112, 147, 0.34);
}

.preview-modal-container .modal-close-btn {
  top: 1.8rem;
  right: 1.8rem;
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  background: #f8f1ea;
  border: 1px solid rgba(165, 144, 126, 0.26);
  color: #9d927f;
  font-size: 0.92rem;
  box-shadow: none;
}

.preview-modal-container .modal-close-btn:hover {
  background: #f1e7dd;
  color: #7f725f;
  transform: none;
}

@media (max-width: 768px) {
  .editorial-brand-logo {
    height: 54px;
  }

  .preview-modal-container .modal-btn-primary,
  .preview-modal-container .modal-btn-secondary {
    min-height: 58px;
    font-size: 0.8rem;
  }

  .preview-modal-container .modal-close-btn {
    width: 44px;
    height: 44px;
    top: 1rem;
    right: 1rem;
  }
}

.iframe-loader p {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin: 0;
}

.iframe-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(236, 72, 153, 0.15);
  border-top-color: #ec4899;
  animation: spin 0.8s linear infinite;
}

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

.phone-home-bar {
  width: 68px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  margin: 8px auto 0;
}


/* ── Right: white info panel ── */
.modal-info-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 2.5rem 2rem 2rem;
  background: white;
  overflow-y: auto;
}

.modal-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  background: #fdf2f8;
  color: #ec4899;
  border: 1px solid #fbcfe8;
  padding: 3px 13px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.modal-theme-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0;
}

.modal-usage-row {
  display: flex;
  align-items: center;
}

.modal-usage-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #9ca3af;
}

.modal-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, #fce7f3 0%, transparent 80%);
}

.modal-desc-text {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.65;
  margin: 0;
}

.modal-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  color: white;
  text-decoration: none;
  padding: 0.9rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
  transition: all 0.22s ease;
}

.modal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.55);
}

.modal-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: white;
  color: #6b7280;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px solid #e5e7eb;
  transition: all 0.2s ease;
}

.modal-btn-secondary:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #4b5563;
}

.modal-btn-hidden {
  display: none;
}


/* ── Responsive modal ── */
@media (max-width: 640px) {
  .modal-body {
    flex-direction: column;
    overflow-y: auto;
    max-height: 92vh;
  }

  .preview-modal-container {
    border-radius: 22px;
    max-height: 95vh;
  }

  .modal-phone-panel {
    padding: 2rem 1.5rem 1.5rem;
  }

  .phone-mockup-frame {
    width: 200px;
  }

  .phone-screen {
    height: auto;
  }

  .modal-info-panel {
    padding: 1.5rem 1.25rem;
    gap: 0.75rem;
  }

  .modal-theme-name {
    font-size: 1.4rem;
    text-align: center;
  }

  .modal-badges-row {
    justify-content: center;
  }

  .modal-usage-row {
    justify-content: center;
  }

  .modal-desc-text {
    text-align: center;
  }

  .modal-close-btn {
    background: rgba(0, 0, 0, 0.12);
    color: #374151;
    border-color: #e5e7eb;
  }
}

/* ----- Final Responsive Fixes ----- */
@media (max-width: 768px) {
  .editorial-shell {
    width: calc(100% - 16px);
    margin: 8px auto;
  }

  .editorial-header-inner {
    gap: 12px;
    padding: 14px 16px;
  }

  .editorial-brand-logo {
    height: 46px;
  }

  .editorial-menu-btn {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }

  .editorial-mobile-links {
    padding: 14px 16px 18px;
    gap: 10px;
  }

  .editorial-mobile-links a,
  .editorial-mobile-cta {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .editorial-mobile-cta {
    min-height: 38px;
    padding: 8px 16px;
    justify-content: center;
  }

  .editorial-hero {
    padding: 10px 10px 0;
  }

  .editorial-hero-frame {
    min-height: 620px;
  }

  .editorial-intro-card {
    max-width: 100%;
    padding: 72px 18px 72px;
  }

  .editorial-intro-card h1 {
    font-size: clamp(2.3rem, 9vw, 3.6rem);
    line-height: 0.98;
  }

  .editorial-lead {
    font-size: 0.96rem;
    line-height: 1.75;
  }

  .editorial-intro-actions {
    width: min(100%, 340px);
    margin-left: auto;
    margin-right: auto;
    flex-direction: column;
  }

  .editorial-intro-actions .editorial-primary-btn,
  .editorial-intro-actions .editorial-secondary-btn,
  .editorial-price-btn,
  .editorial-gallery-cta .editorial-primary-btn,
  .editorial-loadmore-btn {
    width: 100%;
    min-width: 0;
  }

  .editorial-story,
  .editorial-gallery,
  .editorial-steps,
  .editorial-pricing,
  .editorial-faq,
  .editorial-final-cta {
    padding: 56px 18px;
  }

  .editorial-story-grid,
  .editorial-faq-grid,
  .editorial-step-grid,
  .editorial-pricing-grid {
    gap: 28px;
  }

  .editorial-section-head {
    margin-bottom: 28px;
  }

  .editorial-story-copy h2,
  .editorial-section-head h2,
  .editorial-faq-title,
  .editorial-final-cta h2 {
    font-size: clamp(2.1rem, 8vw, 3rem);
    line-height: 1;
  }

  .editorial-collage {
    min-height: 420px;
    max-width: 460px;
  }

  .editorial-photo-tall {
    top: 82px;
    height: 170px;
  }

  .editorial-photo-main {
    width: 58%;
    left: 21%;
    height: 320px;
  }

  .editorial-photo-small {
    width: 38%;
    height: 140px;
    left: 10%;
  }

  .editorial-step-card,
  .editorial-price-card,
  .editorial-faq-item {
    padding: 26px 20px;
  }

  .editorial-price-value {
    font-size: 3rem;
  }

  .editorial-price-copy {
    min-height: 0;
  }

  .editorial-gallery-meta {
    justify-content: flex-start;
    text-align: left;
  }

  .editorial-themes-hero {
    padding: 4rem 0 3rem;
  }

  .editorial-themes-title {
    font-size: clamp(2.4rem, 9vw, 3.5rem);
    margin-top: 18px;
  }

  .editorial-themes-copy {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .themes-stat-pill {
    min-height: 44px;
  }

  .editorial-discovery-panel {
    gap: 16px;
    padding: 18px 16px;
  }

  .editorial-search-help {
    font-size: 0.88rem;
    text-align: left;
  }

  .editorial-search-input {
    height: 40px;
    padding: 0 16px 0 44px;
    font-size: 0.88rem;
  }

  .editorial-filter-label {
    font-size: 0.68rem;
  }

  .editorial-filter-group {
    gap: 8px;
  }

  .editorial-filter-select-wrap {
    display: grid;
  }

  .editorial-filter-row {
    display: none;
  }

  .editorial-filter-select {
    height: 40px;
    padding: 0 2.25rem 0 0.8rem;
    font-size: 0.84rem;
  }

  body.editorial-themes .filter-btn,
  body.editorial-themes .filter-chip {
    min-height: 42px;
    padding: 0.8rem 1rem;
    flex: 0 0 auto;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .editorial-gallery-meta {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 12px 14px;
  }

  body.editorial-themes .theme-card-name {
    font-size: 1.2rem;
  }

  #loadMoreContainer {
    margin-top: 2.5rem;
  }

  .editorial-loadmore-btn {
    width: 100%;
    min-width: 0;
  }

  .preview-modal-container {
    width: min(100vw - 20px, 980px);
    max-height: 94vh;
  }

  .modal-preview-stage {
    width: min(100%, 260px);
    aspect-ratio: 400 / 810;
    height: auto;
  }

  .modal-info-panel {
    padding: 2rem 1.5rem 1.4rem;
  }

  .preview-modal-container .modal-btn-primary,
  .preview-modal-container .modal-btn-secondary {
    min-height: 56px;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 640px) {
  .editorial-shell {
    width: calc(100% - 12px);
    margin: 6px auto;
  }

  .editorial-header-inner {
    padding: 12px 14px;
  }

  .editorial-brand-logo {
    height: 42px;
  }

  .editorial-hero-frame {
    min-height: 540px;
  }

  .editorial-intro-card {
    padding: 60px 14px 58px;
  }

  .editorial-intro-card h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .editorial-eyebrow,
  .editorial-price-label,
  .editorial-gallery-count,
  .editorial-gallery-hint {
    letter-spacing: 0.12em;
  }

  .editorial-collage {
    position: static;
    min-height: 0;
    display: grid;
    gap: 12px;
  }

  .editorial-photo,
  .editorial-photo-tall,
  .editorial-photo-main,
  .editorial-photo-small {
    position: static;
    width: 100%;
    left: auto;
    top: auto;
    bottom: auto;
  }

  .editorial-photo-tall,
  .editorial-photo-small {
    height: 120px;
  }

  .editorial-photo-main {
    height: 260px;
  }

  .editorial-step-number {
    font-size: 3rem;
  }

  .editorial-step-card h3,
  .editorial-price-card h3,
  .editorial-faq-item h3 {
    font-size: 1.75rem;
  }

  .editorial-price-value {
    font-size: 2.7rem;
  }

  #teaserGallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .editorial-themes-hero {
    padding: 2.6rem 0 2rem;
  }

  .editorial-themes-hero .container {
    display: grid;
    justify-items: center;
    align-content: center;
    padding-left: 14px;
    padding-right: 14px;
    text-align: center;
  }

  body.editorial-themes .themes-hero-badge {
    padding: 7px 14px;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
  }

  .editorial-themes-title {
    max-width: 300px;
    margin: 14px auto 10px;
    font-size: clamp(1.8rem, 7.2vw, 2.3rem);
    line-height: 1.08;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }

  .editorial-themes-copy {
    max-width: 304px;
    font-size: 0.84rem;
    line-height: 1.62;
  }

  .themes-stat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 304px;
    margin-top: 22px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
  }

  .themes-stat-pill {
    width: 100%;
    min-height: 0;
    justify-content: center;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.7rem;
    line-height: 1.22;
  }

  .editorial-discovery-panel {
    gap: 12px;
    padding: 12px;
  }

  .editorial-search-wrap {
    max-width: 100%;
  }

  .editorial-search-icon {
    left: 14px;
    width: 16px;
    height: 16px;
  }

  .editorial-search-input {
    height: 36px;
    padding: 0 12px 0 38px;
    font-size: 0.8rem;
  }

  .editorial-search-help {
    margin-top: 0;
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .editorial-filter-group {
    gap: 7px;
  }

  .editorial-filter-label {
    font-size: 0.64rem;
    letter-spacing: 0.14em;
  }

  .editorial-filter-select {
    height: 38px;
    padding: 0 2rem 0 0.72rem;
    font-size: 0.8rem;
    background-position:
      calc(100% - 16px) calc(50% - 2px),
      calc(100% - 11px) calc(50% - 2px),
      0 0;
    background-size: 5px 5px, 5px 5px, 100% 100%;
  }

  .editorial-gallery-meta {
    gap: 6px;
    padding: 10px 12px;
  }

  .editorial-gallery-count,
  .editorial-gallery-hint {
    width: 100%;
    text-align: left;
    letter-spacing: 0.08em;
  }

  #themeGallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .theme-card-name {
    font-size: 0.58rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .theme-card-info {
    padding: 0.7rem 0.65rem 0.8rem;
  }

  .theme-card-sub {
    font-size: 0.58rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .overlay-btn-preview,
  .overlay-btn-order {
    padding: 0.35rem 0;
    font-size: 0.65rem;
    gap: 3px;
  }

  .modal-body {
    flex-direction: column;
    overflow-y: auto;
  }

  .preview-modal-container {
    width: calc(100vw - 12px);
    max-height: 95vh;
    border-radius: 18px;
  }

  .modal-phone-panel {
    border-right: 0;
    border-bottom: 1px solid var(--sakura-card-border);
    padding: 1.6rem 1rem 1.1rem;
  }

  .modal-preview-stage {
    width: min(100%, 220px);
    aspect-ratio: 400 / 810;
    height: auto;
  }

  .modal-info-panel {
    padding: 1.25rem 1rem 1rem;
    gap: 0.7rem;
  }

  .preview-modal-container .modal-theme-name {
    font-size: 2rem;
    text-align: center;
  }

  .preview-modal-container .modal-badges-row,
  .modal-usage-row {
    justify-content: center;
  }

  .preview-modal-container .modal-desc-text {
    text-align: center;
  }
}

@media (max-width: 420px) {
  .themes-stat-grid {
    grid-template-columns: 1fr;
    max-width: 260px;
    gap: 8px;
  }

  .themes-stat-pill {
    padding: 8px 12px;
  }
}

@media (max-width: 359px) {
  .themes-stat-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .themes-stat-pill,
  .filter-btn,
  .filter-chip {
    width: 100%;
  }

  #themeGallery {
    grid-template-columns: 1fr;
  }

  .editorial-final-cta .editorial-primary-btn,
  .editorial-header-cta,
  .editorial-mobile-cta {
    width: 100%;
  }
}

/* Modal scroll fix: scroll the whole modal, not the info panel */
.preview-modal-container {
  overflow-x: hidden;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.modal-info-panel {
  overflow: visible;
}

.preview-modal-container::-webkit-scrollbar {
  display: none;
}

@media (max-width: 640px) {
  .modal-body {
    overflow: visible;
  }
}

/* Final pink theme overrides for modal close + category labels */
.preview-modal-container .modal-close-btn {
  top: 1.1rem;
  right: 1.1rem;
  width: 40px;
  height: 40px;
  background: rgba(247, 219, 231, 0.96);
  border: 1px solid rgba(199, 112, 147, 0.34);
  color: var(--sakura-accent-deep);
  font-size: 0.78rem;
}

.preview-modal-container .modal-close-btn:hover {
  background: var(--sakura-accent-strong);
  border-color: var(--sakura-accent-strong);
  color: #fff8fb;
}

.preview-modal-container .modal-badge,
body.editorial-themes .filter-btn,
body.editorial-themes .filter-chip,
body.editorial-themes .themes-stat-pill {
  background: rgba(247, 219, 231, 0.72);
  border-color: rgba(199, 112, 147, 0.28);
  color: var(--sakura-accent-deep);
}

.preview-modal-container .modal-badge {
  background: rgba(247, 219, 231, 0.56);
  border-color: rgba(199, 112, 147, 0.26);
  color: var(--sakura-accent-deep);
}

body.editorial-themes .filter-btn:hover,
body.editorial-themes .filter-chip:hover,
body.editorial-themes .themes-stat-pill:hover {
  background: rgba(216, 140, 169, 0.2);
  border-color: rgba(199, 112, 147, 0.4);
  color: var(--sakura-text-strong);
}

body.editorial-themes .filter-btn.active,
body.editorial-themes .filter-chip.active {
  background: var(--sakura-accent-deep);
  border-color: var(--sakura-accent-deep);
  color: #fff8fb;
}

@media (max-width: 768px) {
  .preview-modal-container .modal-close-btn {
    top: 0.9rem;
    right: 0.9rem;
    width: 36px;
    height: 36px;
    font-size: 0.72rem;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .editorial-header .editorial-nav,
  .editorial-header .editorial-header-cta:not(.editorial-mobile-cta) {
    display: none !important;
  }

  .editorial-header .editorial-menu-btn {
    display: inline-flex !important;
  }

  .editorial-header .editorial-mobile-menu {
    display: none !important;
  }

  .editorial-header .editorial-mobile-menu.open {
    display: block !important;
  }

  .preview-modal-container {
    width: calc(100vw - 24px);
    max-width: 560px;
    max-height: 95vh;
    border-radius: 18px;
  }

  .modal-body {
    flex-direction: column;
    overflow: visible;
  }

  .modal-phone-panel {
    border-right: 0;
    border-bottom: 1px solid var(--sakura-card-border);
    padding: 1.75rem 1.25rem 1.2rem;
  }

  .modal-preview-stage {
    width: min(100%, 240px);
    aspect-ratio: 400 / 810;
    height: auto;
  }

  .modal-info-panel {
    padding: 1.4rem 1.15rem 1.1rem;
    gap: 0.75rem;
  }

  .preview-modal-container .modal-theme-name {
    font-size: 2rem;
    text-align: center;
  }

  .preview-modal-container .modal-badges-row,
  .modal-usage-row {
    justify-content: center;
  }

  .preview-modal-container .modal-desc-text {
    text-align: center;
  }

  .preview-modal-container .modal-btn-primary,
  .preview-modal-container .modal-btn-secondary {
    min-height: 56px;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
  }

  .preview-modal-container .modal-close-btn {
    top: 0.9rem;
    right: 0.9rem;
    width: 36px;
    height: 36px;
    font-size: 0.72rem;
  }

  .editorial-collage {
    min-height: 540px;
    max-width: 430px;
  }

  .editorial-photo-main {
    left: 50%;
    top: 0;
    width: 280px;
    height: 498px;
    transform: translateX(-50%);
  }

  .editorial-photo-tall {
    left: 0;
    top: 92px;
    width: 138px;
    height: 220px;
  }

  .editorial-photo-small {
    left: auto;
    right: 0;
    bottom: 18px;
    width: 156px;
    height: 146px;
  }
}
