body.cpb-template-beauty-premium {
  --cpb-bg: #f7f3ef;
  --cpb-accent: #c97861;
  --cpb-accent-soft: #f4e3db;
  --cpb-accent-ink: #6f3527;
}
body.cpb-template-minimal-editorial {
  --cpb-bg: #f6f6f2;
  --cpb-accent: #111111;
  --cpb-accent-soft: #efefeb;
  --cpb-accent-ink: #111111;
}
body.cpb-template-performance-ads {
  --cpb-bg: #f3f7fb;
  --cpb-accent: #2563eb;
  --cpb-accent-soft: #dbeafe;
  --cpb-accent-ink: #1e40af;
}
body.cpb-template-lifestyle-clean {
  --cpb-bg: #f4f8f1;
  --cpb-accent: #5f8f64;
  --cpb-accent-soft: #e2f0de;
  --cpb-accent-ink: #2f5a34;
}
body.cpb-template-fashion-luxury {
  --cpb-bg: #0f0f0d;
  --cpb-surface: #171714;
  --cpb-surface-2: #22221e;
  --cpb-ink: #fffaf0;
  --cpb-muted: #c9c2b5;
  --cpb-line: rgba(255,255,255,.14);
  --cpb-line-strong: rgba(255,255,255,.24);
  --cpb-accent: #c7a96c;
  --cpb-accent-soft: rgba(199,169,108,.15);
  --cpb-accent-ink: #f8e5b2;
  --cpb-shadow: 0 18px 50px rgba(0,0,0,.28);
  --cpb-shadow-soft: 0 12px 28px rgba(0,0,0,.22);
}
body.cpb-template-wellness-fitness {
  --cpb-bg: #f4f6ef;
  --cpb-accent: #6d7f58;
  --cpb-accent-soft: #e7eadc;
  --cpb-accent-ink: #45533b;
}
body.cpb-template-tech-saas {
  --cpb-bg: #f5f7fb;
  --cpb-accent: #111827;
  --cpb-accent-soft: #e5e7eb;
  --cpb-accent-ink: #111827;
}
body.cpb-template-travel-creator {
  --cpb-bg: #f1f7f6;
  --cpb-accent: #0f766e;
  --cpb-accent-soft: #dff3ef;
  --cpb-accent-ink: #115e59;
}
body.cpb-template-amazon-review {
  --cpb-bg: #fbf7ef;
  --cpb-accent: #d97706;
  --cpb-accent-soft: #fef0c7;
  --cpb-accent-ink: #92400e;
}
body.cpb-template-local-business {
  --cpb-bg: #f5f7f2;
  --cpb-accent: #3f6212;
  --cpb-accent-soft: #e7f0d8;
  --cpb-accent-ink: #365314;
}

.cpb-public-body .cpb-template-hero {
  position: relative;
}
.cpb-public-body .cpb-template-hero:after {
  content: "";
  position: absolute;
  inset: auto 30px 30px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: var(--cpb-accent-soft);
  opacity: .55;
  pointer-events: none;
}
.cpb-public-body .cpb-template-hero > * { position: relative; z-index: 1; }

/* Beauty */
.cpb-beauty-hero {
  background: linear-gradient(180deg, #fff, #fff8f4);
}
.cpb-beauty-profile-card {
  display: grid;
  gap: 18px;
  justify-items: start;
  background: #fff;
}
.cpb-beauty-profile-card .cpb-featured-offer { width: 100%; }

/* Minimal Editorial */
.cpb-editorial-hero {
  display: block;
  padding-top: clamp(38px, 7vw, 84px);
  padding-bottom: clamp(38px, 7vw, 84px);
  background: #fff;
}
.cpb-editorial-kicker,
.cpb-editorial-meta {
  color: var(--cpb-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.cpb-editorial-hero h1 {
  max-width: 980px;
  margin-top: 22px;
  font-size: clamp(56px, 10vw, 124px);
}
.cpb-editorial-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--cpb-line);
}
.cpb-editorial-hero p { max-width: 780px; font-size: 20px; }
.cpb-editorial-offer {
  margin-top: 0;
  padding-top: 26px;
  padding-bottom: 26px;
}
.cpb-editorial-offer h2 {
  padding: 30px;
  border: 1px solid var(--cpb-line);
  border-radius: 24px;
  background: #fff;
}

/* Performance */
.cpb-performance-hero {
  background: #fff;
  border-color: rgba(37,99,235,.2);
}
.cpb-performance-offer {
  margin-top: 18px;
  border-color: rgba(37,99,235,.22);
  background: var(--cpb-accent-soft);
  color: var(--cpb-accent-ink);
}
.cpb-performance-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  background: #111827;
  color: #fff;
}
.cpb-performance-board span {
  grid-column: 1 / -1;
  color: rgba(255,255,255,.6);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.cpb-performance-board div {
  min-height: 84px;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;
  background: rgba(255,255,255,.06);
  font-weight: 900;
}

/* Lifestyle */
.cpb-lifestyle-hero {
  background: #fff;
}
.cpb-lifestyle-photo-frame {
  min-height: 340px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cpb-line);
  border-radius: 26px;
  background: linear-gradient(180deg, #fff, var(--cpb-accent-soft));
}
.cpb-lifestyle-photo-frame .cpb-avatar-large { width: 170px; height: 170px; }

/* Fashion */
body.cpb-template-fashion-luxury .cpb-public-page {
  background: radial-gradient(circle at 80% 0%, rgba(199,169,108,.13), transparent 34%), var(--cpb-bg);
}
.cpb-fashion-hero {
  background: linear-gradient(135deg, #171714, #0f0f0d);
  border-color: rgba(255,255,255,.16);
}
.cpb-fashion-hero h1,
.cpb-fashion-hero h2,
.cpb-fashion-hero h3,
.cpb-fashion-hero p { color: var(--cpb-ink); }
.cpb-fashion-offer {
  margin-top: 20px;
  background: rgba(199,169,108,.13);
  color: var(--cpb-accent-ink);
}
.cpb-fashion-panel {
  display: grid;
  gap: 18px;
  justify-items: start;
  background: rgba(255,255,255,.06);
  color: var(--cpb-ink);
}
.cpb-fashion-panel span { color: var(--cpb-muted); font-weight: 800; }
body.cpb-template-fashion-luxury .cpb-social-row a,
body.cpb-template-fashion-luxury .cpb-chip-row span,
body.cpb-template-fashion-luxury .cpb-addon-list span,
body.cpb-template-fashion-luxury .cpb-service-card,
body.cpb-template-fashion-luxury .cpb-price-card,
body.cpb-template-fashion-luxury .cpb-case-card,
body.cpb-template-fashion-luxury .cpb-testimonial-grid blockquote,
body.cpb-template-fashion-luxury .cpb-contact-card,
body.cpb-template-fashion-luxury .cpb-faq-list details,
body.cpb-template-fashion-luxury .cpb-metric {
  background: #171714;
  border-color: rgba(255,255,255,.14);
}
body.cpb-template-fashion-luxury .cpb-btn-primary { background: #fffaf0; color: #111; border-color: #fffaf0; }
body.cpb-template-fashion-luxury .cpb-btn-secondary { background: transparent; color: #fffaf0; border-color: rgba(255,255,255,.28); }

/* Wellness */
.cpb-wellness-hero {
  background: #fff;
}
.cpb-wellness-ring {
  min-height: 330px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cpb-line);
  border-radius: 999px;
  background: var(--cpb-accent-soft);
}
.cpb-wellness-ring .cpb-avatar-large { width: 168px; height: 168px; }
.cpb-wellness-offer {
  margin-top: 18px;
  background: var(--cpb-accent-soft);
}

/* Tech */
.cpb-tech-hero {
  background: #fff;
}
.cpb-tech-command {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--cpb-line);
  border-radius: 15px;
  background: #111827;
  color: #f9fafb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  overflow-x: auto;
}
.cpb-tech-command span { color: #86efac; margin-right: 6px; }
.cpb-tech-window {
  display: grid;
  gap: 14px;
  background: #111827;
  color: #fff;
}
.cpb-tech-window div {
  width: 76px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ef4444 0 14px, #f59e0b 14px 30px, #22c55e 30px 46px, transparent 46px);
}
.cpb-tech-window strong { color: #fff; }
.cpb-tech-window span { color: rgba(255,255,255,.58); }

/* Travel */
.cpb-travel-hero {
  background: linear-gradient(180deg, #fff, #f5fbfa);
}
.cpb-travel-ticket {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-style: dashed;
  border-color: rgba(15,118,110,.34);
}
.cpb-travel-ticket em { color: var(--cpb-muted); font-style: normal; font-weight: 750; }

/* Amazon / Product review */
.cpb-review-hero {
  background: #fff;
}
.cpb-review-score {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(217,119,6,.22);
  border-radius: 16px;
  background: var(--cpb-accent-soft);
}
.cpb-review-score strong { color: var(--cpb-accent-ink); }
.cpb-review-score span { color: #6b4a16; font-weight: 750; }
.cpb-review-product-card { background: #fffdf5; border-color: rgba(217,119,6,.22); }

/* Local */
.cpb-local-hero {
  background: #fff;
}
.cpb-local-map-card {
  margin-top: 18px;
  background: var(--cpb-accent-soft);
  border-color: rgba(63,98,18,.24);
}
.cpb-local-map-card strong .cpb-location { color: var(--cpb-accent-ink); }
.cpb-local-offer-card {
  background: #fff;
  border-color: rgba(63,98,18,.24);
}

@media (max-width: 980px) {
  .cpb-public-body .cpb-template-hero:after { display: none; }
  .cpb-lifestyle-photo-frame,
  .cpb-wellness-ring { min-height: 260px; border-radius: 24px; }
}
@media (max-width: 700px) {
  .cpb-performance-board { grid-template-columns: 1fr; }
  .cpb-editorial-hero h1 { font-size: clamp(48px, 16vw, 82px); }
  .cpb-wellness-ring { border-radius: 26px; }
}
