:root {
  --primary-pink: #ff4d6d;
  --secondary-pink: #ff8fa3;
  --bg-pink: #fff0f3;
  --text-dark: #590d22;
  --white: #ffffff;
  --cb-bg: #f5f5f4;
  --cb-surface: #ffffff;
  --cb-border-subtle: #e5e7eb;
  --cb-text-main: #111827;
  --cb-text-muted: #6b7280;
  --cb-radius-lg: 16px;
  --cb-radius-md: 12px;
  --cb-radius-full: 999px;
  --cb-shadow-soft: 0 18px 35px rgba(15, 23, 42, 0.08);
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Quicksand', sans-serif;
  background: var(--bg-pink);
  color: var(--text-dark);
}

body { display: flex; flex-direction: column; }

.cb-creator-page {
  background: linear-gradient(135deg, #fff0f3 0%, #ffccd5 100%);
  min-height: 100vh;
}
.cb-creator-page .cb-container {
  max-width: 700px;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.cb-container {
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  padding: 16px 20px 32px;
}

/* ---------- Pricing & Upgrade pages: minimal, responsive ---------- */
.cb-pricing-wrap,
.cb-upgrade-wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 20px 48px;
}
.cb-pricing-header,
.cb-upgrade-header {
  text-align: center;
  margin-bottom: 32px;
}
.cb-pricing-title,
.cb-upgrade-title {
  color: var(--primary-pink);
  font-family: 'Dancing Script', cursive;
  font-size: 1.75rem;
  margin: 0 0 6px;
  font-weight: 600;
}
.cb-pricing-sub,
.cb-upgrade-sub {
  color: #666;
  font-size: 0.95rem;
  margin: 0;
}
.cb-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch;
}
.cb-pricing-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.cb-pricing-card--featured {
  position: relative;
  overflow: hidden;
  border-color: var(--primary-pink);
  background: linear-gradient(180deg, #fffbfc 0%, #fff 100%);
  box-shadow: 0 4px 20px rgba(255, 77, 109, 0.1);
}
.cb-pricing-card--featured .cb-pricing-card-title {
  color: var(--primary-pink);
  font-family: 'Dancing Script', cursive;
}
.cb-pricing-badge {
  position: absolute;
  top: 12px;
  right: -28px;
  background: var(--primary-pink);
  color: white;
  padding: 4px 32px;
  transform: rotate(45deg);
  font-size: 0.7rem;
  font-weight: 600;
}
.cb-pricing-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 6px;
}
.cb-pricing-card-desc {
  color: #666;
  font-size: 0.9rem;
  margin: 0 0 16px;
}
.cb-pricing-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 20px;
}
.cb-pricing-card--featured .cb-pricing-price,
.cb-pricing-price--accent { color: var(--primary-pink); }
.cb-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.cb-pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #444;
}
.cb-pricing-features li:last-child { margin-bottom: 0; }
.cb-pricing-features .cb-check { color: var(--primary-pink); flex-shrink: 0; }
.cb-pricing-cta {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: var(--primary-pink);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.05s;
  box-sizing: border-box;
}
.cb-pricing-cta:hover { background: #ff8fa3; }
.cb-pricing-cta:disabled, .cb-pricing-cta[disabled] {
  background: #ccc;
  cursor: default;
}
/* Upgrade (single site) page */
.cb-upgrade-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px;
  border: 1px solid #eee;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.cb-upgrade-title-wrap { text-align: center; margin-bottom: 20px; }
.cb-upgrade-title-wrap .cb-upgrade-title {
  font-family: 'Dancing Script', cursive;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.cb-upgrade-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 77, 109, 0.3);
  background: rgba(255, 240, 243, 0.9);
}
.cb-upgrade-features {
  background: #fafafa;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 24px;
  list-style: none;
  padding-left: 18px;
  padding-right: 18px;
}
.cb-upgrade-features li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
}
.cb-upgrade-features li:last-child { border-bottom: none; }
.cb-upgrade-features .cb-check { color: var(--primary-pink); flex-shrink: 0; }
.cb-upgrade-features strong { color: #333; }
.cb-upgrade-features .cb-desc { font-size: 0.8rem; color: #666; margin-top: 2px; display: block; }
.cb-upgrade-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--primary-pink);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 12px rgba(255, 77, 109, 0.25);
}
.cb-upgrade-btn:hover { background: #ff8fa3; }
.cb-upgrade-btn:disabled { background: #ccc; cursor: default; }
.cb-upgrade-back {
  display: inline-block;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
}
.cb-upgrade-back:hover { color: var(--primary-pink); text-decoration: underline; }
@media (max-width: 640px) {
  .cb-pricing-wrap,
  .cb-upgrade-wrap {
    padding: 40px 16px 40px;
  }
  .cb-pricing-title,
  .cb-upgrade-title { font-size: 1.5rem; }
  .cb-pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cb-pricing-card {
    padding: 20px;
  }
  .cb-pricing-card--featured { position: relative; overflow: hidden; }
  .cb-pricing-badge { font-size: 0.65rem; padding: 3px 24px; right: -26px; }
  .cb-upgrade-card { padding: 22px 18px; }
  .cb-upgrade-features { padding: 14px 16px; }
  .cb-upgrade-features li { padding: 8px 0; }
}

/* BeMyVal-style header: logo fixed left, nav fixed right */
.cb-header-logo {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  transition: transform 0.2s;
}
.cb-header-logo:hover { transform: scale(1.1); }
.cb-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}
.cb-header-nav {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 16px;
}
.cb-header-nav a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}
.cb-header-nav a:hover {
  color: var(--primary-pink);
  background: #fff0f3;
}
.cb-nav-create {
  background: #f8f9fa !important;
}
.cb-nav-create:hover {
  background: #e9ecef !important;
  color: var(--primary-pink) !important;
}

/* Nav dropdown (desktop + mobile) */
@keyframes cb-nav-avatar-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.cb-nav-dropdown {
  position: relative;
}
.cb-nav-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  background: none;
  border: 3px solid var(--primary-pink);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  animation: cb-nav-avatar-pulse 2.5s ease-in-out infinite;
}
.cb-nav-trigger:hover {
  border-color: #ffb3c1;
  box-shadow: 0 0 0 2px rgba(255, 105, 135, 0.25);
  animation: none;
  transform: scale(1.05);
}
.cb-nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.cb-nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  z-index: 1001;
}
.cb-nav-dropdown-menu.cb-nav-dropdown-open {
  display: block;
}
.cb-nav-dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  background: #fffbfb;
}
.cb-nav-dropdown-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
}
.cb-nav-dropdown-item {
  display: block;
  padding: 12px 16px;
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.cb-nav-dropdown-item:hover {
  background: #fff0f3;
  color: var(--primary-pink);
}
.cb-nav-dropdown-create {
  font-weight: 600;
  color: var(--primary-pink);
}
.cb-nav-dropdown-create:hover {
  background: #fff0f3;
}
.cb-nav-dropdown-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 4px 0;
}
.cb-nav-dropdown-logout {
  color: #d32f2f;
}
.cb-nav-dropdown-logout:hover {
  background: #ffebee;
  color: #b71c1c;
}


.cb-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(255, 77, 109, 0.15);
  backdrop-filter: blur(14px);
}

.cb-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.cb-logo {
  font-family: 'Dancing Script', cursive;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-pink);
}
.cb-logo span { color: var(--text-dark); }

.cb-main { flex: 1 0 auto; }
.cb-creator-page .cb-main,
.cb-static-page .cb-main { padding-top: 80px; }

.cb-footer {
  border-top: 1px solid rgba(255, 77, 109, 0.12);
  padding: 24px 20px;
  color: var(--cb-text-muted);
  font-size: 0.95rem;
  text-align: center;
}
.cb-footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 20px 0 0;
  flex-wrap: wrap;
}
.cb-footer-social-link {
  color: #999;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cb-footer-social-link:hover {
  color: var(--primary-pink);
}
.cb-footer-links {
  margin: 16px 0 0;
  font-size: 0.9rem;
}
.cb-footer-links a {
  color: var(--primary-pink);
  text-decoration: none;
}
.cb-footer-links a:hover { text-decoration: underline; }
.cb-footer-sep { margin: 0 8px; opacity: 0.6; }

/* Static pages (Contact, Privacy) */
.cb-static-page {
  background: linear-gradient(135deg, #fff0f3 0%, #ffccd5 100%);
  min-height: 100vh;
}
.cb-static-section {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 0 48px;
}
.cb-static-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 12px;
}
.cb-static-intro {
  color: var(--cb-text-muted);
  line-height: 1.6;
  margin: 0 0 28px;
}
.cb-static-block {
  background: var(--white);
  border-radius: var(--cb-radius-md);
  padding: 20px 24px;
  margin-bottom: 16px;
  border: 2px solid #ffccd5;
  box-shadow: 0 8px 24px rgba(255, 77, 109, 0.08);
}
.cb-static-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 10px;
}
.cb-static-block p {
  margin: 0 0 10px;
  line-height: 1.6;
  color: var(--cb-text-main);
}
.cb-static-block p:last-child { margin-bottom: 0; }
.cb-static-muted { color: var(--cb-text-muted); font-size: 0.9rem; }
.cb-static-list {
  margin: 0 0 10px;
  padding-left: 20px;
  line-height: 1.6;
  color: var(--cb-text-main);
}
.cb-static-list li { margin-bottom: 6px; }
.cb-static-link { color: var(--primary-pink); text-decoration: none; }
.cb-static-link:hover { text-decoration: underline; }
.cb-static-back {
  margin-top: 24px;
  font-size: 0.9rem;
}
.cb-static-back a { color: var(--primary-pink); text-decoration: none; }
.cb-static-back a:hover { text-decoration: underline; }

.cb-hero { padding: 40px 0 32px; text-align: center; }
.cb-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--text-dark);
}
.cb-hero-subtitle {
  margin: 0 0 24px;
  color: var(--cb-text-muted);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.cb-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.cb-section { margin-top: 0; }

/* Creator layout: BeMyVal-style layers – header on pink, form in white card */
.cb-creator-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.creator-header {
  width: 100%;
  max-width: 700px;
  text-align: center;
  margin-bottom: 0;
  padding-bottom: 24px;
}
.creator-header-title {
  margin: 0 0 6px;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-pink);
}
.creator-header-tagline {
  font-size: 0.85rem;
  color: #666;
  margin: 0 auto 20px;
  max-width: 380px;
  line-height: 1.4;
  font-weight: 400;
}
.creator-url-layer {
  text-align: left;
  margin-top: 0;
  margin-bottom: 0;
  max-width: 100%;
}
.creator-url-layer .app-url-input-wrap {
  max-width: 100%;
}
.cb-section-title { font-size: 1.25rem; margin: 0 0 8px; }
.cb-section-intro { margin: 0 0 20px; color: var(--cb-text-muted); line-height: 1.5; }

.cb-cards-grid { display: grid; gap: 16px; }
@media (min-width: 720px) {
  .cb-cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.cb-card {
  background: var(--white);
  border-radius: var(--cb-radius-md);
  padding: 20px;
  border: 2px solid #ffccd5;
  box-shadow: 0 8px 24px rgba(255, 77, 109, 0.08);
}

.cb-card-title { margin: 0 0 8px; font-size: 1rem; }
.cb-card-text { margin: 0; font-size: 0.9rem; color: var(--cb-text-muted); line-height: 1.5; }

.cb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--cb-radius-full);
  border: 2px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  color: var(--cb-text-main);
  transition: all 0.2s;
  font-family: inherit;
}

/* Primary Button Upgrade */
.cb-button-primary {
  background: linear-gradient(135deg, #ff4d6d 0%, #ff8fa3 100%);
  border: none;
  color: white;
  box-shadow: 0 8px 20px rgba(255, 77, 109, 0.35);
  padding: 14px 28px;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cb-button-primary:hover {
  background: linear-gradient(135deg, #ff3355 0%, #ff708a 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(255, 77, 109, 0.45);
}

/* App form submit loading state – prevents double submit while saving/uploading */
.cb-btn-loading {
  cursor: wait !important;
  pointer-events: none;
}
.cb-btn-loading .cb-btn-loading-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 8px;
  vertical-align: -0.15em;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cb-spin 0.7s linear infinite;
}
@keyframes cb-spin {
  to { transform: rotate(360deg); }
}

.cb-button-ghost {
  border-color: #ffccd5;
  background: white;
  color: var(--primary-pink);
}
.cb-button-ghost:hover {
  background: var(--bg-pink);
  text-decoration: none;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Creator form (BeMyVal-mature: clean card, soft shadow, consistent width) */
.creator-card {
  background: var(--white);
  padding: 30px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(255, 77, 109, 0.1);
  margin-top: 0;
  width: 100%;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.cb-font-script {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-pink);
  text-shadow: 0 2px 4px rgba(255, 77, 109, 0.1);
}


/* Form: BeMyVal-style borders and typography */
.form-group input[type="text"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ffccd5;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  background: #fff;
  transition: border-color 0.2s;
  color: var(--text-dark);
}

.form-group input[type="text"]:focus,
.form-group input[type="date"]:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-pink);
}

/* Birthday wish field (bemyval love-notes style) */
.cb-birthday-wish-textarea {
  font-size: 0.85rem;
  color: #999;
}
.cb-birthday-wish-textarea::placeholder {
  color: #ccc;
  opacity: 0.8;
}
.cb-birthday-wish-textarea:focus {
  color: var(--text-dark);
}
.cb-shuffle-wish-btn {
  background-color: transparent;
  color: #999;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
}
.cb-shuffle-wish-btn svg {
  width: 16px;
  height: 16px;
}
.cb-shuffle-wish-btn:hover {
  background-color: #f8f9fa;
  border-color: var(--primary-pink);
  color: var(--primary-pink);
  transform: rotate(180deg);
}

.creator-card .form-group input[type="text"]::placeholder,
.creator-card .form-group input[type="date"]::placeholder {
  font-size: 0.85rem;
  color: #999;
}
.creator-card .form-group input[type="text"]::-webkit-input-placeholder,
.creator-card .form-group input[type="date"]::-webkit-input-placeholder {
  font-size: 0.85rem;
  color: #999;
}

.app-url-field {
  margin-top: 20px;
  margin-bottom: 8px;
}
.app-url-field label {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}
.app-url-input-wrap {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.app-url-prefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: #f8f9fa;
  border-right: 1px solid #e0e0e0;
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}
.app-url-field input {
  flex: 1;
  padding: 12px 14px;
  border: none;
  background: #f8f9fa;
  color: #666;
  font-size: 0.9rem;
  outline: none;
  cursor: default;
}
.app-url-editable {
  flex-wrap: wrap;
}
.app-url-editable .app-url-prefix {
  border-right: 1px solid #e0e0e0;
}
.app-url-slug-input {
  flex: 1;
  min-width: 100px;
  background: #fff !important;
  color: var(--primary-pink) !important;
  font-family: monospace;
  cursor: text !important;
}
.app-url-actions {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  border-left: 1px solid #e0e0e0;
}
.app-url-actions.app-url-minimal {
  align-items: center;
  gap: 8px;
}
.app-slug-check-icon {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
}
.app-slug-check-icon svg {
  flex-shrink: 0;
}
.app-url-actions button {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}
.cb-btn-url-save {
  background: var(--primary-pink);
  color: white;
  font-weight: 600;
}
.cb-btn-url-save:hover { background: #ff8fa3; }

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.cb-form { margin-top: 16px; }
.cb-form-group { margin-bottom: 18px; }
.cb-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.cb-form-group input,
.cb-form-group textarea,
.cb-form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #ffccd5;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.cb-form-group input:focus,
.cb-form-group textarea:focus,
.cb-form-group select:focus {
  border-color: var(--primary-pink);
}

.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  background: white;
  transition: all 0.2s;
}
.radio-option:hover { border-color: #ffccd5; background: #fff8f9; }
.radio-option:has(input:checked) {
  border-color: var(--primary-pink);
  background: var(--bg-pink);
}
.radio-option span { font-weight: 500; }
.radio-option:has(input:checked) span { color: var(--primary-pink); }

/* Animation selector (bemyval-style: card with GIF + label) */
.animation-selector {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-pink) #fff0f3;
  -webkit-overflow-scrolling: touch;
}

.animation-selector::-webkit-scrollbar {
  height: 6px;
}

.animation-selector::-webkit-scrollbar-track {
  background: #fff0f3;
  border-radius: 10px;
}

.animation-selector::-webkit-scrollbar-thumb {
  background: var(--primary-pink);
  border-radius: 10px;
}

.animation-selector::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-pink);
}

.animation-option {
  flex: 0 0 auto;
  min-width: 88px;
  max-width: 100px;
  cursor: pointer;
  text-align: center;
  border: 2px solid #f0f0f0;
  border-radius: 14px;
  padding: 12px 8px 10px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.animation-option:hover {
  border-color: #ffccd5;
  background: #fffbfc;
  box-shadow: 0 4px 12px rgba(255, 77, 109, 0.08);
}

.animation-option input {
  display: none;
}

/* GIF container – square, contained so image isn’t cropped; centered in card */
.animation-preview {
  width: 56px;
  height: 56px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: auto;
}

.animation-preview:has(img.animation-preview-gif) {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

.animation-preview img.animation-preview-gif {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  margin: 0;
}

.animation-preview-gif {
  padding: 0;
  background: #fafafa;
}

.animation-preview-gif .preview-gif {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Label under GIF – aligned, can wrap to 2 lines */
.animation-option-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #888;
  line-height: 1.25;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
  transition: color 0.2s;
}

/* Selected state: whole card highlighted (like bemyval) */
.animation-option:has(input:checked) {
  border-color: var(--primary-pink);
  background: #fff0f3;
  box-shadow: 0 2px 12px rgba(255, 77, 109, 0.18);
}

.animation-option:has(input:checked) .animation-option-label {
  color: var(--primary-pink);
}
.form-group-intro .form-label-with-desc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.form-group-intro .form-label-main {
  font-weight: 600;
  color: #333;
}
.form-group-intro .form-label-desc {
  font-size: 0.8rem;
  font-weight: 400;
  color: #888;
}

/* Realistic Candle Preview */
.animation-preview-candle {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-cake-body {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f9a8d4 0%, #f97373 50%, #e63950 100%);
  box-shadow: 0 3px 8px rgba(249, 115, 115, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.preview-cake-body::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  border-radius: 2px;
}

.preview-cake-top {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #a78bfa 0%, #8b5cf6 50%, #7c3aed 100%);
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255,255,255,0.3);
}

.preview-cake-top::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  border-radius: 2px;
}

.preview-candles {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  align-items: flex-end;
}

.preview-candle {
  position: relative;
  width: 5px;
  height: 14px;
}

.preview-candle-body {
  width: 5px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.4), inset 0 0 2px rgba(255,255,255,0.3);
  position: relative;
}

.preview-candle-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 2px;
  background: #1e40af;
  border-radius: 50%;
}

.preview-flame {
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 8px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(ellipse 60% 80% at 50% 20%, #fff9c4, #fbbf24 35%, #f59e0b 60%, rgba(239,68,68,0.4));
  opacity: 0;
  filter: blur(0.3px);
  box-shadow: 0 0 4px rgba(251, 191, 36, 0.6);
}

.preview-flame::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 3px;
  background: #fff9c4;
  border-radius: 50%;
  opacity: 0.9;
}

.preview-candles.preview-lit .preview-flame {
  opacity: 1;
  animation: previewFlicker 0.12s ease-in-out infinite alternate;
}

@keyframes previewFlicker {
  0% { transform: translateX(-50%) scaleY(0.96) scaleX(1.02) rotate(-1deg); }
  100% { transform: translateX(-50%) scaleY(1.04) scaleX(0.98) rotate(1deg); }
}

/* Realistic Balloons Preview */
.animation-preview-balloons {
  width: 100%;
  height: 100%;
  position: relative;
}

.preview-balloon {
  position: absolute;
  width: 16px;
  height: 20px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: inset -4px -6px 0 rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.15);
  animation: previewFloat 2.2s ease-in-out infinite;
  position: relative;
}

.preview-balloon::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 8px;
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.1));
  border-radius: 1px;
}

.preview-balloon::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  background: rgba(0,0,0,0.15);
  border-radius: 50%;
}

.preview-balloon:nth-child(1) { animation-delay: 0s; }
.preview-balloon:nth-child(2) { animation-delay: 0.35s; }
.preview-balloon:nth-child(3) { animation-delay: 0.7s; }
.preview-balloon:nth-child(4) { animation-delay: 0.2s; }
.preview-balloon:nth-child(5) { animation-delay: 0.55s; }

@keyframes previewFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(2deg); }
}

/* Realistic Gift Preview */
.animation-preview-gift {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-gift-body {
  position: absolute;
  width: 46px;
  height: 36px;
  background: linear-gradient(180deg, #ff7ba3 0%, #ff4d6d 50%, #e63950 100%);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 3px 10px rgba(255, 77, 109, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.preview-gift-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.4), transparent, rgba(255,255,255,0.4));
}

.preview-gift-body::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.4), transparent, rgba(255,255,255,0.4));
}

.preview-gift-lid {
  position: absolute;
  bottom: 32px;
  width: 50px;
  height: 10px;
  background: linear-gradient(180deg, #ffb3c6 0%, #ff8fa3 50%, #ff6b9d 100%);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.4);
}

.preview-gift-lid::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), transparent);
}

.preview-gift-lid::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.5), transparent, rgba(255,255,255,0.5));
}

/* Gift bow/ribbon */
.preview-gift-bow {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 8px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.preview-gift-bow::before,
.preview-gift-bow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.preview-gift-bow::before {
  left: -2px;
}

.preview-gift-bow::after {
  right: -2px;
}

/* Theme selector (card colors) – same card style as intro animation */
.theme-selector {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-pink) #fff0f3;
  -webkit-overflow-scrolling: touch;
}

.theme-selector::-webkit-scrollbar {
  height: 6px;
}

.theme-selector::-webkit-scrollbar-track {
  background: #fff0f3;
  border-radius: 10px;
}

.theme-selector::-webkit-scrollbar-thumb {
  background: var(--primary-pink);
  border-radius: 10px;
}

.theme-selector::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-pink);
}

.theme-option {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border: 2px solid #f0f0f0;
  border-radius: 50%;
  padding: 4px;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.theme-option:hover {
  border-color: #ffccd5;
  background: #fffbfc;
  box-shadow: 0 4px 12px rgba(255, 77, 109, 0.08);
}

.theme-option input { display: none; }

.theme-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  position: relative;
  flex-shrink: 0;
}

.theme-swatch::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 100%);
}

.theme-option:hover .theme-swatch {
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.theme-option:has(input:checked) {
  border-color: var(--primary-pink);
  background: #fff0f3;
  box-shadow: 0 2px 12px rgba(255, 77, 109, 0.18);
}

.theme-option input:checked + .theme-swatch {
  border-color: #fff;
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary-pink);
}

/* Theme swatch colors (Pink, Blue, Green, Gold, Purple, Milk from CARD_THEMES) */
.theme-pink .theme-swatch { background: #ffc0cb; }
.theme-blue .theme-swatch { background: #b8d4e8; }
.theme-green .theme-swatch { background: #b8e8c8; }
.theme-gold .theme-swatch { background: #fff0b8; }
.theme-purple .theme-swatch { background: #e0d4f4; }
.theme-milk .theme-swatch { background: #fffef9; border: 1px solid rgba(0,0,0,0.08); }
/* Legacy theme keys if still used elsewhere */
.theme-rose .theme-swatch { background: #ffe4e1; }
.theme-mint .theme-swatch { background: #e0ffef; }
.theme-lavender .theme-swatch { background: #e6e6fa; }
.theme-sky .theme-swatch { background: #e0f4ff; }


.cb-upload-area {
  border: 2px dashed #ffb3c6;
  border-radius: 20px;
  padding: 32px;
  background: rgba(255, 240, 243, 0.6);
  transition: all 0.2s;
}
.cb-upload-area:hover {
  background: rgba(255, 240, 243, 1);
  border-color: var(--primary-pink);
  transform: scale(1.01);
}
.cb-upload-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
  transition: transform 0.2s;
}
.cb-upload-area:hover .cb-upload-icon {
  transform: scale(1.1) rotate(-5deg);
}
.cb-upload-inner p {
  margin: 0 0 4px;
  color: var(--primary-pink);
  font-weight: 700;
  font-size: 1.05rem;
}
.cb-help-text { font-size: 0.8rem; color: var(--cb-text-muted); margin-top: 4px; }

.cb-form-actions {
  margin-top: 28px;
  display: flex;
  justify-content: stretch;
  align-items: stretch;
  width: 100%;
}
.cb-form-actions .cb-button {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.cb-alert { padding: 10px 14px; border-radius: 10px; margin: 12px 0; font-size: 0.9rem; }
.cb-alert-error { background: #ffebee; border: 1px solid #ffcdd2; color: #c62828; }
.cb-alert-success { background: #e8f5e9; border: 1px solid #a5d6a7; color: #2e7d32; }
.cb-alert-info { background: #e3f2fd; border: 1px solid #90caf9; color: #1565c0; }
.cb-flash-toast-wrap {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10002;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.cb-flash-toast-wrap .cb-alert {
  margin: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  min-width: 260px;
  text-align: center;
}

/* ---------- View site: intro animation (first thing user sees) — BeMyVal maturity ---------- */
.cb-intro-screen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(160deg, var(--bg-pink) 0%, #ffe4ec 50%, #ffccd5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  animation: introBgIn 0.5s ease-out;
}

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

.cb-intro-hint {
  font-family: 'Dancing Script', cursive;
  font-size: 1.75rem;
  color: var(--text-dark);
  margin: 0 auto 24px;
  text-align: center;
  opacity: 0;
  animation: introHintIn 0.6s ease-out 0.4s forwards;
  max-width: 320px;
  line-height: 1.3;
}

@keyframes introHintIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Candle intro — aligned stack: hint, cake, button */
.cb-intro-candle {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.cb-intro-candle .cb-intro-hint {
  order: 1;
  white-space: nowrap;
}

.cb-intro-mic-hint {
  order: 2;
  font-size: 0.85rem;
  color: var(--cb-text-muted, #666);
  margin: 0 auto 16px;
  text-align: center;
  max-width: 280px;
  line-height: 1.4;
  opacity: 0;
  animation: introHintIn 0.5s ease-out 0.6s forwards;
}

.cb-intro-volume-wrap {
  order: 2;
  margin: 0 auto 12px;
  width: 200px;
}

.cb-intro-volume-bar {
  height: 6px;
  background: rgba(0,0,0,0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.cb-intro-volume-fill {
  height: 100%;
  width: 0%;
  background: var(--primary-pink);
  border-radius: 3px;
  transition: width 0.05s ease-out;
}

.cb-intro-volume-label {
  font-size: 0.75rem;
  color: var(--cb-text-muted, #888);
  margin: 0;
  text-align: center;
}

.cb-intro-candle .cb-intro-cake {
  order: 3;
  margin: 0 0 24px;
  position: relative;
  opacity: 0;
  transform: scale(0.88) translateY(20px);
  animation: introCakeIn 0.7s cubic-bezier(0.34, 1.4, 0.64, 1) 0.2s forwards;
  cursor: pointer;
  display: flex;
  justify-content: center;
}

.cb-intro-candle .cb-button {
  order: 4;
  margin: 0;
}

@keyframes introCakeIn {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Real cake image — original size */
.cb-intro-cake-img {
  display: block;
  max-width: 280px;
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* Hidden when using cake image */
.cb-intro-cake-body,
.cb-intro-cake-top {
  display: none !important;
}

/* Candles on top of cake image — positioned higher on the top surface */
.cb-intro-candles {
  position: absolute;
  bottom: 62%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 22px;
  justify-content: center;
  align-items: flex-end;
}

.cb-intro-candle-item {
  position: relative;
  width: 14px;
  height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cb-intro-candle-item:nth-child(1) .cb-intro-candle-body { height: 50px; }
.cb-intro-candle-item:nth-child(2) .cb-intro-candle-body { height: 54px; }
.cb-intro-candle-item:nth-child(3) .cb-intro-candle-body { height: 48px; }

/* Candle stick — rectangular with rounded bottom, diagonal pink stripes */
.cb-intro-candle-body {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 52px;
  border-radius: 0 0 6px 6px;
  background: repeating-linear-gradient(
    135deg,
    #fbc4d4 0,
    #fbc4d4 3px,
    #f472b6 3px,
    #f472b6 6px
  );
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.4),
    inset -1px 0 0 rgba(0, 0, 0, 0.06),
    inset 0 -8px 6px -4px rgba(0, 0, 0, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Cake/frosting ring at base — candle buried in cake */
.cb-intro-candle-body::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(ellipse 10px 4px at 50% 100%, #fff8f0 0%, #fde8e0 40%, rgba(0, 0, 0, 0.08) 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Wick — thin black line */
.cb-intro-candle-body::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5px;
  height: 10px;
  background: #1f2937;
  border-radius: 0;
}

/* Flame — elongated teardrop, layered: yellow outer, orange, dark orange/red core */
.cb-intro-flame {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 30px;
  border-radius: 50% 50% 40% 40% / 60% 60% 35% 35%;
  background: linear-gradient(
    180deg,
    #fef08a 0%,
    #fde047 18%,
    #facc15 35%,
    #fb923c 55%,
    #f97316 75%,
    #ea580c 90%,
    #c2410c 100%
  );
  box-shadow:
    0 0 12px rgba(253, 224, 71, 0.4),
    0 0 6px rgba(249, 115, 22, 0.3);
  opacity: 0;
  filter: blur(0.3px);
}

.cb-intro-flame::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(
    180deg,
    #fef9c3 0%,
    #fde047 30%,
    #fb923c 70%,
    #ea580c 100%
  );
  opacity: 0.95;
}

.cb-intro-candles.cb-candles-lit .cb-intro-flame {
  opacity: 1;
  animation: cb-flame-flicker 1s ease-in-out infinite;
}
.cb-intro-candles.cb-candles-lit .cb-intro-candle-item:nth-child(1) .cb-intro-flame { animation-delay: 0s; }
.cb-intro-candles.cb-candles-lit .cb-intro-candle-item:nth-child(2) .cb-intro-flame { animation-delay: 0.2s; }
.cb-intro-candles.cb-candles-lit .cb-intro-candle-item:nth-child(3) .cb-intro-flame { animation-delay: 0.4s; }

.cb-intro-candles.cb-candles-lit .cb-intro-flame::before {
  animation: cb-flame-inner 1.2s ease-in-out infinite;
}
.cb-intro-candles.cb-candles-lit .cb-intro-candle-item:nth-child(1) .cb-intro-flame::before { animation-delay: 0.1s; }
.cb-intro-candles.cb-candles-lit .cb-intro-candle-item:nth-child(2) .cb-intro-flame::before { animation-delay: 0.3s; }
.cb-intro-candles.cb-candles-lit .cb-intro-candle-item:nth-child(3) .cb-intro-flame::before { animation-delay: 0.5s; }

.cb-intro-candles.cb-candles-out .cb-intro-flame {
  opacity: 0;
  transform: translateX(-50%) scale(0.2);
  transition: opacity 0.35s ease, transform 0.3s ease;
}

.cb-intro-candles.cb-candles-out .cb-intro-flame::before {
  animation: none;
}

@keyframes cb-flame-flicker {
  0%, 100% {
    transform: translateX(-50%) scale(1, 1);
    filter: blur(0.3px);
    box-shadow: 0 0 12px rgba(253, 224, 71, 0.4), 0 0 6px rgba(249, 115, 22, 0.3);
  }
  20% {
    transform: translateX(calc(-50% - 2px)) scale(1.1, 0.92);
    filter: blur(0.6px);
    box-shadow: 0 0 18px rgba(253, 224, 71, 0.5), 0 0 10px rgba(249, 115, 22, 0.4);
  }
  40% {
    transform: translateX(calc(-50% + 2px)) scale(0.92, 1.1);
    filter: blur(0.2px);
    box-shadow: 0 0 10px rgba(253, 224, 71, 0.35), 0 0 5px rgba(249, 115, 22, 0.25);
  }
  60% {
    transform: translateX(calc(-50% - 1px)) scale(1.05, 0.96);
    filter: blur(0.4px);
    box-shadow: 0 0 14px rgba(253, 224, 71, 0.45), 0 0 8px rgba(249, 115, 22, 0.35);
  }
  80% {
    transform: translateX(calc(-50% + 1px)) scale(0.96, 1.06);
    filter: blur(0.35px);
    box-shadow: 0 0 13px rgba(253, 224, 71, 0.4), 0 0 7px rgba(249, 115, 22, 0.3);
  }
}

@keyframes cb-flame-inner {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.9; }
  30% { transform: translateX(calc(-50% - 1px)) scale(1.15); opacity: 1; }
  60% { transform: translateX(-50%) scale(0.88); opacity: 0.85; }
  90% { transform: translateX(calc(-50% + 1px)) scale(1.08); opacity: 0.95; }
}

.cb-intro-candle .cb-button {
  opacity: 0;
  animation: introHintIn 0.5s ease-out 0.8s forwards;
}

/* Balloons intro — float in from bottom */
.cb-intro-balloons { text-align: center; }
.cb-intro-balloons-name {
  margin: 4px 0 10px;
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #1f2933;
}
.cb-balloons-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 340px;
  margin: 0 auto 24px;
}

.cb-balloon {
  position: absolute;
  width: 72px;
  height: 80px;
  border-radius: 50%;
  background: var(--balloon-color, #ff6b9d);
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="32" viewBox="0 0 24 32"><defs><filter id="glow"><feGaussianBlur stdDeviation="1" result="coloredBlur"/><feMerge><feMergeNode in="coloredBlur"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><g filter="url(%23glow)"><line x1="12" y1="0" x2="12" y2="26" stroke="%23ffffff" stroke-width="2" stroke-linecap="round"/><line x1="12" y1="0" x2="12" y2="26" stroke="%23222" stroke-width="1.5" stroke-linecap="round"/><path d="M8 26 L12 30 L16 26 L12 28 Z" fill="%23222" stroke="%23ffffff" stroke-width="0.5"/><circle cx="12" cy="2" r="1.5" fill="%23ffffff" opacity="0.8"/></g></svg>') 12 0, crosshair;
  opacity: 0;
  transform: translateY(80px) scale(0.6);
  animation: balloonRise 0.8s cubic-bezier(0.34, 1.2, 0.64, 1) var(--rise-delay, 0s) forwards;
  transition: transform 0.25s ease, opacity 0.3s ease, box-shadow 0.2s ease;
  z-index: 10;
  filter: saturate(1.15) brightness(1.05);
  box-shadow: 
    /* Large bright highlight spot at top */
    inset 0 -30px 60px -20px rgba(255,255,255,0.7),
    /* Secondary highlight */
    inset 8px -15px 40px -15px rgba(255,255,255,0.4),
    /* Dark shadow at bottom */
    inset 0 25px 50px -10px rgba(0,0,0,0.3),
    /* External shadow */
    0 8px 20px rgba(0,0,0,0.2),
    0 3px 8px rgba(0,0,0,0.15);
}
.cb-balloon::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(ellipse 50% 40% at 50% 20%, rgba(255,255,255,1) 0%, rgba(255,255,255,0.9) 15%, rgba(255,255,255,0.6) 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: overlay;
}
.cb-balloon::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 10px;
  border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
  background: var(--balloon-color, #ff6b9d);
  box-shadow: 
    inset 0 2px 4px rgba(0,0,0,0.4),
    0 2px 4px rgba(0,0,0,0.2);
  z-index: 1;
  border-top: 1px solid rgba(0,0,0,0.2);
}
.cb-balloon-string {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5px;
  height: 40px;
  background: linear-gradient(180deg, 
    rgba(255,255,255,0.8) 0%,
    rgba(255,255,255,0.6) 20%,
    rgba(200,200,200,0.5) 50%,
    rgba(150,150,150,0.4) 100%);
  border-radius: 1px;
  z-index: 0;
  pointer-events: none;
  box-shadow: 0 0 1px rgba(0,0,0,0.1);
  transform-origin: top center;
  animation: stringSway 3s ease-in-out calc(0.85s + var(--rise-delay, 0s)) infinite;
}
@keyframes stringSway {
  0%, 100% { transform: translateX(-50%) rotate(-1.5deg); }
  50% { transform: translateX(-50%) rotate(1.5deg); }
}
.cb-balloon-string::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 3px;
  background: rgba(255,255,255,0.6);
  border-radius: 50% 50% 0 0;
}
.cb-balloon-smiley {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}
.cb-balloon-smiley-eye {
  position: absolute;
  width: 6px;
  height: 8px;
  background: #555;
  border-radius: 50%;
  top: 26px;
}
.cb-balloon-smiley-eye.left {
  left: 20px;
}
.cb-balloon-smiley-eye.right {
  right: 20px;
}
.cb-balloon-smiley-mouth {
  position: absolute;
  width: 32px;
  height: 16px;
  border: 2px solid #555;
  border-top: none;
  border-radius: 0 0 32px 32px;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
}
/* Pattern designs */
.cb-balloon-pattern {
  position: absolute;
  top: 8px;
  left: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
  border-radius: 50%;
  overflow: hidden;
}
.cb-balloon-pattern.polka-dots {
  background-image: 
    radial-gradient(circle, rgba(255,255,255,0.75) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(255,255,255,0.75) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  background-position: 0 0, 6px 6px;
}
.cb-balloon-pattern.hearts {
  background-image: 
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.85) 2px, transparent 2px),
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.85) 2px, transparent 2px),
    radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.85) 2.5px, transparent 2.5px);
  background-size: 16px 16px;
  background-position: 0 0, 8px 0, 4px 8px;
}
.cb-balloon-pattern.stars {
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.85) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.85) 1px, transparent 1px);
  background-size: 14px 14px;
  background-position: 0 0, 7px 7px;
}
.cb-balloon-pattern.stripes {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    rgba(255,255,255,0.35) 8px,
    rgba(255,255,255,0.35) 9px
  );
}
.cb-balloon:hover {
  transform: translateY(var(--balloon-y, 0)) scale(1.08);
  box-shadow: 
    inset 0 -30px 60px -20px rgba(255,255,255,0.8),
    inset 8px -15px 40px -15px rgba(255,255,255,0.5),
    inset 0 25px 50px -10px rgba(0,0,0,0.35),
    0 12px 25px rgba(0,0,0,0.25),
    0 5px 12px rgba(0,0,0,0.2),
    0 2px 6px rgba(255, 77, 109, 0.3);
  filter: saturate(1.2) brightness(1.08);
}
.cb-balloon.popped {
  animation: balloonBurst 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: none;
  z-index: 20;
}
.cb-balloon.popped::before,
.cb-balloon.popped::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.8;
  animation: burstParticle1 0.5s ease-out forwards;
}
.cb-balloon.popped::after {
  animation: burstParticle2 0.5s ease-out forwards;
  background: rgba(255, 255, 255, 0.9);
}
.cb-balloon:not(.popped) {
  animation: balloonRise 0.8s cubic-bezier(0.34, 1.2, 0.64, 1) var(--rise-delay, 0s) forwards,
             cb-float 2.5s ease-in-out calc(0.85s + var(--rise-delay, 0s)) infinite;
}
.cb-balloon.popped .cb-balloon-string {
  opacity: 0;
  transition: opacity 0.2s ease-out;
}
@keyframes balloonRise {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes cb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.02); }
}
@keyframes balloonBurst {
  0% {
    transform: translateY(var(--balloon-y, 0)) scale(1) rotate(0deg);
    opacity: 1;
    filter: brightness(1);
  }
  15% {
    transform: translateY(var(--balloon-y, 0)) scale(1.15) rotate(5deg);
    opacity: 1;
    filter: brightness(1.3);
  }
  30% {
    transform: translateY(var(--balloon-y, 0)) scale(1.5) rotate(-8deg);
    opacity: 0.95;
    filter: brightness(1.5);
  }
  50% {
    transform: translateY(var(--balloon-y, 0)) scale(2.2) rotate(12deg);
    opacity: 0.7;
    filter: brightness(1.8);
  }
  70% {
    transform: translateY(var(--balloon-y, 0)) scale(3.5) rotate(-15deg);
    opacity: 0.4;
    filter: brightness(2) blur(2px);
  }
  100% {
    transform: translateY(var(--balloon-y, 0)) scale(5) rotate(20deg);
    opacity: 0;
    filter: brightness(2.5) blur(4px);
  }
}
@keyframes burstParticle1 {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) translate(20px, -25px) scale(0.3);
    opacity: 0;
  }
}
@keyframes burstParticle2 {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) translate(-18px, -30px) scale(0.3);
    opacity: 0;
  }
}
.burst-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 30;
  animation: particleFly 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  box-shadow: 0 0 8px currentColor, 0 0 12px currentColor;
  filter: brightness(1.2);
}
.burst-particle:nth-child(odd) {
  width: 6px;
  height: 6px;
  animation-duration: 0.6s;
}
.burst-particle:nth-child(even) {
  width: 10px;
  height: 10px;
  animation-duration: 0.8s;
}
@keyframes particleFly {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 1;
    filter: brightness(1.2);
  }
  50% {
    transform: translate(calc(var(--vx, 0) * 0.6), calc(var(--vy, 0) * 0.6)) scale(1.3) rotate(180deg);
    opacity: 0.9;
    filter: brightness(1.5);
  }
  100% {
    transform: translate(var(--vx, 0), var(--vy, 0)) scale(0.1) rotate(360deg);
    opacity: 0;
    filter: brightness(2) blur(2px);
  }
}
@keyframes flashBurst {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
  }
}

/* Gift intro — scale in */
.cb-intro-gift { text-align: center; }
.cb-gift-box {
  width: 180px;
  height: 150px;
  margin: 0 auto 28px;
  position: relative;
  opacity: 0;
  transform: scale(0.7);
  animation: introGiftIn 0.6s cubic-bezier(0.34, 1.4, 0.64, 1) 0.25s forwards;
}

@keyframes introGiftIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.cb-gift-body {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 110px;
  background: linear-gradient(180deg, #ff7ba3 0%, #ff4d6d 50%, #e63950 100%);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 24px rgba(255, 77, 109, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
.cb-gift-lid {
  position: absolute;
  bottom: 104px;
  left: 50%;
  transform: translateX(-50%);
  width: 152px;
  height: 28px;
  background: linear-gradient(180deg, #ffb3c6 0%, #ff8fa3 50%, #ff6b9d 100%);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform 0.55s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.4s ease;
}
.cb-gift-open .cb-gift-lid {
  transform: translateX(-50%) translateY(-90px) rotate(-12deg);
  opacity: 0.9;
}

.cb-intro-gift .cb-button {
  opacity: 0;
  animation: introHintIn 0.5s ease-out 0.7s forwards;
}

/* Sing Happy Birthday intro */
.cb-intro-sing {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cb-intro-sing .cb-intro-hint {
  margin-bottom: 12px;
}
.cb-intro-sing-sub {
  font-size: 0.9rem;
  color: var(--cb-text-muted, #666);
  margin: 0 auto 16px;
  max-width: 280px;
  line-height: 1.4;
  opacity: 0;
  animation: introHintIn 0.5s ease-out 0.5s forwards;
}

.cb-intro-sing-gif {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto 20px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  animation: introHintIn 0.5s ease-out 0.6s forwards;
}

.cb-sing-viz-wrap {
  margin: 0 auto 20px;
  width: 100%;
  max-width: 280px;
}
.cb-sing-viz {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 72px;
  padding: 0 4px;
}
.cb-sing-viz-bar {
  flex: 1;
  min-width: 2px;
  max-width: 5px;
  min-height: 2px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--primary-pink) 0%, #f9a8d4 100%);
  transition: height 0.06s ease-out;
}
.cb-intro-sing .cb-button {
  opacity: 0;
  animation: introHintIn 0.5s ease-out 0.7s forwards;
}

.animation-preview-sing {
  font-size: 2.5rem;
  line-height: 1;
  padding: 12px 0;
}

/* ---------- Main content (after intro) ---------- */
.cb-main-content { padding-bottom: 40px; }
.cb-main-content.hidden { display: none !important; }
.cb-intro-screen.hidden { display: none !important; }

.hidden { display: none !important; }

/* ---------- Birthday hero (mature, refined) ---------- */
.cb-birthday-hero {
  text-align: center;
  padding: 48px 24px 40px;
  max-width: 520px;
  margin: 0 auto;
}
/* Slide to open - opens birthday cards modal */
.cb-flier-macro-wrap.cb-flier-with-slide {
  position: relative;
}
.cb-slide-to-open-wrap {
  margin-top: 20px;
  padding: 0 8px;
  touch-action: none;
  user-select: none;
}
.cb-slide-to-open-wrap.cb-slide-on-card {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  margin-top: 0;
  padding: 0;
  width: calc(320px / 3);
  max-width: 107px;
}
.cb-slide-to-open-wrap.cb-slide-to-open-standalone {
  margin-top: 24px;
  max-width: 107px;
  margin-left: auto;
  margin-right: auto;
}
.cb-slide-to-open {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.cb-slide-on-card .cb-slide-to-open {
  max-width: none;
}
.cb-slide-to-open:focus-visible .cb-slide-to-open-track {
  box-shadow: 0 0 0 2px var(--primary-pink);
}
.cb-slide-to-open-track {
  position: relative;
  height: 52px;
  background: linear-gradient(135deg, #fff8f9 0%, #ffe8ec 100%);
  border: 2px solid rgba(255, 77, 109, 0.3);
  border-radius: 26px;
  overflow: visible;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.8), 0 2px 8px rgba(255, 77, 109, 0.15);
}
/* Slide track: darker shade of card theme */
.cb-slide-theme-pink .cb-slide-to-open-track {
  background: linear-gradient(135deg, #ffdce5 0%, #f5c4d0 100%);
  border-color: rgba(220, 120, 140, 0.4);
}
.cb-slide-theme-pink .cb-slide-to-open-track::before { border-color: transparent #f5c4d0 #e0b0bc transparent; }
.cb-slide-theme-pink .cb-slide-to-open-track::after { border-color: #e0b0bc #f5c4d0 transparent transparent; }
.cb-slide-theme-blue .cb-slide-to-open-track {
  background: linear-gradient(135deg, #c8e4f8 0%, #b0d4f0 100%);
  border-color: rgba(100, 160, 200, 0.4);
}
.cb-slide-theme-blue .cb-slide-to-open-track::before { border-color: transparent #b0d4f0 #98c4e8 transparent; }
.cb-slide-theme-blue .cb-slide-to-open-track::after { border-color: #98c4e8 #b0d4f0 transparent transparent; }
.cb-slide-theme-green .cb-slide-to-open-track {
  background: linear-gradient(135deg, #c8f0d8 0%, #b0e8c8 100%);
  border-color: rgba(100, 180, 140, 0.4);
}
.cb-slide-theme-green .cb-slide-to-open-track::before { border-color: transparent #b0e8c8 #98d8b8 transparent; }
.cb-slide-theme-green .cb-slide-to-open-track::after { border-color: #98d8b8 #b0e8c8 transparent transparent; }
.cb-slide-theme-gold .cb-slide-to-open-track {
  background: linear-gradient(135deg, #f5f0d0 0%, #ebe5c0 100%);
  border-color: rgba(200, 190, 120, 0.4);
}
.cb-slide-theme-gold .cb-slide-to-open-track::before { border-color: transparent #ebe5c0 #ddd8b0 transparent; }
.cb-slide-theme-gold .cb-slide-to-open-track::after { border-color: #ddd8b0 #ebe5c0 transparent transparent; }
.cb-slide-theme-purple .cb-slide-to-open-track {
  background: linear-gradient(135deg, #e0d8f5 0%, #d0c8ed 100%);
  border-color: rgba(160, 140, 200, 0.4);
}
.cb-slide-theme-purple .cb-slide-to-open-track::before { border-color: transparent #d0c8ed #c0b8e0 transparent; }
.cb-slide-theme-purple .cb-slide-to-open-track::after { border-color: #c0b8e0 #d0c8ed transparent transparent; }
.cb-slide-theme-milk .cb-slide-to-open-track {
  background: linear-gradient(135deg, #f0ebe0 0%, #e8e4d8 100%);
  border-color: rgba(180, 175, 160, 0.4);
}
.cb-slide-theme-milk .cb-slide-to-open-track::before { border-color: transparent #e8e4d8 #ddd8cc transparent; }
.cb-slide-theme-milk .cb-slide-to-open-track::after { border-color: #ddd8cc #e8e4d8 transparent transparent; }
/* Folded corner top-right - paper seal binding (underside of fold) */
.cb-slide-to-open-track::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-width: 0 12px 12px 0;
  border-style: solid;
  border-color: transparent #ffe8ec #e0c8d0 transparent;
  box-shadow: -1px 1px 3px rgba(0,0,0,0.2);
}
/* Folded corner bottom-right */
.cb-slide-to-open-track::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-width: 12px 12px 0 0;
  border-style: solid;
  border-color: #e0c8d0 #ffe8ec transparent transparent;
  box-shadow: -1px -1px 3px rgba(0,0,0,0.2);
}
.cb-slide-on-card .cb-slide-to-open-track {
  height: 40px;
  border-radius: 20px;
}
.cb-slide-on-card .cb-slide-to-open-track::before {
  border-width: 0 9px 9px 0;
}
.cb-slide-on-card .cb-slide-to-open-track::after {
  border-width: 9px 9px 0 0;
}
.cb-slide-to-open-thumb,
.cb-slide-to-open-thumb * {
  pointer-events: none;
}
.cb-slide-to-open-thumb {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 80% 50% at 25% 25%, rgba(255,180,160,0.4), transparent 50%),
    radial-gradient(circle at 35% 35%, #d47070, #a04040 35%, #7a2828 65%, #5c1818);
  box-shadow:
    0 1px 0 rgba(255,220,200,0.15),
    inset 2px 2px 4px rgba(255,255,255,0.25),
    inset -2px -2px 4px rgba(0,0,0,0.2),
    0 2px 6px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.15s ease-out, transform 0.15s;
  z-index: 2;
}
.cb-slide-on-card .cb-slide-to-open-thumb {
  width: 32px;
  height: 32px;
  left: 3px;
  top: 3px;
}
.cb-slide-to-open-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 45%);
  pointer-events: none;
}
.cb-slide-to-open.cb-slide-complete .cb-slide-to-open-thumb {
  transform: scale(1.05);
}
.cb-slide-to-open-icon {
  font-size: 1.25rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
  position: relative;
  z-index: 1;
}
.cb-slide-on-card .cb-slide-to-open-icon {
  font-size: 1rem;
}
.cb-slide-to-open-text {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-pink);
  letter-spacing: 0.02em;
  pointer-events: none;
  z-index: 1;
}
.cb-slide-on-card .cb-slide-to-open-text {
  font-size: 0.65rem;
}
.cb-slide-to-open-text {
  display: inline-block;
  animation: cb-slide-text-slide 1.5s ease-in-out infinite;
}
@keyframes cb-slide-text-slide {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(4px); }
}
.cb-birthday-greeting {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  color: var(--primary-pink);
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}
.cb-birthday-name {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.cb-birthday-tagline {
  font-size: 1.05rem;
  color: var(--cb-text-muted);
  margin: 0 0 8px;
  line-height: 1.4;
}
.cb-birthday-date {
  font-size: 0.9rem;
  color: var(--cb-text-muted);
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.valentine-card {
  background: var(--white);
  padding: 48px 32px;
  border-radius: 28px;
  box-shadow: 0 15px 40px rgba(255, 77, 109, 0.12);
  text-align: center;
  margin-bottom: 28px;
}
.emoji-header { margin-bottom: 16px; }
.main-icon { font-size: 4rem; display: inline-block; animation: cb-bounce 2s ease-in-out infinite; }
@keyframes cb-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.cb-birthday-title {
  font-size: 1.8rem;
  margin: 0 0 8px;
  line-height: 1.3;
}
.cb-birthday-title .name { color: var(--primary-pink); font-weight: 700; }
.cb-birthday-subtitle { margin: 0 0 8px; color: var(--cb-text-muted); font-size: 1rem; }
.cb-birthday-date-old { margin: 0; font-size: 0.9rem; color: var(--cb-text-muted); }

.cb-collage-wrap { margin-top: 20px; }
.cb-collage-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary-pink), var(--secondary-pink));
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(255, 77, 109, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cb-collage-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 77, 109, 0.4); }
.cb-collage-thumb {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.5);
}

/* ---------- Birthday card / flier (photo fitted into full design) ---------- */
.cb-birthday-flier-wrap {
  margin-top: 24px;
  text-align: center;
  cursor: pointer;
}
.cb-flier-macro-wrap {
  display: inline-block;
  text-align: center;
  cursor: pointer;
}
.cb-flier-macro-wrap .cb-flier-view-btn {
  margin-top: 12px;
}
.cb-birthday-flier {
  display: inline-block;
  text-align: center;
  position: relative;
}
.cb-flier-photo-wrap {
  overflow: hidden;
  margin: 0 auto;
}
.cb-flier-photo-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: top;
}
.cb-flier-view-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary-pink), var(--secondary-pink));
  color: white;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 77, 109, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cb-flier-view-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 77, 109, 0.4);
}

/* Flier design 1: Polaroid card — "HAPPY BIRTHDAY" + script name + photo in Polaroid frame */
.cb-flier-1 {
  width: 320px;
  padding: 28px 24px 32px;
  background: #fefefe;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.cb-flier-1 .cb-flier-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #444;
  margin: 0 0 4px;
}
.cb-flier-1 .cb-flier-name {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 20px;
  line-height: 1.2;
}
.cb-flier-1 .cb-flier-photo-wrap {
  width: 260px;
  padding: 12px 12px 32px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transform: rotate(-1.2deg);
  margin: 0 auto;
}
.cb-flier-1 .cb-flier-photo-wrap img {
  width: 236px;
  height: 236px;
  border-radius: 2px;
}

/* Flier design 2: Blue flier — blue strips, script title, photo, name banner */
.cb-flier-2 {
  width: 320px;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.cb-flier-2-top,
.cb-flier-2-bottom {
  height: 24px;
  background: linear-gradient(135deg, #2c5282 0%, #2b6cb0 50%, #3182ce 100%);
  background-size: 200% 200%;
}
.cb-flier-2-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 16px;
}
.cb-flier-2-body {
  padding: 20px 20px 16px;
}
.cb-flier-2 .cb-flier-2-title {
  font-family: 'Dancing Script', cursive;
  font-size: 1.75rem;
  font-weight: 700;
  color: #2c5282;
  margin: 0 0 16px;
}
.cb-flier-2 .cb-flier-photo-wrap {
  width: 260px;
  padding: 10px;
  background: #fff;
  border: 3px solid #e2e8f0;
  border-radius: 4px;
  margin: 0 auto 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transform: rotate(0.5deg);
}
.cb-flier-2 .cb-flier-photo-wrap img {
  width: 236px;
  height: 220px;
  border-radius: 2px;
}
.cb-flier-2-name-banner {
  display: inline-block;
  padding: 8px 20px;
  background: #fff;
  border-radius: 6px;
  font-family: 'Dancing Script', cursive;
  font-size: 1.35rem;
  font-weight: 600;
  color: #2c5282;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  margin-top: 4px;
}

/* Flier design 3: Soft script — light bg, script font, rounded photo */
.cb-flier-3 {
  width: 300px;
  padding: 24px;
  background: linear-gradient(180deg, #fff9f9 0%, #fff5f5 100%);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}
.cb-flier-3 .cb-flier-label {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  font-weight: 700;
  color: #c53030;
  margin: 0 0 4px;
}
.cb-flier-3 .cb-flier-name {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #742a2a;
  margin: 0 0 18px;
}
.cb-flier-3 .cb-flier-photo-wrap {
  width: 240px;
  height: 240px;
  padding: 12px;
  background: #fff;
  border-radius: 50%;
  margin: 0 auto;
  box-shadow: inset 0 0 0 4px #feb2b2;
}
.cb-flier-3 .cb-flier-photo-wrap img {
  width: 216px;
  height: 216px;
  border-radius: 50%;
}

/* Flier design 4: Classic frame — thick border */
.cb-flier-4 {
  width: 300px;
  padding: 20px;
  background: #fafafa;
  border: 10px solid #2d3748;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}
.cb-flier-4 .cb-flier-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: #2d3748;
  margin: 0 0 6px;
}
.cb-flier-4 .cb-flier-name {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  color: #2d3748;
  margin: 0 0 16px;
}
.cb-flier-4 .cb-flier-photo-wrap {
  width: 232px;
  height: 232px;
  padding: 8px;
  background: #fff;
  border: 4px solid #e2e8f0;
  border-radius: 6px;
  margin: 0 auto;
}
.cb-flier-4 .cb-flier-photo-wrap img {
  width: 216px;
  height: 216px;
  border-radius: 2px;
}

/* Flier design 5: Pink Celebration — hot pink bg, balloons, torn-paper photo, name banner */
.cb-flier-5 {
  width: 320px;
  padding: 28px 20px 24px;
  background: #e91e8c;
  background: linear-gradient(165deg, #db0f7a 0%, #e91e8c 40%, #f06292 100%);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(233, 30, 140, 0.4);
  position: relative;
  overflow: hidden;
}
.cb-flier-5 .cb-flier-5-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.cb-flier-5 .cb-flier-5-balloon {
  position: absolute;
  width: 28px;
  height: 34px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 30% 30%, #fff, rgba(255,255,255,0.85));
  box-shadow: inset -4px -6px 0 rgba(0,0,0,0.08);
  opacity: 0.95;
}
.cb-flier-5 .cb-flier-5-balloon::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 14px;
  background: rgba(255,255,255,0.5);
  border-radius: 1px;
}
.cb-flier-5 .cb-flier-5-balloon.pink { background: radial-gradient(circle at 30% 30%, #ffc0cb, #ffb6c1); }
.cb-flier-5 .cb-flier-5-balloon:nth-child(1) { top: 12%; left: 8%; transform: rotate(-15deg); }
.cb-flier-5 .cb-flier-5-balloon:nth-child(2) { top: 8%; left: 18%; transform: rotate(5deg); width: 22px; height: 28px; }
.cb-flier-5 .cb-flier-5-balloon:nth-child(3) { top: 18%; right: 12%; transform: rotate(12deg); }
.cb-flier-5 .cb-flier-5-balloon:nth-child(4) { bottom: 28%; left: 5%; transform: rotate(-8deg); width: 24px; height: 30px; }
.cb-flier-5 .cb-flier-5-balloon:nth-child(5) { bottom: 22%; right: 8%; transform: rotate(10deg); }
.cb-flier-5 .cb-flier-5-balloon:nth-child(6) { bottom: 8%; left: 15%; transform: rotate(-5deg); }
.cb-flier-5 .cb-flier-5-star {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.9;
}
.cb-flier-5 .cb-flier-5-star:nth-child(7) { top: 22%; left: 22%; width: 8px; height: 8px; }
.cb-flier-5 .cb-flier-5-star:nth-child(8) { top: 18%; right: 28%; width: 6px; height: 6px; }
.cb-flier-5 .cb-flier-5-star:nth-child(9) { bottom: 32%; right: 22%; width: 8px; height: 8px; }
.cb-flier-5 .cb-flier-5-star:nth-child(10) { bottom: 18%; left: 28%; width: 6px; height: 6px; }
.cb-flier-5 .cb-flier-5-shooting {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.8;
  box-shadow: -20px 8px 0 -4px rgba(255,255,255,0.5), -40px 16px 0 -8px rgba(255,255,255,0.3);
}
.cb-flier-5 .cb-flier-5-shooting:nth-child(11) { top: 6%; left: 6%; transform: rotate(45deg); }
.cb-flier-5 .cb-flier-5-shooting:nth-child(12) { bottom: 6%; right: 6%; transform: rotate(-135deg); box-shadow: 20px -8px 0 -4px rgba(255,255,255,0.5), 40px -16px 0 -8px rgba(255,255,255,0.3); }

.cb-flier-5 .cb-flier-label,
.cb-flier-5 .cb-flier-5-script,
.cb-flier-5 .cb-flier-name,
.cb-flier-5 .cb-flier-photo-wrap,
.cb-flier-5 .cb-flier-5-name-banner,
.cb-flier-5 .cb-flier-view-btn { position: relative; z-index: 1; }
.cb-flier-5 .cb-flier-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #fff;
  margin: 0 0 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.cb-flier-5 .cb-flier-5-script {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.cb-flier-5 .cb-flier-photo-wrap {
  width: 260px;
  height: 260px;
  margin: 0 auto 14px;
  padding: 12px 12px 16px;
  background: rgba(255, 182, 193, 0.5);
  background: linear-gradient(180deg, #f8b4c4 0%, #f5a0b4 100%);
  border-radius: 0 0 8px 8px;
  clip-path: polygon(0 12%, 6% 0, 12% 10%, 18% 0, 24% 8%, 30% 0, 36% 11%, 42% 0, 48% 9%, 54% 0, 60% 12%, 66% 0, 72% 10%, 78% 0, 84% 8%, 90% 0, 96% 10%, 100% 6%, 100% 100%, 0 100%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.4);
}
.cb-flier-5 .cb-flier-photo-wrap img {
  width: 236px;
  height: 236px;
  border-radius: 0 0 6px 6px;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}
.cb-flier-5 .cb-flier-5-name-banner {
  display: inline-block;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.95);
  background: linear-gradient(180deg, #ffd6e0 0%, #ffc0cb 100%);
  color: #c2185b;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  clip-path: polygon(0 50%, 14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  margin-top: 4px;
}
.cb-flier-5 .cb-flier-view-btn {
  margin-top: 16px;
  background: rgba(255,255,255,0.95);
  color: #c2185b;
  border: 2px solid rgba(255,255,255,0.8);
}
.cb-flier-5 .cb-flier-view-btn:hover {
  background: #fff;
  color: #ad1457;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* Design 1: Yellow Celebration (HTML/CSS Recreation) */
.flier-polaroid-design-1 {
  width: 320px;
  height: 320px;
  padding: 0;
  background: #ffeb3b; /* Brighter yellow */
  border-radius: 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
  transform: none; /* Reset rotation from generic styles */
  display: block;
}

/* 1. Background Wave */
.flier-1-wave {
  position: absolute;
  top: 35%;
  left: -10%;
  width: 120%;
  height: 120px;
  background: #fff;
  transform: rotate(-10deg);
  border-radius: 50%;
  opacity: 0.9;
  z-index: 1;
}
.flier-1-wave::after {
  content: '';
  position: absolute;
  top: 40px;
  right: -20px;
  width: 100%;
  height: 100px;
  background: #fff;
  border-radius: 50%;
}

/* 2. Confetti */
.flier-1-confetti {
  position: absolute;
  width: 6px;
  height: 6px;
  z-index: 0;
}
.flier-1-c1 { top: 10px; left: 20px; background: #ff7e67; transform: rotate(15deg); }
.flier-1-c2 { top: 30px; left: 50px; background: #00b4d8; width: 8px; height: 8px; }
.flier-1-c3 { top: 15px; left: 80px; background: #ff7e67; border-radius: 50%; }
.flier-1-c4 { top: 5px; right: 40px; background: #00b4d8; transform: rotate(45deg); }
.flier-1-c5 { top: 25px; right: 80px; background: #ff7e67; width: 5px; height: 8px; }
.flier-1-flag {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 100px;
  height: 40px;
  background: repeating-linear-gradient(90deg, transparent, transparent 20px, #80d4ff 20px, #80d4ff 40px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
  transform: rotate(15deg);
  opacity: 0.6;
}

/* 3. Typography */
.flier-1-text-top {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}
.flier-1-happy {
  font-family: 'Georgia', serif;
  font-size: 1.2rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  display: block;
  margin-bottom: -10px;
}
.flier-1-birthday {
  font-family: 'Dancing Script', cursive;
  font-size: 3.2rem;
  color: #0077b6;
  font-weight: 700;
  display: block;
  transform: rotate(-5deg);
}

/* 4. Photo Frame */
.flier-polaroid-design-1 .flier-polaroid-photo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-3deg);
  width: 160px;
  height: 160px;
  background: #fff;
  padding: 8px 8px 24px 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 5;
  border-radius: 2px;
  margin: 0; /* Reset */
}
.flier-polaroid-design-1 .flier-polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eee;
}

/* 5. Balloons */
.flier-1-balloon {
  position: absolute;
  background: #0096c7;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  z-index: 6;
}
.flier-1-balloon::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 20%;
  width: 20%;
  height: 20%;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
}
.flier-1-balloon::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  width: 1px;
  height: 20px;
  background: #fff;
}
.flier-1-b1 {
  width: 40px;
  height: 50px;
  bottom: 40px;
  left: 20px;
  transform: rotate(10deg);
}
.flier-1-b2 {
  width: 30px;
  height: 38px;
  top: 40px;
  right: 20px;
  transform: rotate(-10deg);
}
.flier-1-b3 {
  width: 24px;
  height: 30px;
  top: 110px;
  left: 60px;
  z-index: 4; /* Behind frame */
  opacity: 0.9;
}

/* 6. Gift Box */
.flier-1-gift {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 70px;
  height: 60px;
  background: #90e0ef;
  z-index: 10;
}
.flier-1-gift::before { /* Vertical ribbon */
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 10px;
  background: #0077b6;
}
.flier-1-gift::after { /* Horizontal ribbon */
  content: '';
  position: absolute;
  top: 25px;
  left: 0;
  right: 0;
  height: 10px;
  background: #0077b6;
}
.flier-1-gift-lid {
  position: absolute;
  bottom: 60px;
  right: -5px;
  width: 80px;
  height: 15px;
  background: #caf0f8;
  z-index: 11;
}
.flier-1-bow {
  position: absolute;
  bottom: 75px;
  right: 25px;
  width: 20px;
  height: 10px;
  background: #0077b6;
  border-radius: 50%;
  z-index: 12;
}
.flier-1-bow::before, .flier-1-bow::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 15px;
  height: 15px;
  border: 3px solid #0077b6;
  border-radius: 50%;
}
.flier-1-bow::before { right: 100%; border-right: none; transform: rotate(-20deg); }
.flier-1-bow::after { left: 100%; border-left: none; transform: rotate(20deg); }

/* 7. Bottom Text */
.flier-polaroid-design-1 .flier-polaroid-name {
  position: absolute;
  bottom: 38px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.65rem;
  color: #0077b6;
  z-index: 20;
  padding: 0 20px;
  line-height: 1.4;
  margin: 0;
}
.flier-1-brush {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 14px;
  background: #fff;
  border-radius: 4px;
  opacity: 0.6;
  z-index: 15;
}

/* Hide special elements by default */
.flier-1-wave, .flier-1-confetti, .flier-1-flag, .flier-1-text-top, .flier-1-balloon, .flier-1-gift, .flier-1-brush {
  display: none;
}

/* Show them only when Design 1 is active */
.flier-polaroid-design-1 .flier-1-wave,
.flier-polaroid-design-1 .flier-1-confetti,
.flier-polaroid-design-1 .flier-1-flag,
.flier-polaroid-design-1 .flier-1-text-top,
.flier-polaroid-design-1 .flier-1-balloon,
.flier-polaroid-design-1 .flier-1-gift,
.flier-polaroid-design-1 .flier-1-brush {
  display: block;
}

/* Design 2: Red/salmon Happy Birthday (reference-accurate) */
.flier-polaroid-design-2 {
  width: 320px;
  height: 320px;
  padding: 0;
  background: #dc6b6b;
  border-radius: 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
  transform: none;
  display: block;
}

/* Three concentric arcs (tone-on-tone darker pink) + center dot */
.flier-2-arcs-wrap {
  position: absolute;
  z-index: 0;
}
/* Top-left: 3 stacked arcs, horizontally oriented */
.flier-2-arcs-tl {
  top: 6px;
  left: 2px;
  width: 110px;
  height: 56px;
  border: 3px solid rgba(170, 60, 60, 0.9);
  border-bottom: none;
  border-radius: 110px 110px 0 0;
  box-sizing: border-box;
}
.flier-2-arcs-tl::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 8px;
  width: 90px;
  height: 46px;
  border: 2px solid rgba(170, 60, 60, 0.8);
  border-bottom: none;
  border-radius: 90px 90px 0 0;
}
.flier-2-arcs-tl::after {
  content: '';
  position: absolute;
  left: 22px;
  top: 14px;
  width: 66px;
  height: 34px;
  border: 2px solid rgba(170, 60, 60, 0.75);
  border-bottom: none;
  border-radius: 66px 66px 0 0;
}
.flier-2-arc-dot {
  position: absolute;
  left: 50%;
  top: 28px;
  margin-left: -4px;
  width: 8px;
  height: 8px;
  background: rgba(170, 60, 60, 0.95);
  border-radius: 50%;
  z-index: 1;
}
/* Bottom-right: same 3 arcs, rotated */
.flier-2-arcs-br {
  bottom: 6px;
  right: 2px;
  left: auto;
  width: 110px;
  height: 56px;
  border: 3px solid rgba(170, 60, 60, 0.9);
  border-bottom: none;
  border-radius: 110px 110px 0 0;
  transform: rotate(180deg);
  box-sizing: border-box;
}
.flier-2-arcs-br::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 8px;
  width: 90px;
  height: 46px;
  border: 2px solid rgba(170, 60, 60, 0.8);
  border-bottom: none;
  border-radius: 90px 90px 0 0;
}
.flier-2-arcs-br::after {
  content: '';
  position: absolute;
  left: 22px;
  top: 14px;
  width: 66px;
  height: 34px;
  border: 2px solid rgba(170, 60, 60, 0.75);
  border-bottom: none;
  border-radius: 66px 66px 0 0;
}

/* Typography: Happy script slanted up-right, BIRTHDAY bold blocky wide */
.flier-2-text-top {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
  transform: rotate(-2deg);
  transform-origin: center center;
}
.flier-2-happy {
  font-family: 'Dancing Script', cursive;
  font-size: 1.65rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
  display: block;
  margin-bottom: -2px;
  letter-spacing: 0.02em;
}
.flier-2-birthday {
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  display: block;
}

/* Four-pointed white stars */
/* Four-pointed white star (small) */
.flier-2-star {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  z-index: 12;
}
.flier-2-star-frame { top: 78px; right: 72px; }
.flier-2-star-streamers { top: 20px; right: 24px; }

/* Fireworks: thin radiating lines (yellow, light blue, pink) */
.flier-2-fireworks {
  position: absolute;
  width: 36px;
  height: 36px;
  z-index: 2;
}
.flier-2-fireworks::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 2px;
  background: #ffeb3b;
  box-shadow:
    0 -14px 0 0 #ffeb3b,
    10px -10px 0 0 #81d4fa,
    14px 0 0 0 #ffeb3b,
    10px 10px 0 0 #f48fb1,
    0 14px 0 0 #ffeb3b,
    -10px 10px 0 0 #81d4fa,
    -14px 0 0 0 #f48fb1,
    -10px -10px 0 0 #ffeb3b;
  transform: translate(-50%, -50%);
}
.flier-2-fireworks::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 1px;
  background: transparent;
  box-shadow:
    0 -20px 0 -1px #ffeb3b,
    14px -14px 0 -1px #81d4fa,
    20px 0 0 -1px #f48fb1,
    14px 14px 0 -1px #ffeb3b,
    0 20px 0 -1px #81d4fa,
    -14px 14px 0 -1px #f48fb1,
    -20px 0 0 -1px #ffeb3b,
    -14px -14px 0 -1px #81d4fa;
  transform: translate(-50%, -50%);
}
.flier-2-fw-left {
  top: 100px;
  left: 28px;
}
.flier-2-fw-right {
  top: 88px;
  right: 22px;
}

/* Streamers: curled yellow ribbons top-right */
.flier-2-streamers {
  position: absolute;
  top: -2px;
  right: 8px;
  width: 55px;
  height: 50px;
  z-index: 3;
}
.flier-2-streamers::before {
  content: '';
  position: absolute;
  width: 28px;
  height: 6px;
  background: linear-gradient(90deg, #ffeb3b 0%, #fff59d 50%, #ffeb3b 100%);
  border-radius: 4px;
  transform: rotate(-35deg);
  top: 8px;
  right: 5px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.flier-2-streamers::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 5px;
  background: linear-gradient(90deg, #ffeb3b 0%, #fff59d 100%);
  border-radius: 3px;
  transform: rotate(-55deg);
  top: 18px;
  right: 18px;
}
.flier-2-confetti-dots {
  position: absolute;
  top: 12px;
  right: 35px;
  width: 20px;
  height: 20px;
  z-index: 3;
}
.flier-2-confetti-dots::before {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  background: #5d4037;
  border-radius: 50%;
  box-shadow: 4px 2px 0 0 #5d4037, -2px 6px 0 0 #4e342e, 6px 8px 0 0 #5d4037;
}

/* Cupcake: striped light brown/gold wrapper, cream frosting, sprinkles, candle */
.flier-2-cupcake {
  position: absolute;
  bottom: -4px;
  left: -6px;
  width: 50px;
  height: 56px;
  z-index: 10;
}
.flier-2-cupcake::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 26px;
  background: repeating-linear-gradient(
    90deg,
    #d4a574 0px,
    #d4a574 4px,
    #c4956a 4px,
    #c4956a 8px
  );
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
  border-radius: 0 0 3px 3px;
}
.flier-2-cupcake::after {
  content: '';
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 20px;
  background: linear-gradient(180deg, #fffde7 0%, #fff9c4 50%, #fff59d 100%);
  border-radius: 50% 50% 42% 42%;
  box-shadow:
    2px 0 0 0 #81d4fa,
    -2px 1px 0 0 #f48fb1,
    4px 3px 0 0 #ffeb3b,
    -3px 4px 0 0 #81d4fa,
    0 2px 0 0 #f48fb1;
}
.flier-2-candle {
  position: absolute;
  bottom: 24px;
  left: 50%;
  margin-left: -2px;
  width: 4px;
  height: 16px;
  background: #b71c1c;
  border-radius: 2px;
  z-index: 11;
}
.flier-2-candle::after {
  content: '';
  position: absolute;
  bottom: 16px;
  left: -4px;
  width: 10px;
  height: 10px;
  background: radial-gradient(ellipse 5px 6px at center, #ffeb3b 0%, #ff9800 50%, #e65100 100%);
  border-radius: 50%;
}

/* Balloons: coral/salmon design – top-left and bottom-right clusters */
.flier-2-balloons {
  position: absolute;
  z-index: 4;
}
.flier-2-balloons-tl {
  top: 8px;
  left: 8px;
  width: 38px;
  height: 44px;
}
.flier-2-balloons-tl::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 18px;
  background: linear-gradient(145deg, #0096c7 0%, #0077b6 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: inset 2px 2px 4px rgba(255,255,255,0.3), 12px 2px 0 -1px #00b4d8, 24px 6px 0 -1px #0096c7;
}
.flier-2-balloons-tl::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 6px;
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.4);
  transform: rotate(-12deg);
  box-shadow: 10px 0 0 0 rgba(255,255,255,0.25), 20px 0 0 0 rgba(255,255,255,0.25);
}
.flier-2-balloons-br {
  bottom: 50px;
  right: 6px;
  width: 36px;
  height: 42px;
}
.flier-2-balloons-br::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 16px;
  background: linear-gradient(145deg, #00b4d8 0%, #0096c7 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: inset 2px 2px 4px rgba(255,255,255,0.3), -10px 4px 0 -1px #0096c7, -20px 0 0 -1px #00b4d8;
}
.flier-2-balloons-br::after {
  content: '';
  position: absolute;
  bottom: 14px;
  right: 5px;
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.35);
  transform: rotate(10deg);
  box-shadow: -10px 0 0 0 rgba(255,255,255,0.2), -18px 0 0 0 rgba(255,255,255,0.2);
}

/* Gift box: bottom-left, silver/white with ribbon */
.flier-2-gift {
  position: absolute;
  bottom: 6px;
  left: 6px;
  width: 48px;
  height: 42px;
  z-index: 10;
}
.flier-2-gift::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 26px;
  background: linear-gradient(145deg, #e8f4f8 0%, #caf0f8 50%, #90e0ef 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15), inset 1px 1px 0 rgba(255,255,255,0.8);
}
.flier-2-gift::after {
  content: '';
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 8px;
  background: #0077b6;
  border-radius: 2px;
  box-shadow: 0 0 0 4px #90e0ef, 0 1px 3px rgba(0,0,0,0.2);
}

/* Aura: thin white circular/oval lines near photo top-right */
.flier-2-aura {
  position: absolute;
  top: 42%;
  right: 14%;
  width: 75px;
  height: 75px;
  transform: translate(40%, -50%) rotate(-10deg);
  z-index: 4;
  pointer-events: none;
}
.flier-2-aura::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 45% 55% 55% 45% / 50% 45% 55% 50%;
}
.flier-2-aura::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
}

/* Photo: rectangular, thin white border, center-right, counter-clockwise tilt */
.flier-polaroid-design-2 .flier-polaroid-photo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-5deg);
  width: 155px;
  height: 118px;
  background: #fff;
  padding: 4px;
  border: 3px solid #fff;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  z-index: 5;
  border-radius: 2px;
  margin: 0;
}
.flier-polaroid-design-2 .flier-polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eee;
}

/* Name: bottom-center, bold italic white */
.flier-polaroid-design-2 .flier-polaroid-name {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  font-style: italic;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  z-index: 20;
  margin: 0;
}

/* Hide Design 2 elements by default; show when design-2 */
.flier-2-arcs-wrap,
.flier-2-arc-dot,
.flier-2-text-top,
.flier-2-star,
.flier-2-fireworks,
.flier-2-streamers,
.flier-2-confetti-dots,
.flier-2-balloons,
.flier-2-gift,
.flier-2-cupcake,
.flier-2-aura {
  display: none;
}
.flier-polaroid-design-2 .flier-2-arcs-wrap,
.flier-polaroid-design-2 .flier-2-arc-dot,
.flier-polaroid-design-2 .flier-2-text-top,
.flier-polaroid-design-2 .flier-2-star,
.flier-polaroid-design-2 .flier-2-fireworks,
.flier-polaroid-design-2 .flier-2-streamers,
.flier-polaroid-design-2 .flier-2-confetti-dots,
.flier-polaroid-design-2 .flier-2-balloons,
.flier-polaroid-design-2 .flier-2-gift,
.flier-polaroid-design-2 .flier-2-cupcake,
.flier-polaroid-design-2 .flier-2-aura {
  display: block;
}
.flier-polaroid-design-2 .flier-2-arc-dot {
  display: block;
}

/* Design 3: Lavender/purple HAPPY Birthday */
.flier-polaroid-design-3 {
  width: 320px;
  height: 320px;
  padding: 0;
  background: #a28dc7;
  border-radius: 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
  transform: none;
  display: block;
}

/* Darker purple splotches (top-left, top-right, bottom-left) */
.flier-3-splotch {
  position: absolute;
  border-radius: 50% 40% 60% 50% / 60% 50% 50% 40%;
  background: #8d7daf;
  z-index: 0;
}
.flier-3-splotch-tl {
  top: -15px;
  left: -20px;
  width: 100px;
  height: 90px;
}
.flier-3-splotch-tr {
  top: -10px;
  right: -25px;
  width: 95px;
  height: 85px;
  border-radius: 40% 60% 50% 50% / 50% 50% 60% 40%;
}
.flier-3-splotch-bl {
  bottom: -15px;
  left: -20px;
  width: 90px;
  height: 80px;
  border-radius: 50% 50% 40% 60% / 40% 60% 50% 50%;
}

/* Typography: HAPPY serif white, Birthday script white larger */
.flier-3-text-top {
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}
.flier-3-happy {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
  display: block;
  margin-bottom: -4px;
}
.flier-3-birthday {
  font-family: 'Dancing Script', cursive;
  font-size: 2.2rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
  display: block;
}

/* Bunting: 5 triangular flags top-left */
.flier-3-bunting {
  position: absolute;
  top: 4px;
  left: 2px;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  height: 32px;
}
.flier-3-flag {
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 28px 14px;
  border-bottom-color: transparent;
  filter: drop-shadow(-2px 0 1px rgba(0,0,0,0.15));
}
.flier-3-flag-1 { border-left-color: #b8a9d4; }
.flier-3-flag-2 { border-left-color: #81c784; }
.flier-3-flag-3 { border-left-color: #f48fb1; }
.flier-3-flag-4 { border-left-color: #81d4fa; }
.flier-3-flag-5 { border-left-color: #7e57c2; }

/* Four-pointed yellow stars near bunting (cluster of 3, cluster of 2) */
.flier-3-stars {
  position: absolute;
  z-index: 6;
  width: 6px;
  height: 6px;
  background: #ffeb3b;
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.flier-3-stars-1 {
  top: 2px;
  left: 18px;
  box-shadow: 10px 2px 0 0 #ffeb3b, 20px 6px 0 0 #ffeb3b;
}
.flier-3-stars-2 {
  top: 6px;
  left: 52px;
  box-shadow: 10px 0 0 0 #ffeb3b;
}

/* Confetti in splotches (circles, shapes) */
.flier-3-confetti {
  position: absolute;
  z-index: 1;
}
.flier-3-confetti::before {
  content: '';
  position: absolute;
  top: 18px;
  right: 18px;
  width: 5px;
  height: 5px;
  background: #ffeb3b;
  border-radius: 50%;
  box-shadow: -8px 6px 0 0 #f48fb1, 6px 10px 0 0 #81d4fa, -4px 14px 0 0 #81c784, 10px 4px 0 0 #e57373;
}
.flier-3-confetti::after {
  content: '';
  position: absolute;
  bottom: 22px;
  left: 22px;
  width: 4px;
  height: 4px;
  background: #81d4fa;
  border-radius: 50%;
  box-shadow: 8px -6px 0 0 #ffeb3b, -4px 8px 0 0 #f48fb1, 12px 4px 0 0 #81c784;
}

/* Balloons bottom-right */
.flier-3-balloons {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 75px;
  height: 95px;
  z-index: 8;
}
.flier-3-balloons::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 28px;
  width: 22px;
  height: 28px;
  background: #f48fb1;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: -24px 0 0 -2px #f48fb1, -48px 8px 0 -2px #ffeb3b, -42px -12px 0 -2px #b8a9d4, -18px -8px 0 -2px #ffeb3b;
}
.flier-3-balloons::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 30px;
  width: 1px;
  height: 50px;
  background: linear-gradient(to top, rgba(0,0,0,0.2), transparent);
  transform: rotate(-8deg);
  box-shadow: -22px 0 0 0 rgba(0,0,0,0.15), -46px 0 0 0 rgba(0,0,0,0.15), -40px 0 0 0 rgba(0,0,0,0.15), -16px 0 0 0 rgba(0,0,0,0.15);
}

/* Washi tape on photo corners (frosted purple, holding frame) */
.flier-3-tape {
  position: absolute;
  width: 38px;
  height: 16px;
  background: rgba(178, 157, 207, 0.6);
  z-index: 7;
  transform-origin: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.flier-3-tape-tl {
  top: 88px;
  left: 72px;
  transform: rotate(-32deg);
}
.flier-3-tape-tr {
  top: 86px;
  right: 70px;
  transform: rotate(32deg);
}

/* Yellow diamond before name */
.flier-3-diamond {
  position: absolute;
  bottom: 22px;
  left: 50%;
  margin-left: -58px;
  width: 8px;
  height: 8px;
  background: #ffeb3b;
  transform: rotate(45deg);
  z-index: 20;
}

/* Photo: white Polaroid-style, rectangular, thin border */
.flier-polaroid-design-3 .flier-polaroid-photo {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 120px;
  background: #fff;
  padding: 4px 4px 8px 4px;
  border: 2px solid #f5f5f5;
  box-sizing: border-box;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  z-index: 5;
  border-radius: 2px;
  margin: 0;
}
.flier-polaroid-design-3 .flier-polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eee;
}

/* Name: dark purple, all-caps */
.flier-polaroid-design-3 .flier-polaroid-name {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #6b5c8e;
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
  z-index: 20;
  margin: 0;
}

/* Hide Design 3 elements by default */
.flier-3-splotch,
.flier-3-text-top,
.flier-3-bunting,
.flier-3-flag,
.flier-3-stars,
.flier-3-confetti,
.flier-3-balloons,
.flier-3-tape,
.flier-3-diamond {
  display: none;
}
.flier-polaroid-design-3 .flier-3-splotch,
.flier-polaroid-design-3 .flier-3-text-top,
.flier-polaroid-design-3 .flier-3-bunting,
.flier-polaroid-design-3 .flier-3-flag,
.flier-polaroid-design-3 .flier-3-stars,
.flier-polaroid-design-3 .flier-3-confetti,
.flier-polaroid-design-3 .flier-3-balloons,
.flier-polaroid-design-3 .flier-3-tape,
.flier-polaroid-design-3 .flier-3-diamond {
  display: block;
}
.flier-polaroid-design-3 .flier-3-flag {
  display: inline-block;
}

/* Design 4: Black / white / silver */
.flier-polaroid-design-4 {
  width: 320px;
  height: 320px;
  padding: 0;
  background: #0a0a0a;
  border-radius: 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
  transform: none;
  display: block;
}

/* White speckles (glitter/confetti) on black */
.flier-4-speckles {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 88% 22%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 45% 8%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 72% 65%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 25% 78%, rgba(255,255,255,0.85), transparent),
    radial-gradient(1px 1px at 60% 45%, #fff, transparent),
    radial-gradient(1px 1px at 8% 55%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 92% 85%, #fff, transparent);
  background-repeat: repeat;
  background-size: 120px 100px;
  opacity: 0.85;
}

/* Header: HAPPY (sans small) + Birthday (script large) */
.flier-4-text-top {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}
.flier-4-happy {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: #fff;
  display: block;
  margin-bottom: -2px;
}
.flier-4-birthday {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  display: block;
}

/* Silver thumbtacks on frame corners */
.flier-4-pin {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8e8e8 0%, #c0c0c0 40%, #a0a0a0 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.5), inset 1px 1px 0 rgba(255,255,255,0.6);
  z-index: 8;
}
.flier-4-pin-tl {
  top: 78px;
  left: 72px;
}
.flier-4-pin-tr {
  top: 76px;
  right: 70px;
}

/* Balloons: silver/grey glossy, top-left (3) and top-right (2) */
.flier-4-balloons {
  position: absolute;
  z-index: 2;
}
.flier-4-balloons-tl {
  top: 2px;
  left: 2px;
  width: 28px;
  height: 36px;
}
.flier-4-balloons-tl::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 18px;
  background: linear-gradient(145deg, #f0f0f0 0%, #c8c8c8 50%, #a8a8a8 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: inset 2px 2px 4px rgba(255,255,255,0.5), 0 1px 2px rgba(0,0,0,0.3);
}
.flier-4-balloons-tl::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 6px;
  width: 1px;
  height: 25px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  transform: rotate(-15deg);
  box-shadow: 12px 4px 0 0 rgba(200,200,200,0.9), 24px 0 0 0 rgba(200,200,200,0.9);
}
.flier-4-balloons-tr {
  top: 4px;
  right: 4px;
  width: 22px;
  height: 32px;
}
.flier-4-balloons-tr::before {
  content: '';
  position: absolute;
  right: 0;
  width: 12px;
  height: 16px;
  background: linear-gradient(145deg, #f0f0f0 0%, #c8c8c8 50%, #a8a8a8 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: inset 2px 2px 4px rgba(255,255,255,0.5);
}
.flier-4-balloons-tr::after {
  content: '';
  position: absolute;
  top: 14px;
  right: 5px;
  width: 1px;
  height: 22px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  transform: rotate(12deg);
  box-shadow: -10px 2px 0 0 rgba(200,200,200,0.9);
}

/* Gift boxes: silver/white with ribbons, bottom corners */
.flier-4-gifts {
  position: absolute;
  bottom: 0;
  z-index: 6;
}
.flier-4-gifts-bl {
  left: 0;
  width: 50px;
  height: 42px;
}
.flier-4-gifts-bl::before {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 4px;
  width: 22px;
  height: 18px;
  background: linear-gradient(145deg, #f5f5f5 0%, #d0d0d0 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3), inset 1px 1px 0 rgba(255,255,255,0.8);
}
.flier-4-gifts-bl::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 18px;
  width: 20px;
  height: 16px;
  background: linear-gradient(145deg, #fafafa 0%, #d8d8d8 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.25), inset 1px 1px 0 rgba(255,255,255,0.8);
}
.flier-4-gifts-br {
  right: 0;
  width: 48px;
  height: 40px;
}
.flier-4-gifts-br::before {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 4px;
  width: 20px;
  height: 16px;
  background: linear-gradient(145deg, #f5f5f5 0%, #d0d0d0 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3), inset 1px 1px 0 rgba(255,255,255,0.8);
}
.flier-4-gifts-br::after {
  content: '';
  position: absolute;
  bottom: 6px;
  right: 18px;
  width: 18px;
  height: 14px;
  background: linear-gradient(145deg, #fafafa 0%, #d8d8d8 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.25), inset 1px 1px 0 rgba(255,255,255,0.8);
}

/* Tagline below name */
.flier-4-tagline {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: inherit;
  font-size: 0.6rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  z-index: 20;
  margin: 0;
  padding: 0 12px;
  line-height: 1.3;
}

/* Photo: torn-paper style white frame, shadow lift */
.flier-polaroid-design-4 .flier-polaroid-photo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 148px;
  height: 118px;
  background: #fff;
  padding: 10px;
  border: none;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
  z-index: 5;
  margin: 0;
  clip-path: polygon(
    0 0, 100% 0, 100% 85%, 98% 88%, 100% 92%, 99% 96%, 100% 100%, 85% 100%, 82% 98%, 78% 100%, 15% 100%, 12% 98%, 8% 100%, 0 100%, 0 92%, 2% 88%, 0 82%, 1% 78%, 0 0
  );
}
.flier-polaroid-design-4 .flier-polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eee;
}

/* Name: script white, below/overlapping frame */
.flier-polaroid-design-4 .flier-polaroid-name {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Dancing Script', cursive;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  z-index: 20;
  margin: 0;
}

/* Hide Design 4 elements by default */
.flier-4-speckles,
.flier-4-text-top,
.flier-4-pin,
.flier-4-balloons,
.flier-4-gifts,
.flier-4-tagline {
  display: none;
}
.flier-polaroid-design-4 .flier-4-speckles,
.flier-polaroid-design-4 .flier-4-text-top,
.flier-polaroid-design-4 .flier-4-pin,
.flier-polaroid-design-4 .flier-4-balloons,
.flier-polaroid-design-4 .flier-4-gifts,
.flier-polaroid-design-4 .flier-4-tagline {
  display: block;
}

/* ========== Design 5: Dark blue / navy, white stripe, circular photo, ribbon ========== */
.flier-polaroid-design-5 {
  width: 320px;
  height: 320px;
  padding: 0;
  background: #0d1b2a;
  border-radius: 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  transform: none;
  display: block;
}

.flier-5-stripe {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 72px;
  background: #fff;
  z-index: 1;
}

.flier-5-text-top {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}
.flier-5-happy {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  display: block;
  margin-bottom: 2px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.flier-5-birthday {
  font-family: 'Dancing Script', 'Segoe Script', cursive;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  display: block;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
  line-height: 1.1;
}

/* Confetti removed – was dotted styling near text */
.flier-5-confetti {
  display: none !important;
}

.flier-5-balloons {
  position: absolute;
  z-index: 3;
}
.flier-5-balloons-tl {
  top: 2px;
  left: 2px;
  width: 45px;
  height: 50px;
}
.flier-5-balloons-tl::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 16px;
  background: linear-gradient(145deg, #1e3a5f 0%, #0d1b2a 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: 10px 0 0 -1px #2d5a87, 20px 4px 0 -1px #e8e8e8, 28px 0 0 -1px #2d5a87, 6px 12px 0 -1px #e8e8e8, 16px 14px 0 -1px #2d5a87, 24px 10px 0 -1px #e8e8e8;
}
.flier-5-balloons-tl::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 6px;
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.3);
  transform: rotate(-10deg);
  box-shadow: 10px 0 0 0 rgba(255,255,255,0.2), 20px 0 0 0 rgba(255,255,255,0.2), 28px 0 0 0 rgba(255,255,255,0.2);
}
.flier-5-balloons-tr {
  top: 4px;
  right: 2px;
  width: 42px;
  height: 48px;
}
.flier-5-balloons-tr::before {
  content: '';
  position: absolute;
  right: 0;
  width: 11px;
  height: 15px;
  background: linear-gradient(145deg, #2d5a87 0%, #1e3a5f 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: -10px 2px 0 -1px #e8e8e8, -20px 6px 0 -1px #2d5a87, -28px 2px 0 -1px #e8e8e8, -8px 12px 0 -1px #2d5a87;
}
.flier-5-balloons-tr::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 5px;
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.25);
  transform: rotate(8deg);
  box-shadow: -10px 0 0 0 rgba(255,255,255,0.2), -20px 0 0 0 rgba(255,255,255,0.2);
}

.flier-5-ribbon {
  position: absolute;
  bottom: 54px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 24px;
  background: #5b9bd5;
  z-index: 6;
  clip-path: polygon(0 50%, 8% 0, 92% 0, 100% 50%, 92% 100%, 50% 85%, 8% 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.flier-5-gifts {
  position: absolute;
  bottom: 0;
  z-index: 4;
}
.flier-5-gifts-bl {
  left: 4px;
  width: 52px;
  height: 48px;
}
.flier-5-gifts-bl::before {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 6px;
  width: 24px;
  height: 22px;
  background: #7eb8e6;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25), inset 0 0 0 2px #5b9bd5;
}
.flier-5-gifts-bl::after {
  content: '';
  position: absolute;
  bottom: 22px;
  left: 14px;
  width: 8px;
  height: 10px;
  background: #5b9bd5;
  border-radius: 2px;
  box-shadow: 0 0 0 4px #7eb8e6, 2px 2px 4px rgba(0,0,0,0.2);
}
.flier-5-gifts-br {
  right: 4px;
  width: 50px;
  height: 46px;
}
.flier-5-gifts-br::before {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 6px;
  width: 22px;
  height: 20px;
  background: #7eb8e6;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25), inset 0 0 0 2px #5b9bd5;
}
.flier-5-gifts-br::after {
  content: '';
  position: absolute;
  bottom: 20px;
  right: 13px;
  width: 6px;
  height: 8px;
  background: #5b9bd5;
  border-radius: 2px;
  box-shadow: 0 0 0 3px #7eb8e6, 2px 2px 4px rgba(0,0,0,0.2);
}

.flier-5-tagline {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: inherit;
  font-size: 0.55rem;
  font-weight: 600;
  color: #fff;
  z-index: 20;
  margin: 0;
  padding: 0 14px;
  line-height: 1.35;
}

.flier-polaroid-design-5 .flier-polaroid-photo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  border: 4px solid #7eb8e6;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  z-index: 5;
  margin: 0;
}
.flier-polaroid-design-5 .flier-polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #eee;
}

.flier-polaroid-design-5 .flier-polaroid-name {
  position: absolute;
  bottom: 58px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  z-index: 7;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Hide Design 5 by default */
.flier-5-stripe,
.flier-5-text-top,
.flier-5-confetti,
.flier-5-balloons,
.flier-5-ribbon,
.flier-5-gifts,
.flier-5-tagline { display: none; }
.flier-polaroid-design-5 .flier-5-stripe,
.flier-polaroid-design-5 .flier-5-text-top,
.flier-polaroid-design-5 .flier-5-balloons,
.flier-polaroid-design-5 .flier-5-ribbon,
.flier-polaroid-design-5 .flier-5-gifts,
.flier-polaroid-design-5 .flier-5-tagline { display: block; }

/* ========== Design 6: Pink watercolor ========== */
.flier-polaroid-design-6 {
  width: 320px;
  height: 320px;
  padding: 0;
  background: #fce4ec;
  border-radius: 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  transform: none;
  display: block;
}

.flier-6-splatters {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(ellipse 40px 35px at 85% 15%, rgba(244, 143, 177, 0.25), transparent),
    radial-gradient(ellipse 35px 40px at 12% 82%, rgba(233, 30, 99, 0.2), transparent),
    radial-gradient(ellipse 25px 25px at 78% 75%, rgba(244, 143, 177, 0.2), transparent);
}

.flier-6-hearts {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle at 18% 45%, rgba(233, 30, 99, 0.12) 0%, transparent 8px),
    radial-gradient(circle at 22% 48%, rgba(233, 30, 99, 0.1) 0%, transparent 6px),
    radial-gradient(circle at 75% 35%, rgba(244, 143, 177, 0.1) 0%, transparent 5px);
}

.flier-6-text-top {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}
.flier-6-happy {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #c2185b;
  display: block;
  margin-bottom: -6px;
}
.flier-6-birthday {
  font-family: 'Dancing Script', cursive;
  font-size: 2.4rem;
  font-weight: 700;
  color: #ad1457;
  text-shadow: 0 0 1px #fff, 0 1px 2px rgba(255,255,255,0.8);
  display: block;
}

.flier-6-bunting {
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  height: 28px;
}
.flier-6-flag {
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 24px 10px;
  border-bottom-color: transparent;
  filter: drop-shadow(-1px 0 0 rgba(233, 30, 99, 0.2));
}
.flier-6-bunting .flier-6-flag:nth-child(1) { border-left-color: #f8bbd9; }
.flier-6-bunting .flier-6-flag:nth-child(2) { border-left-color: #f48fb1; }
.flier-6-bunting .flier-6-flag:nth-child(3) { border-left-color: #fce4ec; }
.flier-6-bunting .flier-6-flag:nth-child(4) { border-left-color: #f48fb1; }
.flier-6-bunting .flier-6-flag:nth-child(5) { border-left-color: #f8bbd9; }
.flier-6-bunting .flier-6-flag:nth-child(6) { border-left-color: #e91e63; }

.flier-6-balloons {
  position: absolute;
  z-index: 4;
}
.flier-6-balloons-left {
  top: 42%;
  left: -4px;
  width: 32px;
  height: 48px;
}
.flier-6-balloons-left::before {
  content: '';
  position: absolute;
  width: 24px;
  height: 32px;
  background: linear-gradient(160deg, #f8bbd9 0%, #f48fb1 100%);
  border-radius: 50% 50% 45% 55% / 55% 55% 45% 45%;
  box-shadow: inset 2px 2px 4px rgba(255,255,255,0.4);
}
.flier-6-balloons-left::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 11px;
  width: 1px;
  height: 35px;
  background: linear-gradient(to bottom, rgba(233, 30, 99, 0.3), transparent);
  transform: rotate(-8deg);
}
.flier-6-balloons-right {
  top: 8px;
  right: 8px;
  width: 36px;
  height: 40px;
}
.flier-6-balloons-right::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 18px;
  background: linear-gradient(160deg, #f8bbd9 0%, #f48fb1 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: 10px 0 0 0 #f8bbd9, inset 1px 1px 2px rgba(255,255,255,0.5);
}
.flier-6-balloons-right::after {
  content: '';
  position: absolute;
  top: 16px;
  right: 6px;
  width: 1px;
  height: 22px;
  background: linear-gradient(to bottom, rgba(233, 30, 99, 0.25), transparent);
  transform: rotate(10deg);
  box-shadow: -8px 0 0 0 rgba(233, 30, 99, 0.2);
}

.flier-6-gifts {
  position: absolute;
  bottom: 0;
  z-index: 5;
}
.flier-6-gifts-bl {
  left: 4px;
  width: 44px;
  height: 38px;
}
.flier-6-gifts-bl::before {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 4px;
  width: 28px;
  height: 24px;
  background: linear-gradient(145deg, #f8bbd9 0%, #f48fb1 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08), inset 0 0 0 2px #e91e63;
}
.flier-6-gifts-bl::after {
  content: '';
  position: absolute;
  bottom: 22px;
  left: 14px;
  width: 10px;
  height: 8px;
  background: #8d6e63;
  border-radius: 2px;
  box-shadow: 0 0 0 3px #a1887f, 0 1px 3px rgba(0,0,0,0.15);
}
.flier-6-gifts-br {
  right: 4px;
  width: 42px;
  height: 36px;
}
.flier-6-gifts-br::before {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 4px;
  width: 26px;
  height: 22px;
  background: linear-gradient(145deg, #f8bbd9 0%, #f48fb1 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08), inset 0 0 0 2px #e91e63;
}
.flier-6-gifts-br::after {
  content: '';
  position: absolute;
  bottom: 20px;
  right: 12px;
  width: 8px;
  height: 6px;
  background: #8d6e63;
  border-radius: 2px;
  box-shadow: 0 0 0 2px #a1887f;
}

.flier-6-flowers {
  position: absolute;
  width: 35px;
  height: 35px;
  z-index: 0;
}
.flier-6-flowers-tr {
  top: 12px;
  right: 12px;
  background: radial-gradient(circle at 30% 30%, rgba(233, 30, 99, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 60% 50%, rgba(244, 143, 177, 0.25) 0%, transparent 35%),
    radial-gradient(circle at 50% 70%, rgba(233, 30, 99, 0.15) 0%, transparent 30%);
  border-radius: 50%;
}
.flier-6-flowers-bl {
  bottom: 14px;
  left: 10px;
  background: radial-gradient(circle at 40% 40%, rgba(244, 143, 177, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 65% 60%, rgba(233, 30, 99, 0.18) 0%, transparent 40%);
  border-radius: 50%;
}

.flier-6-tagline {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: inherit;
  font-size: 0.52rem;
  font-weight: 500;
  color: #ad1457;
  z-index: 20;
  margin: 0;
  padding: 0 12px;
  line-height: 1.4;
}

.flier-polaroid-design-6 .flier-polaroid-photo {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-2deg);
  width: 140px;
  height: 112px;
  background: #fff;
  padding: 4px 4px 8px 4px;
  border: 2px solid #f5f5f5;
  box-sizing: border-box;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  z-index: 5;
  border-radius: 2px;
  margin: 0;
}
.flier-polaroid-design-6 .flier-polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fafafa;
}

.flier-polaroid-design-6 .flier-polaroid-name {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ad1457;
  z-index: 20;
  margin: 0;
}

/* Hide Design 6 by default */
.flier-6-splatters,
.flier-6-hearts,
.flier-6-text-top,
.flier-6-bunting,
.flier-6-flag,
.flier-6-balloons,
.flier-6-gifts,
.flier-6-flowers,
.flier-6-tagline { display: none; }
.flier-polaroid-design-6 .flier-6-splatters,
.flier-polaroid-design-6 .flier-6-hearts,
.flier-polaroid-design-6 .flier-6-text-top,
.flier-polaroid-design-6 .flier-6-bunting,
.flier-polaroid-design-6 .flier-6-balloons,
.flier-polaroid-design-6 .flier-6-gifts,
.flier-polaroid-design-6 .flier-6-flowers,
.flier-polaroid-design-6 .flier-6-tagline { display: block; }
.flier-polaroid-design-6 .flier-6-flag { display: inline-block; }

/* ========== Flier (single design): theme = default_card_theme ========== */
.flier-polaroid-design-7 {
  width: 320px;
  height: 400px;
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  transform: none;
  display: block;
}
/* Flier background by theme (same as .cb-bg-theme-* .cb-page-bg-deco) */
.flier-polaroid-design-7.flier-theme-pink { background: #fff0f5; }
.flier-polaroid-design-7.flier-theme-blue { background: #e8f4fc; }
.flier-polaroid-design-7.flier-theme-green { background: #e8f8ee; }
.flier-polaroid-design-7.flier-theme-gold { background: #fffef0; }
.flier-polaroid-design-7.flier-theme-purple { background: #f4f0ff; }
.flier-polaroid-design-7.flier-theme-milk { background: #fffef9; }

.flier-7-text-top {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}
.flier-7-happy {
  font-family: 'Quicksand', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #ad1457;
  display: block;
  margin-bottom: -4px;
}
.flier-7-birthday {
  font-family: 'Dancing Script', cursive;
  font-size: 2.6rem;
  font-weight: 700;
  color: #880e4f;
  text-shadow: 0 0 1px #fff, 0 2px 4px rgba(0,0,0,0.25);
  display: block;
}

/* Faint trace balloons (same style as cb-deco-balloon: outline only) */
.flier-7-balloons {
  position: absolute;
  z-index: 2;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: transparent;
  border: 1px solid rgba(251, 113, 133, 0.28);
  width: 18px;
  height: 24px;
}
.flier-7-balloons::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 12px;
  background: rgba(100, 116, 139, 0.18);
}
.flier-7-b1 { top: 2%; left: 4%; width: 16px; height: 22px; transform: rotate(-10deg); }
.flier-7-b2 { top: 2%; left: 22%; width: 18px; height: 24px; transform: rotate(5deg); border-color: rgba(147, 197, 253, 0.28); }
.flier-7-b3 { top: 2%; left: 42%; width: 14px; height: 20px; transform: rotate(-8deg); }
.flier-7-b4 { top: 2%; left: 62%; width: 18px; height: 24px; transform: rotate(12deg); border-color: rgba(254, 215, 170, 0.28); }
.flier-7-b5 { top: 2%; right: 6%; left: auto; width: 16px; height: 22px; transform: rotate(7deg); }
.flier-7-b6 { top: 16%; left: 2%; width: 14px; height: 20px; transform: rotate(6deg); }
.flier-7-b7 { top: 16%; left: 28%; width: 18px; height: 24px; transform: rotate(-12deg); border-color: rgba(196, 181, 253, 0.26); }
.flier-7-b8 { top: 16%; right: 8%; left: auto; width: 16px; height: 22px; transform: rotate(3deg); }
.flier-7-b9 { top: 32%; left: 8%; width: 18px; height: 24px; transform: rotate(-7deg); }
.flier-7-b10 { top: 32%; right: 12%; left: auto; width: 14px; height: 20px; transform: rotate(10deg); }
.flier-7-b11 { bottom: 18%; left: 4%; width: 16px; height: 22px; transform: rotate(-5deg); }
.flier-7-b12 { bottom: 14%; right: 6%; left: auto; width: 18px; height: 24px; transform: rotate(8deg); border-color: rgba(134, 239, 172, 0.26); }

/* Faint trace gifts (same style as cb-deco-gift: outline + faint bow) */
.flier-7-gifts {
  position: absolute;
  z-index: 2;
  width: 20px;
  height: 14px;
  background: transparent;
  border: 1px solid rgba(251, 113, 133, 0.26);
  border-radius: 2px;
}
.flier-7-gifts::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 7px solid transparent;
  border-bottom-color: rgba(251, 113, 133, 0.28);
}
.flier-7-gifts::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 100%;
  background: rgba(251, 113, 133, 0.2);
}
.flier-7-g1 { bottom: 8%; left: 10%; transform: rotate(-6deg); }
.flier-7-g2 { bottom: 6%; left: 32%; width: 16px; height: 12px; transform: rotate(4deg); border-color: rgba(147, 197, 253, 0.24); }
.flier-7-g2::before { border-left-width: 4px; border-right-width: 4px; border-bottom-width: 6px; border-bottom-color: rgba(147, 197, 253, 0.26); }
.flier-7-g3 { bottom: 8%; right: 12%; left: auto; transform: rotate(-3deg); }
.flier-7-g4 { top: 22%; left: 4%; width: 18px; height: 12px; transform: rotate(7deg); border-color: rgba(253, 186, 116, 0.24); }
.flier-7-g4::before { border-bottom-color: rgba(253, 186, 116, 0.26); }
.flier-7-g5 { top: 24%; right: 6%; left: auto; width: 16px; height: 11px; transform: rotate(-5deg); }
.flier-7-g6 { top: 48%; left: 2%; width: 14px; height: 10px; transform: rotate(6deg); }
.flier-7-g7 { top: 50%; right: 4%; left: auto; width: 18px; height: 12px; transform: rotate(-4deg); }
.flier-7-g8 { bottom: 32%; left: 8%; width: 16px; height: 11px; transform: rotate(5deg); }

/* Faint trace candles (same style as cb-deco-candle: outline body + outline flame) */
.flier-7-candles {
  position: absolute;
  z-index: 2;
  width: 6px;
  height: 14px;
  background: transparent;
  border: 1px solid rgba(100, 116, 139, 0.22);
  border-radius: 1px;
}
.flier-7-candles::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 8px;
  border-radius: 50% 50% 45% 45%;
  background: transparent;
  border: 1px solid rgba(251, 146, 60, 0.32);
}
.flier-7-c1 { top: 12%; left: 14%; transform: rotate(2deg); }
.flier-7-c2 { top: 10%; left: 48%; transform: rotate(-3deg); }
.flier-7-c3 { top: 10%; right: 18%; left: auto; transform: rotate(4deg); }
.flier-7-c4 { top: 26%; left: 6%; transform: rotate(-2deg); }
.flier-7-c5 { top: 26%; right: 10%; left: auto; transform: rotate(5deg); }
.flier-7-c6 { top: 44%; left: 12%; transform: rotate(-4deg); }
.flier-7-c7 { bottom: 28%; left: 20%; transform: rotate(3deg); }
.flier-7-c8 { bottom: 12%; right: 22%; left: auto; transform: rotate(-2deg); }

/* Faint trace flowers (same style as cb-deco-flower: centre + 5 petal outlines) */
.flier-7-flowers {
  position: absolute;
  z-index: 2;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(251, 113, 133, 0.26);
  box-shadow: 0 -11px 0 -2px rgba(251, 113, 133, 0.22), 9px 6px 0 -2px rgba(251, 113, 133, 0.22), -9px 6px 0 -2px rgba(251, 113, 133, 0.22), 9px -6px 0 -2px rgba(251, 113, 133, 0.22), -9px -6px 0 -2px rgba(251, 113, 133, 0.22);
}
.flier-7-f1 { top: 8%; left: 18%; transform: scale(0.9); }
.flier-7-f2 { top: 8%; left: 56%; transform: scale(0.85); }
.flier-7-f3 { top: 8%; right: 12%; left: auto; transform: scale(0.9); }
.flier-7-f4 { top: 22%; left: 20%; transform: scale(0.88); }
.flier-7-f5 { top: 22%; right: 16%; left: auto; transform: scale(0.92); border-color: rgba(167, 139, 250, 0.24); box-shadow: 0 -11px 0 -2px rgba(167, 139, 250, 0.2), 9px 6px 0 -2px rgba(167, 139, 250, 0.2), -9px 6px 0 -2px rgba(167, 139, 250, 0.2), 9px -6px 0 -2px rgba(167, 139, 250, 0.2), -9px -6px 0 -2px rgba(167, 139, 250, 0.2); }
.flier-7-f6 { top: 38%; left: 6%; transform: scale(0.9); }
.flier-7-f7 { bottom: 24%; right: 14%; left: auto; transform: scale(0.85); }
.flier-7-f8 { bottom: 10%; left: 24%; transform: scale(0.88); }

.flier-polaroid-design-7 .flier-polaroid-photo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background: #fff;
  padding: 3px;
  border: 1px solid rgba(255,255,255,0.9);
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 8;
  border-radius: 999px;
  margin: 0;
}
.flier-polaroid-design-7 .flier-polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fafafa;
  border-radius: 999px;
}

/* Card 1 (variant 1): no extra background on photo */
.flier-variant-1 .flier-polaroid-photo {
  background: transparent;
  padding: 0;
  border: 2px solid rgba(0,0,0,0.08);
  box-shadow: none;
}
.flier-variant-1 .flier-polaroid-photo img {
  background: transparent;
}
.flier-variant-1 .flier-7-happy {
  font-size: 0.75rem;
}
.flier-variant-1 .flier-7-birthday {
  font-size: 2rem;
}

/* Card 2 (variant 2): large rectangular photo + bold HAPPY BIRTHDAY text, no extra background */
.flier-variant-2 .flier-polaroid-photo {
  top: 28%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 190px;
  height: 200px;
  background: transparent;
  padding: 0;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}
.flier-variant-2 .flier-polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  display: block;
  background: transparent;
}
.flier-variant-2 .flier-7-text-top {
  display: none;
}

.flier-2-text-block {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  text-align: center;
  z-index: 20;
}
.flier-variant-2 .flier-2-text-block {
  bottom: 36px;
}
.flier-2-happy-birthday {
  display: inline-block;
  font-family: 'Ojuju', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.flier-variant-2 .flier-2-happy-birthday {
  margin-bottom: 20px;
}
.flier-2-word-row {
  display: block;
  line-height: 1.1;
}
.flier-2-word-row:first-child {
  display: inline-block;
  position: relative;
}
/* Sparkle lines (3 short horizontal lines) on each side of HAPPY */
.flier-2-word-row:first-child::before {
  content: '';
  position: absolute;
  right: 100%;
  margin-right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 18px;
  background:
    linear-gradient(#eab308, #eab308) 0 0/100% 2px no-repeat,
    linear-gradient(#eab308, #eab308) 0 6px/100% 2px no-repeat,
    linear-gradient(#eab308, #eab308) 0 12px/100% 2px no-repeat;
}
.flier-2-word-row:first-child::after {
  content: '';
  position: absolute;
  left: 100%;
  margin-left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 18px;
  background:
    linear-gradient(#eab308, #eab308) 0 0/100% 2px no-repeat,
    linear-gradient(#eab308, #eab308) 0 6px/100% 2px no-repeat,
    linear-gradient(#eab308, #eab308) 0 12px/100% 2px no-repeat;
}
.flier-2-word-row span {
  display: inline-block;
}
/* HAPPY - teal, pink, golden yellow, light green, light pink */
.flier-2-word-row:first-child span:nth-child(1) { color: #14b8a6; }  /* H */
.flier-2-word-row:first-child span:nth-child(2) { color: #ec4899; }  /* A */
.flier-2-word-row:first-child span:nth-child(3) { color: #eab308; }  /* P */
.flier-2-word-row:first-child span:nth-child(4) { color: #84cc16; }  /* P */
.flier-2-word-row:first-child span:nth-child(5) { color: #f9a8d4; }  /* Y */
/* BIRTHDAY - dark green, golden yellow, pink, teal, red, orange, mint, golden yellow */
.flier-2-word-row:last-child span:nth-child(1) { color: #15803d; }  /* B */
.flier-2-word-row:last-child span:nth-child(2) { color: #eab308; }  /* I */
.flier-2-word-row:last-child span:nth-child(3) { color: #ec4899; }  /* R */
.flier-2-word-row:last-child span:nth-child(4) { color: #14b8a6; }  /* T */
.flier-2-word-row:last-child span:nth-child(5) { color: #dc2626; }  /* H */
.flier-2-word-row:last-child span:nth-child(6) { color: #f97316; }  /* D */
.flier-2-word-row:last-child span:nth-child(7) { color: #99f6e4; }  /* A */
.flier-2-word-row:last-child span:nth-child(8) { color: #eab308; }  /* Y */

/* Card 2 celebrant name – same size as Card 1, must stay in flow below HAPPY BIRTHDAY */
.flier-variant-2 .flier-2-celebrant-name {
  position: static !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  margin: 32px 0 0;
  font-family: 'Dancing Script', cursive;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #880e4f;
  display: block;
}

/* Card 3 (variant 3): uses theme color like card 1 & 2, birthday doodles (balloons, gifts, candles, flowers, cake) */
.flier-variant-3 .flier-7-text-top {
  display: none !important;
}

/* Card 3 cake icons - theme-colored */
.flier-11-cake {
  display: none;
}
.flier-variant-3 .flier-11-cake {
  display: block;
  position: absolute;
  z-index: 2;
  pointer-events: none;
  width: 20px;
  height: 18px;
}
.flier-variant-3 .flier-11-cake svg {
  width: 100%;
  height: 100%;
}
.flier-variant-3 .flier-11-cake-1 { top: 10%; left: 12%; color: rgba(251, 113, 133, 0.35); transform: rotate(-8deg); }
.flier-variant-3 .flier-11-cake-2 { top: 14%; right: 14%; left: auto; color: rgba(147, 197, 253, 0.35); transform: rotate(10deg); }
.flier-variant-3 .flier-11-cake-3 { top: 20%; left: 4%; color: rgba(254, 215, 170, 0.4); transform: rotate(-15deg); }
.flier-variant-3 .flier-11-cake-4 { bottom: 58%; right: 8%; left: auto; color: rgba(196, 181, 253, 0.35); transform: rotate(12deg); }
.flier-variant-3 .flier-11-cake-5 { bottom: 54%; left: 16%; top: auto; color: rgba(134, 239, 172, 0.35); transform: rotate(-6deg); }
.flier-variant-3 .flier-11-cake-6 { top: 8%; right: 24%; left: auto; color: rgba(251, 113, 133, 0.3); transform: rotate(5deg); }

/* Card 4: also show cake (same as card 3) */
.flier-variant-4 .flier-11-cake {
  display: block;
  position: absolute;
  z-index: 2;
  pointer-events: none;
  width: 20px;
  height: 18px;
}
.flier-variant-4 .flier-11-cake svg {
  width: 100%;
  height: 100%;
}
.flier-variant-4 .flier-11-cake-1 { top: 10%; left: 12%; color: rgba(251, 113, 133, 0.35); transform: rotate(-8deg); }
.flier-variant-4 .flier-11-cake-2 { top: 14%; right: 14%; left: auto; color: rgba(147, 197, 253, 0.35); transform: rotate(10deg); }
.flier-variant-4 .flier-11-cake-3 { top: 20%; left: 4%; color: rgba(254, 215, 170, 0.4); transform: rotate(-15deg); }
.flier-variant-4 .flier-11-cake-4 { bottom: 58%; right: 8%; left: auto; color: rgba(196, 181, 253, 0.35); transform: rotate(12deg); }
.flier-variant-4 .flier-11-cake-5 { bottom: 54%; left: 16%; top: auto; color: rgba(134, 239, 172, 0.35); transform: rotate(-6deg); }
.flier-variant-4 .flier-11-cake-6 { top: 8%; right: 24%; left: auto; color: rgba(251, 113, 133, 0.3); transform: rotate(5deg); }

/* Card 3 photo: circle, no extra background, subtle border */
.flier-variant-3 .flier-polaroid-photo {
  top: 28%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  background: transparent;
  padding: 0;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0.08);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.flier-variant-3 .flier-polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 999px;
  display: block;
  background: transparent;
}

.flier-variant-3 .flier-7-text-top {
  display: none;
}

.flier-11-text-block {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  text-align: center;
  z-index: 20;
}
.flier-11-happy-birthday {
  margin: 0 0 8px;
  font-family: 'Dancing Script', cursive;
  font-size: 1.25rem;
  font-weight: 500;
  color: #374151;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}
.flier-11-from-name {
  margin: 0;
  font-family: 'Quicksand', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b7280;
}

/* Card 4 (variant 4): confetti dots, circle photo, "NAME" + "it's your birthday!" */
.flier-variant-4 .flier-7-text-top {
  display: none !important;
}

.flier-12-confetti {
  display: none;
}
.flier-variant-4 .flier-12-confetti {
  display: block;
  position: absolute;
  z-index: 2;
  pointer-events: none;
  border-radius: 50%;
}
.flier-12-confetti-1 { top: 6%; left: 8%; width: 8px; height: 8px; background: #ef4444; }
.flier-12-confetti-2 { top: 4%; left: 24%; width: 6px; height: 6px; background: #a855f7; }
.flier-12-confetti-3 { top: 12%; left: 4%; width: 7px; height: 7px; background: #eab308; }
.flier-12-confetti-4 { top: 8%; right: 12%; left: auto; width: 6px; height: 6px; background: #22d3ee; }
.flier-12-confetti-5 { top: 14%; right: 4%; left: auto; width: 8px; height: 8px; background: #ec4899; }
.flier-12-confetti-6 { top: 20%; left: 12%; width: 6px; height: 6px; background: #ef4444; }
.flier-12-confetti-7 { top: 18%; left: 28%; width: 7px; height: 7px; background: #a855f7; }
.flier-12-confetti-8 { top: 24%; right: 14%; left: auto; width: 6px; height: 6px; background: #eab308; }
.flier-12-confetti-9 { top: 28%; left: 6%; width: 8px; height: 8px; background: #22d3ee; }
.flier-12-confetti-10 { top: 26%; right: 24%; left: auto; width: 6px; height: 6px; background: #ec4899; }
.flier-12-confetti-11 { bottom: 58%; left: 18%; top: auto; width: 7px; height: 7px; background: #ef4444; }
.flier-12-confetti-12 { bottom: 54%; left: 4%; top: auto; width: 6px; height: 6px; background: #a855f7; }
.flier-12-confetti-13 { bottom: 56%; right: 18%; top: auto; width: 8px; height: 8px; background: #eab308; }
.flier-12-confetti-14 { bottom: 52%; right: 4%; top: auto; width: 6px; height: 6px; background: #22d3ee; }
.flier-12-confetti-15 { top: 10%; left: 48%; width: 6px; height: 6px; background: #ec4899; }
.flier-12-confetti-16 { top: 16%; right: 32%; left: auto; width: 7px; height: 7px; background: #ef4444; }
.flier-12-confetti-17 { bottom: 50%; left: 32%; top: auto; width: 6px; height: 6px; background: #a855f7; }
.flier-12-confetti-18 { top: 22%; left: 42%; width: 6px; height: 6px; background: #22d3ee; }
.flier-12-confetti-19 { bottom: 48%; right: 28%; top: auto; width: 7px; height: 7px; background: #ec4899; }
.flier-12-confetti-20 { top: 6%; right: 28%; left: auto; width: 6px; height: 6px; background: #eab308; }
.flier-12-confetti-21 { top: 2%; left: 16%; width: 5px; height: 5px; background: #ef4444; }
.flier-12-confetti-22 { top: 4%; left: 36%; width: 6px; height: 6px; background: #a855f7; }
.flier-12-confetti-23 { top: 2%; right: 36%; left: auto; width: 5px; height: 5px; background: #22d3ee; }
.flier-12-confetti-24 { top: 14%; left: 20%; width: 5px; height: 5px; background: #ec4899; }
.flier-12-confetti-25 { top: 18%; left: 36%; width: 6px; height: 6px; background: #eab308; }
.flier-12-confetti-26 { top: 12%; right: 22%; left: auto; width: 5px; height: 5px; background: #ef4444; }
.flier-12-confetti-27 { top: 26%; left: 14%; width: 5px; height: 5px; background: #a855f7; }
.flier-12-confetti-28 { top: 24%; left: 34%; width: 6px; height: 6px; background: #22d3ee; }
.flier-12-confetti-29 { top: 20%; right: 8%; left: auto; width: 5px; height: 5px; background: #ec4899; }
.flier-12-confetti-30 { top: 30%; right: 20%; left: auto; width: 5px; height: 5px; background: #eab308; }
.flier-12-confetti-31 { bottom: 62%; left: 8%; top: auto; width: 6px; height: 6px; background: #ef4444; }
.flier-12-confetti-32 { bottom: 60%; left: 24%; top: auto; width: 5px; height: 5px; background: #a855f7; }
.flier-12-confetti-33 { bottom: 64%; right: 12%; top: auto; width: 5px; height: 5px; background: #22d3ee; }
.flier-12-confetti-34 { bottom: 58%; right: 26%; top: auto; width: 6px; height: 6px; background: #ec4899; }
.flier-12-confetti-35 { bottom: 56%; left: 42%; top: auto; width: 5px; height: 5px; background: #eab308; }
.flier-12-confetti-36 { top: 8%; left: 52%; width: 5px; height: 5px; background: #ef4444; }
.flier-12-confetti-37 { top: 6%; right: 44%; left: auto; width: 6px; height: 6px; background: #a855f7; }
.flier-12-confetti-38 { top: 32%; left: 24%; width: 5px; height: 5px; background: #22d3ee; }
.flier-12-confetti-39 { top: 28%; right: 36%; left: auto; width: 5px; height: 5px; background: #ec4899; }
.flier-12-confetti-40 { bottom: 54%; right: 38%; top: auto; width: 6px; height: 6px; background: #ef4444; }
.flier-12-confetti-41 { bottom: 46%; left: 6%; top: auto; width: 5px; height: 5px; background: #a855f7; }
.flier-12-confetti-42 { bottom: 44%; left: 26%; top: auto; width: 5px; height: 5px; background: #eab308; }
.flier-12-confetti-43 { bottom: 42%; right: 12%; top: auto; width: 6px; height: 6px; background: #22d3ee; }
.flier-12-confetti-44 { bottom: 40%; right: 32%; top: auto; width: 5px; height: 5px; background: #ec4899; }
.flier-12-confetti-45 { top: 34%; left: 4%; width: 5px; height: 5px; background: #ef4444; }
.flier-12-confetti-46 { top: 36%; right: 4%; left: auto; width: 5px; height: 5px; background: #a855f7; }
.flier-12-confetti-47 { top: 10%; left: 64%; width: 6px; height: 6px; background: #eab308; }
.flier-12-confetti-48 { top: 14%; right: 52%; left: auto; width: 5px; height: 5px; background: #22d3ee; }
.flier-12-confetti-49 { bottom: 38%; left: 38%; top: auto; width: 5px; height: 5px; background: #ec4899; }
.flier-12-confetti-50 { top: 38%; left: 48%; width: 5px; height: 5px; background: #ef4444; }

/* Card 4 photo: same as card 3, no extra background, subtle border */
.flier-variant-4 .flier-polaroid-photo {
  top: 28%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  background: transparent;
  padding: 0;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0.08);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.flier-variant-4 .flier-polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 999px;
  display: block;
  background: transparent;
}

.flier-12-text-block {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 36px;
  text-align: center;
  z-index: 20;
}
.flier-12-name {
  margin: 0 0 6px;
  font-family: 'Quicksand', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #374151;
}
.flier-12-birthday-line {
  margin: 0;
  font-family: 'Dancing Script', cursive;
  font-size: 1.1rem;
  font-weight: 500;
  color: #6b7280;
}

.flier-polaroid-design-7 .flier-polaroid-name {
  position: absolute;
  bottom: 38px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Dancing Script', cursive;
  font-size: 1.35rem;
  font-weight: 700;
  color: #880e4f;
  z-index: 20;
  margin: 0;
  text-shadow: 0 0 1px rgba(255,255,255,0.8), 0 2px 4px rgba(0,0,0,0.2);
}
/* Card 2: heart photo driven by inline SVG; keep container simple */
.flier-heart-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.flier-variant-10 .flier-polaroid-name {
  bottom: 34px;
  font-size: 1.35rem;
}
.flier-variant-10 .flier-7-text-top {
  top: 24px;
}
.flier-variant-10 .flier-7-happy {
  font-family: 'Quicksand', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.flier-variant-10 .flier-7-birthday {
  font-size: 2.6rem;
  text-shadow: 0 0 1px #fff, 0 2px 4px rgba(0,0,0,0.25);
}

/* Hide Design 7 by default */
.flier-7-balloons,
.flier-7-gifts,
.flier-7-candles,
.flier-7-flowers,
.flier-7-text-top { display: none; }
.flier-polaroid-design-7 .flier-7-balloons,
.flier-polaroid-design-7 .flier-7-gifts,
.flier-polaroid-design-7 .flier-7-candles,
.flier-polaroid-design-7 .flier-7-flowers,
.flier-polaroid-design-7 .flier-7-text-top { display: block; }

/* ---------- Legacy photo frame (kept for form preview sizing) ---------- */
.cb-frame-wrap { margin-top: 20px; text-align: center; }
.cb-frame { position: relative; display: inline-block; overflow: hidden; margin: 0 auto; }
.cb-frame img { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; vertical-align: top; }
.cb-frame-view-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary-pink), var(--secondary-pink));
  color: white;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 77, 109, 0.3);
}
.cb-frame-1, .cb-frame-2, .cb-frame-3, .cb-frame-4, .cb-frame-5 {
  width: 260px;
  padding: 14px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.cb-frame-1 img, .cb-frame-2 img, .cb-frame-3 img, .cb-frame-4 img, .cb-frame-5 img {
  width: 232px;
  height: 232px;
  object-fit: cover;
  border-radius: 4px;
}

/* ---------- Creator form: flier upload + card design selector ---------- */
.form-group-frame .form-label-with-desc { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.form-group-frame .form-label-main { font-weight: 600; color: #333; }
.form-group-frame .form-label-desc { font-size: 0.8rem; color: #888; }
.cb-upload-frame { min-height: 100px; cursor: pointer; }
.cb-upload-change { font-size: 0.85rem; color: var(--primary-pink); margin-top: 8px; }
.cb-flier-thumb-wrap { margin-bottom: 8px; cursor: pointer; }
.cb-flier-thumb-wrap:hover .cb-flier-thumb-img { box-shadow: 0 6px 20px rgba(255, 77, 109, 0.2); }
.cb-flier-thumb-img { max-width: 200px; max-height: 160px; width: auto; height: auto; display: block; margin: 0 auto 8px; border-radius: 8px; border: 2px solid #ffccd5; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: box-shadow 0.2s; }
.cb-flier-thumb-label { font-size: 0.85rem; color: #666; display: block; text-align: center; }
/* Live preview in form: scale down the flier design */
.flier-live-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
  overflow: hidden;
  min-height: 160px;
}

.flier-live-preview .flier-polaroid {
  transform-origin: center center;
  transform: scale(0.6); /* Scale down to fit form */
  margin: -40px; /* Compensate for scale whitespace */
  pointer-events: none; /* Prevent interaction in preview */
}

/* Specific rotation fixes for scaled preview */
.flier-live-preview .flier-polaroid-design-7 { transform: scale(0.6); }

.cb-flier-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}
.cb-flier-change-photo,
.cb-btn-preview-flier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--cb-border-subtle, #e5e7eb);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--cb-text-muted, #6b7280);
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s;
  margin: 0;
}
.cb-flier-change-photo:hover,
.cb-btn-preview-flier:hover {
  border-color: var(--primary-pink);
  color: var(--primary-pink);
  background: #fff0f3;
  transform: translateY(-1px);
}
.cb-flier-upgrade-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  color: var(--primary-pink);
  border: 1px solid var(--primary-pink);
  background: #fff0f3;
  transition: all 0.2s;
}
.cb-flier-upgrade-link:hover {
  background: var(--primary-pink);
  color: white;
  transform: translateY(-1px);
}
.cb-btn-choose-sticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--primary-pink), #ff9eb5);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(255, 99, 132, 0.35);
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.cb-btn-choose-sticker:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(255, 99, 132, 0.45);
  filter: brightness(1.03);
}
.cb-btn-choose-sticker:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(255, 99, 132, 0.3);
  filter: brightness(0.98);
}
.cb-btn-choose-sticker:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(255, 99, 132, 0.7);
}
.flier-modal-design-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 6px;
  font-size: 0.8rem;
  color: #9ca3af;
}
.cb-flier-design-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  font-size: 0.8rem;
  transition: color 0.15s ease, transform 0.15s ease;
}
.cb-flier-design-toggle:hover {
  color: var(--primary-pink);
  transform: translateY(-1px);
}
.cb-flier-design-toggle:active {
  transform: translateY(0);
}
.flier-design-label {
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.cb-flier-design-hint { font-size: 0.8rem; color: #888; margin-top: 8px; }
.existing-flier-preview { margin-bottom: 8px; }

/* Scaled-down full card previews in form */
.frame-design-options-flier {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 16px;
  justify-content: flex-start;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-pink) #fff0f3;
  -webkit-overflow-scrolling: touch;
}

.frame-design-options-flier::-webkit-scrollbar {
  height: 6px;
}

.frame-design-options-flier::-webkit-scrollbar-track {
  background: #fff0f3;
  border-radius: 10px;
}

.frame-design-options-flier::-webkit-scrollbar-thumb {
  background: var(--primary-pink);
  border-radius: 10px;
}

.frame-design-option {
  flex: 0 0 auto;
  cursor: pointer;
  text-align: center;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 12px;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  min-width: 160px;
}

.frame-design-option:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.frame-design-option.selected,
.frame-design-option:has(input:checked) {
  border-color: transparent;
  background: #fff;
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary-pink), 0 12px 24px rgba(255, 77, 109, 0.15);
  transform: translateY(-4px);
}

.cb-flier-preview-card {
  transform-origin: top center;
  pointer-events: none;
}
.frame-design-option .cb-flier-preview-card {
  width: 140px;
  margin: 0 auto 8px;
  padding: 8px 6px 10px;
  background: #fefefe;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.frame-design-option .cb-flier-preview-card.cb-flier-2 {
  padding: 0;
  width: 130px;
  overflow: hidden;
  border-radius: 4px;
}
.frame-design-option .cb-flier-preview-card.cb-flier-3 {
  background: linear-gradient(180deg, #fff9f9 0%, #fff5f5 100%);
  border-radius: 10px;
}
.frame-design-option .cb-flier-preview-card.cb-flier-4 {
  background: #fafafa;
  border: 4px solid #2d3748;
  padding: 6px;
}
.frame-design-option .cb-flier-preview-card.cb-flier-5 {
  background: linear-gradient(165deg, #db0f7a 0%, #e91e8c 50%, #f06292 100%);
  padding: 10px 8px 12px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.frame-design-option .cb-flier-preview-card.cb-flier-5 .cb-flier-5-deco .cb-flier-5-balloon {
  width: 12px;
  height: 16px;
}
.frame-design-option .cb-flier-preview-card.cb-flier-5 .cb-flier-5-deco .cb-flier-5-balloon:nth-child(1) { top: 4px; left: 4px; }
.frame-design-option .cb-flier-preview-card.cb-flier-5 .cb-flier-5-deco .cb-flier-5-balloon:nth-child(2) { top: 2px; left: 18px; }
.frame-design-option .cb-flier-preview-card.cb-flier-5 .cb-flier-5-deco .cb-flier-5-balloon:nth-child(3) { top: 8px; right: 6px; }
.frame-design-option .cb-flier-preview-card.cb-flier-5 .cb-flier-5-deco .cb-flier-5-star { width: 4px; height: 4px; }
.frame-design-option .cb-flier-preview-card.cb-flier-5 .cb-flier-5-deco .cb-flier-5-star:nth-child(4) { top: 18px; left: 12px; }
.frame-design-option .cb-flier-preview-card.cb-flier-5 .cb-flier-5-deco .cb-flier-5-star:nth-child(5) { bottom: 28px; right: 10px; }
.frame-design-option .cb-flier-preview-card.cb-flier-5 .cb-flier-5-deco .cb-flier-5-shooting { width: 10px; height: 10px; box-shadow: -8px 4px 0 -2px rgba(255,255,255,0.5); }
.frame-design-option .cb-flier-preview-card.cb-flier-5 .cb-flier-5-deco .cb-flier-5-shooting:nth-child(6) { top: 2px; left: 2px; }
.frame-design-option .cb-flier-preview-card.cb-flier-5 .cb-flier-label { font-size: 0.4rem; color: #fff; margin: 0 0 0; }
.frame-design-option .cb-flier-preview-card.cb-flier-5 .cb-flier-5-script { font-size: 1rem; color: #fff; margin: 0 0 4px; }
.frame-design-option .cb-flier-preview-card.cb-flier-5 .cb-flier-photo-wrap {
  width: 88px;
  height: 88px;
  padding: 6px 6px 8px;
  margin-bottom: 6px;
  clip-path: polygon(0 15%, 20% 0, 40% 12%, 60% 0, 80% 10%, 100% 5%, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #f8b4c4 0%, #f5a0b4 100%);
}
.frame-design-option .cb-flier-preview-card.cb-flier-5 .cb-flier-photo-wrap img { width: 76px; height: 76px; border-radius: 0 0 4px 4px; }
.frame-design-option .cb-flier-preview-card.cb-flier-5 .cb-flier-5-name-banner {
  font-size: 0.5rem;
  padding: 4px 10px;
  letter-spacing: 0.1em;
  color: #c2185b;
  text-transform: uppercase;
}
.frame-design-option .cb-flier-preview-card .cb-flier-label {
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  margin: 0 0 2px;
}
.frame-design-option .cb-flier-preview-card .cb-flier-name,
.frame-design-option .cb-flier-preview-card .cb-flier-2-name-banner {
  font-size: 0.85rem;
  margin: 0 0 6px;
}
.frame-design-option .cb-flier-preview-card .cb-flier-2-title { font-size: 0.9rem; margin: 0 0 6px; }
.frame-design-option .cb-flier-preview-card .cb-flier-photo-wrap {
  width: 100px;
  height: 100px;
  margin: 0 auto 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.frame-design-option .cb-flier-preview-card .cb-flier-photo-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame-design-option .cb-flier-preview-card.cb-flier-1 .cb-flier-photo-wrap {
  padding: 4px 4px 12px;
  width: 108px;
  height: auto;
  min-height: 100px;
}
.frame-design-option .cb-flier-preview-card.cb-flier-1 .cb-flier-photo-wrap img {
  width: 100px;
  height: 100px;
}
.frame-design-option .cb-flier-preview-card.cb-flier-2 .cb-flier-2-body { padding: 8px 6px 6px; }
.frame-design-option .cb-flier-preview-card.cb-flier-2 .cb-flier-photo-wrap {
  width: 100px;
  height: 88px;
  padding: 4px;
  margin-bottom: 6px;
}
.frame-design-option .cb-flier-preview-card.cb-flier-2 .cb-flier-photo-wrap img {
  width: 92px;
  height: 80px;
}
.frame-design-option .cb-flier-preview-card.cb-flier-2 .cb-flier-2-name-banner {
  font-size: 0.7rem;
  padding: 4px 10px;
}
.frame-design-option .cb-flier-preview-card.cb-flier-2 .cb-flier-2-top,
.frame-design-option .cb-flier-preview-card.cb-flier-2 .cb-flier-2-bottom { height: 10px; }
.frame-design-option .cb-flier-preview-card.cb-flier-3 .cb-flier-photo-wrap { width: 90px; height: 90px; border-radius: 50%; padding: 6px; }
.frame-design-option .cb-flier-preview-card.cb-flier-3 .cb-flier-photo-wrap img { width: 78px; height: 78px; border-radius: 50%; }
.frame-design-option .cb-flier-preview-card.cb-flier-4 .cb-flier-photo-wrap { padding: 4px; }
.frame-design-option .cb-flier-preview-card.cb-flier-4 .cb-flier-photo-wrap img { width: 92px; height: 92px; }

.flier-preview-placeholder {
  font-size: 0.6rem;
  color: #999;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  z-index: 0;
}
.form-group-frame.has-frame-photo .flier-preview-placeholder { display: none; }

.existing-flier-preview .cb-flier-preview-card {
  width: 200px;
  margin: 0 auto;
}
.existing-flier-preview .cb-flier-preview-card .cb-flier-photo-wrap {
  width: 160px;
  height: 160px;
  margin: 0 auto 8px;
}
.existing-flier-preview .cb-flier-preview-card.cb-flier-1 .cb-flier-photo-wrap { width: 168px; padding: 8px 8px 20px; }
.existing-flier-preview .cb-flier-preview-card.cb-flier-1 .cb-flier-photo-wrap img { width: 152px; height: 152px; }
.existing-flier-preview .cb-flier-preview-card.cb-flier-2 .cb-flier-photo-wrap { width: 160px; height: 140px; }
.existing-flier-preview .cb-flier-preview-card.cb-flier-2 .cb-flier-photo-wrap img { width: 148px; height: 128px; }

.frame-design-selector { margin-top: 16px; }
.frame-design-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 10px;
}
.frame-design-options { display: flex; flex-wrap: wrap; gap: 12px; }
.frame-design-option {
  flex: 0 0 auto;
  cursor: pointer;
  text-align: center;
  border: 2px solid #eee;
  border-radius: 14px;
  padding: 10px;
  transition: all 0.2s;
  background: #fff;
}
.frame-design-option:hover { border-color: #ffccd5; }
.frame-design-option.selected,
.frame-design-option:has(input:checked) {
  border-color: var(--primary-pink);
  background: #fff0f3;
  box-shadow: 0 2px 10px rgba(255, 77, 109, 0.15);
}
.frame-design-option input { display: none; }
.frame-design-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: #666;
}
.frame-design-option.selected .frame-design-name,
.frame-design-option:has(input:checked) .frame-design-name { color: var(--primary-pink); }

/* ---------- Note notifications (same as bemyval: top right) ---------- */
.note-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--primary-pink);
  color: white;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(255, 77, 109, 0.4);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Dancing Script', cursive;
  letter-spacing: 0.5px;
  animation: cb-bounceIn 0.6s ease-out, cb-bounce 2s infinite 0.6s;
  transition: transform 0.2s;
}
.note-notification:hover {
  transform: scale(1.05);
}
.note-notification.reply-notification {
  top: 100px;
}
.note-notification.reply-notification.cb-reply-only {
  top: 20px;
}
.note-icon {
  font-size: 1.5rem;
  animation: cb-heartBeat 1.5s infinite;
}
.note-icon svg {
  display: block;
}
@keyframes cb-bounceIn {
  0% {
    transform: translateX(400px) scale(0.3);
    opacity: 0;
  }
  50% {
    transform: translateX(-10px) scale(1.05);
  }
  70% {
    transform: translateX(5px) scale(0.9);
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}
@keyframes cb-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes cb-heartBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(1); }
  75% { transform: scale(1.1); }
}

/* ---------- Note popup modals: clean card-on-soft-backdrop ---------- */
.note-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(245, 242, 255, 0.94);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  animation: cb-fadeIn 0.3s ease-out;
  padding: 20px;
  box-sizing: border-box;
}
.note-popup.hidden {
  display: none !important;
}
.note-paper {
  background: #fff8e7;
  width: 90%;
  max-width: 500px;
  min-height: 250px;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: rotate(-1deg);
  animation: cb-paperDrop 0.5s ease-out;
  border: 1px solid #e8dcc0;
}
.note-paper.cb-note-paper-deck {
  max-width: 420px;
  height: 85vh;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px 24px 20px;
  background: #e8f4fc;
  border: 1px solid rgba(147, 197, 253, 0.35);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 12px 40px rgba(59, 130, 246, 0.06);
  position: relative;
}
.cb-cards-deck-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
}
/* Keep close button absolutely positioned (do not override with position: relative) */
.note-paper.cb-note-paper-deck .note-close { position: absolute; top: 15px; right: 20px; z-index: 10; }
.note-paper.cb-note-paper-deck .cb-modal-title,
.note-paper.cb-note-paper-deck .cb-cards-carousel-counter,
.note-paper.cb-note-paper-deck .birthday-note-card-carousel,
.note-paper.cb-note-paper-deck .cb-cards-carousel-nav,
.note-paper.cb-note-paper-deck .cb-cards-deck { position: relative; z-index: 1; }

/* Minimalistic trace: balloons (outline only) – larger */
.cb-deco-balloon {
  position: absolute;
  width: 28px;
  height: 34px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: transparent;
  border: 1px solid rgba(100, 116, 139, 0.22);
}
.cb-deco-balloon::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 18px;
  background: rgba(100, 116, 139, 0.2);
}
.cb-deco-b1 { top: 14px; left: 12px; transform: rotate(-12deg); border-color: rgba(255, 182, 193, 0.35); }
.cb-deco-b1::after { background: rgba(100, 116, 139, 0.18); }
.cb-deco-b2 { top: 22px; right: 16px; transform: rotate(6deg); width: 22px; height: 28px; border-color: rgba(147, 197, 253, 0.35); }
.cb-deco-b3 { bottom: 72px; left: 8px; transform: rotate(-6deg); width: 24px; height: 30px; border-color: rgba(254, 215, 170, 0.35); }
.cb-deco-b4 { bottom: 62px; right: 12px; transform: rotate(4deg); width: 20px; height: 26px; border-color: rgba(196, 181, 253, 0.3); }
.cb-deco-b5 { top: 18%; left: 8%; transform: rotate(-8deg); width: 20px; height: 26px; border-color: rgba(134, 239, 172, 0.32); }
.cb-deco-b6 { top: 28%; right: 6%; transform: rotate(10deg); width: 22px; height: 28px; border-color: rgba(253, 186, 116, 0.33); }
.cb-deco-b7 { bottom: 38%; left: 5%; transform: rotate(-5deg); width: 18px; height: 24px; border-color: rgba(251, 113, 133, 0.3); }
.cb-deco-b8 { bottom: 22%; right: 8%; transform: rotate(7deg); width: 24px; height: 30px; border-color: rgba(147, 197, 253, 0.32); }

/* Minimalistic trace: flowers (centre + 5 petal outlines) – larger, scattered */
.cb-deco-flower {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(251, 113, 133, 0.28);
  box-shadow: 0 -14px 0 -3px rgba(251, 113, 133, 0.26), 11px 8px 0 -3px rgba(251, 113, 133, 0.26), -11px 8px 0 -3px rgba(251, 113, 133, 0.26), 11px -8px 0 -3px rgba(251, 113, 133, 0.26), -11px -8px 0 -3px rgba(251, 113, 133, 0.26);
}
.cb-deco-f1 { top: 52px; left: 20px; }
.cb-deco-f2 { top: 42px; right: 24px; transform: scale(0.95); border-color: rgba(167, 139, 250, 0.28); box-shadow: 0 -14px 0 -3px rgba(167, 139, 250, 0.24), 11px 8px 0 -3px rgba(167, 139, 250, 0.24), -11px 8px 0 -3px rgba(167, 139, 250, 0.24), 11px -8px 0 -3px rgba(167, 139, 250, 0.24), -11px -8px 0 -3px rgba(167, 139, 250, 0.24); }
.cb-deco-f3 { bottom: 88px; right: 18px; transform: scale(0.9); border-color: rgba(253, 186, 116, 0.26); box-shadow: 0 -14px 0 -3px rgba(253, 186, 116, 0.24), 11px 8px 0 -3px rgba(253, 186, 116, 0.24), -11px 8px 0 -3px rgba(253, 186, 116, 0.24), 11px -8px 0 -3px rgba(253, 186, 116, 0.24), -11px -8px 0 -3px rgba(253, 186, 116, 0.24); }
.cb-deco-f4 { top: 35%; left: 6%; transform: scale(0.85); border-color: rgba(251, 113, 133, 0.26); box-shadow: 0 -14px 0 -3px rgba(251, 113, 133, 0.24), 11px 8px 0 -3px rgba(251, 113, 133, 0.24), -11px 8px 0 -3px rgba(251, 113, 133, 0.24), 11px -8px 0 -3px rgba(251, 113, 133, 0.24), -11px -8px 0 -3px rgba(251, 113, 133, 0.24); }
.cb-deco-f5 { top: 55%; right: 5%; transform: scale(0.9); border-color: rgba(167, 139, 250, 0.26); box-shadow: 0 -14px 0 -3px rgba(167, 139, 250, 0.24), 11px 8px 0 -3px rgba(167, 139, 250, 0.24), -11px 8px 0 -3px rgba(167, 139, 250, 0.24), 11px -8px 0 -3px rgba(167, 139, 250, 0.24), -11px -8px 0 -3px rgba(167, 139, 250, 0.24); }
.cb-deco-f6 { bottom: 45%; left: 10%; transform: scale(0.88); border-color: rgba(253, 186, 116, 0.26); box-shadow: 0 -14px 0 -3px rgba(253, 186, 116, 0.24), 11px 8px 0 -3px rgba(253, 186, 116, 0.24), -11px 8px 0 -3px rgba(253, 186, 116, 0.24), 11px -8px 0 -3px rgba(253, 186, 116, 0.24), -11px -8px 0 -3px rgba(253, 186, 116, 0.24); }

/* Minimalistic trace: candles (outline body + small flame) */
.cb-deco-candle {
  position: absolute;
  width: 8px;
  height: 20px;
  background: transparent;
  border: 1px solid rgba(100, 116, 139, 0.24);
  border-radius: 1px;
}
.cb-deco-candle::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 10px;
  border-radius: 50% 50% 45% 45%;
  background: transparent;
  border: 1px solid rgba(251, 146, 60, 0.35);
}
.cb-deco-c1 { top: 12%; right: 22%; transform: rotate(3deg); }
.cb-deco-c2 { top: 48%; left: 4%; transform: rotate(-4deg); }
.cb-deco-c3 { top: 42%; right: 12%; transform: rotate(2deg); }
.cb-deco-c4 { bottom: 35%; left: 18%; transform: rotate(-2deg); }
.cb-deco-c5 { bottom: 12%; right: 28%; transform: rotate(5deg); }

/* Minimalistic trace: gift boxes (outline only + small bow) – larger */
.cb-deco-gift {
  position: absolute;
  width: 32px;
  height: 24px;
  background: transparent;
  border: 1px solid rgba(100, 116, 139, 0.22);
  border-radius: 2px;
}
.cb-deco-gift::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 10px solid transparent;
  border-bottom-color: rgba(251, 113, 133, 0.3);
}
.cb-deco-gift::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 100%;
  background: rgba(251, 113, 133, 0.22);
}
.cb-deco-g1 { bottom: 16px; right: 14px; }
.cb-deco-g2 { bottom: 24px; left: 10px; width: 26px; height: 20px; transform: rotate(-5deg); border-color: rgba(147, 197, 253, 0.25); }
.cb-deco-g2::before { border-left-width: 6px; border-right-width: 6px; border-bottom-width: 8px; border-bottom-color: rgba(147, 197, 253, 0.28); }
.cb-deco-g2::after { background: rgba(147, 197, 253, 0.2); }
.cb-deco-g3 { top: 68px; right: 10px; width: 24px; height: 18px; transform: rotate(3deg); border-color: rgba(253, 186, 116, 0.25); }
.cb-deco-g3::before { border-left-width: 6px; border-right-width: 6px; border-bottom-width: 8px; border-bottom-color: rgba(253, 186, 116, 0.28); }
.cb-deco-g3::after { background: rgba(253, 186, 116, 0.2); }
.cb-deco-g4 { top: 22%; left: 12%; width: 22px; height: 16px; transform: rotate(-8deg); border-color: rgba(134, 239, 172, 0.26); }
.cb-deco-g4::before { border-left-width: 6px; border-right-width: 6px; border-bottom-width: 8px; border-bottom-color: rgba(134, 239, 172, 0.3); }
.cb-deco-g4::after { background: rgba(134, 239, 172, 0.2); }
.cb-deco-g5 { top: 60%; right: 18%; width: 20px; height: 14px; transform: rotate(6deg); border-color: rgba(251, 113, 133, 0.26); }
.cb-deco-g5::before { border-left-width: 5px; border-right-width: 5px; border-bottom-width: 7px; border-bottom-color: rgba(251, 113, 133, 0.3); }
.cb-deco-g5::after { background: rgba(251, 113, 133, 0.2); }
.cb-deco-g6 { bottom: 28%; right: 6%; width: 24px; height: 18px; transform: rotate(-3deg); border-color: rgba(196, 181, 253, 0.26); }
.cb-deco-g6::before { border-left-width: 6px; border-right-width: 6px; border-bottom-width: 8px; border-bottom-color: rgba(196, 181, 253, 0.3); }
.cb-deco-g6::after { background: rgba(196, 181, 253, 0.2); }
.cb-deco-g4 { top: 32%; left: 12%; width: 22px; height: 16px; transform: rotate(-10deg); border-color: rgba(251, 113, 133, 0.24); }
.cb-deco-g4::before { border-left-width: 6px; border-right-width: 6px; border-bottom-width: 8px; border-bottom-color: rgba(251, 113, 133, 0.28); }
.cb-deco-g5 { top: 62%; right: 16%; width: 20px; height: 14px; transform: rotate(8deg); border-color: rgba(167, 139, 250, 0.24); }
.cb-deco-g5::before { border-left-width: 5px; border-right-width: 5px; border-bottom-width: 7px; border-bottom-color: rgba(167, 139, 250, 0.28); }
.cb-deco-g6 { bottom: 28%; left: 6%; width: 24px; height: 18px; transform: rotate(-6deg); border-color: rgba(134, 239, 172, 0.26); }
.cb-deco-g6::before { border-left-width: 6px; border-right-width: 6px; border-bottom-width: 8px; border-bottom-color: rgba(134, 239, 172, 0.3); }
.cb-deco-g6::after { background: rgba(134, 239, 172, 0.2); }

.note-paper.cb-note-paper-deck .cb-modal-title {
  flex-shrink: 0;
  margin: 0 0 8px;
}
.cb-modal-watermark { font-size: 1.15rem !important; }
.cb-watermark-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.cb-watermark-link:hover {
  text-decoration: underline;
}
.cb-leave-confirm-overlay {
  animation: cb-fadeIn 0.2s ease-out;
}
.cb-leave-confirm-overlay:not(.hidden) {
  display: flex !important;
}
.cb-leave-confirm-paper {
  animation: cb-fadeIn 0.25s ease-out;
}
.cb-modal-watermark.cb-watermark-hidden {
  visibility: hidden;
  height: 0;
  margin: 0;
  overflow: hidden;
}
.cb-cards-carousel-counter {
  flex-shrink: 0;
}
.birthday-note-card-carousel {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}
/* Cover card (flier) as first carousel item */
.birthday-note-card-cover {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}
.cb-cover-card-wrap {
  width: 100%;
  max-width: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cb-cover-card-wrap .flier-polaroid {
  flex-shrink: 0;
}
/* Cover in modal: no border/shadow so it blends with container */
.note-paper.cb-note-paper-deck .birthday-note-card-cover .cb-cover-card-wrap .flier-polaroid {
  box-shadow: none;
  border: none;
}
.cb-cover-next-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--primary-pink);
  background: white;
  color: var(--primary-pink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.cb-cover-next-btn:hover {
  background: var(--primary-pink);
  color: white;
  transform: translateY(-50%) scale(1.05);
}
.birthday-note-card-carousel .birthday-note-paper {
  max-height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.birthday-note-card-carousel .birthday-note-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.birthday-note-card-carousel .birthday-note-handwriting {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  font-size: clamp(1rem, 2.8vh, 1.75rem);
  line-height: 1.6;
  letter-spacing: 0.02em;
  word-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
.birthday-note-card-carousel .birthday-note-signature {
  font-size: clamp(0.95rem, 2.2vh, 1.5rem);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  -webkit-font-smoothing: antialiased;
}
.birthday-note-card-write .cb-card-write-cta {
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: center;
  color: inherit;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  display: block;
  text-decoration: none;
}
.birthday-note-card-write .birthday-note-paper {
  transition: transform 0.2s ease;
}
.birthday-note-card-write .cb-card-write-cta:hover .birthday-note-paper,
.birthday-note-card-write .cb-card-write-cta:focus .birthday-note-paper {
  transform: translateY(-2px);
}
.birthday-note-card-write .cb-card-write-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 16px;
  min-height: 120px;
}
.cb-card-write-icon {
  font-size: 1rem;
  color: var(--primary-pink);
  opacity: 0.7;
}
.cb-card-write-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.3;
}
.cb-cards-carousel-nav {
  flex-shrink: 0;
}
.note-paper::before {
  display: none;
}
.cb-write-preview-card-wrap {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
}
.cb-preview-theme-random {
  position: absolute;
  top: -10px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  background: #ffc0cb;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  z-index: 5;
}
.cb-preview-theme-random svg {
  width: 14px;
  height: 14px;
}
.cb-preview-theme-random:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.cb-preview-theme-random:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}
.cb-write-preview-card-wrap .birthday-note-card {
  margin: 0;
  transform: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
.cb-write-preview-card-wrap .birthday-note-handwriting,
.cb-write-preview-card-wrap .birthday-note-signature {
  font-size: 1rem;
  line-height: 1.6;
}
.note-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #999;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  z-index: 10;
}
.note-close:hover {
  color: var(--primary-pink);
}
@keyframes cb-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes cb-paperDrop {
  0% {
    transform: rotate(-2deg) scale(0.96);
    opacity: 0;
  }
  100% {
    transform: rotate(-0.5deg) scale(1);
    opacity: 1;
  }
}

.cb-cards-carousel-counter {
  text-align: center;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--cb-text-muted);
  font-weight: 600;
}
.birthday-note-card-carousel .birthday-note-paper {
  transform: none;
  animation: none;
  margin: 0 auto;
  max-width: 100%;
  padding: 24px 24px 20px 28px;
}
.cb-cards-carousel-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 5;
}
.cb-carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--primary-pink);
  background: white;
  color: var(--primary-pink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(255, 77, 109, 0.2);
}
.cb-carousel-btn:hover:not(:disabled) {
  background: var(--primary-pink);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 77, 109, 0.3);
}
.cb-carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: #ccc;
  color: #ccc;
}
.cb-cards-deck-empty {
  padding: 24px 20px;
}
.cb-cards-deck-empty .cb-empty-state {
  margin: 0;
  text-align: center;
}
.cb-add-card-inline .cb-form-group { margin-bottom: 16px; }
.cb-add-card-inline .cb-button { width: 100%; margin-top: 8px; }

@media (max-width: 768px) {
  #cb-write-modal {
    padding: 12px 8px;
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: 100vh;
  }
  #cb-write-modal .note-paper.cb-note-paper-write {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 20px 16px;
    margin: auto 0;
    flex-shrink: 0;
  }
  #cb-write-modal .note-paper.cb-note-paper-write .note-close { top: 10px; right: 12px; font-size: 1.75rem; }
  #cb-write-modal .note-paper.cb-note-paper-write > div[style*="text-align"] p { font-size: 1rem; }
  #cb-write-modal .cb-form-group { margin-bottom: 14px; }
  #cb-write-modal .cb-form-group label { font-size: 0.85rem; }
  #cb-write-modal .cb-form-group input,
  #cb-write-modal .cb-form-group textarea {
    padding: 10px 12px;
    font-size: 16px;
    min-height: 44px;
  }
  #cb-write-modal .cb-form-group textarea { min-height: 80px; resize: vertical; }
  #cb-write-modal .cb-button { padding: 12px 16px; font-size: 0.95rem; }
  #cb-write-modal .cb-write-preview-card-wrap { max-width: 100%; }
  #cb-write-modal .cb-write-preview-card-wrap .birthday-note-paper { padding: 16px 14px; }
  #cb-write-modal .cb-write-preview-card-wrap .birthday-note-handwriting { font-size: 1rem; }
  #cb-write-modal #cb-write-preview-step > div:last-child { flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  #cb-write-modal #cb-write-preview-step .cb-button { flex: 1; min-width: 100px; }
  #cb-write-modal .theme-selector-inline { gap: 6px; flex-wrap: wrap; }
  #cb-write-modal .theme-selector-inline .theme-option { padding: 5px 8px; font-size: 0.7rem; border-radius: 8px; border-width: 1.5px; }
}

@media (max-width: 480px) {
  .note-notification { top: 12px; right: 12px; padding: 10px 14px; font-size: 0.85rem; }
  .note-notification.reply-notification { top: 80px; }
  .note-notification.reply-notification.cb-reply-only { top: 12px; }
  #cb-write-modal { padding: 8px 4px; }
  #cb-write-modal .note-paper.cb-note-paper-write { padding: 16px 12px; }
  #cb-write-modal .note-paper.cb-note-paper-write > div[style*="text-align"] p { font-size: 0.95rem; }
  #cb-write-modal .cb-form-group label { font-size: 0.8rem; }
  #cb-write-modal .cb-form-group input,
  #cb-write-modal .cb-form-group textarea { padding: 10px; }
  #cb-write-modal .theme-selector-inline .theme-option { padding: 5px 8px; font-size: 0.7rem; border-radius: 8px; border-width: 1.5px; }
}

/* Mobile: app.html creator page */
@media (max-width: 768px) {
  .cb-creator-page .cb-container {
    padding: 12px 16px 24px;
    max-width: 100%;
  }
  .cb-creator-page .cb-main {
    padding-top: 70px;
  }
  .creator-header {
    padding-bottom: 16px;
  }
  .creator-header-title {
    font-size: 1.75rem;
  }
  .creator-header-tagline {
    font-size: 0.8rem;
  }
  .creator-card {
    padding: 20px 16px;
    border-radius: 20px;
    margin-top: 0;
  }
  .app-url-field .app-url-prefix {
    font-size: 0.75rem;
    padding: 10px 8px;
  }
  .app-url-input-wrap {
    flex-wrap: wrap;
  }
  .app-url-slug-input {
    min-width: 0;
    font-size: 0.85rem;
  }
  /* Animation selector: horizontal scroll on mobile (like BeMyVal "Choose a Cute Icon") */
  .form-group-intro .animation-selector {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .animation-option {
    flex: 0 0 auto;
    min-width: 72px;
    max-width: 88px;
    padding: 8px 6px 8px;
  }
  .animation-preview,
  .animation-preview:has(img.animation-preview-gif) {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }
  .animation-preview-gif {
    width: 100%;
    height: 100%;
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
  }
  .animation-option-label {
    font-size: 0.65rem;
  }
  .theme-selector {
    flex-wrap: wrap;
    gap: 10px;
  }
  .cb-upload-frame,
  .cb-upload-inner {
    min-height: 120px;
  }
  .cb-form-actions .cb-button {
    width: 100%;
    padding: 14px 20px;
  }
  /* Preview modals: publish popup & share modal */
  .cb-publish-popup-overlay {
    padding: 12px !important;
  }
  .cb-publish-popup-inner {
    max-width: calc(100vw - 24px) !important;
    width: 100% !important;
    padding: 20px 16px !important;
    margin: 0;
  }
  .cb-publish-popup-title,
  #cb-publish-popup h2 {
    font-size: 1.4rem !important;
    margin-bottom: 12px !important;
  }
  .cb-publish-popup-url-wrap {
    padding: 12px !important;
    margin-bottom: 14px !important;
  }
  .cb-publish-popup-benefits {
    margin-bottom: 14px !important;
  }
  .cb-publish-popup-btns {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
  }
  .cb-publish-popup-btns button,
  .cb-publish-popup-btns a {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 10px 12px !important;
    font-size: 0.85rem !important;
  }
  .cb-share-modal {
    max-width: calc(100vw - 32px) !important;
    padding: 24px 20px !important;
  }
  .cb-share-modal-title {
    font-size: 1.4rem !important;
  }
  .cb-share-float {
    right: 12px;
    bottom: 12px;
  }
  .cb-share-toggle-btn {
    width: 44px;
    height: 44px;
  }
}

/* Mobile: card dimensions for view site, preview, and modals */
/* Wider + longer, fit to screen: use most of viewport width */
@media (max-width: 768px) {
  :root {
    --cb-mobile-card-w: calc(100vw - 16px);
    --cb-mobile-card-aspect: 4 / 5;
  }
  /* Container: equal padding so card is centered */
  .cb-view-site .cb-container,
  .cb-preview .cb-container {
    padding: 24px 8px 24px;
    max-width: 100%;
  }
  /* Hero: equal top/bottom padding, no side padding */
  .cb-view-site .cb-birthday-hero,
  .cb-preview .cb-birthday-hero {
    padding: 32px 0 32px;
    max-width: 100%;
  }
  /* Main birthday card (cover): fit to screen, full width */
  .cb-view-site .cb-birthday-flier-wrap,
  .cb-preview .cb-birthday-flier-wrap {
    width: 100%;
  }
  .cb-view-site .cb-birthday-flier-wrap .cb-flier-macro-wrap,
  .cb-view-site .cb-birthday-flier-wrap .cb-birthday-flier,
  .cb-preview .cb-birthday-flier-wrap .cb-flier-macro-wrap,
  .cb-preview .cb-birthday-flier-wrap .cb-birthday-flier {
    transform: none !important;
    transform-origin: center top;
    max-width: var(--cb-mobile-card-w);
    width: 100%;
    display: block;
  }
  .cb-view-site .cb-birthday-flier-wrap,
  .cb-preview .cb-birthday-flier-wrap {
    padding-bottom: 120px;
  }
  /* Flier inner: remove rotate on mobile */
  .cb-view-site .cb-flier-1 .cb-flier-photo-wrap,
  .cb-view-site .cb-flier-2 .cb-flier-photo-wrap,
  .cb-preview .cb-flier-1 .cb-flier-photo-wrap,
  .cb-preview .cb-flier-2 .cb-flier-photo-wrap,
  .cb-flier-1 .cb-flier-photo-wrap,
  .cb-flier-2 .cb-flier-photo-wrap,
  .cb-flier-3 .cb-flier-photo-wrap,
  .cb-flier-4 .cb-flier-photo-wrap,
  .cb-flier-5 .cb-flier-photo-wrap,
  .cb-flier-6 .cb-flier-photo-wrap,
  .cb-flier-7 .cb-flier-photo-wrap {
    transform: none !important;
  }
  .cb-flier-1, .cb-flier-2, .cb-flier-3, .cb-flier-4, .cb-flier-5, .cb-flier-6, .cb-flier-7 {
    max-width: var(--cb-mobile-card-w);
    width: 100%;
  }
  /* Flier polaroid (cover): same dimension as notes, aspect-ratio 4:5 */
  .flier-polaroid,
  .flier-polaroid-design-1,
  .flier-polaroid-design-2,
  .flier-polaroid-design-3,
  .flier-polaroid-design-4,
  .flier-polaroid-design-5,
  .flier-polaroid-design-6,
  .flier-polaroid-design-7 {
    max-width: var(--cb-mobile-card-w) !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: var(--cb-mobile-card-aspect);
  }
  .flier-polaroid-design-1 { aspect-ratio: 1; }
  .flier-polaroid-design-2 { aspect-ratio: 1; }
  .flier-polaroid-design-3 { aspect-ratio: 1; }
  .flier-polaroid-design-4 { aspect-ratio: 1; }
  .flier-polaroid-design-5 { aspect-ratio: 1; }
  .flier-polaroid-design-6 { aspect-ratio: 1; }
  /* Birthday note cards: NO slant on mobile */
  .cb-notes-grid .birthday-note-card:nth-child(n) {
    --note-rotate: 0deg;
  }
  /* Note paper deck (cards modal): wider, fit to screen */
  .note-paper.cb-note-paper-deck {
    max-width: 100vw;
    width: 100%;
    height: auto;
    min-height: 70vh;
    max-height: 90vh;
    padding: 12px 8px;
  }
  .note-paper.cb-note-paper-deck .birthday-note-card-carousel .birthday-note-paper {
    transform: none !important;
    /* Same dimension as cover: width + aspect-ratio 4:5 */
    max-width: var(--cb-mobile-card-w);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: var(--cb-mobile-card-aspect);
    min-height: 0;
    height: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
    padding: 18px 16px 16px;
  }
  .note-paper.cb-note-paper-deck .birthday-note-card-carousel .birthday-note-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .note-paper.cb-note-paper-deck .birthday-note-card-carousel .birthday-note-handwriting {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    font-size: 1.2rem;
    line-height: 1.55;
    margin-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }
  .note-paper.cb-note-paper-deck .birthday-note-card-carousel .birthday-note-signature {
    flex-shrink: 0;
    font-size: 1.05rem;
    padding-right: 4px;
  }
  .note-paper.cb-note-paper-deck .birthday-note-card-write .birthday-note-paper {
    aspect-ratio: var(--cb-mobile-card-aspect);
  }
  /* Cover card in modal: same dimensions as note paper */
  .note-paper.cb-note-paper-deck .cb-cover-card-wrap {
    max-width: var(--cb-mobile-card-w);
    width: 100%;
  }
  .note-paper.cb-note-paper-deck .cb-cover-card-wrap .flier-polaroid {
    max-width: var(--cb-mobile-card-w) !important;
    width: 100% !important;
    aspect-ratio: var(--cb-mobile-card-aspect);
  }
  /* Flier modal (replace card): fit screen, scale card to fit */
  .flier-modal-preview-wrap {
    margin-bottom: 16px;
    min-height: 280px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 0;
  }
  .flier-modal-preview-wrap .flier-modal-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .flier-modal-preview-wrap .flier-modal-slide.hidden {
    display: none !important;
  }
  .flier-modal-preview-wrap .flier-polaroid {
    /* Keep design at 320x400; scale down to fit so layout is not distorted */
    max-width: none !important;
    width: 320px !important;
    height: 400px !important;
    transform: scale(0.85);
    transform-origin: center center;
    margin: 0 auto;
  }
  .flier-modal-inner {
    max-width: calc(100vw - 24px);
    max-height: 90vh;
    padding: 20px 16px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    -webkit-overflow-scrolling: touch;
  }
  .flier-modal-inner .flier-modal-preview-wrap {
    flex-shrink: 0;
  }
  .flier-modal-inner .flier-modal-design-switcher {
    margin: 12px 0 8px;
    flex-shrink: 0;
  }
  .flier-modal-inner .flier-use-btn {
    flex-shrink: 0;
    min-height: 48px;
    padding: 12px 28px;
    font-size: 0.95rem;
  }
  .cb-flier-design-toggle {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
  }
  /* Preview bar: keep on one line, compact on mobile */
  .cb-preview-bar {
    padding: 8px 12px !important;
  }
  .cb-preview-bar-inner {
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }
  .cb-preview-bar-left {
    gap: 8px !important;
    min-width: 0;
  }
  .cb-preview-bar-logo img {
    width: 24px !important;
    height: 24px !important;
  }
  .cb-preview-bar-text-full {
    display: none !important;
  }
  .cb-preview-bar-text-short {
    display: inline !important;
    font-size: 0.8rem !important;
  }
  .cb-preview-bar-btns {
    gap: 6px !important;
  }
  .cb-preview-bar-btns a,
  .cb-preview-bar-btns button {
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
  }
  .cb-preview-bar-btns svg {
    width: 12px !important;
    height: 12px !important;
  }
  .cb-preview-spacer {
    padding-top: 44px !important;
  }
}

@media (max-width: 600px) {
  .note-paper.cb-note-paper-deck {
    max-width: var(--cb-mobile-card-w);
    padding: 12px;
  }
}

/* Replace card modal: extra tweaks for narrow phones */
@media (max-width: 480px) {
  .flier-modal-preview-wrap .flier-polaroid {
    transform: scale(0.78);
  }
  .flier-modal-inner {
    padding: 16px 12px 20px;
  }
}

.cb-cards-section { margin-top: 24px; }
.cb-cards-section-title { font-size: 1.2rem; margin-bottom: 16px; }

.cb-add-card {
  background: #fff8f9;
  border: 2px solid #ffccd5;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

/* ---------- Birthday cards: love-note style (like BeMyVal) ---------- */
.cb-notes-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.birthday-note-card {
  opacity: 0;
  animation: paperDrop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.birthday-note-paper {
  background: #fefefe;
  min-height: 200px;
  padding: 28px 24px 24px 28px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 8px 32px rgba(0, 0, 0, 0.06);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 1px solid rgba(255, 77, 109, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.birthday-note-card:hover .birthday-note-paper {
  transform: translateY(-4px) rotate(0deg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 16px 48px rgba(0, 0, 0, 0.06);
}

/* Theme: clean solid pastels with very faint left accent */
.birthday-note-theme-pink .birthday-note-paper { background: #fffbfc; border-left-color: rgba(255, 77, 109, 0.14); }
.birthday-note-theme-rose .birthday-note-paper { background: #fff9f7; border-left-color: rgba(224, 122, 107, 0.14); }
.birthday-note-theme-gold .birthday-note-paper { background: #fffef8; border-left-color: rgba(201, 162, 39, 0.14); }
.birthday-note-theme-mint .birthday-note-paper { background: #f7fdf9; border-left-color: rgba(92, 184, 138, 0.14); }
.birthday-note-theme-lavender .birthday-note-paper { background: #faf8ff; border-left-color: rgba(155, 135, 196, 0.14); }
.birthday-note-theme-sky .birthday-note-paper { background: #f6faff; border-left-color: rgba(91, 155, 213, 0.14); }
.birthday-note-theme-blue .birthday-note-paper { background: #f6faff; border-left-color: rgba(91, 155, 213, 0.14); }
.birthday-note-theme-green .birthday-note-paper { background: #f7fdf9; border-left-color: rgba(92, 184, 138, 0.14); }
.birthday-note-theme-purple .birthday-note-paper { background: #faf8ff; border-left-color: rgba(155, 135, 196, 0.14); }
.birthday-note-theme-milk .birthday-note-paper { background: #fffef9; border-left-color: rgba(0, 0, 0, 0.06); }

.birthday-note-paper::before {
  display: none;
}

.birthday-note-content { position: relative; z-index: 1; }

.birthday-note-handwriting {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  line-height: 1.7;
  color: #333;
  text-align: left;
  white-space: pre-wrap;
  word-wrap: break-word;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}

.birthday-note-signature {
  font-family: 'Dancing Script', cursive;
  font-size: 1.35rem;
  color: var(--primary-pink);
  text-align: right;
  transform: rotate(-1deg);
  padding-right: 8px;
}

.birthday-note-signature time {
  font-size: 1rem;
  color: var(--cb-text-muted);
  font-weight: 400;
}

@keyframes paperDrop {
  0% {
    transform: translateY(24px) rotate(var(--note-rotate, -2deg));
    opacity: 0;
  }
  100% {
    transform: translateY(0) rotate(var(--note-rotate, -2deg));
    opacity: 1;
  }
}

/* Slight rotation variation per card (set via inline or nth-child) */
.birthday-note-card:nth-child(3n) { --note-rotate: 1.5deg; }
.birthday-note-card:nth-child(3n+1) { --note-rotate: -2deg; }
.birthday-note-card:nth-child(3n+2) { --note-rotate: -0.5deg; }

.cb-empty-state { color: var(--cb-text-muted); font-size: 0.95rem; margin-top: 12px; }

/* Share float (bemyval-style, dismissible) - above modals so it stays visible */
.cb-share-float {
  position: fixed;
  right: 20px;
  z-index: 2100;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cb-share-toggle-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--primary-pink);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  color: var(--primary-pink);
}
.cb-share-toggle-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 182, 193, 0.95);
  box-shadow: 0 6px 25px rgba(255, 77, 109, 0.3);
}
.cb-share-popup {
  position: fixed;
  right: 20px;
  z-index: 2099;
  max-width: 280px;
  width: 100%;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cb-share-popup-inner {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}
.cb-share-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.cb-share-popup-header span { color: var(--primary-pink); font-weight: 600; font-size: 0.9rem; }
.cb-share-popup-header button {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}
.cb-share-popup-header button:hover { color: var(--primary-pink); background: rgba(255, 182, 193, 0.2); }
.cb-share-popup-header-url {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.cb-share-popup-url {
  font-size: 0.8rem;
  color: var(--primary-pink);
  background: rgba(255, 182, 193, 0.15);
  padding: 4px 8px;
  border-radius: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.cb-share-popup-upgrade {
  flex-shrink: 0;
  color: var(--primary-pink);
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s;
}
.cb-share-popup-upgrade:hover {
  background: rgba(255, 182, 193, 0.2);
  color: var(--primary-pink);
}
.cb-share-popup-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.cb-share-btn {
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cb-share-whatsapp { background: #25D366; color: white; }
.cb-share-whatsapp:hover { background: #20BA5A; transform: translateY(-2px); }
.cb-share-facebook { background: #1877F2; color: white; }
.cb-share-facebook:hover { background: #166FE5; transform: translateY(-2px); }
.cb-share-twitter { background: #1DA1F2; color: white; }
.cb-share-twitter:hover { background: #1A91DA; transform: translateY(-2px); }
.cb-share-messenger { background: #0084FF; color: white; }
.cb-share-messenger:hover { background: #0073E6; transform: translateY(-2px); }
.cb-share-copy { background: var(--primary-pink); color: white; }
.cb-share-copy:hover { background: #ff8fa3; transform: translateY(-2px); }
.cb-share-copy.cb-share-copied { background: #1ed760; }

/* Share modal - minimalistic, bemyval-style */
.cb-share-modal-overlay {
  align-items: center;
  justify-content: center;
}
.cb-share-modal {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0,0,0,0.18);
  position: relative;
}
.cb-share-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #999;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}
.cb-share-modal-close:hover { color: var(--primary-pink); background: #f8f8f8; }
.cb-share-modal-title {
  color: var(--primary-pink);
  font-family: 'Dancing Script', cursive;
  font-size: 1.6rem;
  margin: 0 0 4px;
  text-align: center;
}
.cb-share-modal-sub {
  color: #666;
  font-size: 0.85rem;
  text-align: center;
  margin: 0 0 20px;
}
.cb-share-url-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f9fa;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 20px;
}
.cb-share-url {
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
  color: #555;
  word-break: break-all;
  background: none;
  border: none;
}
.cb-share-copy-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  background: var(--primary-pink);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.cb-share-copy-btn:hover { background: #ff8fa3; }
.cb-share-copy-btn.cb-copied { background: #22c55e; }
.cb-share-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.cb-share-btn {
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cb-share-btn svg { flex-shrink: 0; }
.cb-share-btn span { font-size: 0.75rem; }
.cb-share-whatsapp { background: #25D366; color: white; }
.cb-share-whatsapp:hover { background: #20BA5A; transform: translateY(-2px); }
.cb-share-messenger { background: #0084FF; color: white; }
.cb-share-messenger:hover { background: #0073E6; transform: translateY(-2px); }

/* Music float */
.cb-music-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
}
.cb-music-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--primary-pink);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: transform 0.2s;
}
.cb-music-btn:hover { transform: scale(1.08); }
.cb-spotify-wrap {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 300px;
  background: white;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.cb-spotify-wrap.hidden { display: none; }
.cb-spotify-wrap iframe { border-radius: 8px; display: block; }
#cb-spotify-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #999;
}
#cb-spotify-close:hover { color: var(--primary-pink); }

/* Collage modal */
.cb-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cb-modal.hidden { display: none; }
.cb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}
.cb-modal-inner {
  position: relative;
  max-width: 95%;
  max-height: 90vh;
  background: white;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.cb-modal-inner img { max-width: 100%; max-height: 85vh; object-fit: contain; display: block; border-radius: 8px; }
.cb-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1;
}

/* Flier preview modal: wide, minimal, polaroid-style (BeMyVal-inspired) */
.flier-preview-modal .cb-modal-backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); }
.flier-preview-modal .cb-modal-inner {
  padding: 32px 24px 24px;
  max-width: 500px;
  width: 90%;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  border: none;
  position: relative;
}
.flier-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
  position: relative;
}
.flier-modal-topbar .flier-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #ccc;
  font-size: 2rem;
  line-height: 0.8;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flier-modal-topbar .flier-nav-btn:hover {
  color: var(--primary-pink);
  transform: scale(1.2);
  background: transparent;
  border: none;
}
.flier-modal-counter {
  font-size: 0.8rem;
  font-weight: 600;
  color: #999;
  min-width: 72px;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.flier-modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f5f5f5;
  color: #999;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.flier-modal-close-btn:hover {
  background: #eee;
  color: #333;
  transform: rotate(90deg);
}
.flier-modal-preview-wrap {
  text-align: center;
  margin-bottom: 28px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sticker-picker {
  max-width: 520px;
  margin: 0 auto;
}
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
  max-height: 340px;
  overflow: auto;
  padding-right: 4px;
}
.sticker-item {
  border: none;
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.sticker-item img {
  max-width: 100%;
  max-height: 80px;
  display: block;
}
.sticker-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.sticker-item:focus-visible {
  outline: 2px solid var(--primary-pink);
  outline-offset: 2px;
}
/* Minimal polaroid frame: white, thin top/sides, thick bottom */
.flier-polaroid {
  display: inline-block;
  background: #fff;
  padding: 12px 12px 32px;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  max-width: 100%;
  transition: transform 0.3s ease;
}
.flier-polaroid-photo {
  display: block;
  overflow: hidden;
  background: #f9fafb;
  margin: 0 auto;
  width: 260px;
  max-width: 100%;
  aspect-ratio: 1;
}
.flier-polaroid-photo .flier-modal-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: top;
}
.flier-polaroid-name {
  margin: 16px 0 0;
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  font-weight: 600;
  color: #444;
  text-align: center;
}
.flier-use-btn {
  width: auto;
  min-width: 0;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: none;
  display: block;
  margin: 10px auto 0;
}

/* View site: hide header/footer on full-screen intro if desired; we keep them for nav */
.cb-view-site .cb-header { position: relative; z-index: 101; }

/* View site & preview: flier same size and slant as birthday cards (deck max 420px, rotate -2deg) */
.cb-view-site .cb-birthday-hero,
.cb-preview .cb-birthday-hero {
  padding-top: 20px;
}
.cb-view-site .cb-birthday-flier-wrap .cb-flier-macro-wrap,
.cb-view-site .cb-birthday-flier-wrap .cb-birthday-flier,
.cb-preview .cb-birthday-flier-wrap .cb-flier-macro-wrap,
.cb-preview .cb-birthday-flier-wrap .cb-birthday-flier {
  /* 320px flier → 420px to match .note-paper.cb-note-paper-deck max-width; same slant as cards */
  transform: scale(1.3125) rotate(-2deg);
  transform-origin: center top;
}
.cb-view-site .cb-birthday-flier-wrap,
.cb-preview .cb-birthday-flier-wrap {
  margin-top: 8px;
  padding-bottom: 180px;
}
/* Preview: pull main content up so card aligns with view-site (no extra gap from preview bar spacer) */
.cb-preview #main-content {
  margin-top: -40px;
}

/* ---------- Full-page background: trace decorations (view_site + preview) ---------- */
.cb-view-site .cb-main,
.cb-preview .cb-main { position: relative; }
.cb-view-site body,
.cb-preview body { background: transparent !important; }
.cb-view-site #intro-animation,
.cb-view-site #main-content,
.cb-preview #intro-animation,
.cb-preview #main-content { position: relative; z-index: 1; }
.cb-view-site .cb-intro-screen,
.cb-preview .cb-intro-screen { background: transparent !important; }
.cb-page-bg-deco {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #e8f4fc; /* default blue; overridden by .cb-bg-theme-* */
  pointer-events: none;
  overflow: hidden;
}
/* Page + card container (deck) + reply container (write) by default_card_theme */
.cb-bg-theme-pink .cb-page-bg-deco,
.cb-bg-theme-pink .note-paper.cb-note-paper-deck,
.cb-bg-theme-pink .note-paper.cb-note-paper-write { background: #fff0f5; }
.cb-bg-theme-pink .note-paper.cb-note-paper-deck,
.cb-bg-theme-pink .note-paper.cb-note-paper-write { border-color: rgba(255, 182, 193, 0.4); }
.cb-bg-theme-blue .cb-page-bg-deco,
.cb-bg-theme-blue .note-paper.cb-note-paper-deck,
.cb-bg-theme-blue .note-paper.cb-note-paper-write { background: #e8f4fc; }
.cb-bg-theme-blue .note-paper.cb-note-paper-deck,
.cb-bg-theme-blue .note-paper.cb-note-paper-write { border-color: rgba(147, 197, 253, 0.4); }
.cb-bg-theme-green .cb-page-bg-deco,
.cb-bg-theme-green .note-paper.cb-note-paper-deck,
.cb-bg-theme-green .note-paper.cb-note-paper-write { background: #e8f8ee; }
.cb-bg-theme-green .note-paper.cb-note-paper-deck,
.cb-bg-theme-green .note-paper.cb-note-paper-write { border-color: rgba(134, 239, 172, 0.4); }
.cb-bg-theme-gold .cb-page-bg-deco,
.cb-bg-theme-gold .note-paper.cb-note-paper-deck,
.cb-bg-theme-gold .note-paper.cb-note-paper-write { background: #fffef0; }
.cb-bg-theme-gold .note-paper.cb-note-paper-deck,
.cb-bg-theme-gold .note-paper.cb-note-paper-write { border-color: rgba(253, 224, 71, 0.4); }
.cb-bg-theme-purple .cb-page-bg-deco,
.cb-bg-theme-purple .note-paper.cb-note-paper-deck,
.cb-bg-theme-purple .note-paper.cb-note-paper-write { background: #f4f0ff; }
.cb-bg-theme-purple .note-paper.cb-note-paper-deck,
.cb-bg-theme-purple .note-paper.cb-note-paper-write { border-color: rgba(196, 181, 253, 0.4); }
.cb-bg-theme-milk .cb-page-bg-deco,
.cb-bg-theme-milk .note-paper.cb-note-paper-deck,
.cb-bg-theme-milk .note-paper.cb-note-paper-write { background: #fffef9; }
.cb-bg-theme-milk .note-paper.cb-note-paper-deck,
.cb-bg-theme-milk .note-paper.cb-note-paper-write { border-color: rgba(0, 0, 0, 0.08); }

/* Write modal: deco behind content (same as cards deck) */
.note-paper.cb-note-paper-write { position: relative; }
.note-paper.cb-note-paper-write .note-close { position: absolute; z-index: 10; }
.note-paper.cb-note-paper-write > div:not(.cb-cards-deck-deco) { position: relative; z-index: 1; }

.cb-page-bg-deco .cb-deco-balloon { width: 22px; height: 28px; }
.cb-page-bg-deco .cb-deco-balloon::after { height: 14px; }
.cb-page-bg-deco .cb-deco-flower { width: 8px; height: 8px; box-shadow: 0 -11px 0 -2px rgba(251,113,133,0.22), 9px 6px 0 -2px rgba(251,113,133,0.22), -9px 6px 0 -2px rgba(251,113,133,0.22), 9px -6px 0 -2px rgba(251,113,133,0.22), -9px -6px 0 -2px rgba(251,113,133,0.22); }
.cb-page-bg-deco .cb-deco-flower { border-width: 1px; }
.cb-page-bg-deco .cb-deco-candle { width: 6px; height: 16px; }
.cb-page-bg-deco .cb-deco-candle::before { width: 5px; height: 8px; top: -6px; }
.cb-page-bg-deco .cb-deco-gift { width: 20px; height: 14px; }
.cb-page-bg-deco .cb-deco-gift::before { border-left-width: 5px; border-right-width: 5px; border-bottom-width: 7px; top: -4px; }

/* Page bg: balloon positions (24) – flood viewport */
.cb-page-bg-deco .cb-pg-balloon-1 { top: 2%; left: 4%; transform: rotate(-10deg); }
.cb-page-bg-deco .cb-pg-balloon-2 { top: 2%; left: 22%; transform: rotate(5deg); }
.cb-page-bg-deco .cb-pg-balloon-3 { top: 2%; left: 40%; transform: rotate(-8deg); }
.cb-page-bg-deco .cb-pg-balloon-4 { top: 2%; left: 58%; transform: rotate(12deg); }
.cb-page-bg-deco .cb-pg-balloon-5 { top: 2%; left: 76%; transform: rotate(-5deg); }
.cb-page-bg-deco .cb-pg-balloon-6 { top: 2%; right: 4%; left: auto; transform: rotate(7deg); }
.cb-page-bg-deco .cb-pg-balloon-7 { top: 18%; left: 2%; transform: rotate(6deg); }
.cb-page-bg-deco .cb-pg-balloon-8 { top: 18%; left: 18%; transform: rotate(-12deg); }
.cb-page-bg-deco .cb-pg-balloon-9 { top: 18%; left: 36%; transform: rotate(3deg); }
.cb-page-bg-deco .cb-pg-balloon-10 { top: 18%; left: 54%; transform: rotate(-9deg); }
.cb-page-bg-deco .cb-pg-balloon-11 { top: 18%; left: 72%; transform: rotate(8deg); }
.cb-page-bg-deco .cb-pg-balloon-12 { top: 18%; right: 2%; left: auto; transform: rotate(-4deg); }
.cb-page-bg-deco .cb-pg-balloon-13 { top: 36%; left: 6%; transform: rotate(-7deg); }
.cb-page-bg-deco .cb-pg-balloon-14 { top: 36%; left: 24%; transform: rotate(10deg); }
.cb-page-bg-deco .cb-pg-balloon-15 { top: 36%; left: 42%; transform: rotate(-3deg); }
.cb-page-bg-deco .cb-pg-balloon-16 { top: 36%; left: 60%; transform: rotate(6deg); }
.cb-page-bg-deco .cb-pg-balloon-17 { top: 36%; left: 78%; transform: rotate(-11deg); }
.cb-page-bg-deco .cb-pg-balloon-18 { top: 52%; left: 3%; transform: rotate(4deg); }
.cb-page-bg-deco .cb-pg-balloon-19 { top: 52%; left: 20%; transform: rotate(-8deg); }
.cb-page-bg-deco .cb-pg-balloon-20 { top: 52%; left: 48%; transform: rotate(9deg); }
.cb-page-bg-deco .cb-pg-balloon-21 { top: 52%; right: 20%; left: auto; transform: rotate(-6deg); }
.cb-page-bg-deco .cb-pg-balloon-22 { top: 68%; left: 8%; transform: rotate(7deg); }
.cb-page-bg-deco .cb-pg-balloon-23 { top: 68%; left: 32%; transform: rotate(-5deg); }
.cb-page-bg-deco .cb-pg-balloon-24 { top: 68%; right: 8%; left: auto; transform: rotate(11deg); }

/* Page bg: flower positions (24) */
.cb-page-bg-deco .cb-pg-flower-1 { top: 6%; left: 8%; }
.cb-page-bg-deco .cb-pg-flower-2 { top: 6%; left: 28%; transform: scale(0.9); }
.cb-page-bg-deco .cb-pg-flower-3 { top: 6%; left: 48%; }
.cb-page-bg-deco .cb-pg-flower-4 { top: 6%; left: 68%; transform: scale(0.85); }
.cb-page-bg-deco .cb-pg-flower-5 { top: 6%; right: 12%; left: auto; }
.cb-page-bg-deco .cb-pg-flower-6 { top: 14%; right: 6%; left: auto; transform: scale(0.9); }
.cb-page-bg-deco .cb-pg-flower-7 { top: 22%; left: 4%; transform: scale(0.88); }
.cb-page-bg-deco .cb-pg-flower-8 { top: 22%; left: 30%; }
.cb-page-bg-deco .cb-pg-flower-9 { top: 22%; left: 56%; transform: scale(0.92); }
.cb-page-bg-deco .cb-pg-flower-10 { top: 22%; right: 10%; left: auto; }
.cb-page-bg-deco .cb-pg-flower-11 { top: 38%; left: 12%; }
.cb-page-bg-deco .cb-pg-flower-12 { top: 38%; left: 38%; transform: scale(0.9); }
.cb-page-bg-deco .cb-pg-flower-13 { top: 38%; left: 64%; }
.cb-page-bg-deco .cb-pg-flower-14 { top: 38%; right: 6%; left: auto; transform: scale(0.85); }
.cb-page-bg-deco .cb-pg-flower-15 { top: 54%; left: 6%; transform: scale(0.92); }
.cb-page-bg-deco .cb-pg-flower-16 { top: 54%; left: 26%; }
.cb-page-bg-deco .cb-pg-flower-17 { top: 54%; left: 52%; transform: scale(0.88); }
.cb-page-bg-deco .cb-pg-flower-18 { top: 54%; right: 14%; left: auto; }
.cb-page-bg-deco .cb-pg-flower-19 { top: 70%; left: 14%; transform: scale(0.9); }
.cb-page-bg-deco .cb-pg-flower-20 { top: 70%; left: 42%; }
.cb-page-bg-deco .cb-pg-flower-21 { top: 70%; right: 10%; left: auto; transform: scale(0.85); }
.cb-page-bg-deco .cb-pg-flower-22 { top: 84%; left: 10%; }
.cb-page-bg-deco .cb-pg-flower-23 { top: 84%; left: 36%; transform: scale(0.9); }
.cb-page-bg-deco .cb-pg-flower-24 { top: 84%; right: 12%; left: auto; }

/* Page bg: candle positions (20) */
.cb-page-bg-deco .cb-pg-candle-1 { top: 4%; left: 14%; transform: rotate(2deg); }
.cb-page-bg-deco .cb-pg-candle-2 { top: 4%; left: 46%; transform: rotate(-3deg); }
.cb-page-bg-deco .cb-pg-candle-3 { top: 4%; right: 18%; left: auto; transform: rotate(4deg); }
.cb-page-bg-deco .cb-pg-candle-4 { top: 20%; left: 6%; transform: rotate(-2deg); }
.cb-page-bg-deco .cb-pg-candle-5 { top: 20%; left: 62%; transform: rotate(5deg); }
.cb-page-bg-deco .cb-pg-candle-6 { top: 26%; right: 28%; left: auto; transform: rotate(-4deg); }
.cb-page-bg-deco .cb-pg-candle-7 { top: 42%; left: 16%; transform: rotate(3deg); }
.cb-page-bg-deco .cb-pg-candle-8 { top: 42%; left: 50%; transform: rotate(-5deg); }
.cb-page-bg-deco .cb-pg-candle-9 { top: 42%; right: 14%; left: auto; transform: rotate(2deg); }
.cb-page-bg-deco .cb-pg-candle-10 { top: 58%; left: 4%; transform: rotate(-3deg); }
.cb-page-bg-deco .cb-pg-candle-11 { top: 58%; left: 34%; transform: rotate(4deg); }
.cb-page-bg-deco .cb-pg-candle-12 { top: 58%; right: 24%; left: auto; transform: rotate(-2deg); }
.cb-page-bg-deco .cb-pg-candle-13 { top: 72%; left: 20%; transform: rotate(5deg); }
.cb-page-bg-deco .cb-pg-candle-14 { top: 72%; left: 56%; transform: rotate(-4deg); }
.cb-page-bg-deco .cb-pg-candle-15 { top: 72%; right: 8%; left: auto; transform: rotate(3deg); }
.cb-page-bg-deco .cb-pg-candle-16 { top: 86%; left: 8%; transform: rotate(-2deg); }
.cb-page-bg-deco .cb-pg-candle-17 { top: 86%; left: 32%; transform: rotate(4deg); }
.cb-page-bg-deco .cb-pg-candle-18 { top: 86%; left: 58%; transform: rotate(-3deg); }
.cb-page-bg-deco .cb-pg-candle-19 { top: 86%; right: 16%; left: auto; transform: rotate(2deg); }
.cb-page-bg-deco .cb-pg-candle-20 { top: 12%; left: 72%; transform: rotate(-5deg); }

/* Page bg: gift positions (24) */
.cb-page-bg-deco .cb-pg-gift-1 { top: 10%; left: 12%; transform: rotate(-6deg); }
.cb-page-bg-deco .cb-pg-gift-2 { top: 10%; left: 52%; transform: rotate(4deg); }
.cb-page-bg-deco .cb-pg-gift-3 { top: 10%; right: 22%; left: auto; transform: rotate(-3deg); }
.cb-page-bg-deco .cb-pg-gift-4 { top: 24%; left: 4%; transform: rotate(7deg); }
.cb-page-bg-deco .cb-pg-gift-5 { top: 24%; left: 36%; transform: rotate(-5deg); }
.cb-page-bg-deco .cb-pg-gift-6 { top: 24%; right: 6%; left: auto; transform: rotate(6deg); }
.cb-page-bg-deco .cb-pg-gift-7 { top: 40%; left: 22%; transform: rotate(-4deg); }
.cb-page-bg-deco .cb-pg-gift-8 { top: 40%; left: 58%; transform: rotate(8deg); }
.cb-page-bg-deco .cb-pg-gift-9 { top: 40%; right: 18%; left: auto; transform: rotate(-7deg); }
.cb-page-bg-deco .cb-pg-gift-10 { top: 56%; left: 8%; transform: rotate(5deg); }
.cb-page-bg-deco .cb-pg-gift-11 { top: 56%; left: 44%; transform: rotate(-6deg); }
.cb-page-bg-deco .cb-pg-gift-12 { top: 56%; right: 10%; left: auto; transform: rotate(3deg); }
.cb-page-bg-deco .cb-pg-gift-13 { top: 72%; left: 16%; transform: rotate(-8deg); }
.cb-page-bg-deco .cb-pg-gift-14 { top: 72%; left: 50%; transform: rotate(4deg); }
.cb-page-bg-deco .cb-pg-gift-15 { top: 72%; right: 14%; left: auto; transform: rotate(-5deg); }
.cb-page-bg-deco .cb-pg-gift-16 { top: 88%; left: 6%; transform: rotate(6deg); }
.cb-page-bg-deco .cb-pg-gift-17 { top: 88%; left: 28%; transform: rotate(-4deg); }
.cb-page-bg-deco .cb-pg-gift-18 { top: 88%; left: 54%; transform: rotate(7deg); }
.cb-page-bg-deco .cb-pg-gift-19 { top: 88%; right: 8%; left: auto; transform: rotate(-3deg); }
.cb-page-bg-deco .cb-pg-gift-20 { top: 30%; left: 70%; transform: rotate(5deg); }
.cb-page-bg-deco .cb-pg-gift-21 { top: 46%; left: 2%; transform: rotate(-6deg); }
.cb-page-bg-deco .cb-pg-gift-22 { top: 62%; left: 26%; transform: rotate(4deg); }
.cb-page-bg-deco .cb-pg-gift-23 { top: 62%; right: 2%; left: auto; transform: rotate(-7deg); }
.cb-page-bg-deco .cb-pg-gift-24 { top: 78%; left: 38%; transform: rotate(6deg); }

/* 404 page */
.cb-404-page .cb-main { padding: 0; }
.cb-404-page .cb-container { max-width: none; padding: 0; }
.cb-404-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, #fff8f9 0%, #ffe8ec 50%, #ffd6e0 100%);
}
.cb-404-content {
  position: relative;
  z-index: 100;
  text-align: center;
  margin-bottom: 24px;
  pointer-events: none;
  max-width: 360px;
}
.cb-404-content .cb-404-home {
  pointer-events: auto;
}
.cb-404-title {
  font-family: 'Dancing Script', cursive;
  font-size: 4rem;
  color: var(--primary-pink);
  margin: 0 0 8px;
  text-shadow: 0 4px 20px rgba(255, 77, 109, 0.3);
}
.cb-404-subtitle {
  font-size: 1.2rem;
  color: #555;
  margin: 0 0 8px;
  font-weight: 500;
}
.cb-404-hint {
  font-size: 0.9rem;
  color: #888;
  margin: 0 0 24px;
}
.cb-404-home {
  display: inline-flex;
  text-decoration: none;
}
.cb-404-balloons {
  position: absolute;
  inset: 0;
  max-width: none;
  width: 100%;
  height: 100%;
  margin: 0;
  pointer-events: none;
  z-index: 1;
}
.cb-404-balloons .cb-balloon {
  pointer-events: auto;
}
@media (min-width: 600px) {
  .cb-404-content { max-width: 420px; }
  .cb-404-title { font-size: 5rem; }
  .cb-404-subtitle { font-size: 1.25rem; }
  .cb-404-hint { font-size: 0.95rem; }
}
