/* BingoForge: one stylesheet for sales pages, member app and admin */
:root {
  --navy: #1f2a44;
  --navy-2: #2b3a5e;
  --amber: #f2a516;
  --amber-soft: #fdf0d2;
  --cream: #f8f5ef;
  --ink: #1f2430;
  --muted: #6b7280;
  --line: #e5e0d5;
  --white: #ffffff;
  --green: #15803d;
  --green-soft: #dcfce7;
  --red: #b91c1c;
  --red-soft: #fee2e2;
  --blue-soft: #e0e7ff;
  --radius: 12px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream); line-height: 1.55; font-size: 16px; }
a { color: var(--navy-2); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 2rem; }
.h2, h2 { font-size: 1.6rem; }
.h3, h3 { font-size: 1.15rem; }
code { background: #efeae0; padding: 1px 6px; border-radius: 6px; font-size: .88em; word-break: break-all; }
.muted { color: var(--muted); }
.muted-light { color: rgba(255,255,255,.7); }
.small { font-size: .85rem; }
.center { text-align: center; }
.num { text-align: right; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; background: var(--amber-soft); color: #8a5a00; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }

/* Buttons */
.btn { display: inline-block; background: var(--amber); color: var(--ink); border: 0; border-radius: 10px; padding: 11px 20px; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; font-family: inherit; transition: transform .08s, box-shadow .15s; text-align: center; }
.btn:hover { box-shadow: 0 6px 16px rgba(242,165,22,.35); transform: translateY(-1px); }
.btn-sm { padding: 7px 12px; font-size: .88rem; }
.btn-xl { padding: 18px 34px; font-size: 1.2rem; border-radius: 12px; margin: 10px 0; }
.btn-block { display: block; width: 100%; }
.btn-ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.btn-ghost:hover { box-shadow: none; background: rgba(255,255,255,.08); }
.btn-light { background: #efeae0; }
.btn-light:hover { box-shadow: none; background: #e6dfd1; }
.btn-warn { background: #fde68a; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { box-shadow: 0 6px 16px rgba(185,28,28,.3); }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: #fff; text-decoration: none; }
.logo-dark { color: var(--navy); margin-bottom: 20px; }
.logo-ball { width: 34px; height: 34px; border-radius: 50%; background: var(--amber); color: var(--navy); display: inline-grid; place-items: center; font-weight: 900; box-shadow: inset 0 0 0 4px #fff3; }

/* Alerts and pills */
.alert { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; }
.alert-success { background: var(--green-soft); color: #14532d; }
.alert-error { background: var(--red-soft); color: #7f1d1d; }
.error-text { color: var(--red); }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #eee; text-transform: capitalize; }
.pill-processed, .pill-active, .pill-sent { background: var(--green-soft); color: #14532d; }
.pill-ignored, .pill-logged { background: var(--blue-soft); color: #3730a3; }
.pill-rejected, .pill-error, .pill-failed, .pill-suspended { background: var(--red-soft); color: #7f1d1d; }
.pill-soon { background: var(--amber-soft); color: #8a5a00; margin-top: 6px; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--navy); color: #fff; margin: 1px 0; }
.badge-bump { background: #7c3aed; }
.badge-oto1 { background: #0e7490; }
.badge-oto2 { background: #b45309; }
.badge-oto3 { background: #be185d; }

/* ---------- Sales pages ---------- */
.sales-header { background: var(--navy); padding: 14px 0; color: #fff; }
.hero { background: radial-gradient(circle at 20% 0%, var(--navy-2), var(--navy) 60%); color: #fff; padding: 56px 0 64px; }
.hero h1 { font-size: clamp(1.8rem, 4.4vw, 3rem); }
.hl { color: var(--amber); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--amber); margin: 0 0 12px; }
.lead { font-size: 1.2rem; color: rgba(255,255,255,.85); margin: 0 auto 24px; max-width: 680px; }
.lead-dark { font-size: 1.1rem; color: var(--muted); max-width: 680px; margin: 0 auto 28px; }
.video-box { background: #0f1729; border: 2px solid rgba(255,255,255,.12); border-radius: var(--radius); aspect-ratio: 16 / 9; display: grid; place-content: center; margin: 0 auto 24px; color: rgba(255,255,255,.6); }
.video-box span { font-size: 3rem; color: var(--amber); }
.video-box p { margin: 0; }
.section { padding: 56px 0; }
.section-alt { background: #fff; }
.problems { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 24px; }
.problem { background: #fff; border-left: 4px solid var(--red); padding: 18px; border-radius: 10px; }
.problem p { margin: 6px 0 0; color: var(--muted); }
.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.section-alt .feature { background: var(--cream); }
.feature p { color: var(--muted); margin: 0; }
.f-icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; background: #fff; border-radius: 10px; padding: 16px 16px 16px 64px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--amber); display: grid; place-items: center; font-weight: 800; }
.ticks { list-style: none; padding: 0; max-width: 560px; margin: 0 auto; }
.ticks li { padding: 8px 0 8px 32px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 900; }
.ticks.left { text-align: left; margin: 16px 0 24px; }
.price-box { background: #fff; border: 3px solid var(--amber); border-radius: 18px; padding: 32px 28px; max-width: 480px; margin: 0 auto; text-align: center; box-shadow: 0 18px 40px rgba(31,42,68,.12); }
.price { font-size: 3rem; font-weight: 900; color: var(--navy); margin: 0; }
.price-note { font-size: 1rem; font-weight: 600; color: var(--muted); }
.guarantee { display: flex; gap: 24px; align-items: center; }
.seal { flex: 0 0 auto; width: 110px; height: 110px; border-radius: 50%; background: var(--amber); display: grid; place-content: center; text-align: center; font-size: 2.2rem; font-weight: 900; color: var(--navy); line-height: 1; border: 6px double #fff; }
.seal small { font-size: .8rem; letter-spacing: .1em; }
details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; color: var(--muted); }
.cta-band { background: var(--navy); color: #fff; padding: 48px 0; }
.sales-footer { background: #151d31; color: rgba(255,255,255,.75); padding: 28px 0; }
.sales-footer .muted { color: rgba(255,255,255,.5); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin: 0 0 8px; }
.footer-links a { color: #fff; text-decoration: none; }
.oto-bar { background: #b91c1c; color: #fff; text-align: center; font-weight: 700; padding: 12px 16px; }
.hero-oto { padding-top: 40px; }
.no-thanks { color: rgba(127,127,127,.95); font-size: .9rem; }
.hero .no-thanks { color: rgba(255,255,255,.6); }
.value-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.value-table th { background: var(--navy); color: #fff; padding: 12px; text-align: left; }
.value-table td { padding: 12px; border-top: 1px solid var(--line); vertical-align: top; }
.value-table td:first-child { color: var(--muted); }
.value-table td:last-child { font-weight: 600; }
.placeholder { border: 2px dashed #c9c3b6; border-radius: 12px; padding: 28px; text-align: center; color: var(--muted); background: rgba(255,255,255,.6); }
.countdown { display: inline-block; border: 2px dashed rgba(255,255,255,.4); border-radius: 10px; padding: 14px 24px; margin-bottom: 20px; }

/* ---------- Auth ---------- */
body.auth { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; background: linear-gradient(160deg, var(--cream), #efe7d6); }
.auth-box { background: #fff; width: 100%; max-width: 420px; padding: 32px; border-radius: 18px; box-shadow: 0 18px 50px rgba(31,42,68,.12); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; }
.form legend { font-weight: 700; padding: 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; font: inherit; font-weight: 400; padding: 10px 12px; border: 1.5px solid #d6cfc0; border-radius: 9px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(242,165,22,.2); }
textarea { resize: vertical; }
.form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.form .check input { margin-top: 4px; }
.check-row { padding: 6px 0; border-bottom: 1px solid #f0ebe1; }
.check-inline { align-self: end; padding-bottom: 10px; }
.form-narrow { max-width: 560px; }

/* ---------- Member app & admin ---------- */
body.panel { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: #fff; padding: 20px 14px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; }
.sidebar-admin { background: #17203a; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav a { color: rgba(255,255,255,.8); text-decoration: none; padding: 9px 12px; border-radius: 8px; font-weight: 600; }
.sidebar nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar nav a.active { background: var(--amber); color: var(--navy); }
.sidebar-foot { margin-top: auto; display: grid; gap: 8px; word-break: break-all; }
.panel-main { padding: 28px 32px 48px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0 0 4px; font-size: 1.7rem; }
.page-head p { margin: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.card-flush { padding: 0; overflow-x: auto; }
.card-warn { border-color: #f5d27a; background: #fffbeb; }
.center-card { text-align: center; max-width: 560px; margin: 0 auto; padding: 40px 28px; }
.big { font-size: 3rem; margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.grid-2 > .card { margin-bottom: 0; }
.grid-2 + .grid-2, .grid-2 + .card { margin-top: 20px; }
.grid-tight { gap: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; }
.stat-num { font-size: 1.9rem; font-weight: 800; color: var(--navy); }
.stat-label { color: var(--muted); font-size: .88rem; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fbf9f5; }
.table td { padding: 10px 12px; border-bottom: 1px solid #f0ebe1; vertical-align: middle; }
.card .table th { background: transparent; }
.table-form td { vertical-align: top; }
.table-form input { min-width: 150px; }
.truncate { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filters { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filters input { max-width: 320px; }
.filters select { max-width: 180px; }
.pager { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.pager a { padding: 6px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); text-decoration: none; }
.pager a.active { background: var(--navy); color: #fff; }
.checklist { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 4px; }
.checklist li.done { color: var(--green); }
pre.code { background: #10172a; color: #e2e8f0; padding: 16px; border-radius: 10px; overflow-x: auto; font-size: .85rem; }
.email-frame { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.module-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.module-group.locked { background: #fbf9f5; }
.module-group.locked .module { opacity: .75; }
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; }
.module { display: grid; align-content: start; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 14px; text-decoration: none; color: inherit; background: #fff; transition: border-color .15s; }
.module:hover { border-color: var(--amber); }
.module-name { font-weight: 700; }

@media (max-width: 860px) {
  body.panel { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .sidebar nav { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .panel-main { padding: 20px 16px 40px; }
  .grid-2 { grid-template-columns: 1fr; }
  .guarantee { flex-direction: column; text-align: center; }
  .section { padding: 40px 0; }
}

/* ---------- Generator & FE modules ---------- */
.gen-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.gen-main > .card { margin-bottom: 18px; }
.gen-side { position: sticky; top: 20px; }
.preview-card img { width: 100%; border-radius: 10px; background: #f4f1ea; min-height: 200px; display: block; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline { display: inline; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.radio-cards label { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; font-weight: 500; }
.radio-cards label:has(input:checked) { border-color: var(--amber); background: var(--amber-soft); }
.radio-cards small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; max-height: 236px; overflow-y: auto; padding: 4px; border: 1px solid var(--line); border-radius: 10px; }
.swatch { display: grid; gap: 4px; border: 1.5px solid transparent; border-radius: 8px; padding: 6px; cursor: pointer; font-weight: 500; position: relative; }
.swatch input { position: absolute; opacity: 0; }
.swatch:has(input:checked) { border-color: var(--amber); background: var(--amber-soft); }
.swatch.suggested { order: -1; }
.swatch.suggested .small::after { content: " ★"; color: var(--amber); }
.swatch .chips { display: flex; gap: 2px; height: 22px; border-radius: 6px; overflow: hidden; }
.swatch .chips i { flex: 1; display: block; }
.font-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.font-opt { border: 1.5px solid var(--line); border-radius: 8px; padding: 4px; cursor: pointer; position: relative; background: #fff; }
.font-opt input { position: absolute; opacity: 0; }
.font-opt img { width: 100%; display: block; }
.font-opt:has(input:checked) { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(242,165,22,.25); }
.icon-lib { background: #fbf9f5; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.icon-lib summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.icon-lib input { margin: 10px 0; max-width: 260px; }
.icon-grid { display: flex; flex-wrap: wrap; gap: 4px; max-height: 180px; overflow-y: auto; }
.icon-grid button { font-size: 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; width: 40px; height: 40px; cursor: pointer; line-height: 1; }
.icon-grid button:hover { border-color: var(--amber); }
#item-need.ok { color: var(--green); } #item-need.warn { color: var(--red); }
.set-preview { width: 100%; border-radius: 12px; display: block; border: 1px solid var(--line); }
.thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.item-chips { line-height: 2; }
.chip { display: inline-block; background: #fbf9f5; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: .85rem; }
@media (max-width: 1000px) { .gen-layout { grid-template-columns: 1fr; } .gen-side { position: static; } .grid-3 { grid-template-columns: 1fr 1fr; } }

/* ---------- Seasonal Starter Pack ---------- */
.progress-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.progress { flex: 1; height: 10px; background: #e9e4d8; border-radius: 999px; overflow: hidden; }
.progress div { height: 100%; background: var(--amber); transition: width .3s; }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pack-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.pack-item.done { border-color: #bfe3c6; }
.pack-thumb { aspect-ratio: 1; background: #fbf9f5; display: grid; place-items: center; }
.pack-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pack-icon { font-size: 3rem; }
.pack-body { padding: 12px 14px; display: grid; gap: 4px; }
.pack-actions { display: flex; gap: 6px; margin-top: 6px; }
.kit-label { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: .9rem; margin: 10px 0 4px; }
.mockup-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.mockup-row img { width: 100%; border-radius: 8px; border: 1px solid var(--line); display: block; }
@media (max-width: 860px) { .mockup-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Premium Bingo Lab ---------- */
.qr-row { display: flex; gap: 18px; align-items: center; }
.qr-img { width: 140px; height: 140px; border: 1px solid var(--line); border-radius: 10px; }
.score { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.score-num { font-size: 2.6rem; font-weight: 800; }
.score-a .score-num { color: var(--green); } .score-b .score-num { color: #b45309; } .score-c .score-num { color: var(--red); }
.issues { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.issues li { padding: 10px 12px 10px 34px; border-radius: 8px; position: relative; font-size: .92rem; }
.issues li::before { position: absolute; left: 12px; font-weight: 800; }
.issue-bad { background: var(--red-soft); } .issue-bad::before { content: "✖"; color: var(--red); }
.issue-warn { background: var(--amber-soft); } .issue-warn::before { content: "!"; color: #b45309; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; margin-top: 10px; }
.theme-opt { display: flex; gap: 8px; align-items: center; border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; font-weight: 500; }
.theme-opt:has(input:checked) { border-color: var(--amber); background: var(--amber-soft); }
.bulk-log { list-style: none; padding: 0; margin: 10px 0; font-size: .9rem; display: grid; gap: 4px; max-height: 300px; overflow-y: auto; }
.locked-opt { opacity: .55; cursor: not-allowed; }
.mode-opts { margin-top: 12px; display: grid; gap: 10px; }
.font-add { display: grid; place-items: center; font-weight: 600; font-size: .85rem; text-decoration: none; color: var(--navy); min-height: 44px; border-style: dashed; }

/* KDP Studio */
.k-theme, .k-holiday, .k-cards, .k-large, .k-perpage { transition: none; }
.mockup-row .btn { align-self: center; justify-self: start; }

/* Sidebar sections + unlock popup */
.nav-label { display: block; margin: 12px 12px 2px; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45); font-weight: 700; }
.sidebar nav a.locked { color: rgba(255,255,255,.5); }
.sidebar nav a.locked:hover { color: #fff; }
.nav-lock { font-size: .75em; opacity: .9; }
.modal-back { position: fixed; inset: 0; background: rgba(15, 20, 35, .55); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal-back[hidden] { display: none; }
.modal { background: #fff; border-radius: 16px; padding: 28px 28px 22px; max-width: 520px; width: 100%; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal h2 { margin: 4px 0 10px; }
.modal-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 1.6rem; cursor: pointer; color: #6b7280; }
.modal .btn-row { margin-top: 14px; }
body.modal-open { overflow: hidden; }
.module.locked-link { cursor: pointer; }
