/* Styles surface portail — partagés entre portal.html et aperçu admin */
:root {
  --bg: #0f172a;
  --panel: #1e293b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #06b6d4;
  --accent-2: #0891b2;
  --border: #334155;
  --btn-fg: #0f172a;
  --btn-shadow: rgba(6, 182, 212, 0.35);
  --main-pad-y: 32px;
  --main-gap: 24px;
  --block-radius: 12px;
  --btn-pad-y: 14px;
  color-scheme: dark;
}

select {
  color-scheme: dark;
}

select option,
select optgroup {
  background-color: #0f172a;
  color: #f1f5f9;
}
* { box-sizing: border-box; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.2s, color 0.2s;
}
body[data-portal-preset="automator-dark"] {
  --bg: #0f172a; --panel: #1e293b; --text: #f1f5f9; --muted: #94a3b8;
  --accent: #06b6d4; --accent-2: #0891b2; --border: #334155; --btn-fg: #0f172a;
  --btn-shadow: rgba(6, 182, 212, 0.35);
}
body[data-portal-preset="light"] {
  --bg: #f1f5f9; --panel: #ffffff; --text: #0f172a; --muted: #64748b;
  --accent: #0e7490; --accent-2: #155e75; --border: #e2e8f0; --btn-fg: #ffffff;
  --btn-shadow: rgba(14, 116, 144, 0.25);
  color-scheme: light;
}

body[data-portal-preset="light"] select {
  color-scheme: light;
}

body[data-portal-preset="light"] select option,
body[data-portal-preset="light"] select optgroup {
  background-color: #ffffff;
  color: #0f172a;
}
body[data-portal-preset="ocean"] {
  --bg: #0c4a6e; --panel: #0e4c6f; --text: #f0f9ff; --muted: #7dd3fc;
  --accent: #38bdf8; --accent-2: #0ea5e9; --border: #0369a1; --btn-fg: #0c4a6e;
  --btn-shadow: rgba(56, 189, 248, 0.35);
}
body[data-portal-preset="sunset"] {
  --bg: #1c1917; --panel: #292524; --text: #fafaf9; --muted: #a8a29e;
  --accent: #fb923c; --accent-2: #f97316; --border: #44403c; --btn-fg: #1c1917;
  --btn-shadow: rgba(251, 146, 60, 0.35);
}
body[data-portal-preset="mono"] {
  --bg: #18181b; --panel: #27272a; --text: #fafafa; --muted: #a1a1aa;
  --accent: #a1a1aa; --accent-2: #71717a; --border: #3f3f46; --btn-fg: #18181b;
  --btn-shadow: rgba(161, 161, 170, 0.3);
}
body[data-portal-density="compact"] {
  --main-pad-y: 20px; --main-gap: 16px; --btn-pad-y: 10px;
}
body[data-portal-radius="sharp"] {
  --block-radius: 4px;
}
.site-banner {
  background: rgba(6, 182, 212, 0.15);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-bottom: 1px solid rgba(6, 182, 212, 0.35);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding: 10px 20px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--accent);
}
.site-banner:empty { display: none; }
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  gap: 0;
}
main > .portal-layout-stage { margin: var(--main-pad-y) auto; }
/* ── Sections v2 (flux vertical) ─────────────────────────────── */
.ps-section { width: 100%; box-sizing: border-box; }
.ps-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.ps-section-hero { text-align: center; }
.ps-section-hero.is-left { text-align: left; }
.ps-section-hero.is-right { text-align: right; }
.ps-section-hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.ps-section-hero .ps-sub {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0 0 24px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.ps-section-hero.is-left .ps-sub,
.ps-section-hero.is-right .ps-sub { max-width: 720px; margin-left: 0; margin-right: 0; }
.ps-section-rich .rich-zone {
  max-width: 720px;
  background: transparent;
  border: 0;
  padding: 0;
}
.ps-section-cta .ps-center { text-align: center; }
.ps-section-banner .site-banner {
  border-radius: var(--block-radius);
}
.ps-section-stub .ps-stub-card {
  border: 1px dashed var(--border);
  border-radius: var(--block-radius);
  padding: 32px;
  text-align: center;
  color: var(--muted);
  background: color-mix(in srgb, var(--panel) 60%, transparent);
}
.ps-section-stub .ps-stub-label {
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ps-section-stub .ps-stub-hint {
  margin: 0;
  font-size: 0.9rem;
}
/* Header */
.ps-section-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.ps-header-row { display: flex; align-items: center; gap: 16px; padding-top: 0; padding-bottom: 0; min-height: 56px; }
.ps-brand { font-weight: 700; letter-spacing: -0.01em; flex: 0 0 auto; color: var(--text); }
.ps-nav { display: flex; gap: 18px; flex: 1; justify-content: center; flex-wrap: wrap; }
.ps-nav-link { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.ps-nav-link:hover { color: var(--text); }
.ps-header-cta { flex: 0 0 auto; }
.btn.btn-sm { padding: 8px 16px; font-size: 0.88rem; }
/* Footer */
.ps-section-footer { border-top: 1px solid var(--border); margin-top: auto; }
.ps-footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; padding-bottom: 24px; }
.ps-footer-col h4 { color: var(--text); margin: 0 0 10px; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; }
.ps-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ps-footer-col a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.ps-footer-col a:hover { color: var(--accent); }
.ps-footer-legal { color: var(--muted); font-size: 0.82rem; margin: 0 0 8px; line-height: 1.5; }
.ps-footer-copy { color: var(--muted); font-size: 0.82rem; margin: 0; text-align: center; }
/* Canvas (DISPLAY-like) section */
.ps-section-custom { padding-left: 0; padding-right: 0; }
.ps-canvas-stage { background: color-mix(in srgb, var(--panel) 40%, transparent); border-radius: var(--block-radius); border: 1px solid var(--border); overflow: hidden; }

/* ── Enfants canvas v2 : text, button, shape ─────────────────── */
.portal-text-block {
  width: 100%; height: 100%; line-height: 1.4; color: var(--text);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  padding: 4px; box-sizing: border-box; word-break: break-word; overflow: hidden;
}
.portal-zone-slot > .portal-text-block { align-items: stretch; }
.portal-text-block[style*="text-align: left"]   { align-items: flex-start; }
.portal-text-block[style*="text-align: right"]  { align-items: flex-end; }
.portal-text-block[style*="text-align: center"] { align-items: center; }

.portal-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: var(--btn-radius, 8px);
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
  width: 100%; height: 100%; box-sizing: border-box; gap: 6px;
  font-size: 0.95rem;
}
.portal-btn-primary { background: var(--accent); color: #052033; }
.portal-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.portal-btn-secondary { background: color-mix(in srgb, var(--panel) 75%, transparent); color: var(--text); border: 1px solid var(--border); }
.portal-btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.portal-btn-ghost { background: transparent; color: var(--text); border: 1px solid color-mix(in srgb, var(--text) 25%, transparent); }
.portal-btn-ghost:hover { background: color-mix(in srgb, var(--panel) 50%, transparent); }
.portal-btn-sm { padding: 6px 12px; font-size: 0.82rem; }
.portal-btn-md { padding: 10px 20px; font-size: 0.95rem; }
.portal-btn-lg { padding: 14px 28px; font-size: 1.05rem; }

.portal-shape {
  width: 100%; height: 100%; box-sizing: border-box;
}
.portal-shape-line {
  /* Pour donner un trait fin par défaut, on force hauteur minimale visuelle si très petite. */
  min-height: 2px;
}

/* ── Section heads + grid helpers ─────────────────────────────── */
.ps-section-head { text-align: center; margin-bottom: 28px; }
.ps-section-head h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.025em; margin: 0 0 8px; color: var(--text); }
.ps-section-head .ps-sub { color: var(--muted); margin: 0 auto; max-width: 640px; line-height: 1.5; }
.ps-text-center { text-align: center; }

.ps-grid-cols-1 { grid-template-columns: minmax(0, 1fr); }
.ps-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ps-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ps-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ps-grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .ps-grid-cols-2, .ps-grid-cols-3, .ps-grid-cols-4, .ps-grid-cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .ps-grid-cols-2, .ps-grid-cols-3, .ps-grid-cols-4, .ps-grid-cols-5 { grid-template-columns: minmax(0, 1fr); }
}

/* ── Features ─────────────────────────────────────────────────── */
.ps-feat-grid { display: grid; gap: 20px; }
.ps-feat-cell {
  padding: 24px 22px; background: color-mix(in srgb, var(--panel) 75%, transparent);
  border: 1px solid var(--border); border-radius: var(--block-radius);
  display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.16s, border-color 0.16s;
}
.ps-feat-cell-link { color: inherit; text-decoration: none; }
.ps-feat-cell-link:hover { transform: translateY(-2px); border-color: var(--accent); }
.ps-feat-icon { font-size: 1.85rem; line-height: 1; }
.ps-feat-title { margin: 4px 0 0; font-size: 1.05rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.ps-feat-desc { margin: 0; color: var(--muted); line-height: 1.55; }

/* ── FAQ ──────────────────────────────────────────────────────── */
.ps-faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.ps-faq-item {
  border: 1px solid var(--border); border-radius: var(--block-radius);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  overflow: hidden;
}
.ps-faq-item summary {
  padding: 14px 18px; cursor: pointer; font-weight: 600; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--text);
}
.ps-faq-item summary::-webkit-details-marker { display: none; }
.ps-faq-item summary::after {
  content: '+'; font-size: 1.4rem; line-height: 1; color: var(--muted); transition: transform 0.18s;
}
.ps-faq-item[open] summary::after { content: '−'; }
.ps-faq-item summary:hover { color: var(--accent); }
.ps-faq-answer { padding: 0 18px 16px; color: var(--muted); line-height: 1.55; }

/* ── Gallery ──────────────────────────────────────────────────── */
.ps-gal-grid { display: grid; gap: 14px; }
.ps-gal-cell {
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--block-radius);
  background: color-mix(in srgb, var(--panel) 75%, transparent);
  border: 1px solid var(--border);
}
.ps-gal-cell img { width: 100%; height: 100%; display: block; object-fit: cover; }
.ps-gal-cell a { display: block; height: 100%; }
.ps-gal-cell-empty { display: flex; align-items: center; justify-content: center; color: var(--muted); }

/* ── Testimonials ─────────────────────────────────────────────── */
.ps-tst-grid { display: grid; gap: 20px; }
.ps-tst-card {
  padding: 22px; margin: 0; background: color-mix(in srgb, var(--panel) 75%, transparent);
  border: 1px solid var(--border); border-radius: var(--block-radius);
  display: flex; flex-direction: column; gap: 14px;
}
.ps-tst-quote { font-size: 1rem; font-style: italic; line-height: 1.55; color: var(--text); margin: 0; }
.ps-tst-quote::before { content: '“'; font-size: 1.5em; line-height: 0.8; color: var(--accent); margin-right: 2px; }
.ps-tst-quote::after { content: '”'; font-size: 1.5em; line-height: 0.8; color: var(--accent); margin-left: 2px; }
.ps-tst-rating { color: var(--accent); letter-spacing: 0.08em; font-size: 0.95rem; }
.ps-tst-rating-empty { color: var(--border); }
.ps-tst-author { display: flex; align-items: center; gap: 12px; margin: 0; }
.ps-tst-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--panel); border: 1px solid var(--border); }
.ps-tst-avatar-fallback { display: flex; align-items: center; justify-content: center; color: var(--accent); font-weight: 700; }
.ps-tst-name { font-weight: 600; color: var(--text); font-size: 0.9rem; }
.ps-tst-role { color: var(--muted); font-size: 0.82rem; }

/* ── Logo strip ───────────────────────────────────────────────── */
.ps-logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 32px 40px; }
.ps-logo-cell { display: flex; align-items: center; justify-content: center; min-height: 44px; }
.ps-logo-cell img { max-height: 36px; max-width: 140px; width: auto; height: auto; opacity: 0.85; transition: opacity 0.18s, filter 0.18s; }
.ps-section-logostrip.is-grayscale .ps-logo-cell img { filter: grayscale(1); opacity: 0.65; }
.ps-section-logostrip.is-grayscale .ps-logo-cell:hover img { filter: grayscale(0); opacity: 1; }
.ps-section-logostrip .ps-logo-cell:hover img { opacity: 1; }
.ps-logo-fallback { color: var(--muted); font-size: 0.85rem; padding: 4px 12px; border: 1px dashed var(--border); border-radius: 6px; }

/* ── Contact form ─────────────────────────────────────────────── */
.ps-cnt-form { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.ps-cnt-field { display: flex; flex-direction: column; gap: 6px; }
.ps-cnt-label { font-weight: 600; color: var(--text); font-size: 0.92rem; }
.ps-cnt-form input[type="text"],
.ps-cnt-form input[type="email"],
.ps-cnt-form input[type="tel"],
.ps-cnt-form input[type="url"],
.ps-cnt-form textarea,
.ps-cnt-form select {
  padding: 10px 12px; border-radius: var(--block-radius); border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 60%, transparent); color: var(--text);
  font-family: inherit; font-size: 0.95rem; transition: border-color 0.15s, box-shadow 0.15s;
}
.ps-cnt-form input:focus,
.ps-cnt-form textarea:focus,
.ps-cnt-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.ps-cnt-checkbox { display: flex; align-items: center; gap: 8px; color: var(--text); }
.ps-cnt-success {
  padding: 12px 14px; border-radius: var(--block-radius);
  background: color-mix(in srgb, #22c55e 18%, transparent);
  border: 1px solid color-mix(in srgb, #22c55e 50%, transparent);
  color: #bbf7d0;
}
.ps-cnt-note { font-size: 0.78rem; color: var(--muted); margin: 0; text-align: center; opacity: 0.75; }
.ps-cnt-form .btn { align-self: flex-start; }

/* ── Pricing ──────────────────────────────────────────────────── */
.ps-prc-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 1080px; margin: 0 auto; }
.ps-prc-card {
  position: relative; padding: 32px 24px;
  background: color-mix(in srgb, var(--panel) 75%, transparent);
  border: 1px solid var(--border); border-radius: var(--block-radius);
  display: flex; flex-direction: column; gap: 16px; text-align: center;
  transition: transform 0.16s, border-color 0.16s;
}
.ps-prc-card.is-highlighted {
  border-color: var(--accent);
  box-shadow: 0 8px 32px -16px color-mix(in srgb, var(--accent) 60%, transparent);
  transform: translateY(-4px);
}
.ps-prc-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 12px; background: var(--accent); color: #052033;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: 999px;
}
.ps-prc-name { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--text); }
.ps-prc-price { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.ps-prc-currency { color: var(--muted); font-size: 1rem; }
.ps-prc-amount { font-size: 2.2rem; font-weight: 700; color: var(--text); line-height: 1; }
.ps-prc-period { color: var(--muted); font-size: 0.92rem; margin-left: 2px; }
.ps-prc-price-text { font-size: 1.4rem; font-weight: 700; color: var(--text); }
.ps-prc-feats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.ps-prc-feats li {
  color: var(--muted); padding-left: 24px; position: relative; font-size: 0.92rem; line-height: 1.4;
}
.ps-prc-feats li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.ps-prc-cta { margin-top: auto; }

/* L7 — bandeau temporaire pour retour Stripe / mode démo */
.ps-stripe-flash {
  position: fixed; left: 50%; top: 24px; transform: translateX(-50%);
  z-index: 10000; padding: 12px 20px; border-radius: 10px;
  font-size: 0.92rem; font-weight: 500; max-width: 90vw;
  box-shadow: 0 10px 32px -10px rgba(0, 0, 0, 0.4);
  background: #1f2937; color: #f9fafb;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: opacity 0.35s, transform 0.35s;
}
.ps-stripe-flash.is-leaving { opacity: 0; transform: translate(-50%, -8px); }
.ps-stripe-flash.ps-stripe-flash-success { background: #064e3b; border-color: #10b981; color: #d1fae5; }
.ps-stripe-flash.ps-stripe-flash-error { background: #7f1d1d; border-color: #ef4444; color: #fecaca; }
.ps-stripe-flash.ps-stripe-flash-info { background: #1e3a8a; border-color: #3b82f6; color: #dbeafe; }

/* ── Header (sticky / transparent variants) ───────────────────── */
.ps-brand { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.ps-brand-logo { height: 28px; width: auto; }
.ps-section-header.is-sticky { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); }
.ps-section-header:not(.is-sticky) { position: relative; }
.ps-section-header.is-transparent { background: transparent; border-bottom: 0; }

/* ── Footer brand + social row ────────────────────────────────── */
.ps-footer-brand { font-weight: 700; color: var(--text); margin-bottom: 16px; font-size: 1.05rem; text-align: center; }
.ps-footer-social-row { display: flex; gap: 12px; justify-content: center; margin: 12px 0 16px; flex-wrap: wrap; }
.ps-footer-social {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  border: 1px solid var(--border); color: var(--muted);
  transition: color 0.15s, border-color 0.15s, transform 0.15s;
}
.ps-footer-social:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }

/* Canevas 16:9 v1 legacy : mêmes repères % que la maquette admin (x, y, w, h) */
.portal-layout-stage {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  background: color-mix(in srgb, var(--panel) 40%, transparent);
  border-radius: var(--block-radius);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.portal-zone-slot {
  position: absolute;
  box-sizing: border-box;
  padding: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
}
.portal-zone-slot > .hero-block,
.portal-zone-slot > .zone-cta,
.portal-zone-slot > .rich-zone,
.portal-zone-slot > .site-banner,
.portal-zone-slot > .portal-zone-image,
.portal-zone-slot > .portal-zone-video,
.portal-zone-slot > .pricing-placeholder {
  flex: 1 1 auto;
  min-height: 0;
  width: 100% !important;
  max-width: none !important;
  margin: 0;
}
.portal-zone-slot > .hero-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.portal-zone-slot > .zone-cta { margin-top: 0; }
.portal-zone-slot .portal-zone-image img {
  max-height: 100% !important;
  width: 100%;
  height: 100%;
  object-fit: var(--portal-img-fit, cover);
}
.portal-zone-slot .portal-zone-image a,
.portal-zone-slot .portal-zone-image {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.portal-zone-slot .portal-zone-image a {
  min-height: 0;
}
.portal-zone-slot .portal-zone-video {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}
.portal-zone-slot .portal-zone-video video {
  max-height: 100% !important;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  object-fit: contain;
}
.hero-block {
  text-align: center;
  max-width: 640px;
}
.hero-block h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.hero-block p.sub {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 28px;
}
.btn {
  display: inline-block;
  padding: var(--btn-pad-y) 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--btn-fg);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--btn-shadow);
  filter: brightness(1.05);
}
.zone-cta { margin-top: 8px; }
.rich-zone {
  max-width: 720px;
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--block-radius);
  padding: 20px;
  line-height: 1.6;
  overflow-x: auto;
}
.rich-zone h2, .rich-zone h3 { margin-top: 0.75em; margin-bottom: 0.5em; }
.rich-zone a { color: var(--accent); }
.rich-zone ul, .rich-zone ol { margin: 0.5em 0 0.5em 1.25em; }
.rich-zone img { max-width: 100%; height: auto; border-radius: calc(var(--block-radius) - 4px); }
.portal-zone-image {
  max-width: min(960px, 100%);
  width: 100%;
  border-radius: var(--block-radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
}
.portal-zone-image a { display: block; line-height: 0; }
.portal-zone-image img {
  width: 100%;
  height: auto;
  vertical-align: middle;
  display: block;
  max-height: min(70vh, 560px);
  object-fit: var(--portal-img-fit, cover);
}
.portal-zone-video {
  max-width: min(960px, 100%);
  width: 100%;
  border-radius: var(--block-radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.portal-zone-video video {
  width: 100%;
  height: auto;
  display: block;
  max-height: min(70vh, 560px);
}
.pricing-placeholder {
  max-width: 560px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: var(--block-radius);
}
.pricing-placeholder .pricing-note { margin-top: 10px; font-size: 0.88rem; color: var(--accent); }
.error-msg { color: #f87171; text-align: center; }
footer {
  padding: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
