/* ============ MyBioKit design system ============ */
:root {
  --lb-build: 20261021r;
  --ink: #0D1738;
  --muted: rgba(13, 23, 56, .62);
  --line: rgba(13, 23, 56, .13);
  --accent: #055FF1;
  --accent2: #F43856;
  --card: #ffffff;
  /* page theme vars (set by applyTheme) */
  --pbg: #ffffff;
  --ptext: #0D1738;
  --pmuted: rgba(13, 23, 56, .66);
  --pfont: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --pradius: 999px;
  /* 20261021r logo palette (sampled from the new lockup) */
  --navy: #050E31;
  --navy2: #0A1B4D;
  --blue: #055FF1;
  --blue-deep: #04349E;
  --green: #4FB757;
  --green-bright: #61DF5A;
  --red: #F43856;
  --cyan: #1B94FF;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; color: var(--ink); font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background: #F2F6FE; }
a { color: var(--accent); }
img { max-width: 100%; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lb-btn, .pbuy, .tj-amt, .btn { transition: transform .08s ease; }
.lb-btn:active, .pbuy:active, .tj-amt:active, .btn:active { transform: scale(.98); }

/* ---------- buttons / forms ---------- */
.btn { display: inline-block; border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.btn.primary { background: linear-gradient(135deg, var(--blue-deep), var(--blue)); color: #fff; border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.big { padding: 13px 26px; font-size: 1.05rem; }
.btn.sm, .btn.small { padding: 7px 13px; font-size: .85rem; }
.btn:disabled { opacity: .55; cursor: default; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=datetime-local], textarea, select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: #fff; }
textarea { resize: vertical; }
.err { background: #fde8e8; color: #b3261e; border: 1px solid #f5c6c6; padding: 10px 14px; border-radius: 12px; margin: 10px 0; }
.hint { font-size: .85rem; margin-top: 4px; min-height: 1.2em; }
.hint.good { color: #1c7a3d; } .hint.bad { color: #b3261e; }
.muted { color: var(--muted); }
.demobanner { background: #fff7d6; border-bottom: 1px solid #f0dfa0; color: #7a5b00; text-align: center; padding: 8px 12px; font-size: .85rem; }

/* ---------- landing ---------- */
body.landing { background: #fff; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px max(24px, calc((100% - 1120px) / 2 + 24px)); max-width: none; margin: 0; background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .10); }
.brand { font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.brand small { font-weight: 500; color: var(--muted); font-size: .75rem; }
.blogo { font-size: 1.4rem; }
.blogo-img { width: 30px; height: 30px; border-radius: 9px; vertical-align: -9px; }
.authbrand .blogo-img { width: 46px; height: 46px; border-radius: 12px; vertical-align: -13px; }
.foot-brand .blogo-img { width: 22px; height: 22px; border-radius: 6px; vertical-align: -6px; }
.adm-head .blogo-img { width: 28px; height: 28px; vertical-align: -8px; }
.navlinks { display: flex; align-items: center; gap: 20px; }
.navlinks a:not(.btn) { color: rgba(255, 255, 255, .88); text-decoration: none; font-weight: 500; }
.hero { display: flex; gap: 48px; align-items: center; max-width: 1120px; margin: 24px auto 0; padding: 24px; flex-wrap: wrap; }
.hero-in { flex: 1 1 340px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.05; margin: 0 0 16px; letter-spacing: -1px; }
.hero h1 em { font-style: normal; background: linear-gradient(95deg, #055FF1 0%, #4FB757 48%, #F43856 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.claim { display: flex; align-items: center; gap: 0; margin: 24px 0 8px; max-width: 30rem; border: 1px solid var(--line); border-radius: 999px; padding: 5px 5px 5px 16px; background: #fff; }
.claim .prefix { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.claim input { border: none; outline: none; flex: 1; min-width: 0; padding: 10px 8px; font-size: 1rem; background: transparent; }
.fine { color: var(--muted); font-size: .9rem; }
.hero-art { flex: 1 1 280px; display: flex; justify-content: center; }
.phone { width: min(280px, 100%); border: 10px solid #050E31; border-radius: 44px; padding: 30px 18px 22px; background: #fff; box-shadow: 0 24px 60px rgba(20, 22, 28, .18); }
.ph-head { text-align: center; margin-bottom: 18px; }
.ph-head .avatar { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; }
.ph-head b { display: block; margin-top: 10px; }
.ph-head span { color: var(--muted); font-size: .85rem; }
.ph-home { width: 110px; height: 5px; border-radius: 3px; background: #050E31; opacity: .22; margin: 20px auto 0; }
.feat { max-width: 1120px; margin: 72px auto; padding: 0 24px; }
.feat h2, .pricing h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.5px; text-align: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; margin-top: 32px; }
.card { border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: #fff; }
.card .ce { font-size: 2rem; }
.card h3 { margin: 12px 0 8px; }
.card p { color: var(--muted); margin: 0; }
.pricing { max-width: 900px; margin: 0 auto 72px; padding: 0 24px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; margin-top: 32px; }
.plan { border: 1px solid var(--line); border-radius: 20px; padding: 28px; background: #fff; }
.plan.hot { border: 2px solid var(--ink); }
.plan .p { font-size: 2rem; font-weight: 800; margin: 8px 0 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; color: var(--muted); }
.plan li { margin: 8px 0; }
.cta { text-align: center; padding: 40px 24px 80px; }
.cta h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 20px; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; max-width: none; margin: 0; padding: 26px max(24px, calc((100% - 1120px) / 2 + 24px)); border-top: none; background: var(--navy); color: rgba(255, 255, 255, .72); font-size: .9rem; }
.foot a { color: rgba(255, 255, 255, .72); }

/* ---------- auth ---------- */
body.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; background: linear-gradient(135deg, #E3EDFF 0%, #E9F7EE 50%, #F2F6FE 100%); }
.authcard { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px; width: 100%; max-width: 420px; box-shadow: 0 18px 50px rgba(20, 22, 28, .08); }
.authcard h1 { margin: 14px 0 4px; }
.authcard form { margin-top: 8px; }
.authcard .btn.big { width: 100%; margin-top: 18px; }
/* Branded auth header */
.authbrand { text-align: center; margin-bottom: 6px; }
.authbrand .blogo { font-size: 2.4rem; }
.authbrand .brand { font-size: 1.5rem; }
.authtag { text-align: center; color: var(--muted); margin: 0 0 18px; font-size: .95rem; }
.authcard label { display: block; margin-bottom: 14px; font-weight: 600; font-size: .9rem; }
.authcard input { width: 100%; margin-top: 6px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.authcard input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(5, 95, 241, .16); }
.authcard .btn.primary.big { background: linear-gradient(135deg, var(--accent), var(--accent2)); border: none; padding: 15px; font-size: 1.05rem; border-radius: 999px; }
.authcard .muted { text-align: center; margin-top: 16px; }

/* ---------- editor ---------- */
body.editor { background: #E7EEFB; min-height: 100vh; }
.ebar { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .12); position: sticky; top: 0; z-index: 30; flex-wrap: wrap; }
.ebar .brand { color: #fff; }
.ebar .hello { color: rgba(255, 255, 255, .72); }
.ebar .saved { color: var(--green-bright); }
.ebar .btn { background: rgba(255, 255, 255, .07); color: #fff; border-color: rgba(255, 255, 255, .30); }
.ebar .btn.primary { background: linear-gradient(135deg, var(--blue-deep), var(--blue)); border-color: transparent; }
.eactions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hello { color: var(--muted); font-weight: 600; }
.saved { color: #1c7a3d; font-size: .85rem; white-space: nowrap; }

/* ---------- mobile: roomy header, big tap targets ---------- */
@media (max-width: 640px) {
  /* Mobile header: compact two-row layout */
  .ebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; }
  .ebar .brand { font-size: 1.05rem; margin-right: auto; }
  .eactions { display: contents; }
  #hello { font-size: .8rem; max-width: 32vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; order: 1; }
  #logout { order: 2; padding: 8px 12px; font-size: .8rem; }
  #saved { display: none; }
  #adminlink { order: 2; padding: 8px 12px; font-size: .8rem; }
  .headrow2 { order: 3; display: flex; align-items: center; gap: 8px; width: 100%; }
  .headrow2 #headWidgets, .headrow2 #viewlive { flex: 1 1 0; display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 8px; margin: 0; font-size: .8rem; line-height: 1; text-align: center; white-space: nowrap; box-sizing: border-box; vertical-align: middle; }
  .etabs { padding: 12px 12px 0; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; }
  .etabs > * { min-width: 0; width: auto; }
  .etabs button, .etabs .wtab { padding: 13px 8px; font-size: .95rem; }
  .mbox { padding: 20px 16px; }
  .mfoot { gap: 8px; }
  .mfoot .btn { flex: 1; padding: 13px 8px; text-align: center; }
  .pal { padding: 14px; }
  .wbtns button { padding: 8px 12px; font-size: .85rem; }
  input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], textarea, select { font-size: 16px; }
}
.etabs { display: flex; gap: 8px; padding: 14px 20px 0; max-width: 1200px; margin: 0 auto; }
.etabs button, .etabs .wtab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 20px; font-weight: 700; }
.etabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.etabs .wtab { display: none; }
.etabs .ti { display: block; font-size: 1.25rem; line-height: 1.2; }
.ebuild { display: flex; gap: 20px; max-width: 1200px; margin: 0 auto; padding: 16px 20px 60px; align-items: flex-start; }
.palette { flex: 0 0 300px; display: grid; gap: 10px; position: sticky; top: 76px; max-height: calc(100vh - 100px); overflow: auto; }
.pal { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
.pal:hover { border-color: var(--accent); }
.pal .pi { font-size: 1.5rem; grid-row: span 2; }
.pal .pn { font-weight: 700; }
.pal .pd { color: var(--muted); font-size: .8rem; grid-column: 2; }
.stage { flex: 1; display: flex; justify-content: center; }
.stage .phone { width: min(380px, 100%); }
.canvas { min-height: 420px; border-radius: 32px; background: var(--pbg); padding: 20px 14px 30px; transition: background .2s; }
.canvas.dropover { outline: 3px dashed var(--accent); outline-offset: -6px; }
.cempty { color: var(--pmuted); text-align: center; padding: 90px 20px; }
.wblock { background: rgba(255, 255, 255, .75); border: 1px dashed rgba(28, 30, 36, .25); border-radius: 18px; padding: 8px; margin: 0 0 20px; }
.wtools { display: flex; justify-content: space-between; align-items: center; padding: 2px 6px 8px; }
.wt { font-size: .8rem; font-weight: 700; color: var(--muted); }
.wbtns button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 3px 9px; font-size: .78rem; margin-left: 4px; }
.wbtns .danger { color: #b3261e; }
.wbody { cursor: pointer; border-radius: 12px; }
.wbody:hover { outline: 2px solid var(--accent); outline-offset: 2px; }

/* design pane */
.edesign { max-width: 720px; margin: 0 auto; padding: 16px 20px 60px; display: grid; gap: 16px; }
/* ---------- stats dashboard ---------- */
.estats { max-width: 720px; margin: 0 auto; padding: 20px 16px 60px; }
.estats .dcard { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.stats-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.stats-head h2 { margin: 0; }
.stats-range { display: flex; gap: 6px; }
.stats-range button { border: 1px solid var(--line); background: #f7f7fa; border-radius: 999px; padding: 6px 14px; font-size: .85rem; cursor: pointer; }
.stats-range button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.stat { background: #f7f7fa; border-radius: 14px; padding: 14px 8px; text-align: center; }
.stat b { display: block; font-size: 1.4rem; }
.stat span { font-size: .8rem; color: var(--muted); }
.estats h3 { margin: 20px 0 10px; font-size: 1rem; }
.estats canvas { width: 100%; background: #fafafc; border-radius: 12px; }
.toplist .trow { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.toplist .trow span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toplist .trow b { font-variant-numeric: tabular-nums; }
.toplist .trow i { font-style: normal; color: var(--muted); font-size: .82rem; min-width: 44px; text-align: right; }
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
/* ---------- custom domains ---------- */
.protag { font-size: .7rem; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; padding: 3px 10px; border-radius: 999px; vertical-align: middle; }
#domainCard .drow { display: flex; gap: 8px; margin-top: 12px; }
#domainCard input { flex: 1; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 1rem; }
#domainCard input:focus { outline: none; border-color: var(--accent); }
.dmrow { display: flex; align-items: center; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.dmname { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.dmstat { font-size: .85rem; }
.dmstat.good { color: #1c7a3d; }
.dmstat.wait { color: #b7791f; }
.dhint { font-size: .88rem; color: var(--muted); margin: 8px 0; line-height: 1.5; }
.dhint b { color: var(--ink); }
/* Custom background upload button */
.sw.custom { position: relative; display: flex; align-items: center; justify-content: center; }
.sw.custom span { font-size: 1.2rem; filter: grayscale(.3); }
/* ---------- 10 new widgets ---------- */
.w-booking, .w-filedl { background: rgba(127,127,160,.12); border-radius: 18px; padding: 18px; text-align: center; }
.bk-t, .fd-t { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.bk-n, .fd-n { color: var(--pmuted); font-size: .9rem; margin-bottom: 12px; }
.w-testimonials { display: grid; gap: 10px; }
.tm-card { background: rgba(127,127,160,.12); border-radius: 16px; padding: 16px; }
.tm-stars { color: #f5a623; font-size: 1rem; margin-bottom: 6px; }
.tm-text { margin: 0 0 8px; font-style: italic; }
.tm-name { font-size: .85rem; color: var(--pmuted); font-weight: 600; }
.w-faq { display: grid; gap: 8px; }
.faq-item { background: rgba(127,127,160,.12); border-radius: 14px; overflow: hidden; }
.faq-item summary { padding: 14px 16px; cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; font-size: 1.2rem; }
.faq-item[open] summary::after { content: '–'; }
.faq-a { padding: 0 16px 14px; color: var(--pmuted); font-size: .92rem; }
.w-poll { background: rgba(127,127,160,.12); border-radius: 18px; padding: 18px; }
.pl-q { font-weight: 700; margin-bottom: 12px; }
.pl-opts { display: grid; gap: 8px; }
.pl-opt { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 12px; cursor: pointer; font-size: .95rem; text-align: left; }
.pl-opt:hover { border-color: var(--accent); }
.pl-thanks { text-align: center; color: #1c7a3d; font-weight: 600; padding: 12px; }
.w-events { display: grid; gap: 10px; }
.ev-card { display: flex; align-items: center; gap: 12px; background: rgba(127,127,160,.12); border-radius: 16px; padding: 14px; }
.ev-d { font-size: 1.5rem; }
.ev-m { flex: 1; min-width: 0; }
.ev-t { font-weight: 700; }
.ev-v { font-size: .85rem; color: var(--pmuted); }
.w-pricemenu { background: rgba(127,127,160,.12); border-radius: 18px; padding: 18px; }
.pm-t { font-weight: 700; font-size: 1.05rem; margin-bottom: 12px; }
.pm-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.pm-row:last-child { border-bottom: none; }
.pm-m { flex: 1; }
.pm-n { font-weight: 600; }
.pm-d { font-size: .85rem; color: var(--pmuted); }
.pm-p { font-weight: 700; white-space: nowrap; }
.w-socialfeed-embed iframe { width: 100%; border: 0; border-radius: 10px; background: #fff; }
.w-socialfeed-embed .sf-ig { height: 480px; }
.w-socialfeed-embed .sf-tt { height: 580px; background: #000; }
.w-socialfeed-embed .sf-x { height: 480px; }
.w-socialfeed-embed .sf-fb { height: 480px; }
.w-socialfeed { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; text-decoration: none; color: inherit; background: rgba(127,127,160,.12); }
.sf-e { font-size: 1.5rem; }
.w-donation { background: rgba(127,127,160,.12); border-radius: 18px; padding: 18px; text-align: center; }
.dn-t { font-weight: 700; margin-bottom: 12px; }
.dn-bar { height: 12px; background: rgba(0,0,0,.1); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.dn-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 999px; transition: width .5s; }
.dn-m { font-size: .9rem; margin-bottom: 12px; }
.dn-m span { color: var(--pmuted); }
.w-hours { background: rgba(127,127,160,.12); border-radius: 18px; padding: 18px; }
.hr-t { font-weight: 700; margin-bottom: 10px; }
.hr-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .92rem; border-bottom: 1px solid var(--line); }
.hr-row:last-child { border-bottom: none; }
.hr-row.today { font-weight: 700; }
.hr-row.today i { font-style: normal; color: var(--accent); font-size: .8rem; }
/* ---------- pro gate ---------- */
.progate { text-align: center; padding: 28px 16px; background: linear-gradient(135deg, #E3EDFF, #FFE9EE); border-radius: 16px; margin: 12px 0; }
.progate-e { font-size: 2rem; }
.progate h3 { margin: 8px 0 4px; }
.progate .btn { margin-top: 12px; }
.dcard { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.dcard h2 { margin: 0 0 6px; }
.swrow { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 6px; }
.sw { width: 44px; height: 44px; border-radius: 50%; border: 2px solid transparent; }
.sw.on { border-color: var(--ink); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.pillrow { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 6px; }
.pillopt { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; }
.pillopt.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pillopt.fontprev { font-size: 1.12rem; line-height: 1.25; padding: 8px 18px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.check.big { font-size: 1rem; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

/* ---------- modal / popup ---------- */
.modal { position: fixed; inset: 0; background: rgba(5, 10, 35, .60); display: flex; align-items: flex-start; justify-content: center; z-index: 100; padding: 5vh 16px; overflow: auto; }
.mbox { background: #fff; border-radius: 24px; padding: 26px; width: 100%; max-width: 520px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.mbox h3 { margin: 0 0 6px; }
.mfoot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.fld { margin: 12px 0; }
.fld > label { margin: 0 0 6px; }
.note { color: var(--muted); font-size: .85rem; background: #f4f5f9; border-radius: 10px; padding: 10px 12px; }
.imgfield .imgprev { border: 1px dashed var(--line); border-radius: 14px; min-height: 90px; display: flex; align-items: center; justify-content: center; color: var(--muted); overflow: hidden; margin-bottom: 8px; background: #fafbfc; }
.imgfield .imgprev img { max-height: 180px; width: auto; display: block; }
.imgrow { display: flex; gap: 8px; }
.imgrow .imglink { flex: 1; }
.filebtn { white-space: nowrap; }
.listfield .lrow { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 0 0 10px; background: #fafbfc; }
.lrm { border: 1px solid #f5c6c6; color: #b3261e; background: #fff; border-radius: 8px; padding: 5px 12px; font-size: .8rem; margin-top: 6px; }
.ladd { margin-top: 2px; }

/* ---------- public page ---------- */
body.public { background: var(--pbg); color: var(--ptext); font-family: var(--pfont); min-height: 100vh; }
.pwrap { max-width: 560px; margin: 0 auto; padding: 40px 20px 60px; }
.p-head { text-align: center; margin-bottom: 22px; }
.avatar { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; }
.avatar.ph { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: 2.2rem; font-weight: 800; }
.p-head h1 { margin: 12px 0 6px; font-size: 1.6rem; }
.p-head .bio { color: var(--pmuted); margin: 0; }
.p-widgets > * { margin-bottom: 20px; }
.p-foot { text-align: center; margin-top: 36px; font-size: .85rem; }
.p-foot a { color: var(--pmuted); text-decoration: none; }
.notfound { text-align: center; padding: 80px 20px; }
.nf-e { font-size: 3rem; }

/* ---------- widgets ---------- */
.lb-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; margin: 0 0 14px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; border-radius: var(--pradius); }
body.public .lb-btn, .stage .lb-btn { background: var(--ptext); color: var(--pbg); }
.lb-btn:last-child { margin-bottom: 0; }
.lb-btn .e { font-size: 1.2rem; }
.w-social { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center; }
.w-social a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: inherit; }
.w-social .sicon { display: inline-flex; }
.w-social .sicon svg { width: 24px; height: 24px; display: block; }
/* sizes */
.w-social.sz-small .sicon svg { width: 18px; height: 18px; }
.w-social.sz-large .sicon svg { width: 32px; height: 32px; }
/* backgrounds */
.w-social.hasbg a { background: rgba(127,127,160,.14); }
.w-social.hasbg.bg-circle a { width: 52px; height: 52px; border-radius: 50%; }
.w-social.hasbg.bg-roundedsquare a { width: 52px; height: 52px; border-radius: 14px; }
.w-social.hasbg.sz-small.bg-circle a, .w-social.hasbg.sz-small.bg-roundedsquare a { width: 40px; height: 40px; }
.w-social.hasbg.sz-large.bg-circle a, .w-social.hasbg.sz-large.bg-roundedsquare a { width: 64px; height: 64px; }
/* legacy */
.soc { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(127, 127, 160, .14); text-decoration: none; color: inherit; }
.soc svg { width: 24px; height: 24px; display: block; }
.w-socialbtns { display: flex; flex-direction: column; gap: 10px; }
.socbtn { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px;
  background: rgba(127, 127, 160, .14); color: inherit; text-decoration: none; font-weight: 600; }
.socbtn .sicon { display: inline-flex; }
.socbtn .sicon svg { width: 24px; height: 24px; display: block; }
.socbtn .arr { margin-left: auto; opacity: .5; }

/* inline video embeds (TikTok / Shorts / Reels) */
.w-embed { position: relative; width: 100%; border-radius: 18px; overflow: hidden; background: #000; }
.w-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.w-embed.yt { aspect-ratio: 16/9; }
.w-embed.tk { aspect-ratio: 9/16; max-width: 330px; margin: 0 auto; max-height: 620px; }
.w-embed.ig { min-height: 420px; background: #fff; }
.w-embed.ig .instagram-media { margin: 0 auto !important; }
.eshield { position: absolute; inset: 0; z-index: 2; }

/* modal scroll lock */
body.locked { overflow: hidden; }

/* ---------- PWA install bar ---------- */
#installbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: #050E31; color: #fff; }
#installbar .ib-ico { font-size: 1.5rem; }
#installbar .ib-txt { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
#installbar .ib-txt b { font-size: .92rem; }
#installbar .ib-txt small { opacity: .65; font-size: .76rem; }
#installbar .ib-go { border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 700;
  background: #fff; color: #050E31; white-space: nowrap; }
#installbar .ib-x { border: 0; background: transparent; color: #fff; opacity: .6; font-size: 1rem; padding: 10px; }
.ib-help { position: fixed; inset: 0; z-index: 95; background: rgba(10, 10, 20, .55);
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.ib-card { background: #fff; border-radius: 20px; padding: 26px 22px; max-width: 340px; text-align: center; }
.ib-card h3 { margin: 0 0 10px; }
.ib-card p { color: var(--muted); margin: 0 0 18px; }
.w-image img, .w-gallery img { width: 100%; border-radius: 16px; display: block; }
.w-image figcaption, .w-gallery figcaption { color: var(--pmuted); font-size: .85rem; text-align: center; margin-top: 6px; }
.w-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.w-video { display: block; border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; background: rgba(127, 127, 160, .1); }
.w-video img, .w-video .vph { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: #0A1B4D; }
.w-video .vmeta { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.w-video .vt { font-weight: 700; color: var(--ptext); }
.w-video .vp { color: var(--pmuted); font-size: .9rem; }
.w-music { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; text-decoration: none; color: inherit; background: rgba(127, 127, 160, .12); }
.w-music-embed { border-radius: 18px; background: rgba(127, 127, 160, .12); padding: 14px; }
.w-music-embed .meq-title { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.w-music-embed iframe { display: block; width: 100%; border: 0; border-radius: 12px; }
.w-music-embed .yt-wrap { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 12px; overflow: hidden; }
.w-music-embed .yt-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.w-yt .aplay { margin-left: auto; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; border: none; background: var(--ink, #1c1e24); color: #fff; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.w-yt.playing .meq i { animation-play-state: running; }
.yt-audio-bar { position: relative; height: 54px; overflow: hidden; border-radius: 10px; background: #000; }
.yt-audio-bar iframe { position: absolute; left: 0; bottom: 0; width: 100%; height: 220px; border: 0; }
.yt-embed-wrap { position: relative; width: 100%; padding-top: 56.25%; border-radius: 10px; overflow: hidden; background: #000; }
.yt-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.w-music-embed audio { width: 100%; margin-top: 4px; }
/* Audio-only music player (YouTube audio, no video shown) */
.w-audio { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: rgba(127, 127, 160, .12); }
.w-audio .mmeta { flex: 1; min-width: 0; }
.w-audio .aplay { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; border: none; background: var(--ink, #1c1e24); color: #fff; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.w-audio .meq { display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.w-audio .meq i { width: 4px; background: var(--accent, #6c5ce7); border-radius: 2px; height: 30%; }
.w-audio.playing .meq i { animation: meqb 0.8s ease-in-out infinite; }
.w-audio.playing .meq i:nth-child(2) { animation-delay: 0.2s; }
.w-audio.playing .meq i:nth-child(3) { animation-delay: 0.4s; }
@keyframes meqb { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.w-audio .yt-audio-hole { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.meq { display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.meq i { width: 4px; background: var(--accent2); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.meq i:nth-child(1) { height: 60%; } .meq i:nth-child(2) { height: 100%; animation-delay: .2s; } .meq i:nth-child(3) { height: 40%; animation-delay: .4s; }
@keyframes eq { 50% { transform: scaleY(.4); } }
.mmeta { flex: 1; display: flex; flex-direction: column; }
.mt { font-weight: 700; color: var(--ptext); }
.ma { color: var(--pmuted); font-size: .85rem; }
.mplay { font-size: 1.3rem; color: var(--pmuted); }
.w-text h3 { margin: 0 0 6px; color: var(--ptext); }
.w-text p { margin: 0; color: var(--pmuted); }
.w-tipjar { text-align: center; border: 1px solid rgba(127, 127, 160, .25); border-radius: 20px; padding: 20px; }
.tj-t { font-weight: 800; font-size: 1.1rem; color: var(--ptext); }
.tj-n { color: var(--pmuted); font-size: .9rem; margin: 6px 0 12px; }
.tj-amts { display: flex; gap: 10px; justify-content: center; }
.tj-amt { border: 1px solid rgba(127, 127, 160, .4); background: transparent; color: var(--ptext); border-radius: var(--pradius); padding: 10px 22px; font-weight: 800; font-size: 1rem; }
.w-store { display: grid; gap: 14px; }
.prod { position: relative; border: 1px solid rgba(127, 127, 160, .25); border-radius: 20px; padding: 14px; }
.prod img, .prod .pph { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; background: rgba(127, 127, 160, .12); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; }
.pbadge { position: absolute; top: 22px; left: 22px; background: var(--accent2); color: #fff; font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.pname { font-weight: 700; margin: 10px 0 4px; color: var(--ptext); }
.prow { display: flex; justify-content: space-between; align-items: center; }
.pprice { font-weight: 800; font-size: 1.1rem; color: var(--ptext); }
.pbuy { background: var(--ptext); color: var(--pbg); border: none; border-radius: var(--pradius); padding: 9px 22px; font-weight: 700; }
.w-count { text-align: center; border: 1px solid rgba(127, 127, 160, .25); border-radius: 20px; padding: 18px; }
.c-t { font-weight: 800; color: var(--ptext); margin-bottom: 10px; }
.c-cells { display: flex; gap: 10px; justify-content: center; }
.c-cells span { background: rgba(127, 127, 160, .12); border-radius: 12px; padding: 10px 12px; min-width: 64px; }
.c-cells b { display: block; font-size: 1.4rem; color: var(--ptext); }
.c-cells i { font-style: normal; font-size: .72rem; color: var(--pmuted); }
.w-contact, .w-news { border: 1px solid rgba(127, 127, 160, .25); border-radius: 20px; padding: 18px; }
.ct-t, .n-t { font-weight: 800; color: var(--ptext); margin-bottom: 10px; }
.w-contact input, .w-contact textarea { margin-bottom: 10px; background: rgba(255, 255, 255, .7); }
.w-contact button, .w-news button { background: var(--ptext); color: var(--pbg); border: none; border-radius: var(--pradius); padding: 11px 24px; font-weight: 700; width: 100%; }
.n-n { color: var(--pmuted); font-size: .9rem; margin-bottom: 10px; }
.n-row { display: flex; gap: 8px; }
.n-row input { flex: 1; background: rgba(255, 255, 255, .7); }
.n-row button { width: auto; }
.w-map { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: rgba(127, 127, 160, .12); text-decoration: none; color: inherit; }
.mpin { font-size: 1.8rem; }
.w-map .mt { display: block; }
.w-div { border: none; border-top: 1px solid rgba(127, 127, 160, .35); margin: 6px 0; }
.w-div.stars { text-align: center; color: var(--pmuted); letter-spacing: 6px; border: none; }
.w-qr { text-align: center; }
.q-t { font-weight: 800; color: var(--ptext); margin-bottom: 10px; }
.w-qr img { border-radius: 14px; background: #fff; padding: 8px; }
.w-empty { border: 1px dashed rgba(127, 127, 160, .4); border-radius: 14px; padding: 22px; text-align: center; color: var(--pmuted); }
.pok { text-align: center; padding: 18px; font-weight: 700; color: var(--ptext); }
.pok small { display: block; font-weight: 400; color: var(--pmuted); margin-top: 6px; }
.payamt { font-size: 2.4rem; font-weight: 800; text-align: center; margin: 6px 0 4px; }


/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .ebuild { flex-direction: column; align-items: stretch; overflow-x: clip; max-width: 100vw; }
  .stage { width: 100%; max-width: 100%; overflow: clip; display: flex; justify-content: center; }
  .stage .phone { margin-inline: auto; }
  .palette { flex: none; position: static; max-height: none; grid-template-columns: 1fr 1fr; }
  .navlinks a.hidesm { display: none; }
  .nav { padding: 12px 16px; }
  .navlinks { gap: 12px; }
}
@media (max-width: 560px) {
  .palette { grid-template-columns: 1fr; }
  .claim { flex-direction: column; align-items: stretch; border-radius: 20px; padding: 12px; gap: 8px; }
  .claim .prefix { font-size: .82rem; }
  .claim input { border: 1px solid var(--line); border-radius: 12px; padding: 13px; width: 100%; }
  .claim .btn { width: 100%; }
  .authcard { padding: 26px 20px; }
  .hero { padding: 16px; }
  .feat, .pricing { padding: 0 16px; }
}

/* ---------- mobile widget drawer (slides in from the side; pure-CSS toggle) ---------- */
.palCheck { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.palhead { display: none; }
.palScrim { display: none; }
body.noscroll { overflow: hidden; }
@media (max-width: 900px) {
  .etabs .wtab { display: block; text-align: center; cursor: pointer; }
  #palCheck:checked ~ .etabs .wtab { background: var(--ink); color: #fff; border-color: var(--ink); }
  .palette { position: fixed; top: 0; bottom: 0; left: 0; z-index: 65;
    display: flex; flex-direction: column; gap: 10px;
    width: min(340px, 86vw); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 12px 14px 26px;
    background: #fff; border-radius: 0 22px 22px 0; box-shadow: 14px 0 44px rgba(0, 0, 0, .25);
    transform: translateX(-105%); transition: transform .25s ease; }
  #palCheck:checked ~ .palette { transform: none; }
  /* Lock background scroll when palette is open */
  #palCheck:checked ~ .ebar,
  #palCheck:checked ~ .etabs,
  #palCheck:checked ~ main { overflow: hidden; }
  body:has(#palCheck:checked) { overflow: hidden; }
  #palCheck:checked ~ .palScrim { display: block; position: fixed; inset: 0; z-index: 64;
    background: rgba(10, 10, 20, .45); cursor: pointer; }
  .palhead { display: flex; align-items: center; justify-content: space-between;
    padding: 6px 4px; font-size: 1rem; position: sticky; top: -12px; background: #fff; z-index: 2; }
  .palhead .palCloseBtn { display: inline-flex; align-items: center; justify-content: center;
    background: rgba(127, 127, 160, .15); width: 36px; height: 36px; border-radius: 50%;
    font-size: 1rem; cursor: pointer; }
  .palette .pal { width: 100%; }
  .palhead .palCloseBtn { touch-action: manipulation; }
}

/* very narrow: foldables closed, small phones */
@media (max-width: 380px) {
  .nav { padding: 10px 12px; }
  .nav .brand { font-size: 1rem; }
  .navlinks { gap: 8px; }
  .navlinks .btn.sm { padding: 9px 12px; font-size: .78rem; white-space: nowrap; }
  .c-cells { gap: 6px; }
  .c-cells span { min-width: 0; flex: 1; padding: 8px 6px; }
  .c-cells b { font-size: 1.15rem; }
  .n-row { flex-direction: column; }
  .n-row button { width: 100%; padding: 13px; }
  html, body { overflow-x: clip; }
  .ebuild { overflow-x: clip; align-items: stretch; max-width: 100vw; }
  .stage { width: 100%; max-width: 100%; overflow: clip; display: flex; justify-content: center; }
  .stage .phone { width: min(340px, calc(100% - 40px)); margin-inline: auto; border-width: 6px; border-radius: 30px; padding: 16px 10px; }
  .w-gallery { gap: 6px; }
}

/* Desktop: palette as fixed sidebar on Build tab */
@media (min-width: 901px) {
  body[data-tab="build"] .palette {
    position: fixed; left: calc(50% - 600px + 20px); top: 140px; width: 300px;
    max-height: calc(100vh - 160px); overflow: auto; z-index: 10;
    display: grid; gap: 10px;
  }
  body:not([data-tab="build"]) .palette { display: none; }
  body[data-tab="build"] #paneBuild .stage { margin-left: 320px; }
}

/* ---------- enhanced events ---------- */
.ev-sect { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.ev-card.ev-full { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.ev-img { width: 100%; max-height: 220px; object-fit: cover; display: block; }
.ev-body { padding: 16px; }
.ev-date-badge { display: inline-block; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; margin-bottom: 10px; }
.ev-t { font-size: 1.15rem; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.ev-v { font-size: .9rem; color: var(--pmuted); margin-bottom: 8px; }
.ev-desc { font-size: .92rem; color: var(--pmuted); margin: 0 0 4px; line-height: 1.5; }
.ev-foot { display: flex; align-items: center; gap: 10px; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ev-count { font-size: .85rem; color: var(--pmuted); flex: 1; min-width: 120px; }
.ev-rsvpform { display: grid; gap: 8px; margin: 12px 16px 16px; padding: 14px; background: rgba(0,0,0,.04); border-radius: 12px; }
.ev-rsvpform input { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-size: .95rem; }
/* ---------- booking form ---------- */
.bk-form .bk-f { display: grid; gap: 10px; margin-top: 12px; text-align: left; }
.bk-form .bk-f input, .bk-form .bk-f select, .bk-form .bk-f textarea {
  padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; font-size: .95rem; width: 100%; box-sizing: border-box;
}
.bk-msg { margin-top: 4px; }
.pok { background: #d4edda; color: #155724; padding: 12px; border-radius: 10px; text-align: center; font-weight: 600; }
.perr { background: #f8d7da; color: #721c24; padding: 12px; border-radius: 10px; text-align: center; }
/* ---------- link subtitle ---------- */
.w-link .msub { display: block; font-size: .8rem; opacity: .7; font-weight: 400; }
.w-link .mmeta { flex: 1; min-width: 0; }

/* ---------- widget robustness pass ---------- */
.lb-btn.has-sub { align-items: center; }
.lb-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.lb-twrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lb-twrap small { font-size: .8rem; opacity: .7; font-weight: 400; }
.w-text.t-center { text-align: center; }
.w-text.t-right { text-align: right; }
.w-text.ts-large p { font-size: 1.1rem; }
.w-text.ts-small p { font-size: .85rem; }
.pdesc { font-size: .85rem; color: var(--pmuted); margin: 4px 0; }
.pstock { font-size: .8rem; font-weight: 600; margin: 4px 0; }
.pstock.low { color: #e67e22; }
.pstock.out { color: #e74c3c; }
.pprice.sale { color: #27ae60; }
.pwas { color: var(--pmuted); font-size: .85rem; }
.c-done { font-size: 1.2rem; font-weight: 700; padding: 16px; text-align: center; }
.tm-who { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.tm-photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.tm-role { font-size: .8rem; color: var(--pmuted); }
.pm-dur { font-weight: 400; font-size: .85rem; color: var(--pmuted); }
.w-contact select { width: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; font-size: .95rem; margin-bottom: 10px; }

/* ---------- pro widget locks ---------- */
.pal.pro-locked { opacity: .6; }
.pro-badge { display: inline-block; background: linear-gradient(135deg, #055FF1, #F43856); color: #fff; font-size: .65rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }

/* ---------- checkout & receipts ---------- */
.ck-modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 16px; }
.ck-box { background: #fff; border-radius: 16px; padding: 24px; max-width: 440px; width: 100%; max-height: 90vh; overflow-y: auto; color: #0D1738; }
.ck-box h3 { margin: 0 0 16px; }
.ck-check { width: 56px; height: 56px; background: #4FB757; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 12px; }
.ck-box .muted { text-align: center; margin-bottom: 16px; }
.rcpt { border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.rcpt-head { display: flex; justify-content: space-between; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #e5e7eb; }
.rcpt-seller { font-weight: 600; }
.rcpt-date { color: #6b7280; font-size: .85rem; }
.rcpt-item { display: flex; justify-content: space-between; align-items: start; padding: 8px 0; border-bottom: 1px dashed #e5e7eb; flex-wrap: wrap; }
.rcpt-iname { font-weight: 500; flex: 1; }
.rcpt-qty { color: #6b7280; font-weight: 400; }
.rcpt-idesc { width: 100%; color: #6b7280; font-size: .85rem; margin-top: 2px; }
.rcpt-iprice { font-weight: 600; }
.rcpt-totals { margin-top: 12px; }
.rcpt-line { display: flex; justify-content: space-between; padding: 4px 0; }
.rcpt-line.total { font-weight: 700; font-size: 1.1rem; border-top: 2px solid #0D1738; margin-top: 8px; padding-top: 8px; }
.rcpt-note { margin-top: 12px; padding: 8px; background: #f3f4f6; border-radius: 8px; font-size: .9rem; }
.rcpt-policy { margin-top: 12px; text-align: center; font-size: .85rem; }
.ck-seller-note { background: #fef3c7; border-radius: 8px; padding: 10px; margin-bottom: 16px; font-size: .9rem; text-align: center; }
.ck-actions { display: flex; gap: 12px; }
.ck-actions .btn { flex: 1; }

/* ---------- square connect ---------- */
.sqcard { border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.sqcard.connected { border-color: #4FB757; background: #f0fdf4; }

/* ---------- terms checkbox ---------- */
.terms-check { display: flex; align-items: start; gap: 8px; font-size: .9rem; margin: 12px 0; }
.terms-check input[type="checkbox"] { margin-top: 4px; }
.terms-check a { color: #055FF1; }

/* ---------- pro checkout ---------- */
.trial-banner { background: #ecfdf5; border: 1px solid #6ee7b7; border-radius: 10px; padding: 12px; margin-bottom: 16px; font-size: .9rem; text-align: center; }
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.planbtn { border: 2px solid #e5e7eb; border-radius: 12px; padding: 14px; background: #fff; cursor: pointer; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.planbtn.on { border-color: #055FF1; background: #EBF2FE; }
.planbtn b { font-size: 1rem; }
.planbtn span { font-size: 1.2rem; font-weight: 700; color: #055FF1; }
.planbtn em { font-style: normal; font-size: .75rem; color: #4FB757; font-weight: 600; }
.promo-row { display: flex; gap: 8px; margin-bottom: 8px; }
.promo-row input { flex: 1; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: .9rem; }
.promo-msg { font-size: .85rem; margin-bottom: 12px; }
.price-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: .95rem; }
.price-line.muted { color: #6b7280; }
.fineprint { font-size: .75rem; color: #9aa0b0; margin-top: 12px; text-align: center; }
.subcard { border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.subcard.active { border-color: #055FF1; background: #EBF2FE; }

/* ---------- tip jar custom amount ---------- */
.tj-custom { display: flex; gap: 8px; margin-top: 10px; }
.tj-custom-amt { flex: 1; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: .95rem; min-width: 0; }
.tj-custom-go { padding: 10px 18px; background: #111; color: #fff; border: none; border-radius: 10px; font-size: .95rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tj-custom-go:hover { background: #333; }

/* ---------- refund policy toggle ---------- */
.rcpt-policy { margin-top: 12px; }
.rp-toggle { background: none; border: none; color: #055FF1; font-size: .9rem; cursor: pointer; padding: 0; text-decoration: underline; }
.rp-text { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; margin-top: 8px; font-size: .85rem; color: #4b5563; line-height: 1.5; }

/* ---------- Square card input ---------- */
.card-section { margin: 16px 0; }
#sqCard { min-height: 90px; border: 1px solid #e5e7eb; border-radius: 10px; padding: 4px; }

/* ---------- homepage v2 ---------- */
.feat-sub { text-align: center; color: #6b7280; max-width: 640px; margin: -8px auto 32px; font-size: 1.05rem; }
.trust { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: .85rem; color: #4FB757; font-weight: 600; }
.hero-art { position: relative; }
.float-badge { position: absolute; background: #fff; border-radius: 12px; padding: 10px 16px; font-size: .85rem; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.12); animation: float 3s ease-in-out infinite; }
.fb1 { top: 8%; right: -10px; }
.fb2 { bottom: 12%; left: -16px; animation-delay: 1.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.ph-notif { height: 22px; }
.ph-social { display: flex; gap: 10px; justify-content: center; margin: 10px 0; }
.ph-soc { font-size: 1.3rem; }
.ph-arrow { margin-left: auto; color: #9ca3af; }
.ph-tag { margin-left: auto; background: #ecfdf5; color: #059669; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.ph-music { display: flex; align-items: center; gap: 8px; background: #EBF2FE; border-radius: 10px; padding: 10px 12px; margin-top: 8px; font-size: .8rem; }
.ph-eq { display: flex; gap: 2px; align-items: flex-end; height: 14px; }
.ph-eq i { width: 3px; background: #055FF1; border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.ph-eq i:nth-child(1) { height: 8px; }
.ph-eq i:nth-child(2) { height: 14px; animation-delay: .2s; }
.ph-eq i:nth-child(3) { height: 6px; animation-delay: .4s; }
@keyframes eq { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(.5); } }
.logos { text-align: center; padding: 32px 20px; background: #f9fafb; }
.logos p { color: #9ca3af; font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.logo-row { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; font-weight: 600; color: #4b5563; }
.widgets-show { padding: 64px 20px; background: #fff; text-align: center; }
.widgets-show h2 { font-size: 2rem; margin-bottom: 8px; }
.wgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; max-width: 1000px; margin: 0 auto; text-align: left; }
.wcat { background: #f9fafb; border-radius: 16px; padding: 24px; }
.wcat h3 { font-size: 1.05rem; margin-bottom: 12px; }
.wcat ul { list-style: none; padding: 0; margin: 0; }
.wcat li { padding: 6px 0; color: #4b5563; font-size: .95rem; border-bottom: 1px solid #e5e7eb; }
.wcat li:last-child { border: none; }
.protag { background: #055FF1; color: #fff; font-size: .65rem; padding: 2px 8px; border-radius: 10px; font-weight: 700; vertical-align: middle; }
.how { padding: 64px 20px; background: #EBF2FE; text-align: center; }
.how h2 { font-size: 2rem; margin-bottom: 32px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.step { background: #fff; border-radius: 16px; padding: 32px 24px; }
.sn { width: 48px; height: 48px; background: #055FF1; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800; margin: 0 auto 16px; }
.step h3 { margin-bottom: 8px; }
.step p { color: #6b7280; font-size: .95rem; }
.hotbadge { background: #4FB757; color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; display: inline-block; margin-bottom: 12px; }
.p-alt { color: #6b7280; font-size: .85rem; margin-top: -8px; margin-bottom: 16px; }
.faq { padding: 64px 20px; max-width: 720px; margin: 0 auto; }
.faq h2 { text-align: center; font-size: 2rem; margin-bottom: 32px; }
.faq details { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; margin-bottom: 12px; padding: 0; }
.faq summary { padding: 18px 20px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; font-size: 1.3rem; color: #055FF1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 20px 18px; color: #4b5563; line-height: 1.6; margin: 0; }
.foot-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.foot-brand { color: #fff; } .foot-brand small { color: rgba(255, 255, 255, .55); font-weight: 400; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot nav a { color: rgba(255, 255, 255, .72); text-decoration: none; font-size: .9rem; }
.foot nav a:hover { color: #fff; }
.foot-fine { text-align: center; color: rgba(255, 255, 255, .45); font-size: .8rem; margin-top: 16px; }
@media (max-width: 640px) {
  .float-badge { display: none; }
  .trust { font-size: .78rem; gap: 10px; }
}

/* ---------- Square nudge (non-blocking) ---------- */
.sq-nudge { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: .88rem; color: #92400e; line-height: 1.5; }

/* ---------- Square connect guide ---------- */
.sq-guide { text-align: center; max-width: 420px; }
.sq-guide-icon { font-size: 3rem; margin-bottom: 8px; }
.sq-guide h3 { margin-bottom: 8px; }
.sq-guide .muted { color: #6b7280; font-size: .95rem; line-height: 1.5; margin-bottom: 20px; }
.sq-steps { text-align: left; margin-bottom: 16px; }
.sq-step { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.sq-step span { flex-shrink: 0; width: 28px; height: 28px; background: #055FF1; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.sq-step div { font-size: .92rem; line-height: 1.5; color: #374151; }

/* ---------- 20261021r: lockup logo (sits on navy surfaces only — "my" is white) ---------- */
.blogo-full { height: 44px; width: auto; display: block; }
.nav .blogo-full { height: 50px; }
.ebar .blogo-full { height: 42px; }
.foot-brand .blogo-full { height: 40px; }
.adm-head .blogo-full { height: 42px; }
.authbrand { background: var(--navy); border-radius: 16px; padding: 16px 12px; margin-bottom: 14px; }
.authbrand .brand { display: flex; justify-content: center; }
.authbrand .blogo-full { height: 68px; margin: 0 auto; }
@media (max-width: 640px) {
  .nav .blogo-full { height: 40px; }
  .ebar .blogo-full { height: 36px; }
  .authbrand .blogo-full { height: 54px; }
  .foot-brand .blogo-full { height: 36px; }
}

.legalhead { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; }
.legalhead .lchip { background: #050E31; border-radius: 12px; padding: 8px 14px; display: inline-flex; }
.legalhead .lchip img { height: 30px; width: auto; display: block; }
.legalhead .lback { color: var(--accent); font-weight: 600; text-decoration: none; }

/* Orders & Inbox (Money tab) */
.ord-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 10px 0; background: #fff; text-align: left; }
.ord-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ord-pill { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eef1f7; color: #3d4761; white-space: nowrap; }
.ord-pill.st-new { background: #fff3cd; color: #7a5b00; }
.ord-pill.st-confirmed { background: #e2f4e5; color: #157347; }
.ord-pill.st-declined { background: #fde4e4; color: #b02a2a; }
.ord-pill.st-done { background: #e8eaf1; color: #5f6575; }
.ord-meta { font-size: .86rem; color: #5f6575; margin-top: 4px; }
.ord-notes { font-size: .92rem; margin-top: 6px; white-space: pre-wrap; }
.ord-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* Analytics deltas (build n) */
.stat .delta { font-style: normal; font-weight: 700; font-size: .78rem; }
.stat .delta.up { color: #157347; }
.stat .delta.dn { color: #b02a2a; }

/* ---------- Widget design system (build q): glass default + per-widget overrides ---------- */
.wcard { padding: 18px; border-radius: 20px; border: 1px solid rgba(12,18,40,.07); box-shadow: 0 10px 30px rgba(10,16,40,.10); }
.wcard-glass { background: linear-gradient(135deg, rgba(255,255,255,.58), rgba(255,255,255,.30)); backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5); border-color: rgba(255,255,255,.65); }
.wcard-glass-dark { background: linear-gradient(135deg, rgba(17,23,48,.56), rgba(17,23,48,.36)); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-color: rgba(255,255,255,.20); box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.wcard-none { padding: 0; border: none; box-shadow: none; background: transparent; }
.wcard.c-square { border-radius: 8px; }
.wcard.c-xround { border-radius: 30px; }
.wcard.s-strong { box-shadow: 0 20px 46px rgba(10,16,40,.22); }
.wcard.s-none { box-shadow: none; }
.wcard.on-dark { color: #F2F5FF; }
.wcard.on-dark :where(h1, h2, h3, h4, p, li, figcaption, label, td, th, span, div) { color: inherit; }
.wcard.on-dark .muted { color: rgba(226,232,255,.78) !important; }

/* ---------- Bookshop (build q) ---------- */
.bk-h { font-size: 1.25rem; font-weight: 800; margin-bottom: 12px; }
.bk-note { margin-top: 12px; opacity: .8; font-size: .92rem; }
.w-books.grid .bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 16px; }
.bk-card { background: none; border: none; padding: 0; cursor: pointer; font: inherit; color: inherit; text-align: left; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.bk-card:hover .bk-cover img, .bk-card:hover .bk-cover .bk-gen { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(10,16,40,.28); }
.bk-cover img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; box-shadow: 0 6px 16px rgba(10,16,40,.25); display: block; transition: transform .15s ease, box-shadow .15s ease; }
.bk-gen { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 6px; width: 100%; aspect-ratio: 2/3; border-radius: 8px; color: #fff; padding: 12px; box-shadow: 0 6px 16px rgba(10,16,40,.25); transition: transform .15s ease, box-shadow .15s ease; }
.bk-gen-t { font-weight: 800; font-size: .98rem; line-height: 1.25; }
.bk-gen-a { font-size: .8rem; opacity: .85; }
.bk-meta { display: flex; flex-direction: column; gap: 3px; }
.bk-title { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.bk-author { font-size: .84rem; opacity: .75; }
.bk-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.bk-badge { font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(5,95,241,.12); color: #055FF1; }
.wcard.on-dark .bk-badge { background: rgba(255,255,255,.18); color: #fff; }
.bk-price { font-size: .84rem; font-weight: 700; color: #055FF1; }
.wcard.on-dark .bk-price { color: #9CC2FF; }
/* bookshelf: uniform covers on repeating wooden planks */
.w-books.shelf .bk-grid { display: flex; flex-wrap: wrap; gap: 34px 14px; padding: 4px 2px 10px; background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0) 172px, #8a5a2e 172px, #6f4522 184px, rgba(0,0,0,.28) 184px, rgba(0,0,0,0) 192px, rgba(0,0,0,0) 206px); }
.w-books.shelf .bk-card { width: auto; }
.w-books.shelf .bk-cover img { height: 172px; width: auto; aspect-ratio: auto; }
.w-books.shelf .bk-gen { height: 172px; width: 114px; aspect-ratio: auto; }
/* detail sheet */
.bk-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.bk-modal[hidden] { display: none; }
.bk-back { position: absolute; inset: 0; background: rgba(8,10,20,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.bk-sheet { position: relative; background: #fff; color: #14161c; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 22px 20px 26px; box-shadow: 0 -12px 44px rgba(0,0,0,.3); }
@media (min-width: 640px) { .bk-modal { align-items: center; padding: 20px; } .bk-sheet { border-radius: 22px; } }
.bk-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: none; background: #EEF1F7; font-size: .95rem; cursor: pointer; }
.bk-top { display: flex; gap: 16px; align-items: flex-start; }
.bk-sheet-cover { flex: 0 0 118px; }
.bk-sheet-cover img { width: 118px; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; box-shadow: 0 8px 20px rgba(10,16,40,.3); display: block; }
.bk-sheet-cover .bk-gen { width: 118px; }
.bk-info h3 { margin: 2px 0 4px; font-size: 1.3rem; line-height: 1.25; }
.bk-by { opacity: .75; margin-bottom: 8px; }
.bk-sheet-price { font-size: 1.15rem; font-weight: 800; color: #055FF1; margin-top: 8px; }
.bk-blurb { margin: 14px 0 0; line-height: 1.55; }
.bk-facts { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: .86rem; opacity: .8; }
.bk-buy { width: 100%; margin-top: 16px; }
.bk-buynote { text-align: center; font-size: .8rem; opacity: .65; margin-top: 6px; }
.bk-srct { font-weight: 800; margin: 18px 0 8px; }
.bk-src { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border: 1px solid #E2E6F0; border-radius: 12px; margin-bottom: 8px; text-decoration: none; color: inherit; background: #F8FAFF; }
.bk-src:hover { border-color: #055FF1; }
.bk-prov { font-size: .68rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #050E31; color: #fff; white-space: nowrap; }
.bk-slabel { font-weight: 700; }
.bk-snote { opacity: .7; font-size: .86rem; margin-left: auto; text-align: right; }
.bk-arr { opacity: .5; }

/* Collapsible Design tab in the widget editor (build r) */
.dsgn { margin-top: 14px; border: 1px solid #E2E6F0; border-radius: 14px; overflow: hidden; }
.dsgn-tab { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; background: #F4F7FE; border: none; font: inherit; font-weight: 800; color: #12245e; cursor: pointer; text-align: left; }
.dsgn-tab:hover { background: #EAF0FE; }
.dsgn-arrow { opacity: .6; }
.dsgn-body { padding: 12px 14px 4px; background: #fff; }
