@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

/* ═══════════════════════════════════════════════════════════════════
   PWF Social Ad Mockups · Platform-chrome design system
   Pixel-accurate-ish replicas of Facebook + Instagram placements
   for designer proof-handoff. All sizes in px @ 1x.
   ═══════════════════════════════════════════════════════════════════ */

/* ── THEME TOKENS ─────────────────────────────────────────────── */
:root[data-theme="light"] {
  --page-bg: #f0f2f5;
  --page-fg: #050505;
  --panel-bg: #ffffff;
  --panel-fg: #050505;
  --panel-muted: #65676b;
  --panel-rule: #ced0d4;
  --panel-hover: #f2f2f2;
  --chip-bg: #e4e6eb;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);

  /* Facebook chrome */
  --fb-bg: #ffffff;
  --fb-fg: #050505;
  --fb-muted: #65676b;
  --fb-rule: #ced0d4;
  --fb-hover: #f2f2f2;
  --fb-blue: #1877f2;
  --fb-cta-bg: #e4e6eb;
  --fb-cta-fg: #050505;

  /* Instagram chrome */
  --ig-bg: #ffffff;
  --ig-fg: #262626;
  --ig-muted: #8e8e8e;
  --ig-rule: #dbdbdb;
  --ig-link: #0095f6;
}

:root[data-theme="dark"] {
  --page-bg: #18191a;
  --page-fg: #e4e6eb;
  --panel-bg: #242526;
  --panel-fg: #e4e6eb;
  --panel-muted: #b0b3b8;
  --panel-rule: #3e4042;
  --panel-hover: #3a3b3c;
  --chip-bg: #3a3b3c;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);

  --fb-bg: #242526;
  --fb-fg: #e4e6eb;
  --fb-muted: #b0b3b8;
  --fb-rule: #3e4042;
  --fb-hover: #3a3b3c;
  --fb-blue: #2374e1;
  --fb-cta-bg: #3a3b3c;
  --fb-cta-fg: #e4e6eb;

  --ig-bg: #000000;
  --ig-fg: #fafafa;
  --ig-muted: #a8a8a8;
  --ig-rule: #262626;
  --ig-link: #0095f6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  background: var(--page-bg);
  color: var(--page-fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }

/* ── PAGE LAYOUT ──────────────────────────────────────────────── */
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

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

.page-header-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-header h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-header .eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--panel-muted);
  font-weight: 600;
}

.page-header-actions { display: flex; gap: 8px; align-items: center; }

.theme-toggle {
  appearance: none;
  border: 1px solid var(--panel-rule);
  background: var(--panel-bg);
  color: var(--panel-fg);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}
.theme-toggle:hover { background: var(--panel-hover); }
.theme-toggle .ico { width: 14px; height: 14px; }

.back-link {
  font-size: 13px;
  color: var(--panel-muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
}
.back-link:hover { background: var(--panel-hover); color: var(--panel-fg); }

/* ── TWO-COLUMN: MOCKUP + SPECS ───────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

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

.mockup-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 0;
}

/* ── SPECS SIDEBAR ────────────────────────────────────────────── */
.specs {
  background: var(--panel-bg);
  border: 1px solid var(--panel-rule);
  border-radius: 14px;
  padding: 20px;
  font-size: 13px;
  line-height: 1.55;
  position: sticky;
  top: 24px;
  box-shadow: var(--shadow);
}

.specs h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}

.specs .placement-name {
  font-size: 12px;
  color: var(--panel-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  font-weight: 600;
}

.specs dl {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 12px;
}

.specs dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--panel-muted);
  font-weight: 600;
  margin-bottom: 2px;
}

.specs dd {
  font-size: 13px;
  color: var(--panel-fg);
}

.specs dd code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: var(--chip-bg);
  padding: 1px 6px;
  border-radius: 4px;
}

.specs .specs-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.specs .specs-sep {
  border-top: 1px solid var(--panel-rule);
  margin: 8px 0;
}

.specs .count {
  font-variant-numeric: tabular-nums;
  color: var(--panel-muted);
  font-size: 12px;
}
.specs .count.over { color: #e02b20; }

/* ═══════════════════════════════════════════════════════════════
   PHONE FRAME - used for Stories / Reels / mobile vertical ads
   ═══════════════════════════════════════════════════════════════ */
.phone {
  width: 390px;
  height: 800px;
  background: #000;
  border-radius: 48px;
  padding: 12px;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25), 0 0 0 2px #222 inset;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  background: #000;
}

.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 116px;
  height: 32px;
  background: #000;
  border-radius: 20px;
  z-index: 60;
}

/* Slightly squatter "feed" phone keeps the post fully visible */
.phone.feed-phone {
  width: 390px;
  height: 720px;
}

/* ═══════════════════════════════════════════════════════════════
   FACEBOOK · FEED (mobile)
   ═══════════════════════════════════════════════════════════════ */
.fb-feed {
  background: var(--fb-bg);
  color: var(--fb-fg);
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.fb-statusbar {
  height: 44px;
  background: var(--fb-bg);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 24px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fb-fg);
}
.fb-statusbar .right { display: flex; align-items: center; gap: 4px; }

.fb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--fb-rule);
}
.fb-topbar .fb-logo {
  font-size: 26px;
  font-weight: 900;
  color: var(--fb-blue);
  letter-spacing: -0.03em;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.fb-topbar .fb-icons { display: flex; gap: 8px; }
.fb-topbar .fb-iconbtn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--fb-cta-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--fb-fg);
}

.fb-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 8px solid var(--fb-rule);
}
.fb-avatar-sm {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c0c4c9, #8d9298);
  flex-shrink: 0;
}
.fb-composer-input {
  flex: 1;
  font-size: 14px;
  color: var(--fb-muted);
}

.fb-post {
  display: flex;
  flex-direction: column;
  background: var(--fb-bg);
}

.fb-post-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px 8px;
}
.fb-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #1F1F1F;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: #F68C1F;
  font-size: 15px;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.fb-post-meta { flex: 1; line-height: 1.25; }
.fb-post-meta .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--fb-fg);
}
.fb-post-meta .sub {
  font-size: 12px;
  color: var(--fb-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.fb-post-meta .sponsored { font-weight: 400; }
.fb-post-meta .dot { font-size: 8px; }
.fb-post-header .fb-more {
  color: var(--fb-muted);
  font-size: 18px;
  padding: 4px 8px;
  line-height: 1;
}

.fb-post-text {
  padding: 0 12px 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--fb-fg);
}

.fb-post-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #1F1F1F;
  background-size: cover;
  background-position: center;
  position: relative;
}

.fb-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: var(--fb-cta-bg);
  border-top: 1px solid var(--fb-rule);
  border-bottom: 1px solid var(--fb-rule);
}
.fb-cta-meta { display: flex; flex-direction: column; gap: 2px; }
.fb-cta-meta .domain {
  font-size: 11px;
  color: var(--fb-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fb-cta-meta .headline {
  font-size: 15px;
  font-weight: 600;
  color: var(--fb-fg);
  line-height: 1.25;
  max-width: 240px;
}
.fb-cta-meta .description {
  font-size: 12px;
  color: var(--fb-muted);
  margin-top: 2px;
}
.fb-cta-btn {
  background: #1F1F1F;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  white-space: nowrap;
}
:root[data-theme="dark"] .fb-cta-btn { background: #4a4b4d; color: #e4e6eb; }

.fb-reactions {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px 6px;
  font-size: 13px;
  color: var(--fb-muted);
}
.fb-reactions .left { display: flex; align-items: center; gap: 6px; }
.fb-reactions .emojis { display: flex; }
.fb-reactions .emojis span {
  width: 18px; height: 18px;
  border-radius: 50%;
  margin-left: -4px;
  border: 2px solid var(--fb-bg);
  display: inline-block;
  font-size: 11px;
  line-height: 14px;
  text-align: center;
}
.fb-reactions .like-circle { background: linear-gradient(135deg, #1877f2, #4d97ff); }
.fb-reactions .heart-circle { background: linear-gradient(135deg, #e94560, #ff6b8a); }
.fb-reactions .care-circle { background: linear-gradient(135deg, #f7b125, #ffd05c); }

.fb-actions {
  display: flex;
  border-top: 1px solid var(--fb-rule);
  padding: 4px 0;
}
.fb-actions .action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fb-muted);
}
.fb-actions .ico { width: 18px; height: 18px; }

/* ═══════════════════════════════════════════════════════════════
   FACEBOOK · STORIES (1080×1920)
   ═══════════════════════════════════════════════════════════════ */
.fb-story, .ig-story, .ig-reel {
  position: absolute;
  inset: 0;
  background: #1F1F1F;
  background-size: cover;
  background-position: center;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}

.story-progress {
  position: absolute;
  top: 50px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
  z-index: 20;
}
.story-progress .seg {
  flex: 1;
  height: 2.5px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
  overflow: hidden;
}
.story-progress .seg.active::after {
  content: '';
  display: block;
  height: 100%;
  width: 32%;
  background: #fff;
  border-radius: 2px;
}
.story-progress .seg.done { background: #fff; }

.story-header {
  position: absolute;
  top: 62px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 20;
}
.story-header .avatar-ring {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #1F1F1F;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: #F68C1F;
  font-size: 13px;
}
.story-header .meta { display: flex; flex-direction: column; line-height: 1.15; flex: 1; }
.story-header .name { font-size: 13px; font-weight: 600; color: #fff; }
.story-header .sub { font-size: 11px; color: rgba(255,255,255,0.85); }
.story-header .icons { display: flex; gap: 12px; color: #fff; }

.story-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 28px 140px;
  z-index: 10;
}

.story-overlay-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.18) 22%, rgba(0,0,0,0.18) 50%, rgba(0,0,0,0.88) 100%);
  pointer-events: none;
  z-index: 5;
}

.story-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #F68C1F;
  font-weight: 700;
  margin-bottom: 12px;
}

.story-headline {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  color: #fff;
  max-width: 320px;
}
.story-headline em {
  color: #F68C1F;
  font-style: normal;
}

.story-body {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255,255,255,0.92);
  max-width: 320px;
  margin-bottom: 18px;
}

.story-bullets {
  list-style: none;
  margin-bottom: 18px;
}
.story-bullets li {
  font-size: 13px;
  line-height: 1.4;
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.92);
}
.story-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  background: #F68C1F;
  border-radius: 50%;
}

.story-cta {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #fff;
}
.story-cta .cta-pill {
  background: #fff;
  color: #1F1F1F;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.story-cta .swipe-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
}
.story-cta .chev {
  display: inline-block;
  font-weight: 800;
}

/* FB Stories share-bar (bottom) */
.fb-story-actions {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 22;
  color: #fff;
  font-size: 11px;
}
.fb-story-actions .reply-box {
  flex: 1;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  margin-right: 10px;
}
.fb-story-actions .iconbtn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   INSTAGRAM · FEED (1080×1080)
   ═══════════════════════════════════════════════════════════════ */
.ig-feed {
  background: var(--ig-bg);
  color: var(--ig-fg);
  height: 100%;
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.ig-statusbar {
  height: 44px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 24px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ig-fg);
}

.ig-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ig-rule);
}
.ig-logo {
  font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ig-fg);
}
.ig-topbar .icons { display: flex; gap: 16px; color: var(--ig-fg); }

.ig-storytray {
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ig-rule);
  overflow: hidden;
}
.ig-storytray .story {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  flex-shrink: 0;
}
.ig-storytray .ring {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  padding: 2.5px;
}
.ig-storytray .ring .inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--ig-bg);
  padding: 2px;
}
.ig-storytray .ring .inner .pic {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #c0c4c9, #8d9298);
}
.ig-storytray .label {
  font-size: 11px;
  color: var(--ig-fg);
  max-width: 64px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ig-post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}
.ig-post-header .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #1F1F1F;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: #F68C1F;
  font-size: 12px;
}
.ig-post-header .meta { flex: 1; line-height: 1.2; }
.ig-post-header .name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ig-fg);
  display: flex; align-items: center; gap: 4px;
}
.ig-post-header .sub {
  font-size: 11px;
  color: var(--ig-muted);
}
.ig-post-header .more {
  font-size: 18px;
  color: var(--ig-fg);
  padding: 4px 6px;
  line-height: 1;
}

.ig-post-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #1F1F1F;
  background-size: cover;
  background-position: center;
  position: relative;
}

.ig-cta-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.ig-cta-overlay .chev { font-weight: 800; }

.ig-actions {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 14px;
  color: var(--ig-fg);
}
.ig-actions .save { margin-left: auto; }

.ig-likes {
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ig-fg);
  line-height: 1.4;
}

.ig-caption {
  padding: 4px 14px 6px;
  font-size: 13px;
  color: var(--ig-fg);
  line-height: 1.4;
}
.ig-caption .name { font-weight: 600; margin-right: 6px; }

.ig-comments {
  padding: 0 14px 4px;
  font-size: 12px;
  color: var(--ig-muted);
}

.ig-time {
  padding: 2px 14px 12px;
  font-size: 10px;
  color: var(--ig-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════════════════════
   INSTAGRAM · STORIES (1080×1920)
   ═══════════════════════════════════════════════════════════════ */
.ig-story .story-progress .seg { background: rgba(255,255,255,0.35); }
.ig-story .story-progress .seg.active::after { background: #fff; }

/* IG Stories swipe-up area replaced with a fixed CTA pill */

/* ═══════════════════════════════════════════════════════════════
   INSTAGRAM · REELS (1080×1920) - full-bleed video
   ═══════════════════════════════════════════════════════════════ */
.ig-reel {
  background: #1F1F1F;
  background-size: cover;
  background-position: center;
}

.ig-reel-overlay-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.22) 25%, rgba(0,0,0,0.22) 55%, rgba(0,0,0,0.9) 100%);
  pointer-events: none;
  z-index: 5;
}

.reel-topbar {
  position: absolute;
  top: 56px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  z-index: 20;
}
.reel-topbar .title { font-size: 16px; }
.reel-topbar .icons { display: flex; gap: 18px; }

.reel-content {
  position: absolute;
  left: 14px;
  right: 64px;
  bottom: 110px;
  z-index: 18;
  color: #fff;
}
.reel-account {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.reel-account .avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #1F1F1F;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: #F68C1F;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.7);
}
.reel-account .name {
  font-size: 13px;
  font-weight: 600;
}
.reel-account .sponsored {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
}
.reel-account .follow {
  margin-left: 6px;
  border: 1px solid rgba(255,255,255,0.7);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.reel-caption {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 12px;
  max-width: 280px;
}

.reel-headline {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  max-width: 280px;
}
.reel-headline em { color: #F68C1F; font-style: normal; }

.reel-audio {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-top: 6px;
  color: rgba(255,255,255,0.92);
}

.reel-cta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 60px;
  z-index: 22;
}
.reel-cta-btn {
  background: #fff;
  color: #1F1F1F;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.01em;
}
.reel-cta-btn .arrow { font-weight: 800; }

.reel-sidebar {
  position: absolute;
  right: 10px;
  bottom: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: #fff;
  z-index: 20;
}
.reel-sidebar .iconwrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.reel-sidebar .ico-icon {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
}
.reel-sidebar .audio-disc {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #555, #222);
  border: 2px solid #fff;
  margin-top: 4px;
}

.reel-bottombar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 25;
  color: #fff;
  font-size: 10px;
}
.reel-bottombar .tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}

/* ── PILL / CHIP UTILITIES ────────────────────────────────────── */
.pill {
  display: inline-block;
  background: var(--chip-bg);
  color: var(--panel-fg);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

/* ── ICON SIZES (inline SVG defaults) ─────────────────────────── */
.ico-sm { width: 16px; height: 16px; }
.ico-md { width: 20px; height: 20px; }
.ico-lg { width: 24px; height: 24px; }

/* ── Hero-image fallback (when no image asset is provided) ────── */
.no-image-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════════════════════════════
   GOOGLE DISPLAY ADS
   ═══════════════════════════════════════════════════════════════════ */

.gdn-ad {
  width: var(--ad-w);
  height: var(--ad-h);
  background: #ffffff;
  color: #1F1F1F;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  display: flex;
  overflow: hidden;
  position: relative;
  border-radius: 4px;
}

[data-theme="dark"] .gdn-ad {
  background: #1F1F1F;
  color: #F7F2E8;
  border-color: rgba(255,255,255,0.1);
}

.gdn-image {
  background-size: cover;
  background-position: center;
  background-color: #1F1F1F;
  flex-shrink: 0;
}

.gdn-body {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: space-between;
}

.gdn-brandrow {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gdn-brandmark {
  width: 16px;
  height: 16px;
  background: #1F1F1F;
  color: #F68C1F;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

[data-theme="dark"] .gdn-brandmark { background: #F68C1F; color: #1F1F1F; }

.gdn-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.gdn-sponsored {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #65676B;
  background: rgba(0,0,0,0.05);
  padding: 1px 5px;
  border-radius: 3px;
}

[data-theme="dark"] .gdn-sponsored { background: rgba(255,255,255,0.08); color: #b0b3b8; }

.gdn-headline {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.gdn-desc {
  font-size: 11px;
  color: #65676B;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[data-theme="dark"] .gdn-desc { color: #b0b3b8; }

.gdn-cta {
  background: #F68C1F;
  color: #1F1F1F;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  text-transform: uppercase;
}

.gdn-cta .chev { font-size: 13px; line-height: 0; }

/* ── Stacked layouts (image top, body bottom) ───────────────── */

.gdn-ad.gdn-stacked { flex-direction: column; }
.gdn-stacked .gdn-image { width: 100%; height: 60%; }

/* 300×600 half-page: bigger image up top */
.gdn-ad.gdn-stacked-tall { flex-direction: column; }
.gdn-stacked-tall .gdn-image { width: 100%; height: 50%; }
.gdn-stacked-tall .gdn-body { padding: 14px 16px; gap: 8px; }
.gdn-stacked-tall .gdn-headline { font-size: 20px; line-height: 1.2; }
.gdn-stacked-tall .gdn-desc { font-size: 13px; -webkit-line-clamp: 4; }
.gdn-stacked-tall .gdn-cta { font-size: 12px; padding: 9px 14px; }

/* 336×280: slightly larger text than 300×250 */
.gdn-ad.gdn-336x280 .gdn-headline { font-size: 15px; }

/* ── Horizontal layouts (image left, body right) ────────────── */

.gdn-ad.gdn-horizontal { flex-direction: row; align-items: stretch; }
.gdn-horizontal .gdn-image { height: 100%; }

/* 728×90 leaderboard */
.gdn-728x90 .gdn-image { width: 90px; }
.gdn-728x90 .gdn-body {
  padding: 8px 12px;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  justify-content: flex-start;
}
.gdn-728x90 .gdn-brandrow { flex-direction: column; align-items: flex-start; gap: 2px; }
.gdn-728x90 .gdn-sponsored { margin-left: 0; }
.gdn-728x90 .gdn-headline { font-size: 16px; flex: 1; max-width: 380px; }
.gdn-728x90 .gdn-desc { display: none; }
.gdn-728x90 .gdn-cta { font-size: 11px; padding: 7px 12px; }

/* 320×100 mobile banner */
.gdn-320x100 .gdn-image { width: 100px; }
.gdn-320x100 .gdn-body {
  padding: 6px 10px;
  gap: 2px;
}
.gdn-320x100 .gdn-brandrow { gap: 4px; }
.gdn-320x100 .gdn-brand { font-size: 10px; }
.gdn-320x100 .gdn-sponsored { font-size: 8px; padding: 1px 4px; }
.gdn-320x100 .gdn-headline { font-size: 13px; line-height: 1.15; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.gdn-320x100 .gdn-desc { display: none; }
.gdn-320x100 .gdn-cta { font-size: 9px; padding: 4px 8px; align-self: flex-start; }

/* ═══════════════════════════════════════════════════════════════════
   GOOGLE SEARCH ADS (RSA on SERP)
   ═══════════════════════════════════════════════════════════════════ */

.gsa-serp {
  width: 720px;
  background: #ffffff;
  color: #202124;
  font-family: arial, sans-serif;
  border: 1px solid #dadce0;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  overflow: hidden;
}

[data-theme="dark"] .gsa-serp {
  background: #202124;
  color: #e8eaed;
  border-color: #5f6368;
}

.gsa-header {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 24px;
  border-bottom: 1px solid #ebebeb;
}

[data-theme="dark"] .gsa-header { border-bottom-color: #3c4043; }

.gsa-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 500;
  color: #4285F4;
}

.gsa-logo span { font-family: arial, sans-serif; letter-spacing: -0.02em; }

.gsa-search {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  padding: 10px 18px;
  font-size: 14px;
  color: #202124;
  max-width: 440px;
  box-shadow: 0 1px 6px rgba(32,33,36,0.06);
}

[data-theme="dark"] .gsa-search {
  background: #303134;
  border-color: #5f6368;
  color: #e8eaed;
}

.gsa-search .search-ico { color: #4285F4; }

.gsa-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285F4, #34A853);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.gsa-tabs {
  display: flex;
  gap: 24px;
  padding: 0 24px;
  border-bottom: 1px solid #ebebeb;
  font-size: 13px;
  color: #5f6368;
}

[data-theme="dark"] .gsa-tabs { border-bottom-color: #3c4043; color: #9aa0a6; }

.gsa-tab {
  padding: 12px 0;
  border-bottom: 3px solid transparent;
  cursor: pointer;
}

.gsa-tab.active {
  color: #1a73e8;
  border-bottom-color: #1a73e8;
  font-weight: 500;
}

[data-theme="dark"] .gsa-tab.active { color: #8ab4f8; border-bottom-color: #8ab4f8; }

.gsa-results { padding: 16px 24px 24px; display: flex; flex-direction: column; gap: 18px; }

.gsa-result-meta { margin-bottom: 6px; }

.gsa-sponsored {
  font-size: 12px;
  font-weight: 700;
  color: #202124;
}

[data-theme="dark"] .gsa-sponsored { color: #e8eaed; }

.gsa-favrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.gsa-fav {
  width: 26px;
  height: 26px;
  background: #1F1F1F;
  color: #F68C1F;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.gsa-fav.organic {
  background: #e4e6eb;
  color: #5f6368;
}

[data-theme="dark"] .gsa-fav.organic { background: #3c4043; color: #9aa0a6; }

.gsa-urls { display: flex; flex-direction: column; line-height: 1.25; }

.gsa-name {
  font-size: 14px;
  color: #202124;
  font-weight: 400;
}

[data-theme="dark"] .gsa-name { color: #e8eaed; }

.gsa-url {
  font-size: 12px;
  color: #5f6368;
}

[data-theme="dark"] .gsa-url { color: #9aa0a6; }

.gsa-url .more-dots { font-size: 14px; margin-left: 4px; cursor: pointer; }

.gsa-title {
  display: block;
  font-size: 20px;
  font-weight: 400;
  color: #1a0dab;
  text-decoration: none;
  line-height: 1.3;
  margin-top: 4px;
}

.gsa-title:hover { text-decoration: underline; }

[data-theme="dark"] .gsa-title { color: #8ab4f8; }

.gsa-title.organic { color: #1a0dab; }
[data-theme="dark"] .gsa-title.organic { color: #8ab4f8; }

.gsa-desc {
  font-size: 14px;
  color: #4d5156;
  line-height: 1.5;
  margin-top: 4px;
}

[data-theme="dark"] .gsa-desc { color: #bdc1c6; }

.gsa-sitelinks {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
}

.sl-link {
  font-size: 13px;
  color: #1a0dab;
  text-decoration: none;
  font-weight: 500;
}

[data-theme="dark"] .sl-link { color: #8ab4f8; }

.sl-link:hover { text-decoration: underline; }

.gsa-result.organic {
  border-top: 1px solid #ebebeb;
  padding-top: 14px;
}

[data-theme="dark"] .gsa-result.organic { border-top-color: #3c4043; }

/* ═══════════════════════════════════════════════════════════════════
   SPECS PANEL: RSA matrix list
   ═══════════════════════════════════════════════════════════════════ */

.rsa-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rsa-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  padding: 6px 8px;
  background: var(--chip-bg);
  border-radius: 4px;
}

.rsa-text { flex: 1; }
.rsa-count {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--panel-muted);
  font-weight: 600;
}
.rsa-count.over { color: #d93025; }

/* ═══════════════════════════════════════════════════════════════════
   MOCKUP STAGE — handle wider GDN/GSA mockups
   ═══════════════════════════════════════════════════════════════════ */

.mockup-stage:has(.gdn-728x90),
.mockup-stage:has(.gsa-serp) {
  overflow-x: auto;
  align-items: center;
}

/* ═══════════════════════════════════════════════════════════════════
   PORTAL CREATIVE (Customer Portal campaign)
   - Uses the real PWF Customer Portal screenshot as the creative.
   - Image is locked to top, bottom crops off when slot is too short.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --portal-bg: #f5f4f1;
}

.portal-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.portal-phone-bg,
.portal-card-wrap,
.portal-mini {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--portal-bg);
  overflow: hidden;
}

/* ── Meta placement slot overrides ─────────────────────────────── */

.fb-post-image-portal,
.ig-post-image-portal {
  aspect-ratio: 1 / 1;
  background: var(--portal-bg);
  overflow: hidden;
  position: relative;
}

.fb-post-image-portal .portal-card-wrap,
.ig-post-image-portal .portal-card-wrap {
  height: 100%;
}

.fb-story-portal,
.ig-story-portal,
.ig-reel-portal {
  background-image: none !important;
  background: var(--portal-bg);
  position: relative;
}

.fb-story-portal .portal-phone-bg,
.ig-story-portal .portal-phone-bg,
.ig-reel-portal .portal-phone-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.fb-story-portal .story-content,
.ig-story-portal .story-content {
  z-index: 3;
  background: linear-gradient(180deg, rgba(31,31,31,0) 0%, rgba(31,31,31,0.7) 45%, rgba(31,31,31,0.95) 100%);
  padding-top: 100px;
  padding-bottom: 16px;
  border-radius: 0;
}

.fb-story-portal .story-overlay-gradient,
.ig-story-portal .story-overlay-gradient { display: none; }

.ig-reel-portal > *:not(.portal-phone-bg):not(.ig-reel-overlay-gradient) {
  position: relative;
  z-index: 3;
}

/* ── Google Display slot overrides ─────────────────────────────── */

.gdn-image-portal {
  background: var(--portal-bg);
  overflow: hidden;
}

.gdn-image-portal .portal-card-wrap,
.gdn-image-portal .portal-phone-bg,
.gdn-image-portal .portal-mini {
  width: 100%;
  height: 100%;
}

.gdn-image-portal.gdn-image-phone .portal-phone-bg {
  position: relative;
  inset: auto;
}

.gdn-728x90 .gdn-image-portal { width: 130px; flex: 0 0 130px; }
.gdn-320x100 .gdn-image-portal { width: 110px; flex: 0 0 110px; }

/* ── Variant card preview thumbnail (portal flavour) ───────────── */

.variant-preview-portal {
  background-size: cover;
  background-position: top center;
  background-color: var(--portal-bg);
}

/* ═══════════════════════════════════════════════════════════════════
   PORTAL: text colour overrides for chrome that sits on the light
   portal screenshot. Flips white → dark, swaps the dark scrim for a
   cream wash so the dark text reads cleanly.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Stories chrome on portal ─────────────────────────────────── */

.fb-story-portal .story-content,
.ig-story-portal .story-content {
  background: linear-gradient(180deg,
    rgba(247,242,232,0) 0%,
    rgba(247,242,232,0.8) 40%,
    rgba(247,242,232,0.97) 100%);
}

.fb-story-portal .story-header .name,
.fb-story-portal .story-header .sub,
.fb-story-portal .story-header .icons,
.ig-story-portal .story-header .name,
.ig-story-portal .story-header .sub,
.ig-story-portal .story-header .icons {
  color: #1F1F1F;
  text-shadow: 0 1px 2px rgba(247,242,232,0.9);
}

.fb-story-portal .story-headline,
.ig-story-portal .story-headline,
.fb-story-portal .story-body,
.ig-story-portal .story-body,
.fb-story-portal .story-bullets li,
.ig-story-portal .story-bullets li {
  color: #1F1F1F;
}

/* Keep gold accents (eyebrow + em + bullet dots) — they read fine on cream */

/* Story reply box + icons at bottom */
.fb-story-portal .fb-story-actions .reply-box,
.ig-story-portal .fb-story-actions .reply-box {
  background: rgba(255,255,255,0.85);
  color: #1F1F1F;
  border-color: rgba(31,31,31,0.2);
}

.fb-story-portal .fb-story-actions .iconbtn,
.ig-story-portal .fb-story-actions .iconbtn {
  color: #1F1F1F;
}

/* Progress segments — make them visible on light bg */
.fb-story-portal .story-progress .seg,
.ig-story-portal .story-progress .seg {
  background: rgba(31,31,31,0.25);
}
.fb-story-portal .story-progress .seg.done,
.fb-story-portal .story-progress .seg.active,
.ig-story-portal .story-progress .seg.done,
.ig-story-portal .story-progress .seg.active {
  background: #1F1F1F;
}

/* ── Reels chrome on portal ───────────────────────────────────── */

.ig-reel-portal .ig-reel-overlay-gradient {
  background:
    linear-gradient(180deg,
      rgba(247,242,232,0.85) 0%,
      rgba(247,242,232,0) 18%,
      rgba(247,242,232,0) 55%,
      rgba(247,242,232,0.9) 100%);
}

.ig-reel-portal .reel-topbar,
.ig-reel-portal .reel-topbar .title,
.ig-reel-portal .reel-topbar .icons {
  color: #1F1F1F;
}

.ig-reel-portal .reel-content,
.ig-reel-portal .reel-headline,
.ig-reel-portal .reel-caption,
.ig-reel-portal .reel-audio,
.ig-reel-portal .reel-account .name,
.ig-reel-portal .reel-account .sponsored {
  color: #1F1F1F;
}

.ig-reel-portal .reel-account .follow {
  border-color: rgba(31,31,31,0.3);
  color: #1F1F1F;
}

.ig-reel-portal .reel-account .avatar {
  border-color: rgba(31,31,31,0.25);
}

.ig-reel-portal .reel-sidebar {
  color: #1F1F1F;
}

.ig-reel-portal .reel-sidebar .iconwrap {
  text-shadow: 0 1px 2px rgba(247,242,232,0.9);
}

.ig-reel-portal .reel-sidebar .audio-disc {
  border-color: #1F1F1F;
}

.ig-reel-portal .reel-bottombar {
  background: rgba(247,242,232,0.95);
  color: #1F1F1F;
  border-top: 1px solid rgba(31,31,31,0.1);
}
.ig-reel-portal .reel-bottombar .tab {
  color: #1F1F1F;
}

/* ── IG Feed CTA overlay on the portal image ──────────────────── */

.ig-post-image-portal .ig-cta-overlay {
  background: rgba(31,31,31,0.85);
  color: #F7F2E8;
}
