/* =======================================================
   PROPOSAL BUILDER  (/proposal)
   All classes namespaced .pb- to stay clear of style.css.
   Brand: #025add → #043f96 gradient, Poppins.
   ======================================================= */

:root {
  --pb-blue: #025add;
  --pb-blue-dark: #043f96;
  --pb-ink: #0f172a;
  --pb-muted: #64748b;
  --pb-line: #e2e8f0;
  --pb-bg-soft: #f8fafc;
  --pb-green: #059669;
}

.pb-main { background: #fff; }

/* ---------- shared heading ---------- */
.pb-heading { max-width: 720px; margin: 0 auto 38px; text-align: center; }
.pb-kicker {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--pb-blue); margin-bottom: 10px;
}
.pb-heading h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; color: var(--pb-ink); margin-bottom: 12px; }
.pb-heading p { color: var(--pb-muted); font-size: 16px; line-height: 1.7; margin: 0; }

/* ---------- how it works ---------- */
.pb-howto { padding: 48px 0 8px; }
.pb-howto-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  border: 1px solid #dbeafe; border-radius: 20px; padding: 26px 28px;
}
.pb-howto-step { display: flex; flex-direction: column; gap: 6px; }
.pb-howto-num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--pb-blue), var(--pb-blue-dark));
  color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 4px;
}
.pb-howto-step strong { color: var(--pb-ink); font-size: 16px; }
.pb-howto-step span { color: var(--pb-muted); font-size: 14px; line-height: 1.6; }

/* ---------- uniqueness banner (opens the demos popup) ---------- */
.pb-demos-cta { padding: 54px 0 10px; }
.pb-unique-banner {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 34px; align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #043f96 100%);
  border-radius: 24px; padding: 42px 46px; position: relative; overflow: hidden;
}
.pb-unique-banner::after {
  content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, .28), transparent 70%);
  top: -170px; right: -130px; pointer-events: none;
}
.pb-unique-copy { position: relative; z-index: 1; }
.pb-unique-kicker {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: #93c5fd; margin-bottom: 12px;
}
.pb-unique-kicker i { color: #fbbf24; }
.pb-unique-copy h2 { color: #fff; font-size: clamp(22px, 3.2vw, 32px); font-weight: 700; line-height: 1.25; margin-bottom: 12px; }
.pb-unique-copy p { color: #cbd5e1; font-size: 15px; line-height: 1.7; margin-bottom: 22px; }
.pb-unique-copy p strong { color: #fff; }
.pb-demos-open {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--pb-blue), #60a5fa); color: #fff;
  border: 0; border-radius: 12px; padding: 14px 26px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit; box-shadow: 0 10px 26px rgba(2, 90, 221, .45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pb-demos-open:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(2, 90, 221, .55); }
.pb-unique-list { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.pb-unique-list button {
  display: flex; align-items: center; gap: 12px; text-align: left; font-family: inherit;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px; padding: 13px 16px; color: #e2e8f0; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: all .15s ease;
}
.pb-unique-list button:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); transform: translateX(3px); }
.pb-unique-list button > i:first-child { color: #93c5fd; width: 18px; text-align: center; }
.pb-unique-list button span { flex: 1; }
.pb-unique-demo {
  font-style: normal; display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: #86efac; background: rgba(34, 197, 94, .14); border: 1px solid rgba(34, 197, 94, .3);
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.pb-unique-demo i { font-size: 8px; }
.pb-unique-more { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 6px; }
.pb-unique-more span, .pb-unique-more button {
  display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 500;
  color: #cbd5e1; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 9px; padding: 8px 11px; text-align: left; font-family: inherit;
}
.pb-unique-more button { cursor: pointer; transition: all .15s ease; }
.pb-unique-more button:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: #fff; }
.pb-unique-more span i, .pb-unique-more button i:first-child { color: #7dd3fc; width: 14px; text-align: center; font-size: 11px; }
.pb-more-play {
  margin-left: auto; font-size: 8px !important; color: #86efac !important;
  background: rgba(34, 197, 94, .16); border: 1px solid rgba(34, 197, 94, .3);
  width: 18px !important; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- demos popup (carousel) ---------- */
.pb-demos-overlay {
  position: fixed; inset: 0; z-index: 1070; background: rgba(15, 23, 42, .62);
  backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px;
}
.pb-demos-modal {
  background: #fff; border-radius: 20px; width: min(720px, 100%); max-height: 92vh;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: pbAiIn .25s ease;
}
.pb-demos-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 18px 22px 14px; border-bottom: 1px solid var(--pb-line);
}
.pb-demos-modal-head strong { font-size: 16px; color: var(--pb-ink); display: block; margin-bottom: 3px; }
.pb-demos-modal-head span { font-size: 12.5px; color: var(--pb-muted); display: block; }
.pb-demos-close {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: var(--pb-bg-soft); color: var(--pb-muted); cursor: pointer; font-size: 14px;
  transition: all .15s ease;
}
.pb-demos-close:hover { background: #fee2e2; color: #dc2626; }
.pb-demos-track { overflow-y: auto; padding: 20px 22px; flex: 1; }
.pb-demo-slide { display: none; }
.pb-demo-slide.active { display: block; animation: pbAiIn .3s ease; }
.pb-demos-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 22px; border-top: 1px solid var(--pb-line); background: var(--pb-bg-soft);
}
.pb-demos-arrow {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--pb-line);
  background: #fff; color: var(--pb-ink); cursor: pointer; font-size: 13px; transition: all .15s ease;
}
.pb-demos-arrow:hover { border-color: var(--pb-blue); color: var(--pb-blue); }
.pb-demos-dots { display: flex; gap: 7px; }
.pb-demos-dot {
  width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0;
  background: #cbd5e1; cursor: pointer; transition: all .2s ease;
}
.pb-demos-dot.active { width: 24px; background: var(--pb-blue); }

/* demo cards (inside the popup slides) */
.pb-demo-card {
  border: 0; border-radius: 20px; padding: 0;
  background: #fff; display: flex; flex-direction: column; gap: 16px;
}

/* AI chatbot demo */
.pb-chat-log { display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow-y: auto; scroll-behavior: smooth; }
.pb-chat-msg {
  max-width: 82%; font-size: 12.5px; line-height: 1.55; padding: 9px 13px;
  border-radius: 14px; animation: pbAiIn .25s ease;
}
.pb-chat-bot { align-self: flex-start; background: var(--pb-bg-soft); border: 1px solid var(--pb-line); color: var(--pb-ink); border-bottom-left-radius: 4px; }
.pb-chat-user { align-self: flex-end; background: linear-gradient(135deg, var(--pb-blue), var(--pb-blue-dark)); color: #fff; border-bottom-right-radius: 4px; }
.pb-chat-typing { display: flex; gap: 4px; padding: 12px 14px; }
.pb-chat-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: #94a3b8;
  animation: pbTypingDot 1s ease infinite;
}
.pb-chat-typing span:nth-child(2) { animation-delay: .15s; }
.pb-chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes pbTypingDot { 30% { transform: translateY(-4px); opacity: .5; } }

/* booking demo */
.pb-book-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--pb-muted); margin-bottom: 10px; }
.pb-book-slots { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.pb-book-slots button {
  border: 1px solid var(--pb-line); border-radius: 999px; padding: 7px 13px; font-size: 12px;
  font-weight: 600; color: var(--pb-muted); background: #fff; cursor: pointer;
  transition: all .15s ease; font-family: inherit;
}
.pb-book-slots button:hover { border-color: var(--pb-blue); color: var(--pb-blue); }
.pb-book-slots button.on { border-color: var(--pb-blue); background: #eff6ff; color: var(--pb-blue); }
.pb-book-confirm {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--pb-blue), var(--pb-blue-dark)); color: #fff;
  border: 0; border-radius: 10px; padding: 10px 20px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: opacity .15s ease;
}
.pb-book-confirm:disabled { opacity: .4; cursor: not-allowed; }
.pb-book-done { text-align: center; padding: 8px 0; animation: pbAiIn .3s ease; }
.pb-book-done i { font-size: 38px; color: var(--pb-green); margin-bottom: 8px; }
.pb-book-done strong { display: block; font-size: 16px; color: var(--pb-ink); margin-bottom: 5px; }
.pb-book-done span { display: block; font-size: 13px; color: var(--pb-ink); line-height: 1.6; margin-bottom: 6px; }
.pb-book-done small { display: block; font-size: 11.5px; color: var(--pb-muted); margin-bottom: 12px; }

/* live dashboard demo */
.pb-dash { position: relative; overflow: hidden; }
.pb-dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.pb-dash-stat { background: var(--pb-bg-soft); border: 1px solid var(--pb-line); border-radius: 10px; padding: 9px 11px; }
.pb-dash-stat small { display: block; font-size: 10px; color: var(--pb-muted); letter-spacing: .5px; text-transform: uppercase; margin-bottom: 3px; }
.pb-dash-stat strong { font-size: 15px; color: var(--pb-ink); }
.pb-dash-bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin-bottom: 12px; }
.pb-dash-bars span {
  flex: 1; border-radius: 4px 4px 0 0; min-height: 6px;
  background: linear-gradient(180deg, #60a5fa, var(--pb-blue));
  transition: height .5s ease;
}
.pb-dash-feed { display: flex; flex-direction: column; gap: 5px; }
.pb-dash-feed div {
  font-size: 11.5px; color: var(--pb-muted); background: var(--pb-bg-soft);
  border: 1px solid var(--pb-line); border-radius: 8px; padding: 6px 10px;
}
.pb-dash-feed .pb-dash-new { color: var(--pb-ink); border-color: #bbf7d0; background: #f0fdf4; animation: pbAiIn .3s ease; }
.pb-dash-toast {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  background: #0f172a; color: #fff; font-size: 12px; font-weight: 600;
  padding: 9px 14px; border-radius: 10px; box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
  animation: pbToastIn .3s ease;
}
.pb-dash-toast i { color: #86efac; }
.pb-dash-toast-out { opacity: 0; transform: translateY(-6px); transition: all .4s ease; }
@keyframes pbToastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.pb-demo-head { display: flex; gap: 14px; align-items: flex-start; }
.pb-demo-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--pb-blue), var(--pb-blue-dark)); color: #fff; font-size: 19px;
}
.pb-demo-head h3 { font-size: 18px; font-weight: 700; color: var(--pb-ink); margin: 2px 0 4px; }
.pb-demo-head p { font-size: 14px; color: var(--pb-muted); line-height: 1.55; margin: 0; }
.pb-demo-stage { display: flex; flex-direction: column; gap: 12px; }

/* mini browser mock */
.pb-browser { border: 1px solid var(--pb-line); border-radius: 12px; overflow: hidden; background: #fff; }
.pb-browser-bar {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px;
  background: var(--pb-bg-soft); border-bottom: 1px solid var(--pb-line);
}
.pb-browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.pb-browser-bar span:nth-child(1) { background: #fca5a5; }
.pb-browser-bar span:nth-child(2) { background: #fcd34d; }
.pb-browser-bar span:nth-child(3) { background: #86efac; }
.pb-browser-bar em { font-style: normal; font-size: 11px; color: var(--pb-muted); margin-left: 8px; }
.pb-browser-body { padding: 18px; min-height: 150px; }
.pb-browser-body h4 { font-size: 17px; font-weight: 700; color: var(--pb-ink); margin: 0 0 8px; }
.pb-browser-body p { font-size: 13px; color: var(--pb-muted); line-height: 1.6; margin: 0 0 12px; }

/* inline text editing (amber outline stays visible on both the colored hero
   and the white blocks) */
.pb-demo-editable { transition: outline .15s ease; border-radius: 6px; }
.pb-editing .pb-demo-editable {
  outline: 1.5px dashed #f59e0b; outline-offset: 3px; cursor: text;
}
.pb-editing .pb-demo-editable:focus { outline-style: solid; }
.pb-demo-controls { display: flex; align-items: center; gap: 8px; }
.pb-demo-controls--wrap { flex-wrap: wrap; row-gap: 8px; }
.pb-demo-label { font-size: 12px; font-weight: 600; color: var(--pb-muted); }
.pb-demo-btn {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--pb-line);
  background: #fff; color: var(--pb-ink); font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 9px; cursor: pointer; text-decoration: none;
  transition: all .15s ease;
}
.pb-demo-btn:hover { border-color: var(--pb-blue); color: var(--pb-blue); }
.pb-demo-btn.active { background: var(--pb-blue); border-color: var(--pb-blue); color: #fff; }
.pb-demo-btn--save { background: var(--pb-green); border-color: var(--pb-green); color: #fff; }
.pb-demo-btn--save:hover { background: #047857; color: #fff; border-color: #047857; }
.pb-demo-hint { font-size: 12px; color: var(--pb-muted); line-height: 1.55; }
.pb-demo-hint.pb-hint-success { color: var(--pb-green); font-weight: 600; }

.pb-demo-chip {
  border: 1px solid var(--pb-line); background: #fff; color: var(--pb-muted);
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  transition: all .15s ease;
}
.pb-demo-chip:hover { border-color: var(--pb-blue); color: var(--pb-blue); }
.pb-demo-chip.active { background: #eff6ff; border-color: var(--pb-blue); color: var(--pb-blue); }

.pb-swatch {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; cursor: pointer;
  box-shadow: 0 0 0 1px var(--pb-line); transition: transform .15s ease, box-shadow .15s ease;
}
.pb-swatch:hover { transform: scale(1.12); }
.pb-swatch.active { box-shadow: 0 0 0 2px var(--pb-blue); }

/* CMS demo preview — block-based builder */
.pb-cms-preview {
  --cms-color: #025add; display: flex; flex-direction: column; gap: 10px;
  min-height: 150px; max-height: 300px; overflow-y: auto; scroll-behavior: smooth;
}
.pb-cms-block { position: relative; animation: pbAiIn .3s ease; }
.pb-cms-tools {
  position: absolute; top: 5px; right: 5px; display: flex; gap: 3px;
  opacity: .5; transition: opacity .15s ease; z-index: 2;
}
.pb-cms-block:hover .pb-cms-tools { opacity: 1; }
.pb-cms-tools button {
  width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--pb-line);
  background: #fff; color: var(--pb-muted); font-size: 10px; cursor: pointer;
  display: grid; place-items: center; padding: 0; transition: all .15s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .12);
}
.pb-cms-tools button:hover { border-color: var(--pb-blue); color: var(--pb-blue); }
.pb-cms-tools button[data-cms-remove]:hover { border-color: #dc2626; color: #dc2626; }
.pb-cms-hero {
  background: var(--cms-color); /* fallback for browsers without color-mix */
  background: linear-gradient(135deg, var(--cms-color), color-mix(in srgb, var(--cms-color) 70%, #000));
  border-radius: 10px; color: #fff; padding: 16px; display: flex; flex-direction: column; gap: 3px;
  transition: background .3s ease;
}
.pb-cms-hero strong { font-size: 15px; }
.pb-cms-hero small { font-size: 11px; opacity: .85; }
.pb-cms-gallery { display: flex; gap: 8px; }
.pb-cms-gallery span { flex: 1; height: 42px; border-radius: 8px; background: #eff6ff; border: 1px solid #dbeafe; background: color-mix(in srgb, var(--cms-color) 14%, #fff); border-color: color-mix(in srgb, var(--cms-color) 25%, #fff); }
.pb-cms-testimonial {
  font-size: 12px; color: var(--pb-muted); background: var(--pb-bg-soft);
  border: 1px dashed var(--pb-line); border-radius: 8px; padding: 10px 12px;
}
.pb-cms-form { display: flex; flex-direction: column; gap: 6px; }
.pb-cms-form span {
  font-size: 10.5px; color: #94a3b8; border: 1px solid var(--pb-line); background: #fff;
  border-radius: 7px; padding: 7px 10px;
}
.pb-cms-form em {
  font-style: normal; align-self: flex-start; color: #fff; font-size: 11px; font-weight: 700;
  background: var(--cms-color); border-radius: 7px; padding: 6px 14px; transition: background .3s ease;
}

/* AI demo */
.pb-ai-stage { position: relative; }
.pb-ai-placeholder { font-size: 13px; color: var(--pb-muted); display: flex; align-items: center; gap: 8px; }
.pb-ai-line { border-radius: 7px; background: #e2e8f0; margin-bottom: 8px; overflow: hidden; position: relative; opacity: 0; animation: pbAiIn .4s ease forwards; }
.pb-ai-line::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  animation: pbShimmer 1.2s ease infinite;
}
@keyframes pbAiIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pbShimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.pb-ai-done .pb-ai-line::after { display: none; }
.pb-ai-caption { font-size: 12px; font-weight: 600; color: var(--pb-blue); margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }

/* AI demo — the finished mini page that replaces the skeleton */
.pb-ai-page { display: flex; flex-direction: column; gap: 10px; animation: pbAiIn .45s ease; }
.pb-ai-hero {
  background: linear-gradient(135deg, var(--ai-accent, #025add), var(--ai-accent2, #043f96));
  color: #fff; border-radius: 10px; padding: 13px 15px; display: flex; flex-direction: column; gap: 3px;
}
.pb-ai-hero strong { font-size: 15px; }
.pb-ai-hero small { font-size: 11px; opacity: .85; }
.pb-ai-thumbs { display: flex; gap: 8px; }
.pb-ai-thumbs span {
  flex: 1; height: 46px; border-radius: 8px; display: grid; place-items: center; font-size: 20px;
  border: 1px solid rgba(15, 23, 42, .08);
}
.pb-ai-plans { display: flex; gap: 8px; }
.pb-ai-plans > div {
  flex: 1; border: 1px solid var(--pb-line); border-radius: 9px; padding: 9px 6px 8px; text-align: center;
  position: relative; background: #fff;
}
.pb-ai-plans b { display: block; font-size: 11px; color: var(--pb-ink); margin-bottom: 2px; }
.pb-ai-plans span { font-size: 13px; font-weight: 700; color: var(--pb-ink); }
.pb-ai-plans span i { font-style: normal; font-size: 9px; font-weight: 500; color: var(--pb-muted); }
.pb-ai-plan-hot { border-color: var(--pb-blue) !important; background: #eff6ff !important; }
.pb-ai-plan-hot em {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font-style: normal;
  background: var(--pb-blue); color: #fff; font-size: 8px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.pb-ai-slots { display: flex; gap: 7px; flex-wrap: wrap; }
.pb-ai-slots span {
  border: 1px solid var(--pb-line); border-radius: 999px; padding: 5px 11px; font-size: 11px;
  font-weight: 600; color: var(--pb-muted); background: #fff;
}
.pb-ai-slot-on { border-color: #7c3aed !important; background: #f5f3ff !important; color: #7c3aed !important; }
.pb-ai-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pb-ai-cta {
  display: inline-block; color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 7px 15px; border-radius: 8px;
}
.pb-ai-row em { font-style: normal; font-size: 11px; color: var(--pb-muted); }

/* payment demo */
.pb-pay-stage { display: flex; flex-direction: column; gap: 10px; position: relative; }
.pb-pay-hero {
  background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff; border-radius: 10px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 8px;
}
.pb-pay-hero strong { font-size: 14px; }
.pb-pay-hero small { font-size: 11px; opacity: .75; }
.pb-pay-card {
  border: 1px solid var(--pb-line); border-radius: 10px; padding: 12px; display: flex; gap: 10px; align-items: center;
}
.pb-pay-thumb { width: 40px; height: 40px; border-radius: 8px; background: linear-gradient(135deg, #dbeafe, #bfdbfe); flex-shrink: 0; }
.pb-pay-card strong { display: block; font-size: 13px; color: var(--pb-ink); }
.pb-pay-card small { font-size: 11px; color: var(--pb-muted); }
.pb-pay-floatzone { min-height: 6px; }
.pb-pay-btn {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  background: var(--pb-green); color: #fff; border: 0; font-size: 12px; font-weight: 700;
  padding: 8px 16px; border-radius: 8px; cursor: pointer; box-shadow: 0 6px 14px rgba(5,150,105,.35);
  animation: pbAiIn .3s ease;
}
.pb-pay-btn:hover { background: #047857; }
.pb-pay-floatzone .pb-pay-btn { position: absolute; right: 14px; bottom: 14px; border-radius: 999px; padding: 10px 18px; }

/* checkout modal */
.pb-checkout-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 1080;
  display: grid; place-items: center; padding: 20px; backdrop-filter: blur(2px);
}
.pb-checkout {
  background: #fff; border-radius: 18px; width: min(380px, 100%); padding: 22px; position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,.25); animation: pbAiIn .25s ease;
}
.pb-checkout-close {
  position: absolute; top: 12px; right: 12px; border: 0; background: var(--pb-bg-soft);
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; color: var(--pb-muted);
}
.pb-checkout-head { margin-bottom: 16px; }
.pb-checkout-head strong { display: block; font-size: 16px; color: var(--pb-ink); }
.pb-checkout-head span { font-size: 13px; color: var(--pb-muted); }
.pb-checkout-body { display: flex; flex-direction: column; gap: 8px; }
.pb-checkout-method {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--pb-line);
  background: #fff; border-radius: 10px; padding: 12px 14px; font-size: 13px; font-weight: 600;
  color: var(--pb-ink); cursor: pointer; transition: all .15s ease; text-align: left;
}
.pb-checkout-method:hover { border-color: var(--pb-blue); background: #eff6ff; }
.pb-checkout-method i { color: var(--pb-blue); width: 18px; text-align: center; }
.pb-checkout-note { font-size: 11px; color: var(--pb-muted); margin: 14px 0 0; line-height: 1.5; }
.pb-checkout-success { text-align: center; padding: 18px 0 6px; }
.pb-checkout-success i { font-size: 44px; color: var(--pb-green); margin-bottom: 10px; }
.pb-checkout-success strong { display: block; font-size: 16px; color: var(--pb-ink); margin-bottom: 4px; }
.pb-checkout-success span { font-size: 13px; color: var(--pb-muted); }


/* ---------- builder ---------- */
.pb-builder { padding: 50px 0 120px; background: var(--pb-bg-soft); }
.pb-loading { text-align: center; color: var(--pb-muted); padding: 40px 0; font-size: 15px; }
.pb-loading i { margin-right: 8px; color: var(--pb-blue); }

.pb-step {
  background: #fff; border: 1px solid var(--pb-line); border-radius: 20px;
  padding: 28px; margin-bottom: 22px; box-shadow: 0 6px 20px rgba(15, 23, 42, .04);
}
.pb-step-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.pb-step-num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--pb-blue), var(--pb-blue-dark)); color: #fff;
  font-weight: 700; font-size: 17px;
}
.pb-step-head h3 { font-size: 20px; font-weight: 700; color: var(--pb-ink); margin: 4px 0 4px; }
.pb-step-head p { font-size: 14px; color: var(--pb-muted); margin: 0; line-height: 1.6; }
.pb-optional {
  font-size: 11px; font-weight: 600; color: var(--pb-muted); background: var(--pb-bg-soft);
  border: 1px solid var(--pb-line); padding: 2px 9px; border-radius: 999px; vertical-align: middle;
  letter-spacing: .5px; text-transform: uppercase;
}

/* option cards */
.pb-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pb-options--type { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pb-option {
  position: relative; border: 1.5px solid var(--pb-line); border-radius: 14px; background: #fff;
  padding: 16px; cursor: pointer; text-align: left; transition: all .15s ease;
  display: flex; flex-direction: column; gap: 8px; font-family: inherit;
}
.pb-option:hover { border-color: #93c5fd; box-shadow: 0 6px 16px rgba(2, 90, 221, .08); }
.pb-option.selected { border-color: var(--pb-blue); background: #eff6ff; box-shadow: 0 6px 16px rgba(2, 90, 221, .12); }
.pb-option-top { display: flex; align-items: center; gap: 10px; }
.pb-option-icon {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--pb-bg-soft); color: var(--pb-blue); font-size: 15px; transition: all .15s ease;
}
.pb-option.selected .pb-option-icon { background: var(--pb-blue); color: #fff; }
.pb-option-label { font-size: 14.5px; font-weight: 700; color: var(--pb-ink); line-height: 1.35; }
.pb-option-desc { font-size: 12.5px; color: var(--pb-muted); line-height: 1.55; margin: 0; flex: 1; }
.pb-option-price {
  font-size: 12.5px; font-weight: 700; color: var(--pb-blue);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.pb-option-price .pb-recurring { font-size: 11px; font-weight: 500; color: var(--pb-muted); }
.pb-option-price.pb-price-free { color: var(--pb-green); }
.pb-option-eta { font-size: 11.5px; color: var(--pb-muted); }
.pb-option-check {
  position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--pb-line); display: grid; place-items: center; font-size: 11px;
  color: transparent; transition: all .15s ease; background: #fff;
}
.pb-option.selected .pb-option-check { background: var(--pb-blue); border-color: var(--pb-blue); color: #fff; }
.pb-option-badge {
  position: absolute; top: -9px; left: 14px; background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
}

/* pages control */
.pb-pages-control { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pb-pages-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--pb-line); background: #fff;
  color: var(--pb-ink); font-size: 15px; cursor: pointer; transition: all .15s ease; flex-shrink: 0;
}
.pb-pages-btn:hover { border-color: var(--pb-blue); color: var(--pb-blue); }
.pb-pages-display { text-align: center; min-width: 86px; }
.pb-pages-display strong { display: block; font-size: 34px; font-weight: 700; color: var(--pb-blue); line-height: 1; }
.pb-pages-display span { font-size: 12px; color: var(--pb-muted); }
.pb-pages-control input[type="range"] { flex: 1; min-width: 180px; accent-color: var(--pb-blue); height: 6px; }
.pb-pages-included { margin-top: 14px; font-size: 13px; color: var(--pb-muted); background: var(--pb-bg-soft); border: 1px dashed var(--pb-line); border-radius: 10px; padding: 10px 14px; }
.pb-pages-included strong { color: var(--pb-ink); }

/* timeline pills */
.pb-timeline { display: flex; gap: 10px; flex-wrap: wrap; }
.pb-timeline .pb-option { flex-direction: row; align-items: center; padding: 12px 18px; gap: 10px; }
.pb-timeline .pb-option .pb-option-label { font-size: 13.5px; }

/* final step */
.pb-step--final { border: 1.5px solid #bfdbfe; }
.pb-final-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; align-items: start; }
.pb-summary {
  background: var(--pb-bg-soft); border: 1px solid var(--pb-line); border-radius: 16px; padding: 20px;
  position: sticky; top: 100px;
}
.pb-summary h4 { font-size: 15px; font-weight: 700; color: var(--pb-ink); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.pb-summary-group { margin-bottom: 12px; }
.pb-summary-group:last-child { margin-bottom: 0; }
.pb-summary-group > span { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--pb-muted); margin-bottom: 6px; }
.pb-summary-item {
  display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 5px 0;
  border-bottom: 1px dashed var(--pb-line); color: var(--pb-ink);
}
.pb-summary-item:last-child { border-bottom: 0; }
.pb-summary-item em { font-style: normal; color: var(--pb-blue); font-weight: 600; white-space: nowrap; }
.pb-summary-total {
  margin-top: 14px; padding: 14px 16px; border-radius: 12px;
  background: linear-gradient(135deg, var(--pb-blue), var(--pb-blue-dark)); color: #fff;
}
.pb-summary-total small { display: block; font-size: 11px; opacity: .85; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.pb-summary-total strong { font-size: 21px; font-weight: 700; }
.pb-summary-total .pb-total-note { display: block; font-size: 11px; opacity: .8; margin-top: 6px; line-height: 1.5; }
.pb-summary-empty { font-size: 13px; color: var(--pb-muted); }

/* contact form */
.pb-contact-form { display: flex; flex-direction: column; gap: 14px; }
.pb-field { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pb-field label { font-size: 13px; font-weight: 600; color: var(--pb-ink); }
.pb-field label em { color: #dc2626; font-style: normal; }
.pb-field input, .pb-field textarea {
  border: 1.5px solid var(--pb-line); border-radius: 10px; padding: 11px 14px; font-size: 14px;
  font-family: inherit; color: var(--pb-ink); background: #fff; transition: border .15s ease; width: 100%;
}
.pb-field input:focus, .pb-field textarea:focus { outline: none; border-color: var(--pb-blue); box-shadow: 0 0 0 3px rgba(2, 90, 221, .1); }
.pb-field-row { display: flex; gap: 14px; }
.pb-form-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 13px;
  border-radius: 10px; padding: 10px 14px;
}
.pb-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--pb-blue), var(--pb-blue-dark)); color: #fff;
  border: 0; border-radius: 12px; padding: 15px 24px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; font-family: inherit;
}
.pb-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(2, 90, 221, .3); }
.pb-submit:disabled { opacity: .65; cursor: wait; transform: none; box-shadow: none; }
.pb-form-note { font-size: 12px; color: var(--pb-muted); margin: 0; line-height: 1.6; }
.pb-form-note i { color: var(--pb-green); margin-right: 4px; }

/* success */
.pb-success { text-align: center; background: #fff; border: 1.5px solid #bbf7d0; border-radius: 20px; padding: 48px 28px; }
.pb-success-icon i { font-size: 58px; color: var(--pb-green); margin-bottom: 16px; }
.pb-success h3 { font-size: 24px; font-weight: 700; color: var(--pb-ink); margin-bottom: 10px; }
.pb-success p { color: var(--pb-muted); font-size: 15px; line-height: 1.7; max-width: 480px; margin: 0 auto 10px; }
.pb-refcode { color: var(--pb-blue); font-size: 18px; letter-spacing: 1.5px; }
.pb-success-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

/* ---------- sticky estimate bar ---------- */
.pb-estimate-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1060;
  background: rgba(15, 23, 42, .97); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, .1);
  transform: translateY(0); transition: transform .3s ease;
}
.pb-estimate-bar[hidden] { display: none; }
.pb-estimate-inner {
  max-width: 1140px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.pb-estimate-text { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pb-estimate-label { font-size: 12px; color: #94a3b8; font-weight: 600; }
.pb-estimate-label i { color: #60a5fa; margin-right: 4px; }
#pbEstimateValue { color: #fff; font-size: clamp(16px, 2.5vw, 22px); font-weight: 700; transition: color .2s ease; }
#pbEstimateValue.pb-bump { animation: pbBump .35s ease; }
@keyframes pbBump { 40% { transform: scale(1.08); color: #60a5fa; } }
#pbEstimateCount { font-size: 12px; color: #64748b; }
.pb-estimate-cta {
  display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--pb-blue), var(--pb-blue-dark));
  color: #fff; font-size: 14px; font-weight: 700; padding: 11px 22px; border-radius: 10px;
  text-decoration: none; white-space: nowrap; transition: transform .15s ease;
}
.pb-estimate-cta:hover { transform: translateY(-2px); color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .pb-unique-banner { grid-template-columns: 1fr; padding: 30px 26px; gap: 22px; }
  .pb-final-grid { grid-template-columns: 1fr; }
  .pb-summary { position: static; }
}
@media (max-width: 767px) {
  .pb-demos-overlay { padding: 0; align-items: end; }
  .pb-demos-modal { width: 100%; max-height: 96vh; border-radius: 18px 18px 0 0; }
}
@media (max-width: 767px) {
  .pb-howto-grid { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .pb-step { padding: 20px 16px; }
  .pb-options, .pb-options--type { grid-template-columns: 1fr 1fr; }
  .pb-field-row { flex-direction: column; gap: 14px; }
  .pb-estimate-inner { padding: 10px 14px; }
  .pb-estimate-cta { padding: 10px 16px; font-size: 13px; }
  .pb-builder { padding-bottom: 140px; }
}
@media (max-width: 520px) {
  .pb-options, .pb-options--type { grid-template-columns: 1fr; }
  .pb-timeline { flex-direction: column; }
  .pb-estimate-text { gap: 8px; }
  #pbEstimateCount { display: none; }
}
