:root {
  --brand: #2563eb;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f8fafc;
  --card: #ffffff;
  --ok: #059669;
  --warn: #d97706;
  --bad: #dc2626;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.topbar { background: var(--card); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--brand); text-decoration: none; }
.topbar nav a { margin-left: 18px; color: var(--ink); }
.main { padding: 28px 0 60px; }
.footer { border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); font-size: .9rem; background: var(--card); margin-top: 40px; }
.flash {
  background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af;
  padding: 12px 16px; border-radius: var(--radius); margin: 18px 0;
}
.dev-link {
  background: #fefce8; border: 1px solid #fde68a; color: #854d0e;
  padding: 12px 16px; border-radius: var(--radius); margin: 12px 0; word-break: break-all;
}
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin: 16px 0; }
.product-card { display: flex; flex-direction: column; }
.product-card h3 { margin: 0 0 6px; }
.product-card p { flex: 1 1 auto; }
.card-img { width: 100%; height: 240px; object-fit: contain; border-radius: 8px; margin-bottom: 10px; }
.card-price-btn {
  display: block;
  margin: 12px auto 0;
  padding: 10px 18px;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  text-align: center;
  min-width: 120px;
}
.product-card:hover .card-price-btn { filter: brightness(1.08); }
.product-gallery { margin: 12px 0; }
.hero-img { max-width: 100%; max-height: 360px; border-radius: var(--radius); display: block; }
.thumb-img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; margin: 6px 6px 0 0; }

/* Lemon Squeezy-style product page */
.ls-page { max-width: 720px; margin: 0 auto; }
.ls-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 28px; box-shadow: 0 1px 3px rgba(0,0,0,.07);
}
.ls-media { margin: -26px -28px 22px; border-radius: 14px 14px 0 0; overflow: hidden; background: var(--bg); }
.ls-main { width: 100%; max-height: 470px; object-fit: contain; display: block; background: var(--bg); }
.ls-thumbs { display: flex; gap: 8px; padding: 10px 14px; }
.ls-thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.ls-thumb.active { border-color: var(--brand); }
.ls-title { font-size: 1.65rem; margin: 0 0 12px; line-height: 1.25; }
.ls-desc { margin-bottom: 18px; }
.ls-price-row {
  border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 14px;
  display: flex; align-items: baseline; justify-content: space-between;
}
.ls-price { font-size: 1.45rem; font-weight: 700; color: var(--ink); }
.ls-per { font-size: .9rem; color: var(--muted); font-weight: 500; }
.ls-price-copy strong { display: block; font-size: 1.2rem; color: var(--ink); }
.ls-price-copy .ls-price-note { color: var(--muted); font-size: .95rem; }
.ls-price-copy .ls-amount { color: var(--brand); font-size: 1.4rem; font-weight: 800; }
.ls-cta .ls-form { display: block; }
.ls-btn {
  display: block; width: 100%; background: var(--brand); color: #fff; border: 0;
  padding: 13px 18px; border-radius: 9px; font-size: 1.05rem; font-weight: 600;
  cursor: pointer; margin-top: 10px;
}
.ls-btn:hover { opacity: .92; text-decoration: none; }
.ls-secure { text-align: center; color: var(--muted); font-size: .8rem; margin: 14px 0 0; }
.ls-powered { text-align: center; color: var(--muted); font-size: .76rem; margin-top: 16px; }
.ls-includes { max-width: 720px; margin: 26px auto 0; }

/* Full-width product page */
.ls-wide { width: 95%; max-width: 1600px; margin: 0 auto; }
.ls-top { display: grid; grid-template-columns: 1.15fr 1fr; gap: 30px; align-items: start; margin-top: 6px; }
.ls-media-col .ls-media { margin: 0; border-radius: 12px; }
.ls-media-empty { min-height: 320px; }
.ls-buy {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px; position: sticky; top: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.07);
}
.ls-desc-wide { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 22px; }
.ls-desc-wide h2 { margin: 0 0 10px; }
.ls-related { margin-top: 40px; }
.ls-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.ls-related-card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px; color: var(--ink);
}
.ls-related-card:hover { border-color: var(--brand); text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.ls-related-card img { width: 100%; height: 170px; object-fit: contain; border-radius: 8px; margin-bottom: 10px; background: var(--card); }
.ls-rel-placeholder {
  width: 100%; height: 170px; border-radius: 8px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 800; color: var(--brand);
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
}
.ls-rel-name { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.ls-rel-price { color: var(--brand); font-weight: 700; font-size: .88rem; margin-top: 6px; }
.group-cover { width: 100%; max-height: 340px; object-fit: cover; border-radius: 12px; margin-bottom: 18px; }
@media (max-width: 900px) {
  .ls-top { grid-template-columns: 1fr; }
  .ls-buy { position: static; }
}

/* Help / FAQ page */
.help-controls { display: flex; gap: 12px; margin: 18px 0 4px; flex-wrap: wrap; }
.help-controls input[type=search] { flex: 1; min-width: 240px; }
.help-controls select { width: auto; min-width: 180px; }
.help-list { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.help-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.help-item h3 { margin: 6px 0 8px; font-size: 1.05rem; }
.help-answer h3 { margin: 18px 0 6px; font-size: 1rem; }
.help-answer ol, .help-answer ul { margin: 6px 0 12px; padding-left: 22px; }
.help-answer code { background: #f1f5f9; padding: 2px 6px; border-radius: 5px; font-size: .88em; }
.help-answer .code-block { background: #f1f5f9; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-x: auto; font-size: .85rem; margin: 8px 0; }
.copy-btn { margin-left: 8px; padding: 3px 10px; font-size: .78rem; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 6px; cursor: pointer; vertical-align: middle; }
.copy-btn:hover { border-color: var(--brand); color: var(--brand); }
.toggle { position: relative; display: inline-block; width: 40px; height: 22px; vertical-align: middle; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: #d1d5db; border-radius: 22px; transition: .2s; }
.toggle-slider:before { content: ""; position: absolute; height: 16px; width: 16px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.toggle input:checked + .toggle-slider { background: var(--brand); }
.toggle input:checked + .toggle-slider:before { transform: translateX(18px); }
.desc-toolbar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.desc-editor { border: 1px solid var(--line); border-radius: 8px; min-height: 140px; padding: 10px 12px; background: #fff; line-height: 1.55; }
.desc-editor:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.desc-editor ul, .desc-editor ol { margin: 6px 0; padding-left: 22px; }
.highlight-label { display: inline-block; background: #eef2ff; color: var(--brand); border: 1px solid #c7d2fe; padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.highlight-th { background: #eef2ff; color: var(--brand); }
.quick-search { position: relative; width: 85%; max-width: 1000px; margin: 0 auto 24px; display: flex; gap: 8px; }
.quick-search input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: .95rem; }
.live-search-results { display: none; margin: 4px 0 10px; }
.live-search-results.open { display: block; }
.live-search-empty { padding: 10px 12px; color: var(--muted); font-size: .85rem; }
@media (max-width: 700px) {
  .quick-search { width: 95%; }
}

/* Bump offer / OTO page */
.hc-bump-offer, .hc-bump-offer * { box-sizing: border-box; }
.hc-bump-offer { --oto-primary: #278443; --oto-hover: #1d6b35; --oto-text: #183d28; --oto-bg: #eef8f0; width: 100%; max-width: 1250px; margin: 30px auto; padding: 0 18px 40px; color: #243029; font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
.hc-bump-offer h1, .hc-bump-offer h2, .hc-bump-offer h3 { color: var(--oto-text); line-height: 1.25; }
.hc-bump-offer h1 { margin: 8px 0 14px; font-size: clamp(30px, 5vw, 45px); }
.hc-bump-offer h2 { margin-top: 0; font-size: clamp(24px, 4vw, 32px); }
.hc-bump-eyebrow { margin: 0 0 8px; color: var(--oto-primary); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.hc-bump-intro { margin-bottom: 28px; text-align: center; }
.hc-bump-intro p { max-width: 750px; margin: 0 auto; font-size: 18px; }
.hc-bump-reassurance { display: inline-block; margin-top: 18px; padding: 9px 16px; background: var(--oto-bg); border-radius: 999px; color: var(--oto-text); font-size: 15px; font-weight: 700; }
.hc-bump-card { overflow: hidden; margin-bottom: 30px; background: #ffffff; border: 2px solid var(--oto-primary); border-radius: 14px; box-shadow: 0 10px 30px rgba(20, 65, 35, 0.11); }
.hc-bump-card-header { padding: 22px 30px; background: var(--oto-bg); text-align: center; }
.hc-bump-card-header p { max-width: 800px; margin: 6px auto 0; }
.hc-bump-card-body { padding: 32px; }
.hc-bump-layout { display: grid; grid-template-columns: minmax(360px, 1.15fr) minmax(420px, 1.5fr); gap: 42px; align-items: start; }
.hc-bump-product-image { display: block; width: 100%; height: auto; border: 1px solid #d9e2dc; border-radius: 9px; }
.hc-bump-badge { display: block; width: fit-content; margin: 0 auto 10px; padding: 5px 11px; background: var(--oto-primary); border-radius: 4px; color: #ffffff; font-size: 13px; font-weight: 700; text-transform: uppercase; text-align: center; }
.hc-bump-layout h3 { text-align: center; }
.hc-bump-price { margin: 14px 0 18px; text-align: center; }
.hc-bump-was-price { color: #707770; font-size: 15px; text-decoration: line-through; margin-right: 12px; }
.hc-bump-current-price { color: #b52424; font-size: 34px; font-weight: 800; margin-left: 4px; }
.hc-bump-price-note { display: block; margin-top: 2px; color: #576059; font-size: 14px; text-align: center; }
.hc-bump-benefits { margin: 18px 0 22px; padding: 0; list-style: none; }
.hc-bump-benefits li { position: relative; margin-bottom: 12px; padding-left: 30px; }
.hc-bump-benefits li::before { position: absolute; top: 0; left: 0; content: "✓"; color: var(--oto-primary); font-size: 19px; font-weight: 800; }
.hc-bump-button { display: block; width: 100%; padding: 16px 20px; background: var(--oto-primary); border: 2px solid var(--oto-primary); border-radius: 8px; color: #ffffff !important; font-size: 19px; font-weight: 700; line-height: 1.35; text-align: center; text-decoration: none !important; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; }
.hc-bump-button:hover, .hc-bump-button:focus { background: var(--oto-hover); border-color: var(--oto-hover); transform: translateY(-1px); }
.hc-bump-under-button { margin: 9px 0 0; color: #58635b; font-size: 13px; text-align: center; }
.hc-bump-license { margin-top: 18px; padding: 13px 15px; background: #f7f9f7; border-left: 4px solid var(--oto-primary); font-size: 14px; }
.hc-bump-section { margin: 40px 0; }
.hc-bump-section-heading { margin-bottom: 20px; text-align: center; }
.hc-bump-section-heading p { max-width: 750px; margin: 0 auto; }
.hc-bump-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hc-bump-feature { padding: 22px; background: var(--oto-bg); border: 1px solid #dce7de; border-radius: 9px; }
.hc-bump-feature strong { display: block; margin-bottom: 5px; color: var(--oto-text); font-size: 17px; }
.hc-bump-feature p { margin: 0; font-size: 15px; }
.hc-bump-table-wrap { overflow-x: auto; border: 1px solid #dce2dd; border-radius: 9px; }
.hc-bump-table { width: 100%; min-width: 650px; border-collapse: collapse; background: #fff; }
.hc-bump-table th, .hc-bump-table td { padding: 15px 17px; border-bottom: 1px solid #dce2dd; text-align: left; vertical-align: top; }
.hc-bump-table th { background: var(--oto-bg); color: var(--oto-text); }
.hc-bump-table th:first-child, .hc-bump-table td:first-child { width: 34%; color: #4f5851; font-weight: 700; }
.hc-bump-table tr:last-child td { border-bottom: 0; }
.hc-bump-highlight { color: var(--oto-primary); font-weight: 700; }
.hc-bump-final-cta { margin-top: 40px; padding: 32px; background: var(--oto-bg); border-radius: 12px; text-align: center; }
.hc-bump-final-cta h2 { margin-bottom: 8px; }
.hc-bump-final-cta p { max-width: 650px; margin: 0 auto 18px; }
.hc-bump-final-cta .hc-bump-button { max-width: 700px; margin-right: auto; margin-left: auto; }
.hc-bump-decline { margin-top: 27px; text-align: center; }
.hc-bump-decline p { margin-bottom: 7px; color: #59625b; font-size: 14px; }
.hc-bump-decline a { color: #44534a; font-size: 16px; font-weight: 700; text-decoration: underline; }
.hc-bump-decline a:hover, .hc-bump-decline a:focus { color: var(--oto-hover); }
.hc-bump-free-note { max-width: 600px; margin: 10px auto 0; color: #667069; font-size: 13px; }
.hc-product-checkout-button { display: block; width: 100%; max-width: 700px; margin: 25px auto; padding: 16px 24px; background: var(--oto-primary); border: 2px solid var(--oto-primary); border-radius: 8px; color: #ffffff !important; font-size: 19px; font-weight: 700; line-height: 1.35; text-align: center; text-decoration: none !important; box-sizing: border-box; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.hc-product-checkout-button:hover, .hc-product-checkout-button:focus { background: var(--oto-hover); border-color: var(--oto-hover); color: #ffffff !important; box-shadow: 0 6px 16px rgba(29, 107, 53, 0.2); transform: translateY(-1px); }
@media (max-width: 700px) {
  .hc-product-checkout-button { padding: 15px 16px; font-size: 17px; }
}
@media (max-width: 1100px) {
  .hc-bump-offer { width: 90%; }
  .hc-bump-layout { grid-template-columns: minmax(260px, 0.9fr) minmax(340px, 1.25fr); gap: 30px; }
}
@media (max-width: 800px) {
  .hc-bump-offer { width: 94%; }
  .hc-bump-layout { grid-template-columns: 1fr; }
  .hc-bump-product-image { max-width: 500px; margin-right: auto; margin-left: auto; }
  .hc-bump-feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .hc-bump-offer { width: 100%; margin-top: 20px; padding-right: 12px; padding-left: 12px; }
  .hc-bump-card-header { padding: 20px 18px; }
  .hc-bump-card-body { padding: 20px; }
  .hc-bump-current-price { font-size: 31px; }
  .hc-bump-final-cta { padding: 24px 18px; }
}
.help-item p { margin: 0; }
.help-item .badge { margin-bottom: 6px; }
.price { font-weight: 700; color: var(--brand); }
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600;
  background: #eef2ff; color: #4338ca;
}
.badge.ok { background: #ecfdf5; color: var(--ok); }
.badge.warn { background: #fffbeb; color: var(--warn); }
.badge.bad { background: #fef2f2; color: var(--bad); }
.btn {
  display: inline-block; background: var(--brand); color: #fff; border: 0;
  padding: 10px 18px; border-radius: 8px; font-size: .95rem; font-weight: 600; cursor: pointer;
}
.btn:hover { opacity: .9; text-decoration: none; }
.btn.secondary { background: #e5e7eb; color: var(--ink); }
.btn.danger { background: var(--bad); }
.btn.small { padding: 6px 12px; font-size: .85rem; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; background: #fff;
}
textarea { min-height: 110px; font-family: Consolas, monospace; font-size: .85rem; }
label { display: block; font-weight: 600; margin: 14px 0 5px; font-size: .9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.hint { color: var(--muted); font-size: .82rem; margin-top: 4px; }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: top; }
th { background: #f1f5f9; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 18px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat b { display: block; font-size: 1.6rem; color: var(--brand); }
.stat span { color: var(--muted); font-size: .85rem; }
.muted { color: var(--muted); }
.asset-list { list-style: none; padding: 0; margin: 12px 0; }
.asset-list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 0; }
.admin-nav a { padding: 6px 12px; border-radius: 7px; color: var(--ink); font-size: .88rem; }
.admin-nav a:hover { background: #eef2ff; text-decoration: none; }
.admin-nav .active { background: var(--brand); color: #fff; }
.hero { padding: 36px 0 10px; }
.hero h1 { margin: 0 0 8px; }
.checklist label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.checklist input { width: auto; }


.toggle-complete .toggle-slider { background: #fca5a5; }
.toggle-complete input:checked + .toggle-slider { background: #22c55e; }
.row-complete { background: #f0fdf4; }
.row-incomplete { background: #fef2f2; }

.ls-hero-text { font-size: 1.05rem; color: var(--muted); margin: 0 0 14px; max-width: 760px; }
.ls-hero-sub { color: var(--brand); font-weight: 600; }
.ls-reviews { margin: 10px 0 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); max-width: 760px; }
.ls-reviews-stars { display: flex; align-items: center; gap: 4px; }
.ls-star { color: #d1d5db; font-size: 1.15rem; }
.ls-star.on { color: #f59e0b; }
.ls-reviews-stars strong { margin-left: 6px; }
.ls-reviews-stars .muted { margin-left: 6px; }
.ls-review-quote { margin: 8px 0 0; color: var(--muted); font-style: italic; }

/* Mobile: product page */
@media (max-width: 700px) {
  .ls-wide { width: 100%; }
  .ls-buy { padding: 18px 16px; }
  .ls-title { font-size: 1.3rem; }
  .ls-hero-text { font-size: .98rem; }
  .ls-price { font-size: 1.25rem; }
  .ls-price-copy strong { font-size: 1.05rem; }
  .ls-price-copy .ls-amount { font-size: 1.25rem; }
  .ls-price-row { flex-wrap: wrap; gap: 6px; }
  .ls-related-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .ls-related-card { padding: 10px; }
  .ls-related-card img { height: 130px; }
  .ls-reviews { padding: 12px; }
}

/* Mobile: OTO page refinements */
@media (max-width: 480px) {
  .hc-bump-offer h1 { font-size: 26px; }
  .hc-bump-offer h2 { font-size: 22px; }
  .hc-bump-card-body { padding: 16px 14px; }
  .hc-bump-intro p { font-size: 16px; }
  .hc-bump-current-price { font-size: 28px; }
  .hc-bump-reassurance { font-size: 13px; padding: 8px 12px; }
  .hc-bump-feature { padding: 16px 14px; }
  .hc-bump-table th, .hc-bump-table td { padding: 10px 12px; font-size: .85rem; }
  .hc-bump-final-cta { padding: 20px 14px; }
}