/* ============================================================
   Stanly — creator link-in-bio storefront builder
   Distinctive identity: warm paper background, electric coral
   + violet accents, candy-rounded UI, big friendly display type.
   ============================================================ */

:root {
  /* Brand */
  --ink: #181323;
  --ink-soft: #4b4459;
  --ink-faint: #655d72;
  --paper: #f6f2ec;
  --paper-2: #fffaf3;
  --card: #ffffff;
  --line: #ece4d8;
  --line-2: #e2d8c8;

  --coral: #c43f2c;
  --coral-deep: #b9322b;
  --violet: #6c4cf1;
  --violet-deep: #5436d6;
  --grape: #2b1f54;
  --lime: #c7f25d;
  --sun: #8a5a00;
  --sky: #4fc3f7;
  --mint: #147c5d;

  --grad-brand: linear-gradient(135deg, #c43f2c 0%, #b9322b 38%, #6c4cf1 100%);
  --grad-soft: linear-gradient(135deg, #fff1ec 0%, #f3ecff 100%);

  --shadow-sm: 0 1px 2px rgba(24,19,35,.06), 0 2px 6px rgba(24,19,35,.05);
  --shadow-md: 0 6px 24px -8px rgba(24,19,35,.18);
  --shadow-lg: 0 30px 60px -22px rgba(24,19,35,.34);
  --shadow-phone: 0 40px 90px -30px rgba(34,18,60,.55), 0 8px 24px -10px rgba(0,0,0,.3);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  --ff-display: 'Bricolage Grotesque', 'Bricolage', serif;
  --ff-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --sidebar-w: 322px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(1100px 540px at 88% -8%, rgba(108,76,241,.10), transparent 60%),
    radial-gradient(900px 480px at -6% 6%, rgba(255,93,82,.12), transparent 55%);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
h1,h2,h3,h4 { font-family: var(--ff-display); font-weight: 700; letter-spacing: -.02em; margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid rgba(108,76,241,.45); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
  margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important; border: 0 !important;
}
.skip-link {
  position: fixed; inset-block-start: 10px; inset-inline-start: 10px; z-index: 500;
  padding: 10px 14px; border-radius: 8px; background: var(--ink); color: #fff;
  transform: translateY(-150%); transition: transform .16s ease-out;
}
.skip-link:focus { transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--r-pill);
  font-weight: 700; font-size: 14px; padding: 11px 18px;
  background: var(--card); color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, filter .14s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  color: #fff; background: var(--grad-brand);
  box-shadow: 0 10px 24px -10px rgba(232,65,58,.7);
}
.btn-primary:hover { filter: brightness(1.04); box-shadow: 0 14px 30px -10px rgba(232,65,58,.75); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #271f38; }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-ghost:hover { background: rgba(24,19,35,.05); }
.btn-outline { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-sm { padding: 8px 13px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-icon {
  width: 38px; height: 38px; padding: 0; border-radius: 12px;
  background: var(--card); box-shadow: var(--shadow-sm); color: var(--ink-soft);
}
.btn-icon:hover { color: var(--ink); }
.btn-icon svg { width: 18px; height: 18px; }
.btn:disabled, button:disabled { cursor: not-allowed; opacity: .62; transform: none; box-shadow: none; }

.access-gate {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(800px 420px at 50% -10%, rgba(108,76,241,.14), transparent 60%), var(--paper);
}
.access-card { width: min(100%, 460px); background: var(--card); padding: 30px; border-radius: 16px; box-shadow: var(--shadow-lg); }
.access-card .brand-mark { margin-bottom: 18px; }
.access-card h1 { font-size: clamp(1.7rem, 6vw, 2.25rem); }
.access-card > p { max-width: 62ch; color: var(--ink-soft); margin: 10px 0 22px; }
.access-public-link { display: block; margin-top: 18px; text-align: center; color: var(--violet-deep); font-weight: 700; }
.form-error, .field-hint { display: block; font-size: 13px; margin-top: 7px; }
.form-error { color: #b42318; background: #fff1ef; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }
.field-hint { color: var(--ink-faint); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: var(--r-pill);
  background: rgba(108,76,241,.1); color: var(--violet-deep);
}
.chip.coral { background: rgba(255,93,82,.13); color: var(--coral-deep); }
.chip.mint  { background: rgba(20,124,93,.14); color: #12694f; }
.chip.sun   { background: rgba(138,90,0,.14); color: #744c00; }

/* ============================================================
   APP SHELL
   ============================================================ */
.app { min-height: 100vh; display: flex; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  position: sticky; top: 0; align-self: flex-start; height: 100vh;
  padding: 22px 18px; display: flex; flex-direction: column; gap: 6px;
  background: rgba(255,250,243,.72); backdrop-filter: blur(14px);
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 10px 18px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-brand); box-shadow: 0 8px 18px -8px rgba(232,65,58,.7);
  color: #fff; flex: 0 0 auto;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { font-family: var(--ff-display); font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.brand-name .dot { color: var(--coral); }

.nav-label { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); padding: 14px 12px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px;
  color: var(--ink-soft); font-weight: 600; font-size: 14.5px; transition: background .14s, color .14s;
  width: 100%; border: 0; background: transparent; text-align: start;
}
.nav-item svg { width: 19px; height: 19px; flex: 0 0 auto; }
.nav-item:hover { background: rgba(24,19,35,.04); color: var(--ink); }
.nav-item.active { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.nav-item .count { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--ink-faint); }
.nav-item.active .count { color: rgba(255,255,255,.7); }

.sidebar-foot { margin-top: auto; }
.profile-card {
  display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 16px;
  background: var(--card); box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.profile-card img { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; }
.profile-card .pc-name { font-weight: 700; font-size: 13.5px; }
.profile-card .pc-sub { font-size: 12px; color: var(--ink-faint); }

/* Main */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 30px; background: rgba(246,242,236,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 24px; }
.topbar .sub { color: var(--ink-faint); font-size: 13.5px; margin-top: 2px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.live-link {
  display: flex; align-items: center; gap: 9px; padding: 8px 8px 8px 14px; border-radius: var(--r-pill);
  background: var(--card); box-shadow: var(--shadow-sm); border: 1px solid var(--line); font-size: 13px; font-weight: 600;
}
.live-link .url { color: var(--ink-soft); }
.live-link .url b { color: var(--ink); }
.review-dot { width: 8px; height: 8px; border-radius: 50%; background: #9a6700; flex: 0 0 auto; }

.view { padding: 26px 30px 60px; flex: 1; }
.view[hidden] { display: none; }

/* ============================================================
   BUILDER
   ============================================================ */
.builder { display: grid; grid-template-columns: minmax(0,1fr) 430px; gap: 30px; align-items: start; }
.builder-edit { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 20px;
}
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.panel-head h3 { font-size: 16.5px; }
.panel-head .ph-sub { font-size: 12.5px; color: var(--ink-faint); margin-top: 1px; }
.panel-head .spacer { margin-left: auto; }

/* Profile editor */
.profile-edit { display: flex; gap: 16px; align-items: flex-start; }
.avatar-edit { position: relative; flex: 0 0 auto; }
.avatar-edit img { width: 84px; height: 84px; border-radius: 24px; object-fit: cover; box-shadow: var(--shadow-sm); }
.avatar-edit .ae-btn {
  position: absolute; right: -6px; bottom: -6px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: #fff; border: 3px solid var(--card); display: grid; place-items: center;
}
.avatar-edit .ae-btn svg { width: 14px; height: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field:last-child { margin-bottom: 0; }
.field label, .field-label { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field .hint { font-size: 11.5px; color: var(--ink-faint); font-weight: 500; }

/* "Write with AI" inline button */
.ai-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; line-height: 1;
  padding: 5px 9px; border-radius: 999px; cursor: pointer;
  color: #fff; border: 0;
  background: linear-gradient(120deg, #6c4cf1, #7430a7 60%, #b83d7c);
  box-shadow: 0 2px 8px rgba(108, 76, 241, .28);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.ai-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(108, 76, 241, .36); }
.ai-btn:active { transform: translateY(0); }
.ai-btn svg { width: 13px; height: 13px; }
.ai-btn:disabled, .ai-btn.loading { cursor: default; opacity: .75; }
.ai-btn.loading svg { animation: ai-spin .8s linear infinite; }
@keyframes ai-spin { to { transform: rotate(360deg); } }
.input, textarea.input, select.input {
  width: 100%; border: 1.5px solid var(--line-2); border-radius: 13px; padding: 11px 13px;
  font-family: inherit; font-size: 14px; color: var(--ink); background: var(--paper-2);
  transition: border-color .14s, box-shadow .14s, background .14s;
}
.input:focus { outline: none; border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px rgba(108,76,241,.12); }
textarea.input { resize: vertical; min-height: 70px; line-height: 1.5; }
.input-row { display: flex; gap: 10px; }
.input-affix { position: relative; }
.input-affix .pre { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); font-size: 14px; font-weight: 600; }
.input-affix .input { padding-left: 28px; }
.char-count { font-size: 11px; color: var(--ink-faint); text-align: right; }

/* Add block bar */
.addbar { display: flex; flex-wrap: wrap; gap: 8px; }
.add-block-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: var(--r-pill);
  border: 1.5px dashed var(--line-2); background: var(--paper-2); color: var(--ink-soft);
  font-weight: 700; font-size: 13px; transition: all .14s;
}
.add-block-btn:hover { border-color: var(--violet); color: var(--violet-deep); background: rgba(108,76,241,.06); transform: translateY(-1px); }
.add-block-btn svg { width: 16px; height: 16px; }
.add-block-btn .ic { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: #fff; }
.add-block-btn .ic svg { width: 13px; height: 13px; }

/* Block list */
.blocks { display: flex; flex-direction: column; gap: 12px; }
.block-card {
  display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: var(--r-md);
  background: var(--paper-2); border: 1.5px solid var(--line); transition: box-shadow .14s, border-color .14s, transform .14s, opacity .14s;
}
.block-card.dragging { opacity: .4; }
.block-card.drag-over { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(108,76,241,.12); }
.block-card .drag-handle { color: var(--ink-faint); cursor: grab; display: grid; place-items: center; padding: 4px; flex: 0 0 auto; }
.block-card .drag-handle:active { cursor: grabbing; }
.block-card .drag-handle svg { width: 18px; height: 18px; }
.block-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: 0 0 auto; box-shadow: var(--shadow-sm); }
.block-ic svg { width: 19px; height: 19px; }
.block-body { flex: 1; min-width: 0; }
.block-body .bt { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block-body .bs { font-size: 12.5px; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block-type-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.block-actions { display: flex; gap: 4px; flex: 0 0 auto; }
.block-toggle {
  position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--line-2); border: none;
  transition: background .16s; flex: 0 0 auto;
}
.block-toggle::after { content:''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .16s; }
.block-toggle.on { background: var(--mint); }
.block-toggle.on::after { transform: translateX(16px); }

/* ============================================================
   PHONE PREVIEW
   ============================================================ */
.preview-col { position: sticky; top: 92px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.preview-head { display: flex; align-items: center; gap: 10px; width: 100%; justify-content: center; }
.phone {
  width: 340px; height: 712px; border-radius: 52px; padding: 13px;
  background: linear-gradient(160deg, #2a2336, #15101f);
  box-shadow: var(--shadow-phone); flex: 0 0 auto; position: relative;
}
.phone::before { /* side button */
  content:''; position: absolute; right: -2px; top: 150px; width: 3px; height: 64px; border-radius: 4px; background: #15101f;
}
.phone-notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 110px; height: 28px; border-radius: 999px; background: #0c0813; z-index: 5; }
.phone-screen {
  width: 100%; height: 100%; border-radius: 40px; overflow: hidden; position: relative;
  background: #fff;
}
.store-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; }
.store-scroll::-webkit-scrollbar { width: 0; }

.preview-toggle { display: inline-flex; background: var(--card); border-radius: var(--r-pill); padding: 4px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); gap: 2px; }
.preview-toggle button { border: none; background: transparent; padding: 7px 14px; border-radius: var(--r-pill); font-weight: 700; font-size: 12.5px; color: var(--ink-faint); }
.preview-toggle button.active { background: var(--ink); color: #fff; }

/* ============================================================
   STORE (rendered inside phone + on public page)
   themable via .store--<theme>
   ============================================================ */
.store {
  --s-bg: #fbf7f0; --s-bg2: #fff; --s-text: #1c1626; --s-muted: #756c82;
  --s-card: #ffffff; --s-accent: #ff5d52; --s-accent-text: #fff; --s-btn-radius: 16px;
  --s-font: 'Plus Jakarta Sans', sans-serif; --s-display: 'Bricolage Grotesque', serif;
  --s-shadow: 0 8px 22px -12px rgba(24,19,35,.25);
  --s-btn-shadow: 0 8px 18px -10px rgba(0,0,0,.3);
  min-height: 100%; background: var(--s-bg); color: var(--s-text);
  font-family: var(--s-font); padding: 40px 18px 34px; position: relative;
}
.store * { font-family: inherit; }
.store-cover { position: absolute; top: 0; left: 0; right: 0; height: 132px; background: var(--s-cover, var(--grad-brand)); }
.store-head { position: relative; text-align: center; padding-top: 52px; }
.store-avatar { width: 92px; height: 92px; border-radius: 30px; margin: 0 auto 14px; object-fit: cover; border: 4px solid var(--s-bg); box-shadow: var(--s-shadow); background: var(--s-card); }
.store-avatar-empty { display: grid; place-items: center; font: 800 32px/1 var(--s-display); color: var(--s-text); }
.store-name { font-family: var(--s-display); font-size: 25px; font-weight: 800; letter-spacing: -.02em; display:flex; align-items:center; justify-content:center; gap:6px; }
.store-name .verif { width: 17px; height: 17px; color: var(--s-accent); }
.store-handle { font-size: 13.5px; color: var(--s-muted); font-weight: 600; margin-top: 2px; }
.store-bio { font-size: 14px; color: var(--s-muted); max-width: 280px; margin: 11px auto 0; line-height: 1.55; }
.store-socials { display: flex; justify-content: center; gap: 9px; margin-top: 16px; }
.store-socials a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--s-card); color: var(--s-text); box-shadow: var(--s-shadow); transition: transform .14s; }
.store-socials a:hover { transform: translateY(-2px); }
.store-socials svg { width: 17px; height: 17px; }

.store-blocks { display: flex; flex-direction: column; gap: 13px; margin-top: 22px; }

/* link block */
.sb-link {
  display: flex; align-items: center; gap: 12px; padding: 15px 16px; background: var(--s-card);
  border-radius: var(--s-btn-radius); box-shadow: var(--s-shadow); font-weight: 700; font-size: 14.5px;
  transition: transform .14s, box-shadow .14s; text-align: left; width: 100%; border: none; color: var(--s-text);
}
.sb-link:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(24,19,35,.32); }
.sb-link .lk-emoji { font-size: 20px; flex: 0 0 auto; }
.sb-link .lk-arrow { margin-left: auto; opacity: .4; }
.sb-link .lk-arrow svg { width: 17px; height: 17px; }

/* product / course card */
.sb-product {
  background: var(--s-card); border-radius: calc(var(--s-btn-radius) + 4px); overflow: hidden;
  box-shadow: var(--s-shadow); text-align: left;
}
.sb-product .pp-media { height: 132px; background-size: cover; background-position: center; position: relative; }
.sb-product .pp-tag { position: absolute; top: 10px; left: 10px; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(4px); }
.sb-product .pp-body { padding: 14px 15px 15px; }
.sb-product .pp-title { font-family: var(--s-display); font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }
.sb-product .pp-desc { font-size: 12.5px; color: var(--s-muted); margin-top: 4px; line-height: 1.5; }
.sb-product .pp-foot { display: flex; align-items: center; gap: 10px; margin-top: 13px; }
.sb-product .pp-price { font-family: var(--s-display); font-weight: 800; font-size: 19px; }
.sb-product .pp-price small { font-size: 12px; color: var(--s-muted); font-weight: 600; text-decoration: line-through; margin-left: 5px; }
.sb-cta {
  margin-left: auto; border: none; padding: 10px 17px; border-radius: 999px; font-weight: 800; font-size: 13.5px;
  background: var(--s-accent); color: var(--s-accent-text); box-shadow: var(--s-btn-shadow); transition: transform .14s, filter .14s;
}
.sb-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }
.sb-cta.full { margin-left: 0; width: 100%; padding: 13px; }
.commerce-disabled { cursor: help; filter: saturate(.45); }
.commerce-notice { padding: 15px; margin-bottom: 16px; border-radius: 12px; background: #fff8e6; color: #5e4000; font-size: 14px; line-height: 1.55; }
.commerce-inline { color: var(--s-muted); font-size: 12px; margin: 12px 0; }

/* booking */
.sb-booking { background: var(--s-card); border-radius: calc(var(--s-btn-radius) + 4px); padding: 16px; box-shadow: var(--s-shadow); }
.sb-booking .bk-top { display: flex; align-items: center; gap: 11px; }
.sb-booking .bk-ic { width: 42px; height: 42px; border-radius: 13px; background: var(--s-accent); color: var(--s-accent-text); display: grid; place-items: center; flex: 0 0 auto; }
.sb-booking .bk-ic svg { width: 21px; height: 21px; }
.sb-booking .bk-title { font-family: var(--s-display); font-weight: 800; font-size: 15.5px; }
.sb-booking .bk-meta { font-size: 12px; color: var(--s-muted); }
.sb-booking .bk-slots { display: flex; gap: 7px; margin: 13px 0; flex-wrap: wrap; }
.sb-booking .bk-slot { font-size: 11.5px; font-weight: 700; padding: 7px 11px; border-radius: 999px; background: var(--s-bg); color: var(--s-text); border: 1.5px solid transparent; cursor: pointer; transition: border-color .12s, background .12s, color .12s; }
.sb-booking .bk-slot:hover { border-color: var(--s-accent); }
.sb-booking .bk-slot.selected { background: var(--s-accent); color: var(--s-accent-text); border-color: var(--s-accent); }

/* email capture */
.sb-email { background: var(--s-card); border-radius: calc(var(--s-btn-radius) + 4px); padding: 18px 16px; box-shadow: var(--s-shadow); text-align: center; }
.sb-email .em-emoji { font-size: 26px; }
.sb-email .em-title { font-family: var(--s-display); font-weight: 800; font-size: 16px; margin-top: 6px; }
.sb-email .em-sub { font-size: 12.5px; color: var(--s-muted); margin-top: 3px; }
.sb-email .em-form { display: flex; gap: 7px; margin-top: 13px; }
.sb-email input { flex: 1; min-width: 0; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 10px 12px; font-size: 13px; background: var(--s-bg); color: var(--s-text); }
.sb-email input:focus { outline: none; border-color: var(--s-accent); }
.sb-email .em-btn { border: none; padding: 10px 16px; border-radius: 12px; background: var(--s-accent); color: var(--s-accent-text); font-weight: 800; font-size: 13px; }

/* youtube */
.sb-youtube { background: var(--s-card); border-radius: calc(var(--s-btn-radius) + 4px); overflow: hidden; box-shadow: var(--s-shadow); }
.sb-youtube .yt-thumb { height: 150px; background-size: cover; background-position: center; position: relative; display: grid; place-items: center; }
.sb-youtube .yt-thumb::before { content:''; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0,0,0,.45)); }
.sb-youtube .yt-play { width: 54px; height: 54px; border-radius: 50%; background: rgba(255,0,0,.92); display: grid; place-items: center; position: relative; z-index: 1; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.sb-youtube .yt-play svg { width: 24px; height: 24px; color: #fff; margin-left: 3px; }
.sb-youtube .yt-thumb.playing { background: #0d0d0f; }
.sb-youtube .yt-thumb.playing::before { display: none; }
.sb-youtube .yt-playing { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; font-size: 12px; font-weight: 700; }
.sb-youtube .yt-bars { display: flex; gap: 4px; align-items: flex-end; height: 30px; }
.sb-youtube .yt-bars i { width: 5px; background: #ff3b30; border-radius: 3px; animation: ytbar 1s ease-in-out infinite; }
.sb-youtube .yt-bars i:nth-child(1) { animation-delay: 0s; }
.sb-youtube .yt-bars i:nth-child(2) { animation-delay: .15s; }
.sb-youtube .yt-bars i:nth-child(3) { animation-delay: .3s; }
.sb-youtube .yt-bars i:nth-child(4) { animation-delay: .45s; }
.sb-youtube .yt-bars i:nth-child(5) { animation-delay: .6s; }
@keyframes ytbar { 0%,100% { height: 8px; } 50% { height: 30px; } }
.sb-youtube .yt-meta { padding: 12px 14px; }

/* socials editor (builder) */
.socials-edit { display: flex; flex-direction: column; gap: 8px; }
.socials-edit .social-row { display: flex; gap: 8px; align-items: center; }
.socials-edit .social-type { flex: 0 0 116px; }
.socials-edit .social-url { flex: 1; min-width: 0; }
.sb-youtube .yt-title { font-weight: 700; font-size: 13.5px; }
.sb-youtube .yt-sub { font-size: 11.5px; color: var(--s-muted); margin-top: 2px; }

/* tip jar */
.sb-tip { background: var(--s-card); border-radius: calc(var(--s-btn-radius) + 4px); padding: 17px 16px; box-shadow: var(--s-shadow); text-align: center; }
.sb-tip .tip-emoji { font-size: 28px; }
.sb-tip .tip-title { font-family: var(--s-display); font-weight: 800; font-size: 16px; margin-top: 4px; }
.sb-tip .tip-sub { font-size: 12px; color: var(--s-muted); }
.sb-tip .tip-amts { display: flex; gap: 7px; margin-top: 13px; }
.sb-tip .tip-amt { flex: 1; border: 1.5px solid var(--line-2); background: var(--s-bg); border-radius: 12px; padding: 11px 0; font-weight: 800; font-size: 14px; color: var(--s-text); transition: all .12s; }
.sb-tip .tip-amt:hover { border-color: var(--s-accent); color: var(--s-accent); }
.sb-tip .tip-go { margin-top: 9px; width: 100%; border: none; padding: 12px; border-radius: 12px; background: var(--s-accent); color: var(--s-accent-text); font-weight: 800; font-size: 13.5px; }

.store-foot { text-align: center; margin-top: 26px; padding-top: 4px; }
.store-foot .pw { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: var(--s-muted); opacity: .8; }
.store-foot .pw b { color: var(--s-text); }
.store-empty { text-align: center; color: var(--s-muted); padding: 50px 0; font-size: 13px; }

/* ============================================================
   THEME PICKER
   ============================================================ */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.theme-card {
  position: relative; border-radius: var(--r-md); overflow: hidden; cursor: pointer; border: 2.5px solid transparent;
  text-align: left; padding: 0; background: var(--card); transition: transform .14s, border-color .14s; box-shadow: var(--shadow-sm);
}
.theme-card:hover { transform: translateY(-3px); }
.theme-card.active { border-color: var(--violet); }
.theme-card .tc-swatch { height: 78px; position: relative; display: flex; align-items: flex-end; padding: 9px; gap: 5px; }
.theme-card .tc-pill { width: 60%; height: 13px; border-radius: 999px; }
.theme-card .tc-dot { width: 13px; height: 13px; border-radius: 50%; margin-left: auto; }
.theme-card .tc-name { padding: 9px 11px; font-weight: 800; font-size: 13px; }
.theme-card .tc-check { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--violet); color: #fff; display: none; place-items: center; }
.theme-card.active .tc-check { display: grid; }
.theme-card .tc-check svg { width: 13px; height: 13px; }

.style-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; }
.style-group { flex: 1; min-width: 180px; }
.style-group .sg-label { font-size: 12px; font-weight: 800; color: var(--ink-soft); margin-bottom: 8px; }
.seg { display: flex; background: var(--paper-2); border-radius: 12px; padding: 4px; gap: 3px; border: 1px solid var(--line); }
.seg button { flex: 1; border: none; background: transparent; padding: 8px 6px; border-radius: 9px; font-weight: 700; font-size: 12.5px; color: var(--ink-faint); transition: all .12s; }
.seg button.active { background: var(--ink); color: #fff; }

/* ============================================================
   PRODUCTS
   ============================================================ */
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.search { position: relative; flex: 1; max-width: 360px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ink-faint); }
.search input { width: 100%; border: 1.5px solid var(--line-2); border-radius: var(--r-pill); padding: 10px 14px 10px 38px; font-family: inherit; font-size: 14px; background: var(--card); }
.search input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(108,76,241,.1); }
.filter-tabs { display: flex; gap: 4px; background: var(--card); border-radius: var(--r-pill); padding: 4px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.filter-tabs button { border: none; background: transparent; padding: 8px 14px; border-radius: var(--r-pill); font-weight: 700; font-size: 13px; color: var(--ink-faint); }
.filter-tabs button.active { background: var(--ink); color: #fff; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .16s, box-shadow .16s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product-card .pc-media { height: 158px; background-size: cover; background-position: center; position: relative; }
.product-card .pc-type { position: absolute; top: 11px; left: 11px; }
.product-card .pc-menu { position: absolute; top: 9px; right: 9px; }
.product-card .pc-body { padding: 15px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.product-card .pc-title { font-size: 16px; font-family: var(--ff-display); font-weight: 800; }
.product-card .pc-desc { font-size: 12.5px; color: var(--ink-faint); margin-top: 4px; line-height: 1.5; flex: 1; }
.product-card .pc-stats { display: flex; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.product-card .pc-stat .v { font-family: var(--ff-display); font-weight: 800; font-size: 17px; }
.product-card .pc-stat .l { font-size: 11px; color: var(--ink-faint); font-weight: 600; }
.product-card .pc-actions { display: flex; gap: 8px; margin-top: 14px; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 19px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat-card .sc-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; margin-bottom: 14px; }
.stat-card .sc-ic svg { width: 19px; height: 19px; }
.stat-card .sc-label { font-size: 12.5px; color: var(--ink-faint); font-weight: 600; }
.stat-card .sc-value { font-family: var(--ff-display); font-weight: 800; font-size: 30px; letter-spacing: -.02em; margin-top: 2px; }
.stat-card .sc-delta { font-size: 12px; font-weight: 700; margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; }
.stat-card .sc-delta.up { color: #138a64; }
.stat-card .sc-delta.down { color: var(--coral-deep); }
.stat-card .sc-delta svg { width: 13px; height: 13px; }

.dash-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; margin-top: 18px; align-items: start; }
.dash-row.thirds { grid-template-columns: 1fr 1fr; }

.chart-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.chart-head { display: flex; align-items: center; margin-bottom: 6px; }
.chart-head h3 { font-size: 17px; }
.chart-head .spacer { margin-left: auto; }
.range-seg { display: flex; background: var(--paper-2); border-radius: 10px; padding: 3px; gap: 2px; border: 1px solid var(--line); }
.range-seg button { border: none; background: transparent; padding: 6px 11px; border-radius: 8px; font-weight: 700; font-size: 12px; color: var(--ink-faint); }
.range-seg button.active { background: var(--ink); color: #fff; }
.chart-total { font-family: var(--ff-display); font-weight: 800; font-size: 28px; margin: 2px 0 14px; }

.bars { display: flex; align-items: flex-end; gap: 9px; height: 190px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar { width: 100%; max-width: 34px; border-radius: 9px 9px 5px 5px; background: var(--grad-brand); transition: filter .14s; position: relative; min-height: 4px; }
.bar:hover { filter: brightness(1.08); }
.bar:hover .bar-tip { opacity: 1; transform: translate(-50%, -6px); }
.bar-tip { position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, 2px); background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 7px; white-space: nowrap; opacity: 0; pointer-events: none; transition: all .14s; }
.bar-label { font-size: 11px; color: var(--ink-faint); font-weight: 600; }

.list-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.list-card h3 { font-size: 16px; margin-bottom: 4px; }
.list-card .lc-sub { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 14px; }

.order-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.order-row:last-child { border-bottom: none; }
.order-av { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; flex: 0 0 auto; font-family: var(--ff-display); }
.order-row .or-name { font-weight: 700; font-size: 13.5px; }
.order-row .or-prod { font-size: 12px; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-row .or-amt { margin-left: auto; text-align: right; flex: 0 0 auto; }
.order-row .or-amt .a { font-family: var(--ff-display); font-weight: 800; font-size: 14.5px; }
.order-row .or-amt .t { font-size: 11px; color: var(--ink-faint); }

.top-prod { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.top-prod:last-child { border-bottom: none; }
.top-prod .tp-rank { width: 24px; font-family: var(--ff-display); font-weight: 800; font-size: 15px; color: var(--ink-faint); flex: 0 0 auto; }
.top-prod img { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; flex: 0 0 auto; }
.top-prod .tp-name { font-weight: 700; font-size: 13.5px; }
.top-prod .tp-bar { height: 5px; border-radius: 999px; background: var(--line); margin-top: 5px; overflow: hidden; }
.top-prod .tp-bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad-brand); }
.top-prod .tp-rev { margin-left: auto; font-family: var(--ff-display); font-weight: 800; font-size: 14px; flex: 0 0 auto; }
.top-prod .tp-mid { flex: 1; min-width: 0; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(20,12,30,.55); backdrop-filter: blur(5px);
  display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--card); border-radius: 26px; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(.98); transition: transform .24s cubic-bezier(.16,1,.3,1); max-height: 92vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: none; }
.modal.wide { max-width: 540px; }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 22px 22px 0; }
.modal-head h3 { font-size: 20px; }
.modal-head .mh-sub { font-size: 13px; color: var(--ink-faint); margin-top: 2px; }
.modal-close { margin-left: auto; }
.modal-body { padding: 18px 22px 22px; }
.modal-foot { display: flex; gap: 10px; padding: 0 22px 22px; }

/* Checkout modal */
.checkout-product { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: var(--grad-soft); margin-bottom: 18px; }
.checkout-product img, .checkout-product .cp-emoji { width: 60px; height: 60px; border-radius: 15px; object-fit: cover; flex: 0 0 auto; display: grid; place-items: center; font-size: 30px; background: var(--card); }
.checkout-product .cp-title { font-family: var(--ff-display); font-weight: 800; font-size: 16px; }
.checkout-product .cp-sub { font-size: 12.5px; color: var(--ink-faint); }
.checkout-product .cp-price { margin-left: auto; font-family: var(--ff-display); font-weight: 800; font-size: 20px; flex: 0 0 auto; }
.pay-section .field { margin-bottom: 14px; }
.card-input-row { display: flex; gap: 10px; }
.pay-badges { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11.5px; color: var(--ink-faint); margin-top: 14px; font-weight: 600; }
.pay-badges svg { width: 14px; height: 14px; }

.checkout-success { text-align: center; padding: 18px 6px; }
.success-ring { width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: rgba(52,216,164,.16); }
.success-ring .inner { width: 56px; height: 56px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; color: #fff; animation: pop .4s cubic-bezier(.16,1,.3,1); }
.success-ring svg { width: 28px; height: 28px; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.checkout-success h3 { font-size: 22px; margin-bottom: 6px; }
.checkout-success p { color: var(--ink-soft); font-size: 14px; }

/* spinner */
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast-wrap { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 13px 18px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px; animation: toastIn .3s cubic-bezier(.16,1,.3,1);
}
.toast.leaving { animation: toastOut .3s forwards; }
.toast .t-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.toast .t-ic svg { width: 14px; height: 14px; }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(20px); opacity: 0; } }

/* color swatches in product editor */
.media-presets { display: flex; gap: 8px; flex-wrap: wrap; }
.media-preset { width: 38px; height: 38px; border-radius: 11px; cursor: pointer; border: 2.5px solid transparent; background-size: cover; }
.media-preset.active { border-color: var(--ink); }

.empty-state { text-align: center; padding: 70px 20px; color: var(--ink-faint); }
.empty-state .es-emoji { font-size: 44px; }
.empty-state h3 { font-size: 19px; color: var(--ink); margin: 14px 0 6px; }
.empty-state p { font-size: 14px; max-width: 320px; margin: 0 auto 18px; }

/* ============================================================
   PUBLIC STORE PAGE (store.html)
   ============================================================ */
.public-body { background: #211a32; background-image: radial-gradient(900px 500px at 50% -10%, rgba(108,76,241,.4), transparent 60%); min-height: 100vh; display: grid; place-items: center; padding: 26px 16px; }
.public-shell { width: 100%; max-width: 480px; }
.public-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.public-bar .pb-back { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.85); font-weight: 700; font-size: 13.5px; }
.public-bar .pb-back svg { width: 16px; height: 16px; }
.public-bar .pb-share { margin-left: auto; }
.public-store {
  border-radius: 34px; overflow: hidden; box-shadow: 0 50px 100px -30px rgba(0,0,0,.6);
}
.public-store .store { min-height: auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .builder { grid-template-columns: 1fr; }
  .preview-col { position: static; }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-row, .dash-row.thirds { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .sidebar {
    position: fixed; bottom: 0; top: auto; left: 0; right: 0; width: 100%; height: auto; flex-direction: row;
    z-index: 50; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 2px; border-right: none; border-top: 1px solid var(--line);
    overflow-x: auto;
  }
  .brand, .nav-label, .sidebar-foot { display: none; }
  .nav-item { flex-direction: column; gap: 4px; font-size: 10.5px; padding: 7px 12px; border-radius: 12px; flex: 1; }
  .nav-item .count { display: none; }
  .main { padding-bottom: 76px; }
  .topbar { padding: 14px 18px; }
  .topbar .live-link .url { display: none; }
  .view { padding: 18px 16px 30px; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .topbar h1 { font-size: 20px; }
}
@media (max-width: 480px) {
  .phone { width: 100%; max-width: 340px; }
  .products-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ONBOARDING
   ============================================================ */
body.ob-locked { overflow: hidden; }
.ob-overlay {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 20px;
  background: rgba(20,12,30,.62); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .26s;
}
.ob-overlay.open { opacity: 1; pointer-events: auto; }
.ob-modal {
  background: var(--card); border-radius: 28px; width: 100%; max-width: 540px;
  box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column;
  max-height: 94vh; transform: translateY(20px) scale(.97); transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.ob-overlay.open .ob-modal { transform: none; }
.ob-progress { height: 5px; background: var(--line); flex: 0 0 auto; }
.ob-progress i { display: block; height: 100%; background: var(--grad-brand); border-radius: 0 999px 999px 0; }
.ob-body { padding: 34px 34px 8px; overflow-y: auto; }
.ob-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 30px 26px; }
.ob-foot-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ob-foot .btn svg { width: 16px; height: 16px; }
.ob-skip { color: var(--ink-faint); }

.ob-hero { text-align: center; padding: 8px 0 16px; }
.ob-mark { width: 64px; height: 64px; border-radius: 20px; background: var(--grad-brand); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; box-shadow: 0 14px 30px -12px rgba(232,65,58,.7); }
.ob-mark svg { width: 32px; height: 32px; }
.ob-hero h2 { font-size: 27px; letter-spacing: -.02em; }
.ob-hero p { color: var(--ink-soft); font-size: 14.5px; max-width: 380px; margin: 10px auto 0; line-height: 1.55; }
.ob-hero p b { color: var(--ink); }
.ob-perks { display: flex; flex-direction: column; gap: 10px; max-width: 340px; margin: 22px auto 0; text-align: left; }
.ob-perk { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; }
.ob-perk .ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.ob-perk .ic svg { width: 17px; height: 17px; }

.ob-step-head { margin-bottom: 22px; }
.ob-step-tag { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); margin-bottom: 8px; }
.ob-step-head h2 { font-size: 24px; }
.ob-step-head p { color: var(--ink-faint); font-size: 14px; margin-top: 6px; }

.ob-niche-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ob-niche { display: flex; align-items: center; gap: 11px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--paper-2); text-align: left; font-weight: 700; font-size: 13.5px; color: var(--ink); transition: all .14s; }
.ob-niche:hover { border-color: var(--violet); transform: translateY(-1px); }
.ob-niche.sel { border-color: var(--violet); background: rgba(108,76,241,.08); box-shadow: 0 0 0 3px rgba(108,76,241,.12); }
.ob-niche .em { font-size: 22px; flex: 0 0 auto; }

.ob-sub-label { font-size: 12px; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.ob-starter-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ob-starter { display: flex; align-items: center; gap: 11px; padding: 13px; border-radius: 15px; border: 1.5px solid var(--line-2); background: var(--paper-2); text-align: left; transition: all .14s; }
.ob-starter:hover { border-color: var(--coral); transform: translateY(-1px); }
.ob-starter.sel { border-color: var(--coral); background: rgba(255,93,82,.07); box-shadow: 0 0 0 3px rgba(255,93,82,.12); }
.ob-starter .em { font-size: 22px; flex: 0 0 auto; }
.ob-starter .tx { display: flex; flex-direction: column; min-width: 0; }
.ob-starter .tx b { font-size: 13.5px; font-weight: 800; }
.ob-starter .tx i { font-style: normal; font-size: 11.5px; color: var(--ink-faint); }

.ob-theme-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ob-theme { display: flex; flex-direction: column; align-items: center; gap: 6px; border: none; background: transparent; padding: 0; }
.ob-theme .sw { width: 52px; height: 52px; border-radius: 15px; border: 2.5px solid transparent; box-shadow: var(--shadow-sm); transition: transform .14s; }
.ob-theme:hover .sw { transform: translateY(-2px); }
.ob-theme.sel .sw { border-color: var(--ink); }
.ob-theme .nm { font-size: 11px; font-weight: 700; color: var(--ink-faint); }
.ob-theme.sel .nm { color: var(--ink); }

.ob-summary { background: var(--grad-soft); border-radius: 18px; padding: 8px 18px; max-width: 360px; margin: 20px auto 0; text-align: left; }
.ob-sum-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid rgba(24,19,35,.07); font-size: 13.5px; }
.ob-sum-row:last-child { border-bottom: none; }
.ob-sum-row span { color: var(--ink-faint); font-weight: 600; }
.ob-sum-row b { color: var(--ink); font-weight: 800; }
.ob-fineprint { font-size: 12.5px !important; color: var(--ink-faint) !important; margin-top: 16px !important; }

.ob-shake { animation: obShake .35s; }
@keyframes obShake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-6px)} 40%,80%{transform:translateX(6px)} }

@media (max-width: 540px) {
  .ob-body { padding: 26px 22px 6px; }
  .ob-foot { padding: 16px 20px 22px; }
  .ob-niche-grid, .ob-starter-grid { grid-template-columns: 1fr; }
  .ob-hero h2 { font-size: 23px; }
}
